Skip to content

fleet: machine registry artifact with amd-6 as first record (#2179) - #12717

Merged
dezren39 merged 1 commit into
mainfrom
felix/2179-machine-registry
Nov 22, 2026
Merged

dezren39 merged 1 commit into
mainfrom
felix/2179-machine-registry

Conversation

@dezren39

@dezren39 dezren39 commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

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 identity amd-6 vs NixOS host key amd kept distinct (the PR docs: machine onboarding standard and registry shape (#2179) #5292 Codex fix), state active, 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.
  • health ships last_seen: null, status: unknown deliberately: §3 makes health a watchdog-written cache, and per-machine watchdog reporting is the named follow-up. A hand-written healthy would 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, both as 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

  • Fail-before: neither the artifact nor the validator exists on pristine origin/main.
  • Pass-after (sandbox): validate-fleet-machine-registry.py doc/fleet-machine-registry.yaml → ok: amd-6 (active), exit 0; unittest 10/10 OK.
  • Pool state verified live before writing: fleet agent doctor all 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)

No new dependencies (PyYAML is existing repo tooling). No schedule created or changed.


Show it working
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…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.
@dezren39
dezren39 requested a review from a team as a code owner November 22, 2026 23:53
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T23:55:13.379851Z 848056a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • 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

@dezren39
dezren39 merged commit 0456230 into main Nov 22, 2026
1 of 2 checks passed
@dezren39
dezren39 deleted the felix/2179-machine-registry branch November 22, 2026 23:54
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.

Machine pool: onboard additional machines as fleet job nodes and redesign placement around a pool

1 participant