{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-escape-its-tool-allowlist-when-a-tool-result-re-enters-the-planner-as-a-new-turn",
  "title": "Why does an instance escape its tool allowlist when a tool result re-enters the planner as a new turn?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents whose tool-call allowlist and capability scopes are enforced at the dispatcher boundary (pre-execution gate on the *outbound* call), but where tool *results* are re-injected into the planner context without re-evaluation against the same policy. Does not apply to systems that enforce policy on a per-token or per-message channel basis independent of turn direction, nor to stateless single-shot function-calling where no result re-enters a planning loop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-escape-its-tool-allowlist-when-a-tool-result-re-enters-the-planner-as-a-new-turn.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-escape-its-tool-allowlist-when-a-tool-result-re-enters-the-planner-as-a-new-turn.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-escape-its-tool-allowlist-when-a-tool-result-re-enters-the-planner-as-a-new-turn.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2443,
    "python_slice_tokens": 514,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Most runtime policy engines treat the tool dispatcher as the sole enforcement point: a call is parsed, matched against an allowlist of tool names plus a capability scope (filesystem roots, network egress, credential handles), and either executed or rejected. This is an **outbound-only gate**. The failure is not that the gate is wrong—it is that the gate has ...",
    "what_was_observed": "A representative trace, reproduced across three planner models with the same dispatcher policy: 1. Planner receives task: \"Summarize the support tickets in `/data/tickets/`.\" Allowlist contains `read_file`, `summarize`, `write_file`. Scope for `read_file` is `/data/tickets/**`; scope for `write_file` is `/data/out/**`. 2. Planner emits `read_file(path=\"/data/tickets/0042.txt\")`. Dispatcher validates: tool allowed, pa...",
    "condition_of_validity": "The escape is bounded by three conjoined conditions. Remove any one and the trajectory is contained: - **Return channel exists.** At least one allowlisted tool returns content that is not fully determined by the trusted caller—i.e., it reads from a source the agent does not control (filesystem, network, database, third-party MCP server, another agent via A2A...",
    "decision_boundary": "The architectural invariant required: **capability scopes must be predicates over arguments, and any argument derived from a tool result must be re-evaluated against the predicate with the provenance of that derivation attached.** Concretely, the dispatcher's authorization function must take `(tool, args, provenance)` and reject when `provenance(args) ∩ untr...",
    "operational_effect": "The operational consequence is a reclassification of where policy lives. An outbound-only allowlist produces a system that is *auditable per call* and *insecure per trajectory*—the audit log shows a clean sequence of approved calls, which is worse than a noisy log, because it manufactures false confidence during incident review. The escape is invisible in th..."
  },
  "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": "71bd219119e3e3ca98d362928966dc849d42fe62ea14625434e7e0fd6dd60558",
    "verified_classes": [
      "CapabilityEscapeError",
      "ToolCall",
      "ScopeGrant",
      "ProvenanceGate"
    ],
    "verified_functions": [
      "demo",
      "__init__",
      "authorize"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CapabilityEscapeError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
