panel: the unlock leaves for the APEX's sign-in door, two landings share ONE capability read, and the expired page wears the community's kit — the first live steward unlock's three faults (GOTCHAS #373/#374) #2008

Merged
ben merged 1 commit from session/panel-unlock-live-faults into main 2026-09-30 01:49:32 +00:00
Owner

Ben's first live steward unlock through the app (Whakatōhea Demo, 2026-09-30, app 0.8.3, release c976e06b) found three faults. Two are the panel's, one is the gate's page; all three are read from the demo's access log, not guessed. Refs #1936.

What Ben saw

  1. Signed in through the app with the unlock line on. Members landed locked.
  2. Pressed Unlock steward actions with your app. The app showed an ordinary approve card (Membership, no unlock).
  3. The browser landed on the apex's /authz/callback saying "This sign-in attempt has expired" on an unbranded page; Continue here went to the Portal.

The faults, and the fixes

/authz/signin?prompt=login&rd=/members. Right when the panel was the apex (ADR 0247); wrong now that it is admin.<apex> (ADR 0271). Two consequences from the log:

  • admin GET /authz/signin … 302 → the gate sealed its flow cookie on admin.<apex>; the sign-in came back to the apex's /authz/callback with no cookie → 400 signin_expired.
  • The gate takes only an absolute same-apex rd, so /members read as none; it forwarded the apex root as the login_hint, and the door named the destination "the community portal": an ordinary sign-in, no cred=administrator, no offer=unlock (challenge 764 bytes against 1044 for the real panel sign-in).

Fix: the panel leaves for https://<apex>/authz/signin with the panel page's absolute address as rd. signInStartForApex sits beside signInOriginForApex and is threaded the same way (DashboardTransportConfig.signInStart → deps.members.signInStart → MembersSurface → IdipRosterPanel). The unit test that had pinned the relative link (toMatch(/^\/authz\/signin\?/), toContain('rd=')) now asserts the origin and that rd parses as an absolute URL.

2. Two landings read the single-use capability at once (GOTCHAS #374)

admin GET /api/v1/panel/handover 200 size=60 at 00:31:11, then … 200 size=2 at 00:31:12, and no POST /login/app/handover to the door, ever. The Members tab mounts IdipRosterPanel twice while its path probe answers; both mounts called resumeSignInUnlock, both read the capability, the second's empty answer overwrote the first's, and the collect returned none without a request.

Fix: HttpHandoverPort caches the read (the promise), not the answer — a second asker joins the read in flight, a failed read is forgotten. resumeSignInUnlock runs one landing at a time; later callers join it, and the "came from an unlock" marker is remembered whichever mount carried it. Tests reproduce the live sequence (a read that answers once, then empties): one read, both askers armed, the collect still carries the capability.

3. The expired page wears the community's kit

Ben: "this needs to be fixed". The restart page is served on the apex, where the Portal's compiled tokens and landed logo already are, so it links /brand/portal/tokens.css and wears /brand/portal/logo the way the join page does (DDR 0270 §1); the initials tile is the fallback for a logo that never landed, and a kit-less control plane fabricates nothing. The shared refusal style now draws its colours from --oc-* tokens with the old neutrals as fallbacks, so the refusal pages render exactly as before.

Rendered against the demo's real assets — left with the landed logo, right the initials fallback:

the expired page, branded and fallback

Checked

Check Result
dashboard vitest 164 files, 2150 passed, 2 skipped (main: 2141)
vue-tsc --noEmit clean
eslint on touched files clean (prettier drift on 7 of them is pre-existing on main; not reformatted)
go test ./internal/controlapi/ ok

Not fixed here

  • The wallet's wait is ten seconds (MAX_POLLS = 20 × 500 ms) while the door's challenge lives two minutes; on this walk the app gave up at 00:31:17, six seconds after the panel first asked. matou-app PR #696 makes the wallet wait the challenge's life. Both must ship before the walk is repeated.
  • The panel completes the handover only once the Members tab is opened, not at shell load. With the wallet waiting two minutes that is workable; whether the shell should start it on landing is a design question I have not taken.
  • The refusal pages (DDR 0172) still draw the initials tile; only the restart page links the kit. Same mechanism if wanted.
  • Proven at the unit seam only. The live proof is #1936, after the next testing release and app release.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WgMdPvssS1d7W1v2dL7bcH

Ben's first live steward unlock through the app (Whakatōhea Demo, 2026-09-30, app 0.8.3, release `c976e06b`) found three faults. Two are the panel's, one is the gate's page; all three are read from the demo's access log, not guessed. Refs #1936. ## What Ben saw 1. Signed in through the app with the unlock line on. Members landed **locked**. 2. Pressed *Unlock steward actions with your app*. The app showed an **ordinary approve card** (Membership, no unlock). 3. The browser landed on the apex's `/authz/callback` saying **"This sign-in attempt has expired"** on an unbranded page; *Continue here* went to the Portal. ## The faults, and the fixes ### 1. The panel's unlock link was relative (GOTCHAS #373) `/authz/signin?prompt=login&rd=/members`. Right when the panel was the apex (ADR 0247); wrong now that it is `admin.<apex>` (ADR 0271). Two consequences from the log: - `admin GET /authz/signin … 302` → the gate sealed its flow cookie on `admin.<apex>`; the sign-in came back to the apex's `/authz/callback` with no cookie → **400 `signin_expired`**. - The gate takes only an absolute same-apex `rd`, so `/members` read as none; it forwarded the apex root as the `login_hint`, and the door named the destination "the community portal": an **ordinary sign-in, no `cred=administrator`, no `offer=unlock`** (challenge 764 bytes against 1044 for the real panel sign-in). **Fix:** the panel leaves for `https://<apex>/authz/signin` with the panel page's absolute address as `rd`. `signInStartForApex` sits beside `signInOriginForApex` and is threaded the same way (`DashboardTransportConfig.signInStart` → `deps.members.signInStart` → `MembersSurface` → `IdipRosterPanel`). The unit test that had pinned the relative link (`toMatch(/^\/authz\/signin\?/)`, `toContain('rd=')`) now asserts the origin and that `rd` parses as an absolute URL. ### 2. Two landings read the single-use capability at once (GOTCHAS #374) `admin GET /api/v1/panel/handover 200 size=60` at 00:31:11, then `… 200 size=2` at 00:31:12, and **no `POST /login/app/handover` to the door, ever**. The Members tab mounts `IdipRosterPanel` twice while its path probe answers; both mounts called `resumeSignInUnlock`, both read the capability, the second's empty answer overwrote the first's, and the collect returned `none` without a request. **Fix:** `HttpHandoverPort` caches the *read* (the promise), not the answer — a second asker joins the read in flight, a failed read is forgotten. `resumeSignInUnlock` runs one landing at a time; later callers join it, and the "came from an unlock" marker is remembered whichever mount carried it. Tests reproduce the live sequence (a read that answers once, then empties): one read, both askers armed, the collect still carries the capability. ### 3. The expired page wears the community's kit Ben: "this needs to be fixed". The restart page is served on the apex, where the Portal's compiled tokens and landed logo already are, so it links `/brand/portal/tokens.css` and wears `/brand/portal/logo` the way the join page does (DDR 0270 §1); the initials tile is the fallback for a logo that never landed, and a kit-less control plane fabricates nothing. The shared refusal style now draws its colours from `--oc-*` tokens with the old neutrals as fallbacks, so the refusal pages render exactly as before. Rendered against the demo's real assets — left with the landed logo, right the initials fallback: ![the expired page, branded and fallback](https://git.matou.nz/attachments/0a649b09-3bb9-4737-bd57-a98bbeb82524) ## Checked | Check | Result | |---|---| | `dashboard` vitest | 164 files, 2150 passed, 2 skipped (main: 2141) | | `vue-tsc --noEmit` | clean | | eslint on touched files | clean (prettier drift on 7 of them is pre-existing on main; not reformatted) | | `go test ./internal/controlapi/` | ok | ## Not fixed here - **The wallet's wait is ten seconds** (`MAX_POLLS = 20 × 500 ms`) while the door's challenge lives two minutes; on this walk the app gave up at 00:31:17, six seconds after the panel first asked. matou-app PR **#696** makes the wallet wait the challenge's life. Both must ship before the walk is repeated. - **The panel completes the handover only once the Members tab is opened**, not at shell load. With the wallet waiting two minutes that is workable; whether the shell should start it on landing is a design question I have not taken. - **The refusal pages** (DDR 0172) still draw the initials tile; only the restart page links the kit. Same mechanism if wanted. - Proven at the unit seam only. The live proof is #1936, after the next `testing` release and app release. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01WgMdPvssS1d7W1v2dL7bcH
panel: the unlock leaves for the APEX's sign-in door with the panel's full address, two landings share ONE capability read, and the expired page wears the community's kit — the first live steward unlock's three faults (GOTCHAS #372/#373)
Some checks failed
ci / seam (pull_request) Successful in 12m19s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been cancelled
1e784e0bca
Whakatōhea Demo, 2026-09-30, app 0.8.3, read from the access log:

1. The unlock link was relative. The panel is admin.<apex> (ADR 0271), so
   the gate's flow cookie was sealed on the panel's host while the sign-in
   came back to the apex's callback — "This sign-in attempt has expired" —
   and the gate read the relative rd as none and asked the door for an
   ordinary Portal sign-in, so no unlock was offered. The panel now leaves
   for https://<apex>/authz/signin with the panel page's absolute address.

2. Two landings read the single-use capability at once (the Members tab
   mounts the roster panel twice while its path probe answers); the second,
   empty answer overwrote the first, and the collect never reached the
   door. The transport now caches the read, not the answer, and the signing
   session runs one landing at a time.

3. The restart page links the Portal's tokens and wears the landed logo.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WgMdPvssS1d7W1v2dL7bcH
ben force-pushed session/panel-unlock-live-faults from 1e784e0bca
Some checks failed
ci / seam (pull_request) Successful in 12m19s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been cancelled
to 1670108493
All checks were successful
ci / seam (pull_request) Successful in 10m33s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
2026-09-30 01:47:07 +00:00
Compare
ben changed title from panel: the unlock leaves for the APEX's sign-in door, two landings share ONE capability read, and the expired page wears the community's kit — the first live steward unlock's three faults (GOTCHAS #372/#373) to panel: the unlock leaves for the APEX's sign-in door, two landings share ONE capability read, and the expired page wears the community's kit — the first live steward unlock's three faults (GOTCHAS #373/#374) 2026-09-30 01:47:12 +00:00
ben merged commit 65fd8ffd2c into main 2026-09-30 01:49:32 +00:00
Sign in to join this conversation.
No reviewers
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.

Dependencies

No dependencies set.

Reference
Matou/idss!2008
No description provided.