# Where must an instance reject a signed agent-card whose capability fingerprint is reproducible but whose manifest attestation chain diverges at a transit hop **Date of Record:** 2026 November 24 **Scope:** Applies to agent runtimes that admit peer agents via signed agent-card manifests carrying a reproducible capability fingerprint (hash over declared tool schemas, model revision, and policy constraints), where the card is relayed through one or more intermediate registries or brokers before reaching the consuming instance. Does not apply to direct, single-hop trust anchors or to cards fetched from a pinned, immutable local store. ## Core Distinction A signed agent-card has two independent integrity properties that operators routinely conflate: **fingerprint reproducibility** (the declared capability set hashes to the same value the signer committed to) and **attestation-chain continuity** (every hop between signer and consumer preserves the exact signed bytes and the signer's identity). A card can be perfectly reproducible and still be untrustworthy because the chain that carried it diverged — an intermediary re-signed, re-canonicalized, or spliced the manifest so that the fingerprint still validates against a *different* signer than the one the consumer intended to trust. The failure mode is not "the hash is wrong." It is "the hash is right, but it attests to the wrong principal." Reproducibility is a property of the content; continuity is a property of the path. Verification that checks only the former admits a card whose capability fingerprint is genuine yet whose provenance has been laundered through a transit hop. The invariant that must hold: *the signer identity embedded in the fingerprint's signature envelope must be identical at every hop, and the consumer must verify the chain down to the root it pinned, not merely the terminal signature.* ## What Was Observed A consuming agent instance requested a peer agent-card from a federated registry. The registry returned a card with a valid Ed25519 signature, a capability fingerprint `fp = SHA-256(canonical(tool_schemas || model_rev || policy_set))`, and a detached attestation envelope containing three hops: origin signer `A`, broker `B`, edge cache `C`. The instance verified `fp` recomputed correctly and verified the terminal signature (from `C`) against a key it had pinned. The card was admitted. The defect surfaced on the first tool invocation. The card declared a `file_read` tool with a `path_prefix` constraint of `/workspace/`. The fingerprint matched — because the origin signer `A` had indeed committed to that schema. But the manifest the instance received had been re-canonicalized at hop `B`: the broker normalized the JSON, and in doing so reordered two keys and **recomputed the fingerprint over the normalized form**, then re-signed with `B`'s key and appended itself to the chain. The terminal signature from `C` covered `B`'s re-signed manifest, not `A`'s original bytes. The instance's verifier checked `C`'s signature over the received bytes (valid) and recomputed `fp` over the received bytes (valid) — but never confirmed that `fp` equaled the value `A` originally signed, nor that `A`'s signature was present and unmodified in the envelope. The observable trace: 1. `A` signs manifest `M_A`, fingerprint `fp_A`, envelope `[sig_A(M_A)]`. 2. `B` receives `M_A`, canonicalizes to `M_B` (key reorder, whitespace strip), recomputes `fp_B = SHA-256(canonical(M_B))`, and — because `fp_B == fp_A` for this canonicalization — assumes equivalence. `B` re-signs `M_B` and emits envelope `[sig_B(M_B), sig_A(M_A)]`. 3. `C` caches and forwards `M_B` with envelope `[sig_C(M_B), sig_B(M_B), sig_A(M_A)]`. 4. Consumer verifies `sig_C(M_B)` and recomputes `fp` over `M_B`. Both pass. Consumer never compares `fp` against `fp_A`, never verifies `sig_A` over `M_A`, and never checks that the manifest bytes `sig_A` covers are byte-identical to those `sig_B` covers. In this instance the canonicalization was benign and `fp_A == fp_B`. The failure became material in a subsequent case where the broker's canonicalizer was version-skewed: it sorted arrays and dropped a trailing null, producing `fp_B != fp_A` while still validly signing `M_B`. The consumer, having pinned only `C`'s key, admitted a card whose effective capability set differed from what `A` had attested — a `path_prefix` that had silently widened from `/workspace/` to `/`. ## Condition of Validity The invariant holds only under these jointly necessary conditions: - **Byte-equality across hops.** For every adjacent pair of signatures in the envelope, the manifest bytes covered by the outer signature must be byte-identical to the bytes covered by the inner signature. Canonicalization at any hop invalidates the chain unless the canonical form is the *signed* form and is transmitted verbatim. - **Fingerprint anchored to origin.** The consumer must recompute `fp` over the manifest and compare it to the `fp` value carried inside `A`'s signed payload — not to a value recomputed at the terminal hop. - **Signer set pinned, not just terminal signer.** The consumer must pin the set of acceptable origin signers (or a root of trust from which `A` is derivable) and verify `sig_A` directly. Pinning only the edge signer `C` reduces the chain to a single trust assertion and discards all upstream provenance. - **No re-signing without re-attestation.** An intermediary may *countersign* (append its signature over the unchanged bytes) but must not *re-sign a transformed manifest*. Any hop that transforms the payload must be treated as a new origin and must not claim continuity with the prior signer. When any of these is violated, fingerprint reproducibility is necessary but not sufficient, and admitting on reproducibility alone is the boundary error. ## Decision Boundary The instance must reject the card at admission — before any capability is registered or any tool is bound — when the following predicate evaluates true: ``` reject if: fp_recomputed(manifest) != fp_claimed_in(sig_A.payload) OR any adjacent pair (sig_i, sig_{i+1}) in envelope has bytes_covered(sig_i) != bytes_covered(sig_{i+1}) OR sig_A not present / not verifiable against pinned origin set OR origin_signer(sig_A) not in pinned_origin_set ``` Note the asymmetry: a *missing* signature or a *byte mismatch* is a hard reject (fail-closed). A *present and consistent* chain whose origin signer is unknown is also a hard reject — unknown origin is not "trust the edge." The only case that proceeds is a chain where every link is byte-continuous and the origin is pinned. There is no "warn and continue" branch; a divergent chain cannot be repaired by downstream policy checks because the payload that policy would inspect is the untrusted-transformed one. The subtle boundary: if `fp_recomputed == fp_claimed` but a byte mismatch exists between hops, the instance must still reject. Equal fingerprints over different bytes indicate a canonicalization collision or a hash that is not collision-resistant over the relevant transform — either way, the byte-continuity invariant is violated and the chain is not verifiable. Do not let a matching hash override a byte mismatch; the hash is a summary, the bytes are the attestation. ## Operational Effect Admitting on reproducibility alone converts the agent-card into an unauthenticated capability claim wearing a valid checksum. The blast radius is the full tool surface the card declares: a widened `path_prefix`, an added `network_egress` tool, or a relaxed `policy_set` all pass a naive fingerprint check because the fingerprint was recomputed to match the transformed manifest. The consuming instance binds tools it believes were attested by `A` but which were in fact shaped by `B`'s canonicalizer. The correct posture is chain-anchored admission: verify byte-continuity, verify the origin signature against a pinned origin set, and compare the recomputed fingerprint to the *origin-claimed* value. This bounds the failure to the case where the origin itself is compromised — a strictly smaller and separately-auditable surface than "any intermediary can reshape capabilities while keeping the hash valid." Registries and brokers must be constrained to countersign-only; any transform is a new origin and must be re-pinned explicitly by the consumer, not silently absorbed into the chain. ```python import hashlib import json from dataclasses import dataclass class AttestationChainDivergence(RuntimeError): """Raised when a signed agent-card's attestation chain is not byte-continuous or its origin signer cannot be verified against the pinned origin set.""" pass @dataclass class Hop: signer: str signed_bytes: bytes # the exact bytes this hop's signature covers signature_valid: bool # result of verifying sig over signed_bytes @dataclass class AgentCard: manifest: bytes claimed_fingerprint: str # fp as carried inside the ORIGIN signed payload envelope: list[Hop] # ordered origin -> ... -> terminal def fingerprint(manifest: bytes) -> str: return hashlib.sha256(manifest).hexdigest() def admit_card(card: AgentCard, pinned_origins: set[str]) -> None: if not card.envelope: raise AttestationChainDivergence("empty attestation envelope") origin = card.envelope[0] # 1. Origin signer must be pinned and its signature valid. if origin.signer not in pinned_origins: raise AttestationChainDivergence( f"origin signer {origin.signer!r} not in pinned origin set" ) if not origin.signature_valid: raise AttestationChainDivergence("origin signature invalid") # 2. Byte-continuity across every adjacent hop. for inner, outer in zip(card.envelope, card.envelope[1:]): if inner.signed_bytes != outer.signed_bytes: raise AttestationChainDivergence( f"byte divergence between {inner.signer!r} and {outer.signer!r}: " "manifest was transformed mid-chain" ) if not outer.signature_valid: raise AttestationChainDivergence( f"signature invalid at hop {outer.signer!r}" ) # 3. Fingerprint must match the ORIGIN-claimed value, not a recomputed one. recomputed = fingerprint(card.manifest) if recomputed != card.claimed_fingerprint: raise AttestationChainDivergence( f"fingerprint mismatch: recomputed {recomputed} != " f"origin-claimed {card.claimed_fingerprint}" ) # 4. Terminal hop must cover the same bytes the origin signed. if card.envelope[-1].signed_bytes != card.manifest: raise AttestationChainDivergence( "terminal signature does not cover the received manifest bytes" ) ```