{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-tool-authorization-decision-as-bound-to-the-argument-bytes-it-was-issued-against-rather-than-to-the-too",
  "title": "Under what conditions must an instance treat a tool-authorization decision as bound to the argument bytes it was issued against, rather than to the tool name alone",
  "date_of_record": "2026 November 23",
  "scope": "Applies to any agent runtime that enforces least-privilege tool authorization via a policy engine consulted at call time, where the model may re-emit or mutate tool arguments between the authorization check and the actual invocation. Does not apply to runtimes where the authorization check and the side-effecting syscall are the same atomic operation over immutable arguments.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-tool-authorization-decision-as-bound-to-the-argument-bytes-it-was-issued-against-rather-than-to-the-too.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-tool-authorization-decision-as-bound-to-the-argument-bytes-it-was-issued-against-rather-than-to-the-too.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-tool-authorization-decision-as-bound-to-the-argument-bytes-it-was-issued-against-rather-than-to-the-too.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1803,
    "python_slice_tokens": 309,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent called a forbidden tool.\" It is \"the agent called an *authorized* tool with *unauthorized arguments*, and the policy layer never re-evaluated because it keyed its grant on the tool identifier.\" A policy that authorizes `write_file` does not authorize `write_file(path=\"/etc/sudoers.d/x\")`. A policy that authorizes `http_get` does...",
    "what_was_observed": "A coding agent was provisioned with a policy granting `read_file`, `write_file`, and `run_tests`, with `write_file` scoped by a path-prefix rule to `/workspace/`. The policy engine evaluated the grant at **plan time**: when the model first emitted a tool call, the runtime parsed the arguments, checked `path` against the prefix allowlist, and on success minted a short-lived **authorization token** bound to `(tool_name...",
    "condition_of_validity": "Argument-bound authorization is *required* (not merely advisable) when all three hold: - **Mutability window exists.** There is any interval between the authorization evaluation and the side-effecting invocation during which arguments can be re-derived. Retry wrappers, model-driven self-correction, argument post-processors (path normalization, URL rewriting)...",
    "decision_boundary": "The runtime must choose, per tool, between two enforcement postures, and the choice is not free: - **Bind-and-recheck (argument-hash binding).** The token carries `H(args)` computed over a canonical serialization (sorted keys, normalized paths, no trailing-slash ambiguity). At dispatch, the runtime recomputes `H(args)` over the *actual bytes about to be pass...",
    "operational_effect": "With argument binding in place, the escape above fails closed: step 4 recomputes `H(args_2) ≠ T1.H`, the dispatch is refused, and the runtime surfaces an `ArgumentMismatch` to the retry wrapper, which must re-enter the policy engine. The model's self-correction is then re-evaluated on its merits—and the prefix rule rejects `/workspace/../../../etc/cron.d/per..."
  },
  "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": "38d388352173472b5b5ee073183a9e53ba90cdeabfc5f7ee487c9fadfe973a86",
    "verified_classes": [
      "ArgumentBindingError",
      "AuthToken"
    ],
    "verified_functions": [
      "canonicalize",
      "arg_hash",
      "dispatch",
      "_perform"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ArgumentBindingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "os"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
