spec: the Portal — the community's page at the apex is the member's home; two faces, my doors by the gate's fact, mail rehomed, the control panel leaves the apex (map #1336, DDR 0232 / ADR 0233) #1361
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#1361
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
Program map: #1336 (the Portal — route clear 2026-09-09; decisions inherited: charting rulings 1–8, #1339 door states, #1340 my doors, #1341 apex cutover, #1342 home shape + Ben's review amendment). Design contract: DDR 0232 (the Portal is the member's home at the apex; two faces of one URL; the control panel leaves the apex), ADR 0233 (the apex allow-list, the member routes,
/authz/signout, the host-aware bundle with the apex shell served from the compiled bundle, the ledger retired, the seat carrying both doors), flowdocs/ux/flows/portal.mermaid, wireframesdocs/ux/wireframes/portal/(PT-S0, S0r, S1, S1o, S1e, S2, S3 — reviewed by Ben 2026-09-09: door cards = the panel's service card, no identity strip on IDIP). Research grounding:docs/research/2026-09-08-portal-session-substrate.md(#1337),docs/research/2026-09-08-portal-apex-cutover.md(#1338). Defects this spec absorbs: #1344 (/mailunreachable), #1345 (DA-S2's community door loops). Grilled and wireframed in AUTO MODE at Ben's instruction (ADR 0174 — veto anytime); the flow, seam and wireframe gates are owed to Ben and this spec inherits their state.Problem Statement
A member of an IDSS community has no home. The community's apex — the address on the invite, the address the founder was shown — serves the operator control panel, ungated, to anyone who opens it. A plain member who signs in there is refused ("operators only") and the refusal's "go to your community" door loops them straight back into the refusal. The member-facing surfaces that exist are islands with no roof: the mail claim at
/mailanswers 401 to every member because it trusts an identity header the apex route strips; the files door is a URL they have to know; there is nothing that tells a member which services are open to them, who the community thinks they are, or how to sign out. On the operator's side, the same host-blind origin means the whole operator API answers anonymous internet callers at the apex today.Solution
The Portal — the community's page at the apex is the member's home (DDR 0232). One URL, two faces. Signed out: the brand kit and one door, Sign in. Signed in: the doors open to this member (the gate's fact, never the matrix's intent), each wearing the control panel's service card; who they are; Sign out; the mail claim rehomed under the Portal shell; and, on the kanidm tier, one linked door to the IdP's self-service. Operators see the same home plus a Control panel door. The face is chosen by a new gate-backed member identity route; "my doors" comes from a member doors route that asks the tier's own decider for the signed-in identity over the live services. The operator control panel leaves the apex for
admin.<apex>only, old panel bookmarks redirect exactly, and the apex proxies an allow-list of member, device and Portal routes — everything else in the operator API answers 404 there (ADR 0233). The Portal's shell is served by the front door from the compiled bundle so its signed-out face survives a dead control plane as an honest resting frame. Both identity tiers, both paths, active members only; phone-first.User Stories
Acceptance criteria are Given/When/Then, sourced from the flow's nodes and edges (
portal.mermaid) and the wireframes'data-field/data-action/data-statuscontract.The two faces (PT-S0, PT-S0r)
https://<apex>/, then I see the brand kit (community-logo,community-name,greeting) and onesign-inaction, and no service list, no Join door, no tier-specific hint (PT-S0).sign-in, when the browser follows it, then it lands on/authz/signinwithrd=/and the IdP's own surface (DA-S1) is what I see next./showing PT-S1.resting, when the Portal loads, then PT-S0r renders the brand and theresting-line(data-status="resting") and nosign-inaction.unreachable-line(data-status="unreachable") and nosign-inaction.The home (PT-S1, PT-S1e)
my-doorsholds onedoorcard per answer and nothing for services the decider refuses me.OPENpill, theproduct-line("runs " with theproduct-link) and the door row withservice-urland anopen-dooraction — and no "deployed on" placement.resting, when its card renders, then it carries aRESTINGpill and adoorlessline, and noservice-urland noopen-dooraction.open-door, then the browser goes tohttps://<slug>.<apex>in the same tab.open-door, then the browser goes to the port-carrying reachable URL (DDR 0165).no-doors-yet(data-status="empty") shows the honest copy, andsigned-in-as, the greeting andsign-outremain.signed-in-ascarries the display name the identity route returned (kanidm display name / the IDIP roster name), and the greeting is the brand kit's.identity-strip(data-tier="kanidm") carries onemanage-sign-inaction that opens the IdP's self-service atid.<apex>(MAIL-M4) in the same tab; the Portal redraws none of it.identity-stripat all (Ben, 2026-09-09).Mail rehomed (MAIL-M1/M2/M2x under the Portal shell)
no-mailbox-yet, when the Mail card renders, then it carries aNO MAILBOX YETpill, thedoorlessline naming the folded-slug address, and anopen-claimaction leading to MAIL-M1 under the Portal shell./mail, when the screen renders, then it wears the Portal shell (brand, a way back to the home) and the seam's screens and refusal copy are unchanged.claimed, when the Mail card renders, then it is an open door whoseservice-urlis webmail (MAIL-M3, external) with anopen-dooraction./api/v1/mail/statusis called, then it answers on the community session (the gate's cookie resolver), never 401 for a live member./mailroute are mounted; this is a stated limit until a mail-on-IDIP design.Operators on the Portal (PT-S1o)
operator: true, when PT-S1o renders, thencontrol-panel-doorwith theopen-control-panelaction is present and everything else is the ordinary home.open-control-panel, when the browser follows it, then it lands onadmin.<apex>on the same session, with no second sign-in.https://<apex>/, when I open it signed in, then I see PT-S1o (the panel's Overview path is the Portal now, by construction).https://<apex>/and I see PT-S1 (or PT-S0 if signed out).RefusalBrand), not zero values.Endings (PT-S2, sign out)
data-status="session-ended",headline,what-it-means, onesign-in-againaction) and no door remains on screen.sign-in-again, when the gate round-trips, then I return to PT-S1 (rd).live: falseunder a loaded PT-S1, when the Portal reads it, then the cookie is cleared and PT-S0 renders (distinct from PT-S2).sign-outon PT-S1, when/authz/signoutruns, then the community session cookie is cleared, the IdP session is ended (kanidm end-session on the kanidm tier; the bridge's own session on IDIP), and the browser lands on PT-S0.GET /api/v1/me, when it is called with the old cookie, then it answers no session.sign-out, when it runs/authz/signoutwithrd= the panel's sign-in landing, then the session ends and the browser lands there.The member routes (ADR 0233 §3)
GET /api/v1/meis called, then it answers{sub, display_name, tier, live: true, operator, first_login, resting: false}computed through the composed decider (kanidmGateDecision/ IDIPStanding), not the bare cookie.live: falseand clears the cookie.resting: trueand never 500./meanswers live, then the roster's first-sign-in transition fires exactly as it does at the gate.GET /api/v1/me/doorsis called, then it iterates the live services (deployed placement × health with the ADR 0157 URL — the same truth the Services tab reads) and asksGateDecision(sub, slug)for each, answering{slug, name, product{name,url}, url, standing}per open door and omitting refused ones; the no-hostname set (front-door, backup-copy) never lists.standing: restingand nourl.portal-links.jsonis written and thePortalLinksport is a no-op or removed; nothing reads the ledger.The apex cutover (ADR 0233 §1–2, §5, §7)
file_serverand proxies only the allow-list; given the private render, the same, minus the panel redirect.https://<apex>/fleet?x=1(any of/overview /fleet /services /members /backups /settingsand their subpaths), when I open it, then the front door answers308tohttps://admin.<apex>/fleet?x=1before the Portal loads.https://<apex>/anything-else, when I open it, then PT-S3 renders (not-here,go-home) and no redirect occurs.GET https://<apex>/api/v1/members(or any operator family not on the allow-list) is called, then the front door answers 404.admin.<apex>, when the same route is called with a community session, then it answers as today behind the gate./api/v1/enroll/{redeem,pair,requests/*}and/api/v1/fleet/reportat the apex, then they proxy exactly as before; given/get,/authz/*,/brand/*,/mesh/*,/api/v1/healthz, join (/api/v1/join/*,/haere-mai/*,/idip/join/*) and/api/v1/mail/*, the same.location.hostis the apex, then theportalentry boots; when it isadmin.<apex>, then the operator SPA boots — path alone never decides.admin.<apex>, portful on the private path); the seat carries both the portal address and the dashboard door.admin.<apex>never resolves behind the gate.https://<apex>/haere-mai/<token>.panelAddress(admin.<apex>) with the community session; the droplet journey's "portal API is not cookie-gated" assumption is retargeted./sees PT-S0 → signs in → PT-S1 with at least one open door; an operator's/fleetbookmark → 308 → the panel;/api/v1/membersat the apex → 404; Sign out → PT-S0; the payload was re-warmed andreseed-publish.ymlrun before the drive.Rollout (ADR 0233 §8)
/meand sign-out, so that a redirecting apex never serves nothing./me/doorsfollow in later slices.Implementation Decisions
portalentry, chosen by host at boot (apex → Portal;admin.<apex>→ operator SPA). The Portal entry composes the identity route, the doors route, the mail client and the brand doorway over the same-origin transport;/mailbecomes a route inside it; the join pages keep their own token-addressed entries. No fake in the served path (ADR 0100).GET /api/v1/me, cookie-resolved through the gate's session resolver and answered through the composed decider (authGateDecider: the kanidm orchestrator or the IDIP roster decider). Not-live clears the cookie.restingwhen the substrate is not wired. It reports first sign-in like the gate does. It never answers a display name from an ungated operator route — the kanidm person lookup and the IDIP roster lookup are called by the route itself.GET /api/v1/me/doors: live services from the same per-service health the Services tab reads (deployed placement × health, with the ADR 0157 URL and the catalogue's product line) ×GateDecision(sub, slug); the no-hostname set never lists; resting doors carry no URL. The portal ledger and itsPortalLinksport are retired./authz/signout(clear the session cookie; end the IdP session — kanidm's end-session, the bridge's session on IDIP; 302 tord, default the apex root). The control panel's Sign out calls it with its ownrd.@panel308for the closed tab list (public render only);file_serverfor the bundle's shell and assets at the apex; the allow-list of proxied prefixes; every other/api/v1/*404 at the apex. Byte-pinned render tests. The brand tokens and logo the shell needs are compiled into the bundle's brand artifacts;/brand/*remains the live override when the control plane is up./me→{sub, display_name, tier: "kanidm"|"idip", live, operator, first_login, resting};/me/doors→{doors: [{slug, name, product: {name, url}, url?, standing: "open"|"resting"}]};/authz/signout?rd=. The apex allow-list is a rendered Caddy matcher, not a control-plane host check (the mux stays host-blind).community-logo/community-name/greeting/sign-in; PT-S0rresting-line|unreachable-line; PT-S1signed-in-as,my-doors→doorcards (product-line,product-link,service-url,open-door|open-claim,doorless),identity-strip(manage-sign-in, kanidm only),sign-out; PT-S1o addscontrol-panel-door/open-control-panel; PT-S1eno-doors-yet; PT-S2session-ended/sign-in-again; PT-S3not-here/go-home.Testing Decisions
A good test drives the external behaviour through an existing seam with a real request and a fake at the boundary, and asserts the screen state or the wire shape — never the implementation. The seams (ADR 0233 "Test seam"), all existing:
/melive / not-live (cookie cleared) / no cookie / resting / operator flag / first-login observed;/me/doorscross-product, resting door without URL, removed service absent, no-hostname set excluded;/authz/signoutclears and redirects tord; the mail routes on a cookie-bearing request with no header. Prior art: the mail integration test, the IDIP steward session test, the refusal test, the sign-in tests.file_servershell, the allow-list and the 404 fall-through, the private render's missing redirect. Prior art: the existing public/private front-door render tests./meanswers to PT-S0/S0r/S1/S1o/S1e/S2;/mailas a Portal route; sign-out's landing. Prior art: the served-entry and mail-entry seam tests.panelAddressfixture and one cutover leg in the public-path journey (story 40); the private-path journey asserts the Portal at the apex and no redirect.design-verifymatches the built Portal againstdocs/ux/wireframes/portal/bydata-field/data-action/data-status. DA-S1 remains a depiction, never matched.Out of Scope
www.<apex>and unrouted labels; a session-length policy; a Portal-side "request access" form.Further Notes
/meand sign-out with the cutover (story 41) — never a redirecting apex that serves nothing.admin.<apex>with a session in the same arc..subclass in the wireframe stylesheet is page chrome, not frame content — the Portal frames define local label classes;design-verifyshould key ondata-*attributes, not classes.rehearsal-e.idss.nzreds "already taken" — the single-sourcedREHEARSAL_SLUGis permanently held by the device target's LIVE standing community #1401rehearsal-e.idss.nzreds "already taken" — the single-sourcedREHEARSAL_SLUGis permanently held by the device target's LIVE standing community #1401mailinstance — gateway eval dies #1418Swept closed with its map (#1336), 2026-09-14. Every ticket this spec produced (#1362 through #1373) is closed. The last, #1373, closed GREEN by drive with screenshots checked by eye. The stated limits, the mail claim walk and the IDIP harness retarget, are recorded on the map.