transport: pending-strip-live — the Fleet pending strip over a real enroll pending projection #184

Closed
opened 2026-07-30 01:55:01 +00:00 by ben · 1 comment
Owner

Parent

Issue #151 (transport:device-add-live) — split out per Ben's ruling A (2026-07-30) on the pending-strip seam-data gap (the #128/#130 split precedent). #151 ships the codes-ledger and device-add mint/call-in sources now; this ticket makes the Fleet pending strip (P2-S4/S5) real.

What to build

  1. An additive pending projection on the enroll Operator face: the display fields the P2-S4 card renders — device name, community, the enrollment code, issuedBy, and issue time (issuedAgo derives client-side) — served alongside the existing RequestView status/probe/mode/network. Additive only: no existing field or verb moves (the confirmed seam's shape is untouched; this is the deliberate seam growth ruling A authorises, recorded here rather than slipped into #151).
  2. Wire the Fleet pending strip live over that projection through the generated client, reactive per the #151 poll/cache ruling. Until this lands the strip stays deliberately unwired-not-faked (ADR 0100) — exactly its state today.

Acceptance criteria

  • Given a minted code whose device has called in, When the Fleet strip renders, Then the P2-S4 card shows the real name / community / code / issuedBy / issuedAgo from the control plane — no field invented in a handler.
  • Given no pending request, When Fleet renders, Then no strip appears (the resting state stays honest).
  • Given the enroll seam suite, When it runs, Then every existing contract is untouched and the new projection is covered at the seam with the existing fakes.

Blocked by

  • #151 (ships the reactive store + the two unblocked sources this strip builds on).

Task manifest

task: transport:pending-strip-live
implements_flow: p2-device-add
implements_edge: "Fleet P2-S4/S5 pending strip reads real pending state"
wireframe: docs/ux/wireframes/p2-device-add/p2-s4-pending.html
interface: "additive pending projection on the enroll Operator face (name/community/code/issuedBy/issuedAt) + generated-client wiring"
seam: "internal/enroll seam tests (existing fakes) + a live-HTTP vitest for the strip"
acceptance:
  - given: a called-in pending request
    when: the strip renders
    then: the P2-S4 card fields are real control-plane data
depends_on: [transport-device-add-live]
out_of_scope: [any non-additive enroll seam change, approving/declining transport (already #151's), screen changes]
needs_human_decision: []
## Parent Issue #151 (`transport:device-add-live`) — split out per **Ben's ruling A (2026-07-30)** on the pending-strip seam-data gap (the #128/#130 split precedent). #151 ships the codes-ledger and device-add mint/call-in sources now; this ticket makes the Fleet pending strip (P2-S4/S5) real. ## What to build 1. **An additive pending projection on the `enroll` Operator face**: the display fields the P2-S4 card renders — device `name`, `community`, the enrollment `code`, `issuedBy`, and issue time (`issuedAgo` derives client-side) — served alongside the existing `RequestView` status/probe/mode/network. Additive only: no existing field or verb moves (the confirmed seam's shape is untouched; this is the deliberate seam growth ruling A authorises, recorded here rather than slipped into #151). 2. **Wire the Fleet pending strip live** over that projection through the generated client, reactive per the #151 poll/cache ruling. Until this lands the strip stays deliberately unwired-not-faked (ADR 0100) — exactly its state today. ## Acceptance criteria - [ ] Given a minted code whose device has called in, When the Fleet strip renders, Then the P2-S4 card shows the real name / community / code / issuedBy / issuedAgo from the control plane — no field invented in a handler. - [ ] Given no pending request, When Fleet renders, Then no strip appears (the resting state stays honest). - [ ] Given the enroll seam suite, When it runs, Then every existing contract is untouched and the new projection is covered at the seam with the existing fakes. ## Blocked by - #151 (ships the reactive store + the two unblocked sources this strip builds on). ## Task manifest ```yaml task: transport:pending-strip-live implements_flow: p2-device-add implements_edge: "Fleet P2-S4/S5 pending strip reads real pending state" wireframe: docs/ux/wireframes/p2-device-add/p2-s4-pending.html interface: "additive pending projection on the enroll Operator face (name/community/code/issuedBy/issuedAt) + generated-client wiring" seam: "internal/enroll seam tests (existing fakes) + a live-HTTP vitest for the strip" acceptance: - given: a called-in pending request when: the strip renders then: the P2-S4 card fields are real control-plane data depends_on: [transport-device-add-live] out_of_scope: [any non-additive enroll seam change, approving/declining transport (already #151's), screen changes] needs_human_decision: [] ```
Author
Owner

Done (Ruling B) — landed on main as commit b4a2d99 (sandcastle: transport:pending-strip-live #184).

What shipped — the Fleet pending strip (P2-S4/S5) now reads the real control plane over the additive enroll pending projection Ruling B authorised. No confirmed seam field or verb moved.

  • enroll domain (internal/enroll): PendingView carries the confirmed RequestView VERBATIM (status/probe/mode/network) plus the card-headline fields it never held (name/community/code/issuedBy/issuedAt), composed at read time by Ledger.ListPending from the request's bound code (issuer + a new codeRecord.Created mint-time) and the ledger community config. The device name is its probed hostname — an additive ProbeReport.Hostname.
  • OpenAPI (packages/openapi-spec/openapi.yaml): GET /enroll/pending + PendingView/RequestView/ProbeReport/NetworkFacts schemas; generated.ts regenerated, check:client in sync.
  • Control plane (internal/controlapi/enroll.go): WithEnrollPending over the real *enroll.Ledger — a separate face from #151's device-add codes face (which kept the pending list off itself for exactly this ticket). Go seam test (enroll_integration_test.go): resting→[]; call-in→pair→the P2-S4 card's real fields.
  • Dashboard (enrollClient.ts): HttpPendingSource polls the projection on #151's poll/cache shape and pushes P2-S4 cards to the strip's watch() (a device calling in appears with no reload; issuedAgo derived client-side). Wired REAL into productionDashboardDeps.fleet.pending. Node-env live-HTTP vitest pendingLive.test.ts mounts the strip over the real client.

Scope: approve/decline transport is out of scope (already #151's) — the live source fails them loud (ADR 0100), never a fake success, until that transport lands.

Acceptance

  • AC1 — called-in pending request → the P2-S4 card shows real name/community/code/issuedBy/issuedAgo from the control plane (Go integration test + live-HTTP vitest). ✅
  • AC2 — no pending request → no strip (resting-state test). ✅
  • AC3 — additive only; the full enroll + controlapi Go suites are untouched-and-green; the new projection is covered at the seam. ✅

Verify: go build ./.../vet/gofmt clean; go test ./... green; check:client in sync; vue-tsc + eslint clean; all 682 dashboard tests green.

Follow-up: the approve/decline transport (a separate slice), and registering WithEnrollPending (like #151's WithEnroll) in the composition root control-plane/cmd/control-plane/main.go — the compose ticket's job.

Done (Ruling B) — landed on `main` as commit `b4a2d99` (`sandcastle: transport:pending-strip-live #184`). **What shipped** — the Fleet pending strip (P2-S4/S5) now reads the real control plane over the additive enroll pending projection Ruling B authorised. No confirmed seam field or verb moved. - **enroll domain** (`internal/enroll`): `PendingView` carries the confirmed `RequestView` VERBATIM (status/probe/mode/network) plus the card-headline fields it never held (name/community/code/issuedBy/issuedAt), composed at read time by `Ledger.ListPending` from the request's bound code (issuer + a new `codeRecord.Created` mint-time) and the ledger community config. The device `name` is its probed hostname — an additive `ProbeReport.Hostname`. - **OpenAPI** (`packages/openapi-spec/openapi.yaml`): `GET /enroll/pending` + `PendingView`/`RequestView`/`ProbeReport`/`NetworkFacts` schemas; `generated.ts` regenerated, `check:client` in sync. - **Control plane** (`internal/controlapi/enroll.go`): `WithEnrollPending` over the real `*enroll.Ledger` — a separate face from #151's device-add codes face (which kept the pending list off itself for exactly this ticket). Go seam test (`enroll_integration_test.go`): resting→[]; call-in→pair→the P2-S4 card's real fields. - **Dashboard** (`enrollClient.ts`): `HttpPendingSource` polls the projection on #151's poll/cache shape and pushes P2-S4 cards to the strip's `watch()` (a device calling in appears with no reload; `issuedAgo` derived client-side). Wired REAL into `productionDashboardDeps.fleet.pending`. Node-env live-HTTP vitest `pendingLive.test.ts` mounts the strip over the real client. **Scope**: approve/decline transport is out of scope (`already #151's`) — the live source **fails them loud** (ADR 0100), never a fake success, until that transport lands. **Acceptance** - AC1 — called-in pending request → the P2-S4 card shows real name/community/code/issuedBy/issuedAgo from the control plane (Go integration test + live-HTTP vitest). ✅ - AC2 — no pending request → no strip (resting-state test). ✅ - AC3 — additive only; the full enroll + controlapi Go suites are untouched-and-green; the new projection is covered at the seam. ✅ **Verify**: `go build ./...`/`vet`/`gofmt` clean; `go test ./...` green; `check:client` in sync; `vue-tsc` + `eslint` clean; all 682 dashboard tests green. **Follow-up**: the approve/decline transport (a separate slice), and registering `WithEnrollPending` (like #151's `WithEnroll`) in the composition root `control-plane/cmd/control-plane/main.go` — the compose ticket's job.
ben closed this issue 2026-07-30 05:57:45 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#184
No description provided.