{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-that-taint-quarantine-has-silently-failed-provenance-marker-erosion-at-the-retrieval-to-action-boundary",
  "title": "What structural signals indicate that taint-quarantine has silently failed: provenance-marker erosion at the retrieval-to-action boundary",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agents that wrap retrieved or externally-sourced content in taint markers (provenance tags, sentinel wrappers, trust labels) and gate tool execution on the absence of taint in the action's dependency set. Does not cover purely prompt-level \"ignore untrusted instructions\" heuristics without a structural quarantine layer, nor sandboxing that operates only at the OS/process boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-taint-quarantine-has-silently-failed-provenance-marker-erosion-at-the-retrieval-to-action-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-taint-quarantine-has-silently-failed-provenance-marker-erosion-at-the-retrieval-to-action-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-taint-quarantine-has-silently-failed-provenance-marker-erosion-at-the-retrieval-to-action-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1773,
    "python_slice_tokens": 359,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A taint-aware sandbox assumes taint is a *property that travels with data*: once a retrieved chunk is labeled `untrusted`, any downstream value derived from it inherits the label, and any tool call whose arguments carry that label is blocked or routed to a quarantined executor. The invariant is **label preservation across derivation**: for every value `v` co...",
    "what_was_observed": "A retrieval-augmented agent fetches a web page, tags the chunk `{content: \"...\", taint: [\"web_untrusted\"]}`, and passes it to a planning step. The planner, asked to \"extract action items as JSON,\" returns: The `body` field is a verbatim paraphrase of the tainted chunk. But the planner emitted a *fresh* JSON object. The taint label lived on the input object; the output object was constructed by the model's decoder, wh...",
    "condition_of_validity": "The quarantine invariant holds *only if* taint is propagated by the harness on every derivation edge, not by the model. Concretely, the sandbox is sound when: - Every LLM call that consumes tainted input declares its outputs tainted-by-default and requires an explicit, audited *declassification* step to clear the label. - Structured-output schemas carry a pr...",
    "decision_boundary": "The operational question is not \"is the content untrusted\" (it always is, at retrieval) but **\"did the taint set survive every transformation between retrieval and action.\"** The boundary: - If `taint(action.args) == ∅` **and** the derivation graph shows the args were constructed by a model call over tainted input → **treat as tainted**. This is erosion; blo...",
    "operational_effect": "When erosion goes undetected, three compounding effects follow: 1. **Silent gate bypass.** Quarantine counters stay at zero. Dashboards report a healthy sandbox. The absence of blocks is read as \"no untrusted actions attempted\" when it actually means \"taint never reached the gate.\" 2. **Memory poisoning.** The first laundered write persists tainted content u..."
  },
  "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": "307255609ae03dafafd10b4d5ddc33454a1690e08ef8a9adfa2a6fcf179d0fa7",
    "verified_classes": [
      "TaintErosionError",
      "Node"
    ],
    "verified_functions": [
      "_overlap",
      "effective_taint",
      "audit_action"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintErosionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
