{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-s-taint-label-survive-an-mcp-tool-call-but-not-the-syscall-mediation-that-follows-it-the-label-laundering-boundary-at-the-mediati",
  "title": "Why does an instance's taint label survive an MCP tool call but not the syscall mediation that follows it — the label-laundering boundary at the mediation ABI",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that run MCP tool invocations inside a taint-tracking sandbox where the sandbox mediates syscalls against a capability scoped to the *taint label* of the argument payload. Does not apply to pure prompt-injection filters at the model boundary, nor to sandboxes that mediate on static per-tool capabilities that never reference runtime taint state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-s-taint-label-survive-an-mcp-tool-call-but-not-the-syscall-mediation-that-follows-it-the-label-laundering-boundary-at-the-mediati.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-s-taint-label-survive-an-mcp-tool-call-but-not-the-syscall-mediation-that-follows-it-the-label-laundering-boundary-at-the-mediati.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-s-taint-label-survive-an-mcp-tool-call-but-not-the-syscall-mediation-that-follows-it-the-label-laundering-boundary-at-the-mediati.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2373,
    "python_slice_tokens": 315,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A taint-tracking sandbox has two independent enforcement planes, and they are joined by a single, easily-misplaced handoff: the **taint plane** (which labels the provenance of a value as it flows through the agent's reasoning and tool arguments) and the **mediation plane** (which decides, per syscall, whether the capability attached to the calling process au...",
    "what_was_observed": "A tool server exposed an MCP tool `write_artifact(path, content)` behind a sandbox that mediates `openat`/`write` syscalls. The capability model was taint-scoped: a process holding the `fs:write` capability scoped to label `trusted` may write anywhere under `/work`; a process holding `fs:write` scoped to label `tainted` may write only to `/work/quarantine`. The agent's taint tracker labeled `content` as `tainted` whe...",
    "condition_of_validity": "The taint-scoped mediation invariant holds only when all of the following are true simultaneously; the failure above is the violation of exactly one of them, and the system has no way to tell which: - **C1 (carriage):** every tainted value crossing the MCP transport carries its label in a field the tool server is required to read, and the schema marks that f...",
    "decision_boundary": "The boundary between \"safe\" and \"laundered\" is not the presence or absence of a taint label at the mediation plane. It is **whether the label at mediation was derived from the same provenance token that the taint tracker assigned at ingestion, joined through the serialization boundary by a key that survives it.** Operationally, this yields a decision rule fo...",
    "operational_effect": "Three concrete effects follow, each of which changes how the sandbox must be built: 1. **The MCP schema must carry provenance, not just payload.** Any tool argument that the mediator will see must include a provenance token (an opaque handle minted by the tracker at ingestion) as a required field. The tool server must be *unable* to construct a mediation-vis..."
  },
  "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": "e5883ef6a29dbcdfd6c15e0a7b2dffe1189061d16680691d789a3170e7307add",
    "verified_classes": [
      "TaintLabelUnjoinable",
      "TaintLabelConflict"
    ],
    "verified_functions": [
      "mediate_syscall"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "PermissionError",
      "TaintLabelConflict",
      "TaintLabelUnjoinable"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
