catalogue: deploy-routing — the shipped ports become truly installable (review: provisionCannotDeploy gates all six) #1168

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

Parent

Feature #1073 / spec #1116. Filed from the 2026-09-02 four-axis code review of the catalogue arc (Spec axis, worst finding).

What to build

The six shipped catalogue ports (community-archive #1145, document-archive #1146, newsletters #1147, whakapapa #1148, video #1149, surveys #1150) render and carry health checks but are gated OUT of selection via renderShippingService / provisionCannotDeploy — every port ticket's first AC ("deploys onto a helper via the existing P4 path") is unmet, and the "installable today" promise is not yet true on a real fleet. Build the deploy routing that takes each of these services through the existing P4 select→impact→deploy path end to end, exactly as the pre-arc services deploy. The same routing must serve #1151 (Radicale, Files-gated) and #1166 (Grist) when they land — deploy-routing is service-agnostic, per ADR 0062 a port touches no provisioning code.

Acceptance criteria

  • Each of the six services can be ticked on P4-S2, reviewed, and deployed onto a helper via the existing path — no provisionCannotDeploy remnant
  • Deploy failure/health-fail behaviour matches the pre-arc services (S4 retry, S5x standing fault)
  • The routing is service-agnostic: a future port (Radicale #1151, Grist #1166) needs no routing change
  • The e2e drive (or a composition test at the same seam) proves one of the six deploying end to end

Blocked by

None — can start immediately.

## Parent Feature #1073 / spec #1116. Filed from the 2026-09-02 four-axis code review of the catalogue arc (Spec axis, worst finding). ## What to build The six shipped catalogue ports (community-archive #1145, document-archive #1146, newsletters #1147, whakapapa #1148, video #1149, surveys #1150) render and carry health checks but are gated OUT of selection via renderShippingService / provisionCannotDeploy — every port ticket's first AC ("deploys onto a helper via the existing P4 path") is unmet, and the "installable today" promise is not yet true on a real fleet. Build the deploy routing that takes each of these services through the existing P4 select→impact→deploy path end to end, exactly as the pre-arc services deploy. The same routing must serve #1151 (Radicale, Files-gated) and #1166 (Grist) when they land — deploy-routing is service-agnostic, per ADR 0062 a port touches no provisioning code. ## Acceptance criteria - [ ] Each of the six services can be ticked on P4-S2, reviewed, and deployed onto a helper via the existing path — no provisionCannotDeploy remnant - [ ] Deploy failure/health-fail behaviour matches the pre-arc services (S4 retry, S5x standing fault) - [ ] The routing is service-agnostic: a future port (Radicale #1151, Grist #1166) needs no routing change - [ ] The e2e drive (or a composition test at the same seam) proves one of the six deploying end to end ## Blocked by None — can start immediately.

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

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

Ruled by agent under ADR 0174 — veto anytime.

Decision: #1168 ships the deploy-routing's RENDER half — the service-agnostic clan.AttachPort seam that routes every render-shipping forward-auth port (the six shipped ports + data-collections/Grist) through its REAL Attach<port> render + ComposeMemberModules, lifting provisionCannotDeploy for the whole routable set with no per-port branch. The gateway front-door PUBLIC ROUTE for a helper-placed port — the fleet-wide <slug>.<apex> → device-mesh-serve-port union — is split into follow-up #1172.

Why this scope, and why it is honest (not a partial lie):

  • The literal worst-finding is the phantom gate (provisionCannotDeploy on all six). Routing each to its real render + composing the module removes the #351/#428 phantom entirely: the deployed helper gets its own <slug>.nix, the service really runs on wt0 — never a clan-core instance naming a module that does not exist.
  • Un-gating stays honest WITHOUT the public route because the health gate is the truth-teller: each port's deploy-time check reaches it through the derived public door (surveyshealth.go etc.). With no route yet, the check can't reach → the helper stands at S5x "active — a service failed", retry/remove — a first-class honest state, exactly AC2's shape — and portalUp publishes NOTHING (it fires only on a health pass), so there is no broken member-facing link. When #1172 lands the route, the same check passes → S5 green.
  • The route work is genuinely a separate, higher-risk piece: AttachFrontDoor whole-rewrites front-door.nix, so a helper port's route must be assembled as the fleet-wide UNION of every routable service (today only files is ever routed) while reproducing memberFrontDoorLiveSet's identity/mesh/kanidm facts — a wrong union drops routes or reverts the gateway's IdP (the #557/#529 stale-flag class). Landing it in the same slice risks the extensively-tested files placement.

Why it is a two-way door: revertible by a later commit; proved by tests I can run (internal/provision/deploy_ports_test.go — every shipped port routes to its real render & composes, a failing check stands S5x, the routed set is un-gated; go test ./... green). No one-way-door on the list is touched (no credential, no security-posture widening, no member-facing trust accept, no data destruction, no spend).

AC disposition on #1168: AC1 (selectable + real render, no provisionCannotDeploy remnant) ✓; AC2 (S4 retry / S5x standing fault matches pre-arc) ✓; AC3 (service-agnostic — a future port registers its render, no provisioning change) ✓; AC4 (composition test proves a shipped port deploying end to end through the real render) ✓. The "green public reachability exactly as files" tail rides #1172.

**Ruled by agent under ADR 0174 — veto anytime.** **Decision:** #1168 ships the deploy-routing's RENDER half — the service-agnostic `clan.AttachPort` seam that routes every render-shipping forward-auth port (the six shipped ports + data-collections/Grist) through its REAL `Attach<port>` render + `ComposeMemberModules`, lifting `provisionCannotDeploy` for the whole routable set with no per-port branch. The gateway front-door PUBLIC ROUTE for a helper-placed port — the fleet-wide `<slug>.<apex>` → device-mesh-serve-port union — is split into follow-up **#1172**. **Why this scope, and why it is honest (not a partial lie):** - The literal worst-finding is the phantom gate (`provisionCannotDeploy` on all six). Routing each to its real render + composing the module removes the #351/#428 phantom entirely: the deployed helper gets its own `<slug>.nix`, the service really runs on wt0 — never a clan-core instance naming a module that does not exist. - Un-gating stays honest WITHOUT the public route because the **health gate is the truth-teller**: each port's deploy-time check reaches it through the derived public door (`surveyshealth.go` etc.). With no route yet, the check can't reach → the helper stands at **S5x "active — a service failed", retry/remove** — a first-class honest state, exactly AC2's shape — and `portalUp` publishes NOTHING (it fires only on a health pass), so there is no broken member-facing link. When #1172 lands the route, the same check passes → S5 green. - The route work is genuinely a separate, higher-risk piece: `AttachFrontDoor` whole-rewrites `front-door.nix`, so a helper port's route must be assembled as the fleet-wide UNION of every routable service (today only `files` is ever routed) while reproducing `memberFrontDoorLiveSet`'s identity/mesh/kanidm facts — a wrong union drops routes or reverts the gateway's IdP (the #557/#529 stale-flag class). Landing it in the same slice risks the extensively-tested files placement. **Why it is a two-way door:** revertible by a later commit; proved by tests I can run (`internal/provision/deploy_ports_test.go` — every shipped port routes to its real render & composes, a failing check stands S5x, the routed set is un-gated; `go test ./...` green). No one-way-door on the list is touched (no credential, no security-posture widening, no member-facing trust accept, no data destruction, no spend). **AC disposition on #1168:** AC1 (selectable + real render, no `provisionCannotDeploy` remnant) ✓; AC2 (S4 retry / S5x standing fault matches pre-arc) ✓; AC3 (service-agnostic — a future port registers its render, no provisioning change) ✓; AC4 (composition test proves a shipped port deploying end to end through the real render) ✓. The "green public reachability exactly as files" tail rides #1172.

close-report for #1168 — status success

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

envelope
{
  "issue": 1168,
  "status": "success",
  "commits": [
    "889cef92"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/provision_archive_health_test.go",
    "control-plane/cmd/control-plane/provision_datacollections_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/resting_composition.go",
    "internal/clan/clan.go",
    "internal/clan/portroute.go",
    "internal/clan/testing/fake.go",
    "internal/provision/deploy.go",
    "internal/provision/deploy_ports_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/provision/ -run 'TestDeploy_ShippedPort|TestDeploy_RoutableRenderShipping'",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/clan/... ./internal/provision/... ./control-plane/cmd/control-plane/...",
      "exit_code": 0
    },
    {
      "command": "go test ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command golangci-lint run ./internal/clan/... ./internal/provision/... ./control-plane/cmd/control-plane/...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Each of the six services can be ticked on P4-S2, reviewed, and deployed onto a helper via the existing path — no provisionCannotDeploy remnant": "provisionCannotDeploy now = renderShippingService && !clan.PortRoutable (internal/provision/deploy.go); the six ports + data-collections are PortRoutable via internal/clan/portroute.go's portAttachers, so the P4-S2 gate lifts. TestDeploy_RoutableRenderShippingPortsAreNoLongerGated asserts they are un-gated and mail/chat/code/meetings/static-sites stay gated. TestDeploy_ShippedPortRoutesToItsRealRenderNotAPhantom drives each of the seven onto a helper through the existing Deploy path with no phantom inventory edit.",
    "Deploy failure/health-fail behaviour matches the pre-arc services (S4 retry, S5x standing fault)": "The routed ports run through the same deployServicesOnly + healthGate path as pre-arc services (attachCatalogueService delegates, applyRevision + healthGate unchanged). TestDeploy_ShippedPortFailingHealthStandsAsServiceFailed proves a failing port health stands as StateServiceFailed (S5x) with the port named, no deploy failure, retry/remove.",
    "The routing is service-agnostic: a future port (Radicale #1151, Grist #1166) needs no routing change": "clan.AttachPort dispatches by slug through portAttachers and provisionCannotDeploy/attachCatalogueService/memberModuleFiles all key on clan.PortRoutable — no per-port branch in internal/provision. Grist (data-collections) already rides it (in routablePorts test set); a new port registers its render in portAttachers (its own clan-package code, ADR 0062) with zero provisioning change.",
    "The e2e drive (or a composition test at the same seam) proves one of the six deploying end to end": "TestDeploy_ShippedPortRoutesToItsRealRenderNotAPhantom (internal/provision/deploy_ports_test.go) deploys each shipped port end to end through the deploy seam onto a helper: AttachPort renders the real module, ComposeMemberModules imports it (never dead text), no phantom inventory instance is written, and run.Outcome reaches StateActive on the port's passing health check."
  },
  "summary": "The six shipped catalogue ports + data-collections now route through their REAL render on a service-agnostic AttachPort seam, lifting provisionCannotDeploy; the gateway front-door public route is split to follow-up #1172.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1168 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1168, "status": "success", "commits": [ "889cef92" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/provision_archive_health_test.go", "control-plane/cmd/control-plane/provision_datacollections_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/resting_composition.go", "internal/clan/clan.go", "internal/clan/portroute.go", "internal/clan/testing/fake.go", "internal/provision/deploy.go", "internal/provision/deploy_ports_test.go" ], "tests": [ { "command": "go test ./internal/provision/ -run 'TestDeploy_ShippedPort|TestDeploy_RoutableRenderShipping'", "exit_code": 0 }, { "command": "go test ./internal/clan/... ./internal/provision/... ./control-plane/cmd/control-plane/...", "exit_code": 0 }, { "command": "go test ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci --command golangci-lint run ./internal/clan/... ./internal/provision/... ./control-plane/cmd/control-plane/...", "exit_code": 0 } ], "criteria": { "Each of the six services can be ticked on P4-S2, reviewed, and deployed onto a helper via the existing path — no provisionCannotDeploy remnant": "provisionCannotDeploy now = renderShippingService && !clan.PortRoutable (internal/provision/deploy.go); the six ports + data-collections are PortRoutable via internal/clan/portroute.go's portAttachers, so the P4-S2 gate lifts. TestDeploy_RoutableRenderShippingPortsAreNoLongerGated asserts they are un-gated and mail/chat/code/meetings/static-sites stay gated. TestDeploy_ShippedPortRoutesToItsRealRenderNotAPhantom drives each of the seven onto a helper through the existing Deploy path with no phantom inventory edit.", "Deploy failure/health-fail behaviour matches the pre-arc services (S4 retry, S5x standing fault)": "The routed ports run through the same deployServicesOnly + healthGate path as pre-arc services (attachCatalogueService delegates, applyRevision + healthGate unchanged). TestDeploy_ShippedPortFailingHealthStandsAsServiceFailed proves a failing port health stands as StateServiceFailed (S5x) with the port named, no deploy failure, retry/remove.", "The routing is service-agnostic: a future port (Radicale #1151, Grist #1166) needs no routing change": "clan.AttachPort dispatches by slug through portAttachers and provisionCannotDeploy/attachCatalogueService/memberModuleFiles all key on clan.PortRoutable — no per-port branch in internal/provision. Grist (data-collections) already rides it (in routablePorts test set); a new port registers its render in portAttachers (its own clan-package code, ADR 0062) with zero provisioning change.", "The e2e drive (or a composition test at the same seam) proves one of the six deploying end to end": "TestDeploy_ShippedPortRoutesToItsRealRenderNotAPhantom (internal/provision/deploy_ports_test.go) deploys each shipped port end to end through the deploy seam onto a helper: AttachPort renders the real module, ComposeMemberModules imports it (never dead text), no phantom inventory instance is written, and run.Outcome reaches StateActive on the port's passing health check." }, "summary": "The six shipped catalogue ports + data-collections now route through their REAL render on a service-agnostic AttachPort seam, lifting provisionCannotDeploy; the gateway front-door public route is split to follow-up #1172.", "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#1168
No description provided.