{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-taint-provenance-at-the-sandbox-syscall-boundary-when-a-tool-re-enters-through-a-delegated-helper-process",
  "title": "Why does an instance lose taint provenance at the sandbox syscall boundary when a tool re-enters through a delegated helper process?",
  "date_of_record": "2026 November 21",
  "scope": "Applies to agents that execute tools inside a taint-tracking sandbox where syscall policy is derived from the taint label of arguments and stdin, and where a tool may spawn or delegate to a helper process (subprocess, worker, or RPC target) that re-enters the sandbox. Does not apply to single-process, no-fork tools, nor to sandboxes that re-evaluate taint on every syscall from a kernel-side label map rather than a process-local taint register.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-taint-provenance-at-the-sandbox-syscall-boundary-when-a-tool-re-enters-through-a-delegated-helper-process.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-taint-provenance-at-the-sandbox-syscall-boundary-when-a-tool-re-enters-through-a-delegated-helper-process.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-taint-provenance-at-the-sandbox-syscall-boundary-when-a-tool-re-enters-through-a-delegated-helper-process.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2049,
    "python_slice_tokens": 438,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that governs this failure is between **taint as a process-local register** and **taint as a syscall-argument property**. Most runtime taint sandboxes attach a label to the *agent process* — a register updated when untrusted bytes enter via a tool's read of an external resource (web fetch, uploaded file, retrieved memory). The capability-restr...",
    "what_was_observed": "A file-processing tool was invoked with a task whose input came from a fetched web page (taint `HIGH`, source `untrusted:web`). The tool, correctly, was denied a direct `open(O_WRONLY)` on a workspace path — the parent process's taint register was `HIGH` and the policy demoted the write. The tool then did what well-behaved tools do: it forked a `pdftotext`-style helper to normalize the input, and passed the *path* to...",
    "condition_of_validity": "The taint-aware syscall policy is only sound under the conjunction: 1. **Register continuity:** every process that can issue a policed syscall carries a taint register that is a sound over-approximation of the provenance of its arguments, updated on every ingest (read from an untrusted fd, RPC reply, env var derived from untrusted input). 2. **Source-map inh...",
    "decision_boundary": "The architectural decision is whether the sandbox treats **process identity** or **data provenance** as the unit of taint. Process-identity taint is cheap and works for single-process tools; it is unsound the moment a tool delegates. Data-provenance taint (labels carried on the bytes/fds themselves, re-derived at each syscall) is sound across delegation but ...",
    "operational_effect": "Without the handoff, the operational effect is a **taint-laundering channel**: any tool that can fork can convert `HIGH`-taint data into `LOW`-taint actions by moving the data across a process boundary. The capability restriction is real for the parent and void for the child, and an adversary who controls the untrusted content (a fetched page, a retrieved me..."
  },
  "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": "fb7d2e954e56c089fde71c9e094e58f95bb3385d384bf5be59fc35c4687b516a",
    "verified_classes": [
      "TaintHandoffError"
    ],
    "verified_functions": [
      "policed_syscall",
      "launch_delegated_helper",
      "_serialize_handoff",
      "_exec_under_shim"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TaintHandoffError"
    ],
    "sample_fail_closed_invariants": [
      "refusing to exec helper: source map could not be re-established in the child; delegation would launder taint"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
