evidence run shares one ruby-lsp session instead of one spawn per gapped method #599
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#599
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.Owner sketch
Cases
referencescalls on one SharedRunner spawn ruby-lsp exactly once (spawner double counts opens).Fingerprint#sender_rowson a class with two gapped methods constructs one SharedRunner and callscloseonce after the map.closeon a SharedRunner that never opened a session is a no-op.tests/lsp_probe_bin_test.rband evidence tests stay green.Origin
Work started via os-sdlc pipeline on branch ticket-599 (worktree off lsp-probe-cli). Session 01153d94.
Resolution
Done: Evidence::Fingerprint defaults to LspProbe::SharedRunner over a new LspProbe::OpenSession that spawns ruby-lsp once per run; close after sender_rows. Commit
cab8b5eaon branch ticket-599 (merges to lsp-probe-cli). ADR-0198.Evidence: Pipeline impl 23: 11 dispatches, all cases pass, suite 1269 green, rubocop clean. Measured: evidence collect --root plugins/os-sdlc/lib Model::Db 209 s -> 10.5 s. Hand-finish note: pipeline shipped SharedRunner with a doubled spawner only; the ticket cases were satisfiable by doubles, so behavior-verifier passed without a production spawner. OpenSession + Fingerprint default added by hand.
Follow-ups: One SharedRunner per Fingerprint means a multi-unit evidence run still spawns once per unit; covered by #600 (per-worktree daemon), no new ticket. Case-wording lesson: at least one case per ticket must be un-doublable (a real measurement or an end-to-end CLI run); noted here, not ticketed.