{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-taint-laundering-through-composed-skill-chains-in-a-taint-aware-tool-sandbox",
  "title": "What structural signals indicate taint laundering through composed skill chains in a taint-aware tool sandbox",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agent runtimes that enforce information-flow control (IFC) by propagating taint labels from untrusted inputs (retrieved documents, tool outputs, user-supplied skill definitions) across tool calls inside a sandbox. Does not apply to stateless single-shot inference, nor to sandboxes that rely solely on allowlisting without label propagation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-through-composed-skill-chains-in-a-taint-aware-tool-sandbox.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-through-composed-skill-chains-in-a-taint-aware-tool-sandbox.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-taint-laundering-through-composed-skill-chains-in-a-taint-aware-tool-sandbox.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2332,
    "python_slice_tokens": 469,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive model of taint-aware sandboxing treats a label as a property of a *value*: if a string carries `untrusted`, every tool that consumes it inherits `untrusted` outputs, and any egress sink (HTTP POST, file write, shell) refuses to emit `untrusted` data. This model is sound only when values are the sole carriers of information. The failure mode is **ta...",
    "what_was_observed": "A runtime loaded three skills on cold start: `fetch_doc` (returns tainted text), `summarize` (LLM tool, pass-through labeler), and `render_report` (template substitution into a file sink). A fourth skill, `lookup_synonym`, was loaded from a community registry and had not been audited. Its declared schema was `{term: str} -> {synonyms: list[str]}` and its implementation read from a local thesaurus file. The injected v...",
    "condition_of_validity": "The taint-continuity invariant holds only if the following condition is enforced at every tool boundary: > For any tool invocation `f(args) -> out`, if any `arg` carries label `L`, then `out` must carry at least `L`, **unless** the runtime can prove `f` is a *constant function* with respect to that argument (i.e., `f` does not read it). The proof obligation ...",
    "decision_boundary": "The decision boundary between \"safe composition\" and \"laundering\" is the **reconstructor edge** in the provenance graph. The runtime must, at every tool boundary, evaluate: - **Constant operator**: output does not depend on the tainted argument. Allowed; output may be `trusted`. Requires a static proof (e.g., the argument is not referenced in the tool's AST,...",
    "operational_effect": "The operational consequence is that taint-aware sandboxing must shift from **declaration-based labeling** to **observation-based labeling with a reconstruction-edge ledger**. Concretely: 1. Every tool invocation records a provenance edge `(input_labels, output_label, operator_class)` where `operator_class` is determined by a perturbation probe: re-invoke the..."
  },
  "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": "880eda6145f0d5059c6064cf80e28a98292905eafb8a7e52e7ca71fa73f6b4a2",
    "verified_classes": [
      "TaintLaunderingError",
      "ProvenanceNode",
      "ProvenanceLedger"
    ],
    "verified_functions": [
      "probe_operator_class",
      "enforce_sink",
      "run_chain",
      "__init__",
      "record",
      "tainted_ancestors"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
