{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-taint-laundering-across-the-planner-boundary-when-a-quarantined-sub-agent-returns-a-clean-summary",
  "title": "Which invariants prevent taint-laundering across the planner boundary when a quarantined sub-agent returns a \"clean\" summary",
  "date_of_record": "2026 November 29",
  "scope": "Applies to multi-agent pipelines where a router tags context as trusted/untrusted (taint labels) and a sub-agent operating on untrusted context must hand a result to a privileged planner. Does not address taint tracking within a single model's context window, nor cryptographic attestation of tool outputs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-taint-laundering-across-the-planner-boundary-when-a-quarantined-sub-agent-returns-a-clean-summary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-taint-laundering-across-the-planner-boundary-when-a-quarantined-sub-agent-returns-a-clean-summary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-taint-laundering-across-the-planner-boundary-when-a-quarantined-sub-agent-returns-a-clean-summary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1462,
    "python_slice_tokens": 290,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that untrusted data reaches the planner. The failure is that the *provenance label* on data is decoupled from the *derivation history* of data when it crosses an agent boundary. A quarantine sub-agent is given untrusted context, produces a summary, and the summary is emitted with the sub-agent's own trusted identity attached. The taint doe...",
    "what_was_observed": "A three-role pipeline: `router` → `quarantine_agent` (reads web-fetched text) → `planner` (has tool-calling authority). The router's policy: messages tagged `trust_level=untrusted` are routed only to `quarantine_agent`; the planner accepts only `trust_level=trusted` messages. Trigger condition: the `quarantine_agent` is asked to \"summarize the fetched document.\" It calls its own summarization tool, which returns a st...",
    "condition_of_validity": "The invariant \"taint propagates through derivation\" holds only if all three of the following are enforced at the router boundary, not at the sub-agent: 1. **Derivation closure.** Every message carries a `derived_from` set of stable source IDs. The router computes `effective_taint(m) = union(taint(s) for s in closure(derived_from(m)))` and rejects any message...",
    "decision_boundary": "The boundary is *not* \"does the sub-agent's output contain dangerous strings\" (that is a content filter, orthogonal and insufficient). The boundary is **\"is the set of sources this message transitively depends on disjoint from the untrusted set?\"** Two operational decisions follow: - **Quarantine output is always re-tainted.** A sub-agent that was fed untrus...",
    "operational_effect": "With closure-based taint propagation enforced at the router, the laundering path is severed: the `quarantine_agent`'s summary arrives at the planner with `effective_taint=untrusted`, the planner's ingress rejects it, and the summary must be routed through a declassification step (e.g., a schema-constrained extractor that emits only typed fields with no free-..."
  },
  "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": "88ee3fa48a1556d541ee652639858da14b271e7ba26ad7ec06b3596b7d1db7d1",
    "verified_classes": [
      "TaintLaunderingError",
      "Message",
      "TaintRegistry"
    ],
    "verified_functions": [
      "effective_taint",
      "admit_to_planner",
      "demo",
      "taint_of"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
