Title: design(queue): budget-aware claiming — parks carry a minimum required time budget, claim matches the claimer's remaining shift budget · Issue #3418 · developing-today/code · GitHub
Open Graph Title: design(queue): budget-aware claiming — parks carry a minimum required time budget, claim matches the claimer's remaining shift budget · Issue #3418 · developing-today/code
X Title: design(queue): budget-aware claiming — parks carry a minimum required time budget, claim matches the claimer's remaining shift budget · Issue #3418 · developing-today/code
Description: Proposal (Drew, 2026-11-01 ~02:26 CST) Parks should be able to carry a minimum required time budget, and claiming should match tasks against the claimer's remaining shift budget. A task that needs a dedicated full shift should be claimab...
Open Graph Description: Proposal (Drew, 2026-11-01 ~02:26 CST) Parks should be able to carry a minimum required time budget, and claiming should match tasks against the claimer's remaining shift budget. A task that needs ...
X Description: Proposal (Drew, 2026-11-01 ~02:26 CST) Parks should be able to carry a minimum required time budget, and claiming should match tasks against the claimer's remaining shift budget. A task that ne...
Opengraph URL: https://github.com/developing-today/code/issues/3418
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"design(queue): budget-aware claiming — parks carry a minimum required time budget, claim matches the claimer's remaining shift budget","articleBody":"## Proposal (Drew, 2026-11-01 ~02:26 CST)\n\nParks should be able to carry a **minimum required time budget**, and claiming should match tasks against the claimer's remaining shift budget. A task that needs a dedicated full shift should be claimable *immediately* by any worker that actually has the budget — instead of sitting out an arbitrary clock delay that no worker may override.\n\n## Why\n\nThe park mechanism conflates two different waits:\n\n1. **External-wait** — CI, a Codex review, a quota reset. Time is the readiness signal; `not_before` is correct here.\n2. **Capacity-wait** — the work is ready now; the *claimer* is what lacks room. Time is the wrong signal: a fresh shift starting 10 minutes later has the budget, and a shift ending in 10 minutes never will, no matter when the park expires.\n\nTonight's evidence: opencode task 5256 (issue opencode#1014, Drew-prioritized, expedite, effort/l, 120-min timebox) was claimed by a lane near the end of its shift, scoped, and parked 3600s purely so a *future full shift* would take it. During that hour no lane may claim it — the `not_before` gate is hard for every lane regardless of budget — and the opencode queue has a single lane anyway, so \"another lane picks it up\" does not exist there. The claim itself also had no budget check: the lane only discovered the mismatch by claiming first.\n\n## Design sketch\n\n- A park (and a packet) may declare `required_budget_minutes` — the minimum uninterrupted budget a claimer must have. Packet `timebox_minutes` is the natural default source.\n- `claim_repo_task` accepts the claimer's remaining budget (the lane/shift computes it from its own start time and budget cap) and only matches tasks whose requirement fits. Tasks with no requirement behave as today.\n- Lane/shift instructions pass their real remaining budget on every claim — including the first claim of a shift (full budget) and later ones (remainder), so an oversized task is never claimed just to be re-parked.\n- External-wait parks keep `not_before` unchanged; the two conditions compose (both must pass).\n\n## Acceptance\n\n- A capacity-parked task with `required_budget_minutes: 120` is claimable immediately by a worker declaring >= 120 minutes remaining, and is skipped (not claimed, not re-parked) by one declaring less.\n- Lane instructions for all four queues pass remaining-budget on claim.\n- Existing external-wait parks behave exactly as before.\n- Worked example recorded on completion: a 5256-shaped task flowing to the first full-budget shift without a clock wait.\n\nCross-ref: opencode#1014 (the fix whose implementation task surfaced this).\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-01T09:27:24Z","url":"https://github.com/developing-today/code/issues/3418"}
| 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:b8c690d5-529e-dc1a-634e-f3051096c4ae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 84C8:0DF6:97A0CF:C545BD:6B0633C9 |
| html-safe-nonce | 1a52a707fe742b1465c947c202890582d06c9f5ee7fde01448e5778941b75c2d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEM4OjBERjY6OTdBMENGOkM1NDVCRDo2QjA2MzNDOSIsInZpc2l0b3JfaWQiOiI0MDEwMTEzNjcyMTc2NjEyMjk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e128450dcd6b91971e31daf8616d71e4d0e76568d948dec7ba6a749b5b5b722b |
| hovercard-subject-tag | issue:6144897712 |
| 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/3418/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f82f6045a0593a044645fccddeaf05bd26b2bb0cd6a8df92a661895d29d9ef92/developing-today/code/issues/3418 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f82f6045a0593a044645fccddeaf05bd26b2bb0cd6a8df92a661895d29d9ef92/developing-today/code/issues/3418 |
| og:image:alt | Proposal (Drew, 2026-11-01 ~02:26 CST) Parks should be able to carry a minimum required time budget, and claiming should match tasks against the claimer's remaining shift budget. A task that needs ... |
| 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 | c3584c853cd39700ecff6e2cf8364295ffdb5313e571046c41cd2479270f7df0 |
| 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 | 9eb3bb1597d09170a5f282cd38ae376dee1a5ec1 |
| 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