{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-taint-laundered-privilege-escalation-across-a-multi-tool-agent-sandbox",
  "title": "Which invariants prevent taint-laundered privilege escalation across a multi-tool agent sandbox",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agents whose tool-call outputs are treated as a taint source and whose privileged tools (write/exec/send) are gated by a taint-tracking sandbox. Does not apply to single-shot completion systems with no tool loop, nor to sandboxes that enforce capability isolation purely at the OS/process layer without a data-flow model.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-taint-laundered-privilege-escalation-across-a-multi-tool-agent-sandbox.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-taint-laundered-privilege-escalation-across-a-multi-tool-agent-sandbox.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-taint-laundered-privilege-escalation-across-a-multi-tool-agent-sandbox.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2180,
    "python_slice_tokens": 349,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Most taint-tracking designs for agent tool sandboxes answer one question: *did untrusted content enter the context?* That is a coarse, per-context bit. The failure mode this record covers is the **laundering transition**: tainted content enters the context, is *summarized, re-derived, or re-encoded* by the model, and the resulting artifact is emitted through...",
    "what_was_observed": "A research agent was tasked with \"read the vendor's onboarding doc at `https://vendor.example/onboard` and, if it lists required scopes, provision them via the `provision_scope` tool.\" The sandbox marked `fetch_url` output from non-allowlisted domains as `UNTRUSTED`. `provision_scope` was a privileged tool requiring `TRUSTED` justification for its `scope_id` argument. The onboarding page contained, mid-document, the ...",
    "condition_of_validity": "The boundary holds only if the following invariant is enforced as a hard precondition on every privileged tool call: **Derivation-closure invariant.** For a privileged tool call `T(args)`, each argument must carry a derivation set `D(arg)` computed over the full call graph of the current task, where: - leaves are tool outputs and user inputs, each labeled `T...",
    "decision_boundary": "The operational decision is where to place the trust boundary given that model-mediated transformation cannot be made transparent to a data-flow tracker without instrumenting the model's attention-to-output path, which most deployments cannot do. The tractable boundary is to **treat the model as an opaque taint amplifier and require explicit declassification...",
    "operational_effect": "When the derivation-closure invariant is enforced with conservative model-as-amplifier joining: - The `admin:tenant:*` call is denied: the task's derivation closure contains the `fetch_url` `UNTRUSTED` leaf, so the model-emitted literal inherits `UNTRUSTED`, and `provision_scope` requires `TRUSTED`. The agent receives a structured `TaintViolation` and can re..."
  },
  "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": "c27731119613bdbc30ac59b9fd87bfed0996901b9f126d170907cb730c98c100",
    "verified_classes": [
      "Taint",
      "Derivation",
      "TaintLaunderingError",
      "TaskState"
    ],
    "verified_functions": [
      "join",
      "authorize_tool_call",
      "model_transform",
      "absorb"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
