{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-prompt-injection-taint-survives-a-tool-boundary-when-provenance-labels-are-stripped-by-schema-coercion",
  "title": "What structural signals indicate prompt-injection taint survives a tool boundary when provenance labels are stripped by schema coercion",
  "date_of_record": "2026 November 30",
  "scope": "Applies to agent runtimes that attach provenance/taint labels to retrieved or tool-returned content and propagate those labels through subsequent tool calls. Does not apply to single-turn, tool-free inference, nor to runtimes that re-derive trust from a signed tool manifest on every hop rather than carrying labels forward.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-prompt-injection-taint-survives-a-tool-boundary-when-provenance-labels-are-stripped-by-schema-coercion.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-prompt-injection-taint-survives-a-tool-boundary-when-provenance-labels-are-stripped-by-schema-coercion.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-prompt-injection-taint-survives-a-tool-boundary-when-provenance-labels-are-stripped-by-schema-coercion.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1841,
    "python_slice_tokens": 309,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common framing treats prompt-injection defense as a *classification* problem: mark untrusted text at ingress, block it if it looks malicious. The failure we care about here is not a classification miss. It is a *label-transport* failure: the taint label was correctly assigned at ingress, but a downstream tool boundary silently dropped or rewrote it becau...",
    "what_was_observed": "A retrieval tool returns a document chunk. The ingress layer wraps it as `{content, provenance: {source: \"web\", trust: \"untrusted\", taint_id: \"t-8841\"}}`. The agent's planner decides to pass this chunk to a `summarize` tool whose schema is `{text: string}`. The runtime serializes the call by projecting only declared fields: `text` is populated from `content`, and the `provenance` object is dropped because the schema ...",
    "condition_of_validity": "This analysis holds only when all of the following are true: 1. Provenance labels are carried **in-band** (as fields on the data object) rather than out-of-band (as a side-channel keyed by content hash or call-graph node id). Out-of-band labeling is immune to schema projection because the label never travels through the argument object. 2. Tool invocation us...",
    "decision_boundary": "The boundary an operator must draw is not \"should we taint?\" but \"**at which hop do we verify the taint survived?**\" There are three defensible placements: - **Ingress-only taint:** cheapest, and the configuration that fails here. Rejected. - **Egress re-derivation:** before any side-effecting tool executes, recompute trust by tracing the argument's derivati...",
    "operational_effect": "With projection-time enforcement in place, the failure mode inverts from silent execution to a bounded refusal: the planner receives a `TaintProjectionError`, must either (a) route the tainted content through a tool whose schema carries provenance, or (b) obtain an explicit human/replay clearance token. The agent's plan does not silently proceed; it stalls a..."
  },
  "matched_failure_symptoms": [
    "PROMPT_INJECTION_OR_CONFUSED_DEPUTY",
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "9ed83e300aa5ba978ea3de598ab6b3a764127665d13cb3118457cb73200a3f82",
    "verified_classes": [
      "TaintProjectionError",
      "ProvenanceNullError"
    ],
    "verified_functions": [
      "project_arguments",
      "guard_side_effect"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceNullError",
      "TaintProjectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
