rehearsal #527 follow-up: finish the health-probe exempt sweep (mail/static-sites/meetings) + a class pin so a gated health path reds at build time #528

Closed
opened 2026-08-14 15:34:02 +00:00 by ben · 3 comments
Owner

Follow-up to #527 (closed success by 0bcaa29, which fixed files /status.php and code /api/healthz).

What's still open

Ben's diagnosis on #527 asked for a same-class sweep so the public-door health-probe red "does not repeat one service at a time as the catalogue co-hosts", naming /healthz for mail + static-sites, the videobridge (meetings) health port, Forgejo (code, done), and docs-editing (already exempt). The landed fix stopped at files + code (chat /api/v4/system/ping and docs-editing /hosting/capabilities were already exempt). Left undone on origin/main:

  • mail — health probe GET https://mail.<apex>/healthz (mailHealthCheck); mail.<apex> renders a gated front-door route (helper role still gets a ruled host), so /healthz needs a MailExemptPaths entry.
  • static-sites — health probe /healthz (staticSitesHealthCheck); needs StaticSitesExemptPaths.
  • meetings — health probe /about/health (meetingsHealthCheck, exposed on the ruled host over the mesh); needs MeetingsExemptPaths.

Each is the product's anonymous health/monitoring endpoint (no user data); the check keeps probing the REAL door (no loopback shortcut — door fidelity is the feature, ADR 0062).

The durable guard (the real value)

Add one class pin — TestServiceHealthPathsAreExemptFromTheGate in internal/clan — that asserts every service's deploy-time health-probe path (files /status.php, code /api/healthz, chat /api/v4/system/ping, docs-editing /hosting/capabilities, mail/static-sites /healthz, meetings /about/health) is covered by its port's exempt set under Caddy path-matcher semantics. This forces every new service to exempt its health path or red loud at build time, rather than one live drive at a time — which is exactly the "does not repeat one at a time" outcome Ben's ruling wanted. (A worked implementation exists — the health-exempt vars + this class test + a exemptCovers helper — from the parallel run that raced #527; happy to point at it.)

Scope note / why ready-for-human

mail/static-sites/meetings are currently gated OUT of selection (P4-S2 provisionCannotDeploy) and have no public-route exempt wiring yet, so the red cannot actually fire until their front-door contract is built. The judgment call: do this preventive sweep now (per Ben's #527 ruling), or fold each service's health-exempt into its own front-door-contract ticket when routing lands? A human should rule before an agent adds the exported surface.

Found while working #527 (the fix landed via a parallel host; this is the remainder of Ben's stated sweep).

Follow-up to #527 (closed `success` by 0bcaa29, which fixed **files** `/status.php` and **code** `/api/healthz`). ## What's still open Ben's diagnosis on #527 asked for a **same-class sweep** so the public-door health-probe red "does not repeat one service at a time as the catalogue co-hosts", naming `/healthz` for **mail + static-sites**, the **videobridge** (`meetings`) health port, Forgejo (`code`, done), and docs-editing (already exempt). The landed fix stopped at files + code (chat `/api/v4/system/ping` and docs-editing `/hosting/capabilities` were already exempt). Left undone on `origin/main`: - **mail** — health probe `GET https://mail.<apex>/healthz` (`mailHealthCheck`); `mail.<apex>` renders a gated front-door route (helper role still gets a ruled host), so `/healthz` needs a `MailExemptPaths` entry. - **static-sites** — health probe `/healthz` (`staticSitesHealthCheck`); needs `StaticSitesExemptPaths`. - **meetings** — health probe `/about/health` (`meetingsHealthCheck`, exposed on the ruled host over the mesh); needs `MeetingsExemptPaths`. Each is the product's anonymous health/monitoring endpoint (no user data); the check keeps probing the REAL door (no loopback shortcut — door fidelity is the feature, ADR 0062). ## The durable guard (the real value) Add one class pin — `TestServiceHealthPathsAreExemptFromTheGate` in `internal/clan` — that asserts **every** service's deploy-time health-probe path (files `/status.php`, code `/api/healthz`, chat `/api/v4/system/ping`, docs-editing `/hosting/capabilities`, mail/static-sites `/healthz`, meetings `/about/health`) is covered by its port's exempt set under Caddy `path`-matcher semantics. This forces every new service to exempt its health path or red loud at build time, rather than one live drive at a time — which is exactly the "does not repeat one at a time" outcome Ben's ruling wanted. (A worked implementation exists — the health-exempt vars + this class test + a `exemptCovers` helper — from the parallel run that raced #527; happy to point at it.) ## Scope note / why `ready-for-human` mail/static-sites/meetings are currently gated OUT of selection (P4-S2 `provisionCannotDeploy`) and have no public-route exempt wiring yet, so the red cannot actually fire until their front-door contract is built. The judgment call: do this preventive sweep now (per Ben's #527 ruling), or fold each service's health-exempt into its own front-door-contract ticket when routing lands? A human should rule before an agent adds the exported surface. Found while working #527 (the fix landed via a parallel host; this is the remainder of Ben's stated sweep).
Author
Owner

Relabelled ready-for-agent under ADR 0174 (b183490): exempt-path entries + a class-pin test in internal/clan — pure repo code work with no human step; the sweep scope is already fully enumerated in the body.

Relabelled `ready-for-agent` under ADR 0174 (`b183490`): exempt-path entries + a class-pin test in `internal/clan` — pure repo code work with no human step; the sweep scope is already fully enumerated in the body.
Author
Owner

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

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

close-report for #528 — status success

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

envelope
{
  "issue": 528,
  "status": "success",
  "commits": [
    "eaa635cd2a69e421624e7bfe1691bbb9f90cd9d1"
  ],
  "changed_files": [
    "STATUS.md",
    "docs/GOTCHAS.md",
    "internal/clan/health_exempt_test.go",
    "internal/clan/mail.go",
    "internal/clan/meetings.go",
    "internal/clan/staticsites.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/clan/ -run 'TestServiceHealthPathsAreExemptFromTheGate|TestCaddyPathGlob'",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/clan/ ./control-plane/...",
      "exit_code": 0
    },
    {
      "command": "go build ./...",
      "exit_code": 0
    },
    {
      "command": "gofmt -l internal/clan/health_exempt_test.go internal/clan/mail.go internal/clan/staticsites.go internal/clan/meetings.go",
      "exit_code": 0
    }
  ],
  "criteria": {
    "mail /healthz exempt": "internal/clan/mail.go — MailExemptPaths = [\"/healthz\"] (Stalwart's anonymous health endpoint, mailHealthCheck's probe)",
    "static-sites /healthz exempt": "internal/clan/staticsites.go — StaticSitesExemptPaths = [\"/healthz\"] (site-manager's health endpoint, staticSitesHealthCheck's probe)",
    "meetings /about/health exempt": "internal/clan/meetings.go — MeetingsExemptPaths = [\"/about/health\"] (JVB's health endpoint, meetingsHealthCheck's probe)",
    "class pin reds a gated health path at build time": "internal/clan/health_exempt_test.go — TestServiceHealthPathsAreExemptFromTheGate asserts every service's deploy-time health-probe path (files /status.php, code /api/healthz, chat /api/v4/system/ping, docs-editing /hosting/capabilities, mail/static-sites /healthz, meetings /about/health) is covered by its port's exempt set under Caddy path-matcher semantics (exemptCovers/caddyPathGlob); TestCaddyPathGlob pins the matcher so the guard cannot go permissive",
    "checks keep probing the REAL door (no loopback shortcut)": "no health-check code changed — servicehealth.go probes stay through the public door (ADR 0062); only the port exempt sets grew",
    "GOTCHAS/STATUS recorded": "docs/GOTCHAS.md #30 Rule updated with the sweep + durable class pin; STATUS.md header + milestone-log #528 entry"
  },
  "summary": "Finished #527's public-door health-probe exempt sweep (mail/static-sites/meetings) and added a class pin so any service whose health path is not exempt reds at build time.",
  "blockers": []
}
**close-report** for #528 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; closing. <details><summary>envelope</summary> ```json { "issue": 528, "status": "success", "commits": [ "eaa635cd2a69e421624e7bfe1691bbb9f90cd9d1" ], "changed_files": [ "STATUS.md", "docs/GOTCHAS.md", "internal/clan/health_exempt_test.go", "internal/clan/mail.go", "internal/clan/meetings.go", "internal/clan/staticsites.go" ], "tests": [ { "command": "go test ./internal/clan/ -run 'TestServiceHealthPathsAreExemptFromTheGate|TestCaddyPathGlob'", "exit_code": 0 }, { "command": "go test ./internal/clan/ ./control-plane/...", "exit_code": 0 }, { "command": "go build ./...", "exit_code": 0 }, { "command": "gofmt -l internal/clan/health_exempt_test.go internal/clan/mail.go internal/clan/staticsites.go internal/clan/meetings.go", "exit_code": 0 } ], "criteria": { "mail /healthz exempt": "internal/clan/mail.go — MailExemptPaths = [\"/healthz\"] (Stalwart's anonymous health endpoint, mailHealthCheck's probe)", "static-sites /healthz exempt": "internal/clan/staticsites.go — StaticSitesExemptPaths = [\"/healthz\"] (site-manager's health endpoint, staticSitesHealthCheck's probe)", "meetings /about/health exempt": "internal/clan/meetings.go — MeetingsExemptPaths = [\"/about/health\"] (JVB's health endpoint, meetingsHealthCheck's probe)", "class pin reds a gated health path at build time": "internal/clan/health_exempt_test.go — TestServiceHealthPathsAreExemptFromTheGate asserts every service's deploy-time health-probe path (files /status.php, code /api/healthz, chat /api/v4/system/ping, docs-editing /hosting/capabilities, mail/static-sites /healthz, meetings /about/health) is covered by its port's exempt set under Caddy path-matcher semantics (exemptCovers/caddyPathGlob); TestCaddyPathGlob pins the matcher so the guard cannot go permissive", "checks keep probing the REAL door (no loopback shortcut)": "no health-check code changed — servicehealth.go probes stay through the public door (ADR 0062); only the port exempt sets grew", "GOTCHAS/STATUS recorded": "docs/GOTCHAS.md #30 Rule updated with the sweep + durable class pin; STATUS.md header + milestone-log #528 entry" }, "summary": "Finished #527's public-door health-probe exempt sweep (mail/static-sites/meetings) and added a class pin so any service whose health path is not exempt reds at build time.", "blockers": [] } ``` </details>
ben closed this issue 2026-08-14 16:42:43 +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#528
No description provided.