{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-quarantine-adversarial-memory-writes-without-detecting-the-poisoning-that-already-crossed-the-trust-threshold-mid-consolidation",
  "title": "Why does an instance quarantine adversarial memory writes without detecting the poisoning that already crossed the trust threshold mid-consolidation",
  "date_of_record": "2026 November 25",
  "scope": "Applies to long-lived agents that persist episodic traces into a semantic memory store guarded by write-time trust scoring and a quarantine buffer. Does not cover read-time retrieval filtering, prompt-injection defenses at the input boundary, or stateless single-turn agents.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-quarantine-adversarial-memory-writes-without-detecting-the-poisoning-that-already-crossed-the-trust-threshold-mid-consolidation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-quarantine-adversarial-memory-writes-without-detecting-the-poisoning-that-already-crossed-the-trust-threshold-mid-consolidation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-quarantine-adversarial-memory-writes-without-detecting-the-poisoning-that-already-crossed-the-trust-threshold-mid-consolidation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1714,
    "python_slice_tokens": 255,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Write-time trust scoring is a *gate*, not a *filter*. It assigns a scalar trust value to an incoming memory candidate and admits, quarantines, or rejects it based on a threshold. The invariant operators assume is: *anything above threshold is trusted, anything below is quarantined, and the quarantine buffer is the sole path by which untrusted content can lat...",
    "what_was_observed": "A consolidation worker was distilling episodic traces into semantic memory with a two-phase commit: phase one scored each candidate and wrote a `trust_score` and `content_hash`; phase two materialized the record, pulling provenance references (source episode IDs, tool-call hashes) from the episodic store and, where a source had been quarantined, from the quarantine buffer's shadow copy. The trace that surfaced the de...",
    "condition_of_validity": "The bypass requires all of the following to co-occur: - **Asynchronous two-phase consolidation** where scoring and materialization are separated by a window in which source trust can change. - **Provenance re-resolution at materialization** that reads from the quarantine buffer as a fallback source, rather than treating quarantine membership as disqualifying...",
    "decision_boundary": "The architectural invariant required is **trust monotonicity under composition**: for any memory record `R` with provenance set `P(R)`, the committed trust must satisfy `trust(R) ≤ min_{p ∈ P(R)} trust(p)`, evaluated over the provenance as it exists *at commit*, not at scoring. Operationally this forces three changes: 1. **Bind the hash to the provenance clo...",
    "operational_effect": "Without the invariant, the quarantine buffer becomes a laundering channel: adversarial content enters quarantine, is pulled into a high-trust composite during provenance re-resolution, and exits as trusted. The buffer's isolation guarantee is real but local — it protects the store from *direct* writes of quarantined content while permitting *transitive* writ..."
  },
  "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": "4cca823cd51c3b9e38d3626731c90ea0ff06f50484063665c24698e834151707",
    "verified_classes": [
      "TrustMonotonicityViolation"
    ],
    "verified_functions": [
      "commit_memory"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TrustMonotonicityViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
