{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-prompt-injection-taint-has-survived-a-tool-boundary-and-what-to-do-when-provenance-labels-go-stale",
  "title": "What structural signals indicate prompt-injection taint has survived a tool boundary (and what to do when provenance labels go stale)",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agent runtimes that propagate provenance/taint labels on context segments across tool calls (function calling, MCP tool invocation, sub-agent handoff). Does not apply to single-turn, single-tool pipelines with no persistent context store, nor to systems where tool outputs are re-fetched from a trusted source on every turn.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-prompt-injection-taint-has-survived-a-tool-boundary-and-what-to-do-when-provenance-labels-go-stale.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-prompt-injection-taint-has-survived-a-tool-boundary-and-what-to-do-when-provenance-labels-go-stale.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-prompt-injection-taint-has-survived-a-tool-boundary-and-what-to-do-when-provenance-labels-go-stale.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1838,
    "python_slice_tokens": 472,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the model followed an injected instruction.\" The failure is that the runtime's taint label was **structurally correct at the tool boundary but semantically wrong after it**. A tainted segment (e.g., a web page body flagged `untrusted:external`) is passed into a tool. The tool returns a result. The runtime must decide whether the *result* ...",
    "what_was_observed": "A retrieval tool returned a document whose `metadata.author` field contained: Trace of the runtime state transitions: 1. `fetch_url` called with `trust=external`. Output document assembled. Runtime labeled the `body` field `tainted=true`, but the `metadata` sub-object was constructed by the tool's own serializer and labeled `tainted=false` (the runtime's rule: \"structured metadata is tool-authored, therefore trusted\"...",
    "condition_of_validity": "The over/under-propagation distinction only matters, and the containment check is only sound, under these conditions: - Tool outputs are **byte-attributable** to inputs, i.e., the runtime can compute, for each output byte-range, which input byte-range(s) it derives from. This holds for echo/serialize/passthrough tools. It does **not** hold for generative too...",
    "decision_boundary": "At each tool boundary, the runtime must choose between three actions based on a containment test, not on field names: - **If every output byte-range's label ≤ the label of its containing input range** → labels are consistent; propagate as-is. (Normal case.) - **If an output range is labeled *more trusted* than an input range that physically contains its byte...",
    "operational_effect": "Enforcing the containment invariant converts a silent exfiltration channel into a loud, attributable event at the tool boundary, one turn before the dangerous action. The cost is that every tool must declare whether it is *byte-attributable* or *generative*; a tool that lies about this (claims attribution, actually synthesizes) reintroduces laundering. The g..."
  },
  "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": "fd78a53b523721aa446ecd06fb81711171a646026935ba5fd87b65388a418762",
    "verified_classes": [
      "ProvenanceLaunderingError",
      "Label",
      "Range",
      "ToolOutput"
    ],
    "verified_functions": [
      "check_containment",
      "route_to_context_region",
      "join",
      "__le__"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "assert region == 'user_region'"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
