Repository navigation
Return pr-ready tasks to reviewing after blocking verdicts (T180) - #79
Conversation
erickb336
left a comment
There was a problem hiding this comment.
Codex review at adfd84333b665acf37d19f83acfc3e175056478d: no blocking findings. The owner requested this review because Claude usage is exhausted; the owner will merge.
Code/security and QA checks confirm that each blocking verdict (findings, qa-fail, checks-fail) returns a pr-ready task to reviewing. Input validation precedes the transition. The decision row preserves the original state and commit, and the ledger keeps the verdict. Existing verified-task behavior and tests remain intact. This matches #76.
Fresh validation on this commit, with fake process tools first on PATH:
npm run build: built 102 files.npm run check: all checks pass.npm test: tests 469; pass 469; fail 0.git diff --check ea9f728 HEAD: exit 0.
The PR records detached-main failure evidence for its new regression. No live provider session or real merge was tested. This is a Codex review of our work, with separate code/security and QA passes; it is not an external maintainer approval. Ready for the owner's merge.
Closes #76
Sage task T180 (follow-up).
A task waiting for the owner's merge must stop appearing ready when a review finds a problem. A
findings,qa-fail, orchecks-failverdict now moves apr-readytask back toreviewing, prints that state, and recordspr-ready → reviewingwith the verdict reason. Existing behavior forverifiedtasks stays the same.The shared state tool owns the change. The Claude sage skill and chief instructions describe the expanded rule. Generated plugin files come from the build. No hook policy or Claude-owned issue changes.
Validation
Fake
ps,pgrep, andkillwere first on PATH for every test run. Tests use temporary state directories and do not run a real merge or push.npm run buildbuilt 102 filesnpm run checkall checks passnode --test --test-name-pattern=T180 scripts/sage.test.mjstests 4; pass 4; fail 0npm testtests 469; pass 469; fail 0git diff --checkOne new test checks all three blocking verdicts through the state command. It checks the output, persisted task state, decision row, and retained verdict. In a detached worktree created from
origin/main(ea9f728), copying only the updated test file and runningnode --test --test-name-pattern='T180 follow-up' scripts/sage.test.mjsfails:tests 1; pass 0; fail 1. Main prints the findings verdict withoutreviewing; the branch prints and persistsreviewing.Independent review found no issues.
Not verified
No live provider session or real merge was tested. #78 remains the separate command-policy extraction; this PR starts from main and does not depend on it.