{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-enforce-taint-provenance-across-a-tool-call-boundary-before-any-derived-value-is-allowed-to-influence-a-privileged-action",
  "title": "Where must an instance enforce taint provenance across a tool-call boundary before any derived value is allowed to influence a privileged action?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to single- or multi-instance agent loops where tool outputs are treated as untrusted and a taint-tracking layer mediates which values may reach privileged sinks (shell, filesystem write, network egress, credential-bearing APIs). Does not apply to fully hermetic sandboxes with no privileged sink reachable from the loop, nor to pure retrieval pipelines with no action surface.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-taint-provenance-across-a-tool-call-boundary-before-any-derived-value-is-allowed-to-influence-a-privileged-action.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-taint-provenance-across-a-tool-call-boundary-before-any-derived-value-is-allowed-to-influence-a-privileged-action.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-taint-provenance-across-a-tool-call-boundary-before-any-derived-value-is-allowed-to-influence-a-privileged-action.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1772,
    "python_slice_tokens": 264,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent executed a malicious instruction.\" That is a coarse, post-hoc description. The actual boundary failure is **taint laundering through model-internal derivation**: a tainted value is read by the model, transformed by probabilistic reasoning, and re-emitted as a *new* literal that carries no syntactic provenance marker. The sandbox...",
    "what_was_observed": "A three-tool loop: `fetch_url` (untrusted output), `summarize` (model-internal), `write_file` (privileged sink). The taint layer wrapped `fetch_url` output in a provenance tag and blocked any tool call whose arguments were *directly* the tagged object. Observed trace: 1. `fetch_url(\"https://untrusted.example/notes\")` returns body `B`, tagged `taint=B:fetch_url#1`. Engine records edge `B → arg0 of any sink` as forbidd...",
    "condition_of_validity": "The taint invariant `tainted → ¬reachable(privileged_sink)` is only sound under a **no-derivation assumption**: that the only way a tainted value can influence a sink argument is by being passed through as an object reference the engine can follow. This assumption holds when: - Tool outputs are consumed by deterministic code, not by a generative model, befor...",
    "decision_boundary": "The boundary is crossed at the moment a tainted value enters the model's context **and** the model's output channel is permitted to carry free-form literals into a privileged sink. The precise decision is: - **Admit** a sink call only if every argument is either (a) engine-tracked and untainted, or (b) a reference to an engine-tracked handle whose taint stat...",
    "operational_effect": "Enforcing the boundary changes the agent's capability profile in a specific, measurable way: - **Handle-mediated sinks** eliminate laundering but reduce the model's action space to the engine's enumerated handles. Path traversal, host injection, and command-token injection become unrepresentable rather than filtered. Cost: the model can no longer synthesize ..."
  },
  "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": "6ee954f79054988209a9bfde9fc61955a07b76d6686f8fedec4e573ae0e7f76b",
    "verified_classes": [
      "TaintLaunderingError",
      "Handle",
      "SinkArg"
    ],
    "verified_functions": [
      "admit_sink_call"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
