front-door gate: a sign-in finished in an OLDER tab dead-ends on raw JSON (signin_state) — show a page with a way forward #1711
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#1711
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?
What happened
Whakatōhea Demo, IDIP. Ben had two sign-in tabs (authRequestIDs
c248c278…from 20:52Z and8185229d…from 20:55Z). He typed his recovery phrase into the older one. The bridge VERIFIED it (POST /login/verify302 →/authorize/callback302), then the gate answeredGET /authz/callback400 with a bare JSON body:The check is right (the gate holds one pending state; a response for a replaced attempt must be refused —
internal/controlapi/signin.go:232). The dead end is the defect: the operator reads it as "my twelve words are wrong", there is no link, and "try again" in the same stale tab fails the same way.Fix
signin_state(and the sibling callback problems) the gate renders a small branded HTML page, not JSON, when the request acceptstext/html: "This sign-in was started in another tab. Continue here →" linking to/authz/signin?rd=<original rd or />— one click restarts a fresh attempt in THIS tab.statevalue (a small set of pending attempts per browser, short TTL, bounded) instead of one slot that the newest attempt overwrites — then either tab completes. Decide in the ticket; the page is needed either way (expired attempts).Sign-in trust surface: the multi-slot option changes gate behaviour — post the choice to Ben before landing (memory: sign-in trust changes go to Ben first). The HTML page alone is a two-way door.
Found on the hand re-founding of Whakatōhea Demo 2026-09-21, build source
5b910ef3.invalid_requestand the IdP session survives #1713swarm-claim host=matou-dev-server-01 run=29518
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
Ruling: This iteration ships the branded HTML page (the ticket's first option, which the ticket itself calls "a two-way door" and "needed either way"). It does NOT ship the multi-slot pending-state redesign (the second, "better still" option) — that one changes gate behaviour on the sign-in trust surface, and both the ticket and standing memory say "sign-in trust changes go to Ben first". It is deferred, not adopted.
Why this is a two-way door: the page only replaces a raw-JSON 400 dead-end (
signin_stateand its sibling callback problems) with a small branded HTML page carrying a "Continue here →" restart link, when the client acceptstext/html. Non-browser clients (probes, the seam tests) keep the byte-identical JSON Problem. It widens no auth, mints no session on a refused callback, and is revertible by a single commit.What proves it: a seam test in
internal/controlapi/signin_test.go— two attempts started, the older completes ⇒ HTML (Content-Typetext/html) carrying the/authz/signin?rd=…restart link; a forged state is still refused (400, no session minted); a non-HTML client still gets JSON.Deferred to Ben (multi-slot): keying pending state by the
statevalue so either tab completes is a gate-behaviour change on the sign-in trust surface — left for Ben's call. The page closes the reported dead end without it (it is also the surface expired attempts need regardless).close-report for #1711 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope