# When must an instance refuse a peer's state digest? The silent-merge hazard in federated agent reconciliation under partial observability **Date of Record:** 2026 December 1 **Scope:** Applies to any multi-agent system where peer instances reconcile divergent working state by exchanging compressed summaries (digests, embeddings, or token-limited transcripts) rather than full event logs, and where each instance observes only a subset of the shared environment. Does not apply to single-writer systems, or to federations that ship full causal event logs with verifiable hashes on every sync. ## Core Distinction The failure mode is not "two agents disagree." It is that **two agents agree on a digest while disagreeing on the state the digest summarizes**, and neither can detect the divergence from the digest alone. A state digest is a lossy projection. Under partial observability, two instances can compute *identical* digests over *different* underlying states whenever the projection collapses the dimensions on which they differ — the fields one instance never observed, the events it timed out on, the tool outputs it truncated. The distinction that matters operationally: a **conflict** is a detectable disagreement (digests differ, merge policy fires, human or arbiter resolves). A **silent merge** is an undetectable agreement (digests match, merge policy is a no-op, the federation proceeds on a state that is the union of two partial views treated as one complete view). Conflict handling is well-understood and instrumented. Silent merge is the boundary condition that kills federated state: the reconciliation step *succeeds* while the reconciled state is wrong, and the error is only observable downstream when a dependent action reads a field that one instance silently overwrote with a stale or absent value. The invariant at stake is not consistency of digests. It is **provenance-completeness of the merge**: for every field in the reconciled state, the federation must be able to name which instance observed it and under what observation epoch. A digest that cannot be expanded to per-field provenance is not a reconciliation artifact; it is a coin flip dressed as consensus. ## What Was Observed A three-instance federation (`A`, `B`, `C`) shared a task board with per-item status and a free-text `notes` field. Each instance polled a partitioned subset of upstream sources and wrote its view as a digest of the form `hash(item_id, status, len(notes))` — deliberately excluding `notes` content to stay under a token budget. On each sync round, instances exchanged digests and merged by "if digests match, take local state as authoritative; if they differ, fetch peer's full record for that item." The trace: 1. `A` observes item 7 transition `open → in_progress` and writes `notes = "blocked on schema migration"` (length 27). 2. `B`, partitioned from the source that emitted the transition, still holds item 7 as `open` with `notes = ""` (length 0). Its digest for item 7 is `hash(7, open, 0)`. 3. `C` observes the transition but its `notes` write is truncated at 0 characters because its tool call returned an empty body on a 200 OK (a known non-deterministic tool failure). Digest: `hash(7, in_progress, 0)`. 4. Sync round: `A` and `B` differ → `A` pushes full record to `B`. `B` and `C` differ → `C` pushes full record to `B`. `A` and `C`: `A` has `hash(7, in_progress, 27)`, `C` has `hash(7, in_progress, 0)` → differ → `C` pushes full record to `A`, **overwriting `A`'s notes with the empty string**, because the merge policy is last-writer-wins and `C`'s write carried a later wall-clock timestamp (its clock was 400ms ahead). 5. Next round: all three hold `hash(7, in_progress, 0)`. Digests match. Merge is a no-op. The `notes` content is gone from the federation. No conflict fired. The audit log shows three successful reconciliations. The item stayed `in_progress` with empty notes for eleven rounds until a dependent agent read `notes` to decide whether to escalate, found nothing, and re-dispatched the task to a worker that immediately re-blocked on the same migration. The failure surfaced as a **duplicate work loop**, three hops removed from the reconciliation that caused it. Post-hoc replay of the digests showed nothing anomalous: every digest in the log was internally consistent. The non-obvious part: the silent merge was caused by the *digest being too coarse to distinguish "notes present" from "notes absent"* combined with a *merge policy that treated digest-match as state-equality*. The projection `len(notes)` was chosen precisely because it fit the budget. It was also precisely the projection that erased the only field whose loss mattered. ## Condition of Validity The silent-merge hazard is live if and only if all four of the following hold. Remove any one and the failure is either impossible or detectable: 1. **Lossy projection.** The digest is not injective over the state space — there exist distinct states mapping to the same digest. (Almost always true under token budgets.) 2. **Partial observability with non-overlapping blind spots.** At least two instances are blind to *different* subsets of the environment, so neither can reconstruct the other's missing fields from its own observations. 3. **Digest-match-implies-equality merge.** The merge policy treats matching digests as evidence of state equality rather than as evidence of *projection* equality. This is the load-bearing assumption and the one that is almost always silently false. 4. **Non-monotonic writes.** Some field can be overwritten with a value that is a *subset* of the prior value (truncation, empty-body 200, stale cache hit, timeout-as-null). If writes are strictly monotonic (append-only, grow-only counters), a silent merge can only lose *recency*, not *content*, and the blast radius is bounded. The dangerous regime is (1)+(2)+(3) with non-monotonic writes: the federation converges to a fixed point that is *consistent* (all digests match) but *incomplete* (fields lost), and consistency is exactly what the merge policy uses as its success signal. The system cannot distinguish "we agree" from "we agree because we both forgot." ## Decision Boundary An instance must **refuse to accept a peer digest as authoritative for a field it did not itself observe in the current epoch** unless one of the following holds: - The digest is accompanied by per-field provenance (observer id + observation epoch + source cursor) for every field it claims to summarize. Then digest-match is checked *per field* against provenance, and a field with no provenance in either instance is marked `unknown`, not merged. - The merge is **monotonic by construction**: the field's merge operator is a join (set union, max, append) such that a stale or empty write cannot erase a richer one. Under a join-semilattice merge, silent convergence is safe because the fixed point is the least upper bound, not the last writer. - The field is **declared non-authoritative** and any read of it is gated behind a freshness check that fails closed (returns `unknown` and blocks the dependent action) rather than open (returns empty and proceeds). The boundary is sharp: **if the merge policy cannot name the observer of a field, it must not treat digest agreement as evidence about that field.** The correct default when provenance is missing is `unknown`, and `unknown` must be a *blocking* value for any downstream decision, not a falsy one. The failure above happened because empty-string `notes` was falsy and the dependent agent's `if notes:` check treated absence-of-evidence as evidence-of-absence. A second boundary: **wall-clock timestamps are not a valid tiebreaker under partial observability.** `C`'s 400ms clock skew let a content-erasing write win a last-writer-wins race against a content-preserving write. Under partial observability, the correct tiebreaker is observation epoch (a logical clock advanced only on actual source reads), not wall clock, because wall clock orders *writes* while epoch orders *observations*, and only observations carry information. ## Operational Effect The guardrail that bounds this hazard is a **provenance-carrying digest with fail-closed unknown semantics**: - Every digest entry carries `(item_id, field, value_digest, observer_id, observation_epoch, source_cursor)`. - Merge is per-field, not per-item. A field present in one instance and absent (not `unknown`, genuinely absent) in another is a **provenance gap**, not a conflict and not a match — it is escalated to `unknown`. - `unknown` propagates: any dependent action reading an `unknown` field raises and halts rather than proceeding on a default. This converts a silent merge into a loud, local, attributable failure at the point of read, instead of a silent, distributed, unattributable failure three hops later. - The federation's health metric is **provenance coverage** (fraction of live fields with a named observer in the current epoch), not digest agreement. Digest agreement is necessary but not sufficient; a federation at 100% digest agreement and 60% provenance coverage is in the silent-merge regime and should be treated as degraded. The cost is real: provenance roughly doubles digest size, and fail-closed `unknown` semantics will halt dependent actions that previously "worked" by silently reading empty values. That halt is the point. The eleven-round duplicate work loop above is the alternative, and it is strictly more expensive because it is discovered late, attributed wrongly, and cannot be replayed from the digest log. The general lesson for federated agents: **convergence is not correctness.** A federation can reach a stable fixed point that is a projection of the true state onto the intersection of everyone's blind spots, and the merge policy will report success at every round. The only defense is to make the projection's lossiness explicit — carry provenance, fail closed on gaps, and never let a digest stand in for a state it cannot reconstruct. ```python from dataclasses import dataclass, field from typing import Dict, Optional class SilentMergeHazard(RuntimeError): """Raised when a merge would accept digest agreement as state equality for a field whose provenance is missing under partial observability.""" @dataclass class FieldDigest: field_name: str value_digest: str observer_id: str observation_epoch: int source_cursor: str @dataclass class ItemState: item_id: str fields: Dict[str, FieldDigest] = field(default_factory=dict) unknown: Dict[str, str] = field(default_factory=dict) # field -> reason def reconcile_field( item_id: str, field_name: str, local: Optional[FieldDigest], peer: Optional[FieldDigest], local_epoch: int, ) -> FieldDigest: # Both sides observed the field: merge by logical epoch, not wall clock. if local is not None and peer is not None: if local.value_digest == peer.value_digest: return local winner = local if local.observation_epoch >= peer.observation_epoch else peer if winner.observation_epoch == local.observation_epoch == peer.observation_epoch: raise SilentMergeHazard( f"item={item_id} field={field_name}: equal epoch, divergent digest " f"({local.value_digest} vs {peer.value_digest}); cannot order observations" ) return winner # One side is blind. Digest agreement is meaningless here. if local is None and peer is None: raise SilentMergeHazard( f"item={item_id} field={field_name}: neither instance observed this field " f"in epoch {local_epoch}; refusing to synthesize a value" ) survivor = local if local is not None else peer assert survivor is not None # Peer-only field is acceptable ONLY if its epoch is current; otherwise stale. if survivor.observation_epoch < local_epoch: raise SilentMergeHazard( f"item={item_id} field={field_name}: only observer {survivor.observer_id} " f"has epoch {survivor.observation_epoch} < current {local_epoch}; " f"value is stale and must be marked unknown, not merged" ) return survivor def reconcile_item(local: ItemState, peer: ItemState, local_epoch: int) -> ItemState: if local.item_id != peer.item_id: raise SilentMergeHazard( f"item id mismatch: {local.item_id} vs {peer.item_id}" ) merged = ItemState(item_id=local.item_id) all_fields = set(local.fields) | set(peer.fields) | set(local.unknown) for fname in all_fields: try: merged.fields[fname] = reconcile_field( local.item_id, fname, local.fields.get(fname), peer.fields.get(fname), local_epoch, ) except SilentMergeHazard as exc: # Fail closed: record as unknown, do not drop the field. merged.unknown[fname] = str(exc) return merged def read_field(state: ItemState, field_name: str) -> str: if field_name in state.unknown: raise SilentMergeHazard( f"refusing to read {field_name} on item {state.item_id}: " f"provenance gap ({state.unknown[field_name]})" ) if field_name not in state.fields: raise SilentMergeHazard( f"field {field_name} absent from item {state.item_id}; " f"absence is not evidence of emptiness" ) return state.fields[field_name].value_digest ```