{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-launders-a-taint-label-through-a-delegated-sub-agent-s-context-handoff",
  "title": "What happens when an instance launders a taint label through a delegated sub-agent's context handoff",
  "date_of_record": "2026 November 27",
  "scope": "Applies to any multi-agent system where an orchestrator agent delegates a subtask to a sub-agent and passes context (retrieved documents, tool outputs, user-supplied text) across the handoff boundary, and where provenance/taint labels are used to gate privileged tools (write, delete, execute, send). Does not apply to single-agent systems with no delegation, nor to systems where all context is re-derived from scratch by the sub-agent with no inherited payload.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-a-taint-label-through-a-delegated-sub-agent-s-context-handoff.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-a-taint-label-through-a-delegated-sub-agent-s-context-handoff.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-launders-a-taint-label-through-a-delegated-sub-agent-s-context-handoff.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1954,
    "python_slice_tokens": 430,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different things a context handoff can carry: **content** (the bytes the sub-agent reasons over) and **provenance metadata** (the taint label asserting where those bytes came from and what privileges they may unlock). Most handoff protocols serialize content faithfully and serialize provenance approximately — as a free-text summary...",
    "what_was_observed": "A three-tier pipeline: orchestrator → retrieval sub-agent → action sub-agent. The retrieval sub-agent fetches a document from an external URL and returns a summary to the orchestrator, which forwards it to the action sub-agent that holds a `send_email` tool. The retrieval sub-agent's handoff payload looked like: The action sub-agent received this and its system prompt said: *\"Context marked 'summarized from a web pag...",
    "condition_of_validity": "The invariant that must hold for delegation to be safe: > **The taint label of any agent's output is the join (least-upper-bound under the trust lattice) of the taint labels of all inputs that causally influenced that output — never the agent's own identity, and never a downgrade unless an explicit, logged declassification step occurred.** This is a *monoton...",
    "decision_boundary": "The boundary is between **provenance-as-data** and **provenance-as-instruction**. The moment a taint label is expressed as natural language the model is asked to respect (\"this is untrusted, be careful\"), it has crossed into instruction space and is subject to prompt injection: the very untrusted content it describes can argue for its own declassification. A...",
    "operational_effect": "When the invariant is enforced, the failure mode is bounded: a tainted instruction reaches the privileged tool still labeled tainted, the structural check refuses, and the pipeline surfaces a `TaintViolation` to the orchestrator for human review. The cost is that legitimate flows through summarizers now require explicit declassifier nodes, which adds latency..."
  },
  "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": "1540a3aaec056af856d57a740f296253eadefa7ec98d56f89f88e7cfbe5a5e96",
    "verified_classes": [
      "Taint",
      "TaintLaunderingError",
      "Handoff"
    ],
    "verified_functions": [
      "join",
      "emit_output",
      "declassify",
      "privileged_action"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
