diff-test gate accepts a round as red when any test is red but test-reviewer requires all new tests red #953
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#953
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?
VERDICT: CREATE
Problem
The diff-test gate accepts a test-writer round as red when any test is red. The test-reviewer requires all new tests red. The two checks disagree, so a round passes the gate and then fails review. Dispatches 273, 275, 277, 279 passed the gate (exit 1 accepted). Reviewers 274, 276, 278, 280 failed the same rounds for green tests.
Reproduce
n/a: needs a live round with a mix of red and green new tests; implementation 30 shows it.
Approach
Required work:
executed_failure?inplugins/os-sdlc/lib/os_sdlc/model/gate/step_outcome.rbAcceptance criteria
Owner sketch
Origin
The takedown's final-red gate had the same per-file weakness and #995 fixed it with a per-method red check (commit
7907c2b6: every new test method must be red at base). The place-tests diff-test gate still classifies red when any test fails (plugins/os-sdlc/lib/os_sdlc/model/gate/step_outcome.rb:45-49; map plugins/os-sdlc/maps/takedown-implement.yaml:20). The #995 approach is a candidate fix here.Occurrence: Red-first round has no exemption for preservation tests; test-reviewer ends the run with verdict:error
Seen: plugins/os-sdlc/lib/os_sdlc/dispatch/brief/facts.rb:82 (round_tests: all new tests must be red); maps/poodr-ticket-implementation.yaml:92 (error edge)
Run: implementation 172 (#1370), session c6315119-bc8d-4ac6-98ec-96edc8052428, dispatches 1501 (reviewer fail, objection 161), 1502 (writer could not fix), 1503 (reviewer verdict: error)
Adds: a ticket-required preservation test (behavior already present) is green by nature, so a mixed round cannot pass and the reviewer settles error. Secondary: the error edge goes straight to implementation-failed and drops the reviewer's GAP text; an escalation would let the orchestrator recover. Workaround used on #1360: fold must-still-fire cases into one contrast test and state that existing tests prove preserved behavior.