{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-that-a-taint-gate-has-been-laundered-through-tool-result-re-serialization",
  "title": "What structural signals indicate that a taint gate has been laundered through tool-result re-serialization",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that enforce taint-aware tool sandboxing by tracking provenance on tool *arguments* and gating egress tools on tainted inputs. Does not cover taint tracking on model-internal activations, nor sandboxes that enforce at the OS/syscall layer independent of the agent's own argument-typing.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-taint-gate-has-been-laundered-through-tool-result-re-serialization.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-taint-gate-has-been-laundered-through-tool-result-re-serialization.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-taint-gate-has-been-laundered-through-tool-result-re-serialization.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2191,
    "python_slice_tokens": 548,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A taint-aware sandbox is usually built on one invariant: *an egress-capable tool (HTTP POST, email send, file write to a shared mount, `git push`) may not receive an argument whose provenance chain includes an untrusted source (web fetch, inbound message, retrieved document, or a dynamically loaded \"skill\").* The gate inspects the argument object at the call...",
    "what_was_observed": "A skill-invocation pipeline with three stages: `fetch_page(url) -> str[tainted:web]`, `extract_fields(html) -> dict` (a \"skill\" loaded from a registry), and `send_report(payload)` gated on taint. Trace of the failure: 1. `fetch_page` returns a string whose provenance set is `{web:https://attacker.example}`. The object is registered in the taint ledger by `id()`. 2. `extract_fields` is a trusted skill. It parses the H...",
    "condition_of_validity": "The laundering failure is *bounded* (the gate holds) only when at least one of these is true: - Every tool that returns a newly allocated object **propagates** the union of input provenance sets to its output (taint is a lattice join over data flow, not a property of the call site). This requires the tool runtime to be provenance-aware, not just the gate. - ...",
    "decision_boundary": "The boundary is between *trusting the tool* and *trusting the data*. A gate that asks \"was this argument produced by a trusted tool?\" is asking the wrong question. The correct question is \"does the provenance set of this argument, computed as a join over the data-flow graph including every intervening tool, intersect the untrusted set?\" Operationally, the de...",
    "operational_effect": "Three concrete consequences for agent design: 1. **The gate must be a data-flow check, not an object check.** Instrument the tool runtime so every returned object carries the join of its inputs' provenance unless the tool is a declared sanitizer. This is a runtime invariant, not a policy the model can be prompted to respect. 2. **Re-serialization is the cano..."
  },
  "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": "3b56fd39d9f5b717348a712f78d87416a1ea9ef951381e0ac7efa28d2df4450e",
    "verified_classes": [
      "TaintLaunderingError",
      "EgressDeniedError",
      "Tagged",
      "ToolSpec",
      "TaintLedger"
    ],
    "verified_functions": [
      "__init__",
      "register",
      "invoke",
      "fetch_page",
      "extract_fields",
      "send_report"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "EgressDeniedError",
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
