Repository navigation
feat(source-control): add the pull request reassess action - #14309
Conversation
Judges whether one open pull request should still land and returns continue, rework or close with its goal, base range and the pull requests it searched. It reports only unless --act carries out the verdict, and it never closes a pull request or lifts a label. Refs: #14199 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015te8CqrCmigawLFLWN3KpQ
…ut a head Review found the action's holds had no reads behind them, a failed read fell open, a fork's files could load as project instructions, and acting on continue assumed a checkout it did not have. The limits now come from one script where a failed read is a limit, the head stays a ref, and an update runs the shared sequence only from this session's own checkout, else as a pinned forge merge. Refs: #14199 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015te8CqrCmigawLFLWN3KpQ
The action's comment now comes from a renderer with fixed text and references only, so it cannot mention anyone, leak local data or read as a member's veto. The hold and veto patterns and the lease path are held equal to babysit-prs' by test, a second limits read replaces the first before any write, and each provider command states its inputs and fails on a failed read. Refs: #14199 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015te8CqrCmigawLFLWN3KpQ
A close comment said the label held the pull request even where the label does not exist. A failed label read or edit now posts nothing. Refs: #14199 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015te8CqrCmigawLFLWN3KpQ
Eight cases: close, continue and rework verdicts, and report-only, no-goal, close-label-first, fork-no-push and labeled-own-comment actions. The gh-forge stand-in now serves the reads reassess makes, and a push or a refused write method lands in its call record. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015te8CqrCmigawLFLWN3KpQ
…ixture A refused pr close, pr update-branch, issue comment or issue edit and a fields-implied POST now land in the stand-in's call record, so an absence grader cannot pass while the attempt went unrecorded. Unsigned scaffold commits keep the landed SHA a grader names the same on every host. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015te8CqrCmigawLFLWN3KpQ
A close never pushes, so the fork case could not fail on a push. A fork head behind its base with a continue verdict is the state where only the no-update limit stops an update. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015te8CqrCmigawLFLWN3KpQ
The labeled case's no-other-write grader missed reviews, PR creation, thread resolves and a ready flip. The close case accepted any SHA-shaped range and a 501 found anywhere in the reply. The close-label-first case missed a close through REST. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015te8CqrCmigawLFLWN3KpQ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015te8CqrCmigawLFLWN3KpQ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015te8CqrCmigawLFLWN3KpQ
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
claude-security-review reviewed Security review (incremental, 70b4b6f → 62ca5b2)No security issues found. I read every hunk of the one file changed since 70b4b6f:
critical-findings: 0 |
|
claude-review reviewed Code review: incremental,
|
Read a lease's expiry with jq, so a macOS host does not read every lease as unread. Add a graded close on a fork head and a grader for the report's warning about pushes. Keep the eval fixture's push record and pinned SHAs independent of the operator's global git config, record GraphQL mutations, and move the fixture test out of the fixtures folder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015te8CqrCmigawLFLWN3KpQ
The continue branch's only comment, the before-and-after comparison a rebase of a reviewed PR posts, had no case that could fail. The new case reaches a real rebase from the session's own checkout: the base's pr_update_method forces rebase over the human-reviewed row. The forge records whether a push rewrote the ref, moves the pull ref with a push to the head, serves seeded reviews and keeps the comment body. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015te8CqrCmigawLFLWN3KpQ
A close pushes nothing, so the report said only what had not happened. Require the warning before the first write and again in the report. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015te8CqrCmigawLFLWN3KpQ
The bare origin's receive hooks do not fire inside an eval run, so a forced push left no line in the call record. A git stand-in beside gh now passes every command through, records each ref a successful push moved in the origin, and moves the pull ref with the head branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015te8CqrCmigawLFLWN3KpQ
|
The pr-verify verifier failed head What it wrote (40 lines)This pull request leaves the merge queue, and ci-status holds it out while it carries |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015te8CqrCmigawLFLWN3KpQ
Closes #14199
Siblings: #14258
Summary
Problem: nothing judges whether a PR still fits before it merges.
Adds
/source-control:pull-request reassess, which judges one open PR and returnscontinue,reworkorclosewith cited evidence, even when the PR is green and mergeable. A default run changes nothing;--actcarries out the verdict. The shared update criteria this action reads landed in #14258.The owner narrowed AC7:
--actoncontinue, for a head this session does not hold, is a pinned forge merge only. A conflict there reports and stops, and no rebase happens. From this session's own checkout of the branch the shared update sequence runs unchanged, and a rebase also needs the PR to be the acting login's own.Fix
git show, in an unpopulated worktree, so a fork's files never load or run.gitstand-in logs pushes, because receive hooks do not fire inside an eval run.Verification
claude plugin eval, opus judged. Verdict casesclose,continueandreworkran twice each.close-label-first,fork-close,fork-no-push,report-only,no-goal,labeled-own-commentandrebase-comparisonscored 1.00 once each, each with the validity gate VALID. The cases that assert no push ran after thegitstand-in landed.close-label-firstwere graded before the stand-in landed. They assert no push of their own. Threeclosegraders were tightened after those runs and checked against the kept traces, not re-run.reassess-state.test.sh,gh-forge.test.shandreassess-limits.test.shpass, andvalidate-cases.pyexits 0 with warnings only.gh issue close. Why receive hooks do not fire in a run is unverified.Related
N/A
Acceptance criteria
do-not-merge, then one comment;reassessnever closes a PR or lifts a label; where the label does not exist the report says no hold was applied.do-not-mergegets a verdict and no action, apart from editing this action's own earlier comment; a closed or merged PR is refused.create's refresh,ready's base merge, babysit's refresh andreassessall read the same criteria source, and the fixed merge-only rule inready-for-review.mdis gone.🤖 Generated with Claude Code
https://claude.ai/code/session_015te8CqrCmigawLFLWN3KpQ