catalogue: disk floors are minimal-usage additive shares — gateway stops refusing installs at "-24 GB free" #1904

Merged
ben merged 1 commit from fix/minimal-disk-floors into main 2026-09-27 15:27:40 +00:00
Owner

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 catalogue Floor.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")

Service Old New
Community front door 40 40 (unchanged: the whole gateway, OS included, = founding.GatewayFloor)
Files & documents 60 10
Document editing 20 10
Calendar & contacts 60 1 (threads/memory still the files floor, for admission)
Chat / Code & issues / Meetings / Mail 20 5
Static sites 10 1
Surveys / Newsletters 20 2
Video channel 100 20
Genealogy / Data collections 20 5
Document archive / Community archive 40 10
Backup copies 10 10
  • Each helper service's disk is now an additive minimal-usage share (image/closure + small starting data), with a one-line justification on its Floor.
  • FloorFor lifts 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.
  • Result on the demo gateway: 95 GB free beside the front door + Files + Document editing + Calendar (156 − 61).

Docs

ADR 0030, ADR 0064 and DDR 0146 have dated amendments. Also added GOTCHAS #349 and a STATUS entry.

Tests

  • New 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.
  • New TestFloorFor_NeverUndersizesADevice and TestServices_CalendarDoesNotReserveFilesDisk.
  • TestFloorFor_IsTheCheapestRunnableService now checks the invariant on threads and memory only (disk is additive).
  • go test ./...: all packages pass.

Not merged, not deployed.

🤖 Generated with Claude Code

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 catalogue `Floor.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") | Service | Old | New | |---|---|---| | Community front door | 40 | 40 (unchanged: the whole gateway, OS included, = `founding.GatewayFloor`) | | Files & documents | 60 | **10** | | Document editing | 20 | **10** | | Calendar & contacts | 60 | **1** (threads/memory still the files floor, for admission) | | Chat / Code & issues / Meetings / Mail | 20 | 5 | | Static sites | 10 | 1 | | Surveys / Newsletters | 20 | 2 | | Video channel | 100 | 20 | | Genealogy / Data collections | 20 | 5 | | Document archive / Community archive | 40 | 10 | | Backup copies | 10 | 10 | - Each helper service's disk is now an **additive minimal-usage share** (image/closure + small starting data), with a one-line justification on its `Floor`. - `FloorFor` lifts 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. - Result on the demo gateway: **95 GB free** beside the front door + Files + Document editing + Calendar (156 − 61). ## Docs ADR 0030, ADR 0064 and DDR 0146 have dated amendments. Also added GOTCHAS #349 and a STATUS entry. ## Tests - New `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. - New `TestFloorFor_NeverUndersizesADevice` and `TestServices_CalendarDoesNotReserveFilesDisk`. - `TestFloorFor_IsTheCheapestRunnableService` now checks the invariant on threads and memory only (disk is additive). - `go test ./...`: all packages pass. Not merged, not deployed. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
catalogue: disk floors are minimal-usage additive shares — the gateway stops refusing installs at "-24 GB free"
All checks were successful
ci / seam (pull_request) Successful in 17m39s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
8ecd4e45f9
The whakatohea-demo gateway (~156 GiB, ~17% real use) refused every install:
gatewayHeadroom (DDR 0146) sums catalogue disk floors, and those were
whole-machine guesses — front door 40 + Files 60 + Document editing 20 +
Calendar 60 (a copy of Files' floor) = 180 GB.

Ben's ruling (2026-09-25): Files 10 GB, Document editing 10 GB, Calendar &
contacts 1 GB, every service scoped to minimal usage. Each helper service's disk
is now its image/closure plus a small starting data set, with a one-line
justification. Calendar keeps the files floor's threads/memory for admission
but no longer reserves Files' disk. The front door's 40 GB (whole gateway, OS
included, pinned to founding.GatewayFloor) is unchanged.

FloorFor lifts a role floor's disk to a 10 GB device minimum, so the spec gate
and VM-mode guest sizing never shrink to a 1 GB share (helper floor unchanged).

The demo now reads 95 GB free beside the four. ADR 0030 / ADR 0064 / DDR 0146
amended; GOTCHAS #349; STATUS updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ben force-pushed fix/minimal-disk-floors from 8ecd4e45f9
All checks were successful
ci / seam (pull_request) Successful in 17m39s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
to 824db98a30
All checks were successful
ci / seam (pull_request) Successful in 13m34s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
2026-09-27 15:26:42 +00:00
Compare
ben merged commit be44b09699 into main 2026-09-27 15:27:40 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss!1904
No description provided.