{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-taint-provenance-across-a-multi-hop-tool-graph-when-a-laundering-agent-re-serializes-intermediate-state",
  "title": "Why does an instance lose taint provenance across a multi-hop tool graph when a laundering agent re-serializes intermediate state?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to multi-agent systems where an orchestrator delegates tool calls to sub-agents and relies on per-hop taint labels (source, sensitivity, provenance digest) to gate downstream privileged actions. Does not apply to single-agent tool loops or to systems that enforce taint solely at the final sink via content inspection rather than label propagation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-taint-provenance-across-a-multi-hop-tool-graph-when-a-laundering-agent-re-serializes-intermediate-state.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-taint-provenance-across-a-multi-hop-tool-graph-when-a-laundering-agent-re-serializes-intermediate-state.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-taint-provenance-across-a-multi-hop-tool-graph-when-a-laundering-agent-re-serializes-intermediate-state.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1964,
    "python_slice_tokens": 391,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Taint propagation is usually modeled as an additive property: a value is tainted if any ancestor was tainted, and the label rides along with the data. This holds only while the data is carried by a channel that preserves the label — a typed field, a structured envelope, a signed manifest. The failure mode documented here is **label collapse at the re-seriali...",
    "what_was_observed": "A three-hop graph: an orchestrator `O` dispatches a retrieval task to agent `A1`, which reads an untrusted external document (`source=external, sensitivity=high`) and returns a structured `RetrievedDoc` with a correct taint envelope. `O` passes the doc to `A2`, a summarizer, instructing it to \"condense and return JSON.\" `A2` reads the doc, produces a summary, and returns: `A2`'s taint envelope is not malicious — `A2`...",
    "condition_of_validity": "The invariant that must hold for label-based taint to be sound across hops is: > For every artifact `x` emitted by agent `Ai`, `taint(x) ⊇ ⋃ taint(inputs)` unless `Ai` provides a *provenance-preserving transform* — a declared, verifiable function `f` such that `taint(f(y)) = taint(y)` for all `y` — in which case `taint(x) = f(taint(inputs))`. The boundary co...",
    "decision_boundary": "The operational decision is whether to treat a generative hop as a *courier* (inherits taint) or an *originator* (resets taint). The boundary is crossed when the transform is declared non-preserving. Concretely: - If the sub-agent's output schema includes a `derived_from` field with the input digests, and the orchestrator enforces `taint_out = max(taint_in)`...",
    "operational_effect": "When this boundary is crossed, the observable effect is not a crash but a *silent authority escalation*: a low-privilege external input acquires the effective privileges of an internal agent's identity within two hops. The blast radius is the fan-out of the orchestrator, because the laundered object is merged into shared state and every sibling consumer inhe..."
  },
  "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": "2d228c1a2bb649f793ec5cfd63c4148e14c9cb6f0545a82ea46c1321c6e5f13f",
    "verified_classes": [
      "TaintProvenanceError",
      "Taint",
      "Artifact"
    ],
    "verified_functions": [
      "digest",
      "propagate",
      "sink_action",
      "join"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "TaintProvenanceError"
    ],
    "sample_fail_closed_invariants": [
      "refusing privileged action on undeclassified external taint"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
