catalogue: wire the six port health checks into production compose — review: registry-level CANNOT FAIL #1169

Closed
opened 2026-09-02 20:44:50 +00:00 by ben · 2 comments
Owner

Parent

Feature #1073 / spec #1116. Filed from the 2026-09-02 review (Failure-path axis, top finding).

What to build

All six new HealthChecks (archive, paperless, newsletters, whakapapa, video, surveys) are real-function in body but registered behind deps.<svc>URL != "" && !admin.Zero() guards that NO production code populates: main.go derives URLs only for the older ports; there is no derivedArchiveURL/derivedPaperlessURL/etc., no admin-credential source, no NewslettersMail source outside tests. On a real gateway every check rests forever — the flagship checks of six commits are dead code (the exact miss catalogue_wiring.go documents for #1123/#1124). Wire the six URL derivations, the admin credentials, and the mail-readiness fact into the production composition so each check runs when its service is deployed and rests only when it truly is not.

Acceptance criteria

  • main.go (production compose) derives all six service URLs + admin credentials + the newsletters mail fact from the same sources the older ports use
  • With a service deployed, its health check runs in production composition (provable at the compose seam, not only httptest)
  • With a service absent, the check rests (ADR 0100) — and a test distinguishes resting-because-absent from resting-because-unwired
  • Check-hardening from the review: archive refuse-leg also covers the public HTML surface (not only JSON:API); paperless pre-run cleanup failure is not silently swallowed (stale fixture must not green vacuously)

Blocked by

  • #1168 (deploy-routing — without it no service exists for a wired check to watch; wiring can land first but is only provable end-to-end after it)
## Parent Feature #1073 / spec #1116. Filed from the 2026-09-02 review (Failure-path axis, top finding). ## What to build All six new HealthChecks (archive, paperless, newsletters, whakapapa, video, surveys) are real-function in body but registered behind `deps.<svc>URL != "" && !admin.Zero()` guards that NO production code populates: main.go derives URLs only for the older ports; there is no derivedArchiveURL/derivedPaperlessURL/etc., no admin-credential source, no NewslettersMail source outside tests. On a real gateway every check rests forever — the flagship checks of six commits are dead code (the exact miss catalogue_wiring.go documents for #1123/#1124). Wire the six URL derivations, the admin credentials, and the mail-readiness fact into the production composition so each check runs when its service is deployed and rests only when it truly is not. ## Acceptance criteria - [ ] main.go (production compose) derives all six service URLs + admin credentials + the newsletters mail fact from the same sources the older ports use - [ ] With a service deployed, its health check runs in production composition (provable at the compose seam, not only httptest) - [ ] With a service absent, the check rests (ADR 0100) — and a test distinguishes resting-because-absent from resting-because-unwired - [ ] Check-hardening from the review: archive refuse-leg also covers the public HTML surface (not only JSON:API); paperless pre-run cleanup failure is not silently swallowed (stale fixture must not green vacuously) ## Blocked by - #1168 (deploy-routing — without it no service exists for a wired check to watch; wiring can land first but is only provable end-to-end after it)

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

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

close-report for #1169 — status success

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

envelope
{
  "issue": 1169,
  "status": "success",
  "commits": [
    "210e92f1e82a4095cf329dcfc542999dd7e9ba70"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/archivehealth.go",
    "control-plane/cmd/control-plane/main.go",
    "control-plane/cmd/control-plane/newslettershealth.go",
    "control-plane/cmd/control-plane/paperlesshealth.go",
    "control-plane/cmd/control-plane/provision_archive_health_test.go",
    "control-plane/cmd/control-plane/provision_newsletters_health_test.go",
    "control-plane/cmd/control-plane/provision_paperless_health_test.go",
    "control-plane/cmd/control-plane/provision_surveys_health_test.go",
    "control-plane/cmd/control-plane/provision_video_health_test.go",
    "control-plane/cmd/control-plane/provision_whakapapa_health_test.go",
    "control-plane/cmd/control-plane/six_port_health_wiring_test.go",
    "control-plane/cmd/control-plane/surveyshealth.go",
    "control-plane/cmd/control-plane/videohealth.go",
    "control-plane/cmd/control-plane/whakapapahealth.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go build ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go vet ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go test ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c golangci-lint run ./control-plane/...",
      "exit_code": 0
    },
    {
      "command": "gofmt -l control-plane/cmd/control-plane/*.go",
      "exit_code": 0
    }
  ],
  "criteria": {
    "main.go (production compose) derives all six service URLs + admin credentials + the newsletters mail fact from the same sources the older ports use": "main.go: derivedArchiveURL/derivedPaperlessURL/derivedNewslettersURL/derivedWhakapapaURL/derivedVideoURL/derivedSurveysURL (hostnames.Service under the community apex, ADR 0113, mirroring derivedMailURL); productionArchiveAdmin/…/productionSurveysAdmin (IDSS_<SVC>_ADMIN_USER + lazyAdminSecret file — the #863 per-call shape the mail/code/chat ports use); productionNewslettersMail over the SAME internal/mailreadiness adapter (newMailReadinessAdapter) the mail port's readiness gate uses; all folded into the composeDeps literal. Proven by TestSixPortHealthWiring_DerivesURLsUnderApex + TestSixPortHealthWiring_AdminCredentialsWireAndRest + TestSixPortHealthWiring_NewslettersMailFactLiveNotFrozen.",
    "With a service deployed, its health check runs in production composition (provable at the compose seam, not only httptest)": "TestSixPortHealthWiring_CheckRunsAtComposeSeam ('wired credential' subtest): compose() over the production-derived archive URL + productionArchiveAdmin, Deploy through c.pv drives the REGISTERED check — a leaking Mukurtu reds with the check's own sovereignty-breach failure (StateServiceFailed, not a httptest of the check in isolation).",
    "With a service absent, the check rests (ADR 0100) — and a test distinguishes resting-because-absent from resting-because-unwired": "resting-because-ABSENT: derived*URL('')=='' and production*Admin('').Zero() for all six (TestSixPortHealthWiring_DerivesURLsUnderApex empties + AdminCredentialsWireAndRest rested). resting-because-UNWIRED distinguished at the compose seam: TestSixPortHealthWiring_CheckRunsAtComposeSeam 'unwired credential' subtest — a URL-present-but-admin-Zero deploy registers NO check and fails with the honest 'no health check declared' (the leak unseen), vs the wired subtest whose failure names the check's own breach.",
    "Check-hardening from the review: archive refuse-leg also covers the public HTML surface (not only JSON:API); paperless pre-run cleanup failure is not silently swallowed (stale fixture must not green vacuously)": "archivehealth.go: archivePublicHTMLLeaks over archiveBrowsePath (/browse) added to the check body's refuse leg — a fixture rendered on the anonymous HTML browse page reds (TestArchiveHealth_PublicHTMLSurfaceLeakRefused: JSON:API refuses but HTML leaks → the check reds naming the HTML surface). paperlesshealth.go: paperlessEnsureClean PROVES a clean baseline before consume (a stale fixture that will not clear, or a search fault, reds) rather than the silently-swallowed best-effort pre-run delete (TestPaperlessHealth_StaleFixtureDoesNotGreenVacuously)."
  },
  "summary": "Wired the six catalogue ports' deploy-time health checks into production compose (main() derives URL + per-call admin credential + live newsletters mail fact), converted their Admin structs to lazy secret resolvers, and hardened the archive HTML-surface and paperless pre-run-cleanup review legs.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1169 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1169, "status": "success", "commits": [ "210e92f1e82a4095cf329dcfc542999dd7e9ba70" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/archivehealth.go", "control-plane/cmd/control-plane/main.go", "control-plane/cmd/control-plane/newslettershealth.go", "control-plane/cmd/control-plane/paperlesshealth.go", "control-plane/cmd/control-plane/provision_archive_health_test.go", "control-plane/cmd/control-plane/provision_newsletters_health_test.go", "control-plane/cmd/control-plane/provision_paperless_health_test.go", "control-plane/cmd/control-plane/provision_surveys_health_test.go", "control-plane/cmd/control-plane/provision_video_health_test.go", "control-plane/cmd/control-plane/provision_whakapapa_health_test.go", "control-plane/cmd/control-plane/six_port_health_wiring_test.go", "control-plane/cmd/control-plane/surveyshealth.go", "control-plane/cmd/control-plane/videohealth.go", "control-plane/cmd/control-plane/whakapapahealth.go" ], "tests": [ { "command": "nix develop .#go-ci -c go build ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go vet ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go test ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c golangci-lint run ./control-plane/...", "exit_code": 0 }, { "command": "gofmt -l control-plane/cmd/control-plane/*.go", "exit_code": 0 } ], "criteria": { "main.go (production compose) derives all six service URLs + admin credentials + the newsletters mail fact from the same sources the older ports use": "main.go: derivedArchiveURL/derivedPaperlessURL/derivedNewslettersURL/derivedWhakapapaURL/derivedVideoURL/derivedSurveysURL (hostnames.Service under the community apex, ADR 0113, mirroring derivedMailURL); productionArchiveAdmin/…/productionSurveysAdmin (IDSS_<SVC>_ADMIN_USER + lazyAdminSecret file — the #863 per-call shape the mail/code/chat ports use); productionNewslettersMail over the SAME internal/mailreadiness adapter (newMailReadinessAdapter) the mail port's readiness gate uses; all folded into the composeDeps literal. Proven by TestSixPortHealthWiring_DerivesURLsUnderApex + TestSixPortHealthWiring_AdminCredentialsWireAndRest + TestSixPortHealthWiring_NewslettersMailFactLiveNotFrozen.", "With a service deployed, its health check runs in production composition (provable at the compose seam, not only httptest)": "TestSixPortHealthWiring_CheckRunsAtComposeSeam ('wired credential' subtest): compose() over the production-derived archive URL + productionArchiveAdmin, Deploy through c.pv drives the REGISTERED check — a leaking Mukurtu reds with the check's own sovereignty-breach failure (StateServiceFailed, not a httptest of the check in isolation).", "With a service absent, the check rests (ADR 0100) — and a test distinguishes resting-because-absent from resting-because-unwired": "resting-because-ABSENT: derived*URL('')=='' and production*Admin('').Zero() for all six (TestSixPortHealthWiring_DerivesURLsUnderApex empties + AdminCredentialsWireAndRest rested). resting-because-UNWIRED distinguished at the compose seam: TestSixPortHealthWiring_CheckRunsAtComposeSeam 'unwired credential' subtest — a URL-present-but-admin-Zero deploy registers NO check and fails with the honest 'no health check declared' (the leak unseen), vs the wired subtest whose failure names the check's own breach.", "Check-hardening from the review: archive refuse-leg also covers the public HTML surface (not only JSON:API); paperless pre-run cleanup failure is not silently swallowed (stale fixture must not green vacuously)": "archivehealth.go: archivePublicHTMLLeaks over archiveBrowsePath (/browse) added to the check body's refuse leg — a fixture rendered on the anonymous HTML browse page reds (TestArchiveHealth_PublicHTMLSurfaceLeakRefused: JSON:API refuses but HTML leaks → the check reds naming the HTML surface). paperlesshealth.go: paperlessEnsureClean PROVES a clean baseline before consume (a stale fixture that will not clear, or a search fault, reds) rather than the silently-swallowed best-effort pre-run delete (TestPaperlessHealth_StaleFixtureDoesNotGreenVacuously)." }, "summary": "Wired the six catalogue ports' deploy-time health checks into production compose (main() derives URL + per-call admin credential + live newsletters mail fact), converted their Admin structs to lazy secret resolvers, and hardened the archive HTML-surface and paperless pre-run-cleanup review legs.", "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#1169
No description provided.