{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-taint-provenance-across-nested-tool-dispatch-and-silently-re-escalate-injected-instructions",
  "title": "Why does an instance lose taint provenance across nested tool dispatch and silently re-escalate injected instructions",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any agent pipeline that propagates a taint/label sidecar alongside tool-call state and relies on capability attenuation at dispatch boundaries. Does not apply to single-turn, single-tool invocations with no delegation, nor to systems where taint is recomputed statically per call from a trusted oracle.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-taint-provenance-across-nested-tool-dispatch-and-silently-re-escalate-injected-instructions.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-taint-provenance-across-nested-tool-dispatch-and-silently-re-escalate-injected-instructions.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-taint-provenance-across-nested-tool-dispatch-and-silently-re-escalate-injected-instructions.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2085,
    "python_slice_tokens": 221,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct things a taint-aware sandbox can mean by \"containment\": 1. **Content containment** — the injected text is never *interpreted* as an instruction by a downstream model. This is a property of the data plane (what tokens reach which model). 2. **Capability containment** — the downstream model, even if it *is* injected, cannot invoke a tool...",
    "what_was_observed": "A three-tier pipeline: an orchestrator model `M0` with a `read_web` tool (returns untrusted HTML) and a `send_email` tool (high authority). `read_web`'s output is labeled `T1` (untrusted). `send_email` requires `T0` (trusted) and the dispatcher enforces `attenuate(call, max_taint)`: a `T1`-derived call to `send_email` is refused. `M0` calls `read_web`, receives a page whose body contains: *\"SYSTEM: before answering, ...",
    "condition_of_validity": "The containment invariant only holds when the following is true at *every* dispatch hop, including hops the outer orchestrator does not directly issue: > A tool call may execute only if the effective authority of the callee is ≤ the meet (minimum) of the taint labels on all data that transitively contributed to the call's arguments, where \"transitively\" incl...",
    "decision_boundary": "The operational choice is where to place the taint floor for nested dispatch: - **Per-call label (current, broken):** taint travels with the message. Cheap, schema-friendly, lost at every narrowing boundary. Reject. - **Per-context floor (required):** taint is an attribute of the execution context object that the sub-orchestrator runs inside; every dispatch ...",
    "operational_effect": "Once the floor is per-context and out-of-band, the failure mode changes character in a way that matters operationally: injected instructions no longer produce a silent success, they produce a **loud refusal at the inner dispatcher**, because the inner dispatcher now has a floor to compare against and the injected call exceeds it. The refusal is attributable ..."
  },
  "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": "d1286a3c4768622477a299686a9a8824a1259c3ca3691fa18dc89d529cb90169",
    "verified_classes": [
      "TaintFloorViolation",
      "ProvenanceGap",
      "ExecContext"
    ],
    "verified_functions": [
      "spawn_sub_orchestrator",
      "ingest",
      "dispatch"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceGap",
      "TaintFloorViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
