Repository navigation
fleet: machine registry artifact with amd-6 as first record (#2179) - #12717
Merged
Merged
Conversation
…2179) The onboarding standard (PR #5292, doc/...machine-onboarding-standard-v1) names the registry artifact itself — with amd-6 as its first record — as software work that can proceed with no hardware dependency (§5/§6). It did not exist on main; this is that artifact, in the §3 shape, plus a shape validator so the record stays honest as machines are added. amd-6's capacity values were measured live on the host 2026-11-22 (16 cores, 123 GiB OS-visible RAM, 3372 GB worktree volume, 12-session declared cap). Health ships null/unknown: the health block is a watchdog-written cache (§3) and per-machine watchdog reporting is the named follow-up — a hand-written healthy would be a fabricated pass. Validator: scripts/validate-fleet-machine-registry.py (strict #3352 argument contract; enforces required fields, state/role/health enums, unique ids, active-implies-declared-capacity, secrets as class-name slugs only). Tests: 10/10 against the §3 shape as oracle, including the shipped registry itself.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Caution Review failedThe pull request is closed.
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.
Part of #2179 — the registry artifact slice (the standard's §5/§6 "can proceed now" list). Does not close #2179: the first additional machine, watchdog coverage, and the placement rule remain.
What
doc/fleet-machine-registry.yaml— the machine registry artifact in exactly the shape the onboarding standard defines (§3), with amd-6 as its first record: registry identityamd-6vs NixOS host keyamdkept distinct (the PR docs: machine onboarding standard and registry shape (#2179) #5292 Codex fix), stateactive, execution role, §1.2/§1.3 access patterns, declared capabilities, and live-measured capacity (host read 2026-11-22 via the fleet shell leg: 16 cores, 123 GiB OS-visible RAM, 3,372 GB worktree volume, 12-session declared cap). Secrets are §1.6 class names only.healthshipslast_seen: null, status: unknowndeliberately: §3 makes health a watchdog-written cache, and per-machine watchdog reporting is the named follow-up. A hand-writtenhealthywould be a fabricated pass (§1.5).scripts/validate-fleet-machine-registry.py— shape validator (strict Design: unknown means stop — one strict argument contract for the repo's operator scripts #3352 argument contract: one declared positional, anything else is a usage error). Enforces required fields, state/role/health enums, unique ids,bothas a standalone marker only, active ⇒ positive declared capacity, and secrets as class-name slugs (a token-shaped entry fails).scripts/test_validate_fleet_machine_registry.py— 10 tests, oracle = the §3 shape, including the shipped registry itself.Evidence
validate-fleet-machine-registry.py doc/fleet-machine-registry.yaml→ok: amd-6 (active), exit 0; unittest 10/10 OK.fleet agent doctorall four legs ok; tailnet status from the laptop shows amd-6 as the only online execution node — the pool is a pool of one, now described by the same shape as the pool of many.Remainders (named on #2179)
activebefore §2 step 5 passes.No new dependencies (PyYAML is existing repo tooling). No schedule created or changed.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.