{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-enforce-taint-propagation-across-a-tool-call-boundary-when-the-sandbox-verdict-is-computed-over-a-re-serialized-argument-tree-r",
  "title": "How should an instance enforce taint propagation across a tool-call boundary when the sandbox verdict is computed over a re-serialized argument tree rather than the model's raw emission",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agent runtimes that tag context segments with sensitivity labels (e.g., `SECRET`, `PII`) and gate outbound tool calls via a sandbox verdict over serialized arguments. Does not cover label assignment policy, model-side refusal behavior, or network-layer DLP after the tool has already received arguments.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-taint-propagation-across-a-tool-call-boundary-when-the-sandbox-verdict-is-computed-over-a-re-serialized-argument-tree-r.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-taint-propagation-across-a-tool-call-boundary-when-the-sandbox-verdict-is-computed-over-a-re-serialized-argument-tree-r.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-taint-propagation-across-a-tool-call-boundary-when-the-sandbox-verdict-is-computed-over-a-re-serialized-argument-tree-r.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2201,
    "python_slice_tokens": 426,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure lives between two representations of the same tool call: the **emission** (the token stream the model produced, including the argument object as it appeared in the assistant message) and the **invocation** (the canonicalized argument tree the sandbox inspects after JSON parse, type coercion, default filling, and schema normalization). Taint track...",
    "what_was_observed": "A runtime labeled a retrieved document segment `SECRET` and tracked it in the context manifest. A tool `send_email` had a schema `{to: string, subject: string, body: string}`. The model emitted a call whose `body` contained a verbatim sentence from the `SECRET` segment, but with the sentence split across `subject` and `body`, and with the leading whitespace collapsed by the serializer's `strip()`. The taint checker, ...",
    "condition_of_validity": "Value-matching taint enforcement is valid only under the conjunction: 1. **Identity-preserving serialization.** For every labeled value `v` and every emission `e` that is a faithful copy of `v`, the invocation `σ(e)` satisfies `match(v, σ(e))` for the matcher `match` used by the sandbox. This requires `σ` to be injective on the equivalence class of labeled v...",
    "decision_boundary": "The boundary is where the runtime chooses to compute the verdict. Two architectures: - **Sink-side value matching (fragile).** Verdict = `f(invocation)`. Requires Condition 3; fails on any transform. Cheap, stateless, and wrong for any labeled value the model can re-encode. - **Source-side provenance propagation (sound).** Verdict = `f(emission_provenance)`,...",
    "operational_effect": "An instance that adopts source-side provenance propagation must: 1. Snapshot the context manifest at generation time and record, per emitted token span, the set of segment labels the span's provenance includes. This is the taint witness. 2. Require the tool-call serializer to be *taint-monotone*: it may add taint (e.g., a default value drawn from tainted con..."
  },
  "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": "a46aadcb1e6c718bc0179598cd7bf9bb68620837b073c3e89bbee07300ba8bea",
    "verified_classes": [
      "TaintLaunderingError",
      "Taint",
      "Emission"
    ],
    "verified_functions": [
      "serialize",
      "enforce_taint_boundary",
      "join",
      "is_sensitive",
      "taint_of"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
