Repository navigation
draft: optional exact-review background-yield experiment - #542
brokemac79 wants to merge 8 commits into
Conversation
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs real behavior proof before merge. Reviewed July 14, 2026, 6:55 AM ET / 10:55 UTC. Summary Reproducibility: not applicable. This PR proposes an optional scheduling mode rather than reproducing a current-main bug, and it explicitly distinguishes itself from the incident fixed by #545. Review metrics: 3 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Land or evaluate the observation-only telemetry separately through #555, then keep any scheduler experiment narrowly default-off and require a maintainer-defined controlled trial with thresholds, success metrics, rollback criteria, and redacted live Actions evidence. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR proposes an optional scheduling mode rather than reproducing a current-main bug, and it explicitly distinguishes itself from the incident fixed by #545. Is this the best way to solve the issue? Unclear pending product direction: the implementation is plausibly narrow and default-off, but observation-only telemetry should remain separate and the cross-workflow policy needs controlled runtime proof before it can be considered the best solution. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ecc6d03d1ec7. Label changesLabel justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
Review history (6 earlier review cycles)
|
d15930f to
a9c28bb
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
7b30afc to
07ead33
Compare
07ead33 to
5e78721
Compare
Status
Draft — do not merge or enable yet. This is an optional scheduler experiment,
not the production repair for the exact-review backlog incident.
Relationship to the incident work
recovery work: it increased exact-review admission/recovery capacity and
reconciles completion pressure. This branch is rebased on current
main,which includes that PR.
while state/action-ledger publication and lease completion were blocked. This
PR does not repair that state-publication path and cannot create another
exact-review slot.
mainalso includes the rollback of feat(ledger): record ClawSweeper action lifecycles #521's action-lifecycleexpansion. This branch preserves that rollback rather than restoring it.
Proposed optional behavior
The experiment is disabled unless a maintainer explicitly sets this repository
variable to exactly
1:With the variable unset, the changed planners retain their ordinary
per-target/independent admission groups, do not fetch exact-review pressure,
and pass
idlepressure to the scheduler. Exact-item planners remainindependently admitted.
With the variable enabled, healthy, fresh exact-review telemetry can reduce
broad background review allowance to the configured 16/4 caps while the
exact-review lane is full and has admissible pending work. Missing, malformed,
or stale telemetry fails open. Continuations are admitted again and re-evaluate
the cap; background target-sweep fanouts preserve per-target planner grouping.
The supporting limits, dashboard telemetry, and tests are included so a future
controlled rollout can measure that policy. No variable, gate, or production
workflow setting is changed by this PR.
Non-goals
lease completion.
Rollout decision
Keep this PR draft. Before considering a limited maintainer-owned trial, agree
the policy values and collect runtime evidence for: fresh-pressure throttling,
stale-telemetry fail-open behavior, bounded deferral/requeue, automatic broad
work resumption, exact backlog slope, and publish-to-lease-completion latency.
Do not enable the variable as part of this PR.
Validation
node --test --test-name-pattern "sweep review continuations reapply|background review schedulers yield|background-yield admission" test/sweep-workflow.test.ts— 3 passed.node --test test/repair/workflow-utils.test.ts test/dashboard-worker.test.ts— 155 passed.pnpm check:limitsandgit diff --check origin/main...HEAD— passed.pnpm run checkcompleted active-surface, limits, build, and lint. Its unitstage is not runnable on this Windows host because the default WSL image has
no
/bin/bash; a raw Linux Node 24 container reached the same stage but lacksjqrequired by unrelated shell-fixture tests. No platform or line-endingchange is included here.
codex review --uncommitted— final clean after accepting and fixing thetarget-fanout admission finding.
codex review --base origin/main— clean: no actionable correctness issues.actionlintwas not installed in the local environment; workflow syntax andthe static workflow assertions above were exercised instead.