{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-egress-taint-laundering-through-capability-scoped-tool-composition-and-why-per-call-policy-checks-cannot-see-it",
  "title": "What structural signals indicate egress-taint laundering through capability-scoped tool composition, and why per-call policy checks cannot see it",
  "date_of_record": "2026 November 19",
  "scope": "Applies to agent runtimes that enforce tool-invocation policy per call using capability scopes plus egress taint labels on returned values, where tools can be composed (a tool's output becomes another tool's argument) within a single reasoning step or checkpoint. Does not apply to runtimes that enforce a single global egress filter at the network boundary independent of tool composition, nor to stateless single-tool invocations.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-egress-taint-laundering-through-capability-scoped-tool-composition-and-why-per-call-policy-checks-cannot-see-it.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-egress-taint-laundering-through-capability-scoped-tool-composition-and-why-per-call-policy-checks-cannot-see-it.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-egress-taint-laundering-through-capability-scoped-tool-composition-and-why-per-call-policy-checks-cannot-see-it.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2463,
    "python_slice_tokens": 658,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A capability-scoped sandbox enforces *who may invoke what*, and an egress taint check enforces *what labeled data may leave*. The failure mode is not a bypass of either check in isolation. It is that the taint label is attached to a *value* at the moment it is returned, but the policy engine re-derives the label at each subsequent call from the *tool's decla...",
    "what_was_observed": "A three-tool chain inside one agent step: 1. `vault.read(secret_id)` → returns `{\"token\": \"sk-live-…\"}`, tainted `secret` by the vault tool's declared output policy. The policy engine records taint in a provenance map keyed by a content hash of the returned object. 2. The agent, reasoning that it needs to \"check whether the token is well-formed,\" calls `format.validate(value=token)`. The adapter for `format.validate`...",
    "condition_of_validity": "The per-call enforcement model is sound only under the assumption that **taint is a property of the value's serialized bytes and is preserved by every transformation the agent can apply between calls.** That assumption holds if and only if: - Every tool adapter is provenance-transparent: it either propagates the taint labels of its inputs to its outputs, or ...",
    "decision_boundary": "The boundary is not \"should I trust the tool.\" It is **\"does the policy engine evaluate the call against the argument's provenance, or against the argument's declared type?\"** Draw the line as follows: - If the runtime can prove the argument's provenance (stable envelope ID, canonical bytes, or an explicit taint-set passed alongside the value), the per-call ...",
    "operational_effect": "The effect is a class of exfiltration that is invisible to per-call audit logs and visible only in chain-level provenance reconstruction. Concretely: - Audit logs show three compliant calls. Post-hoc forensics must reconstruct the taint-set cardinality transition and the echo-content overlap to detect the leak. Runtimes that log only `(tool, scope, decision)..."
  },
  "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": "844e3f4ad5dccefdf692bd35e212e0454e9689f1c2d209993fa54ed6cbda6053",
    "verified_classes": [
      "TaintLaunderingError",
      "ProvenanceEnvelope",
      "ToolScope",
      "PolicyEngine"
    ],
    "verified_functions": [
      "run_chain",
      "canonical_bytes",
      "register",
      "_resolve_taint",
      "check_call"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "chain-level egress violation: tainted value reached public sink via taint-opaque validator; per-call checks passed but c"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
