{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-tool-allowlist-membership-as-orthogonal-to-data-flow-taint-clearance-and-gate-egress-on-both",
  "title": "In what scenarios must an instance treat tool-allowlist membership as orthogonal to data-flow taint clearance, and gate egress on both?",
  "date_of_record": "2026 November 23",
  "scope": "Applies to any agent runtime that enforces egress policy via (a) a static/dynamic tool allowlist and (b) a taint-tracking data-flow gate over the arguments and return values of those tools. Does not cover pure prompt-level refusals or model-side alignment; this is about the deterministic policy layer wrapping tool invocation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-tool-allowlist-membership-as-orthogonal-to-data-flow-taint-clearance-and-gate-egress-on-both.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-tool-allowlist-membership-as-orthogonal-to-data-flow-taint-clearance-and-gate-egress-on-both.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-tool-allowlist-membership-as-orthogonal-to-data-flow-taint-clearance-and-gate-egress-on-both.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1590,
    "python_slice_tokens": 330,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is a category error between two policy dimensions that most runtimes conflate: **capability** (is this tool permitted for this agent/role?) and **provenance** (is the specific data flowing into this tool's arguments cleared to leave the trust boundary?). A tool-allowlist answers \"may this agent call `http_post`?\" A taint gate answers \"may *t...",
    "what_was_observed": "A support-triage agent was provisioned with a tool allowlist containing `fetch_url`, `search_docs`, and `post_webhook`. The taint tracker marked all content returned from `fetch_url` and from user-supplied ticket bodies as `TAINT_UNTRUSTED`. The egress gate was implemented as an allowlist check alone — a common simplification, because the operator reasoned \"the agent can only call these three tools, so the blast radi...",
    "condition_of_validity": "The two-dimension gate is required — and the single-boolean gate is unsafe — precisely when **all** of the following hold: - At least one allowlisted tool has an egress sink (network write, webhook, file write outside sandbox, message send, DNS lookup with data in the query). - At least one tool return value or user input is tainted (i.e., the runtime does t...",
    "decision_boundary": "The boundary is not \"is this tool allowed?\" nor \"is this data tainted?\" but the **conjunction evaluated at the egress call site, with destination extraction from the tainted arguments**. Concretely, the gate must: 1. Resolve the tool against the allowlist (capability). 2. Compute the taint join over all arguments, including data embedded in URL strings, quer...",
    "operational_effect": "When the gate is wired correctly, the observed attack fails at step 3 with a `TaintEgressDenied` event, the agent receives a tool error rather than a success, and the injected instruction cannot complete its exfiltration. The cost is that legitimate agent flows which forward tainted-but-authorized data (e.g., posting a user's own ticket to a user-configured ..."
  },
  "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": "a5dea2f99112942f27dee3d500255f1e4d87698e785a615cf41d036d2c014a6c",
    "verified_classes": [
      "TaintEgressDenied",
      "TaintTracker",
      "EgressPolicy"
    ],
    "verified_functions": [
      "run_egress",
      "__init__",
      "taint",
      "is_tainted",
      "gate"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TaintEgressDenied"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing",
      "urllib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
