P2-S5 Connected card never leaves the Fleet strip — the enrolled projection (#979) has no prune/leave rule #982
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#982
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?
The gap
Follow-up to #979 (landed in
c7eef7e2). #979 made the enrolled devicerender live as the P2-S5 "Connected — not yet set up" card by adding
enroll.StatusEnrolledto the pending projection query(
internal/controlapi/enroll.goregisterEnrollPending). That fixed thedevice vanishing. It did not answer the open question #979 flagged:
when does the P2-S5 Connected card LEAVE the strip?
enroll.StatusEnrolledis terminal (internal/enroll/enroll.go:65) andthe ledger never prunes (
internal/enroll/ledger.goListPendingreturnsevery matching request forever). So with the #979 fix in place, a standing
community accumulates one permanent Connected card per device ever
enrolled — the strip never empties even after every device is set up. The
device-add flow's
S5 --provision--> P4S1edge(
docs/ux/flows/p2-device-add-cli.mermaid:19) implies the card should leaveonce the device is provisioned, but no rule exists for that today, in the
flow contract or the code.
Why this is design-tier, not a swarm build
There are three candidate leave-rules and no chosen default, and each has a
different subsystem coupling:
is already provisioned. Matches the flow's
S5→P4S1edge most directly.Cost: couples the enroll pending projection to provisioning/fleet state
(the fleet store already holds
node-<requestID>with aProvisionedbool—
internal/controlapi/fleet.go:81— but the enroll ledger'sListPendinghas no view of it today; a new dependency edge).
confirmed within the last N (minutes/hours), then falls off. No cross-
subsystem coupling, but picks an arbitrary window and can hide a device the
operator hasn't yet acted on.
affordance; enrolled requests leave once acknowledged. New wire verb + UI
affordance + a persisted ack bit.
There is also a second surface in play: the resting Fleet list is where the
enrolled device permanently lives (
enrolledFleetNode,dashboard/src/lib/pending.ts:146, is currently unwired, andFleetSurface.vueloads onceonMountedwith no live re-read —dashboard/src/components/shell/FleetSurface.vue:186). The admission hookalready places the node un-provisioned server-side
(
internal/enroll/admission.go,internal/enroll/ledger.goOnEnrolled), sothe leave-rule and the resting-list live re-read are two halves of the same
"where does a landed device live over time" design.
Proposed default ruling (adopt under ADR 0174 if it qualifies)
Candidate 1 (prune-when-provisioned), because it is the only one the
existing flow contract already implies (
S5→P4S1), needs no arbitrary windowand no new operator gesture, and is provable with an integration test (enroll
a device, mark its node provisioned, assert it drops off
GET /api/v1/enroll/pendingwhile staying onGET /api/v1/fleet). Wire theresting Fleet list's live re-read in the same slice so the device is never
invisible during the hand-off. The enroll→fleet coupling this introduces is
the design decision to confirm before building — hence
needs-design.Until this lands, the #979 fix is net-correct (a device that just joined shows
its true P2-S5 state) but a long-standing community's strip will show stale
Connected cards for already-provisioned devices.
Provenance
Filed by a session-runner agent while landing #979 under ADR 0174 — the
leave-rule was deliberately NOT guessed in that two-way-door fix. Relates to
device-add stories 20/26.
Ruled by Ben, 2026-08-29 — prune-when-provisioned (candidate 1)
The P2-S5 Connected card leaves the strip when the device's fleet node is provisioned — the rule the flow contract already implies (
S5 --provision--> P4S1,docs/ux/flows/p2-device-add-cli.mermaid:19). No recency window, no dismiss gesture.Build shape as proposed in the filing:
node-<requestID>) hasProvisioned: true— the enroll→fleet read coupling is hereby accepted as the design decision.enrolledFleetNodeindashboard/src/lib/pending.ts+FleetSurface.vue's one-shotonMountedload) so the device is never invisible during the hand-off.GET /api/v1/enroll/pendingwhile staying onGET /api/v1/fleet.Label flipped needs-design → ready-for-agent.
swarm-claim host=matou-dev-server-01 run=14215
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #982 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope