SPOT-004: one search-scope calling convention — file, dir, and ext scopes alike in the PATH slot

Now
OPEN

Design ticket, ordered by gritzko 2026-07-19 ("think of improving the calling convention for file-scoped and dir-scoped and ext-scoped alike"). Today only the ext scope works: be spot ".js#'a = null'" searches the .js family, but a FILE scope (spot "shared/branch.js#'…'") dies with SPOTNOEXT and grep-mode's file scope is SILENTLY ignored (verified 2026-07-19: grep:shared/branch.js#null scanned the whole tree, 4684 lines starting at core/discover.js). Extend the SPOT-003 path-slot ruling into one uniform grammar: [mode:][scope]#locator, scope any of file / dir / ext / dir+ext, fragment = locator only.

Input

Context

Goals

Proposed convention (pending gritzko's ruling): the ONE arg is [mode:][scope]#locator; the scope path resolves via resolve(context,base,rel) like every verb arg, then classifies by what it names:

Constraints

WIP

Design decisions

TODOs

Blockers and bummers

Outcome