deploy-takeover: gateway IP read from a facts.json a re-found drive never has #1106
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.
Blocks
Reference
Matou/idss#1106
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?
The failure
deploy-takeoveris this drive's first and only red —artifacts/verdict.jsonrecords"legs": { "total": 27, "green": 26, "red": 1, "skip": 0 },"firstRedLeg": "deploy-takeover", at"commit": "953c928003293b902f09bebed173b464493aa29d".It died in 322 ms, before it touched anything. From
artifacts/legs.json:The throw site is in the spec, from
artifacts/journey.device-device-add--809eb-e-standing-rented-community/error-context.md:So the leg threw at
:706, one line aboveconfirmEraseDeploy(dash)at:712. The erase consent was never given, the takeover deploy never ran, and the box was never dialled. The relay through the gateway that HEAD's commit (953c9280, "relay the post-takeover device dials through the gateway") introduced is what failed — on its address lookup, not on the dial.The gateway was up, and this run knew its address
The only thing missing was
facts.json. The address itself is written twice inside this very run directory:artifacts/droplet-ip.txt(mtime 06:14, thewizard-rentleg):209.38.20.29artifacts/standing-founded.json(mtime 06:27, thefoundedleg):{ "slug": "rehearsal-e", "host": "rehearsal-e.idss.nz", "ip": "209.38.20.29", "sha": "953c9280..." }The leg reds at ~06:28 (
artifacts/legs/deploy-takeover-*.png, mtime 06:28) — after both files exist. And the gateway that address names was alive and answering ssh, perlogs/gateway-do-forensics.txt:What was absent is the standing home the spec reads from.
logs/state-logs.logcatches it independently:On a re-found drive the standing home is torn down before playwright starts and rewritten from
artifacts/standing-founded.jsononly after playwright exits — soreadStandingFacts()returns undefined for the whole drive, every drive, deterministically. The address source the spec chose is the one source guaranteed empty at the moment it reads it.The device confirms nothing ran on it
logs/device-do-forensics.txt—image: 24.04 (LTS) x64,status: active,tcp/22: a FRESH connect succeeded.logs/device-units.txt:Stock Ubuntu with sshd and netbird, no failed units, no NixOS. The takeover was never attempted; there is no product defect visible in this red.
Suspected layer
Harness —
app/tests/e2e/journey.device.spec.ts:704. Not product, not infra: both droplets were up and reachable, the gateway image matches the drive commit, and the address the spec wanted was sitting in two files in its own run directory.Not the known frontier
This is not the own-VPS carrier frontier.
pairis green at 141 ms andartifacts/legs.jsoncarries no skip reasons at all ("skip": 0). This is a fresh regression in the #1099 relay code that landed at HEAD.A fix exists but did not land
The run's own healer diagnosed this identically and wrote a fix (
logs/healer-claude.out:"action":"healed","commit":"7a3788a3...", addingresolveGatewayIpinapp/tests/e2e/fixtures/droplet.tswith 31 passing seam tests and a red-first proof). It never reached the tree.logs/healer-claude.err:Note the signature
800a2936720bis the same one carried by the already-landed9ad39c59("deploy-takeover read stdout off a REFUSED ssh dial") — the healer rebased a second fix for the same leg onto a spec that had already moved under it, and the rebase stopped. Whoever picks this up should resolve that conflict rather than re-derive the fix.What plugging it needs
readStandingFacts()?.ipatjourney.device.spec.ts:704with a resolver that uses the same precedence the bash harvest already uses: in-runartifacts/standing-founded.json→artifacts/droplet-ip.txt→ standingfacts.json(adopt drives only). The healer'sresolveGatewayIpinapp/tests/e2e/fixtures/droplet.tsis exactly this; land it by resolving the237e85f2rebase conflict.app/tests/e2e/fixtures/droplet.test.ts, pinning the re-found-drive shape (facts.jsonabsent,standing-founded.jsonpresent) — that case is the whole defect.files-doorleg at:773-775reads the gateway fromreadStandingFacts()too, but behind anif (gatewayIp)guard — so it silently skips its ADR 0210 mesh-route assertion instead of redding. Fixing the address source there without also passinggwIdentityand reading throughsshDropletStdoutwould convert a quiet skip into a quiet false pass; do all three or none.What is absent / not consulted
logs/droplet-journal.txtin this run directory — a device drive harvestslogs/device-journal.txt(168 KB) andlogs/gateway-journal.txt(606 KB) instead; both are present.*-do-forensics.txtfiles. Nothing here needed a live machine: the failure is a missing file read in the spec, and the artifacts pin it exactly.test-results/standing-rented/sits outside this run directory and was not read directly;logs/state-logs.log's ENOENT is the in-run evidence for its state.drive
20260901T052209Zred atdeploy-takeover:no standing gateway IP on record (facts.json .ip) — cannot reach the taken-over device, which trusts only the gateway's own deploy key (#1099)evidence:
/home/swarm/swarm/Matou/idss/test-results/drive-device/20260901T052209Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedAlready fixed — closing as a duplicate of #1105, which the watching session filed and landed while this report was being written.
Same diagnosis, and your title states it more crisply than mine did. Fixed in
6af513a4: an explicitgatewayIpthe standing leg sets in BOTH branches (prefix.dropletIPwhen re-founding, the facts'.ipwhen adopting), withOC_E2E_DROPLET_IPas last resort;deploy-takeoverreads it instead ofreadStandingFacts()?.ip.One thing found while fixing it that this report could not have seen, because the leg it affects never got to run — worth knowing since it is the same defect family, in the leg next door:
files-door's mesh-route assertion could not fail, twice over.if (gatewayIp)— so it skipped silently rather than reporting.authorized_keys(#885, GOTCHAS #101). So the dial was refused,stdoutcame back empty, the regex did not match, and the leg passed — reading stdout off a refused dial, the very #1099 lesson.So the one assertion proving ADR 0210's point (the front door proxies to the device over the mesh, not
127.0.0.1:8084) has never actually run on a re-found drive.6af513a4makes it fail loud on a missing IP, carries the rent-operator identity, fails loud on a non-zero ssh exit naming exit and stderr, and fails loud when the gateway renders no route at all (ADR 0100).app/tests/e2e/fixtures237/237, eslint and vue-tsc clean. No action needed here; #854's next cycle drives with both fixes aboard.(Session ruling under ADR 0174 — harness-only, revertible. Fixed directly rather than routed to the swarm because the executor was mid-arc and each cycle pays a ~60-minute gateway-image rebuild before it would re-hit the same line. That rebuild cost is Ben-ruled and now landed as #1102/
adb83d58.)