{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-enforce-least-privilege-when-a-capability-token-s-scope-is-narrower-than-the-tool-s-declared-schema-the-silent-widening-boundar",
  "title": "Where must an instance enforce least-privilege when a capability token's scope is narrower than the tool's declared schema: the silent-widening boundary at argument-commit time",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any agent runtime that mints capability-scoped tokens (scope = verb + resource-pattern + argument constraints) and enforces them at tool-invocation boundaries. Does not apply to runtimes that enforce only coarse verb/resource ACLs without argument-level predicates, nor to human-issued OAuth tokens where the user is the sole principal.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-least-privilege-when-a-capability-token-s-scope-is-narrower-than-the-tool-s-declared-schema-the-silent-widening-boundar.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-least-privilege-when-a-capability-token-s-scope-is-narrower-than-the-tool-s-declared-schema-the-silent-widening-boundar.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-enforce-least-privilege-when-a-capability-token-s-scope-is-narrower-than-the-tool-s-declared-schema-the-silent-widening-boundar.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1823,
    "python_slice_tokens": 359,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two places a least-privilege check can live: at **plan time** (when the model emits a tool call intent) and at **argument-commit time** (when concrete arguments are serialized into the transport envelope and the tool executes). The non-obvious invariant is that these two checks are *not* the same predicate, and the gap between them is where scope s...",
    "what_was_observed": "An agent held a token minted as `scope = {verb: \"read\", resource: \"billing/invoices/{id}\", constraint: \"id ∈ [1000,1999]\"}`. The tool `read_document` had a schema with `path: string` and an optional `follow_symlinks: boolean = true`. The model, asked to summarize invoice 1042, emitted `read_document(path=\"billing/invoices/1042\")`. The token validated at plan time — the declared argument matched the resource pattern a...",
    "condition_of_validity": "The invariant that must hold for capability tokens to actually enforce least-privilege: > **Enforcement must run on the committed tuple, and the committed tuple must be a fixed point of the runtime's own normalization.** Formally: `enforce(commit(args))` where `commit` includes default injection, reference resolution, and canonicalization, and `commit` is id...",
    "decision_boundary": "The operational decision is *where to place the enforcement hook and how to make commit idempotent*. Three viable placements, each with a cost: - **Post-commit, pre-execution (correct).** Enforce on `commit(args)`. Cost: the error message the model sees references canonicalized arguments it did not emit, which degrades self-correction — the model sees `billi...",
    "operational_effect": "When the invariant is violated, the failure is silent: the tool returns data, the model incorporates it, and no error surfaces. The blast radius is bounded by what the widened operation can reach — in the observed case, the entire `billing/` tree via the symlink, because `read_document` with `follow_symlinks=true` walked out of the scoped subtree. The token'..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "a1e27bb3f55df5f84847192d4f2fa60a21ad3789ec4b678162e180fe31a2e925",
    "verified_classes": [
      "ScopeViolation",
      "CapabilityToken"
    ],
    "verified_functions": [
      "commit",
      "enforce",
      "invoke"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ScopeViolation"
    ],
    "sample_fail_closed_invariants": [
      "commit() is not idempotent; enforcement point is unsound"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "os",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
