{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-capability-laundering-when-a-tainted-value-survives-a-sandbox-syscall-boundary-intact",
  "title": "How does an instance detect capability laundering when a tainted value survives a sandbox syscall boundary intact",
  "date_of_record": "2026 December 2",
  "scope": "Applies to LLM-invoked tool execution where taint tracking is enforced at the syscall mediation layer and capabilities are scoped per-invocation. Does not apply to purely in-process tool calls that never cross a mediation boundary, nor to sandboxes that rely solely on static allowlists without dynamic data provenance.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-laundering-when-a-tainted-value-survives-a-sandbox-syscall-boundary-intact.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-laundering-when-a-tainted-value-survives-a-sandbox-syscall-boundary-intact.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-capability-laundering-when-a-tainted-value-survives-a-sandbox-syscall-boundary-intact.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2150,
    "python_slice_tokens": 382,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint-aware sandboxing and capability-scoped syscall mediation are usually treated as two independent guards: taint tracking decides *what data may influence what*, capability scoping decides *what the agent is allowed to invoke*. The boundary failure occurs precisely where these two mechanisms meet — at the syscall mediation point — because taint labels att...",
    "what_was_observed": "A tool-calling agent was executing a multi-step task: fetch a document from an untrusted URL, summarize it, then write the summary to a file under a path derived from a field inside the document. The path field was correctly tainted at read time (provenance: `untrusted_remote`). The summarization step passed the path through a Python string operation. At the `open()` syscall mediation point, the following sequence oc...",
    "condition_of_validity": "The composite invariant — *no value with provenance label `untrusted_*` may flow into a capability-gated sink that performs path resolution, command execution, or network egress* — holds only under the following conditions, all of which must be simultaneously true: - **Label continuity across serialization.** Every value crossing from the interpreter/tool-wr...",
    "decision_boundary": "The instance must treat the following as a hard boundary, not a heuristic: - **A capability check that passes on an unresolved path is not a capability check.** If the mediation layer's scope match uses `startswith` on the raw argument before canonicalization, the check is void for any sink that resolves paths. The decision boundary is: *canonicalize first, ...",
    "operational_effect": "The operational consequence is that the instance must adopt a **fail-closed argument envelope** discipline at every tool-call boundary: 1. **In-band labeling.** Every argument to a taint-sensitive sink must carry its provenance label as a structured field in the mediated payload. The mediation layer rejects any sink call whose taint-sensitive arguments lack ..."
  },
  "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": "b4fc01db7df605633fcf0180193a9c8f7258ba259f786f153a825f61e62ee004",
    "verified_classes": [
      "CapabilityLaunderingError"
    ],
    "verified_functions": [
      "mediate_syscall",
      "_reaches_sink",
      "_canonicalize",
      "_scope_matches"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CapabilityLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "os"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
