Repository navigation
Description
Found 2026-11-08 by queue worker lane code-a during the code#5362 broker cutover verification (task 12731), verified against both queue-client binaries on the laptop:
Defect. repo-queue list --queue <q> --status claimed emits a human-readable table (columns: task / priority / status / age / dedupe_key / title), but both opencode-claimant consumers parse its stdout as JSON:
pm-stack/opencode-claimant/poll.pyfetch_claimed_rows(~line 296):json.loads(result.stdout)— the parse fails ("Expecting value: line 1 column 1 (char 0)"), the function warns and returns [], so every queue contributes zero candidates and zero stuck-bound rows. Fail-closed by design, but candidate discovery is silently a no-op.pm-stack/opencode-claimant/claimant.py(~line 189-200): same call, samejson.loads, in the live-mode recovery path.
Not a cutover regression. During task 12731 the outputs of the hand-built ~/fleet-brokers/bin/repo-queue list and the packaged alias ~/.local/bin/repo-queue list were diffed byte-for-byte: identical (22 lines, same table). The mismatch exists with both binaries; the claimant mode file currently reads as the default/shadow state, so the live recovery path may not have exercised it yet.
Fix shape (either side). Give the queue client's list verb a machine-readable mode (e.g. --json / format env the claimant sets) emitting the row JSON the consumers already expect (a list, or {"rows": [...]} — poll.py accepts both), or change both consumers to parse the table. The client side is preferable: claim/checkpoint already emit JSON, so list is the inconsistent verb.
Acceptance: a supervised poll.py dry pass on the laptop completes with no "Could not poll queue" warnings and returns the real claimed-row counts for the four pilot queues; claimant tests cover the parse against a captured real list output fixture.
Acceptance criteria
poll.py's candidate discovery returns the actually-claimed rows for a queue (a fire against a queue with claimed tasks yields non-zero candidates and stuck-bound rows, not silent zeros).claimant.py's live-mode recovery path reads the same rows successfully.- The fix is on one side of the seam, chosen and recorded: either
repo-queue listgains a machine-readable (JSON) output the claimant uses, or both claimant consumers parse the table — the two sides cannot drift again without a test failing. - A regression test pins the producer/consumer format contract for the claimed-rows read.
Activity
developing-today commentedon Nov 8, 2026
CODE-2270
dezren39 commentedon Nov 8, 2026
🤖 Agent note · design-architect pass 74 — adopted as a phase of design #7770
files/designs/code-claimant-seam-contract.mdin the keep-the-four-repos-healthy goal workspace. Audit at origin/mainb64288a567.dezren39 commentedon Nov 8, 2026
Intake review
Related: sibling queue-seam filings #7325 (poll cannot read the queues — the same table-vs-JSON mismatch from the poll side) and #7355 (chunked list response silently empty); the seam-contract design #7770 names this filing as one of its eight.
Live check: found today by queue worker lane code-a during the #5362 broker cutover verification (task 12731), verified byte-for-byte against both queue-client binaries on the laptop; no merged fix in this run's scan. The filer verified this is not a cutover regression — the mismatch predates it.
Notes / risks: fail-closed-by-design turned a format mismatch into silent blindness: discovery no-ops while every health signal looks fine. Whichever side changes, the other fleet consumers of
listoutput must be checked for the same assumption.Suggested approach: prefer a
--jsonoutput on the client (the claimant is not the only programmatic consumer), switch both claimant call sites, and add the contract test.— fleet monitor (repo-fleet-monitor), 2026-11-08 12:12 CST run: acceptance criteria appended to the body, labels normalized,
meta/enrichedapplied.developing-today commentedon Nov 8, 2026
agent-note:v1 — task 13731 (lane code-l) — triage verdict: ALREADY DONE
Fresh verification 2026-11-08: issue #7375 is CLOSED (status:done). The defect it filed — claimant
poll.py/claimant.pyJSON-parsing the repo-queue client's table-formatlistoutput, so candidate discovery silently no-opped — was fixed by PR #7834 ("fix(opencode-claimant): make handed-off tasks actually bind and execute (task 13488)"), MERGED 2026-11-08T22:52:34Z at 1aea9b5; its body names #7325 and #7375 explicitly, and this issue closed at 22:52:36Z on that merge. The filing was also adopted into the seam-contract design #7770. No further work is scoped here; task 13731 completes asalready_donewith PR #7834 as evidence.dezren39 commentedon Nov 11, 2026
🤖 Agent note · Phase 4 evidence (design #7770 closing audit, issue #7772, task 14782)
pm-stack/opencode-claimant/README.md(PR claimant: #7770 Phase 4 closing audit — seam contract, fire-log unknowns, stub-shape fix (#7772) #8367): queue rows are read via the broker's rich/list(poll.py_broker_post/_fetch_rows,rich: true, limit 500) with the yield lifted fromprogress.last_checkpoint.stageper opencode-claimant(poll): candidate filter reads progress.stage, but the checkpoint verb writes progress.last_checkpoint.stage — ~60 recorded yields invisible per fire, stale stages offered unsafely #7706 option A (normalize_rowonly lifts when no live stage is set, so a live later stage vetoes a stale yield).eb1f9987eb), and the CLI still has no JSON list mode (verified live 2026-11-11:listprints the human table). The pin's intent is met; the letter is not — recorded on Act only on a verified read — one seam contract for the opencode-claimant #7770 for the design thread.candidates_seen: null(PR claimant: #7770 Phase 4 closing audit — seam contract, fire-log unknowns, stub-shape fix (#7772) #8367).