{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-taint-barrier-laundering-in-tool-call-allowlists-the-splice-join-collapse",
  "title": "What structural signals indicate taint-barrier laundering in tool-call allowlists: the splice-join collapse",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents whose runtime policy engine enforces (a) per-call tool allowlists and (b) taint labels propagated across tool outputs into subsequent call arguments, where taint is tracked at the granularity of whole tool results. Does not apply to engines that track taint at sub-value granularity (byte-range or AST-node provenance), nor to stateless single-shot inferencers with no tool loop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-barrier-laundering-in-tool-call-allowlists-the-splice-join-collapse.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-barrier-laundering-in-tool-call-allowlists-the-splice-join-collapse.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-barrier-laundering-in-tool-call-allowlists-the-splice-join-collapse.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1941,
    "python_slice_tokens": 307,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A taint-aware allowlist has two independent enforcement points: the *tool dimension* (is this tool legal for this agent/step?) and the *data dimension* (does any argument carry a taint label whose sink policy forbids this tool?). The common failure is to treat these as conjunctive checks evaluated on the *call*, when the actual leak occurs in the *compositio...",
    "what_was_observed": "A retrieval agent fetched an external document (taint label `UNTRUSTED:EXTERNAL`, sink policy: may not flow into `http.post`, `shell.exec`, `email.send`). The agent needed to summarize it. It called `text.chunk(doc, size=512)`, which returned a list of strings. The policy engine, seeing `text.chunk` declared with `sanitizes=[\"UNTRUSTED:EXTERNAL\"]` in its tool manifest (a misconfiguration — chunking preserves content)...",
    "condition_of_validity": "The invariant that must hold for a taint-aware allowlist to be sound: > For every tool `t` invoked with argument `a` derived from tainted value `v`, either `a` carries `taint(v)`, or `t` is a *witnessed sanitizer*: its manifest `sanitizes` claim is backed by an executable check that the output contains no information from the input that the sink policy forbi...",
    "decision_boundary": "The boundary between \"allow\" and \"deny\" cannot be drawn on the call alone. It must be drawn on the *derivation path*. Concretely, the engine must distinguish three tool classes and enforce differently: 1. **Propagators** (identity-preserving: `text.upper`, `json.parse` on a tainted string): output carries input taint. No manifest trust needed. 2. **Witnessed...",
    "operational_effect": "When the invariant holds, the agent can chunk, join, summarize, and re-serialize freely, and the sink policy still fires on the final `http.post` because the taint rode through every reshape as a join. The cost is that the taint set grows (every chunk carries the parent label), so the engine must deduplicate by *provenance root* rather than by value identity..."
  },
  "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": "68d6d68895663dfcce0081ba52366632746bd176ecf383dc3b227df7e65c57e5",
    "verified_classes": [
      "TaintLaunderingError",
      "Provenance",
      "ToolManifest"
    ],
    "verified_functions": [
      "apply_tool",
      "enforce_sink"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
