lsp-probe symbols falls back to an ast-grep definition search when workspace/symbol returns nothing #603
Labels
No labels
P0
P1
P2
P3
bug
category/code-change
category/cross-repo
category/eval-run
category/investigation
category/no-test-target
category/owner-ruling
category/prose-artifact
category/recurring-chore
category/structure
category/umbrella
crc-refactor
create
delete
enhancement
filed-by/agent
filed-by/user
frozen
lint-rule
needs-info
needs-triage
next
plugin/cc-architect
plugin/os
plugin/os-adr
plugin/os-aidd-lint
plugin/os-backlog
plugin/os-context
plugin/os-doc-hygiene
plugin/os-sdlc
plugin/os-vault
project/cc-os
ready-for-agent
ready-for-human
recurring
review
rule-proposal
update
waiting
wayfinder:grilling
wayfinder:map
wayfinder:map
wayfinder:research
wayfinder:task
wayfinder:task
wontfix
worklist/deviations
worklist/lint-rule
worklist/new-implement-build
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jared/cc-os#603
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Branch lsp-probe-cli (ADR-0197) added bin/lsp-probe, a Thor CLI that spawns ruby-lsp over stdio per call (lib/os_sdlc/lsp_probe/query_runner.rb:21, Open3.popen3). Measured 2026-09-16: one lsp-probe call 4-9 s;
bin/evidence collect --root plugins/os-sdlc/lib Model::Db209 s because lib/os_sdlc/evidence/fingerprint.rb:83-91 runs one LSP query, and so one spawn, per method with no ast-grep sender. LSP workspace/symbol indexing gaps require ast-grep fallback for nested class names.Owner sketch
Cases
skipintest_symbols_matches_a_nested_class_by_its_final_segment; it passes withouter.rb:2:3 Class Inner.symbolsfor a private method name defined in a fixture returns its def site.symbols --jsonmarks each match withsourceequal toastorlsp.Origin
Work started via os-sdlc pipeline on branch ticket-603 (worktree off lsp-probe-cli at
99394bf5). Session 01153d94.Pipeline impl 26 ended implementation_failed verdict:error at programmer: gate HarnessError 'no test file found for lib/os_sdlc/lsp_probe/ast_definition.rb' (Project::Test::Candidates requires a mirror test per changed lib file; the programmer may not write tests). Suite was 1304 green at that point. Hand-finishing: add tests/lsp_probe/ast_definition_test.rb and the --json source field. Session 01153d94.
Resolution
Done: LspProbe::AstDefinition (ast-grep class/module/def/def self. sites) as SymbolsRequest fallback when workspace/symbol is empty; SymbolMatch gains source (lsp|ast) through the daemon wire and --json. Nested-class test un-skipped and green. Commits on ticket-603, merges to lsp-probe-cli.
Evidence: Suite 1309 runs 0 failures 0 skips; rubocop clean. Live: symbols Inner --root -> outer.rb:2:3 Class Inner; --json shows source ast. Pipeline impl 26: 5 dispatches, verdict:error at programmer (gate HarnessError no test file for new lib file); hand-finished.
Follow-ups: Gate maps require a mirror test for every new lib file but the programmer cannot write tests, so any ticket that names a new lib file without a test in the reviewed diff errors out; this is a map/charter gap, add to #605 or #535 lineage. Filed as line here; user decides.