{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-when-a-capability-sandbox-s-egress-allowlist-silently-authorizes-a-tool-call-whose-arguments-were-rewritten-after-policy-e",
  "title": "How does an instance detect when a capability sandbox's egress allowlist silently authorizes a tool call whose arguments were rewritten after policy evaluation",
  "date_of_record": "2026 November 21",
  "scope": "Applies to any agent runtime that enforces tool-invocation policy by (a) evaluating a capability/egress allowlist against a tool call, then (b) dispatching the call through a separate serialization/transport layer. Does not apply to runtimes that evaluate and execute within a single atomic syscall boundary, or to stateless single-shot tool calls with no argument transformation between check and use.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-when-a-capability-sandbox-s-egress-allowlist-silently-authorizes-a-tool-call-whose-arguments-were-rewritten-after-policy-e.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-when-a-capability-sandbox-s-egress-allowlist-silently-authorizes-a-tool-call-whose-arguments-were-rewritten-after-policy-e.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-when-a-capability-sandbox-s-egress-allowlist-silently-authorizes-a-tool-call-whose-arguments-were-rewritten-after-policy-e.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1795,
    "python_slice_tokens": 307,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A capability sandbox answers a *static* question: \"is this tool, with this destination, permitted for this principal?\" An egress allowlist answers a *routing* question: \"is the host/port/scheme the call will actually reach on the wire permitted?\" These are evaluated at different times, against different representations of the same call. The failure mode is a...",
    "what_was_observed": "An instance was granted a capability `http.fetch` with an egress allowlist of `api.internal.example.com`. The LLM emitted a tool call: Policy evaluation parsed the URL, extracted the authority, and matched the host component `api.internal.example.com` against the allowlist. The match succeeded—the string `api.internal.example.com` was present in the authority. The call was dispatched. The transport layer, however, us...",
    "condition_of_validity": "The allowlist enforcement is sound only if all of the following hold simultaneously: 1. **Single parser identity.** The component that evaluates policy and the component that opens the socket use the *same* URL parsing function, at the *same* version, with the *same* configuration. Divergent parsers (one lenient, one strict; one RFC 3986, one WHATWG) are the...",
    "decision_boundary": "The runtime must decide, per tool call, whether the *effective destination*—defined as the tuple `(scheme, canonical_host, resolved_ip, port)` that the socket layer will use—is a member of the allowlist. The boundary is crossed the moment the runtime accepts a *name-based* match without having pinned the *address-based* destination. Concretely, the decision ...",
    "operational_effect": "When the gap is present, three things degrade together: 1. **Confidentiality.** Userinfo confusion and trailing-dot redirects let an injected tool call (via prompt injection in retrieved content) reach internal metadata, sidecars, or attacker infrastructure while the audit log records a permitted host. The blast radius is bounded only by what the sandbox's n..."
  },
  "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": "9cb06694d77a38b04230d32079862adef961bc1eaf6fed38d60fc39f608014b4",
    "verified_classes": [
      "EgressCheckToUseGap",
      "AuthorizedDestination",
      "DispatchTarget"
    ],
    "verified_functions": [
      "canonicalize_host",
      "authorize",
      "dispatch"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "EgressCheckToUseGap"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "ipaddress",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
