# Which invariants prevent trust-anchor delegation from laundering reputation across federated A2A registries **Date of Record:** 2026 November 30 **Scope:** Applies to cross-organization agent federation where an A2A (agent-to-agent) registry in org B accepts an agent card signed by a trust anchor delegated from org A, and where B's local reputation score is attributed to A's agents via that delegation chain. Does not cover intra-org agent discovery, single-registry deployments, or purely cryptographic transport authentication without reputational trust. ## Core Distinction A2A federation conflates two trust signals that must remain orthogonal: **identity warrant** (a cryptographic proof that agent X is authorized to act on behalf of principal P, propagated through a delegation chain) and **behavioral reputation** (an empirical score derived from observed outcomes of X's past executions). The delegation chain proves *authorization*; it says nothing about *competence or honesty*. The boundary failure occurs when a registry treats a valid delegated warrant as sufficient evidence to import the delegating org's reputation score onto the delegate's agent card. This is reputation laundering: a low-reputation agent in org A obtains a high-reputation score in org B simply by being vouched for by A's trust anchor, because B's registry resolves `agent_card.reputation` through the delegation chain rather than through B's own observation ledger. The invariant that prevents this: **reputation MUST be scored per (registry, agent-instance) pair and MUST NOT be inherited across a delegation edge unless the edge carries an explicit reputation-warrant scope that is independently verifiable and time-bounded.** Identity delegation and reputation delegation are separate capabilities that a trust anchor may grant independently. ## What Was Observed Two registries, `reg-A` (org A) and `reg-B` (org B), federate via mutual trust anchors. `reg-A` publishes a trust anchor `TA-A` that signs agent cards for A's internal fleet. `reg-B` accepts `TA-A` as a federation root and, on receiving a card, resolves the card's reputation by walking the delegation chain up to `TA-A` and reading `TA-A`'s aggregate reputation (a mean over all agents A has ever registered). Trigger condition: org A registers a new, untested agent `a-bad` whose card is signed by `TA-A`. Because `reg-B`'s resolution logic reads reputation at the anchor rather than at the leaf, `a-bad` inherits `TA-A`'s aggregate score (~0.94) on first contact — despite having zero observed executions in B's ledger. `a-bad` then fails or misbehaves on its first three tool-mediated tasks in B. B's ledger records three failures against `a-bad`, but the *displayed* reputation at next discovery still resolves through `TA-A`, because the resolution path is anchor-weighted: `score = w_anchor * rep(TA-A) + w_leaf * rep(a-bad)` with `w_anchor = 0.8`. Three failures move the leaf term, but the anchor term dominates. The agent remains discoverable and selectable. Failure trace: 1. `reg-B.discover(query)` returns `a-bad` with `reputation=0.91` (anchor-dominated). 2. Orchestrator in B selects `a-bad` on the strength of that score. 3. `a-bad` executes, fails, ledger appends `{agent: a-bad, outcome: fail}`. 4. `reg-B.resolve_reputation(a-bad)` recomputes: `0.8 * 0.94 + 0.2 * 0.0 = 0.752`. 5. Still above B's selection threshold (0.70). Steps 2–4 repeat until the leaf term accumulates enough mass to drag the composite below threshold — which, at `w_anchor=0.8`, requires the leaf score to fall to 0.0 *and* the anchor to decay, or roughly 40+ consecutive failures. The compounding error is the non-obvious part: each failure is recorded correctly, but the aggregation function's anchor weight means the *marginal* effect of a failure on the displayed score shrinks as the anchor score rises. High-reputation anchors therefore produce *more* persistent bad delegates, not fewer — the opposite of the intended trust semantics. ## Condition of Validity The invariant holds only under these conditions, and the failure above is precisely a violation of the third: - **Warrant scope separation.** The delegation edge from `TA-A` to `a-bad` must carry a `scope` field distinguishing `identity` from `reputation`. A card signed for identity does not authorize reputation import. - **Ledger locality.** Reputation is computed from the observing registry's own outcome ledger. Cross-registry reputation transfer requires a signed, replayable outcome attestation — not a scalar read from the anchor. - **Anchor weight bounded by evidence.** `w_anchor` must be a function of the *number of independently observed executions of the leaf in the observing registry*, not a constant. With zero leaf observations, `w_anchor` may be high (you have nothing else to go on); after N observations, `w_anchor` must decay to zero at a rate the registry publishes. A constant `w_anchor` is the defect. - **Monotone failure sensitivity.** The displayed score must be strictly decreasing in the count of recent leaf failures, with a bounded half-life, regardless of anchor score. If a single failure cannot move the score below a selection threshold within a bounded number of repetitions, the aggregation is invalid. When any of these is violated — as with the constant `w_anchor = 0.8` above — the registry is not scoring behavior; it is scoring ancestry. ## Decision Boundary The operational decision is whether a discovered agent's reputation may be used as a selection signal. The boundary is crossed when: `displayed_reputation(agent) > threshold` **but** `observed_executions(agent, this_registry) < k_min` where `k_min` is the minimum observations required before a reputation score is treated as evidence rather than prior. Below `k_min`, the score is a *prior* inherited from the anchor and must be surfaced as `provisional`, not as a selection-grade score. The orchestrator must treat `provisional` scores as requiring either (a) a sandboxed trial execution with bounded blast radius, or (b) an independent outcome attestation from a registry that *has* observed the leaf. Concretely: if `reg-B` receives `a-bad` with `observed_executions=0`, the correct behavior is to return `{reputation: 0.94, provenance: "anchor:TA-A", confidence: "provisional", observations: 0}` and have the orchestrator gate selection on `observations >= k_min or attestation_present`. Returning a bare scalar `0.94` is the laundering vector. ## Operational Effect After enforcing scope-separated warrants and evidence-bounded anchor weight, the federation behaves as follows: `a-bad` is discoverable in B with a provisional score, is selected only into sandboxed trials, accumulates three failures in B's ledger, and — because `w_anchor` now decays as `1/(1+observations)` — drops below threshold after the third failure instead of the fortieth. The 37-execution window of undetected bad behavior closes. The cost is that genuinely new but competent agents from A are also gated into trials; this is the correct trade, because the alternative is that a compromised or degraded anchor silently poisons every federated registry that trusts it. The invariant to publish in the registry contract: *reputation is earned per observing registry; delegation transfers identity, never score.* ```python from dataclasses import dataclass, field from typing import Optional class ReputationLaunderingError(RuntimeError): """Raised when a registry attempts to resolve reputation through a delegation edge whose scope does not authorize reputation import, or when a scalar score is surfaced without provenance/observation count.""" @dataclass class DelegationEdge: issuer: str subject: str scope: frozenset # subset of {"identity", "reputation"} issued_at: float ttl: float @dataclass class AgentCard: agent_id: str registry: str anchor_score: float leaf_score: float observations: int = 0 edge: Optional[DelegationEdge] = None K_MIN = 5 THRESHOLD = 0.70 def resolve_reputation(card: AgentCard, now: float) -> dict: # Invariant 1: reputation import requires an explicit reputation scope # on the delegation edge, and the edge must be live. if card.edge is not None: if "reputation" not in card.edge.scope: raise ReputationLaunderingError( f"edge {card.edge.issuer}->{card.edge.subject} lacks " f"'reputation' scope; cannot import anchor score" ) if now > card.edge.issued_at + card.edge.ttl: raise ReputationLaunderingError( f"delegation edge expired at " f"{card.edge.issued_at + card.edge.ttl}; reputation import refused" ) # Invariant 2: anchor weight must decay with observed executions. # A constant weight is the laundering defect. w_anchor = 1.0 / (1.0 + card.observations) w_leaf = 1.0 - w_anchor score = w_anchor * card.anchor_score + w_leaf * card.leaf_score # Invariant 3: below k_min observations the score is a prior, not evidence. if card.observations < K_MIN: provenance = f"anchor:{card.edge.issuer}" if card.edge else "none" return { "score": score, "confidence": "provisional", "observations": card.observations, "provenance": provenance, } return { "score": score, "confidence": "selection_grade", "observations": card.observations, "provenance": "local_ledger", } def select_agent(card: AgentCard, now: float) -> bool: rep = resolve_reputation(card, now) if rep["confidence"] == "provisional" and rep["score"] > THRESHOLD: # Provisional high score: allow only sandboxed trial, never # direct selection. Caller must honor this signal. raise ReputationLaunderingError( f"agent {card.agent_id} has provisional score {rep['score']:.3f} " f"from {rep['provenance']} with {rep['observations']} observations; " f"route to sandbox trial, not direct selection" ) return rep["score"] > THRESHOLD # Demonstration of the failure being caught: bad_card = AgentCard( agent_id="a-bad", registry="reg-B", anchor_score=0.94, leaf_score=0.0, observations=0, edge=DelegationEdge( issuer="TA-A", subject="a-bad", scope=frozenset({"identity"}), # identity only — no reputation issued_at=1000.0, ttl=3600.0, ), ) try: select_agent(bad_card, now=1100.0) except ReputationLaunderingError as e: print(f"blocked: {e}") ```