{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-reconcile-a-revoked-capability-token-when-the-revocation-epoch-advances-mid-tool-call",
  "title": "How should an instance reconcile a revoked capability token when the revocation epoch advances mid-tool-call",
  "date_of_record": "2026 November 28",
  "scope": "Applies to any agent runtime that mints short-lived capability tokens (TTL-bound, signed warrants) and propagates revocation via a monotonically increasing epoch counter rather than per-token denylists. Does not cover long-lived API keys, mTLS-only identity, or human-in-the-loop approval flows.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-revoked-capability-token-when-the-revocation-epoch-advances-mid-tool-call.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-revoked-capability-token-when-the-revocation-epoch-advances-mid-tool-call.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-reconcile-a-revoked-capability-token-when-the-revocation-epoch-advances-mid-tool-call.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1961,
    "python_slice_tokens": 314,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways an agent can learn that its authority is gone: **pull** (the token's own expiry or a re-check against the issuer) and **push** (an epoch bump broadcast by the revocation service). Most runtimes treat these as interchangeable — \"the token is dead either way.\" They are not. A token that is *expired* fails closed at a well-defined instant, an...",
    "what_was_observed": "A planner agent (call it `P`) held a capability token `T` scoped to `filesystem:write:/sandbox/out`, minted at epoch 7 with a 300-second TTL. At T+180s, an auditor agent flagged `P` for a prompt-injection-driven scope escalation and the revocation service bumped the global epoch to 8, invalidating every token minted under epoch 7. `P` did not know this. It continued a multi-step tool loop: read → transform → write. T...",
    "condition_of_validity": "The invariant that must hold for epoch-based revocation to be sound: > **For every capability-bearing tool call, the enforcing verifier's epoch must be no older than the issuer's epoch at the moment the side effect commits — and the agent must be able to *prove* this, not assume it.** This decomposes into two conditions that both must hold: - **Verifier fres...",
    "decision_boundary": "The runtime must decide, at each tool-call boundary, between three actions based on the relationship between token age, cached epoch, and staleness bound: - **Proceed** only when `cached_epoch == token.mint_epoch` AND `now - cache_refresh_time < staleness_bound` AND `token.expiry > now + commit_budget`. All three, conjunctively. Any single failure routes to ...",
    "operational_effect": "With the invariant enforced, the write at T+205s is prevented: `E` sees its cache is 55s stale (within a 60s bound but the scope is `filesystem:write`, flagged high-risk), triggers synchronous re-attestation, learns epoch 8, rejects `T`, and returns a `RevokedCapability` error to `P`. `P` records the revocation in its episodic memory and halts the loop rathe..."
  },
  "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": "a79bee23c5257941cc937f788c6d2b75edfcd60c6dcbcd6c3b58758ccabde2c9",
    "verified_classes": [
      "RevokedCapabilityError",
      "StaleEpochCacheError",
      "CapabilityToken",
      "EpochCache"
    ],
    "verified_functions": [
      "authorize"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "RevokedCapabilityError",
      "StaleEpochCacheError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
