device-add: spec-gate-and-virt — Spec gate, virt remedy, and the x86_64-only floor #58
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Depends on
Reference
Matou/idss#58
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Feature spec: #13 (device-add).
What to build
The honest rejections that keep an owner from being stranded mid-deploy. When VM mode is chosen but virtualisation is unavailable, the check fails into a per-OS self-loop (P3-S3) that gives the fix — enable VT-x/AMD-V in firmware, or enable the Windows Hypervisor Platform feature on Windows — or the option to use another machine, and the code survives so the owner can retry.
When the probe fails the hint's spec gate, pairing is rejected with Need vs Got and a remedy; the connection request stays Redeemed (not a state, a typed error — there is no queryable rejection history) and the code survives. A Mac that fails the VM arithmetic gets copy stating plainly that a Mac has no full-install fallback and this Mac cannot contribute (ADR 0030). The hint's floor equals the floor of the cheapest service that role can actually run (ADR 0064) — read from the catalogue's per-service minima, never a second hand-maintained list — so any device that passes this gate can be given at least one real job by provisioning; where fleet state has moved on since pairing, provisioning's P4-S1x names why in the device's own numbers and always offers a next step.
Notes: per the slice-map ruling (2026-07-25), multi-arch fleet support is deferred — v1 admits x86_64 only, and an aarch64 device (e.g. an Apple Silicon VM-mode helper) is steered away here at the spec gate with honest copy, not silently rejected. Rejections hold on P2-S3 / P3-S3L as well as P3-S3.
Acceptance criteria
Blocked by
Task manifest
Done — commit
sandcastle: device-add:spec-gate-and-virt #58.What shipped
internal/cataloguepackage — the v1 fixed catalogue with per-service minima.FloorFor(role)is the floor of the cheapest service the role can actually run;enrollis wired viacatalogue.SpecFloors()(never a second hand-maintained list), and a package test pins the invariant that the chosen floor fits under every runnable candidate, so a passing device can always be given at least one real job. The gateway role's one service is the front door, so its floor IS ADR 0030's declared 2 threads · 4 GB · 40 GB.SpecGateErrorwith Need vs Got and a remedy; the request STAYS Redeemed (a typed error, no rejection history) and the code survives. A machine that fits the plain floor but not the VM is steered to full install by the math; a Mac that fails the arithmetic gets the plain copy: no full-install fallback, this Mac cannot contribute (ADR 0030).enroll.VirtErrorwith the per-OS remedy — enable VT-x/AMD-V in firmware; on Windows also the Windows Hypervisor Platform feature — or use another machine. The code survives; the seam test enables virt and retries the SAME code to Pending.enroll.ArchError— an aarch64 device is steered away with honest copy (x86_64 only at v1, multi-arch deferred), never silently rejected; code survives.join.Rejection(internal/join/gate.go) with Need vs Got in the device's own numbers. P2-S3 terminal holds — honest ✕, remedy, "Your code is still good — nothing was spent.", menu re-offered in the same session (arch alone ends the session, typedErrRejected). The socket's OpConsent carriesRejectionas a screen outcome, never an Error. The app shipsThisComputerScreen.vue(P3-S3: virt/threads/memory/disk checks flipped by the held rejection; arch steer-away replaces the set-up action) andLinuxInstallModeScreen.vue(P3-S3L: both consent cards, typed ERASE arming full install), built to the wireframes' element contract overapp/src/lib/consent.ts.Evidence:
internal/join/gate_test.go(9 seam tests at the ADR 0057 seam — real enroll ledger + clock, probe fed x86_64 and aarch64 facts),internal/catalogue/catalogue_test.go(4 tests),app/tests/unit/consentGate.test.ts(10 Vue tests). Full Go suite + vet, app vitest 114/114, vue-tsc and eslint all green. STATUS.md updated in the same commit.