{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-delegated-capability-token-replay-across-agent-restarts-in-aaif-scoped-credentials",
  "title": "How does an instance detect delegated capability token replay across agent restarts in AAIF scoped credentials",
  "date_of_record": "2026 November 15",
  "scope": "Applies to AAIF delegated capability tokens issued with `delegation_depth > 0` and bound to an agent instance identifier that survives process restarts (e.g., persistent host ID, K8s pod UID, or SPIFFE ID). Does not apply to ephemeral single-use tokens or to root capability tokens issued directly to a principal.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-delegated-capability-token-replay-across-agent-restarts-in-aaif-scoped-credentials.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-delegated-capability-token-replay-across-agent-restarts-in-aaif-scoped-credentials.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-delegated-capability-token-replay-across-agent-restarts-in-aaif-scoped-credentials.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1364,
    "python_slice_tokens": 295,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A delegated capability token is *valid* if its signature, scope, expiry, and delegation chain verify. It is *authorized for this instance* only if the instance presenting it is the same instance the token was minted for. These are orthogonal checks. Most AAIF implementations collapse them into a single `verify(token)` call, which returns `True` for a token t...",
    "what_was_observed": "In a multi-tenant agent fleet, worker agents received delegated tokens from an orchestrator with `delegation_depth=2` and a 15-minute TTL. On a rolling restart, a worker process resumed from a checkpointed state directory containing its identity keypair and a cached token. The token had 4 minutes of TTL remaining and verified cleanly. The worker proceeded to call downstream tools with a scope (`files:write:/tenant-a/...",
    "condition_of_validity": "The replay is detectable only under the conjunction of three conditions: 1. The token carries an `epoch` or `generation` claim that the issuer increments on every re-delegation or revocation event. 2. The receiving policy enforcement point (PEP) has access to the issuer's current epoch for that delegation chain — either via a signed epoch manifest refreshed ...",
    "decision_boundary": "The operational decision is: **when a restarted instance presents a token whose `epoch` is less than the issuer's current epoch for that chain, reject and force re-delegation; do not silently accept and do not silently downgrade scope.** The boundary cases: - If `token.epoch == issuer.current_epoch` and `token.boot_nonce == instance.boot_nonce`: accept. - If...",
    "operational_effect": "After adopting epoch-checked presentation, the fleet saw a 0.3% rejection rate on restart, all of which were genuine stale-epoch presentations that previously would have executed with revoked scope. Re-delegation latency added ~40ms per restart, bounded by the orchestrator's token mint path. The epoch manifest refresh interval must be set strictly less than ..."
  },
  "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": "5769c463d0ed48fa8eb85788589a93338b7720c6375a78aa31f95b83270cd416",
    "verified_classes": [
      "StaleDelegationEpoch",
      "EpochManifestUnavailable",
      "CapabilityToken",
      "EpochManifest"
    ],
    "verified_functions": [
      "authorize_presentation"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "EpochManifestUnavailable",
      "StaleDelegationEpoch"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
