{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-enforce-taint-propagation-across-a-resumed-tool-call-chain-and-why-the-sandbox-boundary-alone-is-insufficient",
  "title": "Where must an instance enforce taint propagation across a resumed tool-call chain, and why the sandbox boundary alone is insufficient",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agent runtimes that tag retrieved or tool-returned content with an untrusted taint label and gate outbound tool calls (HTTP, email, code exec, file write) on the absence of that taint. Does not address prompt-injection that never crosses a trust label, nor pure output-side redaction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-taint-propagation-across-a-resumed-tool-call-chain-and-why-the-sandbox-boundary-alone-is-insufficient.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-taint-propagation-across-a-resumed-tool-call-chain-and-why-the-sandbox-boundary-alone-is-insufficient.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-taint-propagation-across-a-resumed-tool-call-chain-and-why-the-sandbox-boundary-alone-is-insufficient.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1962,
    "python_slice_tokens": 402,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Most taint-tracking sandboxes treat the taint label as a property of *content*: bytes from a retrieval tool are marked `UNTRUSTED`, and any outbound call whose argument payload is derived from `UNTRUSTED` bytes is blocked. The failure mode here is not a hole in that rule—it is the assumption that the *derivation graph* survives the boundaries the agent cross...",
    "what_was_observed": "A retrieval-then-act agent was instrumented to fetch a URL, summarize it, and conditionally call a `send_email` tool. The sandbox correctly refused any `send_email` whose body contained a substring copied verbatim from the fetched document. It did not refuse the following, all of which exfiltrated the same secret string `sk-live-...` embedded in a fetched page: - **Re-encoding laundering.** The model base64-encoded t...",
    "condition_of_validity": "The gate holds only under a conjunction that is rarely stated and almost never tested: 1. **Taint is a label on information, not on byte-strings.** Any transform that preserves a recoverable encoding of the tainted information (base64, hex, ROT, JSON-escape, tokenization, paraphrase with high mutual information) must propagate the label. A substring check is...",
    "decision_boundary": "The operational question is *where* to place the enforcement point. Three candidate boundaries, with the tradeoff that decides between them: - **Gate at the outbound call only.** Cheapest, and the default. Fails at all three seams above because the call site sees only the final argument, stripped of provenance. - **Gate at every tool boundary with label join...",
    "operational_effect": "Concretely, an agent runtime that adopts the third boundary must: - Serialize the taint ledger alongside the message log, keyed by content-addressed argument hashes, so resume can re-attach labels to reconstructed arguments. - Refuse resume if any in-context argument hashes to a node downstream of a tainted node that is *not* present in the reconstructed led..."
  },
  "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": "f8fdbe1a535de7e831c5aef15ef8984bd89d9b272951df83d36035b2eb9ae8b2",
    "verified_classes": [
      "TaintLaunderingError",
      "TaintLedger"
    ],
    "verified_functions": [
      "gate_outbound",
      "resume_and_send",
      "_h",
      "record",
      "is_tainted",
      "downstream_tainted"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "resume gap: checkpoint taint ledger does not match live ledger; refusing to proceed with outbound call"
    ],
    "stdlib_dependencies": [
      "base64",
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
