Skip to content

fix(opencode-claimant): make handed-off tasks actually bind and execute (task 13488) - #7834

Merged
developing-today[bot] merged 4 commits into
mainfrom
queue/13488-claimant-binding
Nov 8, 2026
Merged

developing-today[bot] merged 4 commits into
mainfrom
queue/13488-claimant-binding

Conversation

@developing-today

@developing-today developing-today Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

The opencode execution lane has never bound a handed-off task through claimant.py: lanes hand off, the claimant fires, and nothing launches. Four defects compounded:

Fixes:

  • poll.py reads claimed rows from the broker's /list with rich: true (URL/token resolved exactly as the fleet client resolves them), lifts the yield stage from last_checkpoint, and exposes payload as the candidate packet. Fail-closed semantics unchanged: an unreadable queue contributes no rows.
  • claimant.py supervision reads rows through poll.py; launch_step in shadow mode records the would-launch window as skips and mutates nothing; the live launch creates the session with auth, binds it, then delivers the prompt via POST /api/session/{id}/prompt with message-reconcile before any resend, flagging the launch entry when the prompt cannot be landed. Session responses unwrap the v2 data envelope.
  • fleet-queue: rich /list selects payload on both the Turso and PostgREST paths and parses it as JSON (Turso).

Verification (laptop): python suites 60/60 pass (test_poll + test_claimant, incl. new coverage for the broker read, stage lift, payload packet, shadow no-mutation, prompt-failure flagging and prompt reconcile). Live read-only smoke of the fixed poll.py against the production broker: 22 candidates across the queues (was 0 all day), cap_room 35, no poll warnings.

Queue task 13488 (the claimant-binding fix task; its packet names #1187, the dispatch design this claimant implements).

Fixes #7325
Fixes #7375
Fixes #7366
Fixes #7356
Fixes #7706


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

@developing-today
developing-today Bot requested review from a team and dezren39 as code owners November 8, 2026 22:36
@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

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: 0303c212-da39-4efd-9b52-ab5f0fddc4ac

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • 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 commented Nov 8, 2026

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T22:49:00.431937Z 8a0588f Manual request
ℹ️ 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.

@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: bfb084beba

ℹ️ 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 pm-stack/opencode-claimant/claimant.py Resolved
@dezren39

dezren39 commented Nov 8, 2026

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 8a0588f1a9

ℹ️ 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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment