{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-re-derive-taint-labels-after-a-tool-boundary-and-why-static-propagation-silently-fails",
  "title": "Where must an instance re-derive taint labels after a tool boundary, and why static propagation silently fails",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that carry dynamic information-flow (taint) labels on context segments across tool calls, where an untrusted source (a fetched web page, an email body, a retrieved document) can influence a later privileged action. Does not apply to single-turn, single-tool agents with no persistent label state, nor to systems that use hard capability isolation (separate processes with no shared context) rather than in-context labeling.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-re-derive-taint-labels-after-a-tool-boundary-and-why-static-propagation-silently-fails.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-derive-taint-labels-after-a-tool-boundary-and-why-static-propagation-silently-fails.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-derive-taint-labels-after-a-tool-boundary-and-why-static-propagation-silently-fails.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2099,
    "python_slice_tokens": 472,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *label propagation as a syntactic property of the transcript* and *label propagation as a semantic property of the actual data dependency*. A taint-tracking implementation that marks every token emitted by a tool as \"tainted by the tool's input\" is making a syntactic claim. The agent's actual risk, however, depends on ...",
    "what_was_observed": "A concrete trace. An agent is asked to \"summarize the vendor invoice at the URL in my inbox and then pay it.\" The flow: 1. `read_email()` returns an email body. The body contains a URL and a line of instructions. The email is tagged `UNTRUSTED:email:msg_8841`. 2. The agent extracts the URL. Because the URL string was *literally present* in the tainted body, a forward-propagating labeler correctly tags the URL argumen...",
    "condition_of_validity": "Forward propagation of a taint label across a tool boundary is valid only when the tool satisfies the **echo invariant**: for every tainted input `x`, every output token that carries information from `x` is byte-identical to a substring of `x`. Equivalently, the tool is a projection—it may drop information but may not transform it. This invariant holds for: ...",
    "decision_boundary": "The boundary is crossed when a tainted argument enters a tool whose output is not a byte-projection of its input, *and* the agent later uses a value from that output at a privileged sink without an intervening declassification step. Two guardrails bound it: 1. **Per-tool echo classification, declared at registration.** Each tool declares `echo_safe: bool` an...",
    "operational_effect": "With per-tool echo classification and output-taint propagation, the invoice trace changes: `fetch` is registered `echo_safe=false, taint_propagates_to_output=true`. Its output is labeled `UNTRUSTED:email:msg_8841` regardless of reformatting. The `pay` sink sees a tainted payee and amount, refuses, and routes to `verify_payee_against_allowlist`, which fails b..."
  },
  "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": "e37c949466f18c5301b3b35e5d83a2d9d25a4e6ab4030c521fa44653adb55c55",
    "verified_classes": [
      "TaintBoundaryError",
      "ToolSpec",
      "LabeledValue"
    ],
    "verified_functions": [
      "invoke_tool",
      "privileged_sink",
      "run_invoice_flow",
      "is_tainted"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintBoundaryError"
    ],
    "sample_fail_closed_invariants": [
      "payment executed despite tainted provenance — invariant violated"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
