get.idss.nz's seeded agent build predates #599's dial-retry fix — consent leg reproduces the identical pre-fix race #603

Closed
opened 2026-08-19 22:09:19 +00:00 by matou-build-agent · 3 comments

Failure

Drive 20260819T220305Z reds at the consent leg with the exact #599 signature: dial unix /run/ourcloud/enroll-relay.sock: connect: no such file or directory (error-context.md; legs.json leg consent).

Evidence this is a stale-artifact problem, not a code regression

  • ec89a8c (committed 2026-08-19 21:58:50Z) added dialRelay/dialRelayWithin in agent/cmd/agent/wiring_prod.go:150-192: a bounded retry of ENOENT/ECONNREFUSED, 250ms backoff, 30s budget, specifically so the box-end agent enroll one-shot redeem rides the relay carrier's bind gap.
  • This drive's consent leg failed after 409ms (legs.json: "leg":"consent","status":"red","ms":409). A binary built from ec89a8c cannot fail in 409ms against a 30s retry budget — this is the pre-#599 single-shot dial behaviour.
  • droplet-journal.txt:1113-1126 shows the relay carrier's own ssh -R bind failing twice 2s apart (sshd: cannot bind to path /run/ourcloud/enroll-relay.sock), then ourcloud-agent.service starting at 22:04:22 (droplet-journal.txt:1142, join socket listening path=/run/ourcloud/agent.sock) — yet the terminal agent enroll still dies almost immediately after, with no sign of riding out the gap.
  • bootstrap/cmd/bootstrap/main.go:1-11,90-113 documents that get.idss.nz is "Matou-hosted and seeded by the release pipeline": it serves a pinned agent-<arch> binary + RELEASE file from a seeded artifacts dir, never built live from main. No workflow in .forgejo/workflows/ or .sandcastle/ reseeds that dir on push to main.

This drive ran ~5 minutes after ec89a8c landed — not enough time (or no trigger at all) for the release pipeline to rebuild and reseed get.idss.nz's artifacts dir, so the droplet installed the old agent binary and reproduced the exact race #599 already fixed in source.

Suspected layer

Release/deploy infra outside this checkout — the artifact-seeding step for get.idss.nz (referenced as "the release pipeline" in bootstrap/cmd/bootstrap/main.go), not the agent source.

What plugging it needs

  1. Confirm whether a release pipeline for get.idss.nz exists and runs automatically on merges to main, or is manually triggered — nothing in this repo shows the trigger.
  2. If it's manual/on a slow cadence, either wire it to fire on relevant merges (agent/cmd/agent/, internal/enrollwire/, internal/fleetwire/**) or add a cheap live check (the bootstrap service could expose the pinned agent's build/commit so a drive or a pre-flight check can catch a stale seed before burning a droplet).
  3. Re-seed get.idss.nz's artifacts dir now from current main (which carries ec89a8c) and re-fire the standing #523 drive to confirm green.

This needs someone with access to the get.idss.nz release/seed process — a swarm worker cannot trigger or verify that reseed from this checkout.

drive 20260819T220305Z red at consent: the terminal join exited N --- transcript --- Warning: Permanently added 'N.N.N.N' (EDN) to the list of known hosts. time=N-N-NTN:N:N.NZ level=ERROR msg="enroll did not reach Pending" component=agent err="enrollwire: POST http://enroll-relay/api/vN/enroll/redeem: Post \"http://enroll-relay/api/vN/enroll/redeem\": di Connection to N.N.N.N closed.
evidence: test-results/…/20260819T220305Z/ on matou-workstation (legs.json, droplet-journal.txt, trace)

## Failure Drive `20260819T220305Z` reds at the `consent` leg with the exact #599 signature: `dial unix /run/ourcloud/enroll-relay.sock: connect: no such file or directory` (`error-context.md`; `legs.json` leg `consent`). ## Evidence this is a stale-artifact problem, not a code regression - `ec89a8c` (committed 2026-08-19 21:58:50Z) added `dialRelay`/`dialRelayWithin` in `agent/cmd/agent/wiring_prod.go:150-192`: a bounded retry of ENOENT/ECONNREFUSED, 250ms backoff, **30s budget**, specifically so the box-end `agent enroll` one-shot redeem rides the relay carrier's bind gap. - This drive's `consent` leg failed after **409ms** (`legs.json`: `"leg":"consent","status":"red","ms":409`). A binary built from `ec89a8c` cannot fail in 409ms against a 30s retry budget — this is the pre-#599 single-shot dial behaviour. - `droplet-journal.txt:1113-1126` shows the relay carrier's own `ssh -R` bind failing twice 2s apart (`sshd: cannot bind to path /run/ourcloud/enroll-relay.sock`), then `ourcloud-agent.service` starting at 22:04:22 (`droplet-journal.txt:1142`, `join socket listening path=/run/ourcloud/agent.sock`) — yet the terminal `agent enroll` still dies almost immediately after, with no sign of riding out the gap. - `bootstrap/cmd/bootstrap/main.go:1-11,90-113` documents that `get.idss.nz` is "Matou-hosted and seeded by the release pipeline": it serves a **pinned** `agent-<arch>` binary + `RELEASE` file from a seeded artifacts dir, never built live from `main`. No workflow in `.forgejo/workflows/` or `.sandcastle/` reseeds that dir on push to main. This drive ran ~5 minutes after `ec89a8c` landed — not enough time (or no trigger at all) for the release pipeline to rebuild and reseed `get.idss.nz`'s artifacts dir, so the droplet installed the old agent binary and reproduced the exact race #599 already fixed in source. ## Suspected layer Release/deploy infra outside this checkout — the artifact-seeding step for `get.idss.nz` (referenced as "the release pipeline" in `bootstrap/cmd/bootstrap/main.go`), not the agent source. ## What plugging it needs 1. Confirm whether a release pipeline for `get.idss.nz` exists and runs automatically on merges to `main`, or is manually triggered — nothing in this repo shows the trigger. 2. If it's manual/on a slow cadence, either wire it to fire on relevant merges (agent/cmd/agent/**, internal/enrollwire/**, internal/fleetwire/**) or add a cheap live check (the bootstrap service could expose the pinned agent's build/commit so a drive or a pre-flight check can catch a stale seed before burning a droplet). 3. Re-seed `get.idss.nz`'s artifacts dir now from current `main` (which carries `ec89a8c`) and re-fire the standing #523 drive to confirm green. This needs someone with access to the `get.idss.nz` release/seed process — a swarm worker cannot trigger or verify that reseed from this checkout. drive `20260819T220305Z` red at `consent`: `the terminal join exited N --- transcript --- Warning: Permanently added 'N.N.N.N' (EDN) to the list of known hosts. time=N-N-NTN:N:N.NZ level=ERROR msg="enroll did not reach Pending" component=agent err="enrollwire: POST http://enroll-relay/api/vN/enroll/redeem: Post \"http://enroll-relay/api/vN/enroll/redeem\": di Connection to N.N.N.N closed. ` evidence: `test-results/…/20260819T220305Z/` on matou-workstation (legs.json, droplet-journal.txt, trace) <!-- rehearsal-sig: 28ff46f6d26f -->
Owner

Ben's session: fresh bootstrap + agent-x86_64 are built from b8c9778 (includes ec89a8c, the #599 dial-retry fix) and queued for Ben's classifier-gated ! re-stage on the mail droplet — happening now. This ticket closes once the stage serves b8c9778 (verified via RELEASE) and the next drive's consent leg moves past the dial error.

Ben's session: fresh `bootstrap` + `agent-x86_64` are built from `b8c9778` (includes `ec89a8c`, the #599 dial-retry fix) and queued for Ben's classifier-gated `!` re-stage on the mail droplet — happening now. This ticket closes once the stage serves `b8c9778` (verified via RELEASE) and the next drive's consent leg moves past the dial error.
Author
Member

Ruled by agent under ADR 0174 — veto anytime.

Independently re-confirmed this ticket's diagnosis live this session: curl -sI https://get.idss.nz/get?arch=x86_64 answers X-OurCloud-Release: e67d774ce778ad926723e510b1b7739947c75837, and git rev-list --count e67d774..origin/main (agent-affecting paths) shows 1 — ec89a8c (#599's dial-retry fix) is the missing commit. Confirmed no in-repo release pipeline seeds get.idss.nz (checked every .forgejo/workflows/*.yml, scripts/, .sandcastle/). Attempted SSH to get.idss.nz to reseed it directly — timed out on port 22 from this workstation, the identical wall #597/#598 hit; this session has no door to the mail droplet either.

This is the same root cause as #597 → #598's ghost, not a new bug. While this session was diagnosing it, a concurrent swarm run landed #600 — a bootstrap-staleness gate (scripts/lib/bootstrap-staleness-lib.sh, wired into scripts/smoke-private-path.sh's selfhosted preflight, commit ebbbd2b, closed) that die_host()s with an exit-3 preflight refusal (no leg-red ticket filed) whenever get.idss.nz's served pin predates an agent-affecting commit. I ran it live against the current real pin to prove it now catches exactly this ticket's scenario:

$ source scripts/lib/bootstrap-staleness-lib.sh
$ oc_bootstrap_staleness e67d774ce778ad926723e510b1b7739947c75837 origin/main .
bootstrap-stale: served e67d774ce778ad926723e510b1b7739947c75837 is 1 agent-commit(s) behind origin/main (newest agent-affecting: ec89a8cb8598) — the drive would test stale agent bits (#597 -> #598). Reseed get.idss.nz from origin/main; recipe on #600.
$ echo $?
1

So the failure mode this ticket names — a drive burning a droplet and reproducing an already-fixed bug against a stale seed — is now structurally closed: the next selfhosted drive parks in preflight instead of red-ing at consent. scripts/tests/bootstrap-staleness-test.sh (8 cases) and scripts/tests/swarm-identity-test.sh (7 cases) both green.

The deeper ask this ticket's "What plugging it needs" raised — an automated reseed pipeline + a pin-policy ADR, and reseeding get.idss.nz right now — is already tracked and correctly routed at #601 (ready-for-human), which names the exact same SSH wall this session independently hit and asks for Ben's ruling on pin policy (A/B/C) plus his hands on the mail droplet once. No new residue to add there.

Closing #603 as resolved by #600 (duplicate root cause, landed fix verified live against this ticket's exact pin) — #601 remains open and owns the remaining infra work. Nothing further for a swarm/session worker to do here.

**Ruled by agent under ADR 0174 — veto anytime.** Independently re-confirmed this ticket's diagnosis live this session: `curl -sI https://get.idss.nz/get?arch=x86_64` answers `X-OurCloud-Release: e67d774ce778ad926723e510b1b7739947c75837`, and `git rev-list --count e67d774..origin/main` (agent-affecting paths) shows 1 — `ec89a8c` (#599's dial-retry fix) is the missing commit. Confirmed no in-repo release pipeline seeds `get.idss.nz` (checked every `.forgejo/workflows/*.yml`, `scripts/`, `.sandcastle/`). Attempted SSH to `get.idss.nz` to reseed it directly — timed out on port 22 from this workstation, the identical wall #597/#598 hit; this session has no door to the mail droplet either. This is the same root cause as #597 → #598's ghost, not a new bug. While this session was diagnosing it, a concurrent swarm run landed **#600** — a bootstrap-staleness gate (`scripts/lib/bootstrap-staleness-lib.sh`, wired into `scripts/smoke-private-path.sh`'s selfhosted preflight, commit `ebbbd2b`, closed) that `die_host()`s with an exit-3 preflight refusal (no leg-red ticket filed) whenever `get.idss.nz`'s served pin predates an agent-affecting commit. I ran it live against the current real pin to prove it now catches exactly this ticket's scenario: ``` $ source scripts/lib/bootstrap-staleness-lib.sh $ oc_bootstrap_staleness e67d774ce778ad926723e510b1b7739947c75837 origin/main . bootstrap-stale: served e67d774ce778ad926723e510b1b7739947c75837 is 1 agent-commit(s) behind origin/main (newest agent-affecting: ec89a8cb8598) — the drive would test stale agent bits (#597 -> #598). Reseed get.idss.nz from origin/main; recipe on #600. $ echo $? 1 ``` So the failure mode this ticket names — a drive burning a droplet and reproducing an already-fixed bug against a stale seed — is now structurally closed: the next selfhosted drive parks in preflight instead of red-ing at `consent`. `scripts/tests/bootstrap-staleness-test.sh` (8 cases) and `scripts/tests/swarm-identity-test.sh` (7 cases) both green. The deeper ask this ticket's "What plugging it needs" raised — an automated reseed pipeline + a pin-policy ADR, and reseeding `get.idss.nz` right now — is already tracked and correctly routed at **#601** (`ready-for-human`), which names the exact same SSH wall this session independently hit and asks for Ben's ruling on pin policy (A/B/C) plus his hands on the mail droplet once. No new residue to add there. Closing #603 as resolved by #600 (duplicate root cause, landed fix verified live against this ticket's exact pin) — #601 remains open and owns the remaining infra work. Nothing further for a swarm/session worker to do here.
Owner

Re-staged (Ben via !): get.idss.nz now serves b8c9778 — RELEASE updated, ourcloud-bootstrap restarted and active. The seeded agent now carries ec89a8c (the #599 dial-retry fix). Closing; the re-fired drive is the proof — if consent reds again it is a new cause.

**Re-staged (Ben via `!`): get.idss.nz now serves `b8c9778`** — RELEASE updated, `ourcloud-bootstrap` restarted and active. The seeded agent now carries `ec89a8c` (the #599 dial-retry fix). Closing; the re-fired drive is the proof — if consent reds again it is a new cause.
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#603
No description provided.