Skip to content

fleet machine placement: expose tiered selection - #16935

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
lane/any-o/2179-placement-pool
Nov 29, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
lane/any-o/2179-placement-pool

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add --select to make the machine preference rule executable: select the first eligible machine after tier-then-id ordering, optionally filtered by required capabilities.
  • Include the selected record in JSON output; report (none) in text when no machine is eligible.
  • Add a multi-machine CLI test proving healthy tier 1 wins over degraded tier 2.

Evidence

  • Before: python3 -m unittest scripts.test_fleet_machine_placement.MainTests.test_select_json_chooses_first_eligible_machine_from_pool failed because --select was unrecognized (exit 2).
  • After: 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 at 58183c30ffc.

Merge Danger

Low: additive CLI flag and optional JSON field; existing output remains unchanged unless --select is 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-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7ad7cf1a-00e8-4e4f-b0f8-7cd734bbd53d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@developing-today-fleet
developing-today-fleet Bot merged commit ddbc0ca into main Nov 29, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the lane/any-o/2179-placement-pool branch November 29, 2026 18:40
@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

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.

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants