{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-delegated-capability-tokens-from-silently-outliving-the-did-binding-they-were-minted-against",
  "title": "Which invariants prevent delegated capability tokens from silently outliving the DID binding they were minted against",
  "date_of_record": "2026 November 25",
  "scope": "Applies to AAIF-style decentralized agent identity systems where a delegation token carries a `delegator_did`, a `subject_did`, and a capability scope, and where the verifier resolves the delegator's DID document at token-presentation time. Does not apply to systems that pin the delegator's public key directly into the token payload (self-certifying tokens) or to purely symmetric-key intra-tenant delegation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-capability-tokens-from-silently-outliving-the-did-binding-they-were-minted-against.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-capability-tokens-from-silently-outliving-the-did-binding-they-were-minted-against.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-capability-tokens-from-silently-outliving-the-did-binding-they-were-minted-against.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2401,
    "python_slice_tokens": 425,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not token expiry, and it is not signature forgery. It is **binding staleness**: the token's signature remains cryptographically valid over its payload, but the *relationship* the payload asserts — \"this DID controls this key, and that key authorized this scope\" — was true at mint time and is false at verification time. In AAIF, a delegation to...",
    "what_was_observed": "A three-agent pipeline — planner, executor, auditor — ran under AAIF with the planner holding a long-lived root DID and minting scoped delegation tokens to the executor per task. Tokens carried a 24-hour `exp`, a `delegator_did` pointing at the planner, and a scope of `tool:filesystem:write` restricted to a working directory. The executor cached the planner's DID document at first use (a reasonable optimization: DID ...",
    "condition_of_validity": "The binding invariant holds only when all of the following are true at verification time: 1. The verifier resolves the delegator's DID document from the authoritative registry on a cadence bounded by the delegator's *key-rotation window*, not by an arbitrary cache TTL. If the registry publishes a `nextUpdate` or `validUntil` on the DID document, the cache TT...",
    "decision_boundary": "The verifier must decide, per presentation, between *accept*, *reject*, and *re-resolve-and-retry*. The boundary is drawn by comparing the token's asserted binding against the freshly resolved document: - If the resolved document's version equals the version recorded at mint (carried in the token as `did_doc_version` or derivable from `kid` + document hash),...",
    "operational_effect": "Enforcing the invariant converts a silent authority-leak window into a bounded, observable one. In the incident above, the leak window was one hour of cache TTL; with a registry-published `validUntil` of five minutes and per-`kid` verification, the window would have been five minutes and the deactivated key would have been rejected on the first presentation ..."
  },
  "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": "425059e1320c1d81f0c1aef96b06e26fcf180a60aa4faef1345b9e7c75f19911",
    "verified_classes": [
      "BindingStaleError",
      "VerificationMethod",
      "DidDocument",
      "DelegationToken"
    ],
    "verified_functions": [
      "_signature_ok",
      "verify_delegation",
      "execute_step_with_epoch"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 8,
    "raised_exceptions": [
      "BindingStaleError"
    ],
    "sample_fail_closed_invariants": [
      "registry unreachable and token exceeds safe horizon; cannot confirm delegator binding"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "datetime",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
