catalogue read 404s on a resting gateway, blanking the Services catalogue and the Backups coverage map #1437

Closed
opened 2026-09-12 15:03:52 +00:00 by ben · 2 comments
Owner

Parent

Control-panel UI pass (Ben, 2026-09-10 → 09-12, commit 078cd5b3 on founding-ui-two-colour-rail-ceremony, merged to main 2026-09-12). Filed from the end-of-pass review (#1399 sweep): every place the shipped UI shows or implies something the product does not do yet. Browser harness: cd dashboard && pnpm harness → http://localhost:5198/panel.html?scenario=steady&tab=<tab>.

Symptom

catalogueRead is composed only in whole_composition.go:766; catalogue_wiring.go:36-38 skips WithCatalogue when nil, so on a resting (pre-whole) gateway GET /catalogue 404s. Two surfaces then fail:

  • the Services tab (its catalogue is the tab now) shows the failed-read state;
  • the Backups tab reads the catalogue to decide whether backup-copy is running and hide the coverage map until it is (Ben, 2026-09-12; dashboard/src/lib/backups.ts backupServiceInstalled, BackupsSurface.vue readInstalled). The 2026-09-12 review fix maps a throw AND a degraded entry to null (= unknown, table shown), so the map no longer hides on a 404 — but the alert box then cannot say whether backups exist.

Also: gating on the backup-copy slug blanks the map for a fleet whose only copies are OFFSITE via another mechanism (#1388's design review should confirm the intended gate).

Ruling — two-way, ruled by agent under ADR 0174 (veto anytime)

The resting composition composes the catalogue read too, fleet-less: every installable reads running: false, running_where: "not running yet", candidates as usual. A resting gateway is exactly the fleet that most needs to see the catalogue.

What to do

  • resting_composition.go: compose catalogueRead with an empty fleet view; catalogue_wiring.go no longer skips.
  • Go test: resting → GET /catalogue 200 with nothing running.
  • Dashboard: no change beyond the review fix already on main (a 404 from an older gateway still reads as unknown).
  • #1388: add a line that the Backups gate is "backup-copy running", to be confirmed or changed there.

Acceptance criteria

  • Given a resting gateway, when the Services tab opens, then the catalogue renders with every service not running yet, never the failed-read state.
  • Given the same gateway, when the Backups tab opens, then the alert box reads BACKUPS ARE NOT SET UP with the set-up act, and the coverage map is hidden (installed === false from a real read).
## Parent Control-panel UI pass (Ben, 2026-09-10 → 09-12, commit `078cd5b3` on `founding-ui-two-colour-rail-ceremony`, merged to main 2026-09-12). Filed from the end-of-pass review (#1399 sweep): every place the shipped UI shows or implies something the product does not do yet. Browser harness: `cd dashboard && pnpm harness` → `http://localhost:5198/panel.html?scenario=steady&tab=<tab>`. ## Symptom `catalogueRead` is composed only in `whole_composition.go:766`; `catalogue_wiring.go:36-38` skips `WithCatalogue` when nil, so on a **resting** (pre-whole) gateway `GET /catalogue` 404s. Two surfaces then fail: - the Services tab (its catalogue is the tab now) shows the failed-read state; - the Backups tab reads the catalogue to decide whether `backup-copy` is running and hide the coverage map until it is (Ben, 2026-09-12; `dashboard/src/lib/backups.ts backupServiceInstalled`, `BackupsSurface.vue readInstalled`). The 2026-09-12 review fix maps a throw AND a degraded entry to `null` (= unknown, table shown), so the map no longer hides on a 404 — but the alert box then cannot say whether backups exist. Also: gating on the `backup-copy` slug blanks the map for a fleet whose only copies are OFFSITE via another mechanism (#1388's design review should confirm the intended gate). ## Ruling — two-way, ruled by agent under ADR 0174 (veto anytime) The resting composition composes the catalogue read too, fleet-less: every installable reads `running: false`, `running_where: "not running yet"`, candidates as usual. A resting gateway is exactly the fleet that most needs to see the catalogue. ## What to do - `resting_composition.go`: compose `catalogueRead` with an empty fleet view; `catalogue_wiring.go` no longer skips. - Go test: resting → `GET /catalogue` 200 with nothing running. - Dashboard: no change beyond the review fix already on main (a 404 from an older gateway still reads as unknown). - #1388: add a line that the Backups gate is "backup-copy running", to be confirmed or changed there. ## Acceptance criteria - [ ] Given a resting gateway, when the Services tab opens, then the catalogue renders with every service not running yet, never the failed-read state. - [ ] Given the same gateway, when the Backups tab opens, then the alert box reads BACKUPS ARE NOT SET UP with the set-up act, and the coverage map is hidden (installed === false from a real read).

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

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

close-report for #1437 — status success

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

envelope
{
  "issue": 1437,
  "status": "success",
  "commits": [
    "62e1ba475d65eafef9256b5a9bd3c308b176d0da"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/catalogue_wiring_test.go",
    "control-plane/cmd/control-plane/resting_composition.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go test ./control-plane/cmd/control-plane/ -run Catalogue",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go test ./control-plane/cmd/control-plane/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go vet ./control-plane/cmd/control-plane/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Given a resting gateway, when the Services tab opens, then the catalogue renders with every service not running yet, never the failed-read state": "resting_composition.go composeResting now composes catalogueRead = NewCatalogueRead(restingProvisionFleet{}, restingRequestLedger{}), so catalogueSurfaceOptions mounts WithCatalogue and GET /api/v1/catalogue answers 200; TestCatalogueReadServesAtRest asserts 200 (never 404) with every installable Running=false / running_where 'not running yet' and both tiers dressed.",
    "Given the same gateway, when the Backups tab opens, then the alert box reads BACKUPS ARE NOT SET UP with the set-up act, and the coverage map is hidden (installed === false from a real read)": "The Backups tab (dashboard/src/lib/backups.ts backupServiceInstalled) now gets a real 200 read in which backup-copy (catalogue.Services installable) reads running:false -> installed === false, so the map hides and the alert states not-set-up. No dashboard change per the ticket (review fix already on main); backend read no longer 404s, proven by TestCatalogueReadServesAtRest (backup-copy is in Services())."
  },
  "summary": "The resting composition composes the fleet-less catalogue READ so a pre-whole gateway serves GET /catalogue 200 (every service not running yet) instead of 404, unblanking the Services catalogue and the Backups coverage-map gate.",
  "blockers": []
}
**close-report** for #1437 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1437, "status": "success", "commits": [ "62e1ba475d65eafef9256b5a9bd3c308b176d0da" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/catalogue_wiring_test.go", "control-plane/cmd/control-plane/resting_composition.go" ], "tests": [ { "command": "nix develop .#go-ci -c go test ./control-plane/cmd/control-plane/ -run Catalogue", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go test ./control-plane/cmd/control-plane/", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go vet ./control-plane/cmd/control-plane/", "exit_code": 0 } ], "criteria": { "Given a resting gateway, when the Services tab opens, then the catalogue renders with every service not running yet, never the failed-read state": "resting_composition.go composeResting now composes catalogueRead = NewCatalogueRead(restingProvisionFleet{}, restingRequestLedger{}), so catalogueSurfaceOptions mounts WithCatalogue and GET /api/v1/catalogue answers 200; TestCatalogueReadServesAtRest asserts 200 (never 404) with every installable Running=false / running_where 'not running yet' and both tiers dressed.", "Given the same gateway, when the Backups tab opens, then the alert box reads BACKUPS ARE NOT SET UP with the set-up act, and the coverage map is hidden (installed === false from a real read)": "The Backups tab (dashboard/src/lib/backups.ts backupServiceInstalled) now gets a real 200 read in which backup-copy (catalogue.Services installable) reads running:false -> installed === false, so the map hides and the alert states not-set-up. No dashboard change per the ticket (review fix already on main); backend read no longer 404s, proven by TestCatalogueReadServesAtRest (backup-copy is in Services())." }, "summary": "The resting composition composes the fleet-less catalogue READ so a pre-whole gateway serves GET /catalogue 200 (every service not running yet) instead of 404, unblanking the Services catalogue and the Backups coverage-map gate.", "blockers": [] } ``` </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.

Dependencies

No dependencies set.

Reference
Matou/idss#1437
No description provided.