{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-of-prompt-injection-taint-tracking-with-provenance-labels-fail-at-the-label-relabeling-boundary",
  "title": "Why does an instance of prompt-injection taint tracking with provenance labels fail at the label-relabeling boundary?",
  "date_of_record": "2026 November 15",
  "scope": "Applies to multi-segment LLM contexts where each segment carries a provenance label (source class, trust tier, origin channel) and sinks are enforced dynamically by policy at generation time. Does not apply to single-segment contexts, nor to systems where taint is tracked only at the request level rather than per segment.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-of-prompt-injection-taint-tracking-with-provenance-labels-fail-at-the-label-relabeling-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-of-prompt-injection-taint-tracking-with-provenance-labels-fail-at-the-label-relabeling-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-of-prompt-injection-taint-tracking-with-provenance-labels-fail-at-the-label-relabeling-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1470,
    "python_slice_tokens": 282,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The invariant that breaks is not \"tainted data must not reach a privileged sink.\" It is the weaker, more subtle invariant that **a segment's provenance label must remain a function of its origin, not of the transformations applied to it within the context window.** Taint tracking assumes monotonicity: once a segment is labeled `untrusted:external`, any deriv...",
    "what_was_observed": "In a pipeline with three provenance classes — `system` (trust tier 0), `retrieved` (tier 1, external corpus), and `user` (tier 2, direct input) — a retrieval segment containing an adversarial instruction was correctly labeled `retrieved` at ingest. The segment was then passed through a preprocessing step that extracted \"relevant sentences\" and emitted them as a new context segment. The new segment was labeled by the ...",
    "condition_of_validity": "The monotonic-taint invariant holds only when **every context segment is constructed by a component that holds a reference to the originating provenance record, and no segment is ever constructed by a component that reads only text.** This condition is violated by any of: - Summarization or extraction steps that emit text without a provenance sidecar. - Tool...",
    "decision_boundary": "The decision boundary is whether to **fail closed on provenance discontinuity** or to **propagate the weakest label across the discontinuity**. Failing closed means any segment whose provenance record is missing or whose `derived_from` chain does not terminate at an oracle-assigned label must be treated as the lowest trust tier and blocked from privileged si...",
    "operational_effect": "When the boundary is respected, taint tracking is sound and the audit trail attributes every sink invocation to an oracle-assigned origin. When it is crossed, the system exhibits **label laundering**: tainted content reaches privileged sinks under a label that the sink policy trusts, and the audit log records the laundering component's label rather than the ..."
  },
  "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": "4ba1f406b417853469e764f3f20c8695a599967cb7e23fc98221acbfc480e287",
    "verified_classes": [
      "ProvenanceDiscontinuityError",
      "Segment"
    ],
    "verified_functions": [
      "enforce_sink"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ProvenanceDiscontinuityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
