Repository navigation
fix: suppress semantic no-op hot review writes - #1088
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs real behavior proof before merge. Reviewed August 10, 2026, 2:53 AM ET / 06:53 UTC. ClawSweeper reviewWhat this changesAdds a scheduled hot-review semantic no-op path that skips target writes and review setup when only trusted ClawSweeper activity changed an item. Regression provenancePossible regression — probable (failure trace; reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 3 items remain Keep this PR open pending real behavior proof. The focused implementation appears correct, but its supplied fake-GitHub harness does not prove the queue-completion boundary required for this workflow change. Priority: P1 Review scores
Verification
How this fits togetherThe scheduled review workflow claims queued GitHub items, reads their current state, and either completes a safe no-op or proceeds to token creation, checkout, review, and publication. This change sits at that admission decision before expensive target work begins. flowchart LR
A[Scheduled hot queue claim] --> B[Live item and comments]
B --> C[Semantic source comparison]
C -->|unchanged trusted activity| D[Complete queue lease]
C -->|changed or uncertain| E[Create review resources]
E --> F[Checkout and Codex review]
F --> G[Publish review result]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Record an exact-head Docker-backed Crabbox local-container trace that injects an unchanged scheduled claim through the queue boundary, observes fenced successful completion, and confirms zero target GitHub writes. Do we have a high-confidence way to reproduce the issue? Yes. Current source and focused fixtures define the unchanged scheduled-claim scenario; the missing evidence is production-boundary validation, not a reproduction path. Is this the best way to solve the issue? Yes. Exact timestamp, source-revision, trusted-marker, and PR-head checks are a narrow fail-open solution; it needs the required lifecycle proof before merge. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e699e83d2707. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
28f3f74 to
e865e8f
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
Problem
Scheduled hot reviews can observe GitHub
updated_atchanges caused by ClawSweeper's own comment/label lifecycle. Reprocessing an otherwise identical review can then publish another timestamp-only comment PATCH, advancingupdated_atagain and sustaining self-feedback and installation-quota pressure.The 5-to-20-minute target-fanout containment in #1087 reduces demand temporarily. This change addresses the durable no-change path; it does not claim that cadence containment fixed the loop.
Implementation
scheduled_semantic_noopdisposition that skips target write-token acquisition, reaction, runtime setup, artifact publication, target checkout/hydration, and model execution, then completes the exact queue lease directly. Existing closed/missing/locked terminal paths retain their prior token-backed close-safety lifecycle.reviewed_at,updated_at,lease_owner, andlease_comment_idmarker attributes when deciding whether a PATCH is needed.#1086 relationship
PR #1086 merged as
13f8ffdea32ad5d0940f490cf57e291414b9a26f. This branch was rebased onto that exact current main. #1086 changes dispatch/dashboard quota admission plus one unrelatedsweep.ymlfleet-capacity comment (600→300/hour), which is preserved. This PR changes the live claim route and review-comment identity; the rebase was conflict-free and final tests/reviews ran against the merged #1086 base.Validation
corepack pnpm run buildnode --test test/scheduled-review-noop.test.ts test/review-comment-noop.test.ts test/scheduler-policy.test.ts(32 passed)corepack pnpm exec oxlint scripts/classify-scheduled-review-noop.ts src/clawsweeper-review-comment-state.ts test/review-comment-noop.test.ts test/scheduled-review-noop.test.ts test/sweep-workflow.test.tsgit diff --checkcodex review --uncommitted: accepted and fixed exact PR-head validation, timestamp-only planner suppression, semantic-noop lifecycle, and legacy terminal-token findings; final pass cleancodex review --base origin/main: repeated after every commit; final head had no actionable correctness defectscorepack pnpm run review -- --local-range --target-repo openclaw/clawsweeper --base origin/main:decision=keep_open,confidence=high, no blocker surfacedNative Windows workflow execution remains outside this Bash-hosted workflow surface (
/bin/bash/WSL unavailable). The exact workflow route was executed in Linux Crabbox below.Real Behavior Proof
Claim: An unchanged scheduled hot review with only trusted ClawSweeper activity completes as a distinct semantic no-op with zero target GitHub writes and before target token/setup/checkout/model work, while genuine source, label, comment, or PR-head changes remain admitted.
Exercised surface: Exact branch head
e865e8f88a4738d9e2bcf0acfad3e6545463f308on base13f8ffdea32ad5d0940f490cf57e291414b9a26f;sweep.ymllive-item claim route, semantic classifier, distinct semantic-noop completion, token/setup/bundle guards, legacy terminal preservation, and comment public-identity comparison.Scenario/fixture: The workflow harness supplied a scheduled claim, unchanged live issue, trusted durable review marker, and fake
ghrequest log. It assertedproceed=false,scheduled_semantic_noop=true,terminal_noop=false, direct successful queue-completion routing, ordering before token/reaction/setup/bundle/checkout, and noPOST,PATCH, label, reaction, or other target-Xwrite. Companion fixtures exercised exact timestamp boundary, outside-boundary rejection, mixed human activity, protected/manual label changes, stale/missing receipts, source drift, matching/mismatching PR heads, and legacy closed/missing/locked token preservation.Command/environment: Configured Crabbox
provider=aws, Ubuntu Linux, leasecbx_1b87e94db08e, runrun_dbbde77177bf. The no-sync proof cloned the reviewed remote branch, verified SHAe865e8f88a4738d9e2bcf0acfad3e6545463f308, installed the frozen lockfile, built, and ran:Observed result: Build passed; 32 classifier/public-identity/scheduler tests passed; all 4 Linux workflow-route tests passed. The named no-op test observed zero GitHub writes.
Artifact/trace: Crabbox run
run_dbbde77177bf, leasecbx_1b87e94db08e, exit0, command15.618s, total16.025s. Earlier dirty-tree sync attemptsrun_c193c7313414andrun_de5e0174b74afailed before execution with rsync code 12;run_387fa305187awas a quoting-only harness failure;run_9bdbc9789cdcexposed and led to correction of a test binding error. None were product-runtime failures.Limits: This is a controlled GitHub-API harness, not a live target mutation. It deliberately proves the zero-write contract without advancing a real issue's
updated_at. GitHub Actions and repository permissions remain covered by CI and maintainer review.Risks and rollout