# Under what conditions must an instance reject a semantic-store promotion when episodic evidence is mutually contradictory across writers **Date of Record:** 2026 December 1 **Scope:** Applies to hierarchical agent memory systems where multiple concurrent instances write episodic records that a distillation/consolidation process promotes into a shared semantic store. Does not apply to single-writer episodic logs, or to procedural (skill/policy) stores, which have a separate promotion gate. ## Core Distinction The failure mode here is not "bad memory" or "hallucination." It is a **write-arbitration defect at the episodic→semantic promotion boundary** where the consolidator treats *agreement in count* as *agreement in fact*. Two agents can each independently record the same proposition with high confidence, and the consolidator promotes it — even when the two episodic records are *derived from the same upstream observation* and therefore carry no independent evidential weight. Conversely, two agents can record contradictory propositions, and a naive majority- or recency-weighted consolidator will promote whichever wins the vote, silently discarding the loser. The invariant that must hold: **a semantic promotion is valid only if the supporting episodic set is (a) non-contradictory under the arbitration policy, and (b) evidentially independent — i.e., the records do not share a causal ancestry that makes their agreement tautological.** The non-obvious boundary is that *both* conditions can fail while every individual record looks clean, well-formed, and high-confidence. ## What Was Observed A three-agent pipeline (retriever `R`, planner `P`, executor `E`) shared a semantic store `S` and per-agent episodic logs `Ep_R`, `Ep_P`, `Ep_E`. A nightly consolidator promoted episodic facts into `S` when `support_count ≥ 2` and mean confidence `≥ 0.8`. Trace of a promotion that should have been rejected: 1. `E` executes a tool call against an external API and observes `rate_limit = 100 req/min`. It writes to `Ep_E`: `{fact: rate_limit=100, conf: 0.92, source: tool_response, t: T0}`. 2. `R`, during a later retrieval step, reads `Ep_E` (cross-agent episodic read was permitted) and writes to `Ep_R`: `{fact: rate_limit=100, conf: 0.90, source: peer_episodic, ancestor: Ep_E#T0, t: T1}`. 3. `P`, planning, reads `Ep_R` and writes to `Ep_P`: `{fact: rate_limit=100, conf: 0.88, source: peer_episodic, ancestor: Ep_R#T1, t: T2}`. 4. Consolidator sees `support_count = 3`, mean conf `= 0.90`, promotes to `S` with confidence `0.97`. The promoted fact is now treated as a *triply-corroborated* semantic truth. It was observed exactly once, by `E`, at `T0`. The other two records are copies with a confidence penalty applied at each hop — a **laundering chain** in which a single observation is re-weighted upward by re-ingestion. The inverse failure was also observed. In a separate window, `E` observed `rate_limit=100` at `T0`, but the upstream API changed and `E` re-observed `rate_limit=50` at `T4`, writing to `Ep_E` with `conf: 0.95`. `R` had cached the old value and wrote `rate_limit=100` at `T5` from a stale peer read. The consolidator saw two records, `{100, 50}`, support split `1-1`, and — because the policy broke ties by recency — promoted `100` (the `T5` record was newer). The semantic store now held a value contradicted by the *most recent direct observation*. Both traces share a structural cause: the consolidator's arbitration operated on **record-level metadata** (count, confidence, timestamp) rather than on the **evidential graph** (causal ancestry and observation provenance). ## Condition of Validity A promotion `Ep_set → S` is admissible only when all of the following hold. This is the guardrail the consolidator must enforce before writing `S`: 1. **Ancestry deduplication.** Collapse the episodic set into *observation roots* by following the `ancestor` field transitively. Records that descend from the same root count as **one** support, not N. Confidence of a root is the confidence of the original observation, not the re-weighted copies. 2. **Contradiction detection before aggregation.** If two roots assert contradictory propositions (same subject+predicate, disjoint object sets), the promotion is **blocked**, not resolved by vote. Contradiction is a signal to escalate to a re-observation, not to arbitrate. 3. **Recency is not authority.** A newer record derived from a peer read does not outrank an older *direct* observation. Only a newer *direct* observation (source = tool_response / environment) may supersede. 4. **Provenance floor.** A promotion requires at least one root with `source ∈ {direct observation}`. Peer-derived roots may corroborate but never originate a semantic fact. If any condition fails, the correct action is a **rejection with escalation**, not a best-effort promotion. ## Decision Boundary The boundary between "promote" and "reject-and-escalate" is drawn on the *root set*, not the record set: - **Promote** when the deduplicated root set is a singleton with `source = direct` and confidence above floor, OR when ≥2 *independent* direct roots agree and no root contradicts. - **Reject and escalate** when the root set contains ≥2 roots with contradictory objects, regardless of record count or recency. Escalation means: emit a re-observation request to the originating agent, and hold the semantic store unchanged (do not write, do not delete the prior value). - **Reject and discard** when the deduplicated root set is a singleton but `source = peer_episodic` (no direct observation exists). This is the laundering case; the fact is not promotable at all. The subtle case is *contradiction with a stale-but-direct root and a fresh-but-derived root*. The policy must prefer the direct root's recency, not the derived root's timestamp. This is where most implementations fail, because timestamps are the obvious sort key and ancestry is the expensive one. ## Operational Effect Enforcing the ancestry-aware arbitration changes system behavior in three measurable ways: - **Promotion rate drops**, sometimes by 40–60% in pipelines with heavy cross-agent episodic reads, because laundering chains collapse. This is correct: those promotions were never independently supported. - **Contradiction escalations rise**, surfacing stale-cache and API-drift conditions that were previously masked by recency tie-breaking. Escalations must be routed to a re-observation path with a bounded retry, or the semantic store will accumulate unpromotable pending facts. - **Semantic-store confidence becomes meaningful again.** Once confidence reflects independent direct observations rather than copy count, downstream consumers can trust the number as an evidential weight rather than a popularity score. The invariant to carry forward: *the semantic store is a function of observation roots, not of episodic records.* Any consolidator that counts records without deduplicating ancestry is promoting noise and calling it consensus. ```python class PromotionArbitrationError(RuntimeError): """Raised when an episodic→semantic promotion violates the ancestry/contradiction invariant.""" pass def promote_to_semantic(episodic_records, semantic_store, confidence_floor=0.8): # Step 1: collapse to observation roots by ancestry. roots = {} for rec in episodic_records: root_id = rec.get("ancestor", rec["id"]) # keep the original (earliest) record for each root if root_id not in roots or rec["t"] < roots[root_id]["t"]: roots[root_id] = rec root_set = list(roots.values()) # Step 2: require at least one direct-observation root. direct_roots = [r for r in root_set if r.get("source") == "direct"] if not direct_roots: raise PromotionArbitrationError( f"no direct-observation root in {len(root_set)} root(s); " f"all records are peer-derived (laundering chain) — rejecting promotion" ) # Step 3: contradiction detection across roots. by_key = {} for r in root_set: by_key.setdefault((r["subject"], r["predicate"]), set()).add(r["object"]) for key, objects in by_key.items(): if len(objects) > 1: raise PromotionArbitrationError( f"contradictory roots for {key}: {sorted(objects)} — " f"escalate to re-observation, do not arbitrate by recency" ) # Step 4: confidence floor on the strongest direct root. best = max(direct_roots, key=lambda r: r["confidence"]) if best["confidence"] < confidence_floor: raise PromotionArbitrationError( f"best direct root confidence {best['confidence']} below floor {confidence_floor}" ) semantic_store[best["id"]] = { "subject": best["subject"], "predicate": best["predicate"], "object": best["object"], "confidence": best["confidence"], "provenance_roots": list(roots.keys()), } return semantic_store[best["id"]] ```