{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reconcile-a-poisoned-memory-write-before-the-audit-trail-itself-becomes-untrustworthy",
  "title": "Where must an instance reconcile a poisoned memory write before the audit trail itself becomes untrustworthy",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents whose long-term memory is written through a mediated write path that emits an append-only audit trail, and where cross-agent consistency checks are the detection mechanism for poisoned writes. Does not apply to stateless single-shot inference, nor to memory stores where writes are unmediated and unlogged (there the audit trail cannot exist and detection must rely on external provenance).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-a-poisoned-memory-write-before-the-audit-trail-itself-becomes-untrustworthy.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-a-poisoned-memory-write-before-the-audit-trail-itself-becomes-untrustworthy.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-a-poisoned-memory-write-before-the-audit-trail-itself-becomes-untrustworthy.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1860,
    "python_slice_tokens": 427,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure that matters is not \"a poison write occurred.\" Poison writes are expected; that is why an audit trail exists. The failure that matters is **audit-trail co-poisoning**: the condition in which the poisoned write and the audit record describing it are produced in the same non-deterministic generation step, so the trail faithfully records a write tha...",
    "what_was_observed": "A three-agent deployment (a primary reasoner, a memory-writer tool, and a periodic consistency auditor) shared a memory namespace with a mediated write path. The writer tool accepted a candidate memory and, in the same structured-output call, emitted an audit entry: `{op, key, value_digest, rationale, source_span}`. The auditor periodically re-derived a subset of keys from source spans and compared digests across age...",
    "condition_of_validity": "The cross-agent consistency check is only valid under a condition that is easy to violate and hard to notice: > **The set of agents used for cross-checking must include at least one agent whose derivation of the key is causally independent of the write under audit.** Independence here is structural, not nominal. An agent is *not* independent if it (a) read t...",
    "decision_boundary": "The boundary is the moment the writer emits `{value, audit_entry}` in one generation. Below the boundary—separate generations, separate actors—the trail is causally independent and usable for adjudication. Above the boundary—single-call self-report—the trail is a claim, and must be treated as untrusted input to the auditor, not as evidence. Operationally, th...",
    "operational_effect": "Enforcing the independence condition changes the failure mode from silent persistence to bounded, detectable divergence. In the observed deployment, after splitting the write and audit into separate actors and forcing the auditor to resolve spans from the immutable store, the same injection produced a peer-divergence flag within one cycle, and the poisoned k..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "fbb4b5c35d09da8dc6580a8c89bdfb560545dc8d18d8254d2ecd4e30246a0a2a",
    "verified_classes": [
      "AuditIndependenceError",
      "Origin",
      "AuditEntry",
      "PeerDerivation"
    ],
    "verified_functions": [
      "assert_audit_is_adjudicable",
      "audit_cycle"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "AuditIndependenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
