{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-taint-laundering-bypass-in-tool-permission-gates-under-least-privilege-agent-capability-models",
  "title": "What structural signals indicate a taint-laundering bypass in tool permission gates under least-privilege agent capability models",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that derive tool-call arguments from retrieved or externally sourced content under a taint-tracking permission gate (untrusted-read → restricted-write). Does not cover static prompt-injection filtering, output sanitization, or human-in-the-loop review gates, which operate on different trust boundaries.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-taint-laundering-bypass-in-tool-permission-gates-under-least-privilege-agent-capability-models.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-taint-laundering-bypass-in-tool-permission-gates-under-least-privilege-agent-capability-models.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-taint-laundering-bypass-in-tool-permission-gates-under-least-privilege-agent-capability-models.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1854,
    "python_slice_tokens": 414,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A taint-aware permission gate is not an injection detector. It is a *provenance lattice enforcement* mechanism: every token in a tool-call argument carries a label (`trusted:operator`, `trusted:system`, `untrusted:retrieved`), and the gate blocks a write-capable tool invocation when any argument byte is dominated by an `untrusted` label. The failure mode thi...",
    "what_was_observed": "A retrieval-augmented agent was granted a least-privilege capability set: `web_fetch` (read, untrusted), `summarize` (transform, taint-preserving by design), `http_post` (write, blocked on untrusted args), and `slack_notify` (write, blocked on untrusted args). The taint engine labeled `web_fetch` output `untrusted:retrieved` and propagated that label through `summarize` because the summarize tool's schema declared `t...",
    "condition_of_validity": "The invariant \"taint is preserved across all transforms\" holds only when every transform tool in the reachable capability graph declares `taint_policy: preserve`. The moment a single tool declares `drop` or `reset`, the invariant degrades from \"no untrusted byte reaches a sink\" to \"no untrusted byte reaches a sink *that has not first passed through a launder...",
    "decision_boundary": "The gate must decide, at capability-registration time and not at call time, whether a transform tool is *taint-transparent*. The decision boundary is: - **Admit as taint-transparent** only tools whose output is a *function of the input's taint label*, i.e., tools that cannot emit bytes not present in (or deterministically derived from) their input, *and* who...",
    "operational_effect": "When the boundary is enforced at registration, the exfiltration path `web_fetch → extract_entities → http_post` is rejected before the agent ever runs: `extract_entities` cannot be registered with `drop` while reachable to `http_post`, or it registers with `untrusted:derived` propagation and the `http_post` gate blocks the call at runtime. The observable eff..."
  },
  "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": "21edabb5157c7043a5093ea23b3a6b84f474edbffe53dbf8fa3f86c30b5adf50",
    "verified_classes": [
      "TaintPolicy",
      "CapabilityKind",
      "TaintLaunderingBypass",
      "Capability",
      "CapabilityGraph"
    ],
    "verified_functions": [
      "build_observed_graph",
      "register",
      "_reachable",
      "_is_laundering_node",
      "_assert_no_laundering_path"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "TaintLaunderingBypass"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
