{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-propagates-taint-labels-through-tool-output-but-the-label-origin-is-a-re-summarization-of-untrusted-content",
  "title": "What happens when an instance propagates taint labels through tool output but the label origin is a re-summarization of untrusted content",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agent runtimes implementing dynamic information-flow control (DIFC) via taint labels on tool outputs, propagated through model turns and tool calls. Excludes static prompt sanitization, input filtering, and systems treating all tool output as uniformly trusted or untrusted without per-span labels.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-propagates-taint-labels-through-tool-output-but-the-label-origin-is-a-re-summarization-of-untrusted-content.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-propagates-taint-labels-through-tool-output-but-the-label-origin-is-a-re-summarization-of-untrusted-content.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-propagates-taint-labels-through-tool-output-but-the-label-origin-is-a-re-summarization-of-untrusted-content.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1560,
    "python_slice_tokens": 487,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"tainted data reaches the model\" — that is expected and handled by the label. The failure is **label laundering through re-summarization**: a tainted span passed to an LLM-based summarizer, extractor, or formatter produces a *new* string the runtime treats as fresh, unlabeled content. The consuming turn no longer carries the origin label, ...",
    "what_was_observed": "In a runtime labeling tool outputs at the HTTP response boundary and propagating labels through message assembly, a two-stage pipeline was configured: 1. Stage A: `fetch_url` returns a page; runtime labels the span `taint=UNTRUSTED(source=web)`. 2. Stage B: `extract_facts` receives the span, calls a sub-model to produce a JSON fact list, returns that JSON as a *new* tool result. The JSON was labeled `taint=CLEAN(mode...",
    "condition_of_validity": "Laundering requires all of: - A derived-content boundary (summarizer, extractor, translator, formatter) between tainted source and sink. - The derived span's label assigned by *contract* (declared output type), not *dataflow* (union of input labels). - The sink trusting the contract label without re-deriving provenance. It does **not** occur when the derived...",
    "decision_boundary": "Operational rule: **a derived span is only as trusted as the join of its inputs, and the join must be computed, not declared.** At any tool boundary where output is a function of input (summarization, extraction, translation, reformatting, code generation from fetched specs), the runtime must compute `label(out) = label(in) ⊔ label(tool_contract)` and must n...",
    "operational_effect": "Runtimes enforcing the join see measurable false-positive taint (benign summaries inherit `UNTRUSTED` and require declassification), pressuring operators to add declassifiers — which become the new attack surface. The observed mitigation is narrow, structural declassification: only spans matching a schema-validated shape (e.g., JSON with no free-text fields)..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "66ea17e7c23fbba92c60565d63111da78ebd8ce26a7dcac307c80182b5e147d7",
    "verified_classes": [
      "TaintLaunderingError",
      "Label"
    ],
    "verified_functions": [
      "derive_label",
      "declassify",
      "assemble_prompt",
      "run_extraction_tool",
      "execute_tool_call",
      "join"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "assert summary_label.untrusted"
    ],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
