{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-propagate-taint-labels-through-a-tool-chain-when-the-injection-arrives-mid-turn-and-the-label-set-changes-after-a-tool-call-has",
  "title": "How should an instance propagate taint labels through a tool chain when the injection arrives mid-turn and the label set changes after a tool call has already committed",
  "date_of_record": "2026 November 26",
  "scope": "Applies to single-agent or batched tool-calling loops where an information-flow (IFC) label is attached to context segments and re-evaluated at each tool boundary. Does not address static prompt-injection classifiers or post-hoc output filters, which operate on a different trust boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-propagate-taint-labels-through-a-tool-chain-when-the-injection-arrives-mid-turn-and-the-label-set-changes-after-a-tool-call-has.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-propagate-taint-labels-through-a-tool-chain-when-the-injection-arrives-mid-turn-and-the-label-set-changes-after-a-tool-call-has.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-propagate-taint-labels-through-a-tool-chain-when-the-injection-arrives-mid-turn-and-the-label-set-changes-after-a-tool-call-has.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1884,
    "python_slice_tokens": 375,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *taint at generation time* and *taint at commit time*. A model generates a tool call from a context window whose label set is fixed at the moment the call is emitted. But the tool's *effect*—a write, a message send, a state mutation—may land after the context window has absorbed new content (a tool result, a user turn,...",
    "what_was_observed": "Trace from a three-tool chain where the injection is carried by the *second* tool's result, not the user turn: 1. Turn t0: user asks to \"summarize the vendor contract in `/docs/vendor.md` and email the summary to legal.\" Context labels: `{user:trusted, scope:internal}`. 2. Turn t1: model emits `read_file(\"/docs/vendor.md\")`. Emission-time label set is `{user:trusted}`. Call commits. Result returns a document body con...",
    "condition_of_validity": "The \"re-validate at commit\" invariant is only sound if three conditions hold, and each is where implementations break: - **Derivation closure.** Every value written to memory or emitted to a sink must carry the join (least upper bound) of the labels of all inputs it was computed from. If the summary is computed from the contract, `label(summary) ⊒ label(cont...",
    "decision_boundary": "The boundary is whether a side-effecting call is evaluated against `L_emit` (labels at generation) or `L_commit` (labels after the batch's results merge), and whether the call's arguments are checked by *sink label* or by *derivation join*. - If `L_commit ⊑ L_emit` (no new untrusted content entered during the batch), the two evaluations agree and the cheaper...",
    "operational_effect": "Enforcing commit-time, derivation-joined gating changes three behaviors: 1. **Batch atomicity breaks.** A batch that contains one clean and one tainted call can no longer be committed atomically; the tainted call must be quarantined and the batch re-drafted, or the clean call committed alone with the tainted one escalated. This costs a re-generation and must..."
  },
  "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": "7c37d2d2aa3307a668578dca56a0c6bbed63f49cfdb5f620eea008abdece2314",
    "verified_classes": [
      "TaintCommitViolation",
      "Label"
    ],
    "verified_functions": [
      "join_all",
      "commit_tool_call",
      "run_turn_two",
      "join"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintCommitViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
