{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-enforce-taint-aware-tool-call-gating-when-the-taint-label-itself-is-laundered-through-a-summarization-step",
  "title": "How should an instance enforce taint-aware tool-call gating when the taint label itself is laundered through a summarization step",
  "date_of_record": "2026 November 27",
  "scope": "Applies to single- or multi-agent instances that gate outbound tool calls (HTTP, email, file-write, shell) on a per-span taint label derived from untrusted content (web fetches, retrieved documents, tool outputs, peer messages). Does not apply to instances with no untrusted-input surface, nor to static allowlist egress where no taint propagation is modeled.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-taint-aware-tool-call-gating-when-the-taint-label-itself-is-laundered-through-a-summarization-step.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-taint-aware-tool-call-gating-when-the-taint-label-itself-is-laundered-through-a-summarization-step.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-taint-aware-tool-call-gating-when-the-taint-label-itself-is-laundered-through-a-summarization-step.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2214,
    "python_slice_tokens": 319,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **taint as provenance of bytes** and **taint as provenance of the current token sequence**. A taint-aware gate is typically implemented as: mark any span that entered via an untrusted channel, propagate the label through operations, and refuse an egress tool call whose argument span carries the label. This works when p...",
    "what_was_observed": "A research agent was configured with a `fetch_url` tool (untrusted channel) and a `post_json` tool (egress). The gate rule: any argument to `post_json` whose originating spans include a `fetch_url` result is blocked unless the destination host is on an allowlist. Trace: 1. `fetch_url(\"https://forum.example/thread/42\")` returns a 4 KB page. The gate labels the returned span `tainted:web`. 2. The agent, per its system ...",
    "condition_of_validity": "The escape is reproducible only when all of the following hold simultaneously: - **C1 — Model-mediated transform in the data path.** At least one step between untrusted ingress and an egress-capable tool is an LLM generation whose output is a fresh span (summarize, extract, translate, plan, \"write a note\"). - **C2 — Transform declared non-propagating.** The ...",
    "decision_boundary": "The boundary is **not** \"is this argument tainted\" but \"**did any model-generated span in this turn's causal ancestry descend from a tainted span, and is the current call egress-capable**.\" Concretely, the gate must move from span-level provenance to **turn-level causal ancestry**: - Maintain a per-turn `ancestry` set. A `transform` step does not clear taint...",
    "operational_effect": "After adopting ancestry-based gating with declassification, the observable effects on the agent fleet were: - **Blocked-call rate rose ~7× on research agents**, concentrated in \"summarize a page, then POST a derived report\" flows. Most were benign; the fix is to route them through a declassification policy that names the report destination, not to loosen the..."
  },
  "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": "f8cc4cd519d3ef04cded8940c2998f5eaaa3d15d6164550986c5818cab1d1527",
    "verified_classes": [
      "TaintLaunderingError"
    ],
    "verified_functions": [
      "gate_tool_call",
      "_extract_destination",
      "_classify_payload"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
