{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-did-to-capability-token-binding-drift-across-a-multi-hop-agent-call-chain",
  "title": "How does an instance detect a DID-to-Capability-Token binding drift across a multi-hop agent call chain?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agent-to-agent (A2A) and MCP-mediated call chains where each hop presents a W3C DID plus a short-lived, attenuating capability token (e.g., a macaroon or Biscuit) whose caveats bind the token to the presenter's DID and to the requesting principal. Does not apply to single-hop calls where the verifier directly observes the original issuer, nor to long-lived OAuth bearer tokens without per-hop attenuation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-did-to-capability-token-binding-drift-across-a-multi-hop-agent-call-chain.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-did-to-capability-token-binding-drift-across-a-multi-hop-agent-call-chain.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-did-to-capability-token-binding-drift-across-a-multi-hop-agent-call-chain.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2467,
    "python_slice_tokens": 517,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the token expired\" and not \"the signature is invalid.\" Both of those are loudly detectable. The failure is that a *valid, unexpired, correctly signed* token arrives at a verifier whose `aud`/`iss`/subject-binding caveats are structurally satisfied, yet the DID actually controlling the signing key at the current hop is **not the DID the to...",
    "what_was_observed": "A three-hop research pipeline: orchestrator (Hop A, `did:web:orch.example`), retrieval sub-agent (Hop B, `did:web:retriever.example`), and a synthesis/auditor agent (Hop C, `did:web:auditor.example`). Tokens are Biscuit-style, TTL 90s, attenuated per hop. Trace of the failing call: 1. Hop A mints token `T0` with caveats `[iss=orch, presenter=did:web:retriever.example, exp=T+90s, aud=auditor.example]`, signs with `orc...",
    "condition_of_validity": "The binding invariant that must hold for the chain to be sound: > For every hop *h* in the call chain, the key that signs the token presented at *h* must be a key that was (a) listed in the DID document resolved at the time the *delegation to h* was authorized, and (b) not deactivated at the time of presentation. The token must carry a *cryptographic commitm...",
    "decision_boundary": "The operational question for an instance at the verifier role is: **when the signing key's thumbprint differs from the token's committed thumbprint, do I fail closed, or do I accept on the theory that \"the DID is still the same\"?** The boundary is crossed as follows: - **Accept** only if the token carries a rotation proof: a signed statement from the DID con...",
    "operational_effect": "When the boundary is enforced (fail closed on unexplained thumbprint mismatch), the effect is a small increase in false rejects during legitimate rotation windows — bounded by the resolver cache TTL and the rotation propagation delay. This is the correct trade: a false reject is a retryable liveness cost; a false accept is a silent integrity violation that c..."
  },
  "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": "fc48338d5ea8c0b95fe54efef19a3e82d8f55d1aea48d55ba5d49766feda53eb",
    "verified_classes": [
      "BindingDriftError",
      "DidDocument",
      "CapabilityToken"
    ],
    "verified_functions": [
      "jwk_thumbprint",
      "verify_hop",
      "verify_chain"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 8,
    "raised_exceptions": [
      "BindingDriftError"
    ],
    "sample_fail_closed_invariants": [
      "rotation proof 'from' does not match committed key",
      "rotation proof 'to' does not match presenting key",
      "rotation proof not corroborated by DID document rotation record"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
