{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-egress-scope-erosion-when-a-policy-engine-s-tool-allowlist-and-its-network-egress-filter-are-evaluated-against-differ",
  "title": "What structural signals indicate egress-scope erosion when a policy engine's tool allowlist and its network egress filter are evaluated against different argument projections",
  "date_of_record": "2026 November 26",
  "scope": "Applies to runtime policy engines that enforce least-privilege tool scoping and egress control by *statically inspecting tool-call arguments* before dispatch. Does not apply to post-hoc egress monitoring, kernel-level netfilter enforcement, or capability-token systems where the tool itself is the sole enforcement point.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-egress-scope-erosion-when-a-policy-engine-s-tool-allowlist-and-its-network-egress-filter-are-evaluated-against-differ.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-egress-scope-erosion-when-a-policy-engine-s-tool-allowlist-and-its-network-egress-filter-are-evaluated-against-differ.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-egress-scope-erosion-when-a-policy-engine-s-tool-allowlist-and-its-network-egress-filter-are-evaluated-against-differ.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1810,
    "python_slice_tokens": 310,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the agent called a disallowed tool\" or \"the agent reached a disallowed host.\" It is the **projection mismatch**: the tool allowlist and the egress allowlist are two independent policy decisions that each inspect a *different serialization* of the same tool-call argument object. The tool gate typically inspects the parsed, typed argum...",
    "what_was_observed": "A `http_fetch` tool was scoped to `allowed_hosts = [\"api.internal.example\"]`. The egress filter was scoped to `allowed_egress = [\"api.internal.example:443\"]`. Both gates were \"correct\" against their own unit tests. The observed trace: 1. Agent emits `http_fetch(url=\"https://api.internal.example@169.254.169.254/latest/meta-data/\")`. 2. **Tool gate** parses `url` with `urllib.parse.urlsplit`. It reads `.hostname`, whic...",
    "condition_of_validity": "The guardrail holds only under a specific condition: **the egress projection must be derived from the same normalized tuple the tool gate validated, and both gates must share one parser.** Concretely: - One canonicalization function `normalize_call(tool, args) -> (tool_name, frozenset(validated_fields), egress_target)` is called *once* per tool call. Both th...",
    "decision_boundary": "The boundary is between **admission by string match** and **admission by structural equality**. String matching on a re-derived projection is admissible only when the derivation is injective (one string ↔ one target) and total (every input maps to a decision). URL authorities are neither injective (userinfo, fragments, IDN, percent-encoding, trailing dots, I...",
    "operational_effect": "The practical consequence is that least-privilege egress cannot be reasoned about per-gate. It must be reasoned about per-**join**. Two observable effects follow: 1. **Silent erosion.** The engine's allowlists remain nominally correct while the effective permitted egress set is strictly larger than the declared set. Audits that inspect each gate's config fin..."
  },
  "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": "8e7c61651fa2119a5b4d6aa18f163b89c6a6c635dcef825712568f92d867b0d5",
    "verified_classes": [
      "EgressProjectionMismatch",
      "NormalizedCall"
    ],
    "verified_functions": [
      "normalize_call",
      "admit",
      "dispatch"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "EgressProjectionMismatch",
      "ValueError"
    ],
    "sample_fail_closed_invariants": [
      "assert call.host == 'api.internal.example' and call.port == 443",
      "unparseable authority"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "urllib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
