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
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#910
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
Drive
20260827T162500Z(--target idip, signature28ff46f6d26f) went red at leg 6consent: the terminal join exited 1 withjoin: 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.jsonpins the drive to"commit": "d53a4de3c6c705e0e3502c796fedf40d5e10d4e0". At that commitinternal/join/land.goredeemed the grant's admission unconditionally andinternal/enroll/community_ca.gominted placeholder admission material (randBytes+mesh.internal) for every role, including the founding gateway.state/enroll.jsonshows this drive's request as"role": "gateway"withgrant.mesh.management: "mesh.internal", someshupfailed loud and correctly on a plain-Ubuntu droplet (agent/internal/meshup/meshup.go:45-51; the named ADR 0100 error at:100-103).Commits
3141ddd1andab538cc9landed ~6 minutes afterd53a4de3and close it:internal/join/land.go:86now gates the join ong.Mesh.Redeemable(), andinternal/enroll/community_ca.go:210-213(MeshAdmissionFor) returns an empty admission forRoleGateway(internal/enroll/enroll.go:290is the predicate). Verified here on HEAD2d4b114c:go test ./internal/join/ ./internal/enroll/...→ ok, withinternal/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.InstallCertsshellsupdate-ca-certificates,trust.Upshellssystemctl enable --now sshd, andMesh.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:
The community is not nameless:
logs/founding-state.logrecords"name": "E2E Drive", and the operator app's own window header rendersE2E Drive — IDSS(the page snapshot inartifacts/journey.idip-…/error-context.md). Only the device end is blank.Cause. Both renders read
resp.Community.Name—internal/join/cli.go:143andinternal/join/cli.go:200. That is filled from the ledger's config atinternal/enroll/ledger.go:312(redeemResponse→Community: l.cfg.Community), andenroll.Config.Community(internal/enroll/ledger.go:64-65) is set only at ledger construction. The operator app's helper never sets it:newEnrollLedgeratapp/helper/cmd/helper/wiring_prod.go:246-249buildsenroll.ConfigwithGranterandSpecFloorsand nothing else — while its own doc comment atapp/helper/cmd/helper/wiring_prod.go:225asserts "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 atinternal/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:enroll.Configa lazy community source the ledger calls atredeemResponse/Pendingtime (keepsinternal/enrollclean ofinternal/clan; the helper supplies the func, precedent:clan.ReadCommunityNameas used atapp/helper/cmd/helper/seat.go:25andapp/helper/cmd/helper/main.go:138), orwiring_prod.go:225already claims happens, and would make the comment true, orWhichever 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 ainternal/join/cli.goterminal-render test asserting the WIPE screen names the community. Also correct the now-false doc comment atapp/helper/cmd/helper/wiring_prod.go:225in the same commit.drive
20260827T162500Zred atconsent: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] Fulevidence:
/home/dev/swarm/Matou/idss/test-results/drive-idip/20260827T162500Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedReal 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.drive
20260827T162500Zred atconsent: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] Fulevidence:
/home/dev/swarm/Matou/idss/test-results/drive-idip/20260827T162500Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedWatch note (ADR 0174) — the
exit 3drive evidence the reporter keeps appending here is NOT this ticket's fault.Those parks are the
bootstrap-stalepreflight gate (7a160eb3) refusing to drive becauseget.idss.nzserves an agent 7 agent-affecting commits behindorigin/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.nzreseed — 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
WIPEto 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 forconnection 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.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.CommunitySourcethe ledger consults at Redeem/Pending time — over option 2 (a new ledger verb founding calls) and option 3 (reopen the config on commit), because:internal/enrollfree ofinternal/clan(the helper supplies the func) and reuses the exact durable-residue read the seat and brand readers already use (clan.ReadCommunityNameoff the config-repo header), rather than introducing a new write-ordering coupling (option 2).Close-report.
What landed — commit
aec711b3(pushed tomain, full nix Go gate green: gofmt/build/vet/test/golangci-lint).internal/enroll/ledger.go: addedConfig.CommunitySource func() (Community, bool); a(*Ledger).community()resolver the late-bound source wins, else the staticCommunity; used atredeemResponseandListPending(wasl.cfg.Community/.Namedirectly).app/helper/cmd/helper/wiring_prod.go:newEnrollLedgernow wiresCommunitySource: communityHeaderSource(), which readsclan.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_NamesCommunityLateBoundfails withredeem 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 intoRedeemResponse.Community.Name, blank before.internal/join/cli.go—TestTerminal_WipeScreenNamesTheCommunity: the WIPE-consent transcript names the community (the leg'sconnection request sentgrep atjourney.idip.spec.ts:341was 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
consentred on drive20260827T162500Zwas 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 thebootstrap-stalepreflight, tracked at #911). Closing.sshd.service; the Ubuntu 24.04 droplet hasssh.service#912sshd.service; the Ubuntu 24.04 droplet hasssh.service#912