Repository navigation
Placement framework v1.1: the machine dimension — registry placement reader + rules M1–M5 (#2179) - #12815
Merged
Conversation
added 2 commits
November 23, 2026 03:11
…staleness demotion (#2179) scripts/fleet-machine-placement.py derives the placement view of every registry record: declared-state gate (§2/§4), the watchdog's placement_view health rule imported not reimplemented (§1.5: stale or never-seen reads as left), eligibility tiers (healthy 1, degraded 2), and declared-capability requirements (§1.4). Validates the registry first; strict #3352 argument contract. 21 tests, oracle = onboarding standard §1.4/§1.5/§2/§4 + framework §8.
§8 of the task-placement framework: placement gains its third step (option, pool/route, machine) on the #2179 registry shape — rules M1-M5, the placement record's machine/machine_view fields, and the two v1.1 decisions recorded for the review round (degraded eligible at tier 2; unknown not eligible). placement-policy.yaml transcribed in the same pass per its header rule (version 1.1, machines section).
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 3 minutes. View limit details
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Placement framework v1.1 — the machine dimension (#2179)
The slice the onboarding standard (§5/§6) and the task-placement framework (§6) both named once the registry shape existed: placement gains its third step. Option (§2 of the framework), pool/route (§3), now machine. The registry artifact (PR #12717) and the watchdog (PR #12758, now running every 15 min from Felix's seat) are the inputs; this PR is the reader + the rule.
What lands
scripts/fleet-machine-placement.py— derives the placement view of every registry record, for schedulers to consume:activerecords may receive work —declared/joininghaven't passed §2 steps 5–6,drainingtakes no new work,retiredis terminal. Evaluated before health.placement_view, imported, not reimplemented — the §1.5 rule has exactly one home. Fresh health reads as its earned status;last_seenolder than two cadences (30 min) or absent reads asleft.--require NAMEkeeps only machines declaring that capability — declarations, never probes.Framework doc §8 +
placement-policy.yamlv1.1 — the rules above written into the task-placement framework (the doc §6 deferred them to exactly this), the policy transcription amended in the same pass per its header rule, and the placement record gainsmachine/machine_viewfields.Two v1.1 decisions, flagged for review (recorded in §8)
Evidence
FileNotFoundError: scripts/fleet-machine-placement.py— the module does not exist on main; the suite cannot load.6da9528e0, health written 2026-11-23T03:10:29Z — reachable ok with server HTTP 200, disk ok at 548 GB free / 16.2% after the purge, load_headroom failed at 31.06 load15 = 1.94/core, sessions 50 listed / 31 active, cap 12):So from live data: the pool's one node is placeable at tier 2 right now (degraded on load under the 4–8-lane scale-up), and the staleness demotion bites exactly at the §1.5 boundary.
Boundaries kept
No machine's declared state is changed by this PR (amd-6 was already
activefrom its S1 record; nothing is recordedactivehere — the Osseo pass, #1095/#1097/#1099/#1101, is hands-gated and hasn't happened). The watchdog script and the registry's health block are untouched — the reader importsplacement_viewand only reads the registry. No scheduler consumes the reader yet; wiring the first consumer is the follow-on, and the tiers only bite when a second node passes §2.Refs #2179 (the v1.1 remainder), #2024 (framework review round).
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.