Skip to content

fix(opencode-claimant): read and drive the queue through the repo-queue binary - #5419

Merged
dezren39 merged 1 commit into
mainfrom
fix/claimant-binary-direct
Nov 4, 2026
Merged

dezren39 merged 1 commit into
mainfrom
fix/claimant-binary-direct

Conversation

@dezren39

@dezren39 dezren39 commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Fixes #5414. Part of the #5362 binary-direct end state; claimant originally from #3026.

What broke

The binary-direct migration retired repo-queue.py. The laptop opencode-claimant was a missed consumer: poll.py imported the Python file as its queue helper, and prompt.md named it as the CLI for every verb. It has failed closed on every 10-minute fire since (~05:00Z), and the handed_off pile grew to 221 unbound candidates across the pilot queues.

Changes

  • poll.py: candidate discovery now POSTs the queue-broker's /list with rich: true (token from ~/.config/queue-broker/token) instead of importing a helper with a service-role key. Any broker failure raises — fail closed, never guess. Output contract unchanged.
  • prompt.md: the queue CLI is now repo-queue (~/fleet-brokers/bin/repo-queue, direct-broker transport); worker-session instructions name it too.

Broker/client side (already deployed): queue-broker /list gained the rich field set; the repo-queue client gained a direct-broker transport selected by REPO_QUEUE_BROKER_URL / ~/.config/repo-queue/broker-url (home repo c050bd72c). Verified live on the laptop: repo-queue health direct, sandbox proxy path unaffected.

Verification

  • test_poll.py: 36 tests passed.
  • Live poll.py run from this worktree: 221 candidates, cap_room 10, per-queue claimed counts match the queue health table.

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…ue binary (#5414)

The binary-direct migration (#5362) retired repo-queue.py, which poll.py imported as its queue helper and prompt.md named as the CLI for every claimant/worker verb. The claimant has failed closed on every fire since: 221 unbound handed_off candidates had piled up across the pilot queues with no sessions launching.

poll.py now fetches claimed rows through the queue-broker rich /list (no service-role key on the claimant path), and prompt.md names the repo-queue binary (~/fleet-brokers/bin/repo-queue, direct-broker transport) as the queue CLI. The broker/client side landed with the fleet-brokers direct-mode change. test_poll.py: 36 passed; live poll.py run reports the real candidate set and cap room.
@dezren39
dezren39 requested a review from a team as a code owner November 4, 2026 11:24
@coderabbitai

coderabbitai Bot commented Nov 4, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 55 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d960bf46-fac5-4bdd-90b9-1e62e898ae37
Commits

Reviewing files that changed from the base of the PR and between 991bb49 and 1857bed.

Files selected for processing: 2
  • pm-stack/opencode-claimant/poll.py
  • pm-stack/opencode-claimant/prompt.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 merged commit 25f4f09 into main Nov 4, 2026
2 of 3 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T11:26:20.605678Z 1857bed PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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.

opencode-claimant fails closed since the binary-direct migration removed repo-queue.py

1 participant