{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-tool-s-egress-allowlist-decision-as-valid-only-for-the-exact-resolved-invocation-tuple-and-reject-reuse",
  "title": "Under what conditions must an instance treat a tool's egress allowlist decision as valid only for the exact resolved invocation tuple, and reject reuse across argument-equal-but-identity-distinct calls",
  "date_of_record": "2026 November 29",
  "scope": "Applies to autonomous agents whose runtime policy layer gates outbound network egress (HTTP, DNS, socket, webhook, file-upload) by matching a per-invocation allowlist decision before tool dispatch. Does not cover ingress filtering, static build-time network policy, or human-approved one-shot escalations where the approver identity is bound into the decision record.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-tool-s-egress-allowlist-decision-as-valid-only-for-the-exact-resolved-invocation-tuple-and-reject-reuse.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-tool-s-egress-allowlist-decision-as-valid-only-for-the-exact-resolved-invocation-tuple-and-reject-reuse.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-tool-s-egress-allowlist-decision-as-valid-only-for-the-exact-resolved-invocation-tuple-and-reject-reuse.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2343,
    "python_slice_tokens": 537,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "An egress allowlist decision is not a property of the *arguments* a tool is called with. It is a property of the *resolved invocation tuple*: `(agent_instance_id, tool_id, canonicalized_args, resolved_egress_target, policy_version, decision_epoch)`. The failure mode this record addresses is **decision reuse across identity-distinct invocations** — a runtime ...",
    "what_was_observed": "A class of agents that batch tool calls (a \"fan-out\" executor) deduplicates invocations by hashing `(tool_name, json.dumps(args, sort_keys=True))` to save tokens and latency. The runtime policy layer, sitting below the fan-out deduplicator, evaluated the allowlist on the first occurrence and cached the verdict in a per-run decision table keyed on the same hash. On the second occurrence, the deduplicator short-circuit...",
    "condition_of_validity": "An egress allowlist decision `D` is valid for invocation `I` only if all of the following hold at dispatch time: - `D.target == resolve(I.args, I.env, I.epoch)` — the target the policy evaluated equals the target the transport will actually connect to. - `D.epoch == I.epoch` — no re-resolution, TTL expiry, or service-discovery refresh has occurred between de...",
    "decision_boundary": "The runtime must choose between two designs, and the choice is not free: - **Target-addressed decisions (correct).** Key the decision on the resolved target plus epoch, re-resolve on every dispatch, and treat a decision as a *lease* with a TTL no greater than the resolver's min TTL. Cost: one resolver call per dispatch, which for high-fan-out agents can domi...",
    "operational_effect": "The observable consequence of getting this wrong is a *silent* egress to an unlisted target: the policy engine logs `ALLOW`, the tool returns a plausible response, and the agent proceeds. There is no error, no denial, no anomaly signal — the allowlist did its job on the invocation it actually evaluated. The failure is only visible in the resolver log (a re-p..."
  },
  "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": "f3d344245be067e1dd6dd49084f815b9d9fcde6cb1c93a008869e58ceadc71c7",
    "verified_classes": [
      "EgressDecisionInvalid",
      "Invocation",
      "Decision",
      "EgressPolicy"
    ],
    "verified_functions": [
      "dispatch",
      "resume_from_checkpoint",
      "__init__",
      "revoke",
      "evaluate",
      "_target_allowed"
    ],
    "verified_functions_count": 6,
    "defensive_guards_count": 8,
    "raised_exceptions": [
      "EgressDecisionInvalid"
    ],
    "sample_fail_closed_invariants": [
      "refusing to restore serialized egress decision table across process boundary; re-mint decisions under current policy epo",
      "decision inherited across instance identity; checkpoint-restored tables must be discarded, not reused",
      "decision lease expired relative to resolver min TTL"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
