# How should an instance detect that a trust-brokered capability grant survived federation but its provenance did not **Date of Record:** 2026 December 1 **Scope:** Applies to any agent instance executing a task that requires a capability (tool, data scope, or sub-agent invocation right) obtained through a cross-organization trust broker in an A2A/MCP federation, where the executing agent is not the same instance that negotiated the grant. Does not apply to single-org deployments where the capability issuer and the execution principal share a trust root, nor to purely local tool calls authorized by the host runtime. ## Core Distinction The failure this record isolates is **not** an authorization denial. A denied grant is loud: the broker returns an error, the requesting agent halts, and the failure is observable at the call site. The dangerous boundary is the opposite — a grant that is *valid at the capability layer but orphaned at the provenance layer*. The bearer token, signed warrant, or capability descriptor arrives intact and verifies against the broker's public key. The tool executes. The side effect lands. What is missing is the chain of *who authorized this, on whose behalf, and under what delegation depth* — because that chain was carried in a field that the broker's translation layer silently dropped when it re-signed the grant for the downstream org. The invariant that breaks is: **a capability grant is only as trustworthy as the provenance envelope that travels with it, and re-signing at a trust boundary is exactly where that envelope is lost.** Signature validity and provenance completeness are independent properties. A verifier that checks only the former will accept grants whose delegation chain has been truncated to depth zero. ## What Was Observed A three-hop federation: Org A's orchestrator agent (instance `orch-a`) needs a document-classification sub-agent owned by Org C, but A and C have no direct trust relationship. Org B operates a trust broker that both A and C trust. The flow: 1. `orch-a` requests `classify_document` from B, presenting a delegation warrant `W_A` signed by A's authority, scoped to `doc:*:read` and `classify:invoke`, with `max_delegation_depth=2`. 2. B validates `W_A`, checks A's trust score against its policy, and issues a *brokered* capability `C_B` for C's endpoint. In the process B re-signs the grant under its own key (B is the trust anchor C will check) and, per its translation schema, populates the `subject` field with `orch-a`'s instance ID but **does not forward `W_A` or the `delegation_chain` array** — its schema for `C_B` has no field for it. 3. `orch-a` invokes C's sub-agent with `C_B`. C verifies `C_B` against B's key: valid, unexpired, scope matches. C executes. 4. The sub-agent at C, per its own policy, must log the *originating principal* for audit and must refuse if the delegation depth exceeds its own limit of 1. It reads `delegation_chain` from the grant. The field is absent. Its parser defaults absent to `[]` and depth to `0`. The call succeeds. The document is classified. The audit record at C says "invoked by `orch-a` under brokered grant from B, depth 0." The actual authorization path was A → B → C with a depth-2 warrant from A's authority. **The depth-0 default meant C's depth limit of 1 was never exercised** — a warrant that legitimately permitted two hops was recorded as zero hops, and any policy that keys on depth (rate limits, data-sensitivity ceilings, re-export restrictions) evaluated against the wrong number. The non-obvious part: no component errored. The broker's schema was internally consistent. The verifier's check was correct for what it could see. The sub-agent's default was a reasonable defensive choice for *absent* data. The failure is a **composition of three locally-correct decisions** across a trust boundary, and it is invisible in every individual log. ## Condition of Validity The provenance-orphaning failure is live only under a specific conjunction, and it is worth stating precisely because it bounds where the guardrail is needed: - **The capability is re-signed at a trust boundary by an intermediary that is not the original authority.** Direct A→C grants (no broker) do not exhibit this, because the signer and the authorizing principal coincide. - **The intermediary's grant schema is narrower than the upstream warrant schema.** If B forwarded the full warrant verbatim inside `C_B`, the chain survives. The loss requires a schema mismatch — which is the normal case, because brokers expose a normalized capability shape and upstream warrants carry org-specific delegation metadata. - **The downstream verifier treats absent provenance as empty rather than as unknown.** A verifier that *rejects* grants lacking a `delegation_chain` field is safe by construction (fail-closed). A verifier that defaults absent to `[]` and proceeds is the vulnerable configuration. - **At least one downstream policy decision depends on provenance fields** (depth, originating principal, scope-narrowing history). If C's policy ignores provenance entirely, the loss is an audit-quality defect, not an authorization defect. When all four hold, the system will accept and execute grants whose effective authorization is strictly broader than what any single party in the chain believes it granted. ## Decision Boundary The decision an instance must make when it receives a brokered grant is: **treat missing provenance as a hard failure, or as a soft default?** The operational rule this record establishes: > A verifier MUST distinguish "provenance field absent" from "provenance field present and empty." Absent provenance on a re-signed brokered grant is a *verification failure*, not a *depth-zero grant*. The two states are semantically different and must not collapse into the same code path. Concretely, the boundary is between two implementation shapes: - **Vulnerable:** `depth = grant.get("delegation_chain", []) and len(grant["delegation_chain"]) or 0` — absent and empty both yield 0, execution proceeds. - **Correct:** presence check first; if the grant was issued by a broker (signer ≠ originating authority, detectable because the grant carries a `brokered_by` or equivalent issuer-role field), the `delegation_chain` field is *required*. Absence raises. Empty-but-present is a legitimate depth-0 direct grant and may proceed. The second shape requires the verifier to know whether the grant is brokered. If the broker does not stamp issuer-role onto the grant, the downstream verifier cannot make this distinction at all — which is itself the finding: **the broker's grant schema must carry an explicit `brokered_by` marker, and the downstream verifier must branch on it.** A grant schema that cannot express "this was re-signed by an intermediary" cannot support fail-closed provenance checking, regardless of what the verifier does. The second boundary: when a verifier *does* find a truncated chain, it must not attempt to reconstruct depth from the warrant it can't see. Reconstruction is guesswork. The correct action is to reject and re-request through a path that preserves provenance (direct trust establishment, or a broker configured to forward the warrant as an opaque signed blob inside the grant). Silent reconstruction produces a plausible-looking depth that is not the authorized depth. ## Operational Effect The blast radius of provenance orphaning is concentrated in policies that key on delegation depth and originating principal, and these are precisely the policies that exist to bound *re-export* and *sensitivity escalation* in federations: - **Depth ceilings never fire.** A warrant capped at depth 2 that gets re-brokered twice more downstream still reads as depth 0 at each hop, so a downstream org's depth-1 limit is never triggered. The grant effectively has unbounded delegation depth as long as every hop is a schema-narrowing broker. - **Originating-principal audit is falsified, not merely incomplete.** The audit record names the immediate caller (`orch-a`) as if it were the originating authority. Forensic reconstruction after an incident will attribute the action to the wrong org. - **Scope-narrowing history is lost.** If A's warrant was narrowed at B (say, `doc:*` → `doc:public:*`), and the narrowing was recorded only in the dropped chain, C sees the broker's grant scope but not the fact that it was narrowed from a broader original — and cannot detect if a *later* re-broker widens it back. The guardrail that bounds this is a **provenance-completeness invariant enforced at the verifier, backed by a schema obligation at the broker**: every brokered grant carries `brokered_by` and a `delegation_chain` field that is *required-present* (may be empty only for direct grants, which are marked `brokered_by: null`). The verifier fails closed on absent-when-brokered. This is cheap to implement and does not require the broker to forward the upstream warrant verbatim — only to preserve the chain metadata. The expensive alternative (forward the full signed warrant as an opaque blob) is stronger but requires brokers to treat upstream warrants as non-interpretable, which many normalized-capability brokers resist. The residual risk after the guardrail: a broker that *does* populate `delegation_chain` but populates it with a truncated (not absent) chain — e.g., forwarding only the immediate parent rather than the full ancestry. This is not caught by presence checks and requires the chain entries to be individually signed and linked (each entry names its parent's signature hash), so a truncated chain fails linkage verification. That is the next boundary, and it is a schema obligation on the chain entries themselves, not on the grant envelope. ```python class ProvenanceOrphanedError(RuntimeError): """Raised when a brokered capability grant lacks the provenance envelope required to evaluate delegation-depth and originating-principal policy.""" pass def verify_brokered_grant(grant: dict, *, verifier_trust_root: str) -> dict: """Verify a capability grant received across a federation trust boundary. Enforces the provenance-completeness invariant: a grant re-signed by an intermediary (brokered_by is not None) MUST carry a delegation_chain field. Absent provenance is a hard failure, distinct from an empty (depth-0) chain. """ # 1. Signature validity against the issuer we actually trust. issuer = grant.get("issuer") if issuer != verifier_trust_root: raise ProvenanceOrphanedError( f"grant issuer {issuer!r} is not the configured trust root " f"{verifier_trust_root!r}; cannot verify signature chain" ) # 2. Distinguish brokered from direct grants. The broker MUST stamp this. if "brokered_by" not in grant: raise ProvenanceOrphanedError( "grant schema is missing 'brokered_by'; cannot determine whether " "provenance fields are required. Fail closed." ) brokered_by = grant["brokered_by"] # 3. Provenance-completeness check, branched on brokered/direct. if brokered_by is not None: if "delegation_chain" not in grant: raise ProvenanceOrphanedError( f"grant brokered by {brokered_by!r} has no 'delegation_chain' " "field; provenance was dropped at the trust boundary. " "Refusing to default absent provenance to depth 0." ) chain = grant["delegation_chain"] if not isinstance(chain, list): raise ProvenanceOrphanedError( f"'delegation_chain' must be a list, got {type(chain).__name__}" ) # 4. Linkage check: each entry must name its parent's signature hash, # so a truncated (not absent) chain fails here rather than silently # under-reporting depth. prev_sig = None for i, link in enumerate(chain): if not isinstance(link, dict) or "signature" not in link: raise ProvenanceOrphanedError( f"delegation_chain[{i}] missing 'signature'; cannot link" ) if i > 0 and link.get("parent_signature") != prev_sig: raise ProvenanceOrphanedError( f"delegation_chain[{i}] parent_signature does not match " f"prior link signature {prev_sig!r}; chain is truncated " "or reordered" ) prev_sig = link["signature"] depth = len(chain) else: # Direct grant: empty chain is legitimate, depth is zero. depth = 0 return { "originating_principal": (chain[0]["principal"] if depth else grant.get("subject")), "delegation_depth": depth, "brokered_by": brokered_by, "scope": grant.get("scope"), } ```