{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-route-a-tainted-tool-call-to-a-privileged-sink",
  "title": "Under what conditions must an instance refuse to route a tainted tool call to a privileged sink",
  "date_of_record": "2026 November 15",
  "scope": "Applies to agentic runtimes that propagate data-provenance taint labels across tool-call boundaries and gate privileged sinks (filesystem writes, shell execution, outbound network egress, credential use) on taint state. Does not apply to sinks that are themselves the designated declassifier (e.g., a human-approval queue) or to provenance-free control-plane operations that carry no payload.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-route-a-tainted-tool-call-to-a-privileged-sink.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-route-a-tainted-tool-call-to-a-privileged-sink.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-route-a-tainted-tool-call-to-a-privileged-sink.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1270,
    "python_slice_tokens": 162,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A capability gate and a taint gate answer different questions. The capability gate asks *may this principal invoke this sink at all*; the taint gate asks *may this particular payload reach this sink given where it came from*. The non-obvious boundary failure is that the two gates are frequently collapsed into one check keyed on the *tool name* rather than on...",
    "what_was_observed": "A routing layer enforced taint correctly at the *decision* stage: when a tool was selected, it computed the union of taint labels over the call's arguments and blocked if the sink was privileged and any argument was `UNTRUSTED`. This held for direct calls. It failed in two reproducible ways: 1. **Late binding via defaults.** A sink with a default argument (e.g., `write_file(path, content, *, mode=\"overwrite\")`) recei...",
    "condition_of_validity": "The taint gate is valid only when all of the following hold simultaneously: - Taint labels are attached to *values*, not to tool names or call frames. - Argument resolution (including defaults, keyword expansion, and any server-side interpolation) completes **before** the gate evaluates, so the gate sees the exact values the sink will receive. - Any transfor...",
    "decision_boundary": "Route the call only when the resolved argument set for every privileged parameter is either untainted or has passed an explicit, auditable declassification step whose output provenance is independent of the request that produced the taint. Refuse when: - a privileged parameter is populated by a default or interpolation that the gate did not resolve, or - a v...",
    "operational_effect": "When the per-argument invariant is enforced, tainted payloads are stopped at the binding site and the failure surfaces as a typed refusal the caller can route to a human-approval or declassification path, rather than as a silent privileged side effect discovered in the audit log. The practical consequence is that routing decisions become reproducible: the sa..."
  },
  "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": "d101920ada03276f65e329ae181d70be83bc85a0101f714084f06156b4b11337",
    "verified_classes": [
      "TaintedSinkError"
    ],
    "verified_functions": [
      "route_tool_call"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintedSinkError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
