catalogue port: Newsletters (Listmonk) — pānui from your own address #1147

Closed
opened 2026-09-02 06:25:48 +00:00 by ben · 2 comments
Owner

Parent

Feature #1073; Ben's promotion ruling 2026-09-02, recorded in
docs/research/2026-09-01-catalogue-candidate-seed-list.md (the port-queue
table — read this ticket's service section there first; per-claim citations).

What to build

Service: Newsletters · runs Listmonk · category Reach people. services.listmonk exists — LOW cost, single Go binary + Postgres. Sending rides the community's mail readiness: the port must surface honestly when mail isn't ready (the ADR mail-readiness legs), never silently queue into a spam folder.

An ADR 0062 catalogue port, shipped through the update channel, touching no
provisioning code: (1) the declarative NixOS unit + secrets via the clan
seam's AttachService; (2) the out-of-band reconciler for post-start
imperative provisioning (the Garage pattern) where the service needs one;
(3) the service's OWN HealthCheck proving real function (safe to re-run —
P4-S5x retry; Summary in operator vocabulary, never a stack trace) — plus
the catalogue Service entry: slug, name, MEASURED floor and steady-state
memory (never guessed — ADR 0030 discipline), roles (helper), access facts,
Product + ProductURL, and the DDR 0220 display facts (category, one-line
description, glyph; logo asset if curated).

Acceptance criteria

  • Deploys onto a helper via the existing P4 path with every part declared by the port itself — no provisioning/monitoring code change
  • HealthCheck proves the service does its actual job (named below), is re-run-safe, and its Summary reads in domain vocabulary
  • Catalogue entry carries measured floor + steady memory and the DDR 0220 display facts; the P4 available list gates on them correctly
  • Monitoring watches the same declared check steady-state (ADR 0062 — defined once)
  • Health check proves a test campaign renders and the SMTP path to the community's mail service accepts it (or the check names the mail-readiness red leg)
  • Subscriber data on the declared dataset

Blocked by

  • #1119 (catalogue display facts + Heritage taxonomy — the Service fields this entry fills)
## Parent Feature #1073; Ben's promotion ruling 2026-09-02, recorded in `docs/research/2026-09-01-catalogue-candidate-seed-list.md` (the port-queue table — read this ticket's service section there first; per-claim citations). ## What to build **Service: Newsletters · runs Listmonk · category Reach people.** `services.listmonk` exists — LOW cost, single Go binary + Postgres. Sending rides the community's mail readiness: the port must surface honestly when mail isn't ready (the ADR mail-readiness legs), never silently queue into a spam folder. An ADR 0062 catalogue port, shipped through the update channel, touching no provisioning code: (1) the declarative NixOS unit + secrets via the clan seam's AttachService; (2) the out-of-band reconciler for post-start imperative provisioning (the Garage pattern) where the service needs one; (3) the service's OWN HealthCheck proving real function (safe to re-run — P4-S5x retry; Summary in operator vocabulary, never a stack trace) — plus the catalogue Service entry: slug, name, MEASURED floor and steady-state memory (never guessed — ADR 0030 discipline), roles (helper), access facts, Product + ProductURL, and the DDR 0220 display facts (category, one-line description, glyph; logo asset if curated). ## Acceptance criteria - [ ] Deploys onto a helper via the existing P4 path with every part declared by the port itself — no provisioning/monitoring code change - [ ] HealthCheck proves the service does its actual job (named below), is re-run-safe, and its Summary reads in domain vocabulary - [ ] Catalogue entry carries measured floor + steady memory and the DDR 0220 display facts; the P4 available list gates on them correctly - [ ] Monitoring watches the same declared check steady-state (ADR 0062 — defined once) - [ ] Health check proves a test campaign renders and the SMTP path to the community's mail service accepts it (or the check names the mail-readiness red leg) - [ ] Subscriber data on the declared dataset ## Blocked by - #1119 (catalogue display facts + Heritage taxonomy — the Service fields this entry fills)

swarm-claim host=elitebook-distributed-server-03 run=16327
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=16327 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1147 — status success

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

envelope
{
  "issue": 1147,
  "status": "success",
  "commits": [
    "a7e5e1b8"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/compose.go",
    "control-plane/cmd/control-plane/newslettershealth.go",
    "control-plane/cmd/control-plane/provision_newsletters_health_test.go",
    "control-plane/cmd/control-plane/whole_composition.go",
    "internal/catalogue/catalogue.go",
    "internal/clan/deployedservices.go",
    "internal/clan/newsletters.go",
    "internal/clan/newsletters_attach.go",
    "internal/clan/newsletters_attach_test.go",
    "internal/clan/newsletters_test.go",
    "internal/provision/deploy.go"
  ],
  "tests": [
    {
      "command": "go test ./control-plane/... ./internal/...",
      "exit_code": 0
    },
    {
      "command": "go vet ./... && go build -tags dev ./...",
      "exit_code": 0
    },
    {
      "command": "golangci-lint run ./... (main module + broker)",
      "exit_code": 0
    },
    {
      "command": "gofmt -l (touched files)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Deploys onto a helper via the existing P4 path with every part declared by the port itself — no provisioning/monitoring code change": "internal/clan/newsletters.go renders newsletters.nix (services.listmonk + secrets + declared dataset + firewall + meshBound) and newsletters_attach.go writes it node-only via the #218 authority; deployedservices.go maps the slug to the module; the only provision touch is the required #428 render-shipping classification in deploy.go (renderShippingService), matching the video/surveys/whakapapa precedent — no provisioning/monitoring logic changed. Attach seam proven by internal/clan/newsletters_attach_test.go.",
    "HealthCheck proves the service does its actual job (named below), is re-run-safe, and its Summary reads in domain vocabulary": "control-plane/cmd/control-plane/newslettershealth.go drives Listmonk's render-a-pānui-and-hand-it-to-the-post loop; re-run-safe via newslettersDeleteFixtures (reserved fixture names, cleared before and deferred after); Summary + errors in operator vocabulary (no stack trace). Proven by TestComposeProvision_NewslettersActivatesOnlyOnARealRenderAndSend.",
    "Catalogue entry carries measured floor + steady memory and the DDR 0220 display facts; the P4 available list gates on them correctly": "internal/catalogue/catalogue.go promotes newsletters from candidate to a deployed Service (floor 1·2GB·20GB, steady 512MB provisional under ADR 0030, Category Reach people, Description, Glyph N, Product Listmonk/ProductURL); candidate entry removed (one namespace). Green: TestServices_CarryDisplayFacts, TestServices_CarryProductDisplayFacts, TestCatalogue_OneSlugNamespace, TestServices_DescriptionsUseDomainVocabulary.",
    "Monitoring watches the same declared check steady-state (ADR 0062 — defined once)": "whole_composition.go registers newslettersHealthCheck once in the shared ports registry keyed by newslettersServiceSlug, so provisioning's deploy gate and monitoring re-run the SAME check (ADR 0062 defined-once).",
    "Health check proves a test campaign renders and the SMTP path to the community's mail service accepts it (or the check names the mail-readiness red leg)": "newslettersRenders confirms the campaign body survives into the rendered preview; newslettersSendPath either drives a test send whose SMTP relay to the community's mail service must accept it (200), or — when NewslettersMail.Sending is false — NAMES the mail-readiness red leg (ADR 0115), never a silent spam-folder. Both branches proven by the health test's three subtests (activates / refused relay withholds / red leg named in Detail).",
    "Subscriber data on the declared dataset": "newsletters.nix declares local PostgreSQL (database.createLocally) + the data dir as the declared Newsletters dataset (ADR 0080); newslettersEnsureSubscriber keeps a fixture subscriber on it, asserted by the 'a real render-and-send activates' subtest and TestRenderNewsletters_BackingStoreAndDataset."
  },
  "summary": "Shipped the Newsletters (Listmonk) ADR 0062 catalogue port: declarative services.listmonk render, an out-of-band SMTP reconciler that rides the community's mail readiness, and a health check proving the render-and-send loop (or naming the mail-readiness red leg).",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1147 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1147, "status": "success", "commits": [ "a7e5e1b8" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/compose.go", "control-plane/cmd/control-plane/newslettershealth.go", "control-plane/cmd/control-plane/provision_newsletters_health_test.go", "control-plane/cmd/control-plane/whole_composition.go", "internal/catalogue/catalogue.go", "internal/clan/deployedservices.go", "internal/clan/newsletters.go", "internal/clan/newsletters_attach.go", "internal/clan/newsletters_attach_test.go", "internal/clan/newsletters_test.go", "internal/provision/deploy.go" ], "tests": [ { "command": "go test ./control-plane/... ./internal/...", "exit_code": 0 }, { "command": "go vet ./... && go build -tags dev ./...", "exit_code": 0 }, { "command": "golangci-lint run ./... (main module + broker)", "exit_code": 0 }, { "command": "gofmt -l (touched files)", "exit_code": 0 } ], "criteria": { "Deploys onto a helper via the existing P4 path with every part declared by the port itself — no provisioning/monitoring code change": "internal/clan/newsletters.go renders newsletters.nix (services.listmonk + secrets + declared dataset + firewall + meshBound) and newsletters_attach.go writes it node-only via the #218 authority; deployedservices.go maps the slug to the module; the only provision touch is the required #428 render-shipping classification in deploy.go (renderShippingService), matching the video/surveys/whakapapa precedent — no provisioning/monitoring logic changed. Attach seam proven by internal/clan/newsletters_attach_test.go.", "HealthCheck proves the service does its actual job (named below), is re-run-safe, and its Summary reads in domain vocabulary": "control-plane/cmd/control-plane/newslettershealth.go drives Listmonk's render-a-pānui-and-hand-it-to-the-post loop; re-run-safe via newslettersDeleteFixtures (reserved fixture names, cleared before and deferred after); Summary + errors in operator vocabulary (no stack trace). Proven by TestComposeProvision_NewslettersActivatesOnlyOnARealRenderAndSend.", "Catalogue entry carries measured floor + steady memory and the DDR 0220 display facts; the P4 available list gates on them correctly": "internal/catalogue/catalogue.go promotes newsletters from candidate to a deployed Service (floor 1·2GB·20GB, steady 512MB provisional under ADR 0030, Category Reach people, Description, Glyph N, Product Listmonk/ProductURL); candidate entry removed (one namespace). Green: TestServices_CarryDisplayFacts, TestServices_CarryProductDisplayFacts, TestCatalogue_OneSlugNamespace, TestServices_DescriptionsUseDomainVocabulary.", "Monitoring watches the same declared check steady-state (ADR 0062 — defined once)": "whole_composition.go registers newslettersHealthCheck once in the shared ports registry keyed by newslettersServiceSlug, so provisioning's deploy gate and monitoring re-run the SAME check (ADR 0062 defined-once).", "Health check proves a test campaign renders and the SMTP path to the community's mail service accepts it (or the check names the mail-readiness red leg)": "newslettersRenders confirms the campaign body survives into the rendered preview; newslettersSendPath either drives a test send whose SMTP relay to the community's mail service must accept it (200), or — when NewslettersMail.Sending is false — NAMES the mail-readiness red leg (ADR 0115), never a silent spam-folder. Both branches proven by the health test's three subtests (activates / refused relay withholds / red leg named in Detail).", "Subscriber data on the declared dataset": "newsletters.nix declares local PostgreSQL (database.createLocally) + the data dir as the declared Newsletters dataset (ADR 0080); newslettersEnsureSubscriber keeps a fixture subscriber on it, asserted by the 'a real render-and-send activates' subtest and TestRenderNewsletters_BackingStoreAndDataset." }, "summary": "Shipped the Newsletters (Listmonk) ADR 0062 catalogue port: declarative services.listmonk render, an out-of-band SMTP reconciler that rides the community's mail readiness, and a health check proving the render-and-send loop (or naming the mail-readiness red leg).", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
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#1147
No description provided.