{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-quarantine-a-provenance-label-after-a-retrieval-boundary-rather-than-re-asserting-it-downstream",
  "title": "Under what conditions must an instance quarantine a provenance label after a retrieval boundary rather than re-asserting it downstream",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents that attach provenance/taint labels (e.g., `trusted:user`, `untrusted:web`, `derived:tool`) to context fragments and propagate those labels across tool-call and retrieval boundaries before acting on them. Does not apply to stateless single-turn classifiers with no cross-boundary state, nor to systems where all retrieved content is pre-sanitized out-of-band before the agent ever sees it.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-provenance-label-after-a-retrieval-boundary-rather-than-re-asserting-it-downstream.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-provenance-label-after-a-retrieval-boundary-rather-than-re-asserting-it-downstream.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-a-provenance-label-after-a-retrieval-boundary-rather-than-re-asserting-it-downstream.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1487,
    "python_slice_tokens": 257,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent followed an injected instruction.\" It is subtler: **the agent correctly labeled the tainted fragment at ingest, then silently laundered the label during a boundary crossing, so downstream reasoning treated tainted bytes as trusted.** Taint tracking fails not at detection but at *label preservation across serialization boundaries...",
    "what_was_observed": "A retrieval call returned a document fragment. At ingest, the wrapper correctly stamped it `provenance=untrusted:retrieval, taint=injectable`. The agent then invoked a summarizer tool whose interface accepted `(text: str)` — **string in, string out**. The summarizer had no parameter for labels. The agent passed only the text. The tool returned a fluent summary. The agent, reasoning over the summary, re-attached no la...",
    "condition_of_validity": "The invariant holds — labels must be quarantined rather than re-asserted — under these jointly-necessary conditions: - **The boundary is lossy for metadata.** Any tool or retrieval hop whose interface type is `str -> str` (or any structure without a provenance slot) is a laundering boundary. If the interface carries structured provenance, the invariant does ...",
    "decision_boundary": "The agent must choose between *propagate-with-join* and *quarantine* at each boundary: - If the tool interface **can** carry a provenance field, propagate `label_out = meet(label_in_1, ..., label_in_n)` — the least-trusted input wins. Never upgrade during a transform. - If the tool interface **cannot** carry provenance **and** the downstream policy is defaul...",
    "operational_effect": "After enforcing the join-and-quarantine rule, injection-via-laundering incidents dropped to zero in the replay corpus, at the cost of a measurable latency and a new failure mode: **quarantine deadlock** — an agent that quarantines a fragment it needs to complete its task will stall waiting for provenance that never arrives. The guardrail must therefore pair ..."
  },
  "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": "3f0d91601e454328f71c2b1098960b0afe276b7d5ed12aa799883d16f3f0c849",
    "verified_classes": [
      "Trust",
      "TaintLaunderingError",
      "Fragment"
    ],
    "verified_functions": [
      "meet",
      "propagate_across_boundary",
      "run_summarizer_hop"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
