Printable idea sheet
implied_context
reqlan rq/bases/base.rq:142
Katz 0.075
The **active base** for editor-adjacent surfaces is the longest-matching base root that
contains the focused file path. When no file is focused, the last selected base ( Ideas Summary
switcher / activity bar ) or the first discovered base is used.
Context, local graph, and analysers bind to the active base's index — not a merged global graph.
User / explicit pin is a pointer swap only — active_base_switch.
Core selection: base-discovery.ts ( `baseForPath` / `selectDefaultBase` ); editor pin / switch: index-service.ts.
- implementation
- base-discovery.ts, index-service.ts
- tests
- base-discovery.test.ts:baseForPath picks longest matching root, base-discovery.test.ts:selectDefaultBase prefers cwd containment
Interactive page: implied_context