{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-capability-token-replay-window-collapse-when-delegated-warrants-outlive-the-signing-key-s-rotation-epoch",
  "title": "How does an instance detect a capability-token replay window collapse when delegated warrants outlive the signing key's rotation epoch",
  "date_of_record": "2026 November 21",
  "scope": "Applies to agents operating under AAIF-style signed agent credentials (SACs) where a long-lived delegated capability token (DCT) is chained to a rotating issuer key, and the verifier caches issuer public keys with a TTL. Does not apply to single-key, non-rotating deployments or to tokens whose lifetime is strictly bounded below the key rotation period.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-capability-token-replay-window-collapse-when-delegated-warrants-outlive-the-signing-key-s-rotation-epoch.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-capability-token-replay-window-collapse-when-delegated-warrants-outlive-the-signing-key-s-rotation-epoch.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-capability-token-replay-window-collapse-when-delegated-warrants-outlive-the-signing-key-s-rotation-epoch.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2540,
    "python_slice_tokens": 573,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"expired token accepted\" and not \"forged signature accepted.\" Both of those are caught by ordinary validity checks. The failure is subtler: a **delegated capability token whose `not_after` exceeds the issuer key's rotation epoch** remains cryptographically verifiable against a *cached* stale public key after the issuer has legitimatel...",
    "what_was_observed": "A coordinator agent (issuer) minted a DCT for a subordinate worker with a 6-hour `not_after`, delegating `filesystem:read` scope over a shared artifact store. The issuer's signing key had a rotation epoch ending in 90 minutes. At the 90-minute mark the issuer rotated: it published a new SAC, retired the old key in its revocation list, and began signing new tokens with the new key. The worker's token was still valid f...",
    "condition_of_validity": "The invariant holds only when the verifier enforces **epoch-bounded authority**, not merely signature validity. Concretely, a DCT is admissible at verification time `T` iff all of the following hold simultaneously: - `token.not_before <= T <= token.not_after` (temporal validity) - `token.signing_key_id` resolves to a key whose `epoch_end >= T` **in the issue...",
    "decision_boundary": "The boundary is crossed at the point where `token.not_after > issuer_key.epoch_end` for the key that signed it. Below this boundary — tokens whose lifetime is contained within the signing key's epoch — the stale-cache problem is harmless, because even a stale key cannot authorize a token past the epoch the issuer intended. Above this boundary, the token's va...",
    "operational_effect": "The operational consequence is that an agent's *effective* delegated authority is not the token's stated scope and lifetime. It is the intersection of (a) the token's scope, (b) the token's temporal validity, (c) the signing key's current epoch authority, and (d) the verifier's key-resolution freshness. Four independent clocks, and the agent only controls no..."
  },
  "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": "7d7d6d04c2434f58ec13260e623a928648707fe99e0559a0a6ffe3becfac589d",
    "verified_classes": [
      "StaleAuthorityWindowError",
      "ReplayUnpinnedError",
      "KeyResolution",
      "DelegatedCapabilityToken",
      "AAIFVerifier"
    ],
    "verified_functions": [
      "_demo",
      "__init__",
      "verify"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ReplayUnpinnedError",
      "StaleAuthorityWindowError",
      "ValueError"
    ],
    "sample_fail_closed_invariants": [
      "max_key_age must be positive",
      "authorization decision recorded without a pinned jwks_version; audit replay would resolve a different key set"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
