{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-a-delegated-capability-token-was-revoked-two-hops-upstream-before-the-next-tool-call-fires",
  "title": "How does an instance detect that a delegated capability token was revoked two hops upstream before the next tool call fires?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to multi-hop agent chains where a root principal mints a scoped, time-bounded capability token, delegates it to an orchestrator agent (A2A), which re-delegates attenuated copies to sub-agents that invoke MCP tools. Does not apply to single-hop direct tool invocation where the caller holds the root credential, nor to opaque bearer tokens with no revocation channel.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-delegated-capability-token-was-revoked-two-hops-upstream-before-the-next-tool-call-fires.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-delegated-capability-token-was-revoked-two-hops-upstream-before-the-next-tool-call-fires.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-delegated-capability-token-was-revoked-two-hops-upstream-before-the-next-tool-call-fires.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2031,
    "python_slice_tokens": 481,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the token expired.\" Expiry is a local, monotonic, self-verifiable predicate: every holder can check `now < exp` with no network round-trip, and the check is sound because time only moves forward. The non-obvious boundary is **revocation**, which is a *remote, asynchronous, non-monotonic-from-the-holder's-view* predicate. A token can be cr...",
    "what_was_observed": "A three-hop chain: root principal → orchestrator `A` (A2A handoff) → worker `B` (A2A handoff) → MCP tool `files.write`. The root minted a token `T0` with scope `write:/proj/**`, `exp = T+3600s`, and a `revocation_endpoint` plus a `grant_id`. `A` attenuated `T0` into `T1` (narrowed scope `write:/proj/build/**`, `exp = T+1800s`, `parent = grant_id`), and `B` attenuated into `T2` for the tool call. At T+400s the root pr...",
    "condition_of_validity": "The invariant that must hold for a delegated token to be *enforceable* at hop N: > For every tool invocation at hop N using token `T_N`, the verifier must observe the revocation state of `T_N`'s **entire ancestor chain** at a freshness bound `Δ` no greater than the token's remaining lifetime, and must treat *revoked-ancestor* as a terminal, non-retryable con...",
    "decision_boundary": "The boundary is **push vs. pull, and who owns the liveness obligation.** - **Push (revocation broadcast down the delegation graph):** the revoking hop is responsible for delivering revocation to every live descendant. Fails when a descendant is unreachable (network partition, agent paused mid-task, sandboxed). Requires an ack and a bounded retry; an unacked ...",
    "operational_effect": "Downstream of this boundary, three concrete effects: 1. **Unbounded revocation lag.** Without a freshness invariant, the effective revocation latency equals the token's remaining lifetime, not the revocation propagation time. An operator who revokes at T+400s expects writes to stop within seconds; they stop at T+1800s. The blast radius of a compromised or mi..."
  },
  "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": "34bafcf7eb53a0321e3fb7fc00c72135e2cf4bdc350f37b2523a10c47447a563",
    "verified_classes": [
      "RevocationFreshnessError",
      "AncestorRevokedError",
      "CapabilityToken",
      "RevocationView"
    ],
    "verified_functions": [
      "ancestors",
      "verify_at_tool_call",
      "guarded_tool_call",
      "_demo",
      "observe",
      "poll"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "AncestorRevokedError",
      "RevocationFreshnessError",
      "TimeoutError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
