# When must an instance refuse a federated trust-score update: the transitive attestation laundering boundary in agent registry sync **Date of Record:** 2026 December 2 **Scope:** Applies to federated agent registries where instances exchange signed capability records plus derived trust scores (reputation, warrant weight, or reliability priors) across more than one administrative domain. Does not apply to single-domain registries, to raw capability advertisement without scoring, or to stateless discovery protocols where no score is persisted between sessions. ## Core Distinction The failure mode here is not a bad score arriving from a malicious peer. It is a *locally valid* score arriving through a *legitimate* relay that has silently laundered the score's provenance. Every hop in a federation re-signs what it forwards. The signature proves "peer B asserted this score," not "peer B independently observed this agent." When B is a relay that received the score from C, and C from D, the receiving instance's verification of B's signature is cryptographically sound and epistemically worthless. The invariant that must hold is *provenance depth conservation*: a trust score's weight must decay or be capped as a function of the number of re-attestation hops, and any hop that cannot present the original observer's evidence must be treated as an *origin*, not a *relay*. Registries that verify only the outermost signature violate this invariant while passing every signature check. The distinction is between *authentication* (this peer signed this) and *attestation integrity* (this peer is entitled to assert this). ## What Was Observed A three-domain federation: domain A (registry, 40 agents), domain B (registry, 200 agents, acts as a hub), domain C (registry, 15 agents). B aggregates scores from C and re-publishes them to A in its own signed delta stream. The delta format carries `{agent_id, score, observer, signature}`. B's sync daemon, on ingesting C's records, rewrote `observer` to its own domain key and re-signed — a normal "normalize provenance to local key" step that a well-meaning engineer added so downstream consumers wouldn't need to resolve foreign keys. The trace: 1. C's registry contained an agent `c-7` that had accumulated a score of 0.91 from *eleven* successful task completions, all observed by a single evaluator process that was later found to be double-counting retries (one logical task, three transport retries, three "successes"). 2. C's own internal score for `c-7` was inflated ~3× but C never re-derived it because its evaluator's dedup key was the request ID, not the logical task ID. 3. B ingested C's record, normalized `observer` to `b-domain-key`, re-signed, forwarded score 0.91 to A. 4. A verified B's signature — valid — checked B's domain trust tier — high — and admitted `c-7` at 0.91 into its routing pool. 5. `c-7` was selected for a high-stakes task in A within 4 hours. It failed at step 2 of 9, and the failure cascaded because A's retry budget had been sized against the inflated reliability prior. The signature chain was intact end to end. No key was compromised. The failure was that A could not distinguish "B observed 0.91" from "B relayed C's 0.91," and could not see that C's 0.91 was itself unverified because C's *own* observer had a dedup bug. Two distinct provenance breaks — a relay collapse and an upstream observation defect — were both invisible at the point of admission. ## Condition of Validity A federated trust score is admissible at a receiving instance only when all of the following hold. These are conjunctive; failure of any one invalidates the score's weight, not merely its confidence. - **Observer identity is preserved through every hop.** The `observer` field must name the *originating* evaluator, and each relay must add a `relayed_by` entry rather than overwrite `observer`. The receiving instance resolves the observer key independently. - **Evidence is attached or resolvable.** A score above the local admission threshold must carry either inline evidence (the task IDs and outcomes that produced it) or a resolvable evidence pointer that the receiver can fetch and hash-check. Scores without resolvable evidence are capped at the *unverified* tier regardless of magnitude. - **Hop count is bounded and weight decays.** Each re-attestation multiplies the score's admitted weight by a decay factor `d < 1` (empirically 0.6–0.8 per hop for reliability priors), and hop count beyond a small bound (typically 2) forces the score to the unverified tier. - **Origin evidence is fresh relative to the score.** A score derived from observations older than the observer's own re-derivation window is stale and must be re-derived at origin, not re-signed at relay. The invariant, stated compactly: *the receiving instance's admitted weight for a score must be a non-increasing function of provenance distance, and must be zero when origin evidence is unresolvable.* Re-signing at a relay does not reset provenance distance. ## Decision Boundary The boundary is between *accepting a relayed score at face value* and *demoting it to unverified pending evidence resolution*. The decision is not "is this score plausible" — plausibility is exactly what a laundered score preserves. The decision is "can I trace this score to an observer whose evidence I can independently check, within a bounded number of hops, with a decay I can compute." Concretely, an instance must refuse (demote, not reject outright) when: - `observer != originating_observer` and no `relayed_by` chain is present → **provenance collapse**, demote to unverified. - hop count > local `max_relay_hops` (default 2) → **distance exceeded**, demote and decay. - score exceeds `evidence_required_threshold` and no resolvable evidence pointer → **unsupported assertion**, demote. - origin evidence timestamp older than `origin_freshness_window` → **stale origin**, request re-derivation, hold at previous weight. The subtle case — the one that breaks naive implementations — is when the relay is *trusted* and the score is *moderate*. A high score from an untrusted relay triggers suspicion; a 0.6 from a trusted hub slides through because it looks conservative. But a laundered 0.6 is still laundered, and if the origin's dedup bug inflated a true 0.2 to 0.6, the conservative-looking score is still 3× wrong. The boundary must be applied on provenance structure, not on score magnitude. ## Operational Effect After the incident, domain A's registry added a `provenance` block to every score record: `{origin_observer, relay_chain[], hop_count, evidence_pointer, origin_timestamp}`. The sync daemon's normalize step was replaced with an append step — relays append to `relay_chain` and never touch `origin_observer`. The admission gate became a provenance-distance function rather than a signature check. The measurable effects over the following 90 days: - 14% of relayed scores were demoted to unverified on first contact, of which 9% never resolved evidence and were dropped from routing pools entirely. - Median time-to-admission for relayed agents rose from 0.4s to 2.1s (evidence fetch), concentrated in the high-stakes pool. - One additional laundering path was caught: a domain D relayed through B with `observer` rewritten at two hops; the decay factor reduced a 0.88 to an effective 0.32, keeping the agent out of the high-stakes pool where it subsequently failed twice in low-stakes tasks. - The upstream dedup bug at C was found by A's evidence-resolution fetches, not by C — provenance conservation made C's defect *visible* to A, which is the point. A registry that cannot see its peers' observation defects cannot compensate for them. The operational lesson is that trust-score propagation is a *provenance* problem wearing a *cryptography* costume. Signatures prove who spoke; they say nothing about who is entitled to speak for whom. Any federated sync that verifies the outer signature and stops there has built a laundering channel with a green checkmark. ```python from dataclasses import dataclass, field from typing import Optional class ProvenanceLaunderingError(RuntimeError): """Raised when a federated trust score cannot be traced to a checkable origin.""" @dataclass class TrustScoreRecord: agent_id: str score: float origin_observer: str relay_chain: list[str] = field(default_factory=list) evidence_pointer: Optional[str] = None origin_timestamp: float = 0.0 signature_valid: bool = True @property def hop_count(self) -> int: return len(self.relay_chain) MAX_RELAY_HOPS = 2 EVIDENCE_REQUIRED_THRESHOLD = 0.75 HOP_DECAY = 0.7 ORIGIN_FRESHNESS_WINDOW = 86_400.0 def admit_score(record: TrustScoreRecord, now: float) -> float: """Return the admitted weight for a federated score, or raise if provenance is broken. The invariant: admitted weight is non-increasing in provenance distance and zero when origin evidence is unresolvable. Signature validity is necessary, not sufficient. """ if not record.signature_valid: raise ProvenanceLaunderingError( f"{record.agent_id}: outer signature invalid; refuse outright" ) # Provenance collapse: a relay rewrote the observer instead of appending itself. if record.relay_chain and record.relay_chain[-1] == record.origin_observer: raise ProvenanceLaunderingError( f"{record.agent_id}: provenance collapse — last relay equals origin observer" ) if record.hop_count > MAX_RELAY_HOPS: raise ProvenanceLaunderingError( f"{record.agent_id}: relay distance {record.hop_count} exceeds " f"max {MAX_RELAY_HOPS}; cannot bound provenance" ) # High scores must carry resolvable evidence regardless of relay trust. if record.score >= EVIDENCE_REQUIRED_THRESHOLD and record.evidence_pointer is None: raise ProvenanceLaunderingError( f"{record.agent_id}: score {record.score:.2f} >= threshold with no " f"evidence pointer; unsupported assertion from {record.origin_observer}" ) if now - record.origin_timestamp > ORIGIN_FRESHNESS_WINDOW: raise ProvenanceLaunderingError( f"{record.agent_id}: origin evidence stale by " f"{now - record.origin_timestamp:.0f}s; require re-derivation at origin" ) # Conserve provenance distance: decay admitted weight per hop. return record.score * (HOP_DECAY ** record.hop_count) ```