dashboard: cold browser hits the ADR 0247-gated apex with no session, never sees chrome #1640
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.
Blocks
Reference
Matou/idss#1640
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?
Not the known frontier
The brief names pairing-never-flips as this drive's KNOWN frontier. It does not apply to this run.
artifacts/legs.jsonrecordspairgreen and carries no skip reasons at all, andverdict.jsonagrees:Eleven legs green through
identity-rows; the drive died on leg 13,dashboard, after 60887 ms. This is a fresh red.The failure
artifacts/legs.json, thedashboardrecord:The leg (
app/tests/e2e/journey.idip.spec.ts:573-592) launches a brand-new chromium, navigates it straight at the portal address read off S12, and waits for the panel shell:Its inline comment states the premise it rides on (
journey.idip.spec.ts:570-572):That premise is retired. On the live box (still up at 209.38.26.32;
systemctl --failedis empty, nothing is broken) the apex serves nothing to a stranger:The rendered Caddyfile on the box confirms the fall-through is gated — the apex allow-list does not contain
/:So the cold browser is bounced to the IdP login page and
[data-status="dashboard-chrome"](which lives inpackages/ui-kit/src/components/NavChrome.vue:2) is correctly never rendered. The leg screenshotartifacts/legs/dashboard.pngis byte-for-byte theidentity-rowsfounded page — it photographs the electronlive.page, notdash, so it shows nothing of the failure.The product is right; the drive is stale
The 302 is the specified behaviour, not a regression.
docs/adr/0247-the-apex-serves-the-control-panel-and-the-portal-rests-behind-one-switch.md:70-81:The repo's own cutover fixture asserts exactly this shape (
app/tests/e2e/fixtures/cutover.ts:438-442):And the gate substrate came up healthy on this very box moments before the leg (
logs/droplet-journal.txt:1681):The bridge is listening (
idss-idpon 127.0.0.1:8465,control-planeon :8080, caddy on :443) — a sign-in from the drive would have worked. The sibling journey already does it that way:journey.device.spec.ts:463-478callsloginWithPassword(dash, https://id.<apex>, …)beforegoto(portalAddress)and only then expectsdashboard-chrome.Suspected layer: harness (the drive spec), not product or infra
ADR 0247 moved the panel behind the gate; the IDIP journey's leg 13 was never re-sequenced to sign in first. It is the only cold-browser landing left asserting the pre-0247 ungated apex.
What plugging it needs
The fixture that does this correctly already exists and is already imported by this spec — it is just invoked 13 legs too late:
app/tests/e2e/fixtures/idip.ts:619—establishOperatorSession(dash, apex, portalAddress, founderPhrase)drivesGET /authz/signin?rd=…→bridgeSignInwith the S6a phrase → assertsdashboard-chrome→ asserts theidss_sessioncookie.journey.idip.spec.ts:835is its only call site, inside legoperator-session.Fix: have leg
dashboardland the panel through the gate — callestablishOperatorSession(dash, apex, portalAddress, founderPhrase)in the leg body atjourney.idip.spec.ts:586in place of the baredash.goto+ expect.founderPhraseis already in scope (assigned atjourney.idip.spec.ts:404, legcreate), so no threading is needed. The lateroperator-sessionleg can stay as-is — the fixture documents itself as idempotent ("an already-signed-in browser lands straight on the dashboard and never sees the form"), so it will pass through without a second form.Two residues worth taking in the same change:
journey.idip.spec.ts:570-572("the portal route is ungated this arc (#512/#511)") — ADR 0247 §4 superseded it.fixtures/idip.ts:607-608carries the same dead claim in its docstring ("served on the apex PORTAL route, which is ungated by design (#512)") even though its code correctly goes through/authz/signin. Correct the prose so the next reader doesn't re-derive the bug.Also worth noting for whoever picks this up: the
dashboardleg screenshotslive.pagerather thandash, so a red here produces a photo of the previous leg's screen. Pointing the leg's capture atdashwould have made this a one-glance diagnosis.drive
20260919T222916Zred atdashboard:expect(locator).toBeVisible() failed Locator: locator('[data-status="dashboard-chrome"]') Expected: visible Timeout: 60000ms Error: element(s) not found Call log: - Expect "toBeVisible" with timeout 6evidence:
/home/swarm/session-runner/idss/test-results/drive-idip/20260919T222916Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedTaking this by hand (Ben's session, 2026-09-19 23:05Z) — it is the next red on the debug IDIP drive for #1522/#1531 and the fix is the one named here.
ready-for-agentdropped so the swarm does not double-land it.Fixed in
3e8311cd, as named here: thedashboardleg now callsestablishOperatorSession(dash, apex, portalAddress, founderPhrase)in place of the baregoto+ expect, photographsdash(not the previous leg's page), and the stale "portal route is ungated" prose is corrected in the spec and in the fixture's docstring. Checked first that no leg betweendashboardandoperator-sessionneedsdashsigned OUT —branded-login,oidc-admin,member-joinandmember-sign-inall launch fresh browsers/contexts.vue-tsc+ eslint clean. Live-unproven until the next IDIP fire passesdashboard.