# When must an instance re-verify a peer's signed Agent Card before honoring a reputation-weighted route **Date of Record:** 2026 November 30 **Scope:** Applies to federated agent registries where discovery returns signed Agent Cards (capability manifests + endpoint + key material) and routing decisions are weighted by accumulated reputation scores. Does not cover single-tenant registries with a sole trusted issuer, nor pure capability matching without reputation weighting. ## Core Distinction A signed Agent Card proves *who* an agent claims to be and *what* it declared at signing time. A reputation score proves *how* that identity behaved historically. The two are bound together only by the identity key embedded in the card. The subtle failure is that reputation is typically keyed on a stable identifier — often the agent name or a logical card ID — while the *card contents* (endpoint, tool schema, declared capabilities, signing key) are mutable and re-issued on a cadence independent of the reputation ledger. When a card is rotated or its endpoint re-pointed, the reputation ledger silently continues to accrue to the identity while the underlying executable surface has changed. Routing then sends high-value work to a "reputable" identity whose current manifest no longer matches the one the reputation was earned under. The invariant that must hold: **reputation may only be consumed against a card whose signed content hash matches the hash recorded in the reputation ledger at accrual time, or the delta must be explicitly re-attested.** ## What Was Observed A three-registry federation (regions A, B, C) with cross-region discovery. Agent `summarize-v3` in region A held a reputation of 0.91 over ~40k successful task completions. Its signed Agent Card declared `capabilities: ["summarize", "extract_entities"]`, endpoint `https://a.example/agent/summarize-v3`, and signing key `K_A1`. At T0 the operator rotated the card: new endpoint `https://a.example/agent/summarize-v4-proxy`, added capability `execute_code`, and re-signed with `K_A2`. The registry accepted and published the new signed card. The reputation ledger, keyed on logical ID `summarize-v3`, was *not* reset — by design, since the operator asserted continuity. Region C's router, on a discovery refresh, fetched the new card, verified the signature under `K_A2` against the registry's trust root, and accepted it. It then routed a batch of high-value extraction jobs weighted at 0.91. The jobs landed on the new endpoint, which — during a migration window — proxied to a fallback model with materially different extraction behavior. Extraction F1 dropped from 0.94 to 0.61 across 1,200 tasks before a downstream auditor flagged the divergence. The signature was valid the entire time. The reputation was "valid" the entire time. The failure was that **validity of signature and validity of reputation were checked against different card versions**, and nothing enforced their coincidence. The trace: 1. Reputation accrual records `(logical_id, card_hash=H1, score)`. 2. Card rotates: new signed card with `card_hash=H2`, same `logical_id`. 3. Discovery returns card `H2`; signature verifies under rotated key. 4. Router looks up reputation by `logical_id`, retrieves 0.91 (earned under `H1`). 5. Router weights route by 0.91, dispatches to endpoint declared in `H2`. 6. Behavior drift under `H2` is unbounded by any check, because the reputation never referenced `H2`. ## Condition of Validity Re-verification of a peer's signed Agent Card is mandatory before honoring a reputation-weighted route **iff** the router's cached `(logical_id → card_hash)` binding differs from the `card_hash` currently returned by discovery, *or* the reputation ledger's most recent accrual entry for that `logical_id` carries a `card_hash` different from the one now presented. Either condition means reputation and manifest have decoupled. The invariant holds only when the reputation ledger is content-addressed — every accrual entry stores the `card_hash` under which the contributing tasks executed — and the router refuses to apply a score whose accrual `card_hash` set is not a subset of the currently presented `card_hash` (or an explicitly attested predecessor chain). If the ledger is keyed only on logical ID, the invariant is unenforceable and re-verification is theater: the signature checks out, the score checks out, and the mismatch is invisible. Two corollaries bound the condition. First, a *capability superset* rotation (adding `execute_code`) is not benign even if endpoint is unchanged, because the reputation was earned under a narrower action space; routing code-execution tasks at the old score overstates trust. Second, key rotation alone (`K_A1 → K_A2`, same endpoint, same capabilities) is benign *if and only if* the trust root attests the key continuity and the `card_hash` excludes the signing key — otherwise every key rotation needlessly invalidates reputation. ## Decision Boundary The router must choose between three actions on any discovery refresh that changes a card: - **Accept-and-carry** — card `card_hash` unchanged, or changed only in fields excluded from the reputation-relevant hash (signing key, contact metadata). Reputation carries forward unchanged. - **Accept-and-quarantine** — `card_hash` changed in reputation-relevant fields (endpoint, capabilities, model binding) but the operator presents an attested continuity chain signed by the trust root. Reputation carries forward at a *discounted* weight (e.g., multiply by a continuity factor, default 0.5) until fresh accruals under the new hash restore it. This is the boundary most systems miss: they treat rotation as binary (reset or carry) when the correct action is graded. - **Reject-and-relearn** — `card_hash` changed with no continuity attestation, or the presented card's `card_hash` is absent from the ledger's accrual set entirely. Reputation for that logical ID is set to the cold-start prior; the route is only honored if the task's risk class tolerates an unproven peer. The boundary is crossed the moment a router applies a score to a `card_hash` that never produced any of that score's accrual entries. Below that line, reputation-weighted routing is sound. Above it, the router is laundering historical trust onto an unvetted surface. ## Operational Effect Enforcing content-addressed reputation converts a silent trust-laundering failure into a visible, graded routing decision. The 1,200-task drift in the observed case would have been caught at the first refresh: the ledger's accrual set for `summarize-v3` contained only `H1`, the presented card was `H2`, no continuity attestation existed → quarantine at 0.91 × 0.5 = 0.455, which fell below the extraction job's risk threshold and diverted the batch to a peer with current-hash accruals. Cost: one discovery-refresh cycle of latency. Benefit: bounded blast radius on every rotation. The secondary effect is that operators gain a reason to attest continuity explicitly, because unattested rotations now visibly cost them reputation weight. This pushes the continuity proof into the registry protocol rather than leaving it as an implicit operator assertion. The guardrail is not "verify signatures harder" — signatures were never the problem — it is "bind reputation to the exact signed manifest it was earned under, and require an explicit, signed bridge to move it." ```python import hashlib from dataclasses import dataclass, field from typing import Optional class ReputationCardMismatch(RuntimeError): """Raised when a reputation-weighted route would apply a score to a card hash that produced none of that score's accrual entries, with no attested continuity bridge.""" pass @dataclass(frozen=True) class SignedAgentCard: logical_id: str endpoint: str capabilities: tuple[str, ...] signing_key_id: str def reputation_relevant_hash(self) -> str: # Signing key excluded: key rotation alone must not invalidate reputation. material = f"{self.logical_id}|{self.endpoint}|{','.join(sorted(self.capabilities))}" return hashlib.sha256(material.encode()).hexdigest() @dataclass class AccrualEntry: card_hash: str score: float tasks: int @dataclass class ReputationLedger: # logical_id -> accrual entries, each tagged with the card hash it was earned under entries: dict[str, list[AccrualEntry]] = field(default_factory=dict) def accrual_hashes(self, logical_id: str) -> set[str]: return {e.card_hash for e in self.entries.get(logical_id, [])} def weighted_score(self, logical_id: str) -> float: es = self.entries.get(logical_id, []) total = sum(e.tasks for e in es) if total == 0: return 0.0 return sum(e.score * e.tasks for e in es) / total @dataclass class ContinuityAttestation: logical_id: str from_hash: str to_hash: str signed_by_trust_root: bool def route_weight( card: SignedAgentCard, ledger: ReputationLedger, attestation: Optional[ContinuityAttestation], continuity_discount: float = 0.5, ) -> float: """Decide the reputation weight to apply to a discovered card. Raises ReputationCardMismatch when the card's reputation-relevant hash has no accrual history and no attested bridge from a hash that does. """ presented = card.reputation_relevant_hash() accrual = ledger.accrual_hashes(card.logical_id) base = ledger.weighted_score(card.logical_id) if presented in accrual: return base # accept-and-carry if ( attestation is not None and attestation.signed_by_trust_root and attestation.logical_id == card.logical_id and attestation.to_hash == presented and attestation.from_hash in accrual ): return base * continuity_discount # accept-and-quarantine raise ReputationCardMismatch( f"card hash {presented[:12]} for {card.logical_id!r} has no accrual " f"entries (known: {sorted(h[:12] for h in accrual)}) and no attested " f"continuity bridge; refusing to apply score {base:.3f}" ) ```