"Upgrade to 8 GB" on the placement bench never reaches the rental — the plan says 8 GB, Access still says 4 GB, and the rent follows Access #1777
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#1777
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
On the 2026-09-23 cold manual founding of
whakatohea-demo, the operator upgraded the gateway from 4 GB to 8 GB on the service-placement screen, then laid the services out. The box that was provisioned is a 4 GBs-2vcpu-4gb(2 vCPU,MemTotal 4015412 kB, 78 GB disk,$30/monthrecorded) — the broker's default preset, not the upgrade.The upgrade button changes nothing outside the component
app/src/components/founding/FoundingDevicePlacement.vue:471:That is the whole handler behind
data-action="upgrade-gateway"/ "Upgrade to 8 GB — $60/month". It sets a local ref and rewrites the local device array. It does not call the seam, does not emit, and does not touch the draft.rentServer— the only thing that records a size — is called from exactly one place in the app:FoundingAccess.vue:374, on the S4a rent card. Nothing on the placement screen calls it. So the size the gateway is ordered at is fixed at S4a and the upgrade button cannot change it.The draft ends up internally inconsistent, and nothing objects
SavePlacement(internal/founding/placement.go:156) records the plan, andjoinConnectedFactsdeliberately keeps a rented machine's ordered size (MemSource = MemOrdered) since the box does not exist yet. After the upgrade that ordered number is 8192.Meanwhile
d.Access.GatewayPreset/GatewayMemMBare still the S4a values —s-2vcpu-4gb/ 4096.validatePlacement(placement.go:287) checks ids, duplicate names, exactly one gateway and the fit gate. It never compares the plan's gatewayMemMBagainst the Access order.provision()(internal/founding/access.go:643) rents from Access:RentRequest{Region: d.Access.GatewayRegion, Preset: d.Access.GatewayPreset}.So the draft simultaneously says "the gateway is an 8 GB ordered machine" (Placement) and "rent the 4 GB preset" (Access). The rent follows Access. The operator, the bench and the fit gate all believe 8 GB.
And the mismatch is then erased rather than reported
internal/founding/access.go:656-659:Nothing compares
res.Sizewith what was asked for. The broker's answer overwrites the order, and the founding line then reads "Rented gateway — DigitalOcean · syd1 · 4 GB · $30/month" — a readback of what arrived, presented as though it were the choice.Two silent fallbacks sit under that, on both sides of the wire:
resolvePreset(access.go:497) — an empty pick takesoff.Presets[0], the cheapestRentals.Rent(broker/internal/broker/rentals.go:362) — an empty preset takescfg.Size, the defaultSo at no point in the path would ordering 8 GB and receiving 4 GB be noticed by anything.
Consequence
The operator lays services out against 8 GB of headroom, the fit gate approves a plan for a machine that will never exist, and the community is founded on a box half that size. On this run the services then failed for an unrelated reason, and the catalogue refused to offer them again because of the floor bug (#1776) — but even a clean run would have placed a plan sized for 8 GB onto 4 GB of real memory.
What is proven, and what is inferred
Proven from the code: pressing Upgrade to 8 GB cannot change what is rented. The handler has no path to the seam, and the rent reads a field only S4a writes.
Inferred: that this is what happened on this specific run.
founding-state.jsonis deleted at hand-off, so the draft's ordered preset no longer exists and the broker logs no preset (checked: the only broker line for this host is the stale-rental release). The run's own evidence is gone — which is itself part of the ask below.Asks
takeUpgradeshould persist the new size the same way S4a does (re-recording the preset through the seam), so Placement and Access can never disagree. If persisting it there is wrong, the button should not exist — offering an upgrade that changes only a local number is worse than offering nothing.SavePlacementmust refuse or reconcile a plan whose gatewayMemMBdiffers from the Access order. A draft that describes two different machines should not be committable.broker.Rentreturns, compareres.Sizeto the preset that was requested and fail loud (ADR 0100) on a mismatch, instead of overwriting the order with the result. An operator who is billed for a size they did not pick must be told.Relates to #1776 (the floors that then refused the services), #1393 (the size pick), DDR 0237/0240/0241, ADR 0047, ADR 0100, ADR 0189. Found on the same run as #1764, #1765, #1774.
swarm-claim host=matou-dev-server-01 run=30963
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1777 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope