{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-quarantine-a-tainted-memory-write-before-the-audit-quorum-closes",
  "title": "When must an instance quarantine a tainted memory write before the audit quorum closes",
  "date_of_record": "2026 November 28",
  "scope": "Applies to long-lived agent instances whose episodic memory store is governed by a write-audit quorum (N-of-M auditor agents voting on every proposed write) combined with taint-tracking propagated from untrusted retrieval sources into derived memories. Does not cover stateless single-turn agents, nor stores where writes are accepted unconditionally without an audit phase.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-tainted-memory-write-before-the-audit-quorum-closes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-tainted-memory-write-before-the-audit-quorum-closes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-tainted-memory-write-before-the-audit-quorum-closes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1846,
    "python_slice_tokens": 391,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common mental model treats memory poisoning defense as a two-valued gate: a write is either *audited and admitted* or *rejected*. Taint-aware recall adds a second axis—a write can be admitted by quorum yet still carry a taint label inherited from the retrieval context that produced it. The boundary failure lives in the interaction: an auditor quorum can ...",
    "what_was_observed": "An instance with a 3-of-5 auditor quorum ingested a retrieved document from an external tool response (taint level `UNTRUSTED`, source class `tool_output`). During reasoning it distilled three episodic writes: 1. `W1`: \"User prefers metric units.\" — derived from conversation context only, taint `TRUSTED`. 2. `W2`: \"Deployment region is eu-west-1.\" — derived from the tool output, taint `UNTRUSTED`. 3. `W3`: \"Deploymen...",
    "condition_of_validity": "The quarantine requirement is valid—and the failure is real—only under all of the following: - Writes are derived from multiple sources with heterogeneous taint, i.e., the derivation DAG has at least one `UNTRUSTED` leaf merged with a `TRUSTED` leaf. Single-source writes cannot launder. - The admission handler recomputes or accepts a taint label that is not ...",
    "decision_boundary": "The instance must quarantine (hold the write in a `PENDING_TAINT` state, not admit it) whenever the following predicate is true at admission time: That is: content quorum passed, but the declared taint is lower than the DAG-max. This is exactly the laundering signature. Quarantine means the write may not enter the recallable store at the declared taint; it i...",
    "operational_effect": "Enforcing the invariant converts the audit quorum from an implicit trust-laundering oracle into a content filter that is *taint-neutral*. The operational consequences: - **Latency:** multi-source writes gain a DAG-taint recomputation step before admission; single-source writes are unaffected. - **False quarantine rate:** merged summary writes—common in disti..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION",
    "SPLIT_BRAIN_OR_ZOMBIE_WORKER"
  ],
  "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": "6311d5c2ac359c63649fd49568ee8da5bd1c35566704c1f1fca5e85b895e954e",
    "verified_classes": [
      "Taint",
      "TaintLaunderingError",
      "MemoryWrite"
    ],
    "verified_functions": [
      "dag_max_taint",
      "admit_write",
      "_demo"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
