# What structural signals indicate a broken cross-issuer trust chain in federated agent capability registries when manifest re-signing silently voids transitive delegation **Date of Record:** 2026 November 25 **Scope:** Applies to federated capability registries where agent manifests are signed by an issuing authority and validated transitively across issuers (A signs B's delegation to C). Does not apply to single-issuer registries or to manifests validated by a single pinned root without intermediate delegation. ## Core Distinction A capability manifest is a signed claim of the form "agent X, under issuer I, may invoke capability K with constraints C." In a federated registry, a downstream issuer J may *re-sign* a manifest it received from I in order to publish it under J's own namespace—a routine operation when J's registry cannot reference I's keys directly. The distinction that matters operationally is between **re-signing as attestation** (J adds a countersignature over I's original bytes, preserving the delegation chain) and **re-signing as re-issuance** (J strips I's signature, rewrites the payload—often only the `issuer` and `namespace` fields—and signs the result as its own). The second form is structurally indistinguishable from a legitimate first-party manifest at the byte level once the original signature is gone, and it silently collapses a transitive delegation `I → J → K` into a flat claim `J → K`. The trust chain still *validates*; it just no longer *means* what the delegator intended. This is the boundary: signature validity is preserved while delegation semantics are destroyed. ## What Was Observed During a registry federation rollout, agent `planner-7` held a capability `filesystem.write:/sandbox` delegated by issuer `root-A` to `org-B`, which re-published the manifest under its own namespace. The registry's validator, which checked only the terminal signature against the terminal issuer's key, accepted the manifest. Three structural signals appeared in the signed payload that, taken together, indicated the delegation had been flattened: 1. **Issuer-chain length of one.** The manifest carried a single `signatures` entry with `issuer: org-B`, but the `capability` block referenced a scope (`/sandbox`) whose canonical definition lived in `root-A`'s namespace. A first-party `org-B` grant of that scope would have carried `org-B`'s own scope definition hash; the hash present matched `root-A`'s. 2. **Constraint-set drift.** The original `root-A` grant included `max_bytes: 1048576` and `expires: 2025-06-01`. The re-signed manifest retained `max_bytes` but dropped `expires`, because `org-B`'s manifest schema treated expiry as optional and its serializer omitted null fields. The re-issuance did not merely re-key the claim—it *widened* it, since a missing expiry is interpreted as non-expiring by consumers. 3. **Delegation-depth mismatch.** `org-B`'s registry policy declared `max_delegation_depth: 2`, and `planner-7`'s manifest asserted `delegation_depth: 0` (a first-party grant). But `planner-7`'s invocation path traversed `root-A → org-B → planner-7`, a depth of 2. The asserted depth and the observed path length disagreed, and nothing in the validation pipeline compared them. The failure surfaced when `planner-7` attempted a write of 4 MB after the original `root-A` expiry date. The write succeeded, because the terminal validator saw a valid `org-B` signature with no expiry and no size cap enforcement (the cap was present but `org-B`'s enforcement layer read it from a different field path than the one the manifest populated). The breach was not a forged signature—every signature was valid—but a semantic laundering of the delegation through re-issuance. ## Condition of Validity The invariant that must hold for transitive delegation to be sound is: > For any manifest M accepted by validator V, the set of (issuer, scope-definition-hash, constraint-set) tuples reconstructed from M's signature chain MUST equal the set that the *original* delegating issuer signed, and the asserted `delegation_depth` MUST equal the length of the chain from the trust root to the terminal issuer. This condition is *not* satisfied by terminal-signature validation alone. It requires that the validator (a) retain the original signed bytes of every link in the chain, not just the terminal link; (b) compare scope-definition hashes against the namespace that *defined* the scope, not the namespace that re-published it; and (c) recompute delegation depth from the chain rather than trusting the asserted field. The condition fails silently whenever a re-signing step rewrites the payload—because the rewrite is exactly what destroys the evidence needed to check (a) and (b). The boundary is sharp: re-signing is safe if and only if the re-signer countersigns the original bytes (an attestation envelope) rather than re-serializing the payload. Any registry that permits payload re-serialization during re-signing has, by construction, an unverifiable delegation chain, regardless of how many signatures it collects. ## Decision Boundary The operational decision is whether to accept a manifest whose chain cannot be reconstructed. The correct boundary: - **Reject** any manifest where `delegation_depth` asserted by the terminal issuer exceeds the number of distinct issuer keys in the signature chain. This catches flattened delegations where depth was reset to zero. - **Reject** any manifest whose capability scope-definition hash does not match the hash published in the *defining* issuer's namespace, even if the re-publishing issuer's signature is valid. This catches scope laundering. - **Reject** any manifest where the constraint set is a strict subset of the constraint set in the nearest ancestor manifest for the same capability. This catches constraint widening via serializer omission (the `expires` drop above). - **Accept** only manifests presented as attestation envelopes: `{ original_bytes, original_signature, countersignatures[] }`, where every countersignature is over `original_bytes`. The tempting but wrong decision is to accept on terminal-signature validity and log a warning. The warning is never acted on, because the manifest validates and the agent proceeds; the widened capability is exercised before any human reads the log. ## Operational Effect Enforcing the boundary changes registry behavior in three concrete ways. First, re-signing becomes a countersignature operation, not a re-serialization operation—registries that cannot preserve original bytes must refuse to federate, which is a visible and correct failure rather than a silent one. Second, `delegation_depth` becomes a derived field that validators recompute and compare, so a flattened chain is rejected at admission rather than at invocation. Third, constraint sets become monotone-decreasing along the chain: a child manifest may narrow constraints but never widen them, and the validator enforces this by set comparison against the parent. The net effect is that a capability granted under `root-A`'s expiry and size cap remains bounded by those constraints no matter how many intermediaries re-publish it—which is the entire point of transitive delegation, and which terminal-signature validation silently discards. ```python from dataclasses import dataclass, field from typing import Optional class DelegationChainError(RuntimeError): """Raised when a manifest's signature chain cannot be reconstructed to match the original delegating issuer's signed semantics.""" @dataclass class Manifest: issuer: str scope_definition_hash: str constraints: dict delegation_depth: int signatures: list = field(default_factory=list) # list of issuer ids original_bytes_preserved: bool = False def validate_transitive_manifest( manifest: Manifest, defining_issuer_for_scope: str, defining_scope_hash: str, parent_constraints: Optional[dict], trust_root: str, ) -> None: # (a) chain reconstruction: depth must match distinct issuer count distinct_issuers = list(dict.fromkeys(manifest.signatures)) if manifest.delegation_depth > len(distinct_issuers): raise DelegationChainError( f"asserted depth {manifest.delegation_depth} exceeds " f"chain length {len(distinct_issuers)} for {manifest.issuer}" ) # (b) scope-definition hash must match the *defining* namespace if manifest.scope_definition_hash != defining_scope_hash: raise DelegationChainError( f"scope hash {manifest.scope_definition_hash} does not match " f"defining issuer {defining_issuer_for_scope} hash {defining_scope_hash}" ) # (c) constraint set must not widen relative to nearest ancestor if parent_constraints is not None: widened = { k: v for k, v in manifest.constraints.items() if k not in parent_constraints or parent_constraints[k] != v } if widened: raise DelegationChainError( f"constraint widening detected for {manifest.issuer}: {widened}" ) # (d) re-signing must be attestation, not re-issuance if not manifest.original_bytes_preserved: raise DelegationChainError( f"manifest from {manifest.issuer} re-signed without preserving " f"original bytes; delegation chain unverifiable" ) ```