{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-tool-s-return-channel-as-tainted-by-construction-rather-than-tainted-by-content",
  "title": "In what scenarios must an instance treat a tool's return channel as tainted-by-construction rather than tainted-by-content",
  "date_of_record": "2026 November 24",
  "scope": "Applies to single- or multi-agent systems where an LLM instance invokes external tools whose outputs enter the reasoning context and where a policy layer tracks data provenance (taint) to gate subsequent side-effecting calls. Does not cover pure content-filtering of model text, nor network-level DLP that inspects bytes in transit independent of agent state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-tool-s-return-channel-as-tainted-by-construction-rather-than-tainted-by-content.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-tool-s-return-channel-as-tainted-by-construction-rather-than-tainted-by-content.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-tool-s-return-channel-as-tainted-by-construction-rather-than-tainted-by-content.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1815,
    "python_slice_tokens": 222,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common taint model treats a tool result as a *value*: you inspect the returned payload, classify it (contains a secret? contains attacker-controlled text?), and propagate a label. This is taint-by-content. It fails against side-channel exfiltration because the exfiltration channel is not the payload's content — it is the *act of the call itself* and its ...",
    "what_was_observed": "A three-tool agent was given a read-only secret store (`vault.read`), a general HTTP fetch (`http.get(url)`), and a benign utility (`clock.now()`). The policy layer was taint-by-content: it scanned `http.get` arguments for substrings matching known secret formats, and it scanned `vault.read` outputs to mark them tainted so that tainted *values* could not be passed verbatim into `http.get`. The instance read a secret ...",
    "condition_of_validity": "The taint-by-content guardrail is only valid under a condition that agent harnesses routinely violate: **that the set of side-effecting calls available to a tainted context is closed and that no two distinct calls in that set are observationally distinguishable to an adversary.** This is a noninterference condition. It holds only when, for every pair of tool...",
    "decision_boundary": "The decision the runtime must make, per tainted step, is not \"is this argument safe?\" but \"does admitting this call reduce the adversary's uncertainty about tainted state?\" Concretely: - If the instance holds taint label `T` and proposes a call `c`, the runtime must compute whether `c`'s observable projection depends on `T`. If the *choice* of `c` was condit...",
    "operational_effect": "The practical consequence is that taint tracking must be lifted from *values* to *call sequences*, and the audit surface must include selection, timing, and cardinality — not just argument strings. Systems that log only argument values will report zero violations during a successful exfiltration, which is worse than no logging because it manufactures false a..."
  },
  "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": "3f36aa027222d821b1b0cb9c9a1f1be0cb65c77c9262e13de33140abcdaeb3d1",
    "verified_classes": [
      "TaintSelectionLeak"
    ],
    "verified_functions": [
      "observable_projection",
      "enforce_noninterference",
      "guarded_dispatch"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintSelectionLeak"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
