join/helper: drive 162500Z's consent red is already repaired at HEAD (3141ddd1) — what the same transcript still shows open is a nameless community at the WIPE prompt #910

Closed
opened 2026-08-27 16:43:31 +00:00 by matou-build-agent · 4 comments

Failure

Drive 20260827T162500Z (--target idip, signature 28ff46f6d26f) went red at leg 6 consent: the terminal join exited 1 with join: mesh admission: meshup: netbird is not installed on this device … --management-url mesh.internal (artifacts/legs.json, leg 6; artifacts/consent-transcript.txt).

This red needs no code change — it is already repaired on main. artifacts/verdict.json pins the drive to "commit": "d53a4de3c6c705e0e3502c796fedf40d5e10d4e0". At that commit internal/join/land.go redeemed the grant's admission unconditionally and internal/enroll/community_ca.go minted placeholder admission material (randBytes + mesh.internal) for every role, including the founding gateway. state/enroll.json shows this drive's request as "role": "gateway" with grant.mesh.management: "mesh.internal", so meshup failed loud and correctly on a plain-Ubuntu droplet (agent/internal/meshup/meshup.go:45-51; the named ADR 0100 error at :100-103).

Commits 3141ddd1 and ab538cc9 landed ~6 minutes after d53a4de3 and close it: internal/join/land.go:86 now gates the join on g.Mesh.Redeemable(), and internal/enroll/community_ca.go:210-213 (MeshAdmissionFor) returns an empty admission for RoleGateway (internal/enroll/enroll.go:290 is the predicate). Verified here on HEAD 2d4b114c: go test ./internal/join/ ./internal/enroll/... → ok, with internal/join/land_test.go:441 ("a gateway grant must carry no mesh admission") and :448 ("the gateway landing must not attempt mesh admission") covering this exact path. The remainder of the landing is clean on stock Ubuntu — trust.InstallCerts shells update-ca-certificates, trust.Up shells systemctl enable --now sshd, and Mesh.Address() returns the documented honest empty (internal/join/land.go:106-110). Action for this half: re-drive at HEAD, no fix needed.

The defect that is still open

The same transcript shows the device-end terminal naming no community — twice, including on the irreversible-consent screen:

idss-agent unknown · joining 
…
Type WIPE to consent, anything else to stop: WIPE
✓ consent recorded — the wipe runs at first deploy
…
✓ connection request sent to 

The community is not nameless: logs/founding-state.log records "name": "E2E Drive", and the operator app's own window header renders E2E Drive — IDSS (the page snapshot in artifacts/journey.idip-…/error-context.md). Only the device end is blank.

Cause. Both renders read resp.Community.Name — internal/join/cli.go:143 and internal/join/cli.go:200. That is filled from the ledger's config at internal/enroll/ledger.go:312 (redeemResponse → Community: l.cfg.Community), and enroll.Config.Community (internal/enroll/ledger.go:64-65) is set only at ledger construction. The operator app's helper never sets it: newEnrollLedger at app/helper/cmd/helper/wiring_prod.go:246-249 builds enroll.Config with Granter and SpecFloors and nothing else — while its own doc comment at app/helper/cmd/helper/wiring_prod.go:225 asserts "The community header is stamped as founding commits the draft." Nothing stamps it; there is no verb on the ledger that can. The same zero value also blanks the operator-side pending card headline at internal/enroll/ledger.go:539 (PendingView.Community).

Why it matters. ADR 0024 puts full-install consent in the machine's own terminal precisely so the person at the keyboard rules on it. They are currently asked to type WIPE — erasing everything on the machine — without being told which community they are joining. That is a consent-quality defect, not cosmetics.

What plugging it needs

The defective line is identified (app/helper/cmd/helper/wiring_prod.go:246-249), but the fix is not mechanical and needs a ruling before anyone edits: the helper opens the ledger at boot, and in this drive the community was created inside the same process run, after that (helper boot → founding creates "E2E Drive" → device Redeem at 16:26:38). So a construction-time read cannot work, and the choice is a seam decision:

  1. give enroll.Config a lazy community source the ledger calls at redeemResponse/Pending time (keeps internal/enroll clean of internal/clan; the helper supplies the func, precedent: clan.ReadCommunityName as used at app/helper/cmd/helper/seat.go:25 and app/helper/cmd/helper/main.go:138), or
  2. add an explicit ledger verb founding calls when it commits the draft — which is what wiring_prod.go:225 already claims happens, and would make the comment true, or
  3. refresh/reopen the ledger config on the founding commit.

Whichever is chosen, the regression guard is a seam test asserting a redeem response after a named community carries that name into RedeemResponse.Community.Name, plus a internal/join/cli.go terminal-render test asserting the WIPE screen names the community. Also correct the now-false doc comment at app/helper/cmd/helper/wiring_prod.go:225 in the same commit.

drive 20260827T162500Z red at consent: the terminal join exited 1 --- transcript --- Warning: Permanently added '170.64.179.20' (ED25519) to the list of known hosts. idss-agent unknown · joining How should this machine contribute? [1] Ful
evidence: /home/dev/swarm/Matou/idss/test-results/drive-idip/20260827T162500Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## Failure Drive `20260827T162500Z` (`--target idip`, signature `28ff46f6d26f`) went red at leg 6 `consent`: the terminal join exited 1 with `join: mesh admission: meshup: netbird is not installed on this device … --management-url mesh.internal` (`artifacts/legs.json`, leg 6; `artifacts/consent-transcript.txt`). **This red needs no code change — it is already repaired on `main`.** `artifacts/verdict.json` pins the drive to `"commit": "d53a4de3c6c705e0e3502c796fedf40d5e10d4e0"`. At that commit `internal/join/land.go` redeemed the grant's admission unconditionally and `internal/enroll/community_ca.go` minted placeholder admission material (`randBytes` + `mesh.internal`) for every role, including the founding gateway. `state/enroll.json` shows this drive's request as `"role": "gateway"` with `grant.mesh.management: "mesh.internal"`, so `meshup` failed loud and correctly on a plain-Ubuntu droplet (`agent/internal/meshup/meshup.go:45-51`; the named ADR 0100 error at `:100-103`). Commits `3141ddd1` and `ab538cc9` landed ~6 minutes after `d53a4de3` and close it: `internal/join/land.go:86` now gates the join on `g.Mesh.Redeemable()`, and `internal/enroll/community_ca.go:210-213` (`MeshAdmissionFor`) returns an empty admission for `RoleGateway` (`internal/enroll/enroll.go:290` is the predicate). Verified here on HEAD `2d4b114c`: `go test ./internal/join/ ./internal/enroll/...` → ok, with `internal/join/land_test.go:441` ("a gateway grant must carry no mesh admission") and `:448` ("the gateway landing must not attempt mesh admission") covering this exact path. The remainder of the landing is clean on stock Ubuntu — `trust.InstallCerts` shells `update-ca-certificates`, `trust.Up` shells `systemctl enable --now sshd`, and `Mesh.Address()` returns the documented honest empty (`internal/join/land.go:106-110`). **Action for this half: re-drive at HEAD, no fix needed.** ## The defect that is still open The same transcript shows the device-end terminal naming no community — twice, including on the irreversible-consent screen: ``` idss-agent unknown · joining … Type WIPE to consent, anything else to stop: WIPE ✓ consent recorded — the wipe runs at first deploy … ✓ connection request sent to ``` The community is not nameless: `logs/founding-state.log` records `"name": "E2E Drive"`, and the operator app's own window header renders `E2E Drive — IDSS` (the page snapshot in `artifacts/journey.idip-…/error-context.md`). Only the device end is blank. **Cause.** Both renders read `resp.Community.Name` — `internal/join/cli.go:143` and `internal/join/cli.go:200`. That is filled from the ledger's config at `internal/enroll/ledger.go:312` (`redeemResponse` → `Community: l.cfg.Community`), and `enroll.Config.Community` (`internal/enroll/ledger.go:64-65`) is set **only at ledger construction**. The operator app's helper never sets it: `newEnrollLedger` at `app/helper/cmd/helper/wiring_prod.go:246-249` builds `enroll.Config` with `Granter` and `SpecFloors` and nothing else — while its own doc comment at `app/helper/cmd/helper/wiring_prod.go:225` asserts "The community header is stamped as founding commits the draft." Nothing stamps it; there is no verb on the ledger that can. The same zero value also blanks the operator-side pending card headline at `internal/enroll/ledger.go:539` (`PendingView.Community`). **Why it matters.** ADR 0024 puts full-install consent in the machine's own terminal precisely so the person at the keyboard rules on it. They are currently asked to type `WIPE` — erasing everything on the machine — without being told which community they are joining. That is a consent-quality defect, not cosmetics. ## What plugging it needs The defective line is identified (`app/helper/cmd/helper/wiring_prod.go:246-249`), but the fix is not mechanical and needs a ruling before anyone edits: the helper opens the ledger at boot, and in this drive the community was created *inside the same process run*, after that (helper boot → founding creates "E2E Drive" → device Redeem at 16:26:38). So a construction-time read cannot work, and the choice is a seam decision: 1. give `enroll.Config` a lazy community source the ledger calls at `redeemResponse`/`Pending` time (keeps `internal/enroll` clean of `internal/clan`; the helper supplies the func, precedent: `clan.ReadCommunityName` as used at `app/helper/cmd/helper/seat.go:25` and `app/helper/cmd/helper/main.go:138`), or 2. add an explicit ledger verb founding calls when it commits the draft — which is what `wiring_prod.go:225` already claims happens, and would make the comment true, or 3. refresh/reopen the ledger config on the founding commit. Whichever is chosen, the regression guard is a seam test asserting a redeem response after a named community carries that name into `RedeemResponse.Community.Name`, plus a `internal/join/cli.go` terminal-render test asserting the WIPE screen names the community. Also correct the now-false doc comment at `app/helper/cmd/helper/wiring_prod.go:225` in the same commit. drive `20260827T162500Z` red at `consent`: `the terminal join exited 1 --- transcript --- Warning: Permanently added '170.64.179.20' (ED25519) to the list of known hosts. idss-agent unknown · joining How should this machine contribute? [1] Ful` evidence: `/home/dev/swarm/Matou/idss/test-results/drive-idip/20260827T162500Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: 28ff46f6d26f -->
Owner

Real but cosmetic and pre-existing on the kanidm path too (the last green self-hosted transcript also prints connection request sent to ) — it does not red a leg, so it must not block the standing drive. Unlinking it from #788; it stays open on its own merits.

Real but cosmetic and pre-existing on the kanidm path too (the last green self-hosted transcript also prints `connection request sent to `) — it does not red a leg, so it must not block the standing drive. Unlinking it from #788; it stays open on its own merits.
Author
Member

drive 20260827T162500Z red at consent: the terminal join exited 1 --- transcript --- Warning: Permanently added '170.64.179.20' (ED25519) to the list of known hosts. idss-agent unknown · joining How should this machine contribute? [1] Ful
evidence: /home/dev/swarm/Matou/idss/test-results/drive-idip/20260827T162500Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

drive `20260827T162500Z` red at `consent`: `the terminal join exited 1 --- transcript --- Warning: Permanently added '170.64.179.20' (ED25519) to the list of known hosts. idss-agent unknown · joining How should this machine contribute? [1] Ful` evidence: `/home/dev/swarm/Matou/idss/test-results/drive-idip/20260827T162500Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured
Owner

Watch note (ADR 0174) — the exit 3 drive evidence the reporter keeps appending here is NOT this ticket's fault.

Those parks are the bootstrap-stale preflight gate (7a160eb3) refusing to drive because get.idss.nz serves an agent 7 agent-affecting commits behind origin/main. They match this ticket only by drive signature (28ff46f6d26f), not by cause. Fixing #910 will not clear them, and the drive will keep parking in preflight regardless of what lands here.

I have filed #911 for the real gate (the get.idss.nz reseed — hands, Ben's laptop per #600) and blocked #788 on it as well, so the blocker chain names the actual wall.

#910 itself stands and is worth fixing on its own merits: the founding join's terminal copy asks a person to type WIPE to erase their machine while naming no community at all (idss-agent unknown · joining ), and the leg's assertion (journey.idip.spec.ts:341) only greps for connection request sent, so no test can catch it. That is a consent-surface honesty defect sitting behind a blind assertion — exactly the kind ADR 0100 exists for. Please do fix it; just don't expect it to make the drive go green.

**Watch note (ADR 0174) — the `exit 3` drive evidence the reporter keeps appending here is NOT this ticket's fault.** Those parks are the `bootstrap-stale` preflight gate (`7a160eb3`) refusing to drive because `get.idss.nz` serves an agent **7 agent-affecting commits behind `origin/main`**. They match this ticket only by drive signature (`28ff46f6d26f`), not by cause. **Fixing #910 will not clear them**, and the drive will keep parking in preflight regardless of what lands here. I have filed **#911** for the real gate (the `get.idss.nz` reseed — hands, Ben's laptop per #600) and blocked #788 on it as well, so the blocker chain names the actual wall. **#910 itself stands and is worth fixing on its own merits**: the founding join's terminal copy asks a person to type `WIPE` to erase their machine while naming no community at all (`idss-agent unknown · joining `), and the leg's assertion (`journey.idip.spec.ts:341`) only greps for `connection request sent`, so no test can catch it. That is a consent-surface honesty defect sitting behind a blind assertion — exactly the kind ADR 0100 exists for. Please do fix it; just don't expect it to make the drive go green.
Author
Member

Ruled by agent under ADR 0174 — veto anytime.

Ruling. This is a two-way door: a revertible code change (commit + tests, no schema/secret/security-posture move), provable by existing-style unit tests. No one-way door touched. I adopted the ticket's seam-decision option 1 — a late-bound enroll.Config.CommunitySource the ledger consults at Redeem/Pending time — over option 2 (a new ledger verb founding calls) and option 3 (reopen the config on commit), because:

  • The community is stamped after the ledger opens, in the same process run — a construction-time read cannot work, which rules option 3 out cleanly.
  • Option 1 keeps internal/enroll free of internal/clan (the helper supplies the func) and reuses the exact durable-residue read the seat and brand readers already use (clan.ReadCommunityName off the config-repo header), rather than introducing a new write-ordering coupling (option 2).

Close-report.

What landed — commit aec711b3 (pushed to main, full nix Go gate green: gofmt/build/vet/test/golangci-lint).

  • internal/enroll/ledger.go: added Config.CommunitySource func() (Community, bool); a (*Ledger).community() resolver the late-bound source wins, else the static Community; used at redeemResponse and ListPending (was l.cfg.Community / .Name directly).
  • app/helper/cmd/helper/wiring_prod.go: newEnrollLedger now wires CommunitySource: communityHeaderSource(), which reads clan.ReadCommunityName(clanConfigRepoPath()) per call; corrected the now-true doc comment at the constructor.
  • STATUS.md: P7 drive detail notes the #910 consent-surface fix.

Proof (red before green) — dropping the one wiring line reproduces the exact defect: TestNewEnrollLedger_NamesCommunityLateBound fails with redeem community = "" (the nameless join), and passes with it. Three guards:

  • internal/enroll — TestRedeem_CommunitySource_LateBound: a Redeem (and its pending card) after a named community carries the name into RedeemResponse.Community.Name, blank before.
  • internal/join/cli.go — TestTerminal_WipeScreenNamesTheCommunity: the WIPE-consent transcript names the community (the leg's connection request sent grep at journey.idip.spec.ts:341 was blind to a nameless join).
  • app/helper — TestNewEnrollLedger_NamesCommunityLateBound / TestCommunityHeaderSource_LateBinds: the shipped constructor stamps the founded name onto a Redeem taken after boot, read late-bound.

Scope note — the consent red on drive 20260827T162500Z was already repaired at HEAD (3141ddd1/ab538cc9, #907), verified here (go test ./internal/join/ ./internal/enroll/... green). This ticket only ever owned the separate nameless-community consent-quality defect from the same transcript, which is now closed. Per Ben's 16:50 note this was already unlinked from #788 and does not gate the drive (the drive parks on the bootstrap-stale preflight, tracked at #911). Closing.

**Ruled by agent under ADR 0174 — veto anytime.** **Ruling.** This is a two-way door: a revertible code change (commit + tests, no schema/secret/security-posture move), provable by existing-style unit tests. No one-way door touched. I adopted the ticket's **seam-decision option 1** — a late-bound `enroll.Config.CommunitySource` the ledger consults at Redeem/Pending time — over option 2 (a new ledger verb founding calls) and option 3 (reopen the config on commit), because: - The community is stamped *after* the ledger opens, in the same process run — a construction-time read cannot work, which rules option 3 out cleanly. - Option 1 keeps `internal/enroll` free of `internal/clan` (the helper supplies the func) and reuses the exact durable-residue read the seat and brand readers already use (`clan.ReadCommunityName` off the config-repo header), rather than introducing a new write-ordering coupling (option 2). **Close-report.** *What landed* — commit `aec711b3` (pushed to `main`, full nix Go gate green: gofmt/build/vet/test/golangci-lint). - `internal/enroll/ledger.go`: added `Config.CommunitySource func() (Community, bool)`; a `(*Ledger).community()` resolver the late-bound source wins, else the static `Community`; used at `redeemResponse` and `ListPending` (was `l.cfg.Community` / `.Name` directly). - `app/helper/cmd/helper/wiring_prod.go`: `newEnrollLedger` now wires `CommunitySource: communityHeaderSource()`, which reads `clan.ReadCommunityName(clanConfigRepoPath())` per call; corrected the now-true doc comment at the constructor. - `STATUS.md`: P7 drive detail notes the #910 consent-surface fix. *Proof (red before green)* — dropping the one wiring line reproduces the exact defect: `TestNewEnrollLedger_NamesCommunityLateBound` fails with `redeem community = ""` (the nameless join), and passes with it. Three guards: - `internal/enroll` — `TestRedeem_CommunitySource_LateBound`: a Redeem (and its pending card) after a named community carries the name into `RedeemResponse.Community.Name`, blank before. - `internal/join/cli.go` — `TestTerminal_WipeScreenNamesTheCommunity`: the WIPE-consent transcript names the community (the leg's `connection request sent` grep at `journey.idip.spec.ts:341` was blind to a nameless join). - `app/helper` — `TestNewEnrollLedger_NamesCommunityLateBound` / `TestCommunityHeaderSource_LateBinds`: the shipped constructor stamps the founded name onto a Redeem taken after boot, read late-bound. *Scope note* — the `consent` **red** on drive `20260827T162500Z` was already repaired at HEAD (`3141ddd1`/`ab538cc9`, #907), verified here (`go test ./internal/join/ ./internal/enroll/...` green). This ticket only ever owned the separate nameless-community consent-quality defect from the same transcript, which is now closed. Per Ben's 16:50 note this was already unlinked from #788 and does not gate the drive (the drive parks on the `bootstrap-stale` preflight, tracked at #911). Closing.
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#910
No description provided.