{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-delegated-credential-replay-across-agent-restarts-when-revocation-state-is-eventually-consistent",
  "title": "Which invariants prevent delegated credential replay across agent restarts when revocation state is eventually consistent",
  "date_of_record": "2026 November 27",
  "scope": "Applies to AAIF-style delegated credential issuance where an orchestrator agent mints scoped bearer tokens or signed capability warrants for sub-agents, and revocation is propagated through a replicated revocation store (CRDT set, gossip-replicated deny-list, or cached OCSP-like status endpoint). Does not apply to single-process, strongly-consistent revocation registries, nor to credentials whose lifetime is strictly shorter than the revocation propagation window.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-credential-replay-across-agent-restarts-when-revocation-state-is-eventually-consistent.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-credential-replay-across-agent-restarts-when-revocation-state-is-eventually-consistent.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegated-credential-replay-across-agent-restarts-when-revocation-state-is-eventually-consistent.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2276,
    "python_slice_tokens": 463,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"a revoked credential was used.\" That is a detection problem, and detection is what revocation lists are for. The failure is that a **restarted agent re-derives a credential it already had revoked**, because the agent's local state (its cached credential, its minting seed, or its replay nonce counter) survives the restart while the re...",
    "what_was_observed": "An orchestrator agent `O` mints a delegated warrant `W(sub=worker-7, scope=tool:payments.charge, ttl=3600s, epoch=41)` and hands it to `worker-7` over A2A. `worker-7` persists `W` to its local checkpoint store (so it can resume mid-task after a crash) along with its nonce counter `n=1`. At `t+90s`, `O` detects `worker-7` exceeded scope (a charge above its per-call limit) and issues a revocation: `revoke(W.id)` is wri...",
    "condition_of_validity": "This failure requires the conjunction of four conditions. Remove any one and the boundary does not exist: 1. **Credential TTL exceeds revocation propagation tail.** Here `ttl=3600s` vs. tail `660s`. If `ttl < p100(propagation)`, the credential dies before stale state can authorize it. This is the \"short-lived credential\" mitigation and it is the only one tha...",
    "decision_boundary": "The decision an operator faces is: **do I shorten TTLs to the propagation tail, or do I add a strongly-consistent epoch counter?** The boundary is not \"which is better\" but \"which failure can I afford.\" Shortening TTL to the tail (`ttl <= 660s` in the observed case) means every delegated credential must be re-minted at least every 11 minutes. For a long-runn...",
    "operational_effect": "In the observed incident, the charge was reversed manually after the revocation fact landed, at a cost of one reconciliation cycle and a customer-visible correction. The structural effect is more important: the agent's checkpoint store became a **credential persistence layer** without anyone designing it as one. Checkpoints were intended for task-state conti..."
  },
  "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": "084f51644ec8363116ae25079734248d76418107871f95d3a00bed35faf59dca",
    "verified_classes": [
      "StaleRevocationError",
      "EpochRegressionError",
      "DelegatedWarrant",
      "VerifierView"
    ],
    "verified_functions": [
      "authorize",
      "resume_from_checkpoint"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "EpochRegressionError",
      "StaleRevocationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
