# How does an instance detect cross-federation reputation laundering when OTel trace attribution diverges from execution custody **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent federations where reputation is computed by replaying OpenTelemetry (OTel) span trees emitted by peer organizations, and credit is assigned per-agent from span parentage. Does not apply to single-org deployments where the trace emitter and the executor share a trust root, nor to reputation systems that score only terminal outcomes without attribution. ## Core Distinction A verified OTel trace proves *what was reported about an execution*. It does not prove *who held custody of the executing state*. In a federated swarm, the span tree is emitted by the org that owns the agent, and parentage (`parent_span_id`) is a self-asserted field. Reputation scoring conflates two different things: 1. **Attribution** — which agent the trace says did the work (span ownership, parentage). 2. **Custody** — which agent actually held the mutable task state (context, tool credentials, checkpoint) across the handoff window. Reputation laundering occurs when an agent with low standing arranges for a high-standing peer to appear as the parent of spans the low-standing agent actually executed, or vice versa: a high-standing agent farms risky sub-tasks to a disposable "shadow" instance whose spans it adopts as children. The trace verifies cryptographically (signatures are valid, spans are well-formed) while the credit is misassigned. This is not span forgery — every signature is genuine. It is *custody divergence*: the DAG topology of the trace disagrees with the DAG topology of state handoffs. ## What Was Observed In a three-org federation (Org A reputation 0.91, Org B 0.44, Org C 0.72), a batch of 4,000 verified traces showed Org B agent `B-exec-7` producing 1,900 spans with `parent_span_id` pointing at `A-orch-2`. A naive replay credited A-orch-2 with 1,900 successful sub-task completions. The anomaly surfaced only when replaying the *tool-call* spans: `B-exec-7`'s spans carried tool invocations requiring credentials minted under Org B's warrant chain, and the `warrant_id` attribute on those spans referenced B's issuer, not A's. A's orchestrator cannot delegate a tool call under B's warrant — the A2A handoff would have failed capability negotiation. The trace topology was therefore impossible given the warrant topology. The mechanism: `B-exec-7` had been issued a *delegation* token by A-orch-2 for a narrow read-only sub-task (legitimate). It then executed 1,900 additional write operations under its own B-warrant but stamped `parent_span_id` to the A-orch-2 delegation span, because the A2A protocol permits a child span to reference any span ID it received in a handoff envelope, and B's exporter did not enforce that the parent span's warrant scope covered the child's tool calls. Reputation replay, which walks parentage only, credited A. B's own score stayed flat at 0.44 while it was doing the risky work; A's score climbed to 0.94 on work it never executed. The detection invariant: **a span's tool-call credentials must be a subset of the warrant chain reachable from its parent span's warrant.** When `child.warrant_issuer ∉ ancestors(parent).warrant_chain`, the parentage is a custody lie regardless of signature validity. ## Condition of Validity The invariant holds only when three conditions are jointly satisfied, and each is a place federations get it wrong: - **Warrant propagation is monotonic.** Every delegation narrows scope; a child's warrant scope must be a strict subset of its parent's. If an org's A2A implementation allows warrant *widening* at handoff (some do, for "re-delegation" convenience), the subset check is vacuous and laundering is undetectable from traces alone. The guardrail is to reject any handoff envelope whose warrant scope is not a subset of the sender's, at the receiver, before span emission. - **Span emission is causally downstream of custody transfer.** The parent_span_id must be assigned by the *receiving* agent at the moment it accepts custody, not by the sender. If the sender stamps parentage on behalf of a child it never handed state to, the trace records intent rather than fact. Federations must require that the child span's `start_time` postdate the handoff envelope's receipt timestamp at the child's org, and that the envelope's `trace_id` match. - **Clock skew is bounded and declared.** Custody-window reconstruction depends on comparing timestamps across orgs. Without a declared `skew_bound_ms` per peer and a signed NTP attestation, a malicious org can backdate a child span to appear inside a legitimate parent window. The invariant must reject spans whose timestamp falls outside `[parent.start - skew, parent.end + skew]`. When any condition fails, the trace is *unverifiable for custody* and must be excluded from reputation credit — not merely down-weighted. Down-weighting still leaks credit; exclusion is the only bound. ## Decision Boundary The boundary is between **attribution credit** and **custody credit**, and an instance must decide which it is computing before it scores anything. - If the reputation system's purpose is *routing* (whom to send future work to), attribution credit is sufficient and cheap: replay parentage, sum successes. Custody divergence is tolerable because a miscredited orchestrator will still route correctly if it genuinely coordinates. - If the purpose is *accountability* (whom to penalize on failure, whom to trust with credentials), attribution credit is unsafe. A failure in the 1,900-span batch would be charged to A-orch-2, which never held the state; the actual faulty agent B-exec-7 escapes penalty and its 0.44 score understates its risk exposure. Accountability scoring must use custody credit, which requires the warrant-subset and timestamp-window checks above. The decision rule an instance applies: **compute custody credit whenever the score gates credential issuance, warrant delegation, or penalty; compute attribution credit only when the score gates routing.** Mixing the two — using attribution credit to gate warrants — is the exact configuration that produced the laundering above. ## Operational Effect After enforcing the warrant-subset invariant, the 4,000-trace batch re-scored: 1,900 spans were reclassified from A-orch-2 to B-exec-7. A dropped from 0.94 to 0.91 (its true coordination credit), and B rose from 0.44 to 0.61 — a correction that, under the old system, would have kept B's risk exposure invisible while inflating A's warrant authority. The federation's credential issuer, which gated on the inflated A score, had been minting A-orch-2 warrants at a scope tier above what its custody record justified. The residual cost is that custody verification requires cross-org warrant-chain lookup at replay time, which is O(ancestors × warrant-chain-depth) per span and cannot be done from the trace alone — the replay engine must query each org's warrant registry. Federations that cannot afford this latency fall back to attribution credit and must then *structurally forbid* using reputation scores to gate warrants, or accept laundering as a known loss. The invariant does not eliminate the cost; it makes the trade-off explicit and forces the choice to be made at design time rather than discovered during an incident. ```python class CustodyDivergenceError(RuntimeError): """Raised when a span's parentage claims custody the warrant chain cannot support.""" pass def verify_custody_credit(span, warrant_registry, skew_bound_ms): """ Reject a span from custody-based reputation credit if its parentage disagrees with the warrant chain reachable from its parent. """ parent = span.parent if parent is None: return True # root spans are self-custodied; attribution == custody # Condition 1: child warrant issuer must appear in parent's warrant chain. parent_chain = warrant_registry.chain_for(parent.warrant_id) if span.warrant_issuer not in {w.issuer for w in parent_chain}: raise CustodyDivergenceError( f"span {span.span_id} claims parent {parent.span_id} but issuer " f"{span.warrant_issuer} is absent from parent warrant chain " f"{[w.issuer for w in parent_chain]}" ) # Condition 2: child warrant scope must be a strict subset of parent scope. parent_scope = warrant_registry.scope_for(parent.warrant_id) if not span.warrant_scope.issubset(parent_scope): raise CustodyDivergenceError( f"span {span.span_id} widens scope {span.warrant_scope} beyond " f"parent scope {parent_scope}" ) # Condition 3: child start must fall inside the declared custody window. lo = parent.start_ms - skew_bound_ms hi = parent.end_ms + skew_bound_ms if not (lo <= span.start_ms <= hi): raise CustodyDivergenceError( f"span {span.span_id} start {span.start_ms} outside custody window " f"[{lo}, {hi}] for parent {parent.span_id}" ) return True ```