harness: the #1373 mail-cohost leg selects mail, which the product GATES out of selection (not routable) — a phantom deploy that reds every drive after renting a box #1419

Closed
opened 2026-09-12 05:24:15 +00:00 by ben · 1 comment
Owner

The failure

#1373's drive reds at the mail-cohost leg, deterministically, after ~20 minutes and a rented droplet:

deploy failed (clean-retry): … clan: config_eval on gateway:
error: flake input 'clan-core' doesn't provide clan-module with name 'mail'.

Drive 20260912T045221Z (elitebook, tree 9e3345eb): 26 legs green, 1 red, 0 skips. Everything before it passed, including portal-s1e and the whole founding/files chain.

Cause — the leg selects a service the product deliberately refuses to offer

This is GOTCHAS #14: a phantom inventory instance naming a module clan-core does not provide. The product is correct; the harness is not.

  • renderShippingService("mail") → true (internal/provision/deploy.go:1706)
  • clan.PortRoutable("mail") → false (internal/clan/portroute.go — only files/docs-editing and the forward-auth ports route)
  • so provisionCannotDeploy("mail") → true, i.e. CanDeployService("mail") == false

provisionCannotDeploy's own comment names mail explicitly: "The gateway-colocated ports (mail / code / chat) and the other helper renders (meetings / static-sites) are the sibling frontier: render-shipping but not yet routed, so they stay gated." P4-S2 does not offer mail, under Ben's ADR 0100 ruling that a selectable service which can only deploy as a phantom is a selectable lie.

selectMailOnGateway (app/tests/e2e/fixtures/provision.ts, added for #1373) reaches past that gate and selects mail anyway, so it can only ever produce this failure.

Why this blocks #1373 rather than being a note on it

portal-member is ordered after mail-cohost and never runs. Reordering does not help: assertPortalMemberJourney asserts the mail claim itself (Mail card NO MAILBOX YET → MAIL-M1 → M2 → becomes webmail), and no community can deploy mail today. AC1 as written is unprovable by drive until mail is routable.

Each retry costs a rented droplet and ~20 minutes to rediscover a fact the code states in a comment, so #1373 is blocked on this to stop the leak.

What this needs — Ben's ruling is on #1373

Recommended there: drop mail-cohost and the mail assertions from the journey and prove what the Portal owns (PT-S1e ✅ already green, the control-panel door ✅ already green, and sign in → PT-S1 with the files door → open → back → Sign out → PT-S0), tracking the mail half behind mail routability.

Whichever way it is ruled, this leg must change before #1373 can drive green: as written it selects a gated service.

A cheap guard worth adding either way: selectMailOnGateway — and any future select<X>OnGateway — should assert CanDeployService(slug) (or the P4-S2 offering) before selecting, so a harness can never again select a service the product hides. That is the same class of fix as #1401's claimability preflight: refuse before spending, not after.

## The failure `#1373`'s drive reds at the `mail-cohost` leg, deterministically, after ~20 minutes and a rented droplet: ``` deploy failed (clean-retry): … clan: config_eval on gateway: error: flake input 'clan-core' doesn't provide clan-module with name 'mail'. ``` Drive `20260912T045221Z` (elitebook, tree `9e3345eb`): **26 legs green, 1 red, 0 skips**. Everything before it passed, including `portal-s1e` and the whole founding/files chain. ## Cause — the leg selects a service the product deliberately refuses to offer This is **GOTCHAS #14**: a phantom inventory instance naming a module clan-core does not provide. The product is correct; the harness is not. - `renderShippingService("mail")` → **true** (`internal/provision/deploy.go:1706`) - `clan.PortRoutable("mail")` → **false** (`internal/clan/portroute.go` — only files/docs-editing and the forward-auth ports route) - so `provisionCannotDeploy("mail")` → **true**, i.e. **`CanDeployService("mail") == false`** `provisionCannotDeploy`'s own comment names mail explicitly: *"The gateway-colocated ports (mail / code / chat) and the other helper renders (meetings / static-sites) are the sibling frontier: render-shipping but not yet routed, so they stay gated."* P4-S2 does not offer mail, under Ben's ADR 0100 ruling that a selectable service which can only deploy as a phantom is a selectable lie. `selectMailOnGateway` (`app/tests/e2e/fixtures/provision.ts`, added for #1373) reaches past that gate and selects mail anyway, so it can only ever produce this failure. ## Why this blocks #1373 rather than being a note on it `portal-member` is ordered after `mail-cohost` and never runs. Reordering does not help: `assertPortalMemberJourney` asserts the mail claim itself (Mail card NO MAILBOX YET → MAIL-M1 → M2 → becomes webmail), and no community can deploy mail today. **AC1 as written is unprovable by drive** until mail is routable. Each retry costs a **rented droplet** and ~20 minutes to rediscover a fact the code states in a comment, so #1373 is blocked on this to stop the leak. ## What this needs — Ben's ruling is on #1373 Recommended there: **drop `mail-cohost` and the mail assertions** from the journey and prove what the Portal owns (PT-S1e ✅ already green, the control-panel door ✅ already green, and sign in → PT-S1 with the **files** door → open → back → Sign out → PT-S0), tracking the mail half behind mail routability. Whichever way it is ruled, this leg must change before #1373 can drive green: as written it selects a gated service. **A cheap guard worth adding either way:** `selectMailOnGateway` — and any future `select<X>OnGateway` — should assert `CanDeployService(slug)` (or the P4-S2 offering) before selecting, so a harness can never again select a service the product hides. That is the same class of fix as #1401's claimability preflight: refuse before spending, not after.
Author
Owner

Closing as a duplicate of #1418 — and correcting my own analysis, which was wrong on the key point.

I filed this as a harness defect, claiming selectMailOnGateway "reaches past the P4-S2 gate and selects mail anyway". That is false. Reading the fixture:

const mailToggle = page.locator('[data-action="toggle-mail"]');
await expect(mailToggle, 'mail is not an available co-host on the gateway select screen')
  .toBeVisible({ timeout: S2_TIMEOUT_MS });
await mailToggle.click();
await expect(mailToggle).toHaveAttribute('data-status', 'selected', …);

That visibility assertion passed, and so did the selected-state assertion. The drive did not force anything: the select screen offered Mail, and let it be ticked. The red came later, at deploy.

So the gate is not being applied on that screen, and this is a product defect — a selectable lie under ADR 0100 / GOTCHAS #14, which is exactly how #1418 framed it. #1418 is the correct ticket and is already agent-working.

What still holds from this ticket, and is worth carrying into #1418:

  • CanDeployService("mail") == false is demonstrable from the code: renderShippingService("mail") → true (internal/provision/deploy.go:1706), clan.PortRoutable("mail") → false (internal/clan/portroute.go), so provisionCannotDeploy("mail") → true. provisionCannotDeploy's own comment names mail as gated. The predicate is right; something on the offering path is not consulting it. That is the gap to close.
  • The suggested harness guard stands as defence in depth, not as the fix: select<X>OnGateway asserting the product's own offering before selecting would have made this red at the select screen in seconds instead of after a rented droplet and 20 minutes.
  • AC1 of #1373 is still unprovable by drive regardless of how this is fixed, because mail cannot be deployed at all — that consequence is unchanged and is on #1373 for Ben's ruling.

#1373 stays blocked on #1418.

**Closing as a duplicate of #1418 — and correcting my own analysis, which was wrong on the key point.** I filed this as a **harness** defect, claiming `selectMailOnGateway` "reaches past the P4-S2 gate and selects mail anyway". That is false. Reading the fixture: ```ts const mailToggle = page.locator('[data-action="toggle-mail"]'); await expect(mailToggle, 'mail is not an available co-host on the gateway select screen') .toBeVisible({ timeout: S2_TIMEOUT_MS }); await mailToggle.click(); await expect(mailToggle).toHaveAttribute('data-status', 'selected', …); ``` That visibility assertion **passed**, and so did the selected-state assertion. The drive did not force anything: **the select screen offered Mail, and let it be ticked.** The red came later, at deploy. So the gate is not being applied on that screen, and this is a **product** defect — a selectable lie under ADR 0100 / GOTCHAS #14, which is exactly how #1418 framed it. #1418 is the correct ticket and is already `agent-working`. What still holds from this ticket, and is worth carrying into #1418: - `CanDeployService("mail") == false` is demonstrable from the code: `renderShippingService("mail")` → true (`internal/provision/deploy.go:1706`), `clan.PortRoutable("mail")` → false (`internal/clan/portroute.go`), so `provisionCannotDeploy("mail")` → true. `provisionCannotDeploy`'s own comment names mail as gated. **The predicate is right; something on the offering path is not consulting it.** That is the gap to close. - The suggested harness guard stands as defence in depth, not as the fix: `select<X>OnGateway` asserting the product's own offering before selecting would have made this red at the select screen in seconds instead of after a rented droplet and 20 minutes. - **AC1 of #1373 is still unprovable by drive** regardless of how this is fixed, because mail cannot be deployed at all — that consequence is unchanged and is on #1373 for Ben's ruling. #1373 stays blocked on #1418.
ben closed this issue 2026-09-12 05:25:52 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#1419
No description provided.