FFFF vivarium: one strict machine spec, with boot inside launch.config · Issue #1488 · nixidae/nixidae · GitHub
[go: up one dir, main page]

Skip to content

vivarium: one strict machine spec, with boot inside launch.config #1488

Closed

Description

@Lillecarl

Review findings A5 and the spec-defaults part of M9 on #1444.

  • The spec's top level forbids extra fields, because a skew was measured once. machines is a TypedDict with total=False, read with .get(default).
  • The defaults are written three times: in MachineSpec, in from_json and in Nix.
  • boot is a second, unchecked launch channel. It mixes boot data with features.
  • backend, kind, seccomp and uplink_proxy are typed str.
  • The uplink addresses are written in both forward.py and modules/router.nix.

Fix:

  • One strict pydantic machine model, with no defaults for fields that Nix always sets.
  • boot moves into launch.config.
  • StrEnums for the typed-str fields.
  • The uplink addresses carried in the spec.

Assisted-By: Claude Opus 5.5

Activity

  1. added
    source: vivarium
    on Nov 17, 2026
  2. Lillecarl commented on Nov 18, 2026

    @Lillecarl
    ContributorAuthor

    Two parts land with Refs #1488:

    • Every machine field is checked strictly. The runner's closed TypedDicts are the shape, and pydantic checks them in vivarium.spec. backend, seccomp and uplinkProxy are StrEnums. kind stays a string, because vivarium.kinds is open. No default remains for a field that Nix always writes.
    • The uplink addresses are written once, in nix/uplink.nix, and the spec carries them as uplinkNetwork.

    Rule and ControlSpec keep their dataclass defaults: tests use them, and the parsers no longer read them.

    Needs a decision: boot. This issue says to move boot into launch.config. #1493 says to make one boot description that does not depend on the backend. Those two point in opposite directions. Machine also reads spec.boot for reboot and for the display, and krun already has its own launch.config.boot.


    Assisted-By: Claude Opus 5.5

  3. added
    needs decision
    on Nov 18, 2026
  4. Lillecarl commented on Nov 18, 2026

    @Lillecarl
    ContributorAuthor

    Decided (User, 2026-11-18): boot moves in #1493, not here.

    #1493 makes one backend-neutral, checked boot description. display, nested and acpi become their own fields, and krun's second launch.config.boot goes away. A move into each backend's launch.config now would make Machine read backend config for reboot and the screen, and #1493 would undo it.

    Everything else in this issue is landed. Closing.


    Assisted-By: Claude Opus 5.5

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs decisionsource: vivarium

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0