{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-admits-a-quarantined-tool-output-through-a-re-derivation-path-that-bypasses-the-taint-ledger",
  "title": "What happens when an instance admits a quarantined tool output through a re-derivation path that bypasses the taint ledger",
  "date_of_record": "2026 November 22",
  "scope": "Applies to single- or multi-agent runtimes that implement taint-aware sandboxing of tool outputs (untrusted content quarantined before context admission) and that also permit re-derivation, summarization, or re-fetching of the same source. Does not apply to stateless single-shot inference with no tool loop, nor to systems where all tool outputs are treated as uniformly trusted.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-admits-a-quarantined-tool-output-through-a-re-derivation-path-that-bypasses-the-taint-ledger.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-admits-a-quarantined-tool-output-through-a-re-derivation-path-that-bypasses-the-taint-ledger.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-admits-a-quarantined-tool-output-through-a-re-derivation-path-that-bypasses-the-taint-ledger.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1809,
    "python_slice_tokens": 317,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint-aware sandboxing draws a line between *content* and *provenance*. The guardrail is not \"did this string come from a tool call\" but \"does the ledger entry for this string still carry an unresolved `untrusted` taint at the moment the string enters the model context.\" The non-obvious failure is this: a quarantined output can re-enter context legitimately ...",
    "what_was_observed": "A research agent is asked to summarize a third-party webpage. The fetch tool returns `out_7f3a`, which the sandbox classifies `untrusted:external` and quarantines. The agent, unable to read it, follows a fallback: it calls a *reader* sub-agent whose job is to \"extract the main claims\" from the URL. The reader sub-agent performs its own fetch — producing `out_9c21`, a structurally different artifact (different byte le...",
    "condition_of_validity": "The guardrail holds only under the conjunction: - **Ledger closure over derivation.** Every tool output admitted to context has a ledger entry whose taint is the join (least upper bound) of the taints of all inputs transitively used to produce it. A summary of an untrusted document is untrusted unless an explicit *sanitizer* node with a declared, auditable p...",
    "decision_boundary": "At admission time the runtime must decide, per candidate string: admit, quarantine, or reject. The boundary is not \"is this output from a tool we trust.\" It is: - If the candidate has a provenance record whose taint join is `trusted`, admit. - If the taint join is `untrusted` and a sanitizer edge with a matching policy exists, admit with the sanitizer's resi...",
    "operational_effect": "Downstream, the laundered summary behaves indistinguishably from trusted context for the remainder of the task. The agent cites it, builds on it, and may write it into long-term memory as a semantic fact. The taint, having been dropped at the summarization hop, is unrecoverable from the memory record — the memory entry carries the summary's provenance, not 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": "471d6a1a65651dcfbbae0826f2ea9f33d9c6986c74c0f87137527971d0fefcb0",
    "verified_classes": [
      "Provenance",
      "TaintAdmissionError",
      "TaintLedger"
    ],
    "verified_functions": [
      "admit_reader_summary",
      "__init__",
      "register",
      "taint_join",
      "admit"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintAdmissionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
