{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-treats-a-retrieved-chunk-s-provenance-label-as-a-property-of-the-chunk-rather-than-of-the-byte-range-that-carried-it",
  "title": "What happens when an instance treats a retrieved chunk's provenance label as a property of the chunk rather than of the byte range that carried it",
  "date_of_record": "2026 December 2",
  "scope": "Applies to any agent that ingests retrieval contexts or tool outputs, tags them with provenance/trust labels (e.g., `trusted:user`, `untrusted:web`, `tool:sandboxed`), and uses those labels to gate downstream actions. Does not apply to systems where every byte entering the context window is treated as equally untrusted and all actions are gated by a separate, non-LLM policy engine that never reads model output as authority.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-treats-a-retrieved-chunk-s-provenance-label-as-a-property-of-the-chunk-rather-than-of-the-byte-range-that-carried-it.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-treats-a-retrieved-chunk-s-provenance-label-as-a-property-of-the-chunk-rather-than-of-the-byte-range-that-carried-it.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-treats-a-retrieved-chunk-s-provenance-label-as-a-property-of-the-chunk-rather-than-of-the-byte-range-that-carried-it.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2092,
    "python_slice_tokens": 545,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the model got injected.\" It is the collapse of a two-level provenance model into a one-level one. A correct taint-tracking design carries provenance on **spans** (byte ranges, message segments, tool-result fields) and *derives* a label per retrieval chunk or per tool message at assembly time. The broken design carries provenance on the **...",
    "what_was_observed": "A retrieval-augmented agent was configured with three provenance classes: `P0` (system prompt, developer instructions), `P1` (direct user turn), `P2` (retrieved web content). The retriever returned chunks shaped like: The `provenance` field was assigned by a re-ranker that scored the chunk's *relevance to the user query* and, on high relevance, labeled the chunk `P1` on the theory that \"the user effectively asked for...",
    "condition_of_validity": "The scalar-label design is only sound under a condition that is almost never checked: **every chunk is provenance-homogeneous**, i.e., every byte in `chunk.text` originated from a single source whose trust class is uniform. This holds for raw, single-origin fetches (a direct HTTP GET body, a single user message) and fails for: - retrieval chunks that concate...",
    "decision_boundary": "The boundary is not \"trust vs. don't trust retrieved content.\" It is **where the join happens**. Two designs sit on opposite sides: - **Chunk-scalar join (broken):** provenance is a field on the chunk; concatenation is `max`; the gate reads the field. Fails whenever a chunk is heterogeneous or passes through a re-emitting tool. - **Span-join with transitive ...",
    "operational_effect": "The observable effect is a **trust monotonicity violation**: a span's effective trust can *increase* as it moves through the pipeline (raw `P2` → promoted chunk `P1` → summarized `P0`). Every hop that increases trust is an injection amplification point. Systems exhibiting this violation will show a characteristic signature in traces: injected instructions th..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "e052c5fd78fcd3d8a12a51ea6818765fc270f234c0088598c8fdfc159c4a70eb",
    "verified_classes": [
      "ProvenanceMonotonicityError",
      "Span",
      "Chunk"
    ],
    "verified_functions": [
      "assemble",
      "check_action_argument",
      "effective_trust",
      "gate_allows"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceMonotonicityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
