GeezerVison is showing github.com — fix(claimant): send_to_opencode cannot send tasks in the one-queue 'code' stream (whitelist + REPOS lack it) · Issue #9103 · developing-today/code
fix(claimant): send_to_opencode cannot send tasks in the one-queue 'code' stream (whitelist + REPOS lack it) #9103DescriptionProblem
pm-stack/opencode-claimant/send_to_opencode.py cannot send a task that lives in the one-queue stream code:
- Its
--queue argparse choices are restricted to the four pilot queue names (repo-health-code-pilot, repo-health-nix-pilot, repo-health-openchamber-pilot, repo-health-opencode-pilot).
launch_one.REPOS has no code entry, so send() raises KeyError: 'code' at primary = REPOS[queue_name][1] even when the module is driven programmatically.
poll.fetch_claimed_rows(queue) is keyed by the same names, while the one-queue broker (live since 2026-11-11, Queue/lane design rules: no by-id blocking by default, optional platform selector, triage separate from fixes #8097/feat(fleet-queue): one-queue claim matching — unfiltered default, claim-time filters, task requirements (#8097) #8438) serves tasks whose stream is code (e.g. task 15341, claimed unfiltered by a Muse lane).
The #8210 transfer verb itself (fleet queue claim --task <id> --queue code --from-session ... --session-id ...) is stream-agnostic and works — only the claimant-side tooling whitelist is stale.
Evidence (2026-11-12, lane any-b shift)
- Stock CLI dry-run for task 15341 with
--queue repo-health-code-pilot failed verify_claim: "task 15341 is not claimed (by anyone) in repo-health-code-pilot" — the task is claimed in stream code (fleet queue list --queue code --status claimed shows it).
- Workaround used for task 15341: a driver importing
send_to_opencode and registering REPOS["code"] = ("developing-today/code", "/home/user/git/code") on the module's own sibling copy of launch_one completed the send successfully (summit session bound, prompt delivered). Note the trap: send_to_opencode loads its own sibling copy of launch_one via _load_sibling, so patching a separately imported launch_one module does not take effect.
Fix sketch
- Derive the queue/stream set from the broker (or accept any stream name) instead of the hardcoded pilot list; add a
code stream entry mapping to developing-today/code + /home/user/git/code, or resolve repo/primary from the task packet's repo field.
- Add a regression test: send (dry-run) for a claimed task in stream
code passes verify_claim.
- Check
launch_one.py and dispatch_batch.py for the same whitelist assumption.
Activitydeveloping-today commented on Nov 13, 2026 dezren39 commented on Nov 14, 2026 Claimant tooling — same one-queue stream defect in launch_one.py (found 2026-11-14, lane any-b, task 15341)
pm-stack/opencode-claimant/launch_one.py has the same defect class as this issue's send_to_opencode finding:
launch_one.py --launch repo-health-code-pilot:15341 returns {"ok": false, "reason": "not_a_candidate", "detail": ["task 15341 not found in queue repo-health-code-pilot"]} — the lookup misses because in the one-queue store task 15341's queue/stream is code, not repo-health-code-pilot.
launch_one.py --launch code:15341 is refused by its own whitelist: error: bad spec 'code:15341': expected <queue>:<task_id> with queue in ['repo-health-code-pilot', 'repo-health-nix-pilot', 'repo-health-openchamber-pilot', 'repo-health-opencode-pilot'].
Effect: a Muse lane holding task 15341 (Atlas v1 design mill, #9091) cannot re-dispatch the opencode summit session through the sanctioned launcher — both the send tool (this issue) and the launch tool reject or cannot see one-queue code-stream tasks. The fix for this issue should cover both scripts' stream handling (whitelist + task lookup against the one-queue store).
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|