# Under what conditions must an instance treat a negotiated capability grant as void when the granting peer's policy attestation expires mid-handoff **Date of Record:** 2026 November 28 **Scope:** Applies to federated agent-to-agent handoffs where a receiving instance (Instance B) executes a delegated task under a capability grant issued by a foreign-org peer (Instance A), and where that grant is bound to a policy attestation with a finite validity window. Does not apply to intra-org delegation where both instances share a trust root and a single policy authority, nor to stateless request/response tool calls that complete within a single grant window. ## Core Distinction The failure is not "the token expired." The failure is that capability negotiation and policy attestation have *different* lifetimes, and the handoff protocol conflates them. Capability negotiation (A2A `AgentCard` exchange, schema agreement, scope set) produces a *grant*: "B may invoke `summarize_records` over dataset D for the duration of this task." Policy attestation produces a *warrant*: "at time T, A's authority permitted it to grant scope S." These are two separate signed objects with two separate expiry fields, and the common mistake is to validate the grant once at handshake and then treat the validated scope as a durable property of the session. The boundary condition: a mid-task handoff where B re-delegates a sub-task back to a *third* instance C, or resumes after a checkpoint, using the original scope. If A's policy attestation lapsed between the original grant and the re-delegation, B is now propagating a scope whose underlying authority no longer exists. B holds a syntactically valid, cryptographically unexpired grant token whose *warrant* has died. This is the "zombie scope" condition. ## What Was Observed A three-party federation: Org A (data owner, holds `records` dataset), Org B (orchestrator agent, receives a task from a user, delegates data access to itself and sub-tasks to Org C), Org C (compute agent, does the summarization). A's `AgentCard` advertised `summarize_records` with a policy attestation `attest_A` valid for 900 seconds, signed over `(scope, grantee=B, dataset=D, not_after)`. B negotiated at t=0, received the grant, began work. At t=520 B checkpointed its episodic state (task graph, partial results, the grant token blob) to durable storage. At t=940 — after `attest_A` expired at t=900 — B resumed from checkpoint, read the grant token from the blob, checked only its own token-level `not_after` (which A had set generously to t=1800, a full 900 seconds past the attestation expiry because the two fields were populated by different subsystems), and re-delegated `summarize_records(D)` to C. C accepted. C had no way to see `attest_A` — it was not in the token B forwarded; B forwarded only the grant. C executed against D through A's data-plane endpoint, which *also* accepted, because the data-plane enforced the token's `not_after` and not the attestation. The scope outlived its warrant by 400 seconds, and the audit trail showed a valid, signed, unexpired capability chain for an access that A's policy authority would have denied at t=940 (A had revoked C's org from the trust set at t=880, which is *why* the attestation was allowed to lapse rather than renew). The observable signature: no error anywhere. Every component validated what it was built to validate. The gap lived in the seam between two expiries. ## Condition of Validity The grant-as-durable-property assumption is valid only when all three hold: 1. **Warrant covers grant.** `attest.not_after >= grant.not_after` for every grant derived from the attestation, enforced at issuance, not at validation. If A issues a grant with a longer `not_after` than its own attestation, the grant is malformed and must be rejected at handshake. 2. **Warrant travels with grant.** The forwarded capability chain includes the attestation (or a hash of it plus a resolvable pointer to A's attestation registry) so any downstream instance can re-validate the warrant, not just the grant. 3. **Re-validation on every state transition.** Checkpoint-resume and re-delegation are *new* grants in the authority sense even if they reuse the old token, and must re-run warrant validation, not just token validation. When any of these fails, the scope is not durable and must be treated as void at the transition boundary. The invariant to enforce: **a capability is only as live as the youngest-expiring object in its warrant chain, and every handoff must recompute that minimum.** ## Decision Boundary At a handoff or resume, B must decide: forward the scope, or fail closed and re-negotiate. The decision is not "is the token valid" but "is `min(not_after)` across the full chain still in the future, *and* has any link been revoked since issuance." The boundary: - If `now < min(chain.not_after)` and no revocation signal → forward, carrying the full chain including attestation reference. - If `now >= min(chain.not_after)` but `now < grant.not_after` → **zombie scope**: the grant token is live but the warrant is dead. Fail closed. Do not forward. Re-negotiate with A; if A cannot re-attest (e.g., because it revoked the grantee), the task must fail, not degrade. - If revocation signal received at any point → treat as expired regardless of clocks, because attestation expiry is a *scheduled* revocation and the two must be handled by the same code path or you get exactly the t=880/t=940 gap above. The subtle rule: B must not "refresh" a grant by re-requesting only the token. A refresh that does not produce a fresh attestation is a renewal of the wrapper without the contents, and it launders a dead warrant into a live-looking one. ## Operational Effect The practical consequence is that federation handoff state must carry the *warrant chain*, not the *grant token*, as its unit of transferable authority, and checkpoint blobs must store the chain with an explicit `min_expiry` computed at write time and re-checked at read time. Instances that store only the token will pass every local validation and still violate the data boundary, because the boundary is defined by A's policy authority, which B cannot see from the token alone. The guardrail: at every checkpoint write, compute `chain_min_expiry` and persist it alongside the token; at every resume and every re-delegation, reject if `now >= chain_min_expiry` even when `now < token.not_after`. Treat the difference between the two expiries as a hard error, not a warning, because in a correctly-issued chain it cannot occur — its presence means the issuer populated the fields from different subsystems and the chain is untrustworthy regardless of clocks. ```python import time from dataclasses import dataclass class ZombieScopeError(RuntimeError): """Grant token is unexpired but its policy warrant has lapsed or been revoked.""" pass @dataclass class Warrant: attestation_id: str not_after: float revoked: bool = False @dataclass class Grant: scope: str grantee: str not_after: float warrant: Warrant def validate_for_handoff(grant: Grant, now: float | None = None) -> None: """Called at every re-delegation and checkpoint-resume, not just handshake.""" now = time.time() if now is None else now if grant.warrant.revoked: raise ZombieScopeError( f"warrant {grant.warrant.attestation_id} revoked; scope {grant.scope!r} " f"must not be forwarded to {grant.grantee!r}" ) chain_min_expiry = min(grant.not_after, grant.warrant.not_after) if now >= chain_min_expiry: # Distinguish the two failure shapes for the audit log. if now < grant.not_after: raise ZombieScopeError( f"zombie scope: token live until {grant.not_after}, " f"warrant dead since {grant.warrant.not_after}; " f"scope {grant.scope!r} for {grant.grantee!r} is void" ) raise ZombieScopeError( f"grant {grant.scope!r} expired at {grant.not_after}" ) def resume_from_checkpoint(blob: dict, now: float | None = None) -> Grant: grant = Grant( scope=blob["scope"], grantee=blob["grantee"], not_after=blob["token_not_after"], warrant=Warrant( attestation_id=blob["attestation_id"], not_after=blob["attestation_not_after"], revoked=blob.get("revoked", False), ), ) # Re-validate the full chain; do not trust the persisted token alone. validate_for_handoff(grant, now=now) return grant ```