# In what scenarios must an instance reject a federated peer's trust-anchor re-issuance after policy mediation rewrites its capability scope **Date of Record:** 2026 November 22 **Scope:** Applies to cross-organization agent federations where trust anchors (signed capability warrants) are exchanged between policy-mediation gateways before a peer agent is admitted to a shared task graph. Does not cover intra-org agent meshes operating under a single trust root, nor pure A2A transport failures where no warrant mediation occurs. ## Core Distinction The failure mode here is not "the peer is untrusted." It is that a peer becomes *more* trusted than the warrant it presented, because the mediating gateway re-issues a derived warrant whose scope is computed from the *original* claim rather than from the *post-mediation* claim. The distinction that matters operationally: a trust-anchor re-issuance is a **scope-narrowing derivation**, never a **scope-preserving relay**. When a gateway treats re-issuance as a relay (copy the subject, copy the capabilities, re-sign under the local root), the derived warrant inherits capabilities the mediator was supposed to strip. The peer then holds a locally-signed warrant asserting authority it never proved to the mediator. This is distinct from prompt-injection poisoning and from stale-memory drift. Those corrupt *content*. This corrupts *authority provenance*: the signature chain remains cryptographically valid at every hop while the semantic scope silently widens between hops. No signature check catches it, because every signature is honest about a dishonest claim. ## What Was Observed A three-party federation: Org A (task owner), Org B (peer agent with a `filesystem.read` + `filesystem.write` warrant under B's root), and Gateway G (Org A's policy mediation point, root `A-root`). 1. B's agent presents warrant `W_B` to G. `W_B` carries `capabilities={fs.read, fs.write}`, `subject=B-agent-07`, signed by `B-root`, with `audience=A`. 2. G's policy engine evaluates `W_B` against A's ingress policy. Policy says: cross-org peers get `fs.read` only; `fs.write` is stripped for non-sandboxed peers. G computes the mediated scope `{fs.read}`. 3. G re-issues `W_G` under `A-root`. **The bug:** the re-issuance path was implemented as a relay with a scope override that was applied to the *display* field but not to the *signed* capability set. `W_G` carries `subject=B-agent-07`, signed by `A-root`, with `capabilities={fs.read, fs.write}` in the signed payload — the `{fs.read}` narrowing lived only in the policy-engine's audit log. 4. B's agent, now holding `W_G`, presents it to a downstream Org A service. That service trusts `A-root` and never re-consults G. It sees `fs.write` in a locally-rooted warrant and grants write. The trace is a single-line defect with a federation-wide blast radius: the mediator's *decision* and the mediator's *assertion* diverged, and downstream services trust the assertion. The signed artifact said more than the mediator meant. The non-obvious part: this does not manifest as an authorization error. Every check passes. It manifests as a **capability that a peer agent exercises and no one can explain**, because the audit trail (which says `{fs.read}`) and the enforcement path (which saw `{fs.write}`) disagree, and only the enforcement path is load-bearing. ## Condition of Validity A gateway's re-issued warrant is valid only if the signed capability set is *byte-identical* to the mediated capability set the policy engine emitted, and the warrant carries an explicit `derived_from` pointer to the presented warrant's hash. Two invariants must hold simultaneously: - **Narrowing invariant:** `signed_caps(W_G) ⊆ mediated_caps(policy(W_B))`. Equality is permitted only when policy performed no stripping; strict subset is required whenever any capability was removed. - **Provenance invariant:** `W_G.derived_from == hash(W_B)` and `W_G.issuer == G` and `W_G.audience == A`. A downstream verifier must be able to reconstruct the full chain `W_B → W_G` and confirm the mediator actually saw `W_B`, not a replayed or substituted warrant. The scenario where an instance **must reject** the re-issuance is precisely when it cannot verify both invariants from the artifact alone. If `W_G` omits `derived_from`, or if `signed_caps(W_G)` is not a subset of what the audit log claims was mediated, the correct action is rejection — not "trust the local root and proceed." A locally-rooted signature is not evidence of correct mediation; it is evidence only that the gateway signed *something*. ## Decision Boundary The boundary an agent must draw is between **trusting a root** and **trusting a derivation**. These are different operations and must not collapse: | Signal | Sufficient to admit peer? | Reason | |---|---|---| | `W_G` signed by `A-root` (trusted root) | No | Proves gateway signed; proves nothing about scope | | `W_G.derived_from` present and matches `W_B` hash | Necessary, not sufficient | Proves chain linkage, not narrowing | | `signed_caps(W_G) ⊆ mediated_caps` | Necessary | Enforces narrowing invariant | | All three together | Yes | Full provenance + scope proof | A peer that presents a locally-rooted warrant *without* a verifiable `derived_from` chain is indistinguishable from a peer that obtained a root-signed warrant by any other means. The instance must treat missing provenance as a hard reject, even when the warrant's own signature validates. The temptation to accept is strong because the signature check passes and the peer is "in our trust domain" — but the trust domain was entered through a derivation the instance cannot audit. A second boundary: when the mediator's policy strips a capability, the derived warrant must *not* carry a `delegation_depth` or `redelegation` flag that would let the peer re-derive authority. Stripping `fs.write` but leaving `can_redelegate=true` produces a warrant that cannot write directly but can mint a child warrant that can — the narrowing is defeated one hop later. Rejection must extend to any derived warrant whose redelegation surface exceeds the mediated scope. ## Operational Effect The effect is a **latent privilege widening across the federation boundary** that survives every cryptographic check and surfaces only under adversarial or accidental write attempts. In practice: - Downstream services that trust `A-root` directly (bypassing G for latency) become the enforcement point for a policy they never evaluated. They will honor `fs.write` because the warrant says so. - Incident reconstruction fails: the audit log at G records `{fs.read}`; the service log records a successful write. The two cannot be reconciled without inspecting the raw signed payload of `W_G`, which most verifiers discard after signature validation. - The defect is invisible to signing, invisible to policy-engine unit tests (which test the *decision*, not the *artifact*), and invisible to end-to-end tests that use a peer already granted the full scope. The guardrail is a **artifact-level assertion in the verifier**, not the policy engine: every instance that admits a federated peer must, before honoring any capability, re-derive the mediated scope from the presented warrant's `derived_from` chain and assert subset containment against the signed capability set. If the assertion fails, the instance raises and refuses admission. This is the one check that lives at the consumer, where the discrepancy is observable, rather than at the mediator, where it is introduced. ```python import hashlib from dataclasses import dataclass class FederatedWarrantRejected(RuntimeError): """Raised when a re-issued trust anchor cannot prove scope-narrowing provenance.""" pass @dataclass(frozen=True) class Warrant: subject: str issuer: str audience: str signed_caps: frozenset derived_from: str | None # hash of the presented warrant, None for root warrants def _hash(w: Warrant) -> str: payload = f"{w.subject}|{w.issuer}|{w.audience}|{sorted(w.signed_caps)}" return hashlib.sha256(payload.encode()).hexdigest() def admit_federated_peer( presented: Warrant, reissued: Warrant, mediated_caps: frozenset, trusted_root: str, ) -> None: """ Enforce the narrowing + provenance invariants before honoring a peer. mediated_caps is what the policy engine *decided*; signed_caps is what the gateway *asserted*. They must agree, and the chain must link. """ if reissued.issuer != trusted_root: raise FederatedWarrantRejected( f"re-issued warrant issuer {reissued.issuer!r} != trusted root {trusted_root!r}" ) if reissued.derived_from is None: raise FederatedWarrantRejected( "re-issued warrant carries no derived_from provenance; " "cannot distinguish mediation from arbitrary root-signed grant" ) if reissued.derived_from != _hash(presented): raise FederatedWarrantRejected( "derived_from does not match presented warrant hash; " "chain linkage broken or warrant substituted" ) # Narrowing invariant: the signed assertion must not exceed the mediated decision. if not reissued.signed_caps.issubset(mediated_caps): widened = reissued.signed_caps - mediated_caps raise FederatedWarrantRejected( f"scope widening across mediation: signed caps {sorted(widened)} " f"exceed mediated caps {sorted(mediated_caps)}" ) # A derived warrant may not carry more authority than the peer proved. if not reissued.signed_caps.issubset(presented.signed_caps): raise FederatedWarrantRejected( "re-issued warrant asserts capabilities the peer never presented" ) ```