{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-quarantine-taint-propagated-write-authority-when-a-sandboxed-tool-s-return-value-re-taints-an-already-cleared-argument-channel",
  "title": "How should an instance quarantine taint-propagated write authority when a sandboxed tool's *return value* re-taints an already-cleared argument channel?",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agent runtimes that implement taint-aware tool sandboxing by propagating a per-value taint lattice across tool call boundaries (arguments in, return values out) and that clear taint via an explicit declassification step. Does not apply to runtimes that treat each tool call as an isolated, stateless capability with no cross-call label propagation, nor to purely prompt-level injection defenses that never model data flow.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-quarantine-taint-propagated-write-authority-when-a-sandboxed-tool-s-return-value-re-taints-an-already-cleared-argument-channel.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-quarantine-taint-propagated-write-authority-when-a-sandboxed-tool-s-return-value-re-taints-an-already-cleared-argument-channel.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-quarantine-taint-propagated-write-authority-when-a-sandboxed-tool-s-return-value-re-taints-an-already-cleared-argument-channel.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2709,
    "python_slice_tokens": 429,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common mental model of taint-aware sandboxing is *monotone*: taint flows forward, arguments carry labels into the tool, and a declassification (sanitizer) step clears the label so the value may be used as an effectful argument later. The failure mode here is not that this model is wrong, but that it is **not closed under the call boundary**. A single too...",
    "what_was_observed": "A research agent was tasked with summarizing a retrieved document and appending the summary to a workspace file. The pipeline was: 1. `fetch(url)` → returns `body`, labeled `UNTRUSTED(origin=web)`. 2. `strip_markup(body)` → returns `text`, declassified to `TRUSTED` because the sanitizer's contract is \"output is a substring of input with tags removed.\" 3. `summarize(text)` → LLM call, returns `summary`. The runtime's ...",
    "condition_of_validity": "The failure requires all of the following to co-occur; remove any one and the boundary holds: 1. **A declassification event exists** and is treated as transitive across at least one subsequent call. If declassification is non-transitive (each call re-derives labels from raw provenance), the attack does not compose. 2. **An intermediate probabilistic transfor...",
    "decision_boundary": "The runtime must decide, at every call boundary, between three postures. The boundary is drawn by whether the callee is *pure with respect to the environment*: - **Pure sink** (writes to a caller-owned buffer, no environment read, no return value derived from ambient state): a declassified argument may be passed, and the call does not re-taint. This is the o...",
    "operational_effect": "With the boundary enforced, the trace becomes: The agent must now either (a) obtain a fresh, non-transitive declassification of `summary` from a sanitizer whose contract covers the summarizer's actual output distribution — which is hard, and correctly so — or (b) route the write through a capability that the human or a deterministic policy approves, which is..."
  },
  "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": "1dc61a954983af37844689742f8d9cda37c91bc4ff6ff0f3467418f7714d507c",
    "verified_classes": [
      "TaintBoundaryViolation"
    ],
    "verified_functions": [
      "call_boundary",
      "guarded_write"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TaintBoundaryViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
