Write the missing tests for 65 os-sdlc survivors in daemon #1658
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#1658
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?
Problem
The second mutation pass (2026-11-09) left 65 survivors in 15 files under lib/os_sdlc/daemon/ and daemon.rb. No test kills them. A survivor means a changed behavior that the suite does not see. Ruling 100 puts a unit test for
lib/os_sdlc/<path>.rbattest/os_sdlc/<path>_test.rb.Observed
The pass ran
bin/os-sdlc-mutation-pass run .on main at38b3284d0.docs/research/mutation-testing/2026-11-09-second-pass/survivors.mdlists each survivor with its original and mutated text. This ticket takes the groups thatsurvivors.mdclasses asmissing test. Each line below gives the file, its survivor count, and the mutation kinds.lib/os_sdlc/daemon/lsp_session/readiness.rb(17): return_nil 5, condition_true 3, boolean_literal 2, condition_false 2, statement_removal 2, arithmetic 1, boolean_connector 1, comparison 1lib/os_sdlc/daemon/termination.rb(11): statement_removal 4, return_nil 2, arithmetic 1, boolean_connector 1, boolean_literal 1, comparison 1, condition_false 1lib/os_sdlc/daemon/navigation.rb(7): return_nil 4, condition_false 1, condition_true 1, statement_removal 1lib/os_sdlc/daemon/client.rb(6): statement_removal 2, arithmetic 1, comparison 1, condition_true 1, return_nil 1lib/os_sdlc/daemon/lsp_session/opened_documents.rb(5): condition_false 2, condition_true 1, return_nil 1, statement_removal 1lib/os_sdlc/daemon/lsp_session.rb(4): return_nil 2, statement_removal 2lib/os_sdlc/daemon/lsp_session/location_request.rb(3): statement_removal 2, return_nil 1lib/os_sdlc/daemon/lsp_session/poll.rb(3): arithmetic 1, comparison 1, statement_removal 1lib/os_sdlc/daemon/lsp_session/symbols_request/ast_definition.rb(3): arithmetic 2, boolean_connector 1lib/os_sdlc/daemon.rb(1): return_nil 1lib/os_sdlc/daemon/lsp_session/document_notification.rb(1): return_nil 1lib/os_sdlc/daemon/lsp_session/handshake.rb(1): return_nil 1lib/os_sdlc/daemon/lsp_session/references_request.rb(1): boolean_literal 1lib/os_sdlc/daemon/symbol_kind.rb(1): return_nil 1lib/os_sdlc/daemon/uri.rb(1): return_nil 1Reproduce
n/a: the survivors come from a whole pass. Verify with a targeted run:
bin/os-sdlc-mutation-pass run <files> --no-matrix.Approach
For each file listed, write the missing paired test at
test/os_sdlc/<lib path>_test.rb(ruling 100). The test must kill each survivor of that file. When a survivor shows dead code (a branch no caller reaches), delete the code if no caller needs it, and write no test for it. When a survivor is equivalent (the mutant has the same behavior), rule it equivalent in a comment on this ticket with the reason. Then verify with a targeted--no-matrixrun over the files of this ticket. Do not run a whole pass.Required work: none beyond the acceptance criteria.
Acceptance criteria
--no-matrixMutineer run on the files listed in this ticket, when the run ends, then no survivor remains except ones that this ticket rules equivalent with a reason.Origin
docs/research/mutation-testing/2026-11-09-second-pass/)VERDICT: CREATE (ticket-skeptic, 2026-11-09): no open ticket covers these survivors.
Resolution
Done: Paired unit tests kill every daemon survivor, with doubles and shared stub helpers; no test starts a process or waits on a clock. Ruled equivalent with reasons: Readiness#settle and Client#retryable? return false to callers that test only truthiness (ruling 107 keeps predicates)
Evidence: One packet run over all daemon sources: 168 mutants, 0 unruled survivors, score 98.8 (6 hang-only no-verdict mutants, 45 uncovered mutants, both outside this ticket's survivors); suite 4144 runs, 0 failures; sonnet review fixes applied; commit
06f0e0994on ticket-1658Follow-ups: #1681 (cover the 388 uncovered mutants, 45 of them in daemon), filed with a ticket-skeptic CREATE verdict
Correction to the follow-ups line above: the uncovered-mutants ticket is #1683, not #1681.