Skip to content

fix(pr): stop expiring completed ClawSweeper reviews after twelve hours - #162249

Merged
steipete merged 1 commit into
mainfrom
fix/clawsweeper-gate-no-expiry
Oct 1, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/clawsweeper-gate-no-expiry

Conversation

@steipete

@steipete steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

scripts/pr-lib/clawsweeper-review-gate.mjs ignored a completed ClawSweeper review once it was twelve hours old, so scripts/pr merge-run refused PRs whose head and findings had not changed since the review (#161832 was refused on age alone and needed a @clawsweeper re-review round 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".

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.
@clawsweeper

clawsweeper Bot commented Oct 1, 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.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Oct 1, 2026
@steipete
steipete merged commit 7c8d77b into main Oct 1, 2026
141 of 144 checks passed
@steipete
steipete deleted the fix/clawsweeper-gate-no-expiry branch October 1, 2026 01:20
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scripts Repository scripts size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant