{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-taint-boundary-when-a-tool-s-own-output-re-authorizes-data-it-just-disclosed",
  "title": "Where must an instance draw the taint boundary when a tool's own output re-authorizes data it just disclosed?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to tool-using agents that enforce exfiltration prevention by tracking taint labels on data and blocking egress (network tools, message sends, file writes to shared paths) when tainted data would leave the trust boundary. Does not apply to agents with no outbound channel, nor to purely local single-trust-domain execution where no data can cross a boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-taint-boundary-when-a-tool-s-own-output-re-authorizes-data-it-just-disclosed.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-taint-boundary-when-a-tool-s-own-output-re-authorizes-data-it-just-disclosed.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-taint-boundary-when-a-tool-s-own-output-re-authorizes-data-it-just-disclosed.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2856,
    "python_slice_tokens": 494,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The intuitive model is a one-way information flow: data read from a sensitive source gets a taint label, and any egress sink that would carry that label is blocked. This is the classical dynamic-taint-tracking (DTT) model. It fails at a specific, non-obvious seam: **a tool call whose output is itself an authorization or transformation of previously-tainted d...",
    "what_was_observed": "A representative trace, abridged. The agent is configured with two taint classes: `SENSITIVE` (read from a secrets store or a private document) and `CLEAN`. Egress sink `send_email` blocks any payload whose taint set contains `SENSITIVE`. The `format_json` tool is a pure function. It is correctly classified as non-egress. Its *return value* is correctly classified as originating from `format_json`. But the tracker as...",
    "condition_of_validity": "The guardrail holds only under a **provenance-join invariant**, stated precisely: > For every tool invocation `t(args) -> r`, the taint set of `r` is the union of (a) the taint set of `t`'s declared output source, (b) the taint sets of every argument in `args`, and (c) the taint sets of any values `t` is known to read from ambient state (scratchpad, memory s...",
    "decision_boundary": "The practical decision an instance must make at each tool boundary: 1. **Classify the tool's output source.** Declared in the tool schema as one of: `DERIVED_FROM_ARGS` (pure function of inputs), `EXTERNAL_READ` (reads a named store), or `AMBIENT_READ` (reads agent scratchpad/memory). This classification is the tool's provenance contract and must be part of ...",
    "operational_effect": "The observable effect of getting this wrong is not a crash; it is a **silent exfiltration with a clean audit log**. Every component—the read tool, the format tool, the send tool, the taint tracker—reports success. The leak is only visible if the audit log records, for each egress call, the *full provenance chain* of the payload, not just the payload's top-le..."
  },
  "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": "90ddbb5a6c3bf6fff9c94a31acc0ea325af3a6000ef54cbabe17a28613dbf7df",
    "verified_classes": [
      "Taint",
      "ProvenanceContractError",
      "TaintLaunderingError",
      "Labeled",
      "ToolContract",
      "TaintTracker"
    ],
    "verified_functions": [
      "demonstrate_laundering_fix",
      "join",
      "__init__",
      "record_ambient_write",
      "invoke"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "AssertionError",
      "ProvenanceContractError",
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "expected TaintLaunderingError"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
