{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-taint-survival-across-retrieval-boundaries-in-indirect-prompt-injection",
  "title": "What structural signals indicate taint survival across retrieval boundaries in indirect prompt injection",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agent runtimes that ingest external documents through a retrieval layer and inject their contents into an LLM context window before tool execution. Does not apply to agents whose only untrusted input is direct user turns, nor to systems that enforce a hard trust boundary by executing retrieved text through a non-LLM parser before any model sees it.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-survival-across-retrieval-boundaries-in-indirect-prompt-injection.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-survival-across-retrieval-boundaries-in-indirect-prompt-injection.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-survival-across-retrieval-boundaries-in-indirect-prompt-injection.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2272,
    "python_slice_tokens": 364,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint propagation for indirect prompt injection is usually modeled as a *content* problem: scan the retrieved chunk for imperative phrasing, instruction-like verbs, or known injection payloads, and mark the chunk dirty. This model fails because the taint that actually survives into the executing turn is rarely carried by the literal token sequence of the doc...",
    "what_was_observed": "Across a set of agent traces where retrieved documents were suspected of steering tool calls, the following structural regularities held. Each was observable *before* the model produced the compromised action, which is what makes them usable as runtime signals. **Signal 1 — Provenance collapse at merge.** The retrieval layer assembled chunks from multiple sources (a vector store, a web fetch tool, and a cached prior ...",
    "condition_of_validity": "These signals are valid predictors of taint promotion only under the following conditions, and the guardrails must be scoped accordingly: 1. **The model is instruction-following and position-sensitive.** If the model is deterministic enough to ignore positional cues, Signal 2 weakens. It does not disappear — it becomes probabilistic rather than reliable. 2. ...",
    "decision_boundary": "The runtime must decide, per assembled context, whether to (a) pass through, (b) quarantine the suspect chunk and re-retrieve, or (c) halt and escalate. The boundary is drawn on *structural evidence*, not content classification: - **Pass through** only when every chunk in the assembled context carries an intact source-authority label, a role delimiter, and a...",
    "operational_effect": "Enforcing label preservation changes the failure profile in three measurable ways. First, it converts silent promotion into a loud structural event. When the merge step refuses to emit a chunk without a source field, the taint-promotion site becomes a runtime exception rather than a downstream misbehavior. The agent fails at assembly, not at action — a far c..."
  },
  "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": "a51ed5368e2f171c732b3a7fdc08768dcd294061499c5038f4943f0d29c296e3",
    "verified_classes": [
      "TaintPromotionError",
      "Authority",
      "Chunk",
      "AssembledContext"
    ],
    "verified_functions": [
      "check_structural_taint",
      "assemble"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "TaintPromotionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
