Title: opencode-claimant: the 12-session cap is consumed by lane runners, the claimant itself and an 18h zombie session — so 44 eligible candidates never launch · Issue #5016 · developing-today/code · GitHub
Open Graph Title: opencode-claimant: the 12-session cap is consumed by lane runners, the claimant itself and an 18h zombie session — so 44 eligible candidates never launch · Issue #5016 · developing-today/code
X Title: opencode-claimant: the 12-session cap is consumed by lane runners, the claimant itself and an 18h zombie session — so 44 eligible candidates never launch · Issue #5016 · developing-today/code
Description: Summary The opencode-claimant's 12-session cap is consumed almost entirely by sessions that are not the work it is trying to launch, so the claimant starves: 44 eligible unbound opencode-lane candidates existed at the 2026-11-03 10:10 CT...
Open Graph Description: Summary The opencode-claimant's 12-session cap is consumed almost entirely by sessions that are not the work it is trying to launch, so the claimant starves: 44 eligible unbound opencode-lane candi...
X Description: Summary The opencode-claimant's 12-session cap is consumed almost entirely by sessions that are not the work it is trying to launch, so the claimant starves: 44 eligible unbound opencode-lane c...
Opengraph URL: https://github.com/developing-today/code/issues/5016
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"opencode-claimant: the 12-session cap is consumed by lane runners, the claimant itself and an 18h zombie session — so 44 eligible candidates never launch","articleBody":"## Summary\n\nThe opencode-claimant's 12-session cap is consumed almost entirely by sessions that\nare **not** the work it is trying to launch, so the claimant starves: 44 eligible\nunbound opencode-lane candidates existed at the 2026-11-03 10:10 CT fire and the\ngate closed with `cap_room: 0` for the third fire running (also 15:45Z and 16:03Z).\n\nMeasured at 2026-11-03T16:12-16:13Z, via `GET /api/session/active` + a per-id\n`GET /api/session/\u003cid>` (per-id reads because the list truncates, #4757):\n\n| component | count | note |\n|---|---|---|\n| active root sessions | 14 | 0 children |\n| scheduled lane runners from the 10:00 CT fire | 11 | titles `Queue lane (scheduled) - code/opencode 2026-11-03 10:00` |\n| bound task worker sessions | 1 | task 8067, genuinely running (50 msgs, last message 0.4 min before the check) |\n| **the claimant session itself** | 1 | `ses_e5e5dd34a9fffehVF6gEz57StG`, this fire |\n| unbound orphan session, idle ~18h | 1 | see below |\n\nCap is 12, so the fire was over by 2 and launched nothing.\n\n## Two concrete problems\n\n1. **The claimant counts itself against its own cap.** Each fire is a root session,\n so a fire with plenty of capacity still spends one slot on the gatekeeper. At\n the margin that is the difference between launching and not.\n\n2. **A live-looking zombie holds a slot indefinitely.** Session\n `ses_e5e61b938bfffeywl78cVRVoec`, title `Queue lane (scheduled) - opencode\n 2026-11-02 16:00`, is in `/api/session/active` (`{\"type\": \"running\"}`) with\n **no** `outcome` and no `time.idle`, but its last message is\n `2026-11-02T22:18:51Z` (~17.9 h idle). No task row carries its id in\n `progress.session_id` (ledger query returns `[]`), i.e. it is not a bound\n task session, so supervision correctly will not touch it and no worker owns\n it. It simply occupies one of the 12 slots.\n\n## Secondary\n\n`poll.py` reported `live_root_sessions: 50` — exactly the `GET /api/session`\npage size — so the fleet total is still truncated (#4757). `cap_room` itself is\ncomputed from `/api/session/active`, which is unaffected, so the gate is not\nwrong here; only the reported total is.\n\n## Asks\n\n- Decide whether the claimant's own session (and scheduled lane-runner\n sessions) should count against the 12-session cap, or whether the cap should\n count *launchable work* instead. Same question applies to the opencode lane's\n admission control (#1187).\n- Give the fleet watchdog a disposition rule for sessions the server reports\n `running` with no terminal marker and no activity for hours, that are bound to\n no task row: cancel/close them so the slot returns.\n- Note for the parallel-run gate (#3026 slice 2): while 11 lane runners can be\n in flight at once, the claimant's cap room is structurally near zero, so\n slice 2 cannot be evaluated on launch counts alone.\n\n## Evidence\n\nFire log lines: `~/.local/state/opencode-claimant/fires.jsonl` at\n`2026-11-03T16:12:52Z` (fire) and its `16:13Z` supplement (cap composition +\nstall report). Read-only fire; nothing was claimed, bound, launched or mutated.\n\n## Acceptance criteria\n- The claimant's session-cap accounting no longer counts the claimant's own fire session against the cap it enforces (or the cap is explicitly defined to include it and the starvation math is re-derived and documented).\n- Sessions present in `/api/session/active` with no queue binding, no outcome, and no activity beyond a stated staleness threshold are reaped or explicitly owned, so a zombie cannot hold a cap slot indefinitely.\n- A claimant fire with eligible unbound candidates and real capacity launches work; the `cap_room: 0` starvation measurement from 2026-11-03T16:12Z no longer reproduces under the same session mix.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-03T16:14:13Z","url":"https://github.com/developing-today/code/issues/5016"}
| 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:7a1b0959-640f-f265-cb67-69bb9ee372d2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 80CC:3373A3:8F7F85:B8BD0C:6B062EE1 |
| html-safe-nonce | 1c70320846c69f613f43565b87251a91dbcab3ac272d6360c28fa59c8ef910f4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MENDOjMzNzNBMzo4RjdGODU6QjhCRDBDOjZCMDYyRUUxIiwidmlzaXRvcl9pZCI6IjIyMjgxODE0Mjk1NDI4NTg0NjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6746a9f8c12eb4fc4efbe658eafed9cecb8843f3f0c489be56aaa1cc6604b2a9 |
| hovercard-subject-tag | issue:6186545329 |
| 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/5016/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2add902fcb3c37670cd31d3bcb117eaaffde9817060efb23685368be4b101316/developing-today/code/issues/5016 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2add902fcb3c37670cd31d3bcb117eaaffde9817060efb23685368be4b101316/developing-today/code/issues/5016 |
| og:image:alt | Summary The opencode-claimant's 12-session cap is consumed almost entirely by sessions that are not the work it is trying to launch, so the claimant starves: 44 eligible unbound opencode-lane candi... |
| 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 | 7f961de5dd5c5d4aca24d33f8b3ffb3fb8b2ef53d0a4f32f01f0a790e512f6d3 |
| 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 | 494ea0bb1e0feef734a83e2628697647755e8864 |
| 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