Repository navigation
fix: honour workspace grep scopes in CLI and MCP - #536
ryanduguid wants to merge 3 commits into
Conversation
🌱 graft blast radius3 areas changed → 1 area can be affected. 1 dependent symbol, depth 2. flowchart TB
A0(("MCP Server<br/>1 symbol"))
classDef reached fill:#D9EDF3,stroke:#3AA7C9,stroke-width:1.5px,color:#0E313C;
class A0 reached;
Who knows this code — 2 people across 4 areas
Ownership is git history over each area's own files, weighted towards recent work (120-day half-life). Merge commits and bots are dropped, and you are dropped from your own PR. A name with no All 1 dependent symbol, grouped by areaMCP Server — 1 symbol in 1 file
Test signal per changed area — 1 ✓ · 1 ✗ · 1 –Reached = a node under a test path has a resolved edge into the changed symbol. It undercounts anything called indirectly — through a CLI, a spawned process or a dynamic import — so read a low ratio as “look here”, never as a coverage gate.
5 test suites also reference this code5 symbols, kept out of the diagram and the table so they cannot crowd out the areas a reviewer has to look at.
Open the interactive graph → — click an area to see its dependent symbols at file:line. |
Summary
Forward workspace grep's existing
--inoption through the CLI and MCP entry points, restrict federation to the selected child, and pass any nested scope to the existing graph search. Unknown scopes remain errors, and unindexed children retain the coverage warning.Integrate current upstream main while preserving both the scope normaliser and the branding helper imports.
Evidence
npm run buildpasses both TypeScript builds and the viewer bundle.Risk
Unknown workspace scopes now return a scope error instead of unrelated results. The upstream branding changes and default unscoped searches are preserved.
Unverified
The main hosted checks require maintainer approval before they can run. Linux/macOS checks have not run for the integrated head, and the broader suite is not passing in the local Windows environment.
CI workflow maintenance
Use Ubuntu 24.04 for the affected Linux jobs. Keep the existing event, permission and test-matrix contracts.
Evidence
The previous head reported 1 matching action-runtime or runner annotations. Actionlint and the Git whitespace check pass.
Risk
Action or runner upgrades can affect CI behaviour. The workflow changes can be reverted.
Unverified
Hosted CI observed at 2026-10-17T11:24:41Z for a14fabd: 1 skipped, 1 success. 1 action-runtime or Ubuntu-label annotations remain in publish. 3 workflow runs await approval or dispatch. Application tests were not run locally for these workflow changes.