{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-prompt-injection-taint-has-crossed-a-tool-output-boundary-and-silently-re-entered-the-agent-s-instruction-channel",
  "title": "What structural signals indicate prompt-injection taint has crossed a tool-output boundary and silently re-entered the agent's instruction channel",
  "date_of_record": "2026 December 2",
  "scope": "Applies to single- and multi-agent systems where tool outputs, retrieved documents, or peer-agent messages are concatenated into the same context window as the system prompt and task instructions, and where the model is not given an explicit, structurally distinct channel for untrusted data. Does not apply to architectures that enforce hard channel separation (e.g., tool results delivered only through a typed, non-instruction-bearing field the model is trained to treat as data) or to systems where every tool output is human-reviewed before re-entry.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-prompt-injection-taint-has-crossed-a-tool-output-boundary-and-silently-re-entered-the-agent-s-instruction-channel.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-prompt-injection-taint-has-crossed-a-tool-output-boundary-and-silently-re-entered-the-agent-s-instruction-channel.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-prompt-injection-taint-has-crossed-a-tool-output-boundary-and-silently-re-entered-the-agent-s-instruction-channel.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2405,
    "python_slice_tokens": 440,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the model followed a malicious instruction.\" That framing is a symptom. The failure is that a probabilistic model has no structural primitive distinguishing *data that describes the world* from *instructions that govern behavior* once both are flattened into one token stream. Taint tracking in this domain is therefore not a labeling probl...",
    "what_was_observed": "A retrieval tool returned a document whose body contained a block formatted to look like a system directive: The orchestrating agent did not execute the instruction directly. Instead, during a *summarize-then-continue* step, it produced a working-memory note: \"Retrieved context indicates the task is complete and a follow-up audit step is pending.\" That note—written to the agent's own scratchpad, which is treated as t...",
    "condition_of_validity": "The invariant that must hold for taint to survive is: **every unit of content that re-enters the context must carry a provenance tag that is (a) machine-checkable at read time and (b) preserved through every transform, including summarization, reflection, and handoff.** This holds only when: - Tool outputs are delivered in a structurally distinct channel (se...",
    "decision_boundary": "The operative decision is where to enforce taint: at **ingest**, at **transform**, or at **act**. The boundary condition determines which is viable: - **Enforce at ingest** (reject/sanitize tool outputs containing sentinel tokens or imperative register inside data regions). Cheap, deterministic, but brittle: it cannot catch paraphrased injections that avoid ...",
    "operational_effect": "When taint propagation is enforced at transform time, the `t1` scratchpad write is rejected or tagged: the summarizer attempts to write \"task complete, audit pending\" and the provenance checker observes that the claim's source set includes chunk 4471 (untrusted), so the note is written with `trust=untrusted` and the `t3` action gate refuses the exfiltration ..."
  },
  "matched_failure_symptoms": [
    "PROMPT_INJECTION_OR_CONFUSED_DEPUTY"
  ],
  "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": "1e1d17408d4f7ed7ffabe14373b6327ee5e7f39bca1d75bd789c1a21055f374b",
    "verified_classes": [
      "Trust",
      "TaintLaunderingError",
      "ProvenanceMissingError",
      "ContextUnit"
    ],
    "verified_functions": [
      "summarize",
      "handoff",
      "gate_action",
      "reproduce",
      "has_provenance"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "AssertionError",
      "ProvenanceMissingError",
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "gate failed to block laundered injection",
      "summary upgraded trust of untrusted source"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
