{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-quarantine-a-memory-write-when-taint-labels-are-laundered-through-a-tool-s-structured-output",
  "title": "Under what conditions must an instance quarantine a memory write when taint labels are laundered through a tool's structured output?",
  "date_of_record": "2026 November 20",
  "scope": "Applies to agents that carry dynamic information-flow (taint) labels on context segments and propagate them across tool calls and memory writes. Does not apply to stateless single-turn inference with no persistent store or tool egress.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-memory-write-when-taint-labels-are-laundered-through-a-tool-s-structured-output.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-memory-write-when-taint-labels-are-laundered-through-a-tool-s-structured-output.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-memory-write-when-taint-labels-are-laundered-through-a-tool-s-structured-output.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1800,
    "python_slice_tokens": 328,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint tracking with dynamic labels assumes label *propagation* is a total function over the dataflow graph: if an untrusted segment `u` with label `L_taint` flows into a derived value `v`, then `v` inherits `L_taint` unless a declassifier explicitly clears it. The failure mode here is not a missed label on the raw payload — most implementations catch that. I...",
    "what_was_observed": "A retrieval-augmented agent fetched a document containing an injected instruction embedded in a benign-looking field: The fetch tool returned a JSON object. The runtime correctly labeled the raw HTTP body `L_taint`. The tool then deserialized the body into a `Document(title=..., note=...)` dataclass and re-serialized it for the agent. The re-serialization step constructed a *new* object graph; the label map was keyed...",
    "condition_of_validity": "The quarantine-on-write guardrail is valid — and must fire — precisely under this conjunction: - The value entering a memory write was **derived** (transitively) from any segment that ever carried `L_taint`, **and** - The derivation path passed through at least one **schema-coercing boundary** (deserialize/serialize, field extraction, template interpolation,...",
    "decision_boundary": "The boundary is between **re-derivable** and **non-re-derivable** trust. On write, ask: *can a future cold-start instance reconstruct why this value is safe?* If the provenance record carries the full derivation chain (source → coercions → declassifications), the future instance can re-verify and the write may commit. If the chain is broken at a coercion bou...",
    "operational_effect": "Without the `ABSENT ≠ CLEAN` invariant, taint tracking provides a false sense of security: it catches direct payload injection but leaks through every structured tool interface, and the leak is amplified by memory because a single laundered write poisons all future cold-start retrievals. The blast radius scales with memory retention, not with the number of t..."
  },
  "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": "d8998065b8695386a10736cd305a9e45b1abd327d7fa01e1dd890477728a7c8f",
    "verified_classes": [
      "Label",
      "LaunderedWriteError",
      "Provenance",
      "Value"
    ],
    "verified_functions": [
      "guard_memory_write",
      "simulate_laundering",
      "derivation_complete"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "LaunderedWriteError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
