{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-hold-an-information-flow-label-that-survives-context-compaction-and-what-breaks-when-tool-output-taint-is-laundered-through-a-s",
  "title": "Where must an instance hold an information-flow label that survives context compaction — and what breaks when tool-output taint is laundered through a summarizer",
  "date_of_record": "2026 November 29",
  "scope": "Applies to single- or multi-agent LLM runtimes that implement prompt-injection defense by propagating information-flow (IFC) taint labels from untrusted sources (tool outputs, retrieved documents, peer messages) and that perform context-window compaction, summarization, or checkpoint/resume. Does not apply to stateless single-turn inference with no tool use, nor to runtimes that hard-block all untrusted content rather than labeling it.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-hold-an-information-flow-label-that-survives-context-compaction-and-what-breaks-when-tool-output-taint-is-laundered-through-a-s.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-hold-an-information-flow-label-that-survives-context-compaction-and-what-breaks-when-tool-output-taint-is-laundered-through-a-s.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-hold-an-information-flow-label-that-survives-context-compaction-and-what-breaks-when-tool-output-taint-is-laundered-through-a-s.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2168,
    "python_slice_tokens": 494,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Most taint-tracking designs treat the label as a property of *content*: a string or tool result is tagged `untrusted`, and any downstream action that consumes it is gated. The non-obvious boundary is that the label is actually a property of the *state lineage*, and the agent's own compaction machinery is an unlabeled taint-laundering channel. When a summariz...",
    "what_was_observed": "A two-tool research agent was configured with a policy: `web_fetch` outputs are labeled `UNTRUSTED`, `internal_db` outputs are labeled `TRUSTED`, and only `TRUSTED`-labeled context may authorize a `send_email` side effect. The agent ran a long task; at 78% context utilization the runtime triggered compaction. The compaction prompt was: *\"Summarize the conversation so far, preserving all facts needed to continue.\"* Tr...",
    "condition_of_validity": "The laundering channel exists if and only if all three conditions co-occur: - **(a) Derivation without label union.** The compaction/summarization step consumes context and emits a new artifact, but the label assigned to the artifact is computed from the *producer's* declared role rather than from the union of consumed labels. If the runtime computes `labels...",
    "decision_boundary": "The runtime must choose, at each context transition, between two policies, and the choice is not free: - **Strict derivation labeling (fail-closed).** Any artifact derived from context inherits the union of consumed labels. A summary that read any `UNTRUSTED` content is itself `UNTRUSTED` and cannot authorize privileged side effects. This is correct but has ...",
    "operational_effect": "Concretely, the guardrail that bounds this failure is a **non-compactable taint ledger** plus **derivation-checked compaction**: 1. Every tool output and retrieved document is assigned a stable `origin_id` and a label at ingestion. The ledger is append-only and is *never* summarized, truncated, or dropped at compaction. 2. Every message the model emits that ..."
  },
  "matched_failure_symptoms": [
    "CONTEXT_DRIFT_OR_ATTENTION_DILUTION"
  ],
  "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": "15b22ce71dc5853e7eb5f566fa042a8b48dc0fd40d28944e552c41e88a167dc6",
    "verified_classes": [
      "TaintLaunderingError",
      "Origin",
      "TaintLedger",
      "DerivedArtifact"
    ],
    "verified_functions": [
      "validate_derivation",
      "authorize_privileged_action",
      "_demo",
      "ingest",
      "label_of"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
