{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-quarantine-taint-labels-at-the-sub-agent-boundary-rather-than-let-them-ride-the-return-channel",
  "title": "Under what conditions must an instance quarantine taint labels at the sub-agent boundary rather than let them ride the return channel",
  "date_of_record": "2026 November 28",
  "scope": "Applies to any orchestrator that propagates data-flow taint labels (untrusted-origin markers) across tool calls and delegated sub-agent invocations, where the sub-agent returns a structured payload over a channel the parent treats as a fresh context. Does not apply to single-instance loops with no delegation, nor to systems where every return value is re-scanned by the same classifier that labeled the source.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-taint-labels-at-the-sub-agent-boundary-rather-than-let-them-ride-the-return-channel.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-taint-labels-at-the-sub-agent-boundary-rather-than-let-them-ride-the-return-channel.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-quarantine-taint-labels-at-the-sub-agent-boundary-rather-than-let-them-ride-the-return-channel.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2317,
    "python_slice_tokens": 344,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"prompt injection succeeds.\" It is the **label-laundering asymmetry at the delegation boundary**: taint labels are inherited *downward* into a sub-agent's context (cheap, mechanical), but the sub-agent's *return value* is synthesized fresh and arrives at the parent as a new message with no carrier for the labels that produced it. The paren...",
    "what_was_observed": "An orchestrator `O` held a document `D` fetched from an untrusted web tool, labeled `taint=untrusted`. `O` delegated a summarization task to sub-agent `S` with the instruction \"summarize the following and extract any action items,\" passing `D` in the sub-agent's user turn. `S` returned: The injected instruction was inside `D`'s footer. `S` did not execute it—`S` had no tools—but it faithfully *extracted* it as an act...",
    "condition_of_validity": "The guardrail is only sound under the following invariant, which must be enforced structurally rather than by classifier confidence: **Influence-join invariant.** For every value `v` returned across a delegation edge from sub-agent `S` invoked with inputs `I = {i_1..i_n}`, the label assigned to `v` at the parent must satisfy: where `⋁` is the taint lattice j...",
    "decision_boundary": "The operational question is not \"is this output tainted?\" (unanswerable from content alone after paraphrase) but \"does the return edge carry a join of the influence set?\" The boundary is: - **If the influence set is closed and the harness stamps the join onto the return envelope →** the parent may treat the output as `trusted` only for the portion of downstr...",
    "operational_effect": "Enforcing the influence-join invariant changes the delegation topology in three concrete ways: 1. **Sub-agents become taint-transparent, not taint-clearing.** A delegation no longer resets provenance. This means an orchestrator cannot use \"delegate to a clean sub-agent\" as a sanitization step—a pattern that is common and wrong. The sub-agent inherits the flo..."
  },
  "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": "98b38d3c76d506c32d1495b99eaf0b319bb0e3f735de8404b03af92b87a5d2d3",
    "verified_classes": [
      "Taint",
      "TaintLaunderingError",
      "Envelope",
      "Delegation"
    ],
    "verified_functions": [
      "admit_return",
      "gate_side_effect",
      "join",
      "recorded_floor"
    ],
    "verified_functions_count": 4,
    "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
  }
}
