Skip to content

fix(review): tell authors how to get a fresh review of a stale PR - #2126

Merged
obviyus merged 1 commit into
mainfrom
fix/stale-notice-next-step
Oct 29, 2026
Merged

obviyus merged 1 commit into
mainfrom
fix/stale-notice-next-step

Conversation

@obviyus

@obviyus obviyus commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Problem

When a PR is pushed after its first review, ClawSweeper replaces the verdict with a stale notice whose next step reads "Run or wait for a fresh ClawSweeper review on the current PR head." Since #1948, pushes after the first review are not reviewed automatically, so waiting never produces a review. On 2026-10-29, 94 of 341 open non-draft openclaw/openclaw PRs showed this notice, and some looked stalled to their authors.

Fix

The stale notice now says: "Comment @clawsweeper re-review when the current head is ready; pushes after the first review are not reviewed automatically." Contributors may request reviews of their own items, so the command is available to the readers of this notice.

User impact

Authors of stale PRs know what to do to get a fresh review. Review admission does not change.

Proof

  • node --test test/review-history.test.ts test/apply-label-sync.test.ts
  • pnpm run check:changelog

@clawsweeper

clawsweeper Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 29, 2026
@clawsweeper

clawsweeper Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

The stale-review notice tells PR authors to comment @clawsweeper re-review instead of waiting for an automatic review.

Example: A PR previously reviewed at head old-head is pushed to new-head.

  • Before: The stale notice says to run or wait for a fresh review.
  • After: The notice gives @clawsweeper re-review and explains that later pushes are not reviewed automatically.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The focused patch appears correct and useful, but the repository-required runtime proof is absent.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: PR authors are told to wait for a review that later pushes do not automatically request.
Reason: The change aligns the notice with the established review policy and gives authors an available next action.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it corrects misleading stale-review guidance still present on main, and no introduced correctness defect was found.

Priority: P3
Reviewed head: e2d2878acfe227030977fb02c0b1b22eef1045d6

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No supplied runtime output shows the apply entry point producing the new stale notice, and no base-fail/head-pass assertion for the replacement guidance is shown.
Agent review details

How this fits together

The apply workflow compares the reviewed and live PR heads, renders a stale notice when they differ, and publishes it as the durable review comment.

flowchart LR
  A[Stored review] --> C[Apply workflow]
  B[Live PR head] --> C
  C --> D[Stale notice renderer]
  D --> E[Durable GitHub comment]
  E --> F[Author review request]
Loading

Technical review

Best possible solution:

Keep the focused wording correction in the existing stale-notice renderer.

Do we have a high-confidence way to reproduce the issue?

Main still tells authors to wait despite the documented explicit-request requirement; the stale-head branch directly renders that message.

Is this the best way to solve the issue?

Replacing the message at its existing production owner is the smallest complete fix and uses a command already available to authors.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 6901db5e2c65.

Provenance checked

  • Stale-review next-step wording changes intended behavior with a stated reason (unknown: The supplied provenance traces the line through refactor: replace PR reference and comment policy factories #1895, a behavior-preserving factory-removal refactor; git log --follow and scoped git log -S encountered unavailable older blobs before establishing the original wording rationale.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Labels

Label changes:

  • add P3: This is a narrow guidance correction for an existing contributor command, with no change to review admission or execution.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a narrow guidance correction for an existing contributor command, with no change to review admission or execution.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Show the changed stale notice through the production apply entry point.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 29, 2026, 6:51 AM ET / 10:51 UTC.

@obviyus
obviyus merged commit fa69368 into main Oct 29, 2026
38 checks passed
@obviyus
obviyus deleted the fix/stale-notice-next-step branch October 29, 2026 10:53
@obviyus

obviyus commented Oct 29, 2026

Copy link
Copy Markdown
Contributor Author

Landed. The stale-review notice told authors to "run or wait" for a fresh review, but pushes after the first review are only reviewed on request. It now names @clawsweeper re-review. Proof: focused review-history and label-sync tests (99/99), changelog check, green CI, hosted review ready on e2d2878.

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

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant