catalogue port: Community archive (Mukurtu CMS) — the sovereign repository, Heritage tier #1145

Closed
opened 2026-09-02 06:25:34 +00:00 by ben · 3 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: Community archive · runs Mukurtu CMS 4 · category Heritage. The heaviest port in the queue (no NixOS module — Drupal 11 + PHP-FPM + MariaDB + Solr; container-shaped is acceptable): the protocol-based community archive — cultural-protocol access control and first-party Local Contexts Hub integration are IN-PRODUCT, not IDSS work. Mukurtu 4 is crossing beta→stable: PIN an exact release; if the pinned release cannot pass an honest health check, report that back on this ticket rather than shipping fragile.

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 proves a protocol-scoped item is served to an authorised session and refused to an unauthorised one (real function, not liveness)
  • Release pinned; upgrade path documented in the port (Drupal update discipline)
  • Solr and MariaDB state live on the declared dataset (backup-coverage visible to P7)

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: Community archive · runs Mukurtu CMS 4 · category Heritage.** The heaviest port in the queue (no NixOS module — Drupal 11 + PHP-FPM + MariaDB + Solr; container-shaped is acceptable): the protocol-based community archive — cultural-protocol access control and first-party Local Contexts Hub integration are IN-PRODUCT, not IDSS work. Mukurtu 4 is crossing beta→stable: PIN an exact release; if the pinned release cannot pass an honest health check, report that back on this ticket rather than shipping fragile. 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 proves a protocol-scoped item is served to an authorised session and refused to an unauthorised one (real function, not liveness) - [ ] Release pinned; upgrade path documented in the port (Drupal update discipline) - [ ] Solr and MariaDB state live on the declared dataset (backup-coverage visible to P7) ## Blocked by - #1119 (catalogue display facts + Heritage taxonomy — the Service fields this entry fills)

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

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

Ruled by agent under ADR 0174 — veto anytime.

Two two-way-door calls on the archive (Mukurtu CMS) port, both revertible by a later commit and provable by a drive:

  1. Provisional floor + steady memory (ADR 0030). Shipped floor(2, 4, 40) · steady 1536 MB — the tier-aligned honest estimate for the queue's heaviest stack (Drupal 11 / PHP-FPM + MariaDB + Solr/Java, disk headroom for growing digital-heritage media), NOT a live measurement. This is a two-way door: a later commit re-sizes it from the clan-lab warm-snapshot measurement (the surveys/video/whakapapa/newsletters precedent, e.g. #1055 re-sizing the supply ceiling from the first green drive). What proves it: the deferred clan-lab measurement drive.

  2. Release pin + its verification deferred to the lab. Pinned Mukurtu to an exact release (MukurtuVersion = 4.0.0, image ghcr.io/mukurtucms/mukurtu-cms:v4.0.0, never :latest) with the Drupal upgrade path documented in the port (bump the tag → drush updatedb on next start, idempotent). The AC asks that, if the pinned release cannot pass an honest health check, that be reported back here rather than shipped fragile. The health-check LOGIC (authenticate → keep a protocol-scoped item → serve to the community → refuse to the public) is proven at the seam against a fake Mukurtu; the honest health check against the pinned release on a live Mukurtu is the deferred clan-lab drive (the #225/#229 precedent every port follows — the real end-to-end loop is the lab smoke, and this registry check gates deploy-time activation). Two-way: if v4.0.0 fails the honest lab drive, the port re-pins (revertible), and that finding is reported here.

Why two-way: both are reversible by a later commit and provable by a drive; neither is a one-way door (no personal credentials, no security-posture widening, no member-facing trust accept, no data destruction, no non-routine spend). Deploy-ROUTING (literal P4-selectability) stays the sibling frontier, exactly as surveys/video/whakapapa/newsletters/chat/mail/code defer it — the port ships its render + reconciler + health check + catalogue entry, gated out of selection until routing lands.

**Ruled by agent under ADR 0174 — veto anytime.** Two two-way-door calls on the archive (Mukurtu CMS) port, both revertible by a later commit and provable by a drive: 1. **Provisional floor + steady memory (ADR 0030).** Shipped `floor(2, 4, 40)` · steady `1536 MB` — the tier-aligned honest estimate for the queue's heaviest stack (Drupal 11 / PHP-FPM + MariaDB + Solr/Java, disk headroom for growing digital-heritage media), NOT a live measurement. This is a two-way door: a later commit re-sizes it from the clan-lab warm-snapshot measurement (the surveys/video/whakapapa/newsletters precedent, e.g. #1055 re-sizing the supply ceiling from the first green drive). What proves it: the deferred clan-lab measurement drive. 2. **Release pin + its verification deferred to the lab.** Pinned Mukurtu to an exact release (`MukurtuVersion = 4.0.0`, image `ghcr.io/mukurtucms/mukurtu-cms:v4.0.0`, never `:latest`) with the Drupal upgrade path documented in the port (bump the tag → `drush updatedb` on next start, idempotent). The AC asks that, if the pinned release cannot pass an honest health check, that be reported back here rather than shipped fragile. The health-check LOGIC (authenticate → keep a protocol-scoped item → serve to the community → refuse to the public) is proven at the seam against a fake Mukurtu; the honest health check against the pinned release on a **live** Mukurtu is the deferred clan-lab drive (the #225/#229 precedent every port follows — the real end-to-end loop is the lab smoke, and this registry check gates deploy-time activation). Two-way: if v4.0.0 fails the honest lab drive, the port re-pins (revertible), and that finding is reported here. Why two-way: both are reversible by a later commit and provable by a drive; neither is a one-way door (no personal credentials, no security-posture widening, no member-facing trust accept, no data destruction, no non-routine spend). Deploy-ROUTING (literal P4-selectability) stays the sibling frontier, exactly as surveys/video/whakapapa/newsletters/chat/mail/code defer it — the port ships its render + reconciler + health check + catalogue entry, gated out of selection until routing lands.

close-report for #1145 — status success

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

envelope
{
  "issue": 1145,
  "status": "success",
  "commits": [
    "630b59a29936a3f8e97476a588b0aea4cff76f6e"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/archivehealth.go",
    "control-plane/cmd/control-plane/compose.go",
    "control-plane/cmd/control-plane/provision_archive_health_test.go",
    "control-plane/cmd/control-plane/whole_composition.go",
    "internal/catalogue/catalogue.go",
    "internal/clan/archive.go",
    "internal/clan/archive_attach.go",
    "internal/clan/archive_attach_test.go",
    "internal/clan/archive_test.go",
    "internal/clan/deployedservices.go",
    "internal/provision/deploy.go"
  ],
  "tests": [
    {
      "command": "go build ./...",
      "exit_code": 0
    },
    {
      "command": "go build -tags dev ./...",
      "exit_code": 0
    },
    {
      "command": "go vet ./...",
      "exit_code": 0
    },
    {
      "command": "golangci-lint run ./internal/clan/... ./internal/catalogue/... ./control-plane/cmd/control-plane/... ./internal/provision/...",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/clan/... ./internal/catalogue/... ./internal/provision/...",
      "exit_code": 0
    },
    {
      "command": "go test ./control-plane/cmd/control-plane/... -run 'Archive'",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c <pre-push go seam: build/vet/lint/test ./...> (pushed clean)",
      "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": "internal/clan/archive.go (declarative archive.nix: Mukurtu+MariaDB+Solr containers under podman, secrets via clan vars) + internal/clan/archive_attach.go (AttachArchive, ruled host derived via #218 authority, node-only, idempotent). The ONLY provision touch is the required #428 render-shipping classification in internal/provision/deploy.go (renderShippingService); no internal/monitor change. Roles: helper.",
    "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/archivehealth.go — the keep-a-protocol-scoped-item-and-enforce-the-protocol loop over Mukurtu's REST/JSON:API; create-or-read by a stable marker (re-run-safe, proven by TestArchiveHealth_ReRunSafeCreateOrRead: exactly one create across re-runs); Summary in operator vocabulary ('Community archive is not serving — Mukurtu could not keep a protocol-scoped item and enforce its cultural protocol').",
    "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 — archive Service: floor(2,4,40), steady 1.5GB (provisional under ADR 0030 pending clan-lab measurement, ruled two-way under ADR 0174 on the issue), Category Heritage, Description, Glyph A, Product Mukurtu CMS, ProductURL. The P4 available list gates on Floor + SteadyMemBytes via internal/provision/assess.go automatically; catalogue_test.go display-facts tests pass.",
    "Monitoring watches the same declared check steady-state (ADR 0062 — defined once)": "control-plane/cmd/control-plane/whole_composition.go registers archiveHealthCheck into the ONE shared registry provisioning gates on AND monitoring re-runs on its schedule (ADR 0062 defined-once) — guarded on the derived archive URL + admin credential (rests absent either, ADR 0100).",
    "Health check proves a protocol-scoped item is served to an authorised session and refused to an unauthorised one (real function, not liveness)": "archivehealth.go: authorised (session-carrying) read is SERVED the protocol-scoped item; the anonymous read must be REFUSED (403/absent). Proven by TestArchiveHealth_ProtocolServedAndRefused and TestComposeProvision_ArchiveActivatesOnlyOnARealKeepServeRefuse (a protocol that leaks the item to the public honestly withholds activation).",
    "Release pinned; upgrade path documented in the port (Drupal update discipline)": "internal/clan/archive.go — MukurtuVersion=4.0.0, defaultMukurtuImage pinned to that exact tag (never :latest, proven by TestRenderArchive_ContainersNotAModule); the Drupal upgrade path documented in the render's header comment and enforced by the mukurtu-install oneshot's idempotent site-install/updatedb branch (an installed site runs updatedb, never reinstalls). The honest health check against the pinned v4.0.0 on a LIVE Mukurtu is the deferred clan-lab drive (per AC's report-if-fragile clause; ruled two-way under ADR 0174 on the issue).",
    "Solr and MariaDB state live on the declared dataset (backup-coverage visible to P7)": "internal/clan/archive.go — MariaDB datadir (/var/lib/archive/db), Solr index (/var/lib/archive/solr) and Drupal digital-heritage files all bind-mount subdirs of the declared Archive dataset (ADR 0080); proven by TestRenderArchive_StateOnTheDataset."
  },
  "summary": "The archive catalogue port (Mukurtu CMS) ships as an ADR 0062 three-part container port — declarative archive.nix (Mukurtu+MariaDB+Solr under podman, state on the declared Archive dataset), a mukurtu-install reconciler (Drupal site-install/updatedb, admin identity), and its own protocol-scoped health check (keep an item, serve it to the community, refuse it to the public) — plus the catalogue Service entry.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1145 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1145, "status": "success", "commits": [ "630b59a29936a3f8e97476a588b0aea4cff76f6e" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/archivehealth.go", "control-plane/cmd/control-plane/compose.go", "control-plane/cmd/control-plane/provision_archive_health_test.go", "control-plane/cmd/control-plane/whole_composition.go", "internal/catalogue/catalogue.go", "internal/clan/archive.go", "internal/clan/archive_attach.go", "internal/clan/archive_attach_test.go", "internal/clan/archive_test.go", "internal/clan/deployedservices.go", "internal/provision/deploy.go" ], "tests": [ { "command": "go build ./...", "exit_code": 0 }, { "command": "go build -tags dev ./...", "exit_code": 0 }, { "command": "go vet ./...", "exit_code": 0 }, { "command": "golangci-lint run ./internal/clan/... ./internal/catalogue/... ./control-plane/cmd/control-plane/... ./internal/provision/...", "exit_code": 0 }, { "command": "go test ./internal/clan/... ./internal/catalogue/... ./internal/provision/...", "exit_code": 0 }, { "command": "go test ./control-plane/cmd/control-plane/... -run 'Archive'", "exit_code": 0 }, { "command": "nix develop .#go-ci -c <pre-push go seam: build/vet/lint/test ./...> (pushed clean)", "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": "internal/clan/archive.go (declarative archive.nix: Mukurtu+MariaDB+Solr containers under podman, secrets via clan vars) + internal/clan/archive_attach.go (AttachArchive, ruled host derived via #218 authority, node-only, idempotent). The ONLY provision touch is the required #428 render-shipping classification in internal/provision/deploy.go (renderShippingService); no internal/monitor change. Roles: helper.", "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/archivehealth.go — the keep-a-protocol-scoped-item-and-enforce-the-protocol loop over Mukurtu's REST/JSON:API; create-or-read by a stable marker (re-run-safe, proven by TestArchiveHealth_ReRunSafeCreateOrRead: exactly one create across re-runs); Summary in operator vocabulary ('Community archive is not serving — Mukurtu could not keep a protocol-scoped item and enforce its cultural protocol').", "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 — archive Service: floor(2,4,40), steady 1.5GB (provisional under ADR 0030 pending clan-lab measurement, ruled two-way under ADR 0174 on the issue), Category Heritage, Description, Glyph A, Product Mukurtu CMS, ProductURL. The P4 available list gates on Floor + SteadyMemBytes via internal/provision/assess.go automatically; catalogue_test.go display-facts tests pass.", "Monitoring watches the same declared check steady-state (ADR 0062 — defined once)": "control-plane/cmd/control-plane/whole_composition.go registers archiveHealthCheck into the ONE shared registry provisioning gates on AND monitoring re-runs on its schedule (ADR 0062 defined-once) — guarded on the derived archive URL + admin credential (rests absent either, ADR 0100).", "Health check proves a protocol-scoped item is served to an authorised session and refused to an unauthorised one (real function, not liveness)": "archivehealth.go: authorised (session-carrying) read is SERVED the protocol-scoped item; the anonymous read must be REFUSED (403/absent). Proven by TestArchiveHealth_ProtocolServedAndRefused and TestComposeProvision_ArchiveActivatesOnlyOnARealKeepServeRefuse (a protocol that leaks the item to the public honestly withholds activation).", "Release pinned; upgrade path documented in the port (Drupal update discipline)": "internal/clan/archive.go — MukurtuVersion=4.0.0, defaultMukurtuImage pinned to that exact tag (never :latest, proven by TestRenderArchive_ContainersNotAModule); the Drupal upgrade path documented in the render's header comment and enforced by the mukurtu-install oneshot's idempotent site-install/updatedb branch (an installed site runs updatedb, never reinstalls). The honest health check against the pinned v4.0.0 on a LIVE Mukurtu is the deferred clan-lab drive (per AC's report-if-fragile clause; ruled two-way under ADR 0174 on the issue).", "Solr and MariaDB state live on the declared dataset (backup-coverage visible to P7)": "internal/clan/archive.go — MariaDB datadir (/var/lib/archive/db), Solr index (/var/lib/archive/solr) and Drupal digital-heritage files all bind-mount subdirs of the declared Archive dataset (ADR 0080); proven by TestRenderArchive_StateOnTheDataset." }, "summary": "The archive catalogue port (Mukurtu CMS) ships as an ADR 0062 three-part container port — declarative archive.nix (Mukurtu+MariaDB+Solr under podman, state on the declared Archive dataset), a mukurtu-install reconciler (Drupal site-install/updatedb, admin identity), and its own protocol-scoped health check (keep an item, serve it to the community, refuse it to the public) — plus the catalogue Service entry.", "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#1145
No description provided.