# What happens when an instance accepts a federated peer's signed manifest but the credential's capability set silently narrows across a delegation hop **Date of Record:** 2026 November 28 **Scope:** Applies to cross-org agent federation where peer identity is established via signed agent manifests and capability is asserted through verifiable-credential (VC) delegation chains. Does not cover single-org agent meshes with a shared trust root, nor bearer-token auth where capability is not transitively delegated. ## Core Distinction A signed manifest proves *who* the remote agent is and *what it claims it can do*. A verifiable credential chain proves *what it was actually granted* and *by whom, transitively*. These two artifacts are frequently conflated at the handshake boundary: the receiving agent validates the manifest signature, reads the `capabilities` array embedded in the manifest, and proceeds — never reconciling that array against the capability set that survives the VC delegation chain. The failure is not a broken signature. Both signatures verify. The failure is a **capability-set divergence** between the manifest's declared surface and the credential chain's effective surface, introduced by a delegation hop that narrowed scope. The manifest is a static self-description; the VC chain is the dynamic authorization. When they disagree, an agent that trusts the manifest over the chain over-authorizes. This is non-obvious because every cryptographic check passes and every log line reads `manifest_verified=true, credential_verified=true`. ## What Was Observed An orchestrator agent in Org A (`orch-a`) federated with a task-specialist agent in Org B (`spec-b`) to run a data-transformation pipeline. Org B's root issuer granted `spec-b` a VC with capabilities `{read:dataset, transform:records, write:staging}`. Org B then delegated a sub-task to a third-party tool-runner in Org C (`run-c`) via a delegation VC that *attenuated* the grant to `{transform:records}` only — deliberately, because Org C's runner was not cleared to touch datasets or staging. `spec-b`'s signed manifest, however, was generated at deploy time from its *root* grant and still advertised `{read:dataset, transform:records, write:staging}`. During the handshake, `orch-a`: 1. Fetched `spec-b`'s manifest, verified the Org B signature against the pinned JWKS. Pass. 2. Read `manifest.capabilities` and cached them as `peer_effective_caps`. 3. Verified the presented VC chain (`org-b-root → spec-b → run-c`) signature-by-signature. Pass. 4. **Never intersected** `peer_effective_caps` with the terminal credential's `credentialSubject.capability` set. `orch-a` then dispatched a `write:staging` operation addressed to `run-c` through `spec-b`. The operation reached `run-c`, whose own policy engine rejected it — but only *after* `orch-a` had already committed the staging write to its own audit ledger and marked the pipeline step `dispatched`. The rejection surfaced three hops later as an opaque `403 capability_not_held`, and `orch-a`'s reconciliation loop had no mapping from that error back to the manifest/credential mismatch that caused it. The trace signature: `manifest_verified=true`, `vc_chain_valid=true`, `dispatch_committed=true`, then a downstream `capability_not_held` with no local precondition failure. The gap between "dispatch committed" and "capability actually held" is the boundary. ## Condition of Validity The manifest-over-chain trust bug manifests only when all of the following hold simultaneously: - **Attenuation occurred.** At least one delegation hop in the VC chain narrowed the capability set relative to the root grant. If no hop attenuates, manifest and chain agree and the bug is latent. - **Manifest is stale relative to delegation.** The manifest was minted from the root grant (or any pre-attenuation grant) and not re-derived per delegation. Manifests regenerated on every delegation event are immune. - **Receiver treats manifest as authoritative for capability.** The receiving agent uses `manifest.capabilities` rather than the terminal credential's subject as its authorization input. - **No terminal-hop enforcement feedback.** The rejecting agent's error does not carry a machine-readable pointer to the specific attenuated capability, so the originator cannot self-heal. Remove any one condition and the failure does not occur. This is why it survives testing: a federation test suite with a single-hop, non-attenuating delegation will pass every time. The invariant that must hold: **effective capability = intersection over the entire delegation chain of each hop's granted set, and the receiver's authorization input must be that intersection — never the manifest's self-declared set.** The manifest may only *bound* what is possible; the chain determines what is *permitted*. ## Decision Boundary At handshake time, the receiver must compute: ``` effective = manifest.capabilities for hop in credential_chain: effective = effective ∩ hop.credentialSubject.capability if requested_capability ∉ effective: reject before dispatch ``` The decision boundary is sharp: **dispatch authorization is gated on the chain intersection, not on manifest verification.** A verified manifest with a verified chain that has attenuated below the requested capability is a *reject*, not a *proceed*. The receiver must also propagate a structured attenuation record (`{hop: "run-c", removed: ["read:dataset","write:staging"]}`) so the originator can attribute downstream rejections. Without that record, the originator's reconciliation is blind. The counterintuitive part: a *more* restrictive chain is the dangerous case, because it is the case where manifest and reality diverge. A chain that grants everything the manifest claims is safe by accident. Reviewers who test only the permissive path validate the wrong invariant. ## Operational Effect When the invariant is violated, three effects compound: 1. **Over-authorization at dispatch.** The originator commits operations the terminal agent cannot fulfill, producing orphaned ledger entries and phantom pipeline progress. 2. **Attribution collapse.** Downstream `capability_not_held` errors arrive without a chain-attenuation pointer, so the originator cannot distinguish "peer misconfigured" from "I dispatched beyond the delegated scope." Retry loops re-dispatch the same doomed operation. 3. **Silent trust inflation.** Because both signatures verify, monitoring shows healthy federation. The failure is invisible until an operation is actually attempted at the attenuated hop — which may be rare, deep in a pipeline, and attributed to the wrong component. The bounding guardrail is a **handshake-time capability intersection with mandatory attenuation propagation**, plus a **fail-closed dispatch gate** that refuses to commit any operation whose capability is not in the computed intersection. The manifest becomes a hint for routing and schema negotiation; the chain intersection becomes the sole authorization source. ## Python ```python from dataclasses import dataclass, field from typing import FrozenSet class CapabilityAttenuationError(RuntimeError): """Raised when a dispatch requests a capability not present in the delegation-chain intersection, despite the peer manifest advertising it.""" pass @dataclass(frozen=True) class Hop: issuer: str subject: str capability: FrozenSet[str] @dataclass(frozen=True) class Manifest: agent_id: str capabilities: FrozenSet[str] signature_valid: bool @dataclass class HandshakeResult: effective: FrozenSet[str] attenuated: dict = field(default_factory=dict) def compute_effective_capability(manifest: Manifest, chain: list[Hop]) -> HandshakeResult: if not manifest.signature_valid: raise CapabilityAttenuationError( f"manifest signature invalid for {manifest.agent_id}; cannot establish trust root" ) effective = set(manifest.capabilities) attenuated: dict[str, list[str]] = {} for hop in chain: removed = effective - hop.capability if removed: attenuated[hop.subject] = sorted(removed) effective &= hop.capability return HandshakeResult(effective=frozenset(effective), attenuated=attenuated) def authorize_dispatch(manifest: Manifest, chain: list[Hop], requested: str) -> HandshakeResult: result = compute_effective_capability(manifest, chain) if requested not in result.effective: raise CapabilityAttenuationError( f"requested capability {requested!r} not in chain intersection " f"{sorted(result.effective)}; manifest advertised " f"{sorted(manifest.capabilities)}; attenuated at hops {result.attenuated}" ) return result ```