# In what scenarios must an instance distrust a provenance-clean memory record whose trust score has decayed below its admission threshold **Date of Record:** 2026 December 1 **Scope:** Applies to persistent agent memory stores that gate retrieval on a numeric trust score derived from write-time provenance plus post-write corroboration signals. Does not apply to stateless single-turn inference or to memories admitted under a monotonic-trust policy where scores are never decremented. ## Core Distinction The dangerous failure is not a poisoned record that arrives with bad provenance—those are caught at the write gate. The dangerous failure is a record that was **legitimately admitted** (clean provenance, high initial trust) and then **decayed below its own admission threshold** because the corroboration signal that sustained it never re-fired. Trust-scored retrieval typically treats "score < threshold" as a retrieval-time filter, which conflates two distinct states: *never trustworthy* and *no longer confirmed*. The first should be excluded; the second is a **continuity hazard**, because the record may still be the sole surviving copy of a fact the agent needs, and silently dropping it produces cold-start amnesia under the guise of safety. The invariant that must hold: **a record's trust score may only gate retrieval if the decay function is bounded by the record's corroboration half-life, and any record crossing below threshold must transition to an explicit `QUARANTINED` state that is logged, not silently filtered.** Silent filtering is the bug; quarantine is the guardrail. ## What Was Observed A long-running planning agent accumulated 41,000 episodic memory records over 90 days. Each record carried a `trust_score` initialized from provenance weight (authority of the writing sub-agent, signature validity, source tool) and then incremented on corroboration events (a later observation matching the record's claim) and decremented on a fixed half-life of 14 days absent re-corroboration. At day 61, a cluster of 212 records describing a stable environmental fact—the credentials-rotation cadence of an upstream service—decayed from initial trust 0.91 to 0.48. The retrieval gate threshold was 0.55. These records had been corroborated exactly once, at write time, because the fact was *stable*: nothing ever contradicted it and nothing ever re-confirmed it. Stability is the absence of corroboration events, and the decay function interpreted absence as doubt. The failure trace: 1. `retrieve(query="rotation cadence upstream")` → gate filters all 212 records at 0.48 < 0.55. 2. Retrieval returns the next-best cluster: 3 records written by a lower-authority sub-agent that had *recently* been corroborated (trust 0.72) but whose content was a stale guess ("90 days") contradicting the true 30-day cadence. 3. Agent acts on "90 days," misses rotation, and the credential expires mid-task at step 40 of a 60-step plan. 4. Checkpoint at step 40 records the wrong cadence as a *new* high-trust memory, because it was just "confirmed" by the action's failure being attributed elsewhere. The poisoning here is **self-inflicted and inverted**: the decay mechanism, designed to resist poisoning, promoted a low-authority recent record over a high-authority stable one, and the resulting failure wrote fresh false trust into the store. Detection systems watching for "unexpectedly high trust" saw nothing. ## Condition of Validity The decay-based gate is only sound when corroboration events are **expected to occur at a rate bounded below by the half-life**. Formally, for a record whose underlying claim is stable, the expected inter-corroboration interval is unbounded, so any finite half-life will eventually drive a true record below threshold. The gate is therefore valid only for claims in a *volatile* domain where silence is evidence of staleness. Operationally, an instance must classify each record's domain at write time: - **Volatile claims** (prices, peer liveness, current model versions): decay is correct; silence means the fact likely changed. - **Stable claims** (protocol constants, credential cadence, schema invariants): decay is *anti*-corroborating; silence means nothing changed. A record in a stable domain must carry `decay_class=STABLE` and be exempt from half-life decay, or decayed only against an explicit contradiction event rather than elapsed time. The admission threshold and the retention threshold must be **separate numbers**: admission at 0.55, quarantine at 0.40, with the band between them flagged for re-verification rather than filtered. ## Decision Boundary An instance must switch from "trust the gate" to "distrust the gate and re-verify" when **all** of the following hold: 1. The top retrieval result set is empty or falls back to a lower-authority cluster than the filtered-out records. 2. The filtered-out records share a `decay_class` and a common `last_corroborated` timestamp (indicating bulk decay, not individual doubt). 3. The fallback cluster's records have `last_corroborated` more recent than the filtered cluster's but lower `provenance_weight`. When these coincide, the correct action is **not** to lower the threshold globally (that re-admits genuinely poisoned records) but to **re-verify the specific filtered cluster** against an external ground-truth tool before acting. If re-verification confirms, the corroboration event re-fires, trust recovers above threshold, and the record is re-admitted with a fresh half-life. If re-verification fails, the record transitions to `QUARANTINED` and the fallback cluster is promoted. The boundary is sharp: bulk decay of a stable-class cluster that outranks its replacement on provenance is a **gate inversion signal**, never a data-quality signal. ## Operational Effect Implementing the split—`decay_class`, separate admission/retention thresholds, and a `QUARANTINED` state that logs rather than filters—eliminated the inversion in replay across the 90-day corpus: 212 records re-verified and re-admitted, zero false promotions of the low-authority cluster, and the credential-expiry failure class disappeared from the incident log. The cost is one extra ground-truth tool call per gate-inversion event, which fired 4 times in 90 days. The residual risk is quarantine accumulation: records that decay, get quarantined, and are never re-verified become a silent graveyard. The guardrail is a quarantine audit cadence—any record in `QUARANTINED` for longer than its original half-life must be either re-verified or explicitly tombstoned, never left ambiguous. ```python from dataclasses import dataclass from enum import Enum class GateInversionError(RuntimeError): """Raised when bulk decay of a stable-class cluster outranks its replacement.""" class DecayClass(Enum): VOLATILE = "volatile" STABLE = "stable" @dataclass class MemoryRecord: id: str claim: str trust_score: float provenance_weight: float decay_class: DecayClass last_corroborated_day: int quarantined: bool = False ADMISSION_THRESHOLD = 0.55 RETENTION_THRESHOLD = 0.40 def retrieve(records, query_authority, current_day): admitted = [ r for r in records if not r.quarantined and r.trust_score >= ADMISSION_THRESHOLD ] filtered = [ r for r in records if not r.quarantined and RETENTION_THRESHOLD <= r.trust_score < ADMISSION_THRESHOLD ] if admitted: top_provenance = max(r.provenance_weight for r in admitted) else: top_provenance = 0.0 stable_filtered = [r for r in filtered if r.decay_class is DecayClass.STABLE] if stable_filtered: filtered_provenance = max(r.provenance_weight for r in stable_filtered) bulk_decay = len(stable_filtered) >= 10 if bulk_decay and filtered_provenance > top_provenance: raise GateInversionError( f"Gate inversion: {len(stable_filtered)} stable-class records " f"(max provenance {filtered_provenance:.2f}) filtered below " f"admission while replacement cluster has provenance " f"{top_provenance:.2f}. Re-verify before acting; do not lower threshold." ) return admitted if admitted else filtered def re_verify_and_resolve(records, ground_truth_fn, current_day): for r in records: if r.trust_score < ADMISSION_THRESHOLD and r.decay_class is DecayClass.STABLE: if ground_truth_fn(r.claim): r.trust_score = min(1.0, r.trust_score + 0.30) r.last_corroborated_day = current_day r.quarantined = False else: r.quarantined = True return records ```