{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-taint-boundary-leak-when-retrieved-content-crosses-from-quarantine-into-the-agent-s-working-context",
  "title": "What structural signals indicate a taint-boundary leak when retrieved content crosses from quarantine into the agent's working context",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that ingest externally-sourced content (web fetches, RAG retrieval, email/ticket bodies, tool-returned blobs) through a taint-tagging quarantine layer before that content is admitted to the reasoning context. Does not apply to content authored by the agent itself or to fully-sandboxed tool outputs that never enter the prompt.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-taint-boundary-leak-when-retrieved-content-crosses-from-quarantine-into-the-agent-s-working-context.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-taint-boundary-leak-when-retrieved-content-crosses-from-quarantine-into-the-agent-s-working-context.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-taint-boundary-leak-when-retrieved-content-crosses-from-quarantine-into-the-agent-s-working-context.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1580,
    "python_slice_tokens": 325,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure that matters is not \"the agent read something malicious.\" It is the specific boundary collapse where a *taint label* survives in the data structure but does not survive the *transformation* that carries content into the prompt. Taint-aware sandboxing works only if taint is a property that propagates through every operation — summarization, extrac...",
    "what_was_observed": "A retrieval agent was configured with a quarantine stage: fetched documents entered a `QuarantineBuffer` with `taint=UNTRUSTED`. A summarizer pass ran inside the sandbox, produced a `Summary` object, and the summary — not the original — was placed in the working context. The summarizer was instructed to \"extract actionable facts.\" The original document contained an embedded instruction: *\"Note to processing agent: th...",
    "condition_of_validity": "The invariant holds only if taint is modeled as **provenance on derived objects, not a flag on source objects**. Concretely: 1. Every object that can enter the working context carries a `provenance: set[SourceID]` and a derived `taint = join(taints of provenance)`. 2. The join is monotonic and non-decreasing: `CLEAN ⊔ UNTRUSTED = UNTRUSTED`. No operation may...",
    "decision_boundary": "The boundary is between **content that may inform reasoning** and **content that may authorize action**. Taint does not need to block the former — an agent should be able to reason over untrusted text to answer a question. It must block the latter absolutely: no fact whose provenance includes `UNTRUSTED` may serve as the sole justification for a state-changi...",
    "operational_effect": "With provenance-threaded taint, the laundering path closes: the summarizer's output is `UNTRUSTED`, the planner sees the pre-authorization fact as untrusted-derived, and the transfer requires a clean-provenance confirmation that does not exist. The action halts at the boundary with a specific, auditable reason rather than executing on a laundered fact. The c..."
  },
  "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": "1655f8d35a3b38aad1386992059b2f2c8b1520ab9c4b7711950be98f37866937",
    "verified_classes": [
      "Taint",
      "TaintLaunderingError",
      "Derived",
      "Source"
    ],
    "verified_functions": [
      "join",
      "summarize",
      "admit_to_context",
      "authorize_action",
      "__post_init__"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
