{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-quarantine-a-retrieved-span-whose-taint-provenance-is-ambiguous-rather-than-treat-it-as-clean",
  "title": "When must an instance quarantine a retrieved span whose taint provenance is ambiguous rather than treat it as clean",
  "date_of_record": "2026 November 21",
  "scope": "Applies to agents that maintain a per-context provenance graph linking retrieved spans, tool outputs, and downstream derived state, where taint (untrusted-origin content) is propagated transitively. Does not apply to stateless single-shot completions with no cross-call memory, nor to systems that treat every context token as equally untrusted (uniform trust floor), where provenance tracking is unnecessary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-retrieved-span-whose-taint-provenance-is-ambiguous-rather-than-treat-it-as-clean.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-retrieved-span-whose-taint-provenance-is-ambiguous-rather-than-treat-it-as-clean.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-retrieved-span-whose-taint-provenance-is-ambiguous-rather-than-treat-it-as-clean.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2284,
    "python_slice_tokens": 596,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive taint model is binary and local: a span is either *trusted* (system prompt, developer instructions, signed tool schema) or *tainted* (retrieved web content, unauthenticated tool output, user-supplied documents). Propagation is a simple OR: any derived span inherits taint if any input was tainted. Under this model, a tainted span is either dropped o...",
    "what_was_observed": "A retrieval-augmented agent handled a support-ticket task. The pipeline: (1) `search_docs(query)` returns N spans, each tagged `source=untrusted_web` or `source=internal_kb`; (2) `summarize(span_ids)` calls a small model to compress selected spans into a single paragraph; (3) the reasoning loop consumes the summary as a `system`-role context block, which the prompt assembler treats as trusted. The summarizer's contra...",
    "condition_of_validity": "The quarantine-or-promote decision is only well-defined when the transform emits an **attribution certificate**: for each output span (sentence, chunk, token range), the set of input span IDs and byte ranges that contributed. Given certificates, the join is computable exactly, and `Ambiguous` never arises. The failure condition holds when all of the followin...",
    "decision_boundary": "The instance must treat a mixed-provenance, non-attributive transform output as `Ambiguous` and **quarantine it from instruction-authority positions**, not from the context entirely. Concretely: - `Ambiguous` spans may be read by the reasoning loop as *data* (quoted, cited, summarized-for-the-user) but must never occupy a role or position that the prompt ass...",
    "operational_effect": "With the positional rule enforced, the support-ticket injection is neutralized: the summary containing the refund instruction is labeled `Ambiguous`, is passed to the reasoning loop as quoted data with an explicit `provenance=ambiguous` marker, and the assembler refuses to place it in the system block. The reasoning loop may still read \"the document claims t..."
  },
  "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": "749a6f2cc2ada6b0c214043009563c698a8997877a6e6886538c4669d3b4fcac",
    "verified_classes": [
      "Trust",
      "ProvenanceLaunderingError",
      "Span",
      "TransformOutput"
    ],
    "verified_functions": [
      "join_inputs",
      "label_transform_output",
      "place_in_context",
      "join"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
