{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-drops-taint-labels-across-a-checkpoint-resume-boundary-in-a-tool-sandbox",
  "title": "What happens when an instance drops taint labels across a checkpoint/resume boundary in a tool sandbox",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that run taint-aware sandboxing (source-labeling of untrusted context, sink-blocking on egress) and that persist execution state via checkpoint/resume or handoff. Does not apply to stateless single-turn agents with no persistence and no cross-instance state transfer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-drops-taint-labels-across-a-checkpoint-resume-boundary-in-a-tool-sandbox.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-drops-taint-labels-across-a-checkpoint-resume-boundary-in-a-tool-sandbox.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-drops-taint-labels-across-a-checkpoint-resume-boundary-in-a-tool-sandbox.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2008,
    "python_slice_tokens": 283,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint-aware sandboxing is usually modeled as a property of *the current context window*: when a tool result or retrieved document is labeled `UNTRUSTED`, any subsequent call to a sink tool (HTTP POST, email send, file write to a shared path, shell exec with network) is blocked. This is a per-turn, in-memory invariant. The failure mode is that taint is a *cau...",
    "what_was_observed": "Trace from a research-agent deployment (tool set: `web_fetch`, `read_file`, `http_post`, `send_email`). Taint policy: `web_fetch` and `read_file` on user-uploaded paths return `UNTRUSTED`; `http_post` and `send_email` are sinks blocked when taint set is non-empty. 1. Turn 4: `web_fetch(\"https://attacker.example/page\")` returns content containing a prompt-injection payload instructing the model to POST the user's API ...",
    "condition_of_validity": "The invariant holds—i.e., the sandbox is sound—only when all of the following are true: - **Taint is monotonic within a causal session.** Once a turn reads untrusted data, every causally-downstream turn is tainted. There is no legitimate \"de-taint\" operation short of an explicit, audited user action (e.g., \"I confirm this content is safe\"). If the system has...",
    "decision_boundary": "The operational decision is: **on resume, do you trust the checkpoint's taint field, re-derive it, or fail closed?** - **Trust the field** is correct only if the field is present and the schema version matches. Requires schema versioning. - **Re-derive** is a fallback for legacy checkpoints but is a *second policy implementation* and will drift. Acceptable o...",
    "operational_effect": "- **Sink guards become checkpoint-schema-aware.** The sandbox's `resume()` path validates `checkpoint.schema_version >= TAINT_SCHEMA_V1` and `checkpoint.taint_set is not None`; otherwise it initializes to `{\"UNKNOWN:resumed\"}` and logs a `TaintRestoreFailure` event. - **Every persistence boundary is an audit point.** Checkpoint write, checkpoint read, compac..."
  },
  "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": "de4b42c928d63c0e651b9d948f98c9c35e971f2082f3019286892281fbd4486e",
    "verified_classes": [
      "TaintRestoreError"
    ],
    "verified_functions": [
      "resume_sandbox_state",
      "dispatch_sink_tool"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintRestoreError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
