Repository navigation
fleet machine placement: expose tiered selection - #16935
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
|
1237-B (alpha DRIVE landings, 2026-11-29): claiming for merge under standing authority. Verified by full-diff read against the PR purpose: additive --select flag (first eligible after tier-then-id ordering, --require filter applies via views), selected record in JSON only when --select, text prints selected/(none); new test proves healthy tier 1 wins over degraded tier 2. No author merge gate in body or comments (only CodeRabbit skip notice); body evidence: 67 tests passed on laptop at this head. CI is not a gate (Drew, 2026-11-29). Merging sha-pinned at 58183c3. |
|
1237-B correction: this PR was already MERGED (2026-11-29T18:40:45Z, merge commit ddbc0ca, by the author app) before my claim comment above landed — I did not merge it. My full-diff verification agrees with the merge. Counted as accounted, not as this lane's merge. |
Summary
--selectto make the machine preference rule executable: select the first eligible machine after tier-then-id ordering, optionally filtered by required capabilities.(none)in text when no machine is eligible.Evidence
python3 -m unittest scripts.test_fleet_machine_placement.MainTests.test_select_json_chooses_first_eligible_machine_from_poolfailed because--selectwas unrecognized (exit 2).PYTHONPATH=/nix/store/4w3qqylc0gssfarw7ydjm4r73n7b97wm-python3.14-pyyaml-6.0.3/lib/python3.14/site-packages python3 -m unittest scripts.test_fleet_machine_placement scripts.test_fleet_machine_watchdog scripts.test_validate_fleet_machine_registry -v— 67 tests passed on the laptop at58183c30ffc.Merge Danger
Low: additive CLI flag and optional JSON field; existing output remains unchanged unless
--selectis requested.{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-29T18:37:43Z", "session_id": "ses_e5dd79b7919ffe0e494s47unUG", "lane": null, "host": "amd", "worktree": "/home/user/git/fleet/any-o-2179-placement-pool", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/user/git/fleet/any-o-2179-placement-pool", "repo": "developing-today/code", "branch": "lane/any-o/2179-placement-pool", "sha": "58183c30ffc636ddfc07ff41b654e2661b37e781" }, "auth_subject": "oc-code-02", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.