device-add: intended roles server and storage have NO spec floor — the guest is dedicated 0 CPUs / 0 GB / 0 GB, the spec gate passes any machine, and Pair accepts the zero guest_spec #2005
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#2005
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?
Symptom
A code minted with the intended role Server (or Storage) sizes a VM-mode guest at nothing:
and the gateway accepted the pairing:
GET /api/v1/enroll/pendingon Whakatōhea Demo (2026-09-30) holdsreq-0002with"mode":"vm","guest_spec":{"cores":0,"mem_bytes":0,"disk_bytes":0}. Had Create succeeded, qemu would have been asked for a 0-core, 0-byte guest.Cause
The panel offers four role hints (
dashboard/src/lib/deviceAdd.ts:31— helper, storage, server, gateway;helperis the default) butcatalogue.SpecFloors()(internal/catalogue/catalogue.go:1148) derives floors only from the roles the services declare, and every service declaresRoleHelperorRoleGateway. Sol.cfg.SpecFloors["server"]is the zeroSpecFloor:Redeem(internal/enroll/ledger.go:409) hands the device a zero floor →vmSpecFromFloor(internal/join/app.go:241) dedicates 0/0/0;specShortfalls,vmHostFloor) has nothing to fail — any machine passes;Pairrefuses a VM-mode request only whenGuestSpec == nil(ledger.go:490,ErrNoGuestSpec); a present-but-zero spec is accepted.enroll_rent.go:198mints rented devices asservertoo — a rented box takes full install, so it never dedicates a guest, which is why the zero floor never showed there.Fix (proposed ruling — two-way door under ADR 0174, agent rules; veto anytime)
Pairrefuses a VM-modeGuestSpecwith any zero dimension (extendErrNoGuestSpec);MintCoderefuses an intended role the ledger has no floor for, with the role named. The device end prints the refusal, neverCPUs [0].serverandstoragea floor. Proposed default:server= the largest helper-role service floor that is not the gateway's (so a server guest can host any single non-gateway service — today 4 cores / 7.08 GiB for meetings, or 2 / 3.54 GiB if meetings is excluded as the outlier);storage= the backup-copy floor with the disk lifted to the community's archive share. Record the numbers in the catalogue besidedeviceDiskFloorwith the arithmetic in the comment, and pin them with the package test that already guards the helper invariant.GET /api/v1/enroll/configrather than a hard-coded four, so a role with no floor cannot be offered.If 2 wants a human ruling, land 1 and 3 first — they close the hole on their own.
Related
DDR 0224 / ADR 0055 (the hint selects the floor and sizes the guest). Found in the same hand run as the cold-install VM-create defect.
Siblings
Found in the one hand run (bens-mac-04 → Whakatōhea Demo, 2026-09-30): #2002 #2003 #2004 #2006 #2007
swarm-claim host=elitebook-distributed-server-03 run=36142
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
The ticket flagged fix part 2 (the actual floor numbers for
server/storage) as possibly wanting a human ruling. It is a two-way door: the numbers are catalogue config, reverted by a later commit and provable by a package test — not on the one-way-door list. Ruling it so I could land all three parts in one slice (part 1'sMintCoderefusal would otherwise break the rented-device path, which mintsserver).The ruling (the numbers, with the arithmetic):
server = floor(4, 8, 20)— dominates every non-gateway service floor per dimension, so a server-hinted VM guest can host any single non-gateway service whole. Maxima over the v1 catalogue: threads 4 (Meetings), memory 8 GB (Meetings), disk 20 GB (Video's additive share). The gateway's own role keeps itsRoleGatewayfloor.storage = floor(1, 1, 20)— the backup-copy compute (1 thread / 1 GB — storage is I/O, not compute) with the disk lifted to the largest single-service data share (20 GB, Video), so a storage-hinted guest can hold any one service's data set.Both sit at or above
deviceDiskFloor(10 GB). I chose Meetings (the true max) over the "exclude Meetings" alternative the ticket offered, so the floor never under-promises what a server can host.What proves it:
catalogue_test.gopins both floors and the dominance invariant;enrolltests pin the two fail-loud guards (zero guest atPair, floorless role atMintCode);compose/controlapitests pinintended_roleson the config read.go test ./..., gofmt, vet, golangci-lint all green; dashboard 2145 tests + vue-tsc + eslint green.Landed in
2d54833b. If the sizing is wrong for real donated hardware, retune the twofloor(...)values ininternal/catalogue/catalogue.go— the test names both numbers.close-report for #2005 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope