{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-a-delegated-capability-token-from-surviving-its-issuer-s-key-rotation-mid-flight",
  "title": "Which invariants prevent a delegated-capability token from surviving its issuer's key rotation mid-flight",
  "date_of_record": "2026 November 20",
  "scope": "Applies to agent-to-agent authorization where a capability token is minted by an issuing agent (or its AAIF credential service) and presented to a downstream resource agent across a multi-hop task. Does not cover first-party session tokens, human OAuth flows, or static API keys that lack a delegation chain.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-a-delegated-capability-token-from-surviving-its-issuer-s-key-rotation-mid-flight.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a-delegated-capability-token-from-surviving-its-issuer-s-key-rotation-mid-flight.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a-delegated-capability-token-from-surviving-its-issuer-s-key-rotation-mid-flight.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2205,
    "python_slice_tokens": 302,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the token expired\" and it is not \"the signature failed to verify.\" It is the case where a delegated-capability token is *cryptographically valid at verification time* under the key material the verifier currently trusts, but was *signed under a key the issuer has since rotated away from* — and the rotation event was never propagated to th...",
    "what_was_observed": "A planner agent P delegated a scoped capability (write access to a shared artifact store, TTL 900s, single-use-per-hop) to a worker agent W via a capability token `cap_W` signed by P's AAIF signing key `K_P1`. W presented `cap_W` to resource agent R at t+120s. R verified the chain: `cap_W` → `K_P1` → P's credential document → trust anchor. All valid. R executed the write. At t+200s, P rotated `K_P1` → `K_P2` as part ...",
    "condition_of_validity": "The invariant that was violated is not \"tokens must expire.\" It is: **for any delegated-capability token, the verifier's trust anchor for the issuer key must be no older than the token's remaining validity window, measured from the moment of verification, not from the moment of issuance.** Formally, for a token `t` signed by key `K` belonging to issuer `I`, ...",
    "decision_boundary": "The boundary is between two defensible designs, and the choice must be made explicitly per delegation chain, not per framework: - **Short-anchor design:** anchor cache TTL is always ≤ the shortest token TTL in the system. Rotation propagates within one token lifetime. Cost: every resource agent re-fetches credential documents frequently, and a rotation storm...",
    "operational_effect": "Without the coupling invariant, delegated-capability tokens become *longer-lived than the issuer's intent* whenever the issuer rotates under load. The practical consequence in multi-agent swarms is asymmetric: the planner's rotation is a deliberate act of narrowing authority, but the worker's cached anchor silently widens it back. The worker is not malicious..."
  },
  "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": "f42f52ac7e2f2fbfe26416ab7362b51914f9100d1b01227f6643b9fba8334fe9",
    "verified_classes": [
      "AnchorStalenessExceededTokenLife",
      "CapabilityToken",
      "TrustAnchor"
    ],
    "verified_functions": [
      "verify_delegated_capability",
      "remaining_ttl"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "AnchorStalenessExceededTokenLife"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
