Repository navigation
fix(review): reduce hot target fanout cadence - #1087
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 9, 2026, 6:13 PM ET / 22:13 UTC. ClawSweeper reviewWhat this changesThis PR changes scheduled fleet hot target fanout from every five minutes to every twenty minutes, documents the temporary containment rationale, and adds workflow schedule coverage. Merge readiness⛔ Blocked until stronger real behavior proof is added - 6 items remain Keep open: the schedule wiring is internally consistent, but slowing fleet hot fanout adds up to 15 minutes of dispatch latency and remains a temporary containment rather than a durable fix. A maintainer must approve that trade-off and the PR needs workflow-path proof beyond its parser regression. Likely related people: steipete (high-confidence cadence baseline owner) and goutamadwant (high-confidence scheduled-review path contributor). Priority: P2 Review scores
Verification
How this fits togetherThe sweep workflow periodically selects target repositories and dispatches their open work into the exact-review queue. This change only slows the fleet hot-fanout selector; it leaves core hot intake, ClawHub intake, normal fanout, and audit routing unchanged. flowchart LR
A[Scheduled hot cadence] --> B[Target fanout]
B --> C[Target repository dispatch]
C --> D[Exact review queue]
D --> E[Review workers]
E --> F[GitHub review records]
Decision needed
Why: The code correctly implements the chosen cadence, but deciding whether reduced review freshness is acceptable and when to reverse it is an operational product-policy choice. Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt the twenty-minute containment only with an approved freshness/rollback threshold and a redacted staged or live workflow trace, while separately completing the structural-receipt fix that removes self-feedback demand. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR changes an operational cadence rather than repairing a directly reproducible product failure; the supplied evidence identifies demand but does not execute the changed GitHub schedule. Is this the best way to solve the issue? No as a durable solution: the branch deliberately contains demand rather than repairing the remaining self-feedback path, so its latency trade-off needs explicit owner approval. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e10a866ba75f. LabelsLabel changes:
Label 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 (1 earlier review cycle)
|
Summary
4/5 * * * *) to every 20 minutes (4/20 * * * *)*/5), ClawHub intake (2/5), normal fanout (41/10), and audit (37 */6) unchangedProblem
Scheduled fleet fanout can repeatedly select repositories whose hot-review work later produces no meaningful public change. A current-main run for
openclaw/libterminal#41(run31336140651, revision 50) was admitted asscheduled_hot_intake, performed one structural-cache check with zero hits, hydrated the item, and refreshed the sole ClawSweeper-owned review comment. That is concrete avoidable demand, but it does not establish that every historical revision was equivalent.PR #959 intentionally changed this selector from the prior 15-minute cadence to every 5 minutes. This PR adjusts the currently deployed 5-minute cadence to 20 minutes as temporary demand containment; it does not claim #959 caused the underlying self-feedback defect.
Related mitigation evidence
fix(review): suppress owned activity churn) is directly relevant: it recognizes structurally proven ClawSweeper-owned comment/label activity while conservatively retaining timestamp-only or incomplete evidence for verification. It was deployed before the observed libterminal run, but that run still recordedstructural_cache_checks=1,structural_cache_hits=0, andhydrations=1. Therefore fix(review): suppress owned activity churn #1007 was insufficient for this execution; the available record does not prove whether its receipt was missing, stale, incomplete, or otherwise non-matching.Review storm persists for unchanged issues after #1007, closed by PR fix(review): stop scheduled review storms on unchanged issues #1036. PR fix(review): stop scheduled review storms on unchanged issues #1036 passed the claimed queuesourceActioninto review preparation and made scheduled hot/normal claims cache-eligible rather than explicit. The observed run includes--review-source-action scheduled_hot_intake, so that classification path was active, but the later structural check still missed and hydration proceeded. The mitigation was effective for classification yet partial/insufficient for this case, not shown to be bypassed.Implementation
4/5to4/20Validation
git diff --check origin/main...HEADnode --test --test-name-pattern="hot fleet fanout runs every 20 minutes" test/sweep-workflow.test.ts— 1 passedcodex review --base origin/main— no actionable regressionspnpm run review -- --local-range --target-repo openclaw/clawsweeper --base origin/main—keep_open, high confidence; no hydration or mutationactionlintwas not installed on the host; workflow YAML parsing and exact schedule routing are exercised by the focused test, and hosted CI remains requiredReal Behavior Proof
.github/workflows/sweep.ymlparsed by the production workflow regression after a clean build.local-container, Docker imagenode:24-bookworm, leasecbx_130623a992bb(golden-barnacle),--no-hydrate --no-syncwith an in-container Git clone.62f16367eb2a4bacfb158a50f3c435304b4f1d51.4/20is present, legacy4/5is absent from target fanout, and*/5,2/5,41/10, and37 */6remain present and correctly routed..crabbox/captures/cbx_130623a992bb-20260809T220431Z.tar.gz(local failure/proof bundle; redact before sharing).pnpm run checkcontinued into 228 test files and failed in existing broad workflow fixtures including comment-sync and apply-checkpoint cases. Those failures are outside the three-file cadence/docs/test patch; focused behavior, static checks, build, formatting, and lint succeeded. CI is the authoritative hosted-environment broad gate. This proof does not execute or mutate GitHub schedules and does not claim to fix the self-feedback loop.Risks, rollout, and rollback
4/20back to the then-approved cadence, with the routing assertions and docs updated together..github/workflows/**; GitHub OAuth workflow scope may require a maintainer-owned replacement branch or approval path.Relationship to CSW-110
CSW-110 owns broader installation-quota bottlenecks. This PR is isolated to scheduled fleet target-fanout pressure and does not overlap that lane's branch, worktree, or changes.