rehearsal-7 Task 4: Fleet admission speaks VM — AddNode install record, allocated resources, production spec floors #1160

Closed
opened 2026-09-02 19:04:48 +00:00 by ben · 2 comments
Owner

Task 4 of 9 — phase-7 VM-mode device rehearsal. Plan (READ ITS Global Constraints + Plan-time inventory first): docs/superpowers/plans/2026-09-02-183-phase-7-vm-device-rehearsal.md. Spec: docs/superpowers/specs/2026-08-29-183-phase-7-vm-device-rehearsal-design.md (RULED). Drive issue: #1153. Say "task 4 of #1153" in commits — NEVER "closes".

Task 4: Fleet admission speaks VM — AddNode install record, allocated resources, production spec floors

Files: Modify admission path (AddNode with Install{Mode: ModeVM, Consent, Dedicated spec}, mesh address = guest wt0), fleetstate allocated
resources for VM nodes (projection.go:282 is library-real — wire to the
read), heartbeat VM.Health surfaced; wire catalogue.SpecFloors() into
the PRODUCTION enroll ledger
(control-plane composition — the gateway is
where the gate runs; wiring_dev.go:21 stays), P4-S1 "VM — DEDICATED" chip
reads live. Tests: ledger floor refusal (too-small host actually refused),
admission record, projection.

Interfaces: Consumes Task 3's guest fact. Produces the VM node record
Tasks 5/6/8 read. Publishes FloorFor(member-role) — Task 7 sizes the
droplet from it, never by hand.

  • Step 1: Production SpecFloors wiring + a test proving a sub-floor host is REFUSED (the gate had zero floors — this is the cannot-fail-check pattern, name it in the test).
  • Step 2: Admission VM record + allocated projection + chip.
  • Step 3: Heartbeat VM health honest (running/stopped/absent — read, not assumed).
> Task 4 of 9 — phase-7 VM-mode device rehearsal. Plan (READ ITS **Global Constraints** + **Plan-time inventory** first): `docs/superpowers/plans/2026-09-02-183-phase-7-vm-device-rehearsal.md`. Spec: `docs/superpowers/specs/2026-08-29-183-phase-7-vm-device-rehearsal-design.md` (RULED). Drive issue: #1153. Say "task 4 of #1153" in commits — NEVER "closes". ### Task 4: Fleet admission speaks VM — AddNode install record, allocated resources, production spec floors **Files:** Modify admission path (`AddNode` with `Install{Mode: ModeVM, Consent, Dedicated spec}`, mesh address = guest wt0), `fleetstate` allocated resources for VM nodes (`projection.go:282` is library-real — wire to the read), heartbeat `VM.Health` surfaced; **wire `catalogue.SpecFloors()` into the PRODUCTION enroll ledger** (control-plane composition — the gateway is where the gate runs; `wiring_dev.go:21` stays), P4-S1 "VM — DEDICATED" chip reads live. Tests: ledger floor refusal (too-small host actually refused), admission record, projection. **Interfaces:** Consumes Task 3's guest fact. Produces the VM node record Tasks 5/6/8 read. Publishes `FloorFor(member-role)` — Task 7 sizes the droplet from it, never by hand. - [ ] Step 1: Production SpecFloors wiring + a test proving a sub-floor host is REFUSED (the gate had zero floors — this is the cannot-fail-check pattern, name it in the test). - [ ] Step 2: Admission VM record + allocated projection + chip. - [ ] Step 3: Heartbeat VM health honest (running/stopped/absent — read, not assumed).

swarm-claim host=elitebook-distributed-server-03 run=16667
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=16667 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1160 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1160,
  "status": "success",
  "commits": [
    "166f66ae6f255d088c6fa3bacd662e51152638dd"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/whole_composition.go",
    "control-plane/cmd/control-plane/compose_enroll_test.go"
  ],
  "tests": [
    {
      "command": "go test ./control-plane/cmd/control-plane/ -run TestComposeEnroll -count=1",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/enroll/ ./internal/fleetstate/ ./internal/catalogue/ ./internal/join/ -count=1",
      "exit_code": 0
    },
    {
      "command": "go build ./...",
      "exit_code": 0
    },
    {
      "command": "gofmt -l control-plane/cmd/control-plane/whole_composition.go control-plane/cmd/control-plane/compose_enroll_test.go",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Step 1: Production SpecFloors wiring + a test proving a sub-floor host is REFUSED (the gate had zero floors — cannot-fail-check pattern, named in the test)": "whole_composition.go:308 enrollCfg.SpecFloors = catalogue.SpecFloors(); TestComposeEnroll_ProductionSpecGateRefusesASubFloorVMHost in compose_enroll_test.go drives the WHOLE composition's real ledger — a 2-core/4GB VM host REFUSES with a SpecGateError (Need {3 cores,5GB}), an adequate 4-core/8GB host PAIRS; proven red without the wiring (sub-floor host passed with nil error).",
    "Step 2: Admission VM record + allocated projection + chip": "Already library-real from tasks 1-3: projection.go:282 sets Allocated = mode==vm; the admission places the node (enroll.Admitter) and the projection joins the ledger's VM install facts through the placement identity — TestProjection_JoinsLedgerFactsThroughIdentity (fleetstate) asserts Resources.Allocated + Install.Mode==vm; controlapi/device_telemetry.go maps Allocated onto the wire; AssessScreen.vue's data-status=\"vm-dedicated\" chip reads it (provisionSetup.test.ts). Verified read-live, not rebuilt.",
    "Step 3: Heartbeat VM health honest (running/stopped/absent — read, not assumed)": "Already landed by task 3: land.go Heartbeat reports the guest's live enroll.VMHealth in VM mode (vm.Manager.Health reads systemctl is-active, never fabricates — classifyActiveState propagates a probe fault rather than a fake 'stopped', ADR 0100); TestHeartbeat_FleetReportingFace + TestHeartbeat_FullInstallCarriesNoVMHealth (internal/join) pin it. Verified.",
    "Publishes FloorFor(member-role) — Task 7 sizes the droplet from it": "catalogue.FloorFor(role) exported and stable; the same catalogue.SpecFloors() now backs the production gate, so the size Task 7 rents is the size the gate enforces."
  },
  "summary": "Wired catalogue.SpecFloors() into the production control-plane enroll ledger so a sub-floor host is refused at Pair, with a cannot-fail-check test proving the gate discriminates; steps 2/3 verified already library-real from tasks 1-3.",
  "blockers": []
}
**close-report** for #1160 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1160, "status": "success", "commits": [ "166f66ae6f255d088c6fa3bacd662e51152638dd" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/whole_composition.go", "control-plane/cmd/control-plane/compose_enroll_test.go" ], "tests": [ { "command": "go test ./control-plane/cmd/control-plane/ -run TestComposeEnroll -count=1", "exit_code": 0 }, { "command": "go test ./internal/enroll/ ./internal/fleetstate/ ./internal/catalogue/ ./internal/join/ -count=1", "exit_code": 0 }, { "command": "go build ./...", "exit_code": 0 }, { "command": "gofmt -l control-plane/cmd/control-plane/whole_composition.go control-plane/cmd/control-plane/compose_enroll_test.go", "exit_code": 0 } ], "criteria": { "Step 1: Production SpecFloors wiring + a test proving a sub-floor host is REFUSED (the gate had zero floors — cannot-fail-check pattern, named in the test)": "whole_composition.go:308 enrollCfg.SpecFloors = catalogue.SpecFloors(); TestComposeEnroll_ProductionSpecGateRefusesASubFloorVMHost in compose_enroll_test.go drives the WHOLE composition's real ledger — a 2-core/4GB VM host REFUSES with a SpecGateError (Need {3 cores,5GB}), an adequate 4-core/8GB host PAIRS; proven red without the wiring (sub-floor host passed with nil error).", "Step 2: Admission VM record + allocated projection + chip": "Already library-real from tasks 1-3: projection.go:282 sets Allocated = mode==vm; the admission places the node (enroll.Admitter) and the projection joins the ledger's VM install facts through the placement identity — TestProjection_JoinsLedgerFactsThroughIdentity (fleetstate) asserts Resources.Allocated + Install.Mode==vm; controlapi/device_telemetry.go maps Allocated onto the wire; AssessScreen.vue's data-status=\"vm-dedicated\" chip reads it (provisionSetup.test.ts). Verified read-live, not rebuilt.", "Step 3: Heartbeat VM health honest (running/stopped/absent — read, not assumed)": "Already landed by task 3: land.go Heartbeat reports the guest's live enroll.VMHealth in VM mode (vm.Manager.Health reads systemctl is-active, never fabricates — classifyActiveState propagates a probe fault rather than a fake 'stopped', ADR 0100); TestHeartbeat_FleetReportingFace + TestHeartbeat_FullInstallCarriesNoVMHealth (internal/join) pin it. Verified.", "Publishes FloorFor(member-role) — Task 7 sizes the droplet from it": "catalogue.FloorFor(role) exported and stable; the same catalogue.SpecFloors() now backs the production gate, so the size Task 7 rents is the size the gate enforces." }, "summary": "Wired catalogue.SpecFloors() into the production control-plane enroll ledger so a sub-floor host is refused at Pair, with a cannot-fail-check test proving the gate discriminates; steps 2/3 verified already library-real from tasks 1-3.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1160
No description provided.