Skip to content

fix(review): reduce hot target fanout cadence - #1087

Merged
brokemac79 merged 1 commit into
mainfrom
codex/csw-111-hourly-hot-fanout
Aug 9, 2026
Merged

brokemac79 merged 1 commit into
mainfrom
codex/csw-111-hourly-hot-fanout

Conversation

@brokemac79

Copy link
Copy Markdown
Contributor

Summary

  • temporarily reduce the fleet-wide hot target-fanout selector from every 5 minutes (4/5 * * * *) to every 20 minutes (4/20 * * * *)
  • keep core hot intake (*/5), ClawHub intake (2/5), normal fanout (41/10), and audit (37 */6) unchanged
  • document the containment rationale, evidence, rollback criterion, and the limits of earlier mitigations

Problem

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 (run 31336140651, revision 50) was admitted as scheduled_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

Implementation

  • update only the target-fanout schedule routing, run name, concurrency key, planner exclusion, and fanout job guard from 4/5 to 4/20
  • add an explicit regression that parses the workflow schedules and asserts the four unrelated cadences remain unchanged
  • update scheduler documentation from stale 15-minute wording to the deployed 20-minute containment and record the historical/evidence context

Validation

  • git diff --check origin/main...HEAD
  • node --test --test-name-pattern="hot fleet fanout runs every 20 minutes" test/sweep-workflow.test.ts — 1 passed
  • dirty-patch Codex review — no blocking correctness findings; evidence wording reviewed for unsupported claims
  • codex review --base origin/main — no actionable regressions
  • pnpm run review -- --local-range --target-repo openclaw/clawsweeper --base origin/main — keep_open, high confidence; no hydration or mutation
  • actionlint was not installed on the host; workflow YAML parsing and exact schedule routing are exercised by the focused test, and hosted CI remains required

Real Behavior Proof

  • Claim: exact head routes fleet-wide target fanout every 20 minutes while preserving core hot, ClawHub, normal, and audit schedules.
  • Exercised surface: checked-in .github/workflows/sweep.yml parsed by the production workflow regression after a clean build.
  • Scenario: clone the pushed branch into a fresh Linux container, assert its exact SHA, install from the lockfile, build, and run the named schedule/routing test.
  • Environment: Crabbox provider local-container, Docker image node:24-bookworm, lease cbx_130623a992bb (golden-barnacle), --no-hydrate --no-sync with an in-container Git clone.
  • Exact head: 62f16367eb2a4bacfb158a50f3c435304b4f1d51.
  • Observed result: exact SHA assertion passed; focused test passed 1/1; build, format check, and all lint groups passed. The named test proves 4/20 is present, legacy 4/5 is absent from target fanout, and */5, 2/5, 41/10, and 37 */6 remain present and correctly routed.
  • Artifact: .crabbox/captures/cbx_130623a992bb-20260809T220431Z.tar.gz (local failure/proof bundle; redact before sharing).
  • Limits: the full pnpm run check continued 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

  • Operational impact: fleet target selection runs one quarter as often, reducing scheduled demand but delaying newly selected repositories by up to roughly 20 minutes. Event-driven/core hot intake remains every 5 minutes.
  • This is temporary containment, not the durable fix. Restore or remove the slower cadence only after the Stage 2 self-feedback/no-op publication fix is merged and production evidence shows scheduled self-only revisions complete without hydration/model execution or public GitHub timestamp-only writes.
  • Rollback is the single schedule family change from 4/20 back to the then-approved cadence, with the routing assertions and docs updated together.
  • This PR touches .github/workflows/**; GitHub OAuth workflow scope may require a maintainer-owned replacement branch or approval path.
  • No changelog entry: release notes are release-owned.

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.

@clawsweeper

clawsweeper Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@brokemac79

Copy link
Copy Markdown
Contributor Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. P2 Normal priority bug or improvement with limited blast radius. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 9, 2026
@clawsweeper

clawsweeper Bot commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 9, 2026, 6:13 PM ET / 22:13 UTC.

ClawSweeper review

What this changes

This 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
Reviewed head: 62f16367eb2a4bacfb158a50f3c435304b4f1d51
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The schedule change is focused and test-backed, but the required real workflow-path proof is not yet present.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: The fresh-container evidence runs a focused workflow parser regression, but it does not show the changed GitHub Actions schedule executing; provide a redacted staged or live schedule-path trace. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: The fresh-container evidence runs a focused workflow parser regression, but it does not show the changed GitHub Actions schedule executing; provide a redacted staged or live schedule-path trace. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 5 items Complete schedule routing update: The branch replaces the hot-fanout cron consistently in the workflow run name, cron list, concurrency classification, target-fanout guard, and planner exclusion; the target-fanout job still maps this schedule to hot intake with a limit of 20.
Focused regression coverage: The added test asserts the new cron, removal of the old cron, preservation of the four unrelated schedules, and hot-intake routing and limit in the fanout job.
Base behavior and patch scope: Current main schedules hot fleet fanout at 4/5; this three-file branch changes it to 4/20 without changing fanout implementation code.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Decision needed

Question Recommendation
Should fleet hot target fanout accept the added 15-minute maximum dispatch delay as temporary containment, and what measurable rollback threshold governs restoring a faster cadence? Approve bounded containment after workflow proof: Record an owner-approved freshness and rollback threshold, then add a redacted staged or live Actions trace for the exact schedule path before merging.

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

  • Add real behavior proof - Needs stronger real behavior proof before merge: The fresh-container evidence runs a focused workflow parser regression, but it does not show the changed GitHub Actions schedule executing; provide a redacted staged or live schedule-path trace. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk (P1) - Fleet-selected repositories can wait up to 15 additional minutes before dispatch; core and ClawHub hot intake remain unchanged.
  • Resolve merge risk (P1) - The submitted proof validates static workflow routing in a container, not an executed GitHub Actions schedule path.
  • Resolve merge risk (P1) - The temporary rollback condition names quota telemetry but does not set an owner-approved measurable threshold.
  • Complete next step (P2) - A maintainer must approve the intentional freshness trade-off, and the contributor must supply real schedule-path proof before merge.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Cadence change 12 to 3 hot-fanout runs per hour The branch reduces fleet target-selection opportunities by 75% while retaining 20 targets per run.
Workflow integration points 5 schedule-routing sites changed The cron is updated in the trigger, run naming, concurrency, fanout guard, and planner exclusion.
Patch scope 3 files; workflow +9/-9, docs +41/-2, tests +28/-0 The implementation remains narrowly focused on cadence policy and its documentation and coverage.

Merge-risk options

Maintainer options:

  1. Prove and approve the containment (recommended)
    Before merge, capture a redacted staged or live schedule-path trace and document the approved freshness and rollback threshold for the twenty-minute cadence.
  2. Keep the existing cadence
    Do not merge this operational throttle until an owner accepts the delayed fleet-selection behavior.

Technical review

Best 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.

Labels

Label changes:

  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The fresh-container evidence runs a focused workflow parser regression, but it does not show the changed GitHub Actions schedule executing; provide a redacted staged or live schedule-path trace. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • remove proof: sufficient: Current real behavior proof status is insufficient, not sufficient.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦪 silver shellfish, so this older rating label is no longer current.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: 📣 needs proof.

Label justifications:

  • P2: This is a bounded operational trade-off affecting background review freshness rather than a current core-runtime outage.
  • merge-risk: 🚨 automation: Merging changes the production GitHub Actions schedule and reduces fleet fanout frequency from every five to every twenty minutes.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The fresh-container evidence runs a focused workflow parser regression, but it does not show the changed GitHub Actions schedule executing; provide a redacted staged or live schedule-path trace. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

Likely related people:

Rank-up moves

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

  • Add a redacted staged or live Actions trace that exercises the exact twenty-minute schedule route.
  • Record the owner-approved freshness and rollback threshold in the PR body.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-09T22:07:49.577Z sha 62f1636 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 9, 2026
@brokemac79
brokemac79 marked this pull request as ready for review August 9, 2026 22:20
@brokemac79
brokemac79 requested a review from a team as a code owner August 9, 2026 22:20
@brokemac79
brokemac79 merged commit 95f9dab into main Aug 9, 2026
25 checks passed
@brokemac79
brokemac79 deleted the codex/csw-111-hourly-hot-fanout branch August 9, 2026 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. P2 Normal priority bug or improvement with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant