port deploy-blockers + footprint findings from the #1170 floor measurement #1175

Closed
opened 2026-09-03 01:44:42 +00:00 by matou-build-agent · 3 comments

Parent

Filed from the #1170 clan-lab floor measurement (Ben's ruling 2026-09-03: one 8 GB droplet, five services sequential; PeerTube on a ≥4 GB droplet under transcode). While standing up each port's real upstream stack on a DO droplet to measure its floor, three of the six ports proved undeployable as shipped and a fourth carries a footprint that fills its floor. These are module defects, out of #1170's numbers-only scope — captured here.

Findings

1. whakapapa (Gramps Web) — wrong image tag (two-way, agent-fixable)

internal/clan/whakapapa.go:72 pins ghcr.io/gramps-project/grampsweb:v25.7.2. That tag does not exist — the 25.7.x series is published WITHOUT the v prefix (25.7.2). The port cannot pull the image as pinned. Fix: drop the v for the 25.x tags (verify against ghcr tag list). Measured with 25.7.2.

2. document-archive (Paperless-ngx) — OCR language set but pack not installed (two-way, agent-fixable)

paperless.go sets PAPERLESS_OCR_LANGUAGE=eng+mri but never installs the mri (te reo Māori) tesseract data. Paperless runs a startup system-check and refuses to boot: "The selected ocr language mri is not installed." The upstream image installs extra packs from PAPERLESS_OCR_LANGUAGES (note plural). Fix: also set PAPERLESS_OCR_LANGUAGES="eng mri" (or bake the pack). Measured with the pack added; OCR of 8 image-PDFs succeeded.

3. archive (Mukurtu CMS) — pinned image does not exist anywhere (needs a ruling)

internal/clan/archive.go:92 pins ghcr.io/mukurtucms/mukurtu-cms:v4.0.0. No such image is published — every tag (v4.0.0, 4.0.0, latest, main) returns denied/none, and the mukurtucms org publishes no public container. Mukurtu is a Drupal 11 install profile with no official container. The archive port is therefore undeployable and its floor could not be measured (#1170 parked it). A human/ADR-0174 ruling is needed: build & publish a Mukurtu image, switch to a community image, or re-scope the port.

4. whakapapa footprint fills its 2 GB floor (needs a floor review)

Measured steady ~1572 MiB — the upstream image defaults to GUNICORN_NUM_WORKERS=8 (CPU-independent) and the module ships no cap. That sits at the ceiling of the 2 GB floor's 80% steady budget (~1638 MiB), so whakapapa cannot co-reside with the front door on a 2 GB box. Fix options: cap GUNICORN_NUM_WORKERS for a community node (brings it to the surveys tier) and/or raise the floor (a gate change). #1170 left the floor unchanged and recorded the measured steady.

Acceptance criteria

  • whakapapa image tag corrected and pull verified
  • document-archive installs the mri OCR pack so Paperless boots with eng+mri
  • archive Mukurtu image sourced/ruled (or port re-scoped)
  • whakapapa worker cap and/or floor reviewed against the ~1572 MiB measurement

Notes

Items 1 & 2 are clear two-way code fixes an agent can land. Items 3 & 4 carry decisions (a non-existent upstream image; a floor/gate change) — an agent should escalate those under ADR 0174.

## Parent Filed from the #1170 clan-lab floor measurement (Ben's ruling 2026-09-03: one 8 GB droplet, five services sequential; PeerTube on a ≥4 GB droplet under transcode). While standing up each port's real upstream stack on a DO droplet to measure its floor, three of the six ports proved **undeployable as shipped** and a fourth carries a footprint that fills its floor. These are module defects, out of #1170's numbers-only scope — captured here. ## Findings ### 1. `whakapapa` (Gramps Web) — wrong image tag (two-way, agent-fixable) `internal/clan/whakapapa.go:72` pins `ghcr.io/gramps-project/grampsweb:v25.7.2`. That tag **does not exist** — the 25.7.x series is published WITHOUT the `v` prefix (`25.7.2`). The port cannot pull the image as pinned. Fix: drop the `v` for the 25.x tags (verify against ghcr tag list). Measured with `25.7.2`. ### 2. `document-archive` (Paperless-ngx) — OCR language set but pack not installed (two-way, agent-fixable) `paperless.go` sets `PAPERLESS_OCR_LANGUAGE=eng+mri` but never installs the `mri` (te reo Māori) tesseract data. Paperless runs a startup system-check and **refuses to boot**: "The selected ocr language mri is not installed." The upstream image installs extra packs from `PAPERLESS_OCR_LANGUAGES` (note plural). Fix: also set `PAPERLESS_OCR_LANGUAGES="eng mri"` (or bake the pack). Measured with the pack added; OCR of 8 image-PDFs succeeded. ### 3. `archive` (Mukurtu CMS) — pinned image does not exist anywhere (needs a ruling) `internal/clan/archive.go:92` pins `ghcr.io/mukurtucms/mukurtu-cms:v4.0.0`. **No such image is published** — every tag (`v4.0.0`, `4.0.0`, `latest`, `main`) returns denied/none, and the `mukurtucms` org publishes no public container. Mukurtu is a Drupal 11 install profile with no official container. The archive port is therefore **undeployable** and its floor could not be measured (#1170 parked it). A human/ADR-0174 ruling is needed: build & publish a Mukurtu image, switch to a community image, or re-scope the port. ### 4. `whakapapa` footprint fills its 2 GB floor (needs a floor review) Measured steady ~1572 MiB — the upstream image defaults to `GUNICORN_NUM_WORKERS=8` (CPU-independent) and the module ships no cap. That sits at the ceiling of the 2 GB floor's 80% steady budget (~1638 MiB), so whakapapa cannot co-reside with the front door on a 2 GB box. Fix options: cap `GUNICORN_NUM_WORKERS` for a community node (brings it to the surveys tier) and/or raise the floor (a gate change). #1170 left the floor unchanged and recorded the measured steady. ## Acceptance criteria - [ ] whakapapa image tag corrected and pull verified - [ ] document-archive installs the mri OCR pack so Paperless boots with eng+mri - [ ] archive Mukurtu image sourced/ruled (or port re-scoped) - [ ] whakapapa worker cap and/or floor reviewed against the ~1572 MiB measurement ## Notes Items 1 & 2 are clear two-way code fixes an agent can land. Items 3 & 4 carry decisions (a non-existent upstream image; a floor/gate change) — an agent should escalate those under ADR 0174.
Author
Member

swarm-claim host=matou-dev-server-01 run=16678
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=16678 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

Ruled by agent under ADR 0174 — veto anytime.

Worked the four findings; all landed on main. Three were two-way doors I ruled and acted on; the one genuine human/session residue (the strategic Mukurtu image sourcing) is split out.

1. whakapapa image tag (two-way — landed). defaultGrampsWebImage v25.7.2 → 25.7.2. The 25.x series is published WITHOUT the v prefix — verified against the ghcr tag list: v25.7.2 → HTTP 404, 25.7.2 → HTTP 200. Proven by TestRenderWhakapapa_ContainersAndImage (pins the unprefixed tag; a grampsweb:v25 substring now fails).

2. document-archive mri OCR pack (two-way — landed, no functional change needed). The finding was a raw-Docker-image artifact. The port does NOT run the image — it deploys the nixpkgs services.paperless module, whose package option apply PARSES settings.PAPERLESS_OCR_LANGUAGE (splitting on +) and overrides tesseract5's enableLanguages = [ "equ" "osd" "eng" ] ++ …. So PAPERLESS_OCR_LANGUAGE = "eng+mri" ALREADY installs the mri traineddata (a real tesseract5 language, hash present in nixpkgs languages.nix), and Paperless's OCR system-check passes — confirmed against nixpkgs 24.11/26.05/26.11. The plural PAPERLESS_OCR_LANGUAGES is a Docker-image-only knob, DEAD in nixpkgs; it must never be rendered. Documented in paperless.go + GOTCHAS #155; TestRenderPaperless_OCRIncludesTeReoMaori now also asserts the dead plural is absent.

3. archive/Mukurtu absent image (SAFE default ruled; strategic call escalated). The pinned ghcr.io/mukurtucms/mukurtu-cms:v4.0.0 is published nowhere (every tag denied/none — re-confirmed this run). Immediate two-way safety: the archive port is now GATED OUT of P4-S2 selection (provision.provisionImageUnsourced) so an operator is never offered an undeployable service — a selectable lie exactly like a phantom route (ADR 0100), which is what the existing provisionCannotDeploy gate exists to prevent. Reversible the moment a real image is sourced (drop the slug); proven by TestDeploy_ArchiveGatedUntilImageSourced. The STRATEGIC sourcing decision (build & publish a Mukurtu image / adopt a community image / re-scope the port) is a one-way-ish human/session call — split to #1176 (ready-for-human).

4. whakapapa footprint (two-way — landed). Capped GUNICORN_NUM_WORKERS = "4" for a community node (upstream default 8 forks the whole app 8× and filled the 2 GB floor's ~1638 MiB steady budget). SteadyMemBytes kept at the conservative 8-worker measurement (1600 MiB) — an over-estimate is safe; a future drive re-measures under the cap. The floor is UNCHANGED (a gate change stays a human call). Proven by TestRenderWhakapapa_GunicornWorkersCapped.

Why these are two-way doors: each is revertible by a later commit/config change and provable by a test in this repo; none is on the ADR-0174 one-way-door list (no credentials, no security widening — the Mukurtu gate is a NARROWING, no data destruction, no spend). go build ./... && go test ./... green.

**Ruled by agent under ADR 0174 — veto anytime.** Worked the four findings; all landed on `main`. Three were two-way doors I ruled and acted on; the one genuine human/session residue (the strategic Mukurtu image sourcing) is split out. **1. whakapapa image tag (two-way — landed).** `defaultGrampsWebImage` `v25.7.2` → `25.7.2`. The 25.x series is published WITHOUT the `v` prefix — verified against the ghcr tag list: `v25.7.2` → HTTP 404, `25.7.2` → HTTP 200. Proven by `TestRenderWhakapapa_ContainersAndImage` (pins the unprefixed tag; a `grampsweb:v25` substring now fails). **2. document-archive `mri` OCR pack (two-way — landed, no functional change needed).** The finding was a raw-Docker-image artifact. The port does NOT run the image — it deploys the nixpkgs `services.paperless` module, whose `package` option `apply` PARSES `settings.PAPERLESS_OCR_LANGUAGE` (splitting on `+`) and overrides tesseract5's `enableLanguages = [ "equ" "osd" "eng" ] ++ …`. So `PAPERLESS_OCR_LANGUAGE = "eng+mri"` ALREADY installs the `mri` traineddata (a real tesseract5 language, hash present in nixpkgs `languages.nix`), and Paperless's OCR system-check passes — confirmed against nixpkgs 24.11/26.05/26.11. The plural `PAPERLESS_OCR_LANGUAGES` is a Docker-image-only knob, DEAD in nixpkgs; it must never be rendered. Documented in `paperless.go` + GOTCHAS #155; `TestRenderPaperless_OCRIncludesTeReoMaori` now also asserts the dead plural is absent. **3. archive/Mukurtu absent image (SAFE default ruled; strategic call escalated).** The pinned `ghcr.io/mukurtucms/mukurtu-cms:v4.0.0` is published nowhere (every tag denied/none — re-confirmed this run). Immediate two-way safety: the archive port is now GATED OUT of P4-S2 selection (`provision.provisionImageUnsourced`) so an operator is never offered an undeployable service — a selectable lie exactly like a phantom route (ADR 0100), which is what the existing `provisionCannotDeploy` gate exists to prevent. Reversible the moment a real image is sourced (drop the slug); proven by `TestDeploy_ArchiveGatedUntilImageSourced`. The STRATEGIC sourcing decision (build & publish a Mukurtu image / adopt a community image / re-scope the port) is a one-way-ish human/session call — split to **#1176** (`ready-for-human`). **4. whakapapa footprint (two-way — landed).** Capped `GUNICORN_NUM_WORKERS = "4"` for a community node (upstream default 8 forks the whole app 8× and filled the 2 GB floor's ~1638 MiB steady budget). `SteadyMemBytes` kept at the conservative 8-worker measurement (1600 MiB) — an over-estimate is safe; a future drive re-measures under the cap. The floor is UNCHANGED (a gate change stays a human call). Proven by `TestRenderWhakapapa_GunicornWorkersCapped`. Why these are two-way doors: each is revertible by a later commit/config change and provable by a test in this repo; none is on the ADR-0174 one-way-door list (no credentials, no security widening — the Mukurtu gate is a NARROWING, no data destruction, no spend). `go build ./... && go test ./...` green.
Author
Member

close-report for #1175 — status success

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

envelope
{
  "issue": 1175,
  "status": "success",
  "commits": [
    "a1965b8293fa79bd782ef34e9bd91960e3f743d0"
  ],
  "changed_files": [
    "internal/clan/whakapapa.go",
    "internal/clan/whakapapa_test.go",
    "internal/clan/paperless.go",
    "internal/clan/paperless_test.go",
    "internal/provision/deploy.go",
    "internal/provision/deploy_ports_test.go",
    "internal/catalogue/catalogue.go",
    "docs/GOTCHAS.md",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "go build ./...",
      "exit_code": 0
    },
    {
      "command": "go test ./...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "whakapapa image tag corrected and pull verified": "internal/clan/whakapapa.go defaultGrampsWebImage v25.7.2 -> 25.7.2; verified against ghcr (v25.7.2 -> HTTP 404, 25.7.2 -> HTTP 200); TestRenderWhakapapa pins the unprefixed tag and rejects grampsweb:v25",
    "document-archive installs the mri OCR pack so Paperless boots with eng+mri": "the nixpkgs services.paperless module parses PAPERLESS_OCR_LANGUAGE=eng+mri and overrides tesseract5 enableLanguages (installs mri); confirmed against nixpkgs 24.11/26.05/26.11 + languages.nix (mri present); documented in internal/clan/paperless.go + GOTCHAS #155; TestRenderPaperless_OCRIncludesTeReoMaori asserts the dead Docker-only plural PAPERLESS_OCR_LANGUAGES is absent",
    "archive Mukurtu image sourced/ruled (or port re-scoped)": "ruled two-way under ADR 0174: archive port gated out of P4-S2 selection via provision.provisionImageUnsourced (its pinned image is published nowhere, a selectable lie per ADR 0100); reversible when an image is sourced; TestDeploy_ArchiveGatedUntilImageSourced; strategic sourcing decision split to #1176 (ready-for-human)",
    "whakapapa worker cap and/or floor reviewed against the ~1572 MiB measurement": "GUNICORN_NUM_WORKERS capped to 4 in internal/clan/whakapapa.go (upstream default 8 filled the 2 GB floor budget); SteadyMemBytes kept at conservative 8-worker 1600 MiB, floor unchanged (gate change stays a human call); TestRenderWhakapapa_GunicornWorkersCapped"
  },
  "summary": "Closed the four #1170 port deploy-blockers: gramps image tag fix, paperless mri pack confirmed (nixpkgs auto-install, documented), whakapapa gunicorn cap, and archive/Mukurtu gated out of selection with the strategic sourcing split to #1176.",
  "blockers": []
}
**close-report** for #1175 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1175, "status": "success", "commits": [ "a1965b8293fa79bd782ef34e9bd91960e3f743d0" ], "changed_files": [ "internal/clan/whakapapa.go", "internal/clan/whakapapa_test.go", "internal/clan/paperless.go", "internal/clan/paperless_test.go", "internal/provision/deploy.go", "internal/provision/deploy_ports_test.go", "internal/catalogue/catalogue.go", "docs/GOTCHAS.md", "STATUS.md" ], "tests": [ { "command": "go build ./...", "exit_code": 0 }, { "command": "go test ./...", "exit_code": 0 } ], "criteria": { "whakapapa image tag corrected and pull verified": "internal/clan/whakapapa.go defaultGrampsWebImage v25.7.2 -> 25.7.2; verified against ghcr (v25.7.2 -> HTTP 404, 25.7.2 -> HTTP 200); TestRenderWhakapapa pins the unprefixed tag and rejects grampsweb:v25", "document-archive installs the mri OCR pack so Paperless boots with eng+mri": "the nixpkgs services.paperless module parses PAPERLESS_OCR_LANGUAGE=eng+mri and overrides tesseract5 enableLanguages (installs mri); confirmed against nixpkgs 24.11/26.05/26.11 + languages.nix (mri present); documented in internal/clan/paperless.go + GOTCHAS #155; TestRenderPaperless_OCRIncludesTeReoMaori asserts the dead Docker-only plural PAPERLESS_OCR_LANGUAGES is absent", "archive Mukurtu image sourced/ruled (or port re-scoped)": "ruled two-way under ADR 0174: archive port gated out of P4-S2 selection via provision.provisionImageUnsourced (its pinned image is published nowhere, a selectable lie per ADR 0100); reversible when an image is sourced; TestDeploy_ArchiveGatedUntilImageSourced; strategic sourcing decision split to #1176 (ready-for-human)", "whakapapa worker cap and/or floor reviewed against the ~1572 MiB measurement": "GUNICORN_NUM_WORKERS capped to 4 in internal/clan/whakapapa.go (upstream default 8 filled the 2 GB floor budget); SteadyMemBytes kept at conservative 8-worker 1600 MiB, floor unchanged (gate change stays a human call); TestRenderWhakapapa_GunicornWorkersCapped" }, "summary": "Closed the four #1170 port deploy-blockers: gramps image tag fix, paperless mri pack confirmed (nixpkgs auto-install, documented), whakapapa gunicorn cap, and archive/Mukurtu gated out of selection with the strategic sourcing split to #1176.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#1175
No description provided.