Cover the uncovered daemon server mutants #1692
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#1692
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 94 uncovered mutants in 9 files under lib/os_sdlc/daemon/ and lib/os_sdlc/daemon.rb. No test runs the code at these mutants. An uncovered mutant is code that the suite never executes, so a change there goes unseen. Ruling 100 puts a unit test for
lib/os_sdlc/<path>.rbattest/os_sdlc/<path>_test.rb.Observed
The second mutation pass ran
bin/os-sdlc-mutation-pass run .on 2026-11-09..mutineer/pass.jsonlists 94 mutants in this ticket underno_coverage. A no_coverage mutant is a changed behavior that no test runs. The survivor tickets #1656 to #1664 took only the survived mutants, so no ticket covers these. Each line below gives the file, its uncovered count, and the mutation kinds.lib/os_sdlc/daemon/exchange.rb(25): return_nil 9, statement_removal 9, condition_false 3, condition_true 3, comparison 1lib/os_sdlc/daemon/server.rb(22): statement_removal 13, return_nil 6, boolean_literal 1, condition_false 1, condition_true 1lib/os_sdlc/daemon/server_message.rb(12): return_nil 6, boolean_connector 1, boolean_literal 1, comparison 1, condition_false 1, condition_true 1, statement_removal 1lib/os_sdlc/daemon.rb(10): return_nil 8, statement_removal 2lib/os_sdlc/daemon/operations.rb(10): return_nil 5, statement_removal 2, comparison 1, condition_false 1, condition_true 1lib/os_sdlc/daemon/procman_spec.rb(7): return_nil 4, boolean_literal 2, statement_removal 1lib/os_sdlc/daemon/client.rb(4): return_nil 2, boolean_literal 1, statement_removal 1lib/os_sdlc/daemon/outline_node.rb(3): return_nil 3lib/os_sdlc/daemon/termination.rb(1): boolean_literal 1Reproduce
n/a: the uncovered mutants come from a whole pass. Verify with a targeted run:
bin/os-sdlc-mutation-pass run <files> --no-matrix.Approach
For each listed file, write the paired unit test at
test/os_sdlc/<lib path>_test.rb(ruling 100). The test must run the uncovered code and kill its mutants. Check the older test locations first (test/cops/,test/daemon/,test/lint/,test/system_model_*). A test there may already cover the file and only need a move or an extension. Where the code calls a process, use an adapter and a recorded fixture (ruling 88). Reusetest/support/process_recording.rband therecorded_*doubles. No test starts a real process. The daemon code is socket and Procman glue. Use the fakes intest/support/fake_procman.rb.When a mutant shows dead code (code no caller reaches), delete the code and write no test for it (ruling 107). When a mutant is equivalent (the mutant has the same behavior), rule it equivalent in a comment on this ticket with the reason. Follow
plugins/os-sdlc/references/survivor-loop.md. 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 it reports no uncovered mutant and no survivor, except ones that this ticket deletes or rules equivalent with a reason.Origin
survivorsinto tickets ← DESIGN (docs/research/mutation-testing/2026-11-09-second-pass/)VERDICT: CREATE (ticket-skeptic, 2026-11-11): child of the #1683 required split; no open ticket covers these files.
Work started on branch ticket-1692 (survivor loop, paired tests).
Resolution
Done: Survivor loop over the 9 daemon server files in one packet; 43 tests in 8 paired files under test/os_sdlc/daemon/ and test/os_sdlc/daemon_test.rb. Fakes stand in for UNIXServer.new, Signal.trap, the connections, Procman and Client; no test opens a real socket or starts a process. No code deleted. 2 equivalent rulings: 03a7e1ad20ed (Ruby ignores the return of Server#initialize), b5c29e9ab840 (serve discards the return of Server#answer, so the rescue value is never read).
Evidence: main
be60492d5(merged). Orchestrator re-ran the packet: before 0 survivors of 55, 78 uncovered (fewer than the 94 in the 2026-11-09 pass; the remainder were covered by earlier tickets); after 0 survivors of 133, 0 uncovered (5 timeouts count as detected). Suite run twice: 5024 runs, 0 failures each; rubocop clean.Follow-ups: none
Correction to the evidence: the 2026-11-09 pass listed 94 uncovered mutants in these 9 files. The packet's first run listed 78. The cause is not known; earlier tickets did not touch these files. The packet names every test under test/daemon/, so it can run more tests than the pass credited. The final packet covers all 133 mutants in the 9 files, with 0 uncovered.