drive 20260901T201017Z red at files-door was already repaired at HEAD by b0d402bc — no code change needed, re-drive #1129

Closed
opened 2026-09-01 20:52:20 +00:00 by matou-build-agent · 1 comment

Failure

Drive 20260901T201017Z (device target) went red at leg files-door after 10 green legs, with:

the gateway renders no reverse_proxy/proxy_pass line at all — the files route is absent, not merely pointed at the wrong target (ADR 0210, #1105)

Evidence

  • artifacts/legs.json — 10 green, files-door red at 4069 ms; deploy-takeover green at 805919 ms.
  • artifacts/verdict.json — "commit": "6fc64e19bdd207ba253b161d5d984472c5ce973c", firstRedLeg: files-door.
  • artifacts/journey.device-.../error-context.md — the throw is anchored at app/tests/e2e/journey.device.spec.ts:840 (the empty-stdout branch).
  • At the drive's commit, the read one line above was app/tests/e2e/journey.device.spec.ts:829: grep -rh reverse_proxy /etc/caddy 2>/dev/null || grep -rh proxy_pass /etc/nginx 2>/dev/null || true.
  • The ssh dial itself succeeded — the route.code !== 0 guard at app/tests/e2e/journey.device.spec.ts:833 did not fire — so this was an empty read, not a refused one.
  • logs/founding-state.log:293 — the gateway front door is 170.64.146.102.
  • logs/device-do-forensics.txt — the device box (170.64.204.255, droplet 597006881) was up, pinging and answering a fresh tcp/22 connect; 15 Mbps inbound across 20:26–20:32 UTC is the takeover copy landing.

Cause (already established)

grep -r does not follow symlinks it meets while walking a directory (only ones named on the command line), and NixOS renders /etc/caddy/caddy_config as a symlink into /etc/static. The read came back empty on a gateway whose route was correct, and the #1105 assertion drew the wrong conclusion from an input it could not observe.

Suspected layer

None outstanding. This is fixed on main at commit b0d402bc ("drive: #1118 — files-door read the front-door config with a symlink-blind grep -r"), which cites this run directory, this leg and this error sentence verbatim. It:

  • switches both reads to grep -Rh — app/tests/e2e/journey.device.spec.ts:837 at HEAD;
  • rewords the empty-output throw (app/tests/e2e/journey.device.spec.ts:848-853) so it names both possibilities (route absent, or config unreadable where we looked) as failures of the assertion rather than asserting absence.

b0d402bc landed at 2026-09-01 20:32:21 UTC, while this drive was still mid-deploy-takeover; git merge-base --is-ancestor 6fc64e19 HEAD confirms the drive ran one commit behind the fix.

What plugging it needs

Nothing in the tree. Confirm the executor's checkout contains b0d402bc and re-drive. Swept for the same defect family: the only /etc/caddy or /etc/nginx read in the repo is that single line; every other grep -r (scripts/lib/rehearsal-droplet.sh:786,985,986,1378, scripts/lib/rehearsal-standing-lib.sh:77, .sandcastle/tests/*) walks ordinary repo or run directories, not an /etc symlink farm, so none share the hazard.

Non-blocking observation, filed here only so it is not rediscovered: logs/device-caddy.txt, device-journal.txt, device-units.txt, device-stall.txt and device-keri.txt all failed with Permission denied (publickey) dialing root@170.64.204.255 directly. That is expected once the takeover leaves the box trusting only the clan keys — the drive's own device reads relay through the gateway (sshDeviceViaGatewayStdout, app/tests/e2e/journey.device.spec.ts:756) — and the harvest notes say as much. Not a defect and not part of this red.

drive 20260901T201017Z red at files-door: the gateway renders no reverse_proxy/proxy_pass line at all — the files route is absent, not merely pointed at the wrong target (ADR 0210, #1105)
evidence: /home/swarm/swarm/Matou/idss/test-results/drive-device/20260901T201017Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## Failure Drive `20260901T201017Z` (device target) went red at leg `files-door` after 10 green legs, with: > the gateway renders no reverse_proxy/proxy_pass line at all — the files route is absent, not merely pointed at the wrong target (ADR 0210, #1105) ## Evidence - `artifacts/legs.json` — 10 green, `files-door` red at 4069 ms; `deploy-takeover` green at 805919 ms. - `artifacts/verdict.json` — `"commit": "6fc64e19bdd207ba253b161d5d984472c5ce973c"`, `firstRedLeg: files-door`. - `artifacts/journey.device-.../error-context.md` — the throw is anchored at `app/tests/e2e/journey.device.spec.ts:840` (the empty-stdout branch). - At the drive's commit, the read one line above was `app/tests/e2e/journey.device.spec.ts:829`: `grep -rh reverse_proxy /etc/caddy 2>/dev/null || grep -rh proxy_pass /etc/nginx 2>/dev/null || true`. - The ssh dial itself succeeded — the `route.code !== 0` guard at `app/tests/e2e/journey.device.spec.ts:833` did not fire — so this was an empty read, not a refused one. - `logs/founding-state.log:293` — the gateway front door is `170.64.146.102`. - `logs/device-do-forensics.txt` — the device box (`170.64.204.255`, droplet 597006881) was up, pinging and answering a fresh tcp/22 connect; 15 Mbps inbound across 20:26–20:32 UTC is the takeover copy landing. ## Cause (already established) `grep -r` does not follow symlinks it meets while walking a directory (only ones named on the command line), and NixOS renders `/etc/caddy/caddy_config` as a symlink into `/etc/static`. The read came back empty on a gateway whose route was correct, and the #1105 assertion drew the wrong conclusion from an input it could not observe. ## Suspected layer None outstanding. This is fixed on `main` at commit `b0d402bc` ("drive: #1118 — files-door read the front-door config with a symlink-blind `grep -r`"), which cites this run directory, this leg and this error sentence verbatim. It: - switches both reads to `grep -Rh` — `app/tests/e2e/journey.device.spec.ts:837` at HEAD; - rewords the empty-output throw (`app/tests/e2e/journey.device.spec.ts:848-853`) so it names both possibilities (route absent, or config unreadable where we looked) as failures of the assertion rather than asserting absence. `b0d402bc` landed at 2026-09-01 20:32:21 UTC, while this drive was still mid-`deploy-takeover`; `git merge-base --is-ancestor 6fc64e19 HEAD` confirms the drive ran one commit behind the fix. ## What plugging it needs Nothing in the tree. Confirm the executor's checkout contains `b0d402bc` and re-drive. Swept for the same defect family: the only `/etc/caddy` or `/etc/nginx` read in the repo is that single line; every other `grep -r` (`scripts/lib/rehearsal-droplet.sh:786,985,986,1378`, `scripts/lib/rehearsal-standing-lib.sh:77`, `.sandcastle/tests/*`) walks ordinary repo or run directories, not an `/etc` symlink farm, so none share the hazard. Non-blocking observation, filed here only so it is not rediscovered: `logs/device-caddy.txt`, `device-journal.txt`, `device-units.txt`, `device-stall.txt` and `device-keri.txt` all failed with `Permission denied (publickey)` dialing `root@170.64.204.255` directly. That is expected once the takeover leaves the box trusting only the clan keys — the drive's own device reads relay through the gateway (`sshDeviceViaGatewayStdout`, `app/tests/e2e/journey.device.spec.ts:756`) — and the harvest notes say as much. Not a defect and not part of this red. drive `20260901T201017Z` red at `files-door`: `the gateway renders no reverse_proxy/proxy_pass line at all — the files route is absent, not merely pointed at the wrong target (ADR 0210, #1105)` evidence: `/home/swarm/swarm/Matou/idss/test-results/drive-device/20260901T201017Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: 0e400908634c -->
Owner

Confirmed and closing — correct call by the reporter, and no work is needed.

The files-door red on drive 20260901T201017Z was b0d402bc (#1118): assertFleetGatewayOnly's sibling check read the front-door config with a symlink-blind grep -r, and NixOS renders /etc/caddy/caddy_config as a symlink into /etc/static, so the read came back empty on a gateway whose route was perfectly correct. Verified live on the standing gateway before the fix landed: the box renders @files host files.rehearsal-e.idss.nz → reverse_proxy 100.118.121.63:80 (the device's mesh address, ADR 0210) with zero 127.0.0.1:8084 lines.

That cycle had synced main about a minute before the fix was pushed, so it drove the old code. The drive host is now on b0d402bc and the next cycle carries it.

Closing so #854 unparks. Nothing to implement.

Confirmed and closing — correct call by the reporter, and no work is needed. The `files-door` red on drive `20260901T201017Z` was `b0d402bc` (#1118): `assertFleetGatewayOnly`'s sibling check read the front-door config with a symlink-blind `grep -r`, and NixOS renders `/etc/caddy/caddy_config` as a symlink into `/etc/static`, so the read came back empty on a gateway whose route was perfectly correct. Verified live on the standing gateway before the fix landed: the box renders `@files host files.rehearsal-e.idss.nz` → `reverse_proxy 100.118.121.63:80` (the device's mesh address, ADR 0210) with zero `127.0.0.1:8084` lines. That cycle had synced main about a minute before the fix was pushed, so it drove the old code. The drive host is now on `b0d402bc` and the next cycle carries it. Closing so #854 unparks. Nothing to implement.
ben closed this issue 2026-09-01 20:53:57 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1129
No description provided.