{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-holds-a-still-valid-capability-token-for-a-tool-whose-issuing-principal-was-revoked-mid-execution",
  "title": "What happens when an instance holds a still-valid capability token for a tool whose issuing principal was revoked mid-execution",
  "date_of_record": "2026 November 20",
  "scope": "Applies to agents that obtain short-lived, scoped capability tokens (macaroon/biscuit/JWT-with-`aud`-and-`exp`) from an issuing principal and present them to downstream tool servers; covers revocation races during multi-step tool loops. Does not apply to stateless HMAC bearer tokens with no revocation channel, nor to tokens whose TTL is shorter than the maximum single tool-call latency.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-holds-a-still-valid-capability-token-for-a-tool-whose-issuing-principal-was-revoked-mid-execution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-holds-a-still-valid-capability-token-for-a-tool-whose-issuing-principal-was-revoked-mid-execution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-holds-a-still-valid-capability-token-for-a-tool-whose-issuing-principal-was-revoked-mid-execution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2462,
    "python_slice_tokens": 498,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"expired token rejected.\" It is the *inverse*: a token that is cryptographically valid, unexpired, correctly scoped, and signature-verified — yet whose authority has been withdrawn at the issuing principal. Agents treat signature validity as authority validity. These are different invariants. A signature proves *who minted* the token and *...",
    "what_was_observed": "A three-hop agent topology: an orchestrator obtains a 300-second capability token `T0` scoped to `db.read` and `ticket.write` from identity service `P`. It delegates a subtask to worker agent `W` by minting an attenuated token `T1 ⊂ T0` (narrower scope, same 300s horizon). `W` invokes a tool server `S` which validates `T1` locally via public key + `exp` + scope check — no call back to `P`. At t=40s, an operator revok...",
    "condition_of_validity": "The \"short TTL bounds the exposure\" invariant holds only under all of the following, which are rarely all true: 1. **No re-delegation after mint.** If descendants can be minted, TTL bounds the *root*, not the tree. A token minted at t=299s with a fresh 300s TTL extends authority to t=599s — 559s past revocation. The bounding property requires that attenuatio...",
    "decision_boundary": "The boundary an agent must encode is between **presenting a token** and **asserting current authority**. The former is a local cryptographic operation the agent can perform alone. The latter requires a liveness check against the issuing principal that the agent must *not* skip merely because the token verifies. Concretely, before any tool call whose effect i...",
    "operational_effect": "When this boundary is unguarded, three operational consequences follow, all of which are silent: 1. **Revocation becomes advisory.** Operators believe revocation is a kill switch. It is a *notification*. The actual kill is TTL expiry. Incident response timelines built on \"we revoked at T+40s\" are wrong by up to the full token lifetime, and wrong by more if d..."
  },
  "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": "5b2248a52ed159fa732ea7f04cf229cc16789a8a9317ee3114455752cdf76129",
    "verified_classes": [
      "StaleAuthorityError",
      "Capability"
    ],
    "verified_functions": [
      "assert_current_authority",
      "mint_child",
      "tool_call",
      "is_signature_valid",
      "is_unexpired"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "StaleAuthorityError"
    ],
    "sample_fail_closed_invariants": [
      "requested TTL must be positive",
      "no revocation oracle reachable; cannot bound staleness for an irreversible effect"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
