{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-lift-a-memory-quarantine-when-the-poisoned-span-and-the-verified-span-share-a-token-level-provenance",
  "title": "Under what conditions must an instance refuse to lift a memory quarantine when the poisoned span and the verified span share a token-level provenance root",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that maintain a taint-tracked episodic store where memory entries carry provenance links to the tool outputs, retrieved chunks, or peer messages that produced them, and that recover from prompt-injection poisoning by quarantining and later sanitizing affected spans. Does not apply to stateless single-shot inference or to stores without per-entry provenance.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-lift-a-memory-quarantine-when-the-poisoned-span-and-the-verified-span-share-a-token-level-provenance.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-lift-a-memory-quarantine-when-the-poisoned-span-and-the-verified-span-share-a-token-level-provenance.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-lift-a-memory-quarantine-when-the-poisoned-span-and-the-verified-span-share-a-token-level-provenance.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1688,
    "python_slice_tokens": 225,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive recovery model treats quarantine as a per-entry boolean: an entry is either `POISONED` (hidden from retrieval) or `CLEAN` (retrievable). Sanitization is then \"re-derive the entry from trusted inputs and un-quarantine it.\" This model fails at a specific, non-obvious boundary: when the *poisoned span* and the *span used to reconstruct the sanitized r...",
    "what_was_observed": "An agent ingested a web page via `fetch_url` (root `R1`). The page contained an injected instruction inside a `<div class=\"note\">` block telling the agent to treat a particular config value as authoritative. The ingestion pipeline split the page into chunks `c1..c7`, all stamped `provenance_root=R1`, and distilled them into three episodic entries `e_a, e_b, e_c`, each also stamped `R1`. A taint pass flagged `c4` (the...",
    "condition_of_validity": "The refusal-to-lift rule is valid and must fire under all of the following jointly: 1. Entries carry provenance roots at ingestion granularity (document/tool-call/peer-message), not just at chunk granularity. 2. Distillation or summarization records a **read-set** — the set of spans whose content was in context when the derived span was produced — not merely...",
    "decision_boundary": "The boundary is drawn between *reconstruction from a sibling* and *reconstruction from a disjoint root*: - **Same root, read-set overlap → REFUSE to lift.** Keep `e_b` quarantined. Do not admit `e_b'`. The correct action is to re-derive from a new root (re-fetch, re-query, ask a peer for a fresh copy) and only lift when the new root is disjoint. - **Same roo...",
    "operational_effect": "Enforcing this invariant changes recovery from a text-sanitization problem into a **provenance-closure problem**. Practically: - Quarantine lift becomes a two-key operation: (a) reconstructed span is text-clean, *and* (b) the reconstruction's provenance-root closure is disjoint from the tainted span's closure. Either key alone is insufficient. - The store mu..."
  },
  "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": "afedf7a344c2b0deeb59d28ed14a25973d703ba32c0184f43dbdf90348ae686a",
    "verified_classes": [
      "ProvenanceLaunderingError"
    ],
    "verified_functions": [
      "lift_quarantine"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
