Skip to content

opencode-claimant: launch-time binding wiring (#3026) - #4461

Merged
dezren39 merged 1 commit into
mainfrom
feat/3026-claimant-launch-binding
Nov 2, 2026
Merged

dezren39 merged 1 commit into
mainfrom
feat/3026-claimant-launch-binding

Conversation

@dezren39

@dezren39 dezren39 commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Closes the claimant wiring gap found in the #3026 parity audit: assign_repo_task_lane never stamped tasks.progress.lane, so poll.py candidate discovery saw zero candidates for the claimant's entire live life (enabled 2026-10-31, mode live, zero launches ever) while the conductor kept doing every launch and terminal-time binding sat at ~47% over the last 48h (8/17).

  • Migration 0021 (already applied to Supabase muse-dev; SQL recorded in pm-stack/opencode-claimant/migration-0021.sql): assign stamps progress.lane (+ claimed backfill); new bind_repo_task_lane_session RPC binds ledger + progress atomically at launch and refuses to overwrite a different binding.
  • poll.py: is_candidate() extracted + tested; OpenChamber-lane self-claims (UUID lane_id) excluded so the claimant can never double-launch a task an OC lane is itself executing.
  • prompt.md step 4c / README: launch binding via the new repo-queue.py bind verb (hatch 544626e).
  • Tests: python3 -m unittest pm-stack.opencode-claimant.test_poll -> 20/20 OK.

Refs #3026 (stand-down gate evidence follows on the issue).


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

Migration 0021 (applied to Supabase muse-dev, agent schema; SQL in
migration-0021.sql):
- assign_repo_task_lane now stamps tasks.progress.lane (plus a
  claimed-task backfill): the assignment previously lived only in the
  ledger, so poll.py candidate discovery (progress.lane) saw zero
  candidates for the claimant's entire live life and it never
  launched a session.
- New bind_repo_task_lane_session RPC: one atomic call writes the
  session id into the ledger AND progress at launch, refusing to
  overwrite a different binding. repo-queue.py gained a bind verb
  (hatch 544626e) to call it.

poll.py: candidate filter extracted as is_candidate(); tasks claimed
by OpenChamber scheduled lanes themselves (UUID lane_id) are excluded
- those lanes are opencode sessions executing their own claims, so a
claimant launch would double-execute. Tests: 20/20 pass (6 new).

prompt.md step 4c + README: bind via the helper bind verb instead of
the manual PATCH-then-record sequence.
@dezren39
dezren39 requested a review from a team as a code owner November 2, 2026 16:43
@dezren39
dezren39 merged commit c403aad into main Nov 2, 2026
1 check passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 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-02T16:44:14.272024Z f440fb2 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.

@coderabbitai

coderabbitai Bot commented Nov 2, 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 24 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: 8341a4d5-4929-4ffd-91d0-2aa7053eb979
Commits

Reviewing files that changed from the base of the PR and between fbef4cb and f440fb2.

Files selected for processing: 5
  • pm-stack/opencode-claimant/README.md
  • pm-stack/opencode-claimant/migration-0021.sql
  • pm-stack/opencode-claimant/poll.py
  • pm-stack/opencode-claimant/prompt.md
  • pm-stack/opencode-claimant/test_poll.py
  • 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

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.

1 participant