Repository navigation
fix: exact-review backlog stalls during completion bursts - #545
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dc17440f76
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 555025c216
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
| const sleep = dependencies.sleep ?? defaultSleep; | ||
| const attempts = dependencies.attempts ?? 3; | ||
| const timeoutMs = dependencies.timeoutMs ?? 20_000; | ||
| const timeoutMs = dependencies.timeoutMs ?? (command === "reconcile" ? 120_000 : 20_000); |
There was a problem hiding this comment.
Keep reconcile retries within the job timeout
The reconcile workflow is still capped at 5 minutes in .github/workflows/exact-review-reconcile.yml, but this default lets the CLI spend up to 120s on each of the existing 3 attempts, plus the 5s/10s retry sleeps. When the aggregate queue endpoint stalls or times out more than once, the third attempt can run past the job timeout, so Actions cancels the job before the CLI reaches its own failure path and before the always() ledger finalization/upload steps can run. Please either raise the reconcile job timeout or keep the command's worst-case retry time under that job limit.
Useful? React with 👍 / 👎.
|
Landing proof for exact head
The Codex review finding was fixed in Known unrelated gap: |
* fix: restore exact-review throughput * fix: isolate aggregate reconciliation failures
Reverts merge commit c0aa0bc while preserving follow-up openclaw#539 and openclaw#545 behavior.
Closes #544
What Problem This Solves
Fixes an issue where operators draining an exact-review backlog would see throughput collapse during completion bursts, even while worker capacity remained available. Unclaimed dispatches also held capacity for ten minutes before recovery.
Why This Change Was Made
Terminal reconciliation now coalesces overlapping triggers into one running and one pending workflow. Each surviving reconciler processes the bounded live-claim set through paginated workflow-run summaries with exact lookup fallback; dispatch recovery shortens to six minutes and exact capacity rises from 48/44 to 64/60.
User Impact
Exact-review backlogs should keep using available worker capacity instead of stalling behind reconciliation jobs. Four global exact-review slots remain reserved for other target repositories.
Evidence
pnpm run build:allnode --test test/dashboard-worker.test.ts— 113 passedpnpm run build:repair && node --test test/repair/exact-review-action-ledger.test.ts— 10 passednode --test test/sweep-workflow.test.ts— 63 passedpnpm run lintpnpm run check: 1,256 passed, 2 skipped. One unrelated commit-ledger fresh-process test remains failing under Node 24 and Node 26; the Node 26-only runtime-package failure passes under supported Node 24.