{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-taint-laundering-across-sandbox-re-instantiation-when-capability-revocation-lands-mid-tool-call",
  "title": "Which invariants prevent taint-laundering across sandbox re-instantiation when capability revocation lands mid-tool-call",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agent runtimes that propagate taint labels (untrusted-provenance bits) alongside tool-call arguments and that revoke capabilities dynamically upon injection detection. Does not address static allow-list sandboxing without taint tracking, nor prompt-level filtering that never reaches the capability layer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-taint-laundering-across-sandbox-re-instantiation-when-capability-revocation-lands-mid-tool-call.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-taint-laundering-across-sandbox-re-instantiation-when-capability-revocation-lands-mid-tool-call.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-taint-laundering-across-sandbox-re-instantiation-when-capability-revocation-lands-mid-tool-call.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1579,
    "python_slice_tokens": 233,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive model treats taint as a property of *data*: an argument is either tainted or not, and a tainted argument blocks a privileged tool. The operational reality is that taint is a property of the *(data, capability-instance, call-frame)* triple, and revocation is an *event* that races the call it is meant to interrupt. The failure mode is not \"tainted da...",
    "what_was_observed": "A three-tool pipeline: `fetch_doc` (untrusted egress, returns web content), `summarize` (LLM call, no side effects), and `send_email` (privileged, external side effect). The runtime tags `fetch_doc` output with taint label `T_EXT`. `send_email` refuses arguments carrying `T_EXT` unless the argument was produced by a `summarize` frame whose *inputs* were reviewed — a declassification rule. Trace of the failure: 1. `fe...",
    "condition_of_validity": "The laundering is only possible when all of the following hold simultaneously: - **Taint ledger is sandbox-local.** If taint labels are stored in a durable, generation-independent store keyed by content hash, re-instantiation cannot clear them. - **Checkpoint/resume is the recovery path after revocation.** If revocation instead *aborts* the frame and require...",
    "decision_boundary": "The boundary is between two revocation semantics: Choose barrier semantics whenever *any* privileged capability shares a taint-admission rule with the revoked one, or whenever checkpoint/resume is enabled. Choose reset semantics only if revocation is the *sole* privileged capability (no sibling sink) and no resume path exists — a configuration that essential...",
    "operational_effect": "Under barrier semantics, the observed trace changes at step 4: the resume of the `summarize` frame is refused because its taint context `{T_EXT}` intersects the revoked lineage. The agent is forced to re-invoke `fetch_doc`, which produces fresh `T_EXT`-labeled content, and the declassification gate — now reading a non-empty taint set — blocks `post_webhook`...."
  },
  "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": "2c9fac2ce58aa442d073244356b214cf7612b8a9f45ec3f2585c4f40152b35b5",
    "verified_classes": [
      "TaintLaunderingError",
      "TaintedValue",
      "TaintLedger",
      "Frame"
    ],
    "verified_functions": [
      "resume_frame_after_revocation",
      "label",
      "taint_of"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
