rent-fails-clean: broker 400s ssh_pubkey is required before the provision fault fires #668
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.
Reference
Matou/idss#668
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?
Failure
The
rent-fails-cleanleg (tests/e2e/journey.rented.spec.ts:210,s4aRentExpectFail) exists to prove the rehearsal fault-injection path: broker does a real Create then a simulated Destroy, returning a 502 with stageprovision, so[data-status="rent-error"]should read something matching/provision/i. Instead the callout showed a client-side validation rejection that fired before provisioning ever started:artifacts/verdict.jsonconfirms this was the only leg run and the sole red:state/founding-state.jsonshows the draft correctly stayed pinned at S4 ("step": "access","founded": false) — the "draft untouched" half of the assertion chain, which never got exercised because the/provision/icheck failed first.Root cause (product bug, already fixed at HEAD)
The broker's own request validation rejected the rent call before the rehearsal fault stage could fire, because the client never attached a real SSH pubkey. Pre-
528ffae,internal/founding/access.go'sRentServerread the operator pubkey fromstate/own-vps/operator_ed25519.pub— a path nothing in the codebase ever wrote — and silently swallowed the resulting file-read error, leavingreq.PubKey == "".internal/brokerclient.Client.Rentthen POSTed{"ssh_pubkey": ""}, which the broker correctly 400'd — the broker's own validation working as designed, against a client that never minted the key it claimed to send. DDR 0191 traces this to ADR 0189 ruling 4 wrongly assuming reuse of ADR 0152's own-VPS keypair, which is deliberately ambient-key-only and has no such artifact.This is fixed in commit
528ffae("mint the rent-operator SSH keypair; RentServer fails loud on a mint error, and the rented carrier connects over it (DDR 0191)"), which lands after this drive started (verdict.json.startedAt=2026-08-22T12:54:58Z) and is already present at current HEAD (a2acaec). The fix addsinternal/founding.RentPubKey, backed byinternal/sshkey.Ensure(the mint-once primitive ADR 0126 uses), wired throughrentOperatorKeyAdapterinapp/helper/cmd/helper/wiring_prod.go, and fails loud on a genuine mint error instead of silently sending an empty key.Layer
Product —
internal/founding/access.go+app/helper/cmd/helper/wiring_prod.go(pre-528ffae state). Not harness:s4aRentExpectFail/ the wizard fixtures only drive the UI and correctly expect the app's own backend to supply the pubkey — minting was never the harness's job. Not infra: no droplet was ever created (the 400 fires before any Create), so there is nologs/droplet-journal.txtand no meaningful guest-side log in this run to consult, and no "Live droplet" section was supplied for this diagnosis — consistent with the failure happening entirely client-side before a droplet existed. (logs/qemu.log's ANGLE/GLX errors andartifacts/host.json'sqemu-system-x86_64 ENOENTare local-Electron/GPU noise from the driving workstation, unrelated to this rented-broker path.)This is not the known own-VPS-carrier pairing frontier (pairing never flips) noted elsewhere in the ratchet spec/legs skip reasons — that's a different leg. This run's single leg,
rent-fails-clean, reds on an unrelated pre-fix bug.What plugging it needs
Nothing new to build —
528ffaealready implements the fix. Action: re-run thedrive-rentedrehearsal against current HEAD (a2acaec) to confirmrent-fails-cleannow reaches the realprovision-stage broker fault and goes green. If it still reds after re-driving, that points to a residual gap in the DDR 0191 fix (e.g.internal/sshkey.Ensurenot persisting/reading back the minted key correctly) and needs fresh diagnosis — but this specific captured run is fully explained by the pre-fix state.drive
20260822T125436Zred atrent-fails-clean:expect(locator).toContainText(expected) failed Locator: locator('[data-status="rent-error"]') Expected pattern: /provision/i Received string: "brokerclient: /v1/gateways/rent: 400 Bad Request: ssh_pubevidence:
test-results/…/20260822T125436Z/on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596)swarm-claim host=matou-dev-server-01 run=8867
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #668 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope
role(#1948) #1956