catalogue: disk floors are minimal-usage additive shares — gateway stops refusing installs at "-24 GB free" #1904
No reviewers
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.
Dependencies
No dependencies set.
Reference
Matou/idss!1904
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/minimal-disk-floors"
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?
Fixes the live whakatohea-demo refusal: installing any service on the gateway read "Not enough space — needs 20 GB of disk — -24 GB free beside the front door, Calendar & contacts, Document editing and Files & documents" on a ~156 GiB disk at ~17% real use.
Cause
gatewayHeadroom(DDR 0146) never measures the disk. It sums each placed service's catalogueFloor.MinDiskBytes, and those were whole-machine guesses: front door 40 + Files 60 + Document editing 20 + Calendar 60 (a copy of Files' floor) = 180 GB.Change (Ben's ruling 2026-09-25: "only 10GB for Nextcloud, 10GB for Collabora, 1GB for Calendar and contacts … scoped to minimal usage")
founding.GatewayFloor)Floor.FloorForlifts a role floor's disk to a 10 GB device minimum (deviceDiskFloor). The spec gate and VM-mode guest sizing (join.vmSpecFromFloor) never shrink to a 1 GB share. The helper floor is unchanged at 1 thread · 1 GB · 10 GB, and the gateway floor at 2 · 4 · 40.Docs
ADR 0030, ADR 0064 and DDR 0146 have dated amendments. Also added GOTCHAS #349 and a STATUS entry.
Tests
TestWhakatoheaDemoGateway_InstallsBesideFilesDocsAndCalendar: on the old floors it fails with the exact live string (-24 GB free …). It passes now and pins the 95 GB free figure.TestFloorFor_NeverUndersizesADeviceandTestServices_CalendarDoesNotReserveFilesDisk.TestFloorFor_IsTheCheapestRunnableServicenow checks the invariant on threads and memory only (disk is additive).go test ./...: all packages pass.Not merged, not deployed.
🤖 Generated with Claude Code
8ecd4e45f9824db98a30