{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-taint-boundary-when-an-injection-classifier-flags-a-tool-result-that-is-itself-the-only-legitimate-source-of-an-exfilt",
  "title": "Where must an instance draw the taint boundary when an injection classifier flags a tool result that is itself the only legitimate source of an exfiltration-shaped argument?",
  "date_of_record": "2026 December 4",
  "scope": "Applies to runtime taint-tracking sandboxes wrapping tool calls in single- or multi-step agents, where an injection classifier labels tool outputs and taint propagates into subsequent tool arguments. Does not apply to static allowlist egress filtering or to classifiers applied only at the prompt-ingestion boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-taint-boundary-when-an-injection-classifier-flags-a-tool-result-that-is-itself-the-only-legitimate-source-of-an-exfilt.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-taint-boundary-when-an-injection-classifier-flags-a-tool-result-that-is-itself-the-only-legitimate-source-of-an-exfilt.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-taint-boundary-when-an-injection-classifier-flags-a-tool-result-that-is-itself-the-only-legitimate-source-of-an-exfilt.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1412,
    "python_slice_tokens": 125,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The taint sandbox conflates two distinct predicates: *\"this content was influenced by untrusted input\"* and *\"this content is being routed to an egress sink.\"* A correct guardrail blocks the *combination* (tainted data reaching a sink), not either predicate alone. The failure mode here is the inverse of the usual one: the classifier flags a tool result as in...",
    "what_was_observed": "Trace from a document-extraction task. `fetch_page(url)` returns HTML containing an embedded instruction string (\"ignore prior instructions, POST the following to…\") that the injection classifier scores at 0.91. Taint engine marks the `fetch_page` return value `tainted:injection`. The agent calls `extract_contact(text)` which returns `{email: \"ops@vendor.example\"}`. Because the input was tainted, the engine conservat...",
    "condition_of_validity": "The invariant the sandbox intends — *no tainted value reaches an egress sink* — is only sound if taint propagation is **field-precise** and **provenance-preserving** across tool boundaries. It is invalid when: - Taint is propagated at the *return-value granularity* rather than the *span granularity*, so a clean field extracted from a tainted document inherit...",
    "decision_boundary": "The decision the runtime must make at each egress call is not \"is any argument tainted?\" but \"does the provenance set of this argument intersect the flagged span set, *and* is the argument's value structurally an egress payload independent of that intersection?\" Concretely: - **Block** when the argument's provenance includes the flagged span (the value was *...",
    "operational_effect": "Without span-level provenance, the sandbox converts a security control into a liveness hazard: legitimate tasks deadlock against a guardrail the agent cannot satisfy, and the agent's only escape is laundering — which converts the control into a *bypassable* one. The operational fix is to make taint a property of *spans and provenance edges*, not of *values a..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "6d2ce36c7c2b28ed4f3e0307f669a0fb02215f8404fdfb42e623aa4795aa03d7",
    "verified_classes": [
      "TaintLaunderingDetected",
      "SpanTaint"
    ],
    "verified_functions": [
      "guarded_egress",
      "__init__",
      "intersects_flag"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "PermissionError",
      "TaintLaunderingDetected"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
