Repository navigation
fix(pr): stop expiring completed ClawSweeper reviews after twelve hours - #162249
Merged
Merged
Conversation
The landing gate treated a completed ClawSweeper review older than twelve hours as missing, which forced a fresh bot review before merge-run even when the head and findings were unchanged (#161832 was refused on age alone). Peter's ruling: review age does not matter; the gate requires a completed review for the PR, nothing more. The future-dated check and the newest-marker conflict check stay.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
steipete
added a commit
that referenced
this pull request
Oct 1, 2026
#162249 stopped expiring completed ClawSweeper reviews, so the review gate now fails with "completed review is missing." instead of "completed review is missing or expired". The packaged-gate wrapper test still asserted the old wording and failed on main (seen in checks-node-compact-small-15-3 on #162274). Assert the current message. Proof on Blacksmith Testbox: test/scripts/pr-wrappers.test.ts 214/214.
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 1, 2026
…rs (openclaw#162249) The landing gate treated a completed ClawSweeper review older than twelve hours as missing and forced a fresh bot review before merge-run even when head and findings were unchanged. Review age no longer matters: the gate requires a completed review marker, keeps the future-dated and conflicting-marker checks, and keeps the SHA-mismatch warning.
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 1, 2026
openclaw#162249 stopped expiring completed ClawSweeper reviews, so the review gate now fails with "completed review is missing." instead of "completed review is missing or expired". The packaged-gate wrapper test still asserted the old wording and failed on main (seen in checks-node-compact-small-15-3 on openclaw#162274). Assert the current message. Proof on Blacksmith Testbox: test/scripts/pr-wrappers.test.ts 214/214.
steipete
added a commit
that referenced
this pull request
Oct 1, 2026
Completed ClawSweeper reviews no longer expire after twelve hours (#162249), but native merge admission and replacement recovery still tested that removed policy. Use malformed completion timestamps for their rejection cases, retain every no-dispatch, outcome, and capture assertion, and check the exact gate diagnostic. Exercise historical completed reviews in the existing successful admission and recovery cases and verify retained dates. No production code or additional test cases. Validation: Linux Blacksmith Testbox reproduced both obsolete assertions on clean main (116 passed, 2 failed). Repaired admission and recovery files passed three times, including all pr-merge and package-update-swap siblings: 1,046 tests in 32 files. The Windows swap file also passed all 11 focused cases on Linux; this does not claim native Windows filesystem proof. Single-worker test time: admission 53.99s, recovery 103.72s; existing native Git/process boundary coverage, no added invocations. Oxfmt, targeted oxlint, git diff --check, and independent review passed.
steipete
added a commit
that referenced
this pull request
Oct 1, 2026
Retain focused test-only plans while source and support module edits select the inventory guards. Align planner assertions with that safety contract and use typed nonmutating summary sorting. Preserve native merge rejection coverage with future-dated fixtures after #162249 retired twelve-hour review expiry; older-review acceptance remains covered by the review-gate unit suite.
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 2, 2026
Completed ClawSweeper reviews no longer expire after twelve hours (openclaw#162249), but native merge admission and replacement recovery still tested that removed policy. Use malformed completion timestamps for their rejection cases, retain every no-dispatch, outcome, and capture assertion, and check the exact gate diagnostic. Exercise historical completed reviews in the existing successful admission and recovery cases and verify retained dates. No production code or additional test cases. Validation: Linux Blacksmith Testbox reproduced both obsolete assertions on clean main (116 passed, 2 failed). Repaired admission and recovery files passed three times, including all pr-merge and package-update-swap siblings: 1,046 tests in 32 files. The Windows swap file also passed all 11 focused cases on Linux; this does not claim native Windows filesystem proof. Single-worker test time: admission 53.99s, recovery 103.72s; existing native Git/process boundary coverage, no added invocations. Oxfmt, targeted oxlint, git diff --check, and independent review passed.
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 2, 2026
Retain focused test-only plans while source and support module edits select the inventory guards. Align planner assertions with that safety contract and use typed nonmutating summary sorting. Preserve native merge rejection coverage with future-dated fixtures after openclaw#162249 retired twelve-hour review expiry; older-review acceptance remains covered by the review-gate unit suite.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
scripts/pr-lib/clawsweeper-review-gate.mjsignored a completed ClawSweeper review once it was twelve hours old, soscripts/pr merge-runrefused PRs whose head and findings had not changed since the review (#161832 was refused on age alone and needed a@clawsweeper re-reviewround before landing). The age rule came in with #134926; it has no relation to code correctness, only to the bot's cadence.Why This Change Was Made
Peter's ruling (2026-10-01): review age does not matter. The gate now requires a completed ClawSweeper review marker for the PR, keeps the future-dated and conflicting-marker checks, and keeps the SHA-mismatch warning.
User Impact
Maintainer tooling only. Landing no longer forces an extra bot review round on older PRs.
Evidence
node scripts/run-vitest.mjs test/scripts/clawsweeper-review-gate.test.ts: 13 passed. The former "expired boundary" rejection case is replaced by "accepts a completion older than twelve hours".