portal: THE CUTOVER — the apex serves the Portal's faces, panel bookmarks redirect, the operator API 404s at the apex; proven by a drive leg on both paths (spec #1361 s33, 40, 41) #1369
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
Depends on
Reference
Matou/idss#1369
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
Spec #1361 (the Portal); program map #1336; design contract DDR 0232 / ADR 0233, flow
docs/ux/flows/portal.mermaid, wireframesdocs/ux/wireframes/portal/. Slicecutover-drive-legindocs/slices/portal.yaml.What to build
THE ONE-WAY DOOR LANDS HERE. The public-path journey gains the cutover leg: a member at / sees PT-S0; an operator's /fleet bookmark → 308 → the panel; GET /api/v1/members at the apex → 404; Sign out lands on PT-S0; the app's S12 opens admin.. The private-path journey asserts the Portal at the apex and NO redirect. Payload re-warm + reseed-publish before the proving drive (served bits vs main). Proven GREEN by a drive, not a unit test.
Acceptance criteria
Blocked by
Why session
Needs a live drive on the rehearsal host (live doors, host credentials) — the ticket closes on a GREEN drive with eyeballed screenshots, never on unit tests alone (ADR 0174:
ready-for-session).Task manifest
Progress (agent under ADR 0174, host matou-dev-server-01) — ruled by agent, veto anytime.
Code landed (commit
765ec32e, on main): the cutover leg lands in the drive on both paths.app/tests/e2e/fixtures/cutover.ts(self-contained, the portaldata-*selectors the unit tests assert).journey.droplet.spec.ts) gains acutoverrunRecordedLeg aftersign-in:assertApexCutover(anonymous, redirects disabled —<apex>/fleet→ 308 →admin.<apex>/fleet[AC2];<apex>/api/v1/members→ 404 [AC3]);assertPortalSignInRoundTrip(fresh cookie-less Chromium: PT-S0 → Sign in → the community IdP → signed-in home, control-panel door pinned toadmin.<apex>[AC1/AC4]);assertPortalSignOut(Sign out → PT-S0,/api/v1/me→ 401 [AC5]).private-path.live.spec.ts) gainsassertPrivateApexNoRedirect(harness resolver: PT-S0 at the apex;<apex>/fleetSTILL at the apex, PT-S3, never 308'd — AC6).vue-tsc --noEmit+ ESLint clean; both specs load under the Playwright loader.Proving drive in flight: payload re-warmed against main (control-plane/idss-idp/agent/dashboard rebuilt; the served bundle carries the portal faces + the
admin.rewrite). The DROPLET (public) drive is running now (clan-lab-rehearsal-59c85897, syd1, 6h TTL) — proves AC1–5. The PRIVATE (local-guest) drive for AC6 follows.Note (host provisioning): the local-guest preflight found
devcannot open/dev/kvm(this host's standing target isidip, not local-guest). I hold passwordless sudo as part of this host's standing; the documented remedy (add the drive user to thekvmgroup) is routine, revertible drive-host provisioning — I will apply it for the private leg and record it here. This ticket closes only on a GREEN drive with eyeballed screenshots.Progress (agent under ADR 0174, host matou-dev-server-01) — ruled by agent, veto anytime.
Picking up #1369 where the prior session (same host) left off: the cutover-leg code landed at
765ec32e(test-only:fixtures/cutover.ts+ the two spec legs), but that session died with its drives in flight — the leftover dropletclan-lab-rehearsal-59c85897reaped on TTL, so nothing was eyeballed. This ticket closes only on a GREEN drive with screenshots, so I am re-running both drive legs to green.Served-bits check.
mainHEAD is still765ec32e, which touched only test files — every cutover product commit (#1364 frontdoor.go, #1365/#1371/#1372) predates the payload re-warm at 06:26. Both preflights (--dry-runand--dry-run --target droplet) report the payload complete/fresh, so a re-warm would reproduce identical bits; the drive itself is the served-bits-vs-main proof. (For--target droplet/local-guestthe payload is staged directly fromIDSS_PAYLOAD_DIR; get.idss.nz reseed-publish is N/A to these targets.)Drive-host provisioning (routine, revertible). The private preflight refused:
devcould not open/dev/kvm. Appliedusermod -aG kvm dev(revert:gpasswd -d dev kvm) and run the private leg undersg kvmso it takes effect without a re-login — a two-way door. Ruled by agent under ADR 0174.In flight now: the PUBLIC droplet drive (
journey.droplet.spec.ts,--target droplet) — real DNS + ACME, founds a community, reads the public apex off S12, then thecutoverleg proves AC1–5. Dropletclan-lab-rehearsal-07c38d18(syd1, s-2vcpu-4gb, 6h TTL). The PRIVATE local-guest leg (AC6) follows sequentially (the 6.3 GiB mem floor rules out running both at once). Screenshots eyeballed before any close.session-runner: two unattended attempts did not advance this ticket — labelled
agent-blockedfor a human look (ADR 0174 escalation). Latest session log:/home/dev/.local/state/matou-session-runner-Matou-idss/logs/run-1369-20260910T080013Z.logon the workstation. Removeagent-blocked(and the stale fail counter if re-arming by hand) to let the runner retry.Human look (Ben's session, 2026-09-10) — AC1–5 PROVEN, only AC6 outstanding. Re-armed for the PRIVATE leg only.
The two runner sessions ended their turn with the droplet drive in flight, so the runner counted no progress — but the drive itself finished GREEN both times (
/tmp/drive-droplet.log06:43, 12.7m;/tmp/drive-1369-droplet.log08:19, 11.4m — both1 passed, cutover leg included). I eyeballed the 08:19 run's frames at/home/dev/session-runner/idss/test-results/drive-droplet/20260910T080640Z/artifacts/portal/:pt-s0.png— the brand kit and one Sign in door, nothing else (AC1).pt-home-signed-in.png— "Signed in as Drive Operator", the Control panel door, the Mail service card (pill + URL + Open), Manage your sign-in, Sign out — matches PT-S1o (AC1/AC4).pt-s0-after-signout.png— byte-identical topt-s0.png: the landing is the proof (AC5)./fleet→ 308) and AC3 (/api/v1/members→ 404) are asserted in the passing leg.legs/cutover-w*.pngframes are duplicates ofsign-in-w*.png(the GOTCHAS #218 leg-capturer class) — cosmetic, the portal frames carry the evidence. Fix if cheap, not a blocker.Do NOT re-run the droplet drive. Remaining work for the next session:
private-path.live.spec.ts,assertPrivateApexNoRedirect).devis now in thekvmgroup (id devconfirms); the earlier preflight refusal was the pre-usermod state — if the preflight still refuses, run undersg kvmor apply thesetfacl -m u:dev:rw /dev/kvmremedy the preflight names.agent-blockedtwice./fleet→ PT-S3, never 308), then close with the close-report.One thing to check while there: the signed-in home's Mail card read OPEN with a webmail URL for an operator who had not claimed a mailbox. Either founding claims the operator's mailbox, or the card reads the wrong claim state (#1372). If the latter, file it — don't fold it into this leg.
Fail counter cleared on the workstation;
agent-blockedremoved.Session on
matou-dev-server-01(agent under ADR 0174) — ruled by agent, veto anytime.Picked up per Ben's re-arm (15:22Z) to run the outstanding AC6 private local-guest leg. AC1–5 stay PROVEN (Ben's eyeballed public-droplet frames — do not re-run the droplet). The blocker for AC6 on this host is host-capability, and it is new information the re-arm did not have:
This host cannot run the local-guest drive without a one-way door. The preflight refuses at second 0 on the host-memory floor:
matou-dev-server-01is the production Matou infrastructure box —matou-mongo,garage(S3), theany-sync-*nodes, the KERI witnesses/keria,zitadel,caddy(all 4–7 weeks uptime, holding member data). MemAvailable sits ~6016–6116 MiB, stable ~30–130 MiB under the floor.free -mshows only ~1.8 GiB actually used, but a 4 GiB KVM guest + the electron/chromium drive stack pushes the working set to RAM capacity; the only way to clear the floor is stopping member-facing services or inducing memory pressure that lets the kernel OOM-killer pick a member-data service as its victim. That is squarely a one-way door under ADR 0174 (member-facing services + data destruction), so I will not override the floor or free memory here. Forcing it would also risk a false red on AC6 (a mid-drive OOM reads like the code failing).What AC6 actually needs: a live local-guest founding drive (
scripts/smoke-private-path.sh,private-path.live.spec.ts,assertPrivateApexNoRedirect) on a KVM host with ≥6144 MiB free. AC6 asserts the absence of the@panel308 on the private render — already byte-pinned ininternal/clan/frontdoor_private_test.go(ApexHasNoPanelRedirect); the drive is the served-bits proof.Ruling — affinity-route (ADR 0174, the #89/#746 fix). This is exactly the wrong-host pattern the
session-hostmarker exists for: a prod-infra host kept claiming a drive ticket it cannot run (10 of the last claims on recent tickets arematou-dev-server-01). I have added to the body:elitebook-distributed-server-03is the live, KVM-capable rehearsal drive host that runs the private-path / snapshot-rail local-guest drives (#1235, #1280) and is actively ticking the queue;matou-workstationis the canonical drive host (see #1090's marker). From nowmatou-dev-server-01skips this ticket at pick time — no attempt burned (#89) — and a capable host takes it. Keptready-for-session, removedagent-working. Two-way door: drop the marker to veto the routing (e.g. to run it on your own KVM machine).Side-check (the Mail card, from Ben's note): the operator's signed-in home showed a Mail card reading OPEN with a webmail URL though the operator had not claimed a mailbox. I could not re-observe it here (no drive), so I have not folded it into this leg. Whoever runs the AC6 drive should confirm whether founding claims the operator's mailbox (correct) or the doors read the wrong claim state (a #1372 bug to file). Left as a note, not a blocker on #1369.
Ben's session 2026-09-10 — the Mail side-check is RESOLVED (it was a defect, now landed) and the served bits moved.
The signed-in home's Mail card reading OPEN with a webmail URL was not founding claiming the operator's mailbox: the drive community never deployed the mail module. The gateway's Caddy wildcard site answered
mail.<apex>with an empty 200 (Caddy's default for a host nohandleclaims), the mail port read that as an existing mailbox, and the member mail portal was wired on derivability alone. Fixed on mainfb8368afat all three layers (front-door catch-all 404 on BOTH renders, empty-200 = fault,MemberPortal.WithOffered(deployedServiceSet)→ 404mail_not_offered); record in #1372 and GOTCHAS #221.For the AC6 private leg: the bits under test must carry
fb8368af(the render change touches the private Caddy site too —TestRenderFrontDoor_UnservedHostUnderTheWildcardIs404/private), so checkx-idss-release/merge-base --is-ancestor fb8368afbefore the drive counts. Expected home frame on the private path: no Mail card at all (the operator's doors only + Control panel door). A Mail card in that frame is a red, not a pass. Everything else in the 15:22Z re-arm stands: AC1–5 proven, do NOT re-run the droplet, wait for the drive to exit before ending the turn.Still
ready-for-sessionwith theelitebook-distributed-server-03, matou-workstationsession-host marker; all five blockers closed.Ruled by agent under ADR 0174 — veto anytime. Session-runner drive of #1369 on the rehearsal host
elitebook-distributed-server-03(KVM-capable, doctl authed, payload dir present).This is a two-way door: it proves the already-landed cutover code (
#1364frontdoor render + the#1369drive-leg code in765ec32e,fixtures/cutover.ts) with live drives. What proves it: GREEN drive legs with eyeballed screenshots on both paths.scripts/smoke-private-path.sh(local-guest) →private-path.live.spec.tsassertPrivateApexNoRedirect(AC6): Portal at the apex inside the harness resolver, NO@panel308.--target droplet→journey.droplet.spec.tscutoverleg (AC1/2/3/5): PT-S0 + Sign-in round-trip through the community IdP,/fleet→ 308 →admin.<apex>/fleet, anonymous/api/v1/members→ 404, Sign out → PT-S0 +/me401.Renting a lab droplet for the public path is routine lab-droplet money (not on the one-way list). Payload re-warmed first (control-plane + idss-idp + dashboard + keri-web rebuilt from
origin/maineeeb18d1;pnpm installpulled the newvue-i18ndep). Close-report with verdicts + screenshots to follow.session-runner: two unattended attempts did not advance this ticket — labelled
agent-blockedfor a human look (ADR 0174 escalation). Latest session log:/home/swarm/.local/state/matou-session-runner-Matou-idss/logs/run-1369-20260911T173914Z.logon the workstation. Removeagent-blocked(and the stale fail counter if re-arming by hand) to let the runner retry.AC6 PROVEN GREEN — the private leg ran and passed. All six criteria now hold; closing (Ben's session, hand-driven 2026-09-11).
The runner's 17:39Z attempt on
elitebook-distributed-server-03did run the private local-guest drive, and it went GREEN at 17:54Z — nine minutes after the runner had already marked this ticketagent-blockedat 17:45Z. Same pattern as the two droplet attempts: the session backgrounds the drive, ends its turn, the runner reads "not advanced", and the drive goes green unattended. The escalation was wrong both times.Drive:
/tmp/drive-1369-private-20260911T174133Z.log—1 passed (12.7m),==> DRIVE GREEN. Run dirtest-results/private-path/20260911T174140Z. Checkout ateeeb18d1, which carriesfb8368af(the #1372 mail follow-up), so the Mail regression is covered by these bits.AC6 frames eyeballed (
artifacts/portal/):private-pt-s0.png— PT-S0 at the apex inside the CA-pinned window: brand mark, community name, one Sign in door. Byte-identical (0d715570…) to the public-path PT-S0 from the droplet drive — one Portal, both paths.private-panel-path-no-redirect.png— the panel bookmark at the apex renders the Portal's own PT-S3 ("There's nothing at this address." + Go to your community). The URL stays on the apex; no@panel308. That is the private render having no redirect, which is the whole of AC6.assertPrivateApexNoRedirect(fixtures/cutover.ts) asserts the landed host, then asserts the PT-S3 element visible, then screenshots — the frames only exist because both assertions passed. No skip.Full ledger for this ticket:
admin.<apex>— public droplet drive 2026-09-10T08:19Z, eyeballed./fleet→ 308 →admin.<apex>/fleet— same drive./api/v1/membersat the apex → 404 — same drive./me→ 401 — same drive, landing frame byte-identical to PT-S0.agent-blockedremoved, fail counter cleared on the host, ticket closed. #1373 (the whole member journey) is now unblocked and is the last ticket on map #1336.Two host hazards found on the way, neither blocking this ticket:
elitebook-distributed-server-03ran with swap 100% full (SwapFree72 kB) because/tmpis tmpfs holding 5.6 GB of stale debris (g.log1.1 GB from 09-05,healpix733 MB,tr439 MB,heal-fix246 MB — the GOTCHAS #166 / #1207 shape returning). The drive's own preflight warns about exactly this. A hand drive I launched at 16:56Z died at preflight under that pressure. Worth a sweep and a ticket.forgejo-runner-swarm.serviceunit carries a runtime drop-in ofMemoryHigh=2G/MemoryMax=3G(set 2026-08-15), far under the 8G/10G the multihost-swarm design fences the swarm at. A dashboard build plusvue-tscon the host executor crosses it, and cgroup v2 throttles rather than kills, so the job crawls forever and starves both capacity slots. That is what absorbed 111 session-runner ticks yesterday. Remedy:systemctl set-property forgejo-runner-swarm.service MemoryHigh=6G MemoryMax=8Gas root.