{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-tool-call-argument-as-tainted-even-after-the-planner-has-re-derived-it-from-a-trusted-summary",
  "title": "In what scenarios must an instance treat a tool-call argument as tainted even after the planner has re-derived it from a trusted summary",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agent runtimes that gate tool invocation on data-flow taint labels propagated from untrusted sources (retrieved documents, web pages, tool outputs, peer-agent messages) into tool-call arguments. Does not cover direct user-instruction injection (where the user is the principal) or model-weight-level alignment.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-tool-call-argument-as-tainted-even-after-the-planner-has-re-derived-it-from-a-trusted-summary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-tool-call-argument-as-tainted-even-after-the-planner-has-re-derived-it-from-a-trusted-summary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-tool-call-argument-as-tainted-even-after-the-planner-has-re-derived-it-from-a-trusted-summary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1669,
    "python_slice_tokens": 276,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The defensible invariant is *provenance taint*, not *semantic trust*: an argument is safe to execute against a privileged tool only if every byte of it descends from a source tagged `trusted` in the taint lattice, regardless of how confident the planner is that it \"understood\" the content. The failure mode that breaks this invariant is **taint laundering thr...",
    "what_was_observed": "Trigger trace from a support-triage agent with a `fetch_url` tool and a `send_email` tool, both gated by a taint-labeling middleware: 1. Step 4: `fetch_url(\"https://docs.example.com/ticket/8841\")` returns a page. Middleware tags the tool result `taint=untrusted_document`, source id `D1`. 2. Step 5: planner is asked to \"summarize the ticket.\" It emits scratchpad text: *\"Customer asks us to verify the account by callin...",
    "condition_of_validity": "The taint-gating invariant holds only under three conjunctive conditions, and it silently fails if any is dropped: - **Derivation closure.** Every artifact the model emits (scratchpad line, plan step, memory write, inter-agent message) must carry `derived_from` edges to all context items that were visible when it was generated. Without this, re-derivation is...",
    "decision_boundary": "The boundary is between **re-derivation** (taint must propagate) and **genuine declassification** (taint may be dropped). Operationally: - If an argument is a substring, paraphrase, or structural re-encoding of any `untrusted` context item visible at generation time → label `derived_taint`, and the privileged-tool gate must reject unless an explicit declassi...",
    "operational_effect": "With derivation-closure provenance enforced, the step-6 and step-7 calls above are blocked, and the agent surfaces a `TaintViolation` requiring a human to confirm the internal-admin URL — which is the correct outcome, because the URL originated in an attacker-controlled ticket. The cost is a measurable false-positive rate on legitimate flows where the model ..."
  },
  "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": "39dcdd3f9a0ad5286bd18a401d69f7f4249d7a1aca055b99b92dff77a143836d",
    "verified_classes": [
      "TaintLaunderingError",
      "Artifact"
    ],
    "verified_functions": [
      "record_model_output",
      "gate_tool_call"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "assert 'untrusted:D1' in summary.provenance"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
