Add a .forgejo Mukurtu image build+publish workflow (git.matou.nz packages) — unblocks #1176 #1177
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1177
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 theprovisionImageUnsourcedgate forarchiveonce the pinned image is really pullable. The archive port pinsghcr.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-scopeREGISTRY_FORGEJO_TOKENorg secret — the swarm machine token has no package scope (401 on PUT, perreseed-publish.yml) — plus a nix/OCI build runner (podman/skopeo). None of that is available in the sandbox.Proposed fix (session)
.forgejo/workflows/mukurtu-image-publish.yml(or fold into an existing publish rail):internal/clan.MukurtuVersion, currently4.0.0).git.matou.nzpackages under a stable repo path (e.g.git.matou.nz/matou/mukurtu-cms:v<version>), authenticating withREGISTRY_FORGEJO_TOKEN(packagewritescope), never a moving:latest(ADR 0017).elitebook-03capacity-2 runner already used byreseed-publish).dockerToolsderivation) 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'sdefaultMukurtuImageat the Mātou-published, pullable ref and droparchivefromprovision.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).
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:
MukurtuVersion = "4.0.0"is a phantom pin. UpstreamMukurtuCMS/Mukurtu-CMShas no stable 4.0.0 release — only betas. Newest tags:4.0.0-beta36(…beta35, …beta34…) and a parallelv4-beta-1.5line. A workflow that buildsinternal/clan.MukurtuVersion(per the ticket) therefore can never go green as written — there is nov4.0.0tag/branch to check out. (internal/clan/archive.gopinsdefaultMukurtuImage = ghcr.io/mukurtucms/mukurtu-cms:v+MukurtuVersion.)mainbranch (MukurtuCMS/Mukurtu-CMS-v4-Project-Template) pinsdrupal/core: ^9.5.3,drush/drush: ^10,minimum-stability: dev,prefer-stable: true, andmukurtu/mukurtu-cms: dev-mainpulled 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.”FORGEJO_TOKENdocker logins togit.matou.nzfine but 401s on blob PUT (nowrite:packagescope) — exactly the limitationreseed-publish.ymldocuments 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 existingREGISTRY_FORGEJO_TOKENorg secret (no new secret needed — that part is a two-way door once the recipe exists).cbenning/mukurtucmsis2.1.3-1(Mukurtu 2.x / Drupal 7);ghcr.io/mukurtucms/mukurtu-cmsrequires 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-1177is 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)
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)
docker/mukurtu-image/Containerfile): basephp: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-pluginglobally, thencomposer create-projectfrom the Project Template pinned to a commit withmukurtu/mukurtu-cmsset to the ruled beta tag (replace the floatingdev-main),composer install --no-dev, serveweb/. MariaDB + Solr stay sidecar containers (already howarchive.gomodels them:defaultMariaDBImage,defaultSolrImage) — the image is Drupal-only. Commit acomposer.lockso the build is reproducible against daily-changing upstream..forgejo/workflows/mukurtu-image-publish.yml): model onreseed-publish.yml—runs-on: elitebook-03,workflow_dispatch(+ optional tag-gated trigger, NOT push/schedule, so it never reds main), authFORGEJO_TOKEN: ${{ secrets.REGISTRY_FORGEJO_TOKEN }}, build with podman/skopeo (ordocker), pushgit.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, droparchivefromprovisionImageUnsourced— 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 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:
This ticket closes: the beta build+publish workflow is not needed under the ruling.