Make the survivor-loop brief's test command load every test file #1679
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#1679
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 survivor-loop brief gives the haiku agent a test command that runs only the first test file. The agent then reports a green run when the other test files can fail.
Observed
os-sdlc-mutation-pass brieffillsTEST_COMMANDinlib/os_sdlc/mutation_test/pass/packet/brief.rb:26with this command:Ruby loads the first file as the script. Ruby passes the other paths to that script as
ARGV, and Minitest does not load them. The #1656 page and entry haiku agent found this on 2026-11-10 and ran each file by hand.Reproduce
Approach
Pass::Packet::BrieffillsTEST_COMMANDwith a command that loads each named test file, for examplebundle exec ruby -Itest -e 'ARGV.each { |path| require File.expand_path(path) }' <tests>.Required work: none beyond the acceptance criteria.
Acceptance criteria
briefwith two--testpaths, when the brief is printed, then its test command loads both test files.Owner sketch
Origin
ruby a b cruns onlya(Ruby CLI) ←Briefbuildsbundle exec ruby -Itest #{tests}← DESIGN (docs/takedown/1668-20261110-104618/final-design.json)plugins/os-sdlc/lib/os_sdlc/mutation_test/pass/packet/brief.rbVERDICT: CREATE (ticket-skeptic, 2026-11-10): no open ticket covers the brief test command.
Work started on branch ticket-1679 through the os-sdlc pipeline (poodr-ticket-implementation).
Resolution
Done: Pass::Packet::Brief fills TEST_COMMAND with 'bundle exec ruby -Itest -e '''ARGV.each { |path| require File.expand_path(path) }''' ', so every named test file loads. Tests cover AC 1 (both files required, in order) and AC 2 (a failure only in the second file is reported).
Evidence: main
e239c0e81(merged); suite 4898 runs 0 failures; rubocop clean; design audit no must-fix; manual run on two scratch files: 2 runs, 1 failure. Implementation 278 hand-finished after escalation 127 (test helper used Runnable.run, absent in Minitest 6.0.6; now run_suite).Follow-ups: none