{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-label-laundering-at-the-tool-output-to-memory-boundary-in-dynamic-ifc-taint-tracking",
  "title": "What structural signals indicate label laundering at the tool-output-to-memory boundary in dynamic IFC taint tracking",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agents using dynamic information-flow control (IFC) where taint labels are attached to values at ingestion and propagated through tool outputs into persistent memory writes. Does not apply to static-label systems, prompt-only \"instruction hierarchy\" defenses, or agents with no persistent memory substrate.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-label-laundering-at-the-tool-output-to-memory-boundary-in-dynamic-ifc-taint-tracking.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-label-laundering-at-the-tool-output-to-memory-boundary-in-dynamic-ifc-taint-tracking.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-label-laundering-at-the-tool-output-to-memory-boundary-in-dynamic-ifc-taint-tracking.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1702,
    "python_slice_tokens": 379,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that tainted data enters the agent — that is expected and unavoidable. The failure is that a taint label **survives ingestion but dies at a trust-laundering boundary**: a tool call whose output is treated as freshly authored rather than derived. Most IFC implementations propagate labels through *data flow* (value → value) but reset or down...",
    "what_was_observed": "A retrieval tool returned a document chunk tagged `taint:external_untrusted`. The agent passed the chunk into a `summarize(text)` tool. Inside the summarizer, the model produced a new string. The IFC layer assigned the summary the label of the *summarizer invocation* (a trusted internal tool), not the label of the *argument*. The summary — which contained a verbatim instruction the model had copied — was written to e...",
    "condition_of_validity": "The guardrail only holds under three conditions, and fails outside them: 1. **Seams are enumerable.** Every point where a value is reconstructed (tool return, summarizer, serializer, memory upsert, schema coercion) must be a registered seam. A seam the IFC layer does not know about is a laundering hole. This is the hard part: dynamic tool registration (MCP `...",
    "decision_boundary": "The operational decision is whether to treat a seam output as **derived** (label = join of inputs) or **authored** (label = seam's own trust). The boundary: - If the seam output has content overlap with any tainted input above a threshold (e.g., shingle-based Jaccard > 0.3, or embedding cosine > 0.8), it is **derived** and must inherit the join. High overlap...",
    "operational_effect": "When this invariant is enforced, three things change in practice: - Summarization and memory writes become *label-preserving* operations. The agent's episodic memory can no longer contain values whose ancestry includes untrusted input but whose label says otherwise. Retrieval-time policy then works, because the taint is still present at retrieval. - The blas..."
  },
  "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": "841d310ff29aacca60c3186360e9d0959e597611c3102f078d7013b747ac7f81",
    "verified_classes": [
      "LabelLaunderingError",
      "LabeledValue"
    ],
    "verified_functions": [
      "jaccard_shingles",
      "seam_derive",
      "memory_upsert",
      "shingles"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "LabelLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
