Repository navigation
docs: correct scheduler fallback arithmetic - #1098
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, 10:21 AM ET / 14:21 UTC. ClawSweeper reviewWhat this changesUpdates scheduler-capacity documentation and its documentation-sync manifest to distinguish live queue capacity from bounded fallback offers and correct the stated admission limits. Merge readinessKeep open: current main still documents the stale 20-candidate/200-review example and incorrect hourly fanout arithmetic, while this PR provides a narrow, source-aligned correction. The only remaining landing concern is coordinating its overlapping documentation edits with #1097. Priority: P3 Review scores
Verification
How this fits togetherScheduled fanout reads available capacity from the exact-review queue, apportions candidate selection across repositories, and sends selected items into durable admission. The edited documentation and sync manifest explain that behavior and keep operator-facing examples tied to production settings. flowchart LR
A[Queue capacity] --> B[Scheduled fanout]
B --> C[Candidate allocation]
C --> D[Durable review queue]
D --> E[Review admission]
B --> F[Operator documentation]
F --> G[Documentation sync check]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the source-aligned documentation correction, rebasing the second of the two overlapping PRs and rerunning the documentation checks after conflict resolution. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR changes documentation and documentation-validation data, not a runtime behavior requiring reproduction. Is this the best way to solve the issue? Yes: it preserves the runtime as the source of truth, corrects the derived examples, and adds a focused check against the production admission values. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0559e03857fa. 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
History |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Summary
What Problem This Solves
docs/limits.mdstill described the pre-current fallback and admission values.docs/scheduler.mdcalled50 × 12 = 600an hourly normal-fanout value even though normal fanout runs every 10 minutes.Source inspection also found an important qualification: the 50-per-target multiplication is not the ordinary live-capacity path. Normal fanout ordinarily divides one queue-advertised candidate-capacity budget across selected repositories.
50 × 12is the bounded fallback only when the queue-capacity probe is unavailable.Why This Change Was Made
The corrected wording follows current source and workflow behavior:
src/repair/target-fanout.tsdefinesSCHEDULED_REVIEW_PLAN_BATCH_SIZE = 50.availableCandidateCapacitywhen present and divides that shared budget across selected repositories.50 × min(12, selected repositories)..github/workflows/sweep.ymlruns normal fanout at41/10 * * * *with a 12-target limit.dashboard/wrangler.tomlconfiguresEXACT_REVIEW_TARGET_RATE_PER_HOUR = 300andEXACT_REVIEW_TARGET_BURST = 30.The offer ceilings are upstream candidate ceilings, not admitted review throughput. Due filtering, planner capacity clamping, dedupe, queue backpressure, and Worker admission can all reduce them; the Worker admits at most 300 scheduled reviews per hour.
User Impact
Operators and maintainers get source-aligned scheduler capacity examples. Runtime behavior is unchanged.
Validation
pnpm run check:docs— passedpnpm run check:limits— passedpnpm run build— passedgit diff --check origin/main..HEAD— passedpnpm run codex:local:check— passedReview Proof
Current defaultsbullet still described 50 items per target without distinguishing live shared capacity from fallback behavior. The finding was accepted. During the required committed-base review, the first wording fix was further corrected to avoid presenting 50 as a per-repository allocation cap: direct single-target fallback is 50 candidates, while normal fanout creates a pooled50 × selected target countfallback and apportions it by backlog.pnpm run review -- --local-range --target-repo openclaw/clawsweeper --base origin/main—review_status: complete, high confidence, patch correct, no findings; reviewed main0559e03857fa9a9a6de28c984ed495287ec3b9ccand headd8a47bc68a380bb5ebf8a3830963b7dda170512a. The local generic classifier marked proof missing becauseconfig/documentation-sync.jsonis outsidedocs/; repository policy and the live review apply the docs-only proof exception to this documentation-sync manifest change, with the executable checks above as proof.Real Behavior Proof
Not applicable. Every changed surface is documentation or documentation-sync configuration; no runtime, workflow, queue, API, UI, package, or integration behavior changes. The focused executable proof is
pnpm run check:docs,pnpm run check:limits, and the build.Overlap and Landing Order
Draft PR #1097 also touches
docs/limits.md,docs/scheduler.md, andconfig/documentation-sync.json, but for the separate production publication-capacity rollback (8/32/40versus50/50/50). This PR does not change publication policy, Goal B rate limiting, queues, workflows, config values, gates, or production state.Either PR may land first because their semantic changes are independent. The second PR must rebase onto current
main, preserve both sets of documentation changes, rerun the docs/build/diff checks, and repeat the required review gate before its next push. Neither branch should overwrite the other's prose or manifest claims.Risks and Rollback
Risk is limited to documentation accuracy and a deterministic docs-sync claim. Revert commits
d8a47bc68a380bb5ebf8a3830963b7dda170512aand52f76a07fa55843f7907f2b01775bf601de4d95bto roll back. No production state or configuration rollback is involved.Non-goals
8/32/40or50/50/50)Related: #1097