portal: the mail claim journey proven by drive — Mail card NO MAILBOX YET → claim → the card becomes a webmail door (spec #1361 s17–21); split from #1373, blocked on #1420 #1421

Closed
opened 2026-09-12 05:35:24 +00:00 by matou-build-agent · 1 comment

Parent

Spec #1361 (the Portal); design contract DDR 0232 / ADR 0233; flow docs/ux/flows/portal.mermaid, wireframes docs/ux/wireframes/portal/. Split out of #1373 by Ben's ruling (2026-09-12).

Why this is its own ticket

#1373 set out to prove the whole Portal member journey by drive, including the mail claim half: the Mail card reads NO MAILBOX YET → claim (MAIL-M1 → M2 → claimed) → back home the Mail card has become an OPEN door to webmail (spec #1361 s17–21, story 19).

That half is unprovable by drive today — not because the Portal is wrong, but because a mail service cannot be deployed on any community: CanDeployService("mail") == false — mail is render-shipping but not port-routable (internal/clan/portroute.go), so P4-S2 deliberately refuses to offer it (a selectable service that only deploys as a phantom is a selectable lie, ADR 0100). A drive-side mail claim therefore has nothing to be born into; the old mail-cohost leg reached past that gate and could only ever red (GOTCHAS #14).

The Portal's mail work itself is built and seam-proven (#1372 — /mail under the Portal shell, the Mail card by claim state, the cookie resolver fix for #1344). What is missing is the deployable mail service, tracked as #1420 (route mail's AttachMail render so PortRoutable("mail") lifts the P4-S2 gate).

#1373 was split so it could close on what the Portal actually owns (PT-S1e, the operator's Control panel door, and the member journey minus mail — all driven GREEN with eyeballed frames); this ticket carries the mail half forward.

What to build (restore, once mail is routable)

  • Restore the mail-cohost leg on journey.droplet.spec.ts (co-host mail, plain-deploy, settle-aware wait) using selectMailOnGateway (still present in fixtures/provision.ts).
  • Restore the mail assertions in assertPortalMemberJourney (fixtures/portalJourney.ts): after the files-door leg, the Mail card reads NO MAILBOX YET → open-claim → /mail (MAIL-M1) → MAIL-M2 → claim-mailbox → the claimed webmail handoff (MAIL-M3) → back home the Mail card is an OPEN door to the community's own https webmail under the apex.
  • The dropped selectors (OPEN_CLAIM, MAIL_CLAIM_SCREEN, CLAIM_MAILBOX, MAIL_CLAIMED_SCREEN, BACK_HOME, PT_MAIL) are recoverable from the pre-split fixture (git history of #1373).

Acceptance criteria

  • Given a community where a mail service can be co-hosted, when the Portal member journey runs, then the Mail card reads NO MAILBOX YET → claim (MAIL-M1 → M2 → claimed) → back home the Mail card has become an OPEN door to webmail.
  • Given the drive, when it completes, then GREEN with the mail frames eyeballed.

Blocked by

  • #1420 (mail becomes port-routable — the P4-S2 gate lifts)

Why session

Needs a live drive on the rehearsal host (live doors, host credentials); closes on a GREEN drive with eyeballed mail frames, never on unit tests alone (ADR 0174).

## Parent Spec **#1361** (the Portal); design contract DDR 0232 / ADR 0233; flow `docs/ux/flows/portal.mermaid`, wireframes `docs/ux/wireframes/portal/`. Split out of **#1373** by Ben's ruling (2026-09-12). ## Why this is its own ticket #1373 set out to prove the whole Portal member journey by drive, **including** the mail claim half: the Mail card reads NO MAILBOX YET → claim (MAIL-M1 → M2 → claimed) → back home the Mail card has become an OPEN door to webmail (spec #1361 s17–21, story 19). That half is **unprovable by drive today** — not because the Portal is wrong, but because a mail **service cannot be deployed on any community**: `CanDeployService("mail") == false` — mail is render-shipping but **not port-routable** (`internal/clan/portroute.go`), so P4-S2 deliberately refuses to offer it (a selectable service that only deploys as a phantom is a selectable lie, ADR 0100). A drive-side mail claim therefore has nothing to be born into; the old `mail-cohost` leg reached past that gate and could only ever red (GOTCHAS #14). The Portal's mail work itself **is built and seam-proven** (#1372 — `/mail` under the Portal shell, the Mail card by claim state, the cookie resolver fix for #1344). What is missing is the deployable mail service, tracked as **#1420** (route mail's `AttachMail` render so `PortRoutable("mail")` lifts the P4-S2 gate). #1373 was split so it could close on what the Portal actually owns (PT-S1e, the operator's Control panel door, and the member journey minus mail — all driven GREEN with eyeballed frames); this ticket carries the mail half forward. ## What to build (restore, once mail is routable) - Restore the `mail-cohost` leg on `journey.droplet.spec.ts` (co-host mail, plain-deploy, settle-aware wait) using `selectMailOnGateway` (still present in `fixtures/provision.ts`). - Restore the mail assertions in `assertPortalMemberJourney` (`fixtures/portalJourney.ts`): after the files-door leg, the Mail card reads NO MAILBOX YET → open-claim → /mail (MAIL-M1) → MAIL-M2 → claim-mailbox → the claimed webmail handoff (MAIL-M3) → back home the Mail card is an OPEN door to the community's own https webmail under the apex. - The dropped selectors (`OPEN_CLAIM`, `MAIL_CLAIM_SCREEN`, `CLAIM_MAILBOX`, `MAIL_CLAIMED_SCREEN`, `BACK_HOME`, `PT_MAIL`) are recoverable from the pre-split fixture (git history of #1373). ## Acceptance criteria - [ ] Given a community where a mail service can be co-hosted, when the Portal member journey runs, then the Mail card reads NO MAILBOX YET → claim (MAIL-M1 → M2 → claimed) → back home the Mail card has become an OPEN door to webmail. - [ ] Given the drive, when it completes, then GREEN with the mail frames eyeballed. ## Blocked by - #1420 (mail becomes port-routable — the P4-S2 gate lifts) ## Why session Needs a live drive on the rehearsal host (live doors, host credentials); closes on a GREEN drive with eyeballed mail frames, never on unit tests alone (ADR 0174).
Owner

Closed 2026-10-21 (Ben's ruling in the stale sweep): mail is withheld on every community for the foreseeable future (840b5d1d, 2026-09-27), so the mail claim journey cannot be driven. Reopen when mail's Withheld is cleared; it was blocked on #1420, closed for the same reason.

Closed 2026-10-21 (Ben's ruling in the stale sweep): mail is withheld on every community for the foreseeable future (840b5d1d, 2026-09-27), so the mail claim journey cannot be driven. Reopen when mail's Withheld is cleared; it was blocked on #1420, closed for the same reason.
ben 2026-10-21 20:48:38 +00:00
  • closed this issue
  • removed the
    no-triage
    label
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#1421
No description provided.