Guard-map test-reviewer always settles error for missing red_tests #1416
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#1416
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
On the
poodr-guard-implementationmap, the test-reviewer always settleserror. The map makes the new tests green by design, and the mutation check is the red proof. But the test-reviewer brief carries nored_testsand no mutation result. The agent rule says an emptyred_testsmeanserrorwithMISSING: red_tests. So every guard-map run fails at test-reviewer, and the orchestrator must hand-finish it.Observed
Ticket #1406, implementation 181, rerouted to
poodr-guard-implementationat seam-designer. Test-writer dispatch 1575 passed with green tests and a mutation patch. Mutation check dispatch 1577 passed: the patchif completed_at->if completed_at && falseturned a new test red. Test-reviewer dispatch 1579 (handoff 1609) settled:The run ended
implementation_failed, reasonverdict:error.Reproduce
n/a: needs a live guard-map run; the evidence is implementation 181 of #1406 (dispatches 1570-1579).
Design
From takedown run docs/takedown/1416-20261027-123627, design revise-2 (the run failed at green-suite on an unrelated test, see #1425; a re-run failed at critique-1 on a pipeline defect).
Approach
Two gaps cause the error. The guard map's test-reviewer enrich omits
red_tests, so the brief has no such key. On a red runMutationCheck#verdictreturnslines: [], so the mutation step output is empty andFacts#red_testscould not parse anything even if it were enriched.MutationCheckpasses the captured mutated-run output toverdict. On:redit returnsSuiteOutput.parse(output).linesas the gate lines, so the failing-test lines reach the step output and stderr. The guard map test-reviewer then enrichesred_tests. There is no new fact and no second parser.A pin test over every production map checks that each test-reviewer node enriches
test_changesandred_tests, which are the inputsagents/test-reviewer.mdrequires.Required work:
MutationCheckreturn the mutated run's failing-test lines throughSuiteOutput.parseon a red result — check: presentSuiteOutput.parseinplugins/os-sdlc/lib/os_sdlc/implementation/mutation_check.rbred_teststo the test-reviewer enrich on the guard map — check: presentred_testsinplugins/os-sdlc/maps/poodr-guard-implementation.yamllines: []from the red verdict — check: absentlines: []inplugins/os-sdlc/lib/os_sdlc/implementation/mutation_check.rbAcceptance criteria
FooTest#test_answer) and the status stays 0.test-revieweragent, then its enrich lists bothtest_changesandred_tests.Survived, broken, unappliable, and no-mutation results are unchanged and need no new criterion: their tests already pass.
Owner sketch
In
plugins/os-sdlc/maps/poodr-guard-implementation.yaml(test-reviewer node, line 91) the enrich becomes[ticket_brief, red_tests, round_tests, test_changes, objections, retired_tests, change-auditor].New test,
plugins/os-sdlc/tests/map_catalog_test_reviewer_enrich_test.rb:New test in
plugins/os-sdlc/tests/boot_mutation_check_test.rb(classOsSdlc::BootMutationCheckTest):Origin
verdict:error← test-reviewerMISSING: red_tests(handoff 1609) ← guard-map test-reviewer enrich has no red proof (DESIGN, plugins/os-sdlc/maps/poodr-guard-implementation.yaml:91) and the agent rule demandsred_tests(DESIGN, plugins/os-sdlc/agents/test-reviewer.md:24)VERDICT: CREATE
Work started on branch ticket-1416 (os-sdlc pipeline, poodr-ticket-implementation; body from takedown design revise-2).
Resolution
Done: MutationCheck now returns the mutated run's failing-test lines (SuiteOutput.parse) on a red result instead of lines: []; the poodr-guard-implementation test-reviewer node enriches red_tests. A pin test checks every production map's test-reviewer node enriches test_changes and red_tests. Design from takedown run docs/takedown/1416-20261027-123627 revise-2 (that run failed green-suite on an unrelated scratch-repo defect; re-run failed critique-1, #1426).
Evidence: Commit
56a72968on ticket-1416, implementation 190: 8 dispatches all pass, suite gate exit 0; new tests boot_mutation_check_test.rb and map_catalog_test_reviewer_enrich_test.rb red before, green after.Follow-ups: #1425 (green-suite output hides failures), #1426 (critique label check) filed; tickets_bin_test history dependence fixed in this session.