fleet REGRESSION: the gateway's own mesh peer presents as a joinable "A device is joining — idss-gateway-whakatohea-demo-6f00 · connected — not set up" (#1221 back, on a rented IDIP gateway) #1728
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.
Dependencies
No dependencies set.
Reference
Matou/idss#1728
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?
What Ben saw (Whakatōhea Demo 2026-09-22, release
cef28743)Fleet tab, top card: A DEVICE IS JOINING — idss-gateway-whakatohea-demo-6f00 — joined the community network just now — CONNECTED · NOT SET UP — [Set up this device →]. That hostname IS the gateway (the DigitalOcean droplet name). There is one machine in this community; the panel offers to set it up as a second device.
What it is
#1221 (closed 2026-09-09) named exactly this: the gateway's own NetBird peer surfaces in the pending-devices read as a joinable mesh peer because nothing marks the gateway's peer as the gateway's. Its fix pinned the gateway's mesh identity to its fleet node (
PlacedNode.Identity) on the drives' paths. On this rented + IDIP hand founding the pin did not hold: the peer is listed by its DROPLET hostname (idss-gateway-<slug>-<hex>), not by the fleet node idgateway— so either the rented path names the peer differently from what the #1221 pin matches on, or the IDIP path never records the gateway's peer identity (drives green on Kanidm/local — the harness-vs-product blind spot again).Why it matters
An operator who presses Set up this device starts device-add's place-and-provision flow AGAINST THEIR OWN GATEWAY (a second node record for the same machine, a deploy target of itself). Unknown what that does; likely destructive or a hang. Until fixed the card is a trap on every rented community.
Fix
/api/v1/fleet…); fix the identity pin for the rented + IDIP founding path (founding records the gateway's peer key/hostname at hand-off, the pending read excludes any peer whose identity is a placed node's).Set up this devicerefuses a self-target loudly (ADR 0100).Demo
Ben: do NOT press Set up this device. Nothing else needed on the box.
Reopens the substance of #1221.
swarm-claim host=matou-dev-server-01 run=30128
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
Ruling: Fix the identity pin at the pending-strip prune seam, in-repo, without waiting on a live dump — the root cause is provable from the code path alone.
Root cause (confirmed in code, no live box needed): the founding gateway is an Enrolled request whose grant node is the ledger identity
node-req-0001(enroll.FoundingGatewayNodeID; grant node is alwaysnode-+requestID). A rented/own-VPS gateway is PLACED under the clan inventory's own namegateway(ownVPSNode,rentedpath.go/ownvpspath.gosetst.ClanNode = ownVPSNode), and #1221'sBindIdentity(founding/seed.go) pinsnode-req-0001onto that placed node'sPlacedNode.Identitybecause the two names diverge. But the prune (NewEnrollPendingPruned→enrolledNodeProvisioning.Provisioned) askedprojection.Device(nodeID), whose lookup matches by placement id alone and ignoresIdentity. SoProvisioned("node-req-0001")returned false, the gateway's own Connected card never pruned, and Fleet rendered it as a joinable peer (card display name = the droplet hostname, the request's probed name). Kanidm/local drives never asserted "no joining card" post-founding — the harness-vs-product blind spot.Change:
enrolledNodeProvisioning.Provisionednow matches the placed gateway by its ledger IDENTITY as well as its id.Why two-way door: a revertible read-side filter over projected state — no product behaviour, no data, no security posture changes; reverting the one method restores the prior read exactly.
What proves it: red-first seam test
TestEnrolledNodeProvisioning_MatchesTheGatewayByItsLedgerIdentity(control-plane/cmd/control-plane) founds a gateway on a real ledger (mint→redeem→pair with the droplet hostname→approve→confirm Enrolled), places it rented-shaped (ID:"gateway",Identity:"node-req-0001"), and asserts the SAME pruned decorator the whole composition wires returns ZERO pending rows. It fails before the fix (Provisioned("node-req-0001") = false) and passes after.Deferred, noted here: the belt-and-braces
Set up this deviceself-target refusal (ADR 0100) is a separate provision-flow slice — the card is now gone so the observed trap is closed; and the live assertion (Fleet shows exactly one row, no joining card after founding) rides #1688's IDIP prove-it drive.close-report for #1728 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope