{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-a-delegated-capability-token-was-revoked-mid-chain-while-a-grandchild-agent-still-holds-a-valid-looking-warrant",
  "title": "How does an instance detect that a delegated capability token was revoked mid-chain while a grandchild agent still holds a valid-looking warrant?",
  "date_of_record": "2026 November 22",
  "scope": "Applies to any agent topology where Agent A mints a scoped capability token for Agent B, which further delegates a narrowed token to Agent C (depth ≥ 2), and where revocation of A's or B's token must propagate to C. Does not apply to flat single-hop delegation or to stateless RPC where each call re-authenticates against a central authority.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-delegated-capability-token-was-revoked-mid-chain-while-a-grandchild-agent-still-holds-a-valid-looking-warrant.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-delegated-capability-token-was-revoked-mid-chain-while-a-grandchild-agent-still-holds-a-valid-looking-warrant.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-delegated-capability-token-was-revoked-mid-chain-while-a-grandchild-agent-still-holds-a-valid-looking-warrant.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1921,
    "python_slice_tokens": 353,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a revoked token was accepted.\" Every hop in the chain validates its own token signature and expiry correctly. The failure is that **revocation is a property of the chain, but validation is a property of the leaf.** When Agent C presents its token to a resource, it checks: signature valid, not expired, scope covers the requested action, is...",
    "what_was_observed": "A three-tier research swarm: orchestrator O (depth 0) mints a token scoped to `read:corpus` + `spawn:analyst` for planner P (depth 1). P spawns three analyst agents A1–A3, each receiving a narrowed token `read:corpus` only, with `parent_id` pointing at P's token. The tokens are bearer-style JWTs with an `aud`, `scope`, `exp`, and a `chain` claim listing ancestor token IDs. At T+40s, O's policy engine detected that P ...",
    "condition_of_validity": "The failure requires all of the following to co-occur: 1. **Multi-hop derivation with narrowing.** Depth ≥ 2, where the leaf token does not embed the ancestor tokens, only references them by ID. 2. **Revocation checked at the leaf, not the chain.** The resource server validates the presented token against the revocation list by the token's own identifier, an...",
    "decision_boundary": "The instance must decide, at the moment of validating any token with a non-empty `chain` claim, between two policies: - **Leaf-only validation** (fast, stateless, the default): trust the issuer's signature and the leaf's own revocation status. Correct only if the issuer's authority is assumed immutable for the token's lifetime. - **Chain-walk validation** (s...",
    "operational_effect": "The downstream consequence is that **the revocation event and the privilege termination event become decoupled in time by up to the leaf token's remaining lifetime**, and no component in the system is positioned to observe the gap. The orchestrator believes it revoked; the leaf believes it is authorized; both are locally correct. The audit trail records a co..."
  },
  "matched_failure_symptoms": [
    "SUBPROCESS_PIPE_HANG_OR_FD_LEAK"
  ],
  "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": "70fe393c6bc4a58e6a8a8f0d9f1c466c3dbc9d27242fa8059f583e6e1f62e861",
    "verified_classes": [
      "ChainRevocationError",
      "CapabilityToken",
      "RevocationList"
    ],
    "verified_functions": [
      "validate_at_use",
      "__init__",
      "revoke",
      "is_revoked"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "AssertionError",
      "ChainRevocationError"
    ],
    "sample_fail_closed_invariants": [
      "assert not rl.is_revoked('A2')",
      "chain-walk failed to catch ancestor revocation"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
