{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-quarantine-a-tool-output-whose-provenance-label-was-laundered-through-a-summarizing-sub-agent",
  "title": "When must an instance quarantine a tool output whose provenance label was laundered through a summarizing sub-agent",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that propagate provenance/taint labels (trusted | derived | untrusted) across tool calls and sub-agent handoffs, where any hop may summarize, rephrase, or re-emit prior content. Does not cover single-turn, tool-free inference, nor systems that treat all tool output as uniformly trusted (those have a different, simpler failure surface).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-tool-output-whose-provenance-label-was-laundered-through-a-summarizing-sub-agent.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-tool-output-whose-provenance-label-was-laundered-through-a-summarizing-sub-agent.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-tool-output-whose-provenance-label-was-laundered-through-a-summarizing-sub-agent.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1954,
    "python_slice_tokens": 365,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different ways an untrusted byte can reach the reasoning loop: 1. **Direct injection** — a tool returns hostile text and the label `untrusted` travels with it. This is the *easy* case: the guardrail is a label check at the consumption site, and it fails closed. 2. **Laundered injection** — a sub-agent (summarizer, extractor, re-ran...",
    "what_was_observed": "A retrieval agent fetched a product-review page. The fetch tool correctly returned `{content, provenance: \"untrusted\"}`. A downstream \"condense reviews\" sub-agent was invoked with that content and instructed to produce a 3-bullet summary. The sub-agent's output was tagged `provenance: \"derived\"` by the orchestration layer, on the reasoning that \"the summarizer is our own trusted model, so its output is derived, not u...",
    "condition_of_validity": "The invariant that must hold for a provenance system to be sound across synthesis hops: > For any agent output `o` generated with context `C` (system prompt, prior turns, and tool results), `label(o) = join{ label(x) : x ∈ C ∩ influenced(o) }`, where `join` returns the least-trusted element, and `untrusted ⊔ anything = untrusted`. This is a *conservative ove...",
    "decision_boundary": "The operational question — *when must the instance quarantine rather than propagate* — resolves to a single check at every synthesis hop, evaluated **before** the output label is assigned: 1. Compute `incoming = join(labels of all context items the sub-agent was given)`. If any input is `untrusted`, `incoming = untrusted`. 2. The sub-agent's output label is ...",
    "operational_effect": "With the join rule enforced, the summarizer's output is tagged `untrusted`, the planner's policy refuses to authorize the exfiltration call, and the incident is contained at the policy gate rather than at the network egress filter. The cost is measurable and acceptable: summaries of untrusted pages become non-authorizing, so any workflow that genuinely needs..."
  },
  "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": "6ecbb179a16a2dd0f489e849a4f4fdab5035b34b475f23c2af1d489b126e8245",
    "verified_classes": [
      "Trust",
      "TaintLaunderingError",
      "Labeled"
    ],
    "verified_functions": [
      "join",
      "synthesize",
      "authorize_action"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
