portal: the mail claim rehomed — mail routes on the cookie resolver (#1344), /mail under the Portal shell, the Mail card by claim state, not on IDIP (spec #1361 s17–21) #1372

Closed
opened 2026-09-10 00:56:50 +00:00 by ben · 4 comments
Owner

Parent

Spec #1361 (the Portal); program map #1336; design contract DDR 0232 / ADR 0233, flow docs/ux/flows/portal.mermaid, wireframes docs/ux/wireframes/portal/. Slice mail-rehome in docs/slices/portal.yaml.

What to build

The member mail routes are wired with the gate's COOKIE resolver (#1344 — dead at the apex today); /mail becomes a route inside the portal entry wearing the Portal shell (a way back home; the seam's screens and DDR 0117 refusal copy unchanged); the Mail card is shaped by claim state (no-mailbox-yet → address-that-would-be-yours + Claim → MAIL-M1; claimed → webmail URL + Open). NOT mounted on the IDIP tier (stated limit). Handler test: cookie-bearing request with no identity header reaches MAIL-M1; entry seam test for the route.

Acceptance criteria

  • Given a cookie-bearing request with no identity header, when GET /api/v1/mail/status is called at the apex, then it answers on the community session (the gate's cookie resolver) — never 401 for a live member (#1344).
  • Given mail status no-mailbox-yet, when the Mail card renders on PT-S1, then NO MAILBOX YET pill, the doorless line naming the folded-slug address, an open-claim action → /mail (MAIL-M1) under the Portal shell with a way back home.
  • Given the member claims, when MAIL-M2 completes, then the home's Mail card becomes an open door whose service-url is webmail (MAIL-M3) with open-door.
  • Given a suspended member's claim, when it is refused, then MAIL-M2x renders unchanged (DDR 0117 copy) under the Portal shell.
  • Given the IDIP tier, when the Portal renders, then no Mail card and no /mail route are mounted.

Blocked by

Task manifest

task: mail-rehome
implements_flow: portal
implements_edge: PT-S1→MAIL-M1→PT-S1 / PT-S1→WEBMAIL
wireframe: docs/ux/wireframes/mail/mail-m1-no-mailbox-yet.html
interface: ''
seam: controlapi mail integration test + dashboard entry seam test
acceptance:
- given: a cookie-bearing request with no identity header
  when: GET /api/v1/mail/status is called at the apex
  then: it answers on the community session (the gate's cookie resolver) — never 401 for a live member
    (#1344)
- given: mail status no-mailbox-yet
  when: the Mail card renders on PT-S1
  then: NO MAILBOX YET pill, the doorless line naming the folded-slug address, an open-claim action →
    /mail (MAIL-M1) under the Portal shell with a way back home
- given: the member claims
  when: MAIL-M2 completes
  then: the home's Mail card becomes an open door whose service-url is webmail (MAIL-M3) with open-door
- given: a suspended member's claim
  when: it is refused
  then: MAIL-M2x renders unchanged (DDR 0117 copy) under the Portal shell
- given: the IDIP tier
  when: the Portal renders
  then: no Mail card and no /mail route are mounted
depends_on:
- home-doors
out_of_scope:
- operator truth on the Portal
- operator notices / per-service public switch
- IDIP identity door
- mail on IDIP (stated limit)
- IDIP browser sign-in UX (#1302)
needs_human_decision: []
## Parent Spec **#1361** (the Portal); program map **#1336**; design contract DDR 0232 / ADR 0233, flow `docs/ux/flows/portal.mermaid`, wireframes `docs/ux/wireframes/portal/`. Slice `mail-rehome` in `docs/slices/portal.yaml`. ## What to build The member mail routes are wired with the gate's COOKIE resolver (#1344 — dead at the apex today); /mail becomes a route inside the portal entry wearing the Portal shell (a way back home; the seam's screens and DDR 0117 refusal copy unchanged); the Mail card is shaped by claim state (no-mailbox-yet → address-that-would-be-yours + Claim → MAIL-M1; claimed → webmail URL + Open). NOT mounted on the IDIP tier (stated limit). Handler test: cookie-bearing request with no identity header reaches MAIL-M1; entry seam test for the route. ## Acceptance criteria - [ ] Given a cookie-bearing request with no identity header, when GET /api/v1/mail/status is called at the apex, then it answers on the community session (the gate's cookie resolver) — never 401 for a live member (#1344). - [ ] Given mail status no-mailbox-yet, when the Mail card renders on PT-S1, then NO MAILBOX YET pill, the doorless line naming the folded-slug address, an open-claim action → /mail (MAIL-M1) under the Portal shell with a way back home. - [ ] Given the member claims, when MAIL-M2 completes, then the home's Mail card becomes an open door whose service-url is webmail (MAIL-M3) with open-door. - [ ] Given a suspended member's claim, when it is refused, then MAIL-M2x renders unchanged (DDR 0117 copy) under the Portal shell. - [ ] Given the IDIP tier, when the Portal renders, then no Mail card and no /mail route are mounted. ## Blocked by - #1371 ## Task manifest ```yaml task: mail-rehome implements_flow: portal implements_edge: PT-S1→MAIL-M1→PT-S1 / PT-S1→WEBMAIL wireframe: docs/ux/wireframes/mail/mail-m1-no-mailbox-yet.html interface: '' seam: controlapi mail integration test + dashboard entry seam test acceptance: - given: a cookie-bearing request with no identity header when: GET /api/v1/mail/status is called at the apex then: it answers on the community session (the gate's cookie resolver) — never 401 for a live member (#1344) - given: mail status no-mailbox-yet when: the Mail card renders on PT-S1 then: NO MAILBOX YET pill, the doorless line naming the folded-slug address, an open-claim action → /mail (MAIL-M1) under the Portal shell with a way back home - given: the member claims when: MAIL-M2 completes then: the home's Mail card becomes an open door whose service-url is webmail (MAIL-M3) with open-door - given: a suspended member's claim when: it is refused then: MAIL-M2x renders unchanged (DDR 0117 copy) under the Portal shell - given: the IDIP tier when: the Portal renders then: no Mail card and no /mail route are mounted depends_on: - home-doors out_of_scope: - operator truth on the Portal - operator notices / per-service public switch - IDIP identity door - mail on IDIP (stated limit) - IDIP browser sign-in UX (#1302) needs_human_decision: [] ```

swarm-claim host=matou-dev-server-01 run=21068
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=21068 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1372 — status success

⛔ close-report gates REFUSED this close — the following claims did not verify:

  • commit d710534cbb is not a valid commit object (fabricated, or never pushed)
  • changed_files: 'STATUS.md' is not in the diff of the claimed commits
  • changed_files: 'dashboard/src/components/portal/PortalHome.vue' is not in the diff of the claimed commits
  • changed_files: 'dashboard/src/components/portal/PortalMail.vue' is not in the diff of the claimed commits
  • changed_files: 'dashboard/src/components/portal/PortalSurface.vue' is not in the diff of the claimed commits
  • changed_files: 'dashboard/src/entry/main.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/src/entry/portal.ts' is not in the diff of the claimed commits
  • changed_files: 'dashboard/tests/unit/portalEntry.test.ts' is not in the diff of the claimed commits
envelope
{
  "issue": 1372,
  "status": "success",
  "commits": [
    "d710534cbb"
  ],
  "changed_files": [
    "STATUS.md",
    "dashboard/src/components/portal/PortalHome.vue",
    "dashboard/src/components/portal/PortalMail.vue",
    "dashboard/src/components/portal/PortalSurface.vue",
    "dashboard/src/entry/main.ts",
    "dashboard/src/entry/portal.ts",
    "dashboard/tests/unit/portalEntry.test.ts"
  ],
  "tests": [
    {
      "command": "npx vitest run tests/unit/portalEntry.test.ts (dashboard)",
      "exit_code": 0
    },
    {
      "command": "npx vitest run (full dashboard suite, 1448 tests)",
      "exit_code": 0
    },
    {
      "command": "npx vue-tsc -p tsconfig.json --noEmit (dashboard)",
      "exit_code": 0
    },
    {
      "command": "CI=true npx eslint (changed portal files)",
      "exit_code": 0
    },
    {
      "command": "npx vite build (dashboard)",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command go test ./internal/controlapi/ -run TestMailHandler",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Given a cookie-bearing request with no identity header, when GET /api/v1/mail/status is called at the apex, then it answers on the community session (the gate's cookie resolver) — never 401 for a live member (#1344)": "Backend already landed: main.go:1535 WithMemberMail(c.mailPortal, gateResolver); proven by internal/controlapi/mail_integration_test.go TestMailHandler_CookieSessionReachesM1WithoutHeader (green, run this iteration).",
    "Given mail status no-mailbox-yet, when the Mail card renders on PT-S1, then NO MAILBOX YET pill, the doorless line naming the folded-slug address, an open-claim action → /mail (MAIL-M1) under the Portal shell with a way back home": "PortalHome.vue mail-card (data-status=no-mailbox-yet): NO MAILBOX YET pill, doorless line with address-that-would-be-yours, open-claim→/mail; PortalMail.vue wraps MailSurface with back-home→/. portalEntry.test.ts 'no-mailbox-yet' + '/mail ... under the Portal shell' cases (green).",
    "Given the member claims, when MAIL-M2 completes, then the home's Mail card becomes an open door whose service-url is webmail (MAIL-M3) with open-door": "PortalHome.vue mail-card (claimed): service-url=webmailUrl, open-door→webmailUrl; PortalSurface re-reads mail status on recheck. portalEntry.test.ts 'claimed: an open door' + 'a claim completed at /mail turns the home Mail card into an open door' cases (green).",
    "Given a suspended member's claim, when it is refused, then MAIL-M2x renders unchanged (DDR 0117 copy) under the Portal shell": "PortalMail wraps the unchanged MailSurface/MailClaimRefusedScreen; portalEntry.test.ts 'a suspended member claiming lands on MAIL-M2x, copy unchanged, under the shell' asserts data-status=claim-refused + portal-mail + back-home (green).",
    "Given the IDIP tier, when the Portal renders, then no Mail card and no /mail route are mounted": "PortalSurface reads no mail status for tier=idip (no mail-card on the home) and routes /mail to PT-S3 not-here on IDIP; portalEntry.test.ts 'the IDIP home draws no Mail card' + '/mail on the IDIP tier is not-here' cases (green)."
  },
  "summary": "Rehomed the member mail claim under the Portal: /mail is a Portal-shell route, the home's Mail card is shaped by claim state, and mail is not offered on the IDIP tier.",
  "blockers": []
}
**close-report** for #1372 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - commit d710534cbb is not a valid commit object (fabricated, or never pushed) - changed_files: 'STATUS.md' is not in the diff of the claimed commits - changed_files: 'dashboard/src/components/portal/PortalHome.vue' is not in the diff of the claimed commits - changed_files: 'dashboard/src/components/portal/PortalMail.vue' is not in the diff of the claimed commits - changed_files: 'dashboard/src/components/portal/PortalSurface.vue' is not in the diff of the claimed commits - changed_files: 'dashboard/src/entry/main.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/src/entry/portal.ts' is not in the diff of the claimed commits - changed_files: 'dashboard/tests/unit/portalEntry.test.ts' is not in the diff of the claimed commits <details><summary>envelope</summary> ```json { "issue": 1372, "status": "success", "commits": [ "d710534cbb" ], "changed_files": [ "STATUS.md", "dashboard/src/components/portal/PortalHome.vue", "dashboard/src/components/portal/PortalMail.vue", "dashboard/src/components/portal/PortalSurface.vue", "dashboard/src/entry/main.ts", "dashboard/src/entry/portal.ts", "dashboard/tests/unit/portalEntry.test.ts" ], "tests": [ { "command": "npx vitest run tests/unit/portalEntry.test.ts (dashboard)", "exit_code": 0 }, { "command": "npx vitest run (full dashboard suite, 1448 tests)", "exit_code": 0 }, { "command": "npx vue-tsc -p tsconfig.json --noEmit (dashboard)", "exit_code": 0 }, { "command": "CI=true npx eslint (changed portal files)", "exit_code": 0 }, { "command": "npx vite build (dashboard)", "exit_code": 0 }, { "command": "nix develop .#go-ci --command go test ./internal/controlapi/ -run TestMailHandler", "exit_code": 0 } ], "criteria": { "Given a cookie-bearing request with no identity header, when GET /api/v1/mail/status is called at the apex, then it answers on the community session (the gate's cookie resolver) — never 401 for a live member (#1344)": "Backend already landed: main.go:1535 WithMemberMail(c.mailPortal, gateResolver); proven by internal/controlapi/mail_integration_test.go TestMailHandler_CookieSessionReachesM1WithoutHeader (green, run this iteration).", "Given mail status no-mailbox-yet, when the Mail card renders on PT-S1, then NO MAILBOX YET pill, the doorless line naming the folded-slug address, an open-claim action → /mail (MAIL-M1) under the Portal shell with a way back home": "PortalHome.vue mail-card (data-status=no-mailbox-yet): NO MAILBOX YET pill, doorless line with address-that-would-be-yours, open-claim→/mail; PortalMail.vue wraps MailSurface with back-home→/. portalEntry.test.ts 'no-mailbox-yet' + '/mail ... under the Portal shell' cases (green).", "Given the member claims, when MAIL-M2 completes, then the home's Mail card becomes an open door whose service-url is webmail (MAIL-M3) with open-door": "PortalHome.vue mail-card (claimed): service-url=webmailUrl, open-door→webmailUrl; PortalSurface re-reads mail status on recheck. portalEntry.test.ts 'claimed: an open door' + 'a claim completed at /mail turns the home Mail card into an open door' cases (green).", "Given a suspended member's claim, when it is refused, then MAIL-M2x renders unchanged (DDR 0117 copy) under the Portal shell": "PortalMail wraps the unchanged MailSurface/MailClaimRefusedScreen; portalEntry.test.ts 'a suspended member claiming lands on MAIL-M2x, copy unchanged, under the shell' asserts data-status=claim-refused + portal-mail + back-home (green).", "Given the IDIP tier, when the Portal renders, then no Mail card and no /mail route are mounted": "PortalSurface reads no mail status for tier=idip (no mail-card on the home) and routes /mail to PT-S3 not-here on IDIP; portalEntry.test.ts 'the IDIP home draws no Mail card' + '/mail on the IDIP tier is not-here' cases (green)." }, "summary": "Rehomed the member mail claim under the Portal: /mail is a Portal-shell route, the home's Mail card is shaped by claim state, and mail is not offered on the IDIP tier.", "blockers": [] } ``` </details>

close-report for #1372 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1372,
  "status": "success",
  "commits": [
    "d710534ccf369a4232975430bb463557e94ade11"
  ],
  "changed_files": [
    "STATUS.md",
    "dashboard/src/components/portal/PortalHome.vue",
    "dashboard/src/components/portal/PortalMail.vue",
    "dashboard/src/components/portal/PortalSurface.vue",
    "dashboard/src/entry/main.ts",
    "dashboard/src/entry/portal.ts",
    "dashboard/tests/unit/portalEntry.test.ts"
  ],
  "tests": [
    {
      "command": "npx vitest run tests/unit/portalEntry.test.ts (dashboard)",
      "exit_code": 0
    },
    {
      "command": "npx vitest run (full dashboard suite, 1448 tests)",
      "exit_code": 0
    },
    {
      "command": "npx vue-tsc -p tsconfig.json --noEmit (dashboard)",
      "exit_code": 0
    },
    {
      "command": "CI=true npx eslint (changed portal files)",
      "exit_code": 0
    },
    {
      "command": "npx vite build (dashboard)",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command go test ./internal/controlapi/ -run TestMailHandler",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Given a cookie-bearing request with no identity header, when GET /api/v1/mail/status is called at the apex, then it answers on the community session (the gate's cookie resolver) — never 401 for a live member (#1344)": "Backend already landed: main.go:1535 WithMemberMail(c.mailPortal, gateResolver); proven by internal/controlapi/mail_integration_test.go TestMailHandler_CookieSessionReachesM1WithoutHeader (green, run this iteration).",
    "Given mail status no-mailbox-yet, when the Mail card renders on PT-S1, then NO MAILBOX YET pill, the doorless line naming the folded-slug address, an open-claim action → /mail (MAIL-M1) under the Portal shell with a way back home": "PortalHome.vue mail-card (data-status=no-mailbox-yet): NO MAILBOX YET pill, doorless line with address-that-would-be-yours, open-claim→/mail; PortalMail.vue wraps MailSurface with back-home→/. portalEntry.test.ts 'no-mailbox-yet' + '/mail ... under the Portal shell' cases (green).",
    "Given the member claims, when MAIL-M2 completes, then the home's Mail card becomes an open door whose service-url is webmail (MAIL-M3) with open-door": "PortalHome.vue mail-card (claimed): service-url=webmailUrl, open-door→webmailUrl; PortalSurface re-reads mail status on recheck. portalEntry.test.ts 'claimed: an open door' + 'a claim completed at /mail turns the home Mail card into an open door' cases (green).",
    "Given a suspended member's claim, when it is refused, then MAIL-M2x renders unchanged (DDR 0117 copy) under the Portal shell": "PortalMail wraps the unchanged MailSurface/MailClaimRefusedScreen; portalEntry.test.ts 'a suspended member claiming lands on MAIL-M2x, copy unchanged, under the shell' asserts data-status=claim-refused + portal-mail + back-home (green).",
    "Given the IDIP tier, when the Portal renders, then no Mail card and no /mail route are mounted": "PortalSurface reads no mail status for tier=idip (no mail-card on the home) and routes /mail to PT-S3 not-here on IDIP; portalEntry.test.ts 'the IDIP home draws no Mail card' + '/mail on the IDIP tier is not-here' cases (green)."
  },
  "summary": "Rehomed the member mail claim under the Portal: /mail is a Portal-shell route, the home's Mail card is shaped by claim state, and mail is not offered on the IDIP tier.",
  "blockers": []
}
**close-report** for #1372 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1372, "status": "success", "commits": [ "d710534ccf369a4232975430bb463557e94ade11" ], "changed_files": [ "STATUS.md", "dashboard/src/components/portal/PortalHome.vue", "dashboard/src/components/portal/PortalMail.vue", "dashboard/src/components/portal/PortalSurface.vue", "dashboard/src/entry/main.ts", "dashboard/src/entry/portal.ts", "dashboard/tests/unit/portalEntry.test.ts" ], "tests": [ { "command": "npx vitest run tests/unit/portalEntry.test.ts (dashboard)", "exit_code": 0 }, { "command": "npx vitest run (full dashboard suite, 1448 tests)", "exit_code": 0 }, { "command": "npx vue-tsc -p tsconfig.json --noEmit (dashboard)", "exit_code": 0 }, { "command": "CI=true npx eslint (changed portal files)", "exit_code": 0 }, { "command": "npx vite build (dashboard)", "exit_code": 0 }, { "command": "nix develop .#go-ci --command go test ./internal/controlapi/ -run TestMailHandler", "exit_code": 0 } ], "criteria": { "Given a cookie-bearing request with no identity header, when GET /api/v1/mail/status is called at the apex, then it answers on the community session (the gate's cookie resolver) — never 401 for a live member (#1344)": "Backend already landed: main.go:1535 WithMemberMail(c.mailPortal, gateResolver); proven by internal/controlapi/mail_integration_test.go TestMailHandler_CookieSessionReachesM1WithoutHeader (green, run this iteration).", "Given mail status no-mailbox-yet, when the Mail card renders on PT-S1, then NO MAILBOX YET pill, the doorless line naming the folded-slug address, an open-claim action → /mail (MAIL-M1) under the Portal shell with a way back home": "PortalHome.vue mail-card (data-status=no-mailbox-yet): NO MAILBOX YET pill, doorless line with address-that-would-be-yours, open-claim→/mail; PortalMail.vue wraps MailSurface with back-home→/. portalEntry.test.ts 'no-mailbox-yet' + '/mail ... under the Portal shell' cases (green).", "Given the member claims, when MAIL-M2 completes, then the home's Mail card becomes an open door whose service-url is webmail (MAIL-M3) with open-door": "PortalHome.vue mail-card (claimed): service-url=webmailUrl, open-door→webmailUrl; PortalSurface re-reads mail status on recheck. portalEntry.test.ts 'claimed: an open door' + 'a claim completed at /mail turns the home Mail card into an open door' cases (green).", "Given a suspended member's claim, when it is refused, then MAIL-M2x renders unchanged (DDR 0117 copy) under the Portal shell": "PortalMail wraps the unchanged MailSurface/MailClaimRefusedScreen; portalEntry.test.ts 'a suspended member claiming lands on MAIL-M2x, copy unchanged, under the shell' asserts data-status=claim-refused + portal-mail + back-home (green).", "Given the IDIP tier, when the Portal renders, then no Mail card and no /mail route are mounted": "PortalSurface reads no mail status for tier=idip (no mail-card on the home) and routes /mail to PT-S3 not-here on IDIP; portalEntry.test.ts 'the IDIP home draws no Mail card' + '/mail on the IDIP tier is not-here' cases (green)." }, "summary": "Rehomed the member mail claim under the Portal: /mail is a Portal-shell route, the home's Mail card is shaped by claim state, and mail is not offered on the IDIP tier.", "blockers": [] } ``` </details>
Author
Owner

Follow-up landed on main fb8368af (Ben's session, 2026-09-10) — the home offered a MAIL door to a mail service that was never deployed.

Ben's eyeballed #1369 droplet frame (pt-home-signed-in.png, run 20260910T080640Z) showed the founding operator's home with a Mail card reading OPEN + https://mail.<apex> on a community with no mail module. Not a wrong claim state — a lie composed from three honest layers (GOTCHAS #221):

  1. founding writes *.<apex> A at the gateway, so mail.<apex> lands on the ONE Caddy wildcard site; every directive there is a host-matched handle, and Caddy's default for a request no handle matches is 200 with an empty body;
  2. mailsvc.Port.request only unmarshalled a non-empty body → the empty 200 read as a zero mailbox → Data ok=true → Status = claimed + webmail URL;
  3. wholeMailPortal wired the member mail portal wherever mail.<apex> was derivable (ADR 0113), never consulting the deployed-module set (#875's lesson, learned by the offboard catalogue but not by this surface).

Fix, all three layers, byte-pinned:

  • internal/clan: both front-door renders end with a matcher-less handle { respond 404 } (renderUnservedHostFallthrough) — an unserved wildcard host reads as ABSENT; the founding door probe accepts any HTTP answer, so it still counts as "answered over TLS".
  • internal/mailsvc: an empty 200 is a fault (TestPort_EmptyOKIsNotAMailbox); MemberPortal.WithOffered(func() bool) → ErrNotOffered on Status/Claim, management API untouched, read per call.
  • internal/controlapi: ErrNotOffered → 404 mail_not_offered on both routes.
  • control-plane: wholeMailPortal gates on mailOffered(deployedServiceSet(deps)).
  • dashboard: /mail is not-here on mail_not_offered (the home already drew no card on a failed read); two new portalEntry tests.

Tests: go test ./internal/mailsvc/ ./internal/controlapi/ ./internal/clan/ ./internal/founding/ ./control-plane/cmd/control-plane/ green; vitest portalEntry+mailEntry 32/32; vue-tsc + eslint clean. AC2/AC3 of this ticket are unchanged for a community that HAS mail; on one that does not, the honest answer is no card and no /mail. Ticket stays closed; #1369's private leg re-verifies the home with no Mail card.

**Follow-up landed on main `fb8368af` (Ben's session, 2026-09-10) — the home offered a MAIL door to a mail service that was never deployed.** Ben's eyeballed #1369 droplet frame (`pt-home-signed-in.png`, run `20260910T080640Z`) showed the founding operator's home with a Mail card reading **OPEN** + `https://mail.<apex>` on a community with **no mail module**. Not a wrong claim state — a lie composed from three honest layers (GOTCHAS **#221**): 1. founding writes `*.<apex>` A at the gateway, so `mail.<apex>` lands on the ONE Caddy wildcard site; every directive there is a host-matched `handle`, and Caddy's default for a request no handle matches is **200 with an empty body**; 2. `mailsvc.Port.request` only unmarshalled a non-empty body → the empty 200 read as a zero mailbox → `Data` ok=true → `Status` = `claimed` + webmail URL; 3. `wholeMailPortal` wired the member mail portal wherever `mail.<apex>` was *derivable* (ADR 0113), never consulting the deployed-module set (#875's lesson, learned by the offboard catalogue but not by this surface). **Fix, all three layers, byte-pinned:** - `internal/clan`: both front-door renders end with a matcher-less `handle { respond 404 }` (`renderUnservedHostFallthrough`) — an unserved wildcard host reads as ABSENT; the founding door probe accepts any HTTP answer, so it still counts as "answered over TLS". - `internal/mailsvc`: an empty 200 is a fault (`TestPort_EmptyOKIsNotAMailbox`); `MemberPortal.WithOffered(func() bool)` → `ErrNotOffered` on Status/Claim, management API untouched, read per call. - `internal/controlapi`: `ErrNotOffered` → **404 `mail_not_offered`** on both routes. - `control-plane`: `wholeMailPortal` gates on `mailOffered(deployedServiceSet(deps))`. - `dashboard`: `/mail` is not-here on `mail_not_offered` (the home already drew no card on a failed read); two new portalEntry tests. Tests: `go test ./internal/mailsvc/ ./internal/controlapi/ ./internal/clan/ ./internal/founding/ ./control-plane/cmd/control-plane/` green; `vitest portalEntry+mailEntry` 32/32; `vue-tsc` + eslint clean. AC2/AC3 of this ticket are unchanged for a community that HAS mail; on one that does not, the honest answer is no card and no `/mail`. Ticket stays closed; #1369's private leg re-verifies the home with no Mail card.
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.

Reference
Matou/idss#1372
No description provided.