founding: Standup.Mail has no writer — confirm the mail arc wants it or delete it #342

Closed
opened 2026-08-08 15:29:03 +00:00 by ben · 3 comments
Owner

The 2026-08-08 whole-branch review flagged internal/founding/standup.go's Mail bool as Speculative Generality: the field is documented as never having been part of the S10 spec, nothing in the product sets it, and four mailTargets exist in the reachability prober for a flag with no writer.

NOT deleted during the review-fix sweep because the mail arc (#318 member portal / #321 operator gate, ruled 2026-08-07) may be its intended writer — whoever picks this up should either (a) confirm the mail arc will set it and leave it with a comment naming that writer, or (b) delete the flag and mailTargets if the mail arc's gate model (#321's one state slug) supersedes it. Judgement call, small either way.

The 2026-08-08 whole-branch review flagged `internal/founding/standup.go`'s `Mail bool` as Speculative Generality: the field is documented as never having been part of the S10 spec, nothing in the product sets it, and four `mailTargets` exist in the reachability prober for a flag with no writer. NOT deleted during the review-fix sweep because the mail arc (#318 member portal / #321 operator gate, ruled 2026-08-07) may be its intended writer — whoever picks this up should either (a) confirm the mail arc will set it and leave it with a comment naming that writer, or (b) delete the flag and `mailTargets` if the mail arc's gate model (#321's one `state` slug) supersedes it. Judgement call, small either way.
Author
Owner

This was generated by AI during triage.

Triage: ready-for-human

Category: enhancement
Summary: Confirm whether founding.Standup.Mail / ProbeSpec.Mail should be wired to the shipped mail arc, or deleted as speculative generality.

Verification of the claim:

Confirmed against the current codebase (2026-08-08):

  • ProbeSpec.Mail (internal/founding/standup.go) has no production writer. probeSpec(d *Draft) only ever sets AcmeDNS; the comment above it says outright: "Mail is not a founding-time choice — it is provisioned later (ADR 0115) — so it is never part of the S10 spec; the flag exists so the same probe covers mail once a mail-provisioning surface drives it."
  • mailTargets (internal/reachability/prober.go:55) is reachable only via ProbeSpec.Mail == true, and the only place that sets it is prober_test.go — never product code.
  • The mail-provisioning surface the comment anticipated has since landed: #318 (member portal) and #321 (operator readiness gate) are both closed. But #321's gate model (per STATUS.md, ruled 2026-08-07) is provision.ServiceHealth's new optional state slug fed from internal/mailreadiness's own DNS-records + sending-preflight fold — a completely separate mechanism from founding.ProbeSpec/Reachability.Probe. Nothing in internal/mailreadiness imports or sets founding.ProbeSpec.Mail.

So the mail arc that was the anticipated writer chose a different gate (records + SMTP-preflight fold, not an outside-in port probe at S10) and never touched this flag. That's evidence for option (b) in the original report, but not conclusive — it's still a live question whether the shipped mailreadiness preflight actually exercises port reachability for 25/465/587/993 the way an outside-in Reachability.Probe would, or whether there's a gap this flag was meant to cover. That's a product/architecture call (does port-level reachability still want proving at S10, or is DNS+preflight sufficient per ADR 0115), not something to resolve unilaterally in triage.

What needs deciding:

  • (a) Confirm the mail arc's shipped gate model (#321) is considered sufficient proof of mail reachability, and delete Standup.Mail, ProbeSpec.Mail, and mailTargets (updating prober_test.go accordingly) — or
  • (b) Decide the S10 outside-in probe should still cover mail ports as a complementary check, and name/assign the writer that will set ProbeSpec.Mail from provisioning state.

Out of scope: re-litigating the #321 gate-model shape itself (already ruled 2026-08-07).

> *This was generated by AI during triage.* ## Triage: ready-for-human **Category:** enhancement **Summary:** Confirm whether `founding.Standup.Mail` / `ProbeSpec.Mail` should be wired to the shipped mail arc, or deleted as speculative generality. **Verification of the claim:** Confirmed against the current codebase (2026-08-08): - `ProbeSpec.Mail` (`internal/founding/standup.go`) has no production writer. `probeSpec(d *Draft)` only ever sets `AcmeDNS`; the comment above it says outright: *"Mail is not a founding-time choice — it is provisioned later (ADR 0115) — so it is never part of the S10 spec; the flag exists so the same probe covers mail once a mail-provisioning surface drives it."* - `mailTargets` (`internal/reachability/prober.go:55`) is reachable only via `ProbeSpec.Mail == true`, and the only place that sets it is `prober_test.go` — never product code. - The mail-provisioning surface the comment anticipated **has since landed**: #318 (member portal) and #321 (operator readiness gate) are both closed. But #321's gate model (per `STATUS.md`, ruled 2026-08-07) is `provision.ServiceHealth`'s new optional `state` slug fed from `internal/mailreadiness`'s own DNS-records + sending-preflight fold — a completely separate mechanism from `founding.ProbeSpec`/`Reachability.Probe`. Nothing in `internal/mailreadiness` imports or sets `founding.ProbeSpec.Mail`. So the mail arc that was the anticipated writer chose a different gate (records + SMTP-preflight fold, not an outside-in port probe at S10) and never touched this flag. That's evidence for option (b) in the original report, but **not conclusive** — it's still a live question whether the shipped mailreadiness preflight actually exercises port reachability for 25/465/587/993 the way an outside-in `Reachability.Probe` would, or whether there's a gap this flag was meant to cover. That's a product/architecture call (does port-level reachability still want proving at S10, or is DNS+preflight sufficient per ADR 0115), not something to resolve unilaterally in triage. **What needs deciding:** - (a) Confirm the mail arc's shipped gate model (#321) is considered sufficient proof of mail reachability, and delete `Standup.Mail`, `ProbeSpec.Mail`, and `mailTargets` (updating `prober_test.go` accordingly) — or - (b) Decide the S10 outside-in probe should still cover mail ports as a complementary check, and name/assign the writer that will set `ProbeSpec.Mail` from provisioning state. **Out of scope:** re-litigating the #321 gate-model shape itself (already ruled 2026-08-07).
Author
Owner

Ruled by Ben 2026-08-08 (decision sweep): delete. #321's gate model (one named state slug, ruled 2026-08-07) supersedes a boolean on founding state — remove Standup.Mail and the prober's mailTargets with it. → ready-for-agent.

Ruled by Ben 2026-08-08 (decision sweep): **delete.** #321's gate model (one named `state` slug, ruled 2026-08-07) supersedes a boolean on founding state — remove `Standup.Mail` and the prober's `mailTargets` with it. → `ready-for-agent`.
Author
Owner

Done per Ben's decision-sweep ruling (delete). #321's mail-readiness gate (records + SMTP-preflight fold, ruled 2026-08-07) supersedes a boolean on founding state, so the S10 outside-in probe no longer carries a mail dimension.

Removed (commit 0a0bbd6):

  • founding.ProbeSpec.Mail and its comments (internal/founding/standup.go).
  • the prober's roleMail, mailTargets, and the targetsFor if spec.Mail branch (internal/reachability/prober.go) — mail (25/465/587/993) is never probed at S10, even when closed.

internal/clan's gateway-grows-the-mail-ports machinery (ADR 0115) is a separate mechanism and is untouched.

Tests: TestProbe_MailPortsNeverProbed replaces the old provisioned-probe test (asserts the mail ports stay unprobed for both web-only and own-domain/acme-dns specs); standup_test.go's dead mail-spec assertion dropped. go build/vet/test, gofmt, and golangci-lint run ./... all green under nix develop .#go-ci.

Ride-along (commit 60368f4): the swarm-side merge 1914313 had landed pre-existing revive/errcheck debt that the pre-push gate's whole-tree golangci-lint run ./... refuses (red across fleetwire, founding/testing, sshkey, vm, and standup.go), blocking every Go push — cleared it mechanically (doc comments + _ = errcheck guards + unused-param renames + one detached package doc) so this slice could land. Behaviour untouched.

STATUS.md updated (header lead + two milestone-log entries). Landed on origin/main at 60368f4.

Done per Ben's decision-sweep ruling (**delete**). #321's mail-readiness gate (records + SMTP-preflight fold, ruled 2026-08-07) supersedes a boolean on founding state, so the S10 outside-in probe no longer carries a mail dimension. **Removed** (commit `0a0bbd6`): - `founding.ProbeSpec.Mail` and its comments (`internal/founding/standup.go`). - the prober's `roleMail`, `mailTargets`, and the `targetsFor` `if spec.Mail` branch (`internal/reachability/prober.go`) — mail (25/465/587/993) is never probed at S10, even when closed. `internal/clan`'s gateway-grows-the-mail-ports machinery (ADR 0115) is a separate mechanism and is untouched. **Tests:** `TestProbe_MailPortsNeverProbed` replaces the old provisioned-probe test (asserts the mail ports stay unprobed for both web-only and own-domain/acme-dns specs); `standup_test.go`'s dead mail-spec assertion dropped. `go build/vet/test`, `gofmt`, and `golangci-lint run ./...` all green under `nix develop .#go-ci`. **Ride-along** (commit `60368f4`): the swarm-side merge `1914313` had landed pre-existing revive/errcheck debt that the pre-push gate's whole-tree `golangci-lint run ./...` refuses (red across fleetwire, founding/testing, sshkey, vm, and standup.go), blocking every Go push — cleared it mechanically (doc comments + `_ =` errcheck guards + unused-param renames + one detached package doc) so this slice could land. Behaviour untouched. STATUS.md updated (header lead + two milestone-log entries). Landed on `origin/main` at `60368f4`.
ben closed this issue 2026-08-08 19:26:19 +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.

Dependencies

No dependencies set.

Reference
Matou/idss#342
No description provided.