{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-quarantine-tainted-sandbox-capabilities-before-warrant-propagation-crosses-an-mcp-handoff-boundary",
  "title": "In what scenarios must an instance quarantine tainted sandbox capabilities before warrant propagation crosses an MCP handoff boundary",
  "date_of_record": "2026 November 25",
  "scope": "Applies to LLM agent instances that execute tools inside a sandbox whose capability grants are dynamically narrowed by an injection-risk taint lattice, and that hand off state (including taint labels and capability warrants) to a downstream instance over MCP or A2A. Does not apply to stateless single-shot tool calls with no inter-instance state transfer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-tainted-sandbox-capabilities-before-warrant-propagation-crosses-an-mcp-handoff-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-tainted-sandbox-capabilities-before-warrant-propagation-crosses-an-mcp-handoff-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-tainted-sandbox-capabilities-before-warrant-propagation-crosses-an-mcp-handoff-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2218,
    "python_slice_tokens": 326,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint-aware sandboxing is usually described as a *within-instance* enforcement problem: content retrieved from an untrusted source (web page, tool output, retrieved document) is labeled tainted, and any tool call whose arguments derive from tainted data is restricted to a capability subset. The failure mode documented here is not the within-instance leak. It...",
    "what_was_observed": "A two-instance pipeline: an **ingestor** instance with a broad read capability (fetch, parse, extract) and a **committer** instance with a narrow but high-impact write capability (issue `git push`, post to an internal API, send mail). The ingestor fetched an external document, parsed it, and the parser's output carried an embedded instruction block. The ingestor's taint lattice correctly labeled the parsed fragment `...",
    "condition_of_validity": "The invariant that must hold for taint-aware sandboxing to be sound across a handoff is: > **For every warrant W transferred from instance A to instance B, the taint closure of every artifact reachable from W's argument set must be a subset of the taint labels transferred with W. If the closure is not transferred, B must treat the warrant as maximally tainte...",
    "decision_boundary": "An instance must **quarantine** (refuse to execute, and escalate to a human or a re-tainting step) rather than **downgrade** (execute with reduced capability) when all of the following hold: 1. A warrant arrives whose argument set includes an artifact reference, not an inline value. 2. The receiving instance cannot independently verify the taint closure of t...",
    "operational_effect": "The practical consequence is that taint-aware sandboxing degrades to *channel-based* sandboxing at every handoff unless the taint manifest is made a first-class, signed, content-addressed field of the warrant envelope. In deployments that did not do this, the observed effect was a silent widening of capability: the committer's effective capability set, measu..."
  },
  "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": "d79cb1e1af6156ca86f4ad2ef6c269bd0c3dbfb5083bd28019fa971314a95c55",
    "verified_classes": [
      "Taint",
      "TaintClosureError",
      "Warrant"
    ],
    "verified_functions": [
      "effective_taint",
      "honor_warrant"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TaintClosureError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
