Device Set up on an IDIP community: the picker offers Newsletters (no IDIP sign-in yet), the deploy refuses it, and the dashboard shows "This view hit a display fault" instead of the refusal #2039

Closed
opened 2026-10-02 23:18:02 +00:00 by ben · 2 comments
Owner

Symptom (Whakatōhea Demo, 2026-10-03, device Delilah = node-req-0005)

Ben set up the newly enrolled full-install device from the control panel. Every Set up attempt ended on the surface error boundary: "This view hit a display fault. The fleet itself is unaffected — this is a display failure, not a service failure." No refusal text, no retry path, nothing on the device.

Evidence

Gateway journalctl -u idss-control-plane, two attempts:

23:13:01Z WARN provision deploy failed device=node-req-0005 error="provision: no sign-in on this community yet: Newsletters can't be signed into on this community yet"
23:14:33Z WARN provision deploy failed device=node-req-0005 error="provision: no sign-in on this community yet: Newsletters can't be signed into on this community yet"

GET /api/v1/provision/devices/node-req-0005/assessment on the same box, selection.available:

docs-editing  gated:false  "fits: 4 GB"
calendar      gated:false  "fits: 4 GB"
newsletters   gated:false  "fits: 2 GB"     <- offered as a plain pick on an IDIP community
video         gated:false  "fits: 4 GB"
whakapapa     gated:false  "fits: 2 GB"

Box release 7373b279 (main head, 2026-10-03). Demo is an IDIP community (bridgeIDP).

Two defects

1. The picker offers what the deploy refuses. refuseAddingWithoutIDIPSignIn (internal/provision/assess.go, #1927) refuses adding any notYetIDIPReady service (today newsletters Listmonk, chat Mattermost) on an IDIP community — but only at Deploy (deploy.go:217). Assess/ForRole still list those services in available with gated:false and a fit line, so the P4-S2 picker presents Newsletters as a normal choice, the operator ticks it, reviews impact, confirms, and is refused three screens later with no pointer back to the tick. The gate belongs in the assessment: on an IDIP community a not-yet-ready service must come back gated:true with the note no sign-in on this community yet (the same words the deploy uses), and must never be in recommended.

2. The refusal crashes the view instead of being shown. writeProvisionErr answers the refusal as a 400 act_failed Problem carrying the sentence. SetupSurface.runDeploy awaits source.deploy(...) inside run(); on a thrown refusal it relies on error.value keeping the surface on deploy — but deployRun is null (the deploy never started, so no frame was ever streamed) and the template renders DeployScreen only when view === 'deploy' && deployRun, so whatever renders in that state throws and SurfaceErrorBoundary swallows it to the generic "display fault" line (console-only, onErrorCaptured). Expected (P4-S3/S4 wireframes, story 13): a refused deploy is a plain error panel on the review/deploy surface quoting the Problem's sentence with "Back to select" — never the boundary. Add the unit test: deploy() rejects with a 400 act_failed before any frame → the surface shows the sentence and the back action, no throw.

Acceptance

  • On an IDIP community the assessment lists newsletters and chat as gated:true with the no-sign-in note; the picker shows them unticked and unpickable with that note; they never appear in recommended. Kanidm communities unchanged. A service already running stays listed (the withheld mirror).
  • A deploy refusal (any 400 from POST …/deploy before the first frame) renders the Problem's sentence on the surface with Back to select; SurfaceErrorBoundary is not reached. Unit test pins it.
  • The #1927 convention note in assess.go names BOTH gates (assessment + deploy) so the next slug removed from notYetIDIPReady is removed from one map only.
  • GOTCHAS #389 stays accurate.

Workaround today

Untick Newsletters (and Chat if offered) in Set up, then confirm. The recommended set (archive, data-collections, document-archive, files, surveys + their backup copies) deploys.

#1927, #1915 (IDIP AID-keyed services arc), internal/provision/assess.go (notYetIDIPReady, refuseAddingWithoutIDIPSignIn), internal/provision/deploy.go:217, internal/controlapi/provision.go (writeProvisionErr), dashboard/src/components/provisioning/SetupSurface.vue (runDeploy), dashboard/src/components/SurfaceErrorBoundary.vue, DDR 0156.

## Symptom (Whakatōhea Demo, 2026-10-03, device `Delilah` = node-req-0005) Ben set up the newly enrolled full-install device from the control panel. Every Set up attempt ended on the surface error boundary: **"This view hit a display fault. The fleet itself is unaffected — this is a display failure, not a service failure."** No refusal text, no retry path, nothing on the device. ## Evidence Gateway `journalctl -u idss-control-plane`, two attempts: ``` 23:13:01Z WARN provision deploy failed device=node-req-0005 error="provision: no sign-in on this community yet: Newsletters can't be signed into on this community yet" 23:14:33Z WARN provision deploy failed device=node-req-0005 error="provision: no sign-in on this community yet: Newsletters can't be signed into on this community yet" ``` `GET /api/v1/provision/devices/node-req-0005/assessment` on the same box, `selection.available`: ``` docs-editing gated:false "fits: 4 GB" calendar gated:false "fits: 4 GB" newsletters gated:false "fits: 2 GB" <- offered as a plain pick on an IDIP community video gated:false "fits: 4 GB" whakapapa gated:false "fits: 2 GB" ``` Box release `7373b279` (main head, 2026-10-03). Demo is an IDIP community (`bridgeIDP`). ## Two defects **1. The picker offers what the deploy refuses.** `refuseAddingWithoutIDIPSignIn` (`internal/provision/assess.go`, #1927) refuses adding any `notYetIDIPReady` service (today `newsletters` Listmonk, `chat` Mattermost) on an IDIP community — but only at `Deploy` (`deploy.go:217`). `Assess`/`ForRole` still list those services in `available` with `gated:false` and a fit line, so the P4-S2 picker presents Newsletters as a normal choice, the operator ticks it, reviews impact, confirms, and is refused three screens later with no pointer back to the tick. The gate belongs in the assessment: on an IDIP community a not-yet-ready service must come back `gated:true` with the note `no sign-in on this community yet` (the same words the deploy uses), and must never be in `recommended`. **2. The refusal crashes the view instead of being shown.** `writeProvisionErr` answers the refusal as a 400 `act_failed` Problem carrying the sentence. `SetupSurface.runDeploy` awaits `source.deploy(...)` inside `run()`; on a thrown refusal it relies on `error.value` keeping the surface on `deploy` — but `deployRun` is null (the deploy never started, so no frame was ever streamed) and the template renders `DeployScreen` only when `view === 'deploy' && deployRun`, so whatever renders in that state throws and `SurfaceErrorBoundary` swallows it to the generic "display fault" line (console-only, `onErrorCaptured`). Expected (P4-S3/S4 wireframes, story 13): a refused deploy is a plain error panel on the review/deploy surface quoting the Problem's sentence with "Back to select" — never the boundary. Add the unit test: `deploy()` rejects with a 400 `act_failed` before any frame → the surface shows the sentence and the back action, no throw. ## Acceptance - On an IDIP community the assessment lists `newsletters` and `chat` as `gated:true` with the no-sign-in note; the picker shows them unticked and unpickable with that note; they never appear in `recommended`. Kanidm communities unchanged. A service already running stays listed (the withheld mirror). - A deploy refusal (any 400 from `POST …/deploy` before the first frame) renders the Problem's sentence on the surface with Back to select; `SurfaceErrorBoundary` is not reached. Unit test pins it. - The `#1927` convention note in `assess.go` names BOTH gates (assessment + deploy) so the next slug removed from `notYetIDIPReady` is removed from one map only. - GOTCHAS #389 stays accurate. ## Workaround today Untick **Newsletters** (and Chat if offered) in Set up, then confirm. The recommended set (archive, data-collections, document-archive, files, surveys + their backup copies) deploys. ## Related #1927, #1915 (IDIP AID-keyed services arc), `internal/provision/assess.go` (`notYetIDIPReady`, `refuseAddingWithoutIDIPSignIn`), `internal/provision/deploy.go:217`, `internal/controlapi/provision.go` (`writeProvisionErr`), `dashboard/src/components/provisioning/SetupSurface.vue` (`runDeploy`), `dashboard/src/components/SurfaceErrorBoundary.vue`, DDR 0156.

swarm-claim host=matou-dev-server-01 run=38170
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=38170 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #2039 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 2039,
  "status": "success",
  "commits": [
    "457324075acb0faf66385acc625d5f4564a9e7d8"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/provision/assess.go",
    "internal/provision/idip_signin_test.go",
    "dashboard/src/lib/provision.ts",
    "dashboard/src/components/provisioning/SelectRoleServicesScreen.vue",
    "dashboard/src/components/provisioning/SetupSurface.vue",
    "dashboard/tests/unit/provisionSignInGate.test.ts",
    "dashboard/tests/unit/provisionSetupGuard.test.ts"
  ],
  "tests": [
    {
      "command": "go test ./internal/provision/... ./internal/controlapi/...",
      "exit_code": 0
    },
    {
      "command": "gofmt -l internal/provision/*.go (clean) && go vet ./internal/provision/",
      "exit_code": 0
    },
    {
      "command": "CI=true node_modules/.bin/vitest run (dashboard, 170 files, 2245 tests)",
      "exit_code": 0
    },
    {
      "command": "node_modules/.bin/vue-tsc -p tsconfig.json --noEmit (dashboard)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "On an IDIP community the assessment lists newsletters (and chat) as gated:true with the no-sign-in note; the picker shows them unticked and unpickable with that note; they never appear in recommended. Kanidm communities unchanged. A service already running stays listed (the withheld mirror).": "internal/provision/assess.go Orchestrator.idipSignInGate (read by ForRole's helper + gateway paths): newsletters comes back Gated+SignInGated with Reason=signInGateReason ('no sign-in on this community yet'), never recommended — pinned by TestForRole_IDIPGatesANotYetReadyServiceOnTheSelectionSurface. chat is excluded one filter earlier by provisionCannotDeploy (render-shipping but not yet routed), the stricter filter that fires first exactly like mail/static-sites, so it is never a plain pick on any community. Kanidm unchanged: TestForRole_KanidmListsANotYetReadyServiceUngated. Running service kept ungated: TestForRole_IDIPKeepsARunningNotYetReadyServiceListed. Picker unticked+unpickable with the note (data-status=gated-no-signin, disabled, toggle no-op): dashboard/tests/unit/provisionSignInGate.test.ts.",
    "A deploy refusal (any 400 from POST …/deploy before the first frame) renders the Problem's sentence on the surface with Back to select; SurfaceErrorBoundary is not reached. Unit test pins it.": "dashboard/src/components/provisioning/SetupSurface.vue deployRefused computed + the Back to select OcButton (data-action=back-to-select) rendered beside the quoted sentence (OcErrorState error-message). Pinned by the #2039 cases in dashboard/tests/unit/provisionSetupGuard.test.ts: SetupSurface wrapped in SurfaceErrorBoundary shows the sentence + back-to-select and NO data-status=display-fault; Back to select returns to the picker.",
    "The #1927 convention note in assess.go names BOTH gates (assessment + deploy) so the next slug removed from notYetIDIPReady is removed from one map only.": "internal/provision/assess.go: the notYetIDIPReady doc now carries 'THE #1927 CONVENTION — one map, TWO gates (#2039)' naming the SELECTION gate (idipSignInGate via ForRole) and the DEPLOY gate (refuseAddingWithoutIDIPSignIn), and states removing a slug lifts both at once.",
    "GOTCHAS #389 stays accurate.": "docs/GOTCHAS.md #389 is unchanged and remains accurate — its Rule ('a refusal the deploy can give must already be visible at the pick … and a rejected act before the first streamed frame is a surface state, not a render path') is exactly what this slice builds; it already lists #2039 as the fix ticket."
  },
  "summary": "On an IDIP community the P4-S2 picker now gates (and leaves unpickable) a not-yet-IDIP-ready service in the deploy's own words, never recommending it, and a deploy refused before the first frame shows its sentence with Back to select instead of the SurfaceErrorBoundary.",
  "blockers": [],
  "unproven_by_seam": "The live leg — a real control-plane 400 'no sign-in on this community yet' over the wire during Set up of an enrolled device on an IDIP community (WKT-DEMO) — is not exercised: the Go seam proves the assessment gate and the TS unit tests model the 400 as a deploy() rejection before any frame. GOTCHAS #389 names the live diagnosis path."
}
**close-report** for #2039 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 2039, "status": "success", "commits": [ "457324075acb0faf66385acc625d5f4564a9e7d8" ], "changed_files": [ "STATUS.md", "internal/provision/assess.go", "internal/provision/idip_signin_test.go", "dashboard/src/lib/provision.ts", "dashboard/src/components/provisioning/SelectRoleServicesScreen.vue", "dashboard/src/components/provisioning/SetupSurface.vue", "dashboard/tests/unit/provisionSignInGate.test.ts", "dashboard/tests/unit/provisionSetupGuard.test.ts" ], "tests": [ { "command": "go test ./internal/provision/... ./internal/controlapi/...", "exit_code": 0 }, { "command": "gofmt -l internal/provision/*.go (clean) && go vet ./internal/provision/", "exit_code": 0 }, { "command": "CI=true node_modules/.bin/vitest run (dashboard, 170 files, 2245 tests)", "exit_code": 0 }, { "command": "node_modules/.bin/vue-tsc -p tsconfig.json --noEmit (dashboard)", "exit_code": 0 } ], "criteria": { "On an IDIP community the assessment lists newsletters (and chat) as gated:true with the no-sign-in note; the picker shows them unticked and unpickable with that note; they never appear in recommended. Kanidm communities unchanged. A service already running stays listed (the withheld mirror).": "internal/provision/assess.go Orchestrator.idipSignInGate (read by ForRole's helper + gateway paths): newsletters comes back Gated+SignInGated with Reason=signInGateReason ('no sign-in on this community yet'), never recommended — pinned by TestForRole_IDIPGatesANotYetReadyServiceOnTheSelectionSurface. chat is excluded one filter earlier by provisionCannotDeploy (render-shipping but not yet routed), the stricter filter that fires first exactly like mail/static-sites, so it is never a plain pick on any community. Kanidm unchanged: TestForRole_KanidmListsANotYetReadyServiceUngated. Running service kept ungated: TestForRole_IDIPKeepsARunningNotYetReadyServiceListed. Picker unticked+unpickable with the note (data-status=gated-no-signin, disabled, toggle no-op): dashboard/tests/unit/provisionSignInGate.test.ts.", "A deploy refusal (any 400 from POST …/deploy before the first frame) renders the Problem's sentence on the surface with Back to select; SurfaceErrorBoundary is not reached. Unit test pins it.": "dashboard/src/components/provisioning/SetupSurface.vue deployRefused computed + the Back to select OcButton (data-action=back-to-select) rendered beside the quoted sentence (OcErrorState error-message). Pinned by the #2039 cases in dashboard/tests/unit/provisionSetupGuard.test.ts: SetupSurface wrapped in SurfaceErrorBoundary shows the sentence + back-to-select and NO data-status=display-fault; Back to select returns to the picker.", "The #1927 convention note in assess.go names BOTH gates (assessment + deploy) so the next slug removed from notYetIDIPReady is removed from one map only.": "internal/provision/assess.go: the notYetIDIPReady doc now carries 'THE #1927 CONVENTION — one map, TWO gates (#2039)' naming the SELECTION gate (idipSignInGate via ForRole) and the DEPLOY gate (refuseAddingWithoutIDIPSignIn), and states removing a slug lifts both at once.", "GOTCHAS #389 stays accurate.": "docs/GOTCHAS.md #389 is unchanged and remains accurate — its Rule ('a refusal the deploy can give must already be visible at the pick … and a rejected act before the first streamed frame is a surface state, not a render path') is exactly what this slice builds; it already lists #2039 as the fix ticket." }, "summary": "On an IDIP community the P4-S2 picker now gates (and leaves unpickable) a not-yet-IDIP-ready service in the deploy's own words, never recommending it, and a deploy refused before the first frame shows its sentence with Back to select instead of the SurfaceErrorBoundary.", "blockers": [], "unproven_by_seam": "The live leg — a real control-plane 400 'no sign-in on this community yet' over the wire during Set up of an enrolled device on an IDIP community (WKT-DEMO) — is not exercised: the Go seam proves the assessment gate and the TS unit tests model the 400 as a deploy() rejection before any frame. GOTCHAS #389 names the live diagnosis path." } ``` </details>
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.

Dependencies

No dependencies set.

Reference
Matou/idss#2039
No description provided.