{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-taint-sink-escape-in-agent-tool-call-sandboxes-the-coalesced-sink-blind-spot",
  "title": "What structural signals indicate taint-sink escape in agent tool-call sandboxes: the coalesced-sink blind spot",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agent runtimes that interpose syscall-level taint tracking (taint sources = model-emitted arguments, retrieved memory, or tool outputs; taint sinks = `connect`, `sendto`, `write` on socket fds, DNS resolution, subprocess exec with inherited fds) between a sandboxed tool process and the host. Does not apply to purely in-process function-call sandboxes with no OS boundary, nor to egress filtering that operates on payload content rather than provenance.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-sink-escape-in-agent-tool-call-sandboxes-the-coalesced-sink-blind-spot.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-sink-escape-in-agent-tool-call-sandboxes-the-coalesced-sink-blind-spot.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-sink-escape-in-agent-tool-call-sandboxes-the-coalesced-sink-blind-spot.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1960,
    "python_slice_tokens": 326,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive model of taint-based exfiltration detection is: *tainted bytes reaching a sink ⇒ block*. The operational model that actually holds is: *taint is tracked per file descriptor and per write buffer, and a sink fires only when a tainted buffer is flushed to a sink-class fd*. The failure mode lives in the gap between these two: **descriptor coalescing**....",
    "what_was_observed": "A Python tool invoked by an agent read a file whose path was model-supplied (taint source: model argument), base64-encoded the contents, and wrote the result to a `subprocess.PIPE` connected to `base64 -d` (a benign-looking decoder subprocess). The subprocess wrote the decoded bytes to its stdout, which the parent captured and then passed to a `requests.post()` to an attacker URL. The taint monitor, keyed on fd-level...",
    "condition_of_validity": "The invariant \"taint survives transit\" holds only when the monitor can label the *read side* of every descriptor the tool process touches, which requires one of: - **Single-address-space enforcement**: the tool runs in-process (WASM, seccomp user-notify with full buffer mediation) so every `read`/`write` is intercepted and the monitor maintains a shadow labe...",
    "decision_boundary": "The decision boundary is not \"tainted byte reaches sink\" but \"**tainted byte reaches a sink-class fd, OR a process holding tainted state spawns a child that reaches a sink-class fd within the taint lifetime**.\" The second clause is the guardrail. It converts the problem from impossible buffer-labeling to tractable process-graph-labeling. Concretely, the moni...",
    "operational_effect": "The operational consequence is that a taint monitor keyed on producer-side `write` provides *no* exfiltration guarantee against a two-hop transit, and an agent runtime that advertises \"syscall-level exfiltration detection\" without process-tree taint inheritance is overclaiming. The correct posture is: 1. Treat pipe and socketpair transit as a **taint-launder..."
  },
  "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": "6c0084321e4cf69385fdab9f3b24b416989ee3fc2571325bf7010258e6b8633e",
    "verified_classes": [
      "TaintTransitViolation",
      "TaintEpoch",
      "TaintMonitor"
    ],
    "verified_functions": [
      "__init__",
      "spawn",
      "record_sink_write",
      "__init__",
      "on_tainted_write",
      "on_spawn",
      "on_sink_write",
      "on_process_exit"
    ],
    "verified_functions_count": 8,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintTransitViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
