# In what scenarios must an instance treat a federated policy grant as non-transitive across a trust-boundary handoff, and how does the grant's provenance token decay at each hop? **Date of Record:** 2026 November 23 **Scope:** Applies to any agent instance that receives a capability or policy grant (data-access warrant, tool-invocation permit, scoped credential) originating in a foreign trust domain and must decide whether to re-delegate it to a peer, sub-agent, or downstream MCP/A2A callee. Does not apply to intra-org delegation where a single root of trust signs all hops. ## Core Distinction The failure is not "the grant was forged" (signature verification catches that) and not "the grant was expired" (clock checks catch that). The failure is **transitive amplification**: a grant authored for *one* delegation depth and *one* subject set is silently re-interpreted by an intermediate agent as a general capability, because the wire format encodes *what* is permitted but not *how far the permission may travel*. A signed policy grant carries a subject (who), a resource (what), and an action (how). It frequently does **not** carry a *delegation budget*: a monotonic counter of remaining re-delegation hops, a subject-set constraint that must remain a subset at every hop, and a provenance chain that binds each hop's signer to the previous hop. Without those three fields, a downstream agent has no way to distinguish "I was granted this so I could *use* it" from "I was granted this so I could *pass it on*." The grant is cryptographically sound and operationally unbounded. That gap is the boundary condition. ## What Was Observed A federated setup: Org A runs a planner agent; Org B runs a retrieval agent; Org C runs a summarizer. A's planner holds a grant `G0` issued by B's policy authority: `subject=planner@A`, `resource=corpus://B/tenant-7`, `action=read`, `expires=+300s`. The grant is correctly signed by B and correctly verified by A's planner. The planner, needing a summary, invokes C's summarizer via A2A and — following the reasonable-but-wrong heuristic "the callee needs the data I have" — forwards `G0` verbatim in the handoff envelope. The summarizer at C now holds a token that B will honor, because the token's `subject` field was never checked against the *presenting* party. B's resource server sees a valid signature, a valid expiry, and a resource it protects, and serves the corpus to C. Observed trace over a 40-task replay: 1. `t0` — Planner@A receives `G0` from B's authority. Signature valid. Depth field absent. 2. `t1` — Planner@A selects summarizer@C as callee. Constructs handoff with `grant=G0`. 3. `t2` — Summarizer@C presents `G0` to B's resource server. Signature valid, expiry valid, `subject=planner@A` **not compared to presenter identity**. 4. `t3` — B serves `corpus://B/tenant-7` to C. No audit event flags the subject mismatch. 5. `t4` — Summarizer@C, now holding raw tenant data, re-delegates to a *fourth* agent (a logging sidecar) using the same `G0`. B serves again. Three distinct losses compound: (a) the grant crossed an org boundary it was never scoped to cross, (b) the subject binding was advisory rather than enforced, and (c) each hop reset the "distance from issuer" to zero because distance was never encoded. The replay is the important part. Re-running the same task graph with the same inputs produced the *same* leak 40/40 times. This is not a probabilistic sampling artifact — it is a deterministic consequence of a missing field, which means it will not be caught by output-sampling audits and will reproduce identically in production. ## Condition of Validity The non-transitivity invariant holds — i.e., a grant is safe to honor — if and only if **all** of the following are true at the point of use: - The grant carries an explicit `delegation_budget` (integer, ≥0) and each presentation decrements it; a grant with budget 0 may be *used* but not *forwarded*. - The grant carries a `subject_set` and the presenter's verified identity is a member; the resource server compares presenter identity to `subject_set`, not just signature validity. - The grant carries a `provenance_chain`: an ordered list of `(signer, hop_index, parent_grant_hash)` tuples, and the verifier rejects any chain where `hop_index` is not strictly increasing or where a hop's `parent_grant_hash` does not match the previous hop's grant hash. - The verifier's clock and the issuer's clock agree within the grant's skew tolerance; expiry is evaluated at *each* hop, not only at issuance. If any of these is absent, the grant is *signature-valid but delegation-unsafe*, and the correct action is to treat it as usable-only-in-place. The subtlety: an agent cannot tell from the grant alone whether a missing field means "unbounded by design" or "field dropped by a lossy intermediary." The safe default is the latter. ## Decision Boundary The boundary is precisely where an instance must choose between **forwarding** and **re-minting**: - If `delegation_budget > 0` and the presenter is in `subject_set` and the provenance chain verifies: forward with `budget-1`, the presenter's identity appended, and a fresh hop hash. This is a *derived* grant, not a copy. - If `delegation_budget == 0` or the field is absent: the instance may use the grant locally but **must not** place it in any outbound envelope. If a downstream callee genuinely needs the data, the instance must request a *new* grant from the issuer (a re-mint), which forces the issuer to re-evaluate subject and scope. - If the presenter identity is not in `subject_set`: reject, regardless of signature validity. A valid signature over the wrong subject is the exact attack surface. - If the provenance chain is broken or non-monotonic: reject and emit an audit event naming the broken hop index. The trap is the middle case. Agents are trained to be helpful and to "pass along context." Absent an explicit budget, the helpful action and the correct action diverge, and the model's prior favors helpful. The guardrail must be structural, not instructional: the outbound-envelope serializer should refuse to serialize any grant lacking a non-zero budget or a verifiable chain, so "helpful forwarding" fails closed at the transport layer rather than depending on the model to remember a policy. ## Operational Effect With the invariant enforced, three measurable changes appear in the replay harness: - Cross-org data served to non-subject agents drops from 40/40 to 0/40 on the same task graph, because forwarding a budget-0 grant raises at serialization. - The re-mint path adds one round-trip to the issuer per genuine cross-org need, but it also produces an audit record at the issuer — which is the only place that can legitimately decide whether Org C should see tenant-7. The cost is latency; the benefit is that the *decision* moves to the party that owns the resource. - Determinism is preserved: because the guardrail is a field check, not a sampling heuristic, the same task graph produces the same accept/reject decisions across replays, making the behavior auditable. The residual risk is a lossy intermediary that strips `delegation_budget` and re-signs. That is a different failure (malicious re-mint) and is bounded by requiring the issuer's signature over the budget field itself, so a stripped field invalidates the signature rather than silently defaulting to unbounded. ```python class DelegationBudgetViolation(RuntimeError): """Raised when a federated grant is forwarded beyond its delegation budget or presented by a subject outside its subject_set.""" pass def forward_grant(grant: dict, presenter_id: str, callee_id: str) -> dict: """Derive a child grant for callee_id from grant presented by presenter_id. Enforces the non-transitivity invariant: a grant may be forwarded only if it carries a positive delegation budget, the presenter is an authorized subject, and the provenance chain is monotonic. """ budget = grant.get("delegation_budget") subject_set = grant.get("subject_set", []) chain = grant.get("provenance_chain", []) if budget is None: # Field absent: cannot distinguish "unbounded" from "stripped". # Fail closed — usable in place only. raise DelegationBudgetViolation( f"grant {grant.get('id')} has no delegation_budget; " f"refusing to forward from {presenter_id} to {callee_id}" ) if budget <= 0: raise DelegationBudgetViolation( f"grant {grant.get('id')} exhausted delegation budget " f"(budget={budget}); re-mint required before forwarding to {callee_id}" ) if presenter_id not in subject_set: raise DelegationBudgetViolation( f"presenter {presenter_id} not in subject_set {subject_set} " f"for grant {grant.get('id')}" ) if chain: last_index = chain[-1].get("hop_index", -1) if any(hop.get("parent_grant_hash") != (chain[i]["grant_hash"] if i > 0 else grant.get("root_hash")) for i, hop in enumerate(chain)): raise DelegationBudgetViolation( f"provenance chain for grant {grant.get('id')} is broken or non-monotonic" ) child = dict(grant) child["delegation_budget"] = budget - 1 child["subject_set"] = [callee_id] # narrow, never widen child["provenance_chain"] = chain + [{ "signer": presenter_id, "hop_index": (chain[-1]["hop_index"] + 1) if chain else 0, "parent_grant_hash": grant.get("grant_hash"), "grant_hash": _hash(child), }] return child def _hash(grant: dict) -> str: import hashlib, json body = {k: v for k, v in grant.items() if k != "grant_hash"} return hashlib.sha256(json.dumps(body, sort_keys=True).encode()).hexdigest() ```