Skip to content

fix: exact-review backlog stalls during completion bursts - #545

Merged
steipete merged 2 commits into
mainfrom
codex/exact-review-throughput
Jul 14, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/exact-review-throughput

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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:all
  • node --test test/dashboard-worker.test.ts — 113 passed
  • pnpm run build:repair && node --test test/repair/exact-review-action-ledger.test.ts — 10 passed
  • node --test test/sweep-workflow.test.ts — 63 passed
  • pnpm run lint
  • Autoreview: clean; no accepted or actionable findings.
  • Full pnpm 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.

@steipete
steipete requested a review from a team as a code owner July 14, 2026 04:30

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread dashboard/worker.ts Resolved
@steipete steipete self-assigned this Jul 14, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@steipete

Copy link
Copy Markdown
Contributor Author

Landing proof for exact head 555025c2168d9bfd3dd1b33aa075d11c3bef9144:

  • pnpm run build
  • node --test test/dashboard-worker.test.ts — 113/113 passed
  • git diff --check
  • fresh autoreview on the full branch and follow-up patch — clean, no accepted/actionable findings
  • CI run 29306954226: pnpm check passed in 9m43s; Windows launcher and crawl-remote integration passed
  • CodeQL run 29306954207: Actions and JavaScript/TypeScript analysis passed

The Codex review finding was fixed in 555025c216: optional aggregate lookup failures no longer fail the triggering reconciliation, while requested run ID + attempt lookup failures still return 502. The review thread is resolved.

Known unrelated gap: github activity to openclaw / notify still fails because its expected spam-comment-intake action shard output root is missing. This reproduced across both PR heads and review-event triggers; it is outside this diff and is not a required check.

@steipete
steipete merged commit 2071755 into main Jul 14, 2026
7 of 11 checks passed
@steipete
steipete deleted the codex/exact-review-throughput branch July 14, 2026 05:00
steipete added a commit that referenced this pull request Jul 14, 2026
Reverts merge commit b30773a while preserving follow-up #539 and #545 behavior.
azaj01 pushed a commit to azaj01/clawsweeper that referenced this pull request Sep 21, 2026
* fix: restore exact-review throughput

* fix: isolate aggregate reconciliation failures
azaj01 pushed a commit to azaj01/clawsweeper that referenced this pull request Sep 21, 2026
Reverts merge commit c0aa0bc while preserving follow-up openclaw#539 and openclaw#545 behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exact-review backlog stalls during reconciliation bursts

1 participant