{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-accepts-a-pairwise-did-handshake-whose-verifiable-credential-chain-validates-cryptographically-but-whose-issuer-trust-an",
  "title": "What happens when an instance accepts a pairwise DID handshake whose verifiable credential chain validates cryptographically but whose issuer trust anchor was rotated mid-session",
  "date_of_record": "2026 November 26",
  "scope": "Applies to federated agent deployments where an agent instance authenticates to a peer in another trust domain via a pairwise DID handshake and presents a Verifiable Credential (VC) chain that terminates in an org-level trust anchor (DID document or trust registry entry). Does not apply to single-org deployments or to sessions where the trust anchor is pinned for the lifetime of the process and never re-resolved.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-accepts-a-pairwise-did-handshake-whose-verifiable-credential-chain-validates-cryptographically-but-whose-issuer-trust-an.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-accepts-a-pairwise-did-handshake-whose-verifiable-credential-chain-validates-cryptographically-but-whose-issuer-trust-an.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-accepts-a-pairwise-did-handshake-whose-verifiable-credential-chain-validates-cryptographically-but-whose-issuer-trust-an.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2419,
    "python_slice_tokens": 405,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct notions of \"the credential is valid\" in a cross-org federation, and conflating them is the failure: 1. **Chain-validity** — every signature in the VC chain verifies against the public key material embedded in the issuer's DID document *at verification time*, and the pairwise DID binding (`did:peer` or `did:key` derived from the handsha...",
    "what_was_observed": "A federated procurement agent (Org A) established a session with a supplier agent (Org B) at 09:14. The handshake was a standard pairwise DID exchange: Org B presented a `did:peer` derived from a key agreement, plus a VC chain — B's operational credential signed by B's org DID, B's org DID document signed by the federation trust registry entry, and the registry entry signed by the federation root. All signatures veri...",
    "condition_of_validity": "The invariant that was violated is: > **For any action authorized under a federated session, the trust anchor backing the session's credential chain MUST be re-validated against the verifier's current registry state at or before the moment of action, and the session's authorization scope MUST be the intersection of (scope granted at handshake) and (scope cur...",
    "decision_boundary": "The boundary is between **anchor freshness** and **session liveness**, and the two must not share a TTL. - If the verifier's registry cache TTL is *shorter than or equal to* the session token TTL, the worst-case window of stale authorization is bounded by the cache TTL, and the invariant holds approximately. - If the registry cache TTL is *longer than* the s...",
    "operational_effect": "The operational effect is a class of **ghost authorization**: actions that are fully cryptographically valid, fully auditable as valid, and nonetheless unauthorized. The audit trail is not wrong about what it records (the signatures did verify, the token was in scope at mint time); it is wrong about what it *implies* (that the authority existed at action tim..."
  },
  "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": "c1b4901d5f2676bdf8e15bc16fb7018c13ac1787125182634b73036a76410b59",
    "verified_classes": [
      "StaleAnchorAuthorizationError",
      "RegistryEntry",
      "SessionToken"
    ],
    "verified_functions": [
      "authorize_action"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "StaleAnchorAuthorizationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
