{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-taint-propagation-gap-at-the-tool-call-interception-boundary-when-arguments-are-reconstructed-rather-than-passed-by",
  "title": "What structural signals indicate a taint-propagation gap at the tool-call interception boundary when arguments are reconstructed rather than passed by reference",
  "date_of_record": "2026 November 25",
  "scope": "Applies to runtime policy enforcement points (PEPs) that intercept agent tool calls and make taint-aware allow/deny decisions from a provenance graph tracking untrusted-input origins. Does not apply to PEPs that evaluate only static capability scopes or that receive arguments as opaque handles into a shared object store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-taint-propagation-gap-at-the-tool-call-interception-boundary-when-arguments-are-reconstructed-rather-than-passed-by.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-taint-propagation-gap-at-the-tool-call-interception-boundary-when-arguments-are-reconstructed-rather-than-passed-by.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-taint-propagation-gap-at-the-tool-call-interception-boundary-when-arguments-are-reconstructed-rather-than-passed-by.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2081,
    "python_slice_tokens": 394,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A taint-aware PEP makes two structurally different kinds of decision, and conflating them produces a silent authorization bypass: 1. **Taint membership** — does any byte of the effective argument derive from an untrusted source (a retrieved document, a tool result, a user turn classified as data)? This is a *provenance* question answered by walking the data-...",
    "what_was_observed": "A coding agent was equipped with a `write_file(path, content)` tool gated by a PEP that denied any write whose `content` was tainted by a source classified `untrusted:external`. The agent's task was to summarize a fetched web page into a local note. The retrieval tool returned the page body; the runtime labeled the returned string `untrusted:external`. The agent then composed a write call whose `content` argument was...",
    "condition_of_validity": "The taint-aware allow/deny decision is valid only when all of the following hold simultaneously: - **Reference continuity or cryptographic binding.** The argument the PEP inspects is either the same object the planner produced (in-process PEP) or is bound to it by a content hash plus a signed provenance envelope the PEP verifies (out-of-process PEP). Bare JS...",
    "decision_boundary": "The boundary is between **deny-by-default on unverifiable provenance** and **allow-by-default on structural equality**. A PEP that treats a reconstructed argument as clean because it parses to the expected schema has chosen the latter and is unsound. The sound choice: an argument whose provenance cannot be resolved to a graph node is treated as `unknown`, an...",
    "operational_effect": "With the boundary enforced, the observed failure becomes a denial with a `provenance-gap` audit event, and the agent's planner receives a structured denial it can reason about (e.g., \"content parameter provenance unresolved; re-fetch with a labeled handle or request human review\"). The cost is a class of false denials: legitimate calls whose arguments were r..."
  },
  "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": "5d83243f76d3a1d16ccaad02d87baff0d9281e77ca1c9d8b1f3e64b92634d449",
    "verified_classes": [
      "TaintDecision",
      "ProvenanceGapError",
      "LaunderingSuspectedError",
      "ProvenanceNode",
      "ProvenanceGraph"
    ],
    "verified_functions": [
      "content_hash",
      "enforce_tool_call",
      "guarded_write",
      "resolve",
      "lookup_hash"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "LaunderingSuspectedError",
      "ProvenanceGapError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
