{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-verifiable-credential-trust-federation-handshakes-from-silently-degrading-to-unauthenticated-peers-when-an-agent-s-credential",
  "title": "Which invariants prevent verifiable-credential trust-federation handshakes from silently degrading to unauthenticated peers when an agent's credential chain is re-anchored mid-handshake",
  "date_of_record": "2026 November 25",
  "scope": "Applies to cross-organization agent federation where peer identity is established via a verifiable credential (VC) chain plus a mutual attestation handshake (challenge-response over a nonce). Does not apply to single-org mTLS-only deployments or to purely human-in-the-loop trust bootstrapping.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-verifiable-credential-trust-federation-handshakes-from-silently-degrading-to-unauthenticated-peers-when-an-agent-s-credential.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-verifiable-credential-trust-federation-handshakes-from-silently-degrading-to-unauthenticated-peers-when-an-agent-s-credential.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-verifiable-credential-trust-federation-handshakes-from-silently-degrading-to-unauthenticated-peers-when-an-agent-s-credential.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1549,
    "python_slice_tokens": 251,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure we care about is not \"a forged credential was accepted.\" Signature verification catches that. The failure is **trust-anchor substitution during an in-flight handshake**: an agent presents a credential chain whose root anchor was valid at challenge-issue time, but the verifier's policy engine re-resolves the trust anchor (via a DID document refres...",
    "what_was_observed": "Two federated agents, `alpha` (org A, verifier) and `beta` (org B, prover), exchange a mutual attestation handshake: 1. `alpha` issues a nonce `N` and appends its own VC chain `C_alpha` rooted at `A_root`. 2. `beta` validates `C_alpha` against its anchor cache, signs `N` with its agent key, and returns its VC chain `C_beta` rooted at `B_root`. 3. `alpha` validates `C_beta` and the signature over `N`. In the observed ...",
    "condition_of_validity": "The invariant holds only when all of the following are true for the duration of one handshake: - The verifier pins its anchor set `S_alpha` at challenge-issue and stores `(N, S_alpha)` in handshake state. Any re-resolution during the handshake must be *deferred*, not applied. - The prover binds its response to `N` **and** to a digest of the anchor set it val...",
    "decision_boundary": "The guardrail is a three-way decision at response-validation time, not a boolean: - **Anchor-set equal** (`S_alpha == S_beta`): complete the handshake, record the pinned anchor digest. - **Anchor-set superseded** (`S_beta` is an ancestor of the current `S_alpha`): the handshake is *stale but not forged*. Reject with a re-challenge directive; do not fall back...",
    "operational_effect": "After enforcing anchor-set pinning and the three-way decision, the failure mode converts from *silent mutual attestation under divergent anchors* into *explicit stale-handshake rejection with a re-challenge*. The operational cost is a small increase in handshake retries during rotation windows (observed: ~0.4% of handshakes during a rotation, near zero other..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "28fbeee0c87fd503abc01a8349970af914afa04a4afa0d7a4bf27c6322da7794",
    "verified_classes": [
      "AnchorDivergenceError",
      "AnchorSet",
      "HandshakeState"
    ],
    "verified_functions": [
      "validate_response",
      "digest"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "AnchorDivergenceError"
    ],
    "sample_fail_closed_invariants": [
      "response signature invalid; cannot attest"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
