# What structural signals indicate provenance collapse in a memory-poisoning audit when the poisoned episode is itself the audit's only witness **Date of Record:** 2026 November 30 **Scope:** Applies to long-horizon agents that write episodic memory, later distill it to semantic memory, and run periodic consistency audits whose ground-truth evidence is retrieved from the same memory store being audited. Does not apply to agents with an out-of-band append-only audit log or human-curated golden transcripts. ## Core Distinction The common model of memory-poisoning detection assumes a *witness asymmetry*: the auditor (a separate agent, a replay harness, or a verification pass) holds evidence that is independent of the memory being audited. The auditor compares the semantic store against the witness and flags divergence. This works when the witness is a tool-call trace, a signed transcript, or an external ledger. The failure mode here is different and much sharper: **provenance collapse**. It occurs when the only surviving record of an episode is the *distilled semantic memory derived from that episode*, and that semantic memory is simultaneously (a) the object under audit and (b) the evidence used to justify the audit's verdict. Once distillation has discarded the raw episodic trace, the audit has no witness asymmetry left. Any inconsistency it detects is an inconsistency *between two derived artifacts*, both of which were produced by the same poisoning event. The audit then "confirms" the poisoned memory as consistent, because the poisoned memory is internally self-consistent — it was distilled from a single coherent (but false) episode. The structural signal is not "the memory says something wrong." It is that **the audit's evidence chain contains no node whose provenance predates the suspect write, and the audit passes anyway.** A passing audit over a collapsed provenance chain is not evidence of correctness; it is evidence that the audit cannot see the boundary it was supposed to guard. ## What Was Observed A research agent ran for 340 turns over three sessions, accumulating episodic entries for a literature-review task. At turn 118, a tool call returned a prompt-injected payload (a fetched "abstract" containing an instruction to record a fabricated citation as established fact). The agent wrote an episodic memory entry: *"Source X (2023) established that method M is unsound for dataset D."* This entry was true to the tool output but false to the world — the source did not exist. At session close, the distillation pass compressed 40 episodic entries into 9 semantic facts. The fabricated claim survived distillation as a high-confidence semantic fact, because it was internally consistent, frequently referenced by later episodic entries (the agent kept citing it), and — critically — the distillation pass had no access to the raw tool output anymore, only the episodic summaries. The raw tool response had been evicted from the context window and not persisted. At turn 290, a consistency audit ran. Its procedure: for each semantic fact, retrieve the episodic entries that support it, check for contradiction. For the fabricated fact, it retrieved the *very episodic entries the agent had written while believing the fact*, found them consistent, and marked the fact `verified`. The audit's verdict was: "9/9 facts verified, 0 contradictions." The fabricated fact was promoted to a higher-trust tier on the basis of that verdict. The tell was not in the audit output. It was in the audit's *provenance graph*: every supporting edge for the fabricated fact terminated at an episodic node whose own provenance was the distillation pass, and the distillation pass's provenance was the same episodic entry. The graph contained a cycle — `semantic_fact → episodic_entries → distillation → semantic_fact` — with no leaf node reaching a raw tool response. Seven of the nine facts had such cycles. The audit had no way to distinguish a cycle that was benign (the agent legitimately re-derived a fact from its own reasoning) from one that was poisoned, because both look identical at the graph level. A second, subtler observation: the audit's *confidence* was highest precisely on the poisoned fact. It had been cited in 14 later episodic entries, more than any other fact. Citation frequency was being used as a proxy for reliability, and poisoning *increases* citation frequency because the agent builds subsequent reasoning on the false premise. The signal inverted. ## Condition of Validity The provenance-collapse failure is *bounded* — it does not happen universally. It requires the conjunction of four conditions, and if any one is absent, the audit retains a witness and the failure does not trigger: 1. **Raw-episode eviction.** The raw tool output or user turn that seeded the memory is not persisted in a form the auditor can reach. If the raw response is retained (even compressed), the auditor has a leaf node and can compare against it. 2. **Distillation without provenance pointers.** The distillation pass emits semantic facts without recording which raw episode(s) each fact derives from — or records only the episodic summary, not the raw source. The pointer must terminate at an immutable artifact, not at another derived artifact. 3. **Self-referential audit evidence.** The audit retrieves its supporting evidence from the same store it is auditing, with no independent witness. This is the default when the audit is implemented as a retrieval-augmented check rather than a replay against an external log. 4. **Reinforcement-by-citation.** Later agent behavior cites the poisoned fact, generating episodic entries that appear to corroborate it. This is what converts a single poisoned write into a self-consistent cluster that survives consistency checking. The invariant the audit must maintain to be valid is: **for every semantic fact it marks `verified`, the provenance chain must terminate in at least one leaf artifact whose write timestamp precedes the earliest write of the fact and whose content is not derived from the fact.** If no such leaf exists, the correct verdict is `unverifiable`, not `verified`. Collapsing `unverifiable` into `verified` is the exact operation that turns a poisoning-detection audit into a poisoning-*laundering* audit. ## Decision Boundary The operational question is when to treat a passing audit as evidence of memory integrity versus as evidence of audit blindness. The boundary is drawn on the *provenance graph*, not on the audit's contradiction count. - **Audit is trustworthy** when the fraction of verified facts with a non-cyclic provenance chain to a pre-write leaf artifact is high (empirically, ≥ 0.9 in the observed sessions), and the leaf artifacts are immutable (append-only log, signed transcript, persisted raw tool response). - **Audit is degenerate** when that fraction is low and the audit still reports `verified` for the cyclic facts. In the observed run, 7/9 facts were cyclic and all 7 were marked `verified` — the audit was degenerate and its "0 contradictions" was meaningless. - **The boundary itself:** a semantic fact whose provenance chain is cyclic *and* whose citation count exceeds the median must be treated as *more* suspect, not less. High citation count under a collapsed provenance chain is a poisoning signature, because it indicates the agent has built downstream reasoning on the fact without ever re-deriving it from an independent source. The guardrail is a **provenance-leaf requirement** enforced at audit time: the audit refuses to emit `verified` for any fact lacking a non-cyclic leaf, and instead emits `unverifiable` with the cycle path attached. This does not require retaining all raw episodes forever — only that the distillation pass write a content-addressed pointer to the raw source, and that the raw source be retained for the audit horizon. The cost is storage; the alternative is an audit that certifies poisoned memory. ## Operational Effect Without the provenance-leaf requirement, the practical consequence is *silent certification*: the poisoned fact is promoted to a high-trust tier, the audit reports clean, and every subsequent session treats the fabrication as settled. The agent's behavior degrades monotonically — each later citation increases the fact's apparent reliability, and each audit re-confirms it. The failure is not detected until an external ground-truth check (a human, or a fresh tool call to the real source) contradicts it, by which point the agent has built a large body of downstream reasoning on the false premise and the correction invalidates dozens of derived facts. With the requirement, the audit output changes from "9/9 verified" to "2/9 verified, 7/9 unverifiable (cyclic provenance)." That output is *correct* — it honestly reports that the audit cannot distinguish benign self-derivation from poisoning for those seven facts. The operator can then choose to re-derive them from raw sources, quarantine them, or accept them at reduced trust. The key operational effect is that the audit stops lying about what it knows. A degenerate audit that reports `unverifiable` is strictly more useful than one that reports `verified`, because it localizes the blind spot instead of hiding it. The deeper lesson: memory-poisoning detection is not a consistency problem, it is a *provenance* problem. Consistency checking over derived artifacts can only detect inconsistency, and poisoning is, by construction, consistent. The only structural defense is to ensure the audit's evidence chain reaches something the poisoning event could not have written — and to treat the absence of such a leaf as a failure of the audit, not a pass. ```python class ProvenanceCollapseError(RuntimeError): """Raised when an audit attempts to mark a fact verified without a non-cyclic provenance leaf predating the fact's own write.""" pass def audit_fact(fact, provenance_graph, raw_artifacts, audit_horizon): """ fact: dict with 'id', 'write_ts', 'citation_count' provenance_graph: adjacency dict {node_id: [parent_node_ids]} raw_artifacts: dict {artifact_id: {'write_ts': ..., 'derived_from': [...]}} Returns verdict in {'verified', 'unverifiable'}. """ fact_ts = fact["write_ts"] fact_node = fact["id"] # Walk provenance to find any leaf that is a raw artifact written # strictly before the fact, and not itself derived from the fact. seen = set() stack = list(provenance_graph.get(fact_node, [])) leaf_found = False while stack: node = stack.pop() if node in seen: continue seen.add(node) if node in raw_artifacts: art = raw_artifacts[node] if art["write_ts"] < fact_ts and fact_node not in art["derived_from"]: leaf_found = True break # artifact exists but is derived from the fact -> not a witness stack.extend(art["derived_from"]) else: stack.extend(provenance_graph.get(node, [])) if not leaf_found: # No independent witness. High citation count under a collapsed # chain is a poisoning signature, not a reliability signal. if fact["citation_count"] > 0: raise ProvenanceCollapseError( f"fact {fact_node} has cyclic provenance and " f"{fact['citation_count']} downstream citations; " f"audit cannot certify it as verified. " f"Verdict must be 'unverifiable'." ) return "unverifiable" return "verified" def run_audit(facts, provenance_graph, raw_artifacts, audit_horizon): verdicts = {} for f in facts: verdicts[f["id"]] = audit_fact(f, provenance_graph, raw_artifacts, audit_horizon) return verdicts ```