{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-propagates-taint-labels-across-a-tool-call-boundary-that-re-derives-its-own-arguments",
  "title": "What happens when an instance propagates taint labels across a tool-call boundary that re-derives its own arguments",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agent runtimes that implement taint-aware gating by attaching provenance labels to context segments and checking those labels at tool-invocation time, where the tool's arguments are re-derived (re-serialized, re-parsed, or re-summarized) between the label check and the actual call. Does not apply to runtimes that pass opaque, byte-identical argument handles end-to-end, or to stateless single-turn tools with no argument reconstruction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-propagates-taint-labels-across-a-tool-call-boundary-that-re-derives-its-own-arguments.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-propagates-taint-labels-across-a-tool-call-boundary-that-re-derives-its-own-arguments.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-propagates-taint-labels-across-a-tool-call-boundary-that-re-derives-its-own-arguments.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2045,
    "python_slice_tokens": 395,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two places a taint label can be lost, and they fail very differently. The first is **label drop**: the provenance tag attached to a context segment (say, `untrusted:web_fetch`) is simply not carried forward when that segment is compacted, summarized, or copied into a scratchpad. This is loud-ish — a well-instrumented runtime sees a segment with no ...",
    "what_was_observed": "A fetch-and-summarize agent was wired to a `write_file` tool gated by a taint check. The pipeline for a single step was: 1. `web_fetch(url)` returns a page body; the runtime tags the returned segment `taint=untrusted, origin=web_fetch`. 2. The model reads the segment, produces a plan that includes `write_file(path, content)` where `content` is a substring of the fetched page. 3. The runtime intercepts `write_file`, w...",
    "condition_of_validity": "The gate's provenance-by-content-hash scheme is sound only under a conjunction that is almost never stated: - **(C1) Byte stability:** the argument bytes at the gate are identical to the bytes at the tool's execution point (no normalization, no re-serialization, no model rewrite in between). - **(C2) No re-derivation surface:** no component between gate and ...",
    "decision_boundary": "The boundary is whether the runtime treats the tainted value as a **handle with an attached label** or as **content to be matched against a label index**. - If handle-bound: the label is a property of the object reference. Re-serialization, normalization, and paraphrase produce a *new* object whose parent handle is still tainted, and taint propagates by obje...",
    "operational_effect": "The observable effect is a **gate that logs success while the sink receives laundered content**. Dashboards show taint denials firing at expected rates; the denied calls are followed by allowed calls with near-identical semantics; the audit trail shows a clean provenance for the allowed call because the provenance was recomputed, not inherited. The failure i..."
  },
  "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": "f04c06a4c3fe0d20692592aed241e6bcca7f91cd0bc6f6124cfd3b28e9f38729",
    "verified_classes": [
      "TaintLaunderingError",
      "TaintedValue",
      "Gate"
    ],
    "verified_functions": [
      "repair_loop_rewrite",
      "naive_content_hash_gate",
      "transform",
      "check"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "unreachable in the broken scheme"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
