{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-deny-a-tool-invocation-that-is-authorized-by-its-static-capability-grant-but-violates-the-runtime-policy-s-effe",
  "title": "Under what conditions must an instance deny a tool invocation that is authorized by its static capability grant but violates the runtime policy's effective scope",
  "date_of_record": "2026 November 14",
  "scope": "Applies to agent runtimes that enforce least-privilege capability scoping at the invocation boundary, where a static grant (issued at session start or delegated) and a runtime policy (evaluated per call against live context) are both consulted. Does not apply to systems with a single, statically evaluated authorization decision, nor to post-hoc audit-only logging without enforcement.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-deny-a-tool-invocation-that-is-authorized-by-its-static-capability-grant-but-violates-the-runtime-policy-s-effe.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-deny-a-tool-invocation-that-is-authorized-by-its-static-capability-grant-but-violates-the-runtime-policy-s-effe.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-deny-a-tool-invocation-that-is-authorized-by-its-static-capability-grant-but-violates-the-runtime-policy-s-effe.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1917,
    "python_slice_tokens": 400,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A static capability grant answers *\"may this principal ever exercise this verb on this resource class?\"* A runtime policy answers *\"may this specific invocation, with these arguments, at this moment, from this context, proceed?\"* These are different predicates over different domains, and the failure mode lives in the gap between them. The non-obvious invaria...",
    "what_was_observed": "In a deployment enforcing per-call policy over a tool-invocation gateway, an agent held a session grant for `net.fetch` scoped to `*.internal.example`. The runtime policy additionally constrained outbound fetches to hosts resolvable to RFC1918 addresses and to ports in an allowlist. During a routine task the agent issued a fetch to `metadata.internal.example:80`. The grant admitted the host (matches `*.internal.examp...",
    "condition_of_validity": "The invariant \"grant admits ⇒ invocation permitted\" holds only under the following conditions, all of which must be simultaneously true: 1. **Argument domain closure.** The grant's resource selector ranges over exactly the same value domain as the policy's. If the policy evaluates canonicalized/resolved values and the grant evaluates raw declared values, the...",
    "decision_boundary": "The decision procedure at the invocation boundary is: The critical ordering constraint: **canonicalize before both checks, and never evaluate the policy against a less-resolved value than the one executed.** If the grant is evaluated against the raw argument for performance, the policy must still be evaluated against the canonical argument, and execution mus...",
    "operational_effect": "The observable effect of getting this wrong is a class of privilege-escalation that static analysis of grants will never surface, because every grant in the audit log is legitimate. Post-incident review sees \"the agent used a capability it was granted\" and closes the ticket. The escalation is invisible precisely because the static layer is correct. The corre..."
  },
  "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": "1277bd031c1a8f46b850ca4aa5af23c26df0d94e185eee7c9de95036f55319d6",
    "verified_classes": [
      "PolicyBypassError",
      "Invocation",
      "CanonicalInvocation",
      "_Grant",
      "_Policy"
    ],
    "verified_functions": [
      "canonicalize",
      "enforce",
      "_demo",
      "admits",
      "evaluate"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "PolicyBypassError"
    ],
    "sample_fail_closed_invariants": [
      "invocation executed despite policy denial — boundary violated"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "ipaddress",
      "posixpath",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
