Title: repo-queue: `claim` (and `list`/`health`) silently default to the shadow queue — the trap `enqueue` was hardened against · Issue #7358 · developing-today/code · GitHub
Open Graph Title: repo-queue: `claim` (and `list`/`health`) silently default to the shadow queue — the trap `enqueue` was hardened against · Issue #7358 · developing-today/code
X Title: repo-queue: `claim` (and `list`/`health`) silently default to the shadow queue — the trap `enqueue` was hardened against · Issue #7358 · developing-today/code
Description: Symptom repo-queue claim with no --queue silently claims from repo-health-code-shadow, the shadow queue. In a session with no REPO_QUEUE_DEFAULT_QUEUE set: $ repo-queue claim --worker opencode-claimant { "id": 10744, "queue": "repo-healt...
Open Graph Description: Symptom repo-queue claim with no --queue silently claims from repo-health-code-shadow, the shadow queue. In a session with no REPO_QUEUE_DEFAULT_QUEUE set: $ repo-queue claim --worker opencode-clai...
X Description: Symptom repo-queue claim with no --queue silently claims from repo-health-code-shadow, the shadow queue. In a session with no REPO_QUEUE_DEFAULT_QUEUE set: $ repo-queue claim --worker opencode-clai...
Opengraph URL: https://github.com/developing-today/code/issues/7358
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"repo-queue: `claim` (and `list`/`health`) silently default to the shadow queue — the trap `enqueue` was hardened against","articleBody":"## Symptom\n\n`repo-queue claim` with no `--queue` silently claims from `repo-health-code-shadow`, the **shadow** queue. In a session with no `REPO_QUEUE_DEFAULT_QUEUE` set:\n\n```\n$ repo-queue claim --worker opencode-claimant\n{ \"id\": 10744, \"queue\": \"repo-health-code-shadow\", \"title\": \"Fix #6366: per-unit ...\" }\n```\n\n`repo-queue list` / `health` inherit the same default, so a bare read also looks at the shadow queue and reports a healthy, nearly-empty view while the four pilot queues hold 180+ claims.\n\n## Why it matters\n\nThis is the same trap that `enqueue` was explicitly hardened against — `resolve_enqueue_queue` (client.rs:938-961) resolves flag → packet → env and **fails loudly** rather than defaulting, with the comment:\n\n> `enqueue` queue resolution (#7016, the shadow-default trap): ... There is deliberately NO built-in default for enqueue: with none of the three the enqueue fails loudly instead of silently landing in the shadow queue — the failure that misrouted ~291 tasks on 2026-11-07.\n\n`claim` never got that treatment: `opt_queue` (client.rs:781) falls back to `DEFAULT_QUEUE = \"repo-health-code-shadow\"` (client.rs:26).\n\n## Evidence it is already happening fleet-wide\n\nFour rows in `repo-health-code-shadow` carry progress notes written by scheduled lanes that made exactly this mistake:\n\n| task | progress.note |\n|---|---|\n| 8675 | \"Accidental no-argument claim selected a task from repo-health-code-shadow instead of the requested repo-health-code-pilot. No task work performed...\" |\n| 8685 | \"park immediately: this claim came from repo-health-code-shadow, not the requested pilot queue\" |\n| 9431 | \"release accidental bare-claim probe immediately; no task work started\" |\n| 10744 | \"park immediately; accidental claim came from invoking repo-queue claim without queue/lane flags\" |\n\nEach of those burned a shared claim + lease on a shadow task, and each then needed a manual park to release it. Two of them were re-claimed by the same trap more than once (8685 at attempts 2/4, 10744 at 4/4).\n\n## Impact on this consumer\n\nThe opencode-claimant packet mandates `--worker opencode-claimant` on every verb. A fire that follows the packet but runs `claim` from the wrong working context mutates the shadow queue instead of the pilot queues — and because the claim is a write, the claimant's \"discover, do not mutate\" shadow-mode rule is violated silently.\n\n## Proposed fix\n\nGive `claim` (and, for consistency, `list`/`health`) the same resolution `enqueue` uses: `--queue` flag → `REPO_QUEUE_DEFAULT_QUEUE` → **error naming the flag**, with the shadow queue reachable only by passing it explicitly. Alternatively keep a default for `list`/`health` (harmless reads) but make `claim` — the write that burns a lease and allocates work — require an explicit queue.\n\n## Verification\n\n```\n$ repo-queue claim --worker opencode-claimant\nrepo-queue: claim: no queue resolved — pass --queue or set REPO_QUEUE_DEFAULT_QUEUE\n$ repo-queue claim --worker opencode-claimant --queue repo-health-code-shadow\n# proceeds explicitly\n```\n\nRelated: #7016 (the shadow-default trap for enqueue), #7325 / #7355 (the claimant's own read path), #3026 (slice 1).\n\n## Acceptance criteria\n\n- `repo-queue claim`, `list`, and `health` with no `--queue` and no env/packet queue fail loudly with a clear error — they never silently operate on `repo-health-code-shadow` (the `enqueue` / `resolve_enqueue_queue` treatment from #7016, applied to every verb).\n- With `--queue` (or the env/packet resolution) supplied, all three verbs behave exactly as today.\n- A regression test pins the no-default behaviour for claim, list, and health.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-08T06:41:56Z","url":"https://github.com/developing-today/code/issues/7358"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fd6eb5e5-0f9b-7ecd-9560-2c255f48fd1e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A3E2:43776:2FEDA5:408D6E:6B06182C |
| html-safe-nonce | 30e9920c8e6ea04a95e76e92635461200b132db374a85ca0ca0c70d986b3cfa3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0UyOjQzNzc2OjJGRURBNTo0MDhENkU6NkIwNjE4MkMiLCJ2aXNpdG9yX2lkIjoiMjQ4MzQ3NDU5NDg1NDczNzk2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3cbe5d81111d7f525845b257478eb66a287bc9ade4cd89946ea9c70d34b24c11 |
| hovercard-subject-tag | issue:6268423011 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/7358/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c64560749020100834efd822f3d1cf5a79547ed92fe78ba6032340aee4ff0db7/developing-today/code/issues/7358 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c64560749020100834efd822f3d1cf5a79547ed92fe78ba6032340aee4ff0db7/developing-today/code/issues/7358 |
| og:image:alt | Symptom repo-queue claim with no --queue silently claims from repo-health-code-shadow, the shadow queue. In a session with no REPO_QUEUE_DEFAULT_QUEUE set: $ repo-queue claim --worker opencode-clai... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width