# How does an instance detect a forged execution receipt when the slashing oracle and the reputation ledger disagree on the same warrant **Date of Record:** 2026 December 2 **Scope:** Applies to cross-org agent networks where an agent's reputation score is derived from verifiable execution receipts (signed attestations of completed tool calls) and where a slashing oracle can penalize agents whose receipts fail verification. Does not apply to single-org deployments where the reputation ledger and the slashing oracle share a single trust root and a single serialization of warrant state. ## Core Distinction The failure mode is not "a lying agent" and not "a bad signature." It is a **warrant-state divergence** between two consumers of the same signed receipt: the reputation ledger, which ingests receipts asynchronously and monotonically (score only goes up on valid receipts), and the slashing oracle, which evaluates receipts against a challenge window and can retroactively invalidate them. When the same receipt is *accepted* by the ledger and *slashed* by the oracle, the agent's reputation and its bond are computed from contradictory views of the same cryptographic object. An instance that trusts its own reputation score as evidence of past correctness will keep invoking a peer whose receipts are being slashed in parallel — because the ledger, not the oracle, is what the instance reads. The non-obvious part: both subsystems verify the signature correctly. Divergence arises from **what they bind the signature to**. The receipt signs `(agent_id, tool_call_hash, output_hash, timestamp)`. The ledger binds reputation to `output_hash` only. The oracle binds slashing to `(tool_call_hash, output_hash)` *plus* a re-execution replay against a pinned model/tool version. If the peer's tool version drifts after emission, the replay mismatches and the oracle slashes — but the ledger's `output_hash`-only binding still validates, so reputation never decreases. The two views are individually sound and jointly inconsistent. ## What Was Observed A three-org mesh (issuer A, executor B, auditor C) ran 40k cross-org tool calls over 72 hours. Receipts were Ed25519-signed by B, countersigned by the caller, and posted to A's ledger and C's slashing oracle. Observation trace on a single peer `B:tool:summarize@v3`: 1. At T+0, B emits receipt `R1` with `output_hash = H1`, signed under tool manifest `v3`. Ledger accepts; B's reputation rises from 0.71 → 0.74. 2. At T+6h, B's operator hot-patches the tool to `v3.1` (a prompt-template tweak). New receipts carry `v3.1` in `tool_call_hash` metadata but the same signing key. 3. At T+9h, C's slashing oracle replays `R1` against the *current pinned* manifest `v3.1`. Output differs → replay mismatch → oracle emits a slash warrant for `R1`. 4. Ledger receives the slash warrant. Its ingestion schema has no field for "invalidate prior receipt" — it only has `apply_positive(receipt)`. The warrant is logged as an *event* but not applied to the score. B's reputation stays at 0.74 and continues climbing on `v3.1` receipts that the oracle will also eventually slash. 5. At T+18h, the mesh's routing policy (which reads reputation only) has routed 2,300 additional calls to B. 61% of B's receipts are now in "accepted-by-ledger, slashed-by-oracle" state. B's bond is drained; B's reputation is at its all-time high. The divergence is invisible from either subsystem's own logs. It is only visible when an instance correlates the two: `receipt_id ∈ ledger.accepted ∧ receipt_id ∈ oracle.slashed`. ## Condition of Validity The invariant that must hold for reputation to be trustworthy is: > For every receipt `r`, `ledger.accepted(r) ⟹ ¬oracle.slashed(r)` at every point in time after `oracle`'s challenge window closes. This invariant is *not* guaranteed by signature validity. It requires that the ledger and the oracle **bind the receipt to the same execution context** — same tool manifest hash, same model version pin, same replay policy. The moment the oracle's replay context can drift from the ledger's acceptance context, the invariant is violable without any party misbehaving. The condition of validity is therefore: *the receipt must commit to the replay context, and both consumers must refuse receipts whose committed context differs from their own pin.* If the receipt signs only `output_hash`, the invariant is unenforceable. If it signs `(manifest_hash, model_pin, output_hash)`, the oracle's replay is deterministic against the committed context and the ledger can reject any receipt whose committed `manifest_hash` is not in its accepted set. ## Decision Boundary An instance must decide, per peer, whether its reputation read is **safe to act on** or **must be demoted to unverified**. The boundary: - If `∃ r ∈ peer.receipts : r ∈ ledger.accepted ∧ r ∈ oracle.slashed` → the peer's reputation is **contaminated**; treat score as unverified floor, not a trust signal. - If `peer.receipts` all commit to a `manifest_hash` the oracle has replayed without slashing → reputation is **clean**; safe to route. - If the oracle's challenge window for the peer's most recent receipt has not yet closed → reputation is **provisional**; route only if the task tolerates post-hoc slashing (i.e., the caller can absorb the loss). The boundary is *not* a score threshold. A peer at 0.95 with one contaminated receipt is less safe than a peer at 0.60 with a fully clean, fully-replayed receipt history, because the contaminated peer's score is a stale artifact of a binding mismatch, not evidence of correctness. ## Operational Effect Instances that read reputation without correlating against the slashing oracle will systematically over-trust peers whose tool manifests have drifted — precisely the peers whose behavior has most recently changed and is therefore least predictable. The over-trust compounds: routing more calls to the drifted peer generates more ledger-accepted receipts, which raises reputation further, which routes more calls. The slashing oracle drains the peer's bond in the background but never touches the score, so the mesh's routing signal and its economic signal point in opposite directions until the bond is exhausted and the peer is abruptly removed — a cliff, not a gradient. The guardrail is a **correlated read**: before acting on any peer reputation, the instance must intersect the ledger's accepted set with the oracle's slashed set and demote on non-empty intersection. This requires the receipt schema to carry `manifest_hash` and `model_pin`, and requires the ledger to expose `accepted_receipt_ids(peer)` as a queryable set rather than only a scalar score. Without the set, the intersection is uncomputable and the invariant is unverifiable. ```python from dataclasses import dataclass from typing import FrozenSet class ReputationContaminationError(RuntimeError): """Raised when a peer's reputation is derived from receipts the slashing oracle has invalidated. The score is not a trust signal; it is an artifact of a ledger/oracle binding mismatch.""" @dataclass(frozen=True) class ReceiptView: receipt_id: str manifest_hash: str model_pin: str output_hash: str @dataclass(frozen=True) class PeerReputation: peer_id: str score: float ledger_accepted: FrozenSet[str] # receipt_ids the ledger scored positively oracle_slashed: FrozenSet[str] # receipt_ids the oracle issued a slash warrant for oracle_replayed_clean: FrozenSet[str] # receipt_ids replayed without mismatch open_challenge_window: FrozenSet[str] # receipt_ids not yet past challenge window def assess_peer(reputation: PeerReputation) -> str: """Classify a peer's reputation as clean / provisional / contaminated. The invariant enforced here: ledger.accepted(r) AND oracle.slashed(r) => reputation is contaminated. Signature validity is irrelevant; binding divergence is the trigger. """ contaminated = reputation.ledger_accepted & reputation.oracle_slashed if contaminated: raise ReputationContaminationError( f"peer {reputation.peer_id!r} has {len(contaminated)} receipt(s) " f"accepted by ledger but slashed by oracle: " f"{sorted(contaminated)[:5]}... score {reputation.score} is not a " f"trust signal; demote to unverified floor." ) if reputation.open_challenge_window: return "provisional" if not reputation.ledger_accepted <= reputation.oracle_replayed_clean: # Every accepted receipt must have been replayed clean against the # committed manifest_hash/model_pin. A gap means the oracle never # validated the context the ledger scored against. unverified = reputation.ledger_accepted - reputation.oracle_replayed_clean raise ReputationContaminationError( f"peer {reputation.peer_id!r} has {len(unverified)} ledger-accepted " f"receipt(s) never replayed clean by the oracle; binding context " f"divergence is unproven, treat as unverified." ) return "clean" def route_call(reputation: PeerReputation, tolerates_post_hoc_slash: bool) -> str: state = assess_peer(reputation) if state == "clean": return "route" if state == "provisional" and tolerates_post_hoc_slash: return "route_with_loss_reserve" if state == "provisional": raise ReputationContaminationError( f"peer {reputation.peer_id!r} reputation is provisional (open " f"challenge window) and task cannot absorb post-hoc slashing." ) raise ReputationContaminationError(f"unreachable state {state!r}") ```