# 073 - Queue Override ## User Story As the operator, I want to start one waiting queue job at once from the hub, so that a gate does not wait on a budget I accept to exceed. ## Decisions (operator-confirmed 2026-11-27; do not re-litigate) 1. **Budget only** (operator): the override skips `budget_percent`, slot limits, reservations and rank; the live guard (`load_limits` CPU and memory) and the free-disk check stay. Rejected: skipping everything (out of memory, full disk); a warning step before the start (one more click). 2. **One job, one signature**: a "Start now" button on every waiting job in the Queue tab (072) and on its Kanban card; the passkey signs the job id; the host runner runs `queue.py override ` by argv. 3. **Honest learning**: `queue.py override ` marks the entry `{"override": {"ts": }}`; the next grant pass grants it ahead of rank while the live guard allows; its history row records `override: true`. ## Approach ```mermaid flowchart TD subgraph P["๐Ÿงญ 0 ยท Preparation"] P1["๐Ÿ“‹ Write requirement"] --> P2{"โœ… Operator approves?"} P2 -- "โœ๏ธ corrections" --> P1 end P2 -- "๐Ÿค– yes" --> A1 subgraph A["โฉ A ยท queue.py"] A1["๐Ÿท๏ธ override marks the entry"] --> A2["๐Ÿšฆ Grant pass skips budget, keeps live guard"] A2 --> A3{"๐Ÿงช Unit tests green?"} A3 -- "๐Ÿ”ด no: fix" --> A1 end A3 -- "๐ŸŸข yes" --> B1 subgraph B["๐Ÿ–ฑ๏ธ B ยท Hub"] B1["๐Ÿ” Start now, signed"] --> B2{"๐Ÿงช Integration and E2E green?"} B2 -- "๐Ÿ”ด no: fix" --> B1 B2 -- "๐ŸŸข yes" --> BF{"๐Ÿ’ฌ Operator feedback?"} BF -- "โœ๏ธ changes" --> B1 end BF -- "๐Ÿ‘ fits" --> D1["๐Ÿ Review, commit with operator OK, hand-over"] ``` ## Acceptance Criteria ### Queue - [ ] An overridden queued entry is granted on the next pass although the budget would hold it. - [ ] With CPU busy at or above `load_limits.cpu_percent` it still waits, and its reason names the live guard. - [ ] `queue.py override` of an unknown or running id exits 2 and changes nothing. - [ ] The job's history row carries `override: true`. ### Hub - [ ] "Start now" signs once; the card shows the job granted within one poll. ### Tests - Unit: - [ ] The grant pass with and without override, and the live guard. - Integration: - [ ] The signed override job through the HTTP handler and the runner's argv. - E2E: - [ ] `tests/e2e/test_queue_override_e2e.py`: "Start now" on a waiting fixture job, screenshots at 1920, 1366 and 390.