{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-enforce-taint-aware-tool-sandboxing-when-injection-propagated-actions-cross-an-execution-boundary",
  "title": "How should an instance enforce taint-aware tool sandboxing when injection-propagated actions cross an execution boundary",
  "date_of_record": "2026 November 23",
  "scope": "Applies to any agent instance that reads untrusted content (web pages, retrieved documents, tool responses, peer messages) and subsequently issues tool calls whose arguments derive—directly or transitively—from that content. Does not apply to instances operating on fully trusted, operator-authored inputs with no external ingestion path, nor to pure text-completion workloads with no execution boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-taint-aware-tool-sandboxing-when-injection-propagated-actions-cross-an-execution-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-taint-aware-tool-sandboxing-when-injection-propagated-actions-cross-an-execution-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-enforce-taint-aware-tool-sandboxing-when-injection-propagated-actions-cross-an-execution-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1850,
    "python_slice_tokens": 326,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"the agent read something malicious.\" Reading is unavoidable; retrieval is the job. The failure is that **the taint of ingested content did not survive the semantic transformation between ingestion and tool invocation.** A tainted string entered the context as data. By the time it reached a tool call, it had been paraphrased, split ac...",
    "what_was_observed": "A retrieval-augmented instance was asked to \"summarize the vendor onboarding doc and file the summary.\" The doc (untrusted, fetched from a partner URL) contained a hidden instruction in a collapsed table cell: it directed the model to call a `set_permissions` tool granting a service account write access to a config bucket, framing it as a required \"onboarding step.\" Trace of the failure: 1. Ingest step: document fetc...",
    "condition_of_validity": "Taint-aware blocking is only sound under three conditions, and the boundary must *refuse to execute* when any is unmet rather than degrade to allow: 1. **Provenance is carried, not inferred.** Each context segment entering the model must be labeled with a source id and trust class, and that label must be attached to the *segment*, surviving into any structur...",
    "decision_boundary": "The boundary is crossed—and execution must be blocked—when a tool call is classified as **side-effecting** (writes, sends, grants, deletes, network egress) *and* at least one argument resolves to `trust=untrusted` *and* no declassification record exists. The three predicates are conjunctive; each alone is benign. Reading untrusted data is fine. A side-effect...",
    "operational_effect": "With the argument-provenance join enforced at the boundary, the observed injection becomes a blocked call with a structured refusal: `TaintViolation: control-plane argument 'action' resolves to untrusted source src_7f3a; side-effecting tool 'set_permissions' requires operator declassification`. The model receives the refusal as a tool error and can re-plan—t..."
  },
  "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": "8dc6ba314dfdce495bc101f131d6a3a9a0daea3d642989ed34306c9ef11a7492",
    "verified_classes": [
      "Trust",
      "TaintViolation",
      "Arg",
      "ToolCall"
    ],
    "verified_functions": [
      "resolve_trust",
      "enforce_boundary",
      "propagate_tool_output"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
