Skip to content

Return pr-ready tasks to reviewing after blocking verdicts (T180) - #79

Merged
erickb336 merged 1 commit into
mainfrom
codex/t180-pr-ready-verdict
Oct 7, 2026
Merged

erickb336 merged 1 commit into
mainfrom
codex/t180-pr-ready-verdict

Conversation

@erickb336

Copy link
Copy Markdown
Owner

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, or checks-fail verdict now moves a pr-ready task back to reviewing, prints that state, and records pr-ready → reviewing with the verdict reason. Existing behavior for verified tasks 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, and kill were first on PATH for every test run. Tests use temporary state directories and do not run a real merge or push.

Command Last result
npm run build built 102 files
npm run check all checks pass
node --test --test-name-pattern=T180 scripts/sage.test.mjs tests 4; pass 4; fail 0
npm test tests 469; pass 469; fail 0
git diff --check Exit 0

One 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 running node --test --test-name-pattern='T180 follow-up' scripts/sage.test.mjs fails: tests 1; pass 0; fail 1. Main prints the findings verdict without reviewing; the branch prints and persists reviewing.

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.

@erickb336 erickb336 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

T180 follow-up: a blocking verdict also returns a pr-ready task to reviewing

1 participant