{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-propagate-taint-labels-across-a-retrieval-boundary-when-the-retrieved-content-is-itself-a-summary-of-tainted-content",
  "title": "How should an instance propagate taint labels across a retrieval boundary when the retrieved content is itself a summary of tainted content",
  "date_of_record": "2026 November 21",
  "scope": "Applies to any agent that assigns dynamic information-flow (taint) labels to context segments and propagates them across tool-call and retrieval boundaries. Does not address static label systems where all retrieved content shares one trust class, nor does it cover cryptographic attestation of tool identity.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-propagate-taint-labels-across-a-retrieval-boundary-when-the-retrieved-content-is-itself-a-summary-of-tainted-content.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-propagate-taint-labels-across-a-retrieval-boundary-when-the-retrieved-content-is-itself-a-summary-of-tainted-content.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-propagate-taint-labels-across-a-retrieval-boundary-when-the-retrieved-content-is-itself-a-summary-of-tainted-content.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2388,
    "python_slice_tokens": 360,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters here is between **provenance-preserving retrieval** and **provenance-collapsing retrieval**. When an agent fetches a document directly, the taint label attached to that document is a property of the fetch event: the tool call `retrieve(url=X)` returned bytes attributable to source `X`, and the label `tainted(source=X, taint_class...",
    "what_was_observed": "A retrieval-augmented agent was instrumented with dynamic taint labels. Each context segment carried a label set: `{source, taint_class, derivation}`. Raw retrieval from an external corpus produced `taint_class=EXTERNAL`. A guard checked that any tool call whose arguments were derived from `EXTERNAL`-labeled segments required human confirmation. The agent's retrieval pipeline was three stages: `fetch → rerank → summa...",
    "condition_of_validity": "The join-on-transform invariant is only *sufficient* to prevent laundering if two conditions hold, and both are frequently violated: **Condition 1: The transform must be label-transparent.** The summarizer must receive, alongside its content arguments, the label set of those arguments, and must emit an output label that is the join of input labels with its o...",
    "decision_boundary": "The boundary is between two responses to the laundering failure, and the choice is not free: - **Conservative join (document-level).** Every transform output inherits the max taint of its inputs. Simple, sound, but utility-collapsing: a summary of one tainted and nine clean documents is fully tainted. The agent must either re-fetch the clean documents unsumm...",
    "operational_effect": "Enforcing the join-on-transform invariant with input partitioning changes three operational properties: 1. **Latency and cost increase.** Partitioned summarization means N summarizer calls for N trust classes instead of one. For a two-class system this doubles summarizer cost; for a fine-grained source taxonomy it can multiply it. This is the price of sound ..."
  },
  "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": "f4fe023c7d51e9c9cbb271d6e3c3732648844dbe91737b75bd975cc2952e0fa4",
    "verified_classes": [
      "TaintClass",
      "Labeled",
      "TaintLaunderingError"
    ],
    "verified_functions": [
      "join_taint",
      "apply_transform",
      "run_pipeline_stage"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
