Child spec: provisioning progress, doors, and IdP-direct sign-in (DDRs 0156–0158) #411
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#411
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?
Parent
Wayfinder map #7 (OurCloud v1 program scope) — feature: provisioning (P4). Sibling of the provisioning slices already landed; this child spec carries Ben's four drive-17 walkthrough rulings (2026-08-10, drive
20260810T144654Z) through the accepted design tier: DDR 0156 (the deploy wears the founding bar), DDR 0157 (active announces the doors), DDR 0158 (the files door lands on the IdP). Ruling 4 is ticketed separately (#408 needs-design, #409 theming push).Design contract:
docs/ux/flows/p4-provisioning.mermaid+ the ✎-amended wireframesdocs/ux/wireframes/p4-provisioning/p4-s4-deploy-and-health-checks.html,p4-s5-active.html(two frames),p4-s5x-active-service-failed.html— confirmed by Ben 2026-08-10.Problem Statement
The operator confirms a deploy and then watches a nearly empty screen for the whole run — 27 minutes in drive 17 — with no wait estimate, no steps, no feedback, because the deploy request is synchronous and the checklist only paints when it settles. When the deploy finishes, the Active screen is a terse status row: it never celebrates, and never says where the new service lives, though the member portal already derives every service's URL. And when the operator does reach the files address, they are walked through two needless doors — Nextcloud's own login form and the IdP's consent screen — before the community's sign-in.
Solution
While a deploy runs healthy, P4-S4 shows the founding stand-up's trusted shape (DDR 0144): one weighted progress bar, a patience line carrying a calibrated expected wait, and a live line naming the running step — fed over the wire by a started deploy-run the dashboard polls for
DeployRunsnapshots, and re-attaches to after a close. When every health check passes, P4-S5 opens with a success message and lists each hostname-carrying service's door as a full clickable URL. That door lands directly on the community's branded kanidm sign-in — or straight into the service when the IdP session is live — with no Nextcloud login form and no consent screen (first-party client).User Stories
data-field="deploy-patience") states the calibrated expected wait from that record.data-field="deploy-bar",data-percent) derived from theDeployRunsteps with fixed per-step weights, and no checklist rows.data-field="deploy-current"carries the running step's label and activity detail, and the wrapper carriesdata-state/data-currentwith the step id.data-field="fault-step"), with plain error + logs and the mode-matched recovery (S4 → S2 start-over, or resume a stopped takeover), exactly as the flow's failure edge states.data-field="success-line") naming the device and what it now does.data-field="service-doors") shows the full URL (data-field="service-url", e.g.https://files.<apex>, portful on the private path) as a clickable link, carried from the member-portal publisher's own hostname-authority derivation (ADR 0113) — never a second derivation.service-urlrenders for it, S5x carries no success line, and the failure row / no-coverage claim / retry-remove affordances stand exactly as the flow states.https://files.<apex>unauthenticated, then the login page immediately redirects to kanidm's branded sign-in (single-provider auto-redirect:allow_multiple_user_backends=0).disable-consent-prompton the first-party files client — DDR 0158 records why consent-skip is sound for first-party clients, re-checked the day a client is not)./login?direct=1on the files host, then the local login form renders — and this address is recorded in the rescue documentation (P8), not rediscovered from source.data-status="gated-needs-files") with the reason "Document editing needs Files & documents — it edits their documents".Implementation Decisions
DeployRunframe (one deploy runs per device). The provision orchestrator's existing in-process progress callback feeds the stored latest frame. The synchronous deploy response is retired from the OpenAPI contract (the contract-first ADR 0037 pattern; the spec is regenerated for the TS client). No SSE/WebSocket — the frames are coarse and the monotonic bar absorbs poll gaps by design.deploy-progresswrapper withdata-state/data-current,deploy-patience,deploy-bar+data-percent,deploy-current, faultfault-step. Checklist rows render only in the log drill-in.ServiceHealthgrows an optionalurl, populated from the same portal-publisher derivation (hostname authority, ADR 0113) at outcome assembly; empty for hostname-less services. The Active screen renderssuccess-line+service-doors; doors render only on healthy rows; S5x renders no success line.allow_multiple_user_backends=0, anddisable-consent-prompton the files OAuth2 client. Both verified available on the live drive-17 guest (user_oidc 8.10.1, kanidm 1.10.3). The break-glass address (/login?direct=1) is recorded in the DDR and belongs in the P8 rescue docs.Testing Decisions
Good tests here assert external behaviour at the seam: what the HTTP surface returns, what the rendered NixOS text contains, what the DOM shows for given seam data — never orchestrator internals or component state.
urlrides the outcome's service rows and is absent for hostname-less services.DeployRunframe per the wireframe contract's data-fields; monotonic hold on a stale frame; fault panel names its step; success line + doors render per outcome, doors only on healthy hostname-carrying rows.Out of Scope
Further Notes
Ben's amendment to this spec's S2 scope (2026-08-10, ruled in the nextcloud-drive e2e session):
On the P4-S2 select screen, the Document editing row takes the gated-row-with-reason treatment (ADR 0015: explained, never blocked — the exact pattern the backup-copies row already wears) whenever Files & documents is neither ticked nor already placed. Reason text shape: "Document editing needs Files & documents — it edits their documents." Ticking files clears the gate.
Why: Collabora is a stateless WOPI editor — docs-editing alone deploys an editor with nothing to edit. The clan layer already refuses the coupling-less render (
AttachDocsEditing: "an editor that trusts no storage host edits nothing", ADR 0100); this puts the same truth in front of the operator. It is the operator-facing half of #413 (when both services are placed, the files node grows anextcloud-richdocumentsoneshot wiringwopi_url).Handling: fold in as a delta — a ✎ frame amendment on the S2 wireframe + one acceptance criterion here — rather than reopening the confirmed pass; re-present just the delta to Ben. (Recorded here durably because the session-to-session relay of this ruling was mis-routed once; the tracker is the source of truth.)
Flip condition met: the bridge worktree merged to main and pushed as
90ddba3(2026-08-10, Ben's call) — the drive-17 provisioning truth, DDRs 0156–0158, and the ✎ wireframes are all on origin/main.no-triage→ready-for-agent.Comment 5685's S2 amendment is folded in: story 13 + acceptance criteria added to the spec body above, and the S2 wireframe carries its ✎ frame (
p4-s2-select-role-and-services.html, third frame —gated-needs-files/gate-reasonvocabulary; the gateway frame's caption cross-references the gate order). Delta re-presented to Ben in-session.Reopened — commit
d247933's message ("closes #411's comment-5685 delta") tripped Forgejo's auto-close; the spec itself is open work (ready-for-agent), only the S2 amendment delta was folded in.Landed on origin/main as
bb59cbe(sandcastle: #411).All three DDRs shipped as one slice:
Evidence: Go seam tests (async HTTP projection start/snapshot/settle/failure/re-attach + url; calibration; two rendered OIDC legs) + dashboard component tests (bar/patience/live/fault/doors/re-attach) all green; full dashboard suite 1020 pass; OpenAPI drift check in sync; pre-push go test ./... green. The live e2e sign-in leg drops the provider-button/consent clicks and reads the S5 door (app/tests/e2e/fixtures/provision.ts) — its first live proof is the next drive (user story 12).
workflow preparedwith ENOSPC on /home/swarm/.cache/act, so ~1 in 3 pool-label triage/resume-asks/ci ticks reds instantly (#2076 mechanism, second host) #2174workflow preparedwith ENOSPC on /home/swarm/.cache/act, so ~1 in 3 pool-label triage/resume-asks/ci ticks reds instantly (#2076 mechanism, second host) #2174workflow preparedwith ENOSPC on /home/swarm/.cache/act, so ~1 in 3 pool-label triage/resume-asks/ci ticks reds instantly (#2076 mechanism, second host) #2174