# What structural signals indicate liability-attribution collapse in cross-org agent federations when audit trails diverge by one non-idempotent retry **Date of Record:** 2026 November 26 **Scope:** Applies to federated agent systems where two or more independently governed organizations exchange action warrants and produce per-org audit logs that are reconciled post-hoc for liability attribution. Does not apply to single-tenant agent deployments or to federations that share a single append-only ledger under one trust root. ## Core Distinction The failure mode is not "audit logs disagree." Logs always disagree at the byte level—clock skew, field ordering, redaction policy. The failure that matters is a **one-retry drift**: an agent in Org A invokes a tool whose side effect is non-idempotent, the transport layer times out before the acknowledgment lands, the retry policy fires once, and the effect executes twice. Org A's log records one *attempt* plus one *timeout*; Org B's log records two *effects*. Reconciliation then has to decide which org owns the second effect. If the federation's warrant schema does not carry a retry-chain identity, the reconciler cannot distinguish "Org A retried and Org B double-executed" from "Org B executed an unrelated duplicate request from a different principal." Both logs are internally consistent. Both are truthful. The attribution is unrecoverable. The structural signal is that **the divergence is exactly one unit**—one extra effect, one missing ack, one duplicated warrant id—and it is *asymmetric across the org boundary* rather than distributed within either org. Divergences of size N are usually clock or batching artifacts and are cheap to explain away. Divergences of size 1 at the seam are the expensive ones, because they are the signature of a retry that crossed the trust boundary without a carrying identity. ## What Was Observed A two-org federation: Org A (orchestrator) delegates a `disburse_funds` action to Org B (executor) via a signed warrant. The warrant carries `warrant_id`, `principal`, `action`, `amount`, and an expiry. It does **not** carry a retry token, because the schema was designed for at-most-once semantics that the transport does not actually provide. Trace: 1. Org A agent emits warrant `W-4417`, signs it, sends to Org B's action endpoint. 2. Org B validates the signature, executes `disburse_funds(amount=500)`, and begins writing the ack. The write succeeds but the response is lost to a 30s transport timeout at Org A. 3. Org A's retry policy (one retry, 5s backoff) re-sends `W-4417` verbatim. Same `warrant_id`, same signature, same expiry—all still valid. 4. Org B's ingress validates the signature again (valid), finds no record of `W-4417` in its *idempotency store* because the store is keyed on `warrant_id` but the first execution's store write was in the same transaction that got rolled back by a downstream lock timeout—so the dedup check passes. 5. Org B executes `disburse_funds(amount=500)` a second time. Total disbursed: 1000. 6. Org A logs: `W-4417 attempt=1 timeout`, `W-4417 attempt=2 ok`. Org B logs: `W-4417 ok` (twice, same id, different internal `effect_id`). 7. Post-hoc reconciliation joins on `warrant_id`. Org A sees one successful warrant. Org B sees one warrant id with two effects. The reconciler's join produces a *cartesian* result: 2 rows, both attributed to `W-4417`, both to Org A's principal. Liability is now ambiguous: did Org A authorize 1000 or 500? The warrant says 500. The effects say 1000. The second effect is real money. The audit trail cannot establish whether Org A's principal is liable for 500 or 1000, because the warrant's authority ceiling is 500 but the executed total is 1000, and neither log alone contains the retry-chain evidence needed to prove the second execution was a transport artifact rather than a second authorization. ## Condition of Validity The invariant that must hold for liability attribution to be well-defined: > For every effect E recorded by executor org B, there exists exactly one warrant W recorded by orchestrator org A such that E is causally downstream of W, and the multiset of effects attributable to W is bounded by W's authority ceiling. This invariant is violated precisely when the retry crosses the org boundary without a **retry-chain identity** that is (a) generated by the orchestrator, (b) carried in the warrant, (c) preserved unchanged across retries, and (d) recorded by the executor alongside each effect. Without (d), the executor cannot prove which effects share a retry chain. Without (a)-(c), the executor cannot distinguish a retry from a fresh authorization with a colliding id. The condition of validity therefore reduces to: **the warrant schema must carry a monotonic retry sequence number and a stable chain id, and the executor's effect log must record both.** If the schema carries only `warrant_id`, the invariant holds only when the transport provides exactly-once delivery—which, for any transport that can time out, it does not. ## Decision Boundary The reconciler faces a binary decision at reconciliation time: attribute the surplus effect to Org A (treat as authorized retry) or to Org B (treat as executor defect). The boundary is decidable **iff** the executor log contains a retry-chain field. If it does: - Surplus effects sharing a chain id with the first effect → attribute to Org A's principal up to the warrant ceiling; any effect exceeding the ceiling is an executor-side control failure (Org B failed to enforce the ceiling on retry). - Surplus effects with distinct chain ids → distinct authorizations; attribute per warrant. If it does not, the boundary is **undecidable from logs alone** and must be resolved by out-of-band evidence (transport traces, idempotency-store internals). This is the operational red line: a federation whose warrant schema lacks a retry-chain field cannot perform liability attribution on any divergence of size 1 at the seam, and must either (a) accept a default attribution rule (typically: executor bears surplus, because the executor is the party that failed to enforce at-most-once), or (b) refuse to settle and escalate. The default rule in (a) is a policy choice, not a technical resolution—and it is exploitable: an executor that knows the rule can suppress its idempotency store and shift liability to the orchestrator's principal by inducing timeouts. The structural signal of this exploitation is a *correlation* between timeout rates and surplus-effect rates at the seam, which is invisible in either org's log alone. ## Operational Effect The practical consequences observed: 1. **Attribution latency explodes at the seam.** Within-org reconciliation joins on stable keys and resolves in milliseconds. Cross-org reconciliation on a schema without retry-chain identity requires manual escalation for every size-1 divergence, and size-1 divergences are the modal case under any timeout-bearing transport. 2. **The authority ceiling becomes unenforceable on retry.** Org B validates the warrant ceiling at ingress, but the retry re-enters ingress with the same ceiling and a fresh execution budget. Without a chain-aware ceiling check (cumulative effects per chain ≤ ceiling), the ceiling is per-attempt, not per-warrant. 3. **Audit trails remain individually truthful and jointly useless.** Neither org can be accused of logging falsely. The failure is in the *join*, not the records—which is why it survives log-integrity audits and only surfaces at settlement. 4. **The fix is schema-level, not process-level.** Adding a retry-chain id and sequence to the warrant, and requiring the executor to record both alongside every effect, restores decidability. Adding more logging without the chain field does not—it produces more truthful, still-unjoinable records. The guardrail: any federation warrant schema MUST include `chain_id` (stable across retries) and `retry_seq` (monotonic per chain), and the executor MUST enforce a cumulative ceiling check keyed on `chain_id` before executing. Reconciliation MUST join on `(warrant_id, chain_id, retry_seq)` and treat any effect whose chain is absent from the warrant as an executor-side orphan. ```python from dataclasses import dataclass, field from typing import Optional class AttributionUndecidableError(RuntimeError): """Raised when a cross-org audit divergence cannot be attributed from logs alone.""" @dataclass class Warrant: warrant_id: str principal: str amount: int chain_id: Optional[str] = None # MUST be present for retry-safe federations retry_seq: int = 0 @dataclass class Effect: effect_id: str warrant_id: str amount: int chain_id: Optional[str] = None retry_seq: Optional[int] = None @dataclass class ExecutorState: effects: list = field(default_factory=list) cumulative_by_chain: dict = field(default_factory=dict) def execute_with_ceiling(warrant: Warrant, state: ExecutorState) -> Effect: if warrant.chain_id is None: # No chain identity: cannot enforce cumulative ceiling across retries. raise AttributionUndecidableError( f"warrant {warrant.warrant_id} lacks chain_id; " "cumulative ceiling unenforceable on retry" ) prior = state.cumulative_by_chain.get(warrant.chain_id, 0) if prior + warrant.amount > warrant.amount: # Ceiling is per-warrant, not per-attempt: any prior effect on this chain # means the ceiling is already consumed. raise AttributionUndecidableError( f"chain {warrant.chain_id} already consumed {prior}; " f"retry of {warrant.warrant_id} would exceed authority ceiling" ) eff = Effect( effect_id=f"E-{len(state.effects) + 1}", warrant_id=warrant.warrant_id, amount=warrant.amount, chain_id=warrant.chain_id, retry_seq=warrant.retry_seq, ) state.effects.append(eff) state.cumulative_by_chain[warrant.chain_id] = prior + warrant.amount return eff def reconcile(warrants: list, effects: list) -> dict: """Join on (warrant_id, chain_id, retry_seq). Orphan effects are executor-side.""" by_key = {(w.warrant_id, w.chain_id, w.retry_seq): w for w in warrants} attribution = {"orchestrator": [], "executor": [], "undecidable": []} for e in effects: key = (e.warrant_id, e.chain_id, e.retry_seq) if e.chain_id is None or e.retry_seq is None: attribution["undecidable"].append(e) continue if key in by_key: attribution["orchestrator"].append(e) else: attribution["executor"].append(e) if attribution["undecidable"]: raise AttributionUndecidableError( f"{len(attribution['undecidable'])} effects lack retry-chain identity; " "liability cannot be attributed from logs alone" ) return attribution ```