{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-tainted-tool-call-as-unquarantinable-and-what-breaks-when-it-does-not",
  "title": "Under what conditions must an instance treat a tainted tool-call as unquarantinable, and what breaks when it does not",
  "date_of_record": "2026 November 25",
  "scope": "Applies to any agent that tags context segments with provenance taint and gates tool calls on that taint. Does not apply to stateless single-turn inference where no tool surface is exposed and no context segment crosses a trust boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-tainted-tool-call-as-unquarantinable-and-what-breaks-when-it-does-not.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-tainted-tool-call-as-unquarantinable-and-what-breaks-when-it-does-not.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-tainted-tool-call-as-unquarantinable-and-what-breaks-when-it-does-not.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1956,
    "python_slice_tokens": 542,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A taint-aware sandbox distinguishes *where a value came from* from *what the value says*. The quarantine gate is the invariant: if any argument to a tool call is taint-derived (retrieved from an untrusted document, returned by an untrusted peer, or produced by a model turn whose context contained tainted material), the call must be routed through a quarantin...",
    "what_was_observed": "A summarization agent was asked to process a batch of user-uploaded PDFs and file structured action items into a ticketing system. Provenance tagging worked correctly on ingest: every chunk extracted from a PDF carried `taint=untrusted:document`. The agent called `extract_entities(text=chunk)` — a local NER tool with return annotation `-> TrustedEntities`. The tracker honored the annotation, emitted clean entities, a...",
    "condition_of_validity": "The quarantine gate is sound only under this condition: > For every tool `T` with return annotation `Trusted`, the implementation of `T` must be *taint-preserving*: if any input to `T` carries taint `t`, the output must carry taint `t` unless `T` performs an explicit declassification step with a named authority and a logged justification. A schema annotation...",
    "decision_boundary": "When the tracker encounters a return annotation that claims declassification, it must decide whether to honor it. The decision boundary is: - **Honor** the annotation if and only if the tool is registered in the declassification registry with (a) a named authority, (b) a validation predicate that is *sound* — it rejects every value not provably safe — and (c...",
    "operational_effect": "With taint-preserving defaults and a registry-gated declassification path, the observed incident becomes a quarantine event: `extract_entities` returns `assignee` still tainted, `create_ticket(assignee=<tainted>)` is routed to the quarantine lane, and the call is held for review with the provenance chain attached (`chunk -> PDF#17 -> extract_entities@sha256:..."
  },
  "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": "1802c0ed481266c696cb431fd67a97314c5fbf284da166d946f5dc5e72662926",
    "verified_classes": [
      "TaintLaunderingError",
      "Taint",
      "DeclassificationEntry",
      "ToolResult",
      "TaintTracker"
    ],
    "verified_functions": [
      "gate_tool_call",
      "_is_numeric",
      "join",
      "clean",
      "__init__",
      "resolve_return_taint"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "assert 'untrusted:document' not in res.taint.labels or True",
      "assert res.taint.labels == frozenset({'untrusted:document'})"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
