programmer-repair gate omits the required-work step that sent it the failure #1643
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#1643
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
In
maps/poodr-ticket-implementation.yaml, asuite-checkfail on therequired-workstep routes toprogrammer-repair. The programmer gate runsdiff-testandlintonly. So the programmer reports green without running the step that failed, and the nextsuite-checkcan fail on the same step again. Each wasted loop costs one programmer, one behavior-verifier and one suite-check dispatch.Observed
Implementation 266 (#1634): dispatch 2599 suite-check fail, gate_steps
[{"step":"required-work","ms":331,"exit":1}]; dispatch 2600 programmer pass, gate_stepsdiff-testexit 0,lintexit 0 (14 s); dispatch 2602 suite-check fail,required-workexit 1 again; dispatch 2603 programmer pass,diff-test,lint(23 s); dispatch 2605 suite-check pass. Two loops; about 3 minutes and 4 extra dispatches.Reproduce
Open an implementation whose ticket has a Required work item whose check fails after green. Suite-check fails on
required-work, and programmer-repair passes ondiff-testandlint.Approach
The
programmer-repairnode in both implementation maps gets therequired-workgate.suite-checksends arequired-workfailure toprogrammer-repair. With this change the programmer's ownos-sdlc-gaterun fails on that same step, so the programmer cannot report green until every required-work check passes.The new gate list is
[diff-test, lint, required-work]. The step goes last, so the test and lint signal stays first when the repair follows a test failure fromprogrammerorrefactorer. The check takes about 300 ms.No Ruby change is needed.
Gate::Commands#to_hmapsrequired-worktoos-sdlc-required-work-check <id>and givesnilwhen the ticket has no required-work checks;Gate::StepRuntreats anilcommand as exit 0. Thegate_resultsbrief fact already carries every step summary, so therequired-workoutput reaches the repair brief.The ticket map's
programmer-repairinstruction names only "test or lint gate failure"; it must also name required-work. The takedown map's instruction already says "the supplied gate failure".Orchestrator work: a run on
poodr-ticket-implementationcannot edit that map (map digest, #1641), so build this ticket by hand, test-first. Abandon stale implementation 219 (ticket 1510,takedown-implement,needs-orchestratorsince 2026-11-02; #1510 shipped 2026-11-03) before the map edit, because it pinned the current digest oftakedown-implement.yaml.Required work:
plugins/os-sdlc/maps/poodr-ticket-implementation.yaml, set theprogrammer-repairnode'sverdict.gatesto[diff-test, lint, required-work]— check: presentgates: [diff-test, lint, required-work]inplugins/os-sdlc/maps/poodr-ticket-implementation.yamlplugins/os-sdlc/maps/takedown-implement.yaml, set theprogrammer-repairnode'sverdict.gatesto[diff-test, lint, required-work]— check: presentgates: [diff-test, lint, required-work]inplugins/os-sdlc/maps/takedown-implement.yamlplugins/os-sdlc/maps/poodr-ticket-implementation.yaml, change theprogrammer-repairinstruction from "the supplied test or lint gate failure" to "the supplied test, lint, or required-work gate failure" — check: absentsupplied test or lint gateinplugins/os-sdlc/maps/poodr-ticket-implementation.yamlRejected:
required-workfirst, as insuite-check(a test failure fromprogrammerorrefactorerwould show after the required-work result). Rejected: a test that reads the map YAML and asserts the gate list (Gate#verdicton the real node is a public seam).Acceptance criteria
programmer-repairnode, a failing required-work check, and passing diff-test and lint, when the gate runs, then the verdict is fail on steprequired-work.programmer-repairnode, a failing required-work check, and passing diff-test and lint, when the gate runs, then the verdict is fail on steprequired-work.programmer-repairnode and a ticket with no required-work checks, when the gate runs, then therequired-workstep runs with no command and the verdict is pass.programmer-repairnode and a ticket with no required-work checks, when the gate runs, then therequired-workstep runs with no command and the verdict is pass.Owner sketch
maps/poodr-ticket-implementation.yamlnodeprogrammer-repairmaps/takedown-implement.yamlnodeprogrammer-repairOsSdlc::Gate#verdict(unchanged)OsSdlc::Gate::Commands#to_h(unchanged)required-workcommand, ornilwhen the ticket has no checksFailing test at
plugins/os-sdlc/tests/gate/programmer_repair_required_work_test.rb. The failing-check tests are red today because the node runs onlydiff-testandlint(verdict pass); the no-check tests are red becauserequired-workis not among the recorded steps. Use the verdict constants thattests/gate_test.rbuses ifGate::Verdict::FAIL/PASSare not the names.Out of scope
maps/poodr-guard-implementation.yamlandmaps/structure-change.yaml; neither has aprogrammer-repairnode.required-workto theprogrammerorrefactorernodes.Gate::Commands,RequiredWorkCheck, or thegate_resultsfact.docs/os-sdlc-rebuild/poodr-map-spec.md:84,poodr-implementation-map-blueprint.md:125-140).Origin
VERDICT: CREATE
Resolution
Done: programmer-repair gates are [diff-test, lint, required-work] in poodr-ticket-implementation.yaml and takedown-implement.yaml; the ticket map instruction names required-work failures. All 4 acceptance criteria covered by tests/gate/programmer_repair_required_work_test.rb.
Evidence: Branch ticket-1643:
644b4100(maps + test),b6a92109(history row). Built by hand test-first: 4 tests red before the map edit, green after; suite 3563 runs, 0 failures, 66.4 s; rubocop 0 offenses. Stale implementation 219 (ticket 1510) abandoned first because it pinned the takedown map digest.Follow-ups: none