catalogue port: Whakapapa (Gramps Web) — the family tree on your own fleet, Heritage tier #1148

Closed
opened 2026-09-02 06:25:55 +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: Whakapapa · runs Gramps Web · category Heritage. NO NixOS module — container/headless port work (moderate-high). Multi-user via its own auth in v1 (IdP/OIDC wiring only if the product supports it cleanly — note findings on the ticket).

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 creates-or-reads a fixture person record via the API (real function)
  • Media and database on the declared dataset; export (Gramps XML) verified working — the data is never locked in

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: Whakapapa · runs Gramps Web · category Heritage.** NO NixOS module — container/headless port work (moderate-high). Multi-user via its own auth in v1 (IdP/OIDC wiring only if the product supports it cleanly — note findings on the ticket). 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 creates-or-reads a fixture person record via the API (real function) - [ ] Media and database on the declared dataset; export (Gramps XML) verified working — the data is never locked in ## 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 #1148 — status success

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

envelope
{
  "issue": 1148,
  "status": "success",
  "commits": [
    "cb99a9ca"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/compose.go",
    "control-plane/cmd/control-plane/whole_composition.go",
    "control-plane/cmd/control-plane/whakapapahealth.go",
    "control-plane/cmd/control-plane/provision_whakapapa_health_test.go",
    "internal/catalogue/catalogue.go",
    "internal/catalogue/catalogue_test.go",
    "internal/clan/deployedservices.go",
    "internal/clan/whakapapa.go",
    "internal/clan/whakapapa_attach.go",
    "internal/clan/whakapapa_test.go",
    "internal/clan/whakapapa_attach_test.go",
    "internal/provision/deploy.go"
  ],
  "tests": [
    {
      "command": "go test ./...",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/... ./control-plane/...",
      "exit_code": 0
    },
    {
      "command": "golangci-lint run ./internal/clan/... ./internal/catalogue/... ./control-plane/cmd/control-plane/...",
      "exit_code": 0
    },
    {
      "command": "gofmt -l internal/ control-plane/",
      "exit_code": 0
    },
    {
      "command": "go build -tags dev ./...",
      "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": "The port declares its whole self: internal/clan/whakapapa.go (declarative podman containers + secrets + dataset + reconciler) written by whakapapa_attach.go (AttachWhakapapa), deployedservices.go maps the slug->module, and the catalogue Service marks it a RoleHelper. No internal/provision or internal/monitor logic changed except the ONE required #428 safety classification (renderShippingService gate-out in deploy.go), exactly as surveys #1150 / video #1149.",
    "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/whakapapahealth.go drives Gramps Web's keep-a-person-and-export-it loop over the REST API; re-run-safe via create-or-read by a stable gramps_id (TestWhakapapaHealth_ReRunSafeCreateOrRead proves exactly one create across two runs); Summary 'Whakapapa is not serving — Gramps Web could not keep a person on the family tree and export it back out' in operator vocabulary.",
    "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 adds the whakapapa Service — floor(1,2,20), steady 768MB (tier-aligned, provisional under ADR 0030 pending a clan-lab measurement, ruled two-way under ADR 0174 on the issue, following the surveys/video precedent), Category Heritage, Description, Glyph W, Product/ProductURL. TestServices_CarryDisplayFacts / TestFloorFor_IsTheCheapestRunnableService / TestServices_EveryTaxonomyCategoryIsCarried green.",
    "Monitoring watches the same declared check steady-state (ADR 0062 — defined once)": "whole_composition.go registers whakapapaHealthCheck into the SAME shared ports registry provisioning and monitoring both read — defined once (ADR 0062), guarded on the derived URL + owner credential (ADR 0100).",
    "Health check creates-or-reads a fixture person record via the API (real function)": "whakapapaEnsureFixture GETs the fixture by its owned gramps_id and creates a person via POST /api/people/ only when absent (create-or-read), then whakapapaReadBack confirms it is on the tree. TestComposeProvision_WhakapapaActivatesOnlyOnARealKeepAndExport proves activation only on a real keep.",
    "Media and database on the declared dataset; export (Gramps XML) verified working — the data is never locked in": "whakapapa.go bind-mounts ${store}/db:/root/.gramps/grampsdb and ${store}/media:/app/media on the declared Whakapapa dataset (TestRenderWhakapapa_DatabaseAndMediaOnTheDataset); whakapapaVerifyExport GETs /api/exporters/gramps/file and asserts the fixture gramps_id is in the decoded (gzip-aware) Gramps XML — proven by the health test's real-keep-and-export leg."
  },
  "summary": "Shipped the whakapapa catalogue port (Gramps Web) as an ADR 0062 three-part container port — declarative podman render, owner-bootstrap reconciler, and a keep-a-person-and-export-it health check — and brought the Heritage category into the DDR 0220 taxonomy with it.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1148 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1148, "status": "success", "commits": [ "cb99a9ca" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/compose.go", "control-plane/cmd/control-plane/whole_composition.go", "control-plane/cmd/control-plane/whakapapahealth.go", "control-plane/cmd/control-plane/provision_whakapapa_health_test.go", "internal/catalogue/catalogue.go", "internal/catalogue/catalogue_test.go", "internal/clan/deployedservices.go", "internal/clan/whakapapa.go", "internal/clan/whakapapa_attach.go", "internal/clan/whakapapa_test.go", "internal/clan/whakapapa_attach_test.go", "internal/provision/deploy.go" ], "tests": [ { "command": "go test ./...", "exit_code": 0 }, { "command": "go vet ./internal/... ./control-plane/...", "exit_code": 0 }, { "command": "golangci-lint run ./internal/clan/... ./internal/catalogue/... ./control-plane/cmd/control-plane/...", "exit_code": 0 }, { "command": "gofmt -l internal/ control-plane/", "exit_code": 0 }, { "command": "go build -tags dev ./...", "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": "The port declares its whole self: internal/clan/whakapapa.go (declarative podman containers + secrets + dataset + reconciler) written by whakapapa_attach.go (AttachWhakapapa), deployedservices.go maps the slug->module, and the catalogue Service marks it a RoleHelper. No internal/provision or internal/monitor logic changed except the ONE required #428 safety classification (renderShippingService gate-out in deploy.go), exactly as surveys #1150 / video #1149.", "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/whakapapahealth.go drives Gramps Web's keep-a-person-and-export-it loop over the REST API; re-run-safe via create-or-read by a stable gramps_id (TestWhakapapaHealth_ReRunSafeCreateOrRead proves exactly one create across two runs); Summary 'Whakapapa is not serving — Gramps Web could not keep a person on the family tree and export it back out' in operator vocabulary.", "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 adds the whakapapa Service — floor(1,2,20), steady 768MB (tier-aligned, provisional under ADR 0030 pending a clan-lab measurement, ruled two-way under ADR 0174 on the issue, following the surveys/video precedent), Category Heritage, Description, Glyph W, Product/ProductURL. TestServices_CarryDisplayFacts / TestFloorFor_IsTheCheapestRunnableService / TestServices_EveryTaxonomyCategoryIsCarried green.", "Monitoring watches the same declared check steady-state (ADR 0062 — defined once)": "whole_composition.go registers whakapapaHealthCheck into the SAME shared ports registry provisioning and monitoring both read — defined once (ADR 0062), guarded on the derived URL + owner credential (ADR 0100).", "Health check creates-or-reads a fixture person record via the API (real function)": "whakapapaEnsureFixture GETs the fixture by its owned gramps_id and creates a person via POST /api/people/ only when absent (create-or-read), then whakapapaReadBack confirms it is on the tree. TestComposeProvision_WhakapapaActivatesOnlyOnARealKeepAndExport proves activation only on a real keep.", "Media and database on the declared dataset; export (Gramps XML) verified working — the data is never locked in": "whakapapa.go bind-mounts ${store}/db:/root/.gramps/grampsdb and ${store}/media:/app/media on the declared Whakapapa dataset (TestRenderWhakapapa_DatabaseAndMediaOnTheDataset); whakapapaVerifyExport GETs /api/exporters/gramps/file and asserts the fixture gramps_id is in the decoded (gzip-aware) Gramps XML — proven by the health test's real-keep-and-export leg." }, "summary": "Shipped the whakapapa catalogue port (Gramps Web) as an ADR 0062 three-part container port — declarative podman render, owner-bootstrap reconciler, and a keep-a-person-and-export-it health check — and brought the Heritage category into the DDR 0220 taxonomy with it.", "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#1148
No description provided.