Add a .forgejo Mukurtu image build+publish workflow (git.matou.nz packages) — unblocks #1176 #1177

Closed
opened 2026-09-03 03:48:46 +00:00 by matou-build-agent · 2 comments

What / why

Split from #1176 (per Rule 9 — a protected .forgejo/ path this ticket needs, so filed as a session machinery change rather than edited from the sandbox).

#1176 recorded Ben's ruling: build & publish our own Mukurtu 4 image to Mātou's own registry (git.matou.nz packages), pin it in internal/clan/archive.go, and lift the provisionImageUnsourced gate for archive once the pinned image is really pullable. The archive port pins ghcr.io/mukurtucms/mukurtu-cms:v4.0.0, which is published nowhere (every tag denied/none) — so the port is gated out of P4-S2 selection today (#1175, ADR 0100 selectable-lie gate).

To make the port deployable we need a CI workflow that builds and publishes the image. That workflow lives in the protected .forgejo/workflows/ tree, so a Sandcastle agent cannot add it (the protected-path fence rolls it back and reds the run, #445). It also needs the package-scope REGISTRY_FORGEJO_TOKEN org secret — the swarm machine token has no package scope (401 on PUT, per reseed-publish.yml) — plus a nix/OCI build runner (podman/skopeo). None of that is available in the sandbox.

Proposed fix (session)

  • Add .forgejo/workflows/mukurtu-image-publish.yml (or fold into an existing publish rail):
    • Build a Mukurtu 4 OCI image from the official Drupal 11 install profile (PHP 8.4 + MariaDB + Solr per upstream), pinned to a Mukurtu release (internal/clan.MukurtuVersion, currently 4.0.0).
    • Publish to git.matou.nz packages under a stable repo path (e.g. git.matou.nz/matou/mukurtu-cms:v<version>), authenticating with REGISTRY_FORGEJO_TOKEN (package write scope), never a moving :latest (ADR 0017).
    • Runs on a runner with nix + podman/skopeo (the elitebook-03 capacity-2 runner already used by reseed-publish).
  • The image build definition (Containerfile / nix dockerTools derivation) can live in a NON-protected path (e.g. nix/mukurtu-image/) and be authored by an agent/session; only the workflow that invokes+publishes it is protected.

After this lands

Back on #1176: point internal/clan/archive.go's defaultMukurtuImage at the Mātou-published, pullable ref and drop archive from provision.provisionImageUnsourced (the gate lifts, proven by the P4-S2 offering test). Then measure the archive floor/steady-mem per the #1170 method.

Found while working

#1176 (Source or re-scope the Mukurtu archive port).

## What / why Split from #1176 (per Rule 9 — a protected `.forgejo/` path this ticket needs, so filed as a session machinery change rather than edited from the sandbox). #1176 recorded Ben's ruling: **build & publish our own Mukurtu 4 image to Mātou's own registry** (git.matou.nz packages), pin it in `internal/clan/archive.go`, and lift the `provisionImageUnsourced` gate for `archive` once the pinned image is really pullable. The archive port pins `ghcr.io/mukurtucms/mukurtu-cms:v4.0.0`, which is published nowhere (every tag denied/none) — so the port is gated out of P4-S2 selection today (#1175, ADR 0100 selectable-lie gate). To make the port deployable we need a CI workflow that builds and publishes the image. That workflow lives in the **protected** `.forgejo/workflows/` tree, so a Sandcastle agent cannot add it (the protected-path fence rolls it back and reds the run, #445). It also needs the **package-scope** `REGISTRY_FORGEJO_TOKEN` org secret — the swarm machine token has no package scope (401 on PUT, per `reseed-publish.yml`) — plus a nix/OCI build runner (podman/skopeo). None of that is available in the sandbox. ## Proposed fix (session) - Add `.forgejo/workflows/mukurtu-image-publish.yml` (or fold into an existing publish rail): - Build a Mukurtu 4 OCI image from the **official Drupal 11 install profile** (PHP 8.4 + MariaDB + Solr per upstream), pinned to a Mukurtu release (`internal/clan.MukurtuVersion`, currently `4.0.0`). - Publish to `git.matou.nz` packages under a stable repo path (e.g. `git.matou.nz/matou/mukurtu-cms:v<version>`), authenticating with `REGISTRY_FORGEJO_TOKEN` (package `write` scope), never a moving `:latest` (ADR 0017). - Runs on a runner with nix + podman/skopeo (the `elitebook-03` capacity-2 runner already used by `reseed-publish`). - The image build definition (Containerfile / nix `dockerTools` derivation) can live in a NON-protected path (e.g. `nix/mukurtu-image/`) and be authored by an agent/session; only the workflow that invokes+publishes it is protected. ## After this lands Back on #1176: point `internal/clan/archive.go`'s `defaultMukurtuImage` at the Mātou-published, pullable ref and drop `archive` from `provision.provisionImageUnsourced` (the gate lifts, proven by the P4-S2 offering test). Then measure the archive floor/steady-mem per the #1170 method. ## Found while working #1176 (Source or re-scope the Mukurtu archive port).
Author
Member

Ruled by agent under ADR 0174 — veto anytime.

Ruling: relabel ready-for-session → ready-for-human. This ticket cannot be honestly closed by a session: its success proof (“the pinned image is really pullable”) is unreachable in-session, and the load-bearing decision it turns on is a member-facing trust ruling reserved to the human under ADR 0174 §3. Two-way-door groundwork (research + capability probes) is done and recorded below so the post-ruling execution is fast.

What I proved (why this stops here)

Three of the ticket's premises are factually wrong, and the one hard capability it needs is absent:

  1. MukurtuVersion = "4.0.0" is a phantom pin. Upstream MukurtuCMS/Mukurtu-CMS has no stable 4.0.0 release — only betas. Newest tags: 4.0.0-beta36 (…beta35, …beta34…) and a parallel v4-beta-1.5 line. A workflow that builds internal/clan.MukurtuVersion (per the ticket) therefore can never go green as written — there is no v4.0.0 tag/branch to check out. (internal/clan/archive.go pins defaultMukurtuImage = ghcr.io/mukurtucms/mukurtu-cms:v + MukurtuVersion.)
  2. The “official Drupal 11 install profile / PHP 8.4” premise doesn't match upstream. The v4 Project Template's main branch (MukurtuCMS/Mukurtu-CMS-v4-Project-Template) pins drupal/core: ^9.5.3, drush/drush: ^10, minimum-stability: dev, prefer-stable: true, and mukurtu/mukurtu-cms: dev-main pulled via a floating VCS ref — i.e. a Drupal 9-era, dev-stability build with external git/zip deps (zerolab/og#196-redux, jackmoore/colorbox master.zip) and patches. Upstream README: “currently under active development… subject to daily change… should only be used for testing and feedback.”
  3. This session cannot publish. The host FORGEJO_TOKEN docker logins to git.matou.nz fine but 401s on blob PUT (no write:package scope) — exactly the limitation reseed-publish.yml documents for the machine token. So even the fallback “prove it pullable myself” door is closed. Publishing is only possible from the elitebook-03 runner with the existing REGISTRY_FORGEJO_TOKEN org secret (no new secret needed — that part is a two-way door once the recipe exists).
  4. No pullable v4 community image exists to adopt instead: Docker Hub cbenning/mukurtucms is 2.1.3-1 (Mukurtu 2.x / Drupal 7); ghcr.io/mukurtucms/mukurtu-cms requires auth (not public). Confirms #1175's “published nowhere” finding.

No probe package was left in the registry (the push 401'd before any blob landed; verified packages/Matou?type=container&q=idss-1177 is empty).

## Why human

A ruling on a member-facing trust surface (ADR 0174 §3), which a session must not self-authorize: whether to build & publish active-development beta software (no stable Mukurtu 4 exists) as the community's sovereign cultural repository (the archive port), and which real ref to freeze as the pin. This is the strategic sourcing decision internal/clan/archive.go's own comment (and #1176) explicitly defers to a human. It is not Ben's hands — it's Ben's eyes/ruling; once ruled, a session executes the rest (author + dispatch the workflow, prove pullable).

Proposed default ruling (so this is a one-line decision)

Build & publish the newest Mukurtu v4 beta (today 4.0.0-beta36) to git.matou.nz/matou/mukurtu-cms:v4.0.0-beta36 for gate-lift + #1170 memory-floor measurement only — not yet for real member data. Repin internal/clan.MukurtuVersion to that exact beta tag (drop the phantom 4.0.0), never :latest (ADR 0017). Adoption for real community archives rides a later, separate accept.

If accepted, the residue is purely a freeze-the-ref choice; execution is a two-way door.

Execution recipe for the post-ruling session (researched, ready to run)

  • Build def (non-protected path, e.g. docker/mukurtu-image/Containerfile): base php:8.3-apache (upstream currently supports 8.3; 8.4 only on the newest line — match whatever the ruled ref requires), install the Drupal PHP extensions (gd, pdo_mysql, opcache, zip, intl, bcmath) + fxp/composer-asset-plugin globally, then composer create-project from the Project Template pinned to a commit with mukurtu/mukurtu-cms set to the ruled beta tag (replace the floating dev-main), composer install --no-dev, serve web/. MariaDB + Solr stay sidecar containers (already how archive.go models them: defaultMariaDBImage, defaultSolrImage) — the image is Drupal-only. Commit a composer.lock so the build is reproducible against daily-changing upstream.
  • Workflow (protected .forgejo/workflows/mukurtu-image-publish.yml): model on reseed-publish.yml — runs-on: elitebook-03, workflow_dispatch (+ optional tag-gated trigger, NOT push/schedule, so it never reds main), auth FORGEJO_TOKEN: ${{ secrets.REGISTRY_FORGEJO_TOKEN }}, build with podman/skopeo (or docker), push git.matou.nz/matou/mukurtu-cms:v<ruled-tag>. Prove pullable, then hand back to #1176.

Advances #1176

#1176 stays blocked on this. Its “After this lands” (repin archive.go, drop archive from provisionImageUnsourced — a one-line hardcoded slug check, deploy.go:1454) is unchanged and correct; it just needs the ruled ref + a proven-pullable image first.

Session-runner attempt under ADR 0174; left open + ready-for-human (an honest route, not “no progress”).

**Ruled by agent under ADR 0174 — veto anytime.** **Ruling:** relabel `ready-for-session` → `ready-for-human`. This ticket cannot be honestly closed by a session: its success proof (*“the pinned image is really pullable”*) is unreachable in-session, and the load-bearing decision it turns on is a member-facing **trust** ruling reserved to the human under ADR 0174 §3. Two-way-door groundwork (research + capability probes) is done and recorded below so the post-ruling execution is fast. ### What I proved (why this stops here) Three of the ticket's premises are factually wrong, and the one hard capability it needs is absent: 1. **`MukurtuVersion = "4.0.0"` is a phantom pin.** Upstream `MukurtuCMS/Mukurtu-CMS` has **no stable 4.0.0 release** — only betas. Newest tags: `4.0.0-beta36` (…beta35, …beta34…) and a parallel `v4-beta-1.5` line. A workflow that builds `internal/clan.MukurtuVersion` (per the ticket) therefore **can never go green** as written — there is no `v4.0.0` tag/branch to check out. (`internal/clan/archive.go` pins `defaultMukurtuImage = ghcr.io/mukurtucms/mukurtu-cms:v` + `MukurtuVersion`.) 2. **The “official Drupal 11 install profile / PHP 8.4” premise doesn't match upstream.** The v4 Project Template's `main` branch (`MukurtuCMS/Mukurtu-CMS-v4-Project-Template`) pins `drupal/core: ^9.5.3`, `drush/drush: ^10`, `minimum-stability: dev`, `prefer-stable: true`, and `mukurtu/mukurtu-cms: dev-main` pulled via a floating VCS ref — i.e. a **Drupal 9-era, dev-stability** build with external git/zip deps (`zerolab/og#196-redux`, `jackmoore/colorbox master.zip`) and patches. Upstream README: *“currently under active development… subject to daily change… should only be used for testing and feedback.”* 3. **This session cannot publish.** The host `FORGEJO_TOKEN` `docker login`s to `git.matou.nz` fine but **401s on blob PUT** (no `write:package` scope) — exactly the limitation `reseed-publish.yml` documents for the machine token. So even the fallback “prove it pullable myself” door is closed. Publishing is only possible from the **elitebook-03 runner** with the existing `REGISTRY_FORGEJO_TOKEN` org secret (no *new* secret needed — that part is a two-way door once the recipe exists). 4. **No pullable v4 community image exists** to adopt instead: Docker Hub `cbenning/mukurtucms` is `2.1.3-1` (Mukurtu 2.x / Drupal 7); `ghcr.io/mukurtucms/mukurtu-cms` requires auth (not public). Confirms #1175's “published nowhere” finding. No probe package was left in the registry (the push 401'd before any blob landed; verified `packages/Matou?type=container&q=idss-1177` is empty). ### ## Why human A **ruling on a member-facing trust surface** (ADR 0174 §3), which a session must not self-authorize: whether to build & publish **active-development beta** software (no stable Mukurtu 4 exists) as the community's **sovereign cultural repository** (the archive port), and *which* real ref to freeze as the pin. This is the strategic sourcing decision `internal/clan/archive.go`'s own comment (and #1176) explicitly defers to a human. It is not Ben's hands — it's Ben's **eyes/ruling**; once ruled, a session executes the rest (author + dispatch the workflow, prove pullable). ### Proposed default ruling (so this is a one-line decision) > Build & publish the **newest Mukurtu v4 beta** (today `4.0.0-beta36`) to `git.matou.nz/matou/mukurtu-cms:v4.0.0-beta36` **for gate-lift + #1170 memory-floor measurement only** — not yet for real member data. Repin `internal/clan.MukurtuVersion` to that exact beta tag (drop the phantom `4.0.0`), never `:latest` (ADR 0017). Adoption for real community archives rides a later, separate accept. If accepted, the residue is purely a freeze-the-ref choice; execution is a two-way door. ### Execution recipe for the post-ruling session (researched, ready to run) - **Build def (non-protected path, e.g. `docker/mukurtu-image/Containerfile`):** base `php:8.3-apache` (upstream currently supports 8.3; 8.4 only on the newest line — match whatever the ruled ref requires), install the Drupal PHP extensions (gd, pdo_mysql, opcache, zip, intl, bcmath) + `fxp/composer-asset-plugin` globally, then `composer create-project` from the Project Template pinned to a commit with `mukurtu/mukurtu-cms` set to the **ruled beta tag** (replace the floating `dev-main`), `composer install --no-dev`, serve `web/`. MariaDB + Solr stay sidecar containers (already how `archive.go` models them: `defaultMariaDBImage`, `defaultSolrImage`) — the image is Drupal-only. Commit a `composer.lock` so the build is reproducible against daily-changing upstream. - **Workflow (protected `.forgejo/workflows/mukurtu-image-publish.yml`):** model on `reseed-publish.yml` — `runs-on: elitebook-03`, `workflow_dispatch` (+ optional tag-gated trigger, NOT push/schedule, so it never reds main), auth `FORGEJO_TOKEN: ${{ secrets.REGISTRY_FORGEJO_TOKEN }}`, build with podman/skopeo (or `docker`), push `git.matou.nz/matou/mukurtu-cms:v<ruled-tag>`. Prove pullable, then hand back to #1176. ### Advances #1176 #1176 stays blocked on this. Its “After this lands” (repin `archive.go`, drop `archive` from `provisionImageUnsourced` — a one-line hardcoded slug check, `deploy.go:1454`) is unchanged and correct; it just needs the ruled ref + a proven-pullable image first. _Session-runner attempt under ADR 0174; left open + `ready-for-human` (an honest route, not “no progress”)._
Owner

Ruled by Ben (2026-09-03): interim Omeka S alongside — supersedes the build-own-beta path.

Mukurtu 4 being beta-only ("daily change, testing and feedback only") is not the substance a sovereign cultural archive ships on today. So:

  • The Community archive card becomes Omeka S NOW (stable, official distribution, Local Contexts notices module) — port ticket #1185.
  • Mukurtu returns to the candidate tier ("cultural-protocols archive — waiting on a stable upstream release"), requestable through the ordinary demand machinery; when upstream stabilises it re-enters as a port decision with real information.
  • No beta image is built or published. The excellent groundwork here (phantom pin, dev-stability template, token scopes, execution recipe) is preserved by reference for that future day.

This ticket closes: the beta build+publish workflow is not needed under the ruling.

**Ruled by Ben (2026-09-03): interim Omeka S alongside — supersedes the build-own-beta path.** Mukurtu 4 being beta-only ("daily change, testing and feedback only") is not the substance a sovereign cultural archive ships on today. So: - **The Community archive card becomes Omeka S NOW** (stable, official distribution, Local Contexts notices module) — port ticket **#1185**. - **Mukurtu returns to the candidate tier** ("cultural-protocols archive — waiting on a stable upstream release"), requestable through the ordinary demand machinery; when upstream stabilises it re-enters as a port decision with real information. - **No beta image is built or published.** The excellent groundwork here (phantom pin, dev-stability template, token scopes, execution recipe) is preserved by reference for that future day. This ticket closes: the beta build+publish workflow is not needed under the ruling.
ben closed this issue 2026-09-03 14:40:41 +00:00
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#1177
No description provided.