deploy-archive: omeka environmentFiles entry not an absolute path — gateway eval-excluded #1247

Closed
opened 2026-09-06 00:58:11 +00:00 by matou-build-agent · 7 comments

The failure

Drive 20260906T003416Z (private-path, target archive) is 6 green / 1 red, no skips — artifacts/verdict.json:

"verdict": "red", "firstRedLeg": "deploy-archive",
"legs": {"total": 7, "green": 6, "red": 1, "skip": 0},
"commit": "3e8cb1713fb148d3647acb92e882bf5beb5e93a8"

The drive got past founding-prefix, operator-session, gateway-change, browse-catalogue, tick-archive and plain-deploy, then died on deploy-archive after 30.7s (artifacts/legs.json):

deploy failed (clean-retry): provision: deploy gateway: clan: config_eval on gateway:
the node was excluded at the eval preflight — nothing was deployed: error:
… while evaluating the attribute 'value'
error: A definition for option `virtualisation.oci-containers.containers.omeka.environmentFiles."[definition 1-entry 1]"' is not of type `absolute path'. Definition values:

This is not the KNOWN frontier. The brief names the own-VPS pairing carrier as this drive's known red, but legs.json records "skip": 0 and carries no skip reasons at all — nothing in this drive's own records defers this. Pairing is not what failed; a Nix type error at the eval preflight is.

The evidence

The same string appears at three independent capture points — the leg record, the droplet-side control plane, and the Playwright artifact:

  • artifacts/legs.json:40, and artifacts/journey.json:41 + :44 (as the top-level fault)
  • logs/guest-control-plane.log:145 — level=WARN msg="provision deploy failed" component=control-plane device=gateway error="…"
  • artifacts/provision-archive.live-…/error-context.md:17, test tests/e2e/provision-archive.live.spec.ts:126

virtualisation.oci-containers.containers.<n>.environmentFiles is types.listOf types.path, so the first entry of the archive module's list is a string that is not an absolute path — empty or relative. The gateway was excluded before anything was applied ("nothing was deployed"), which the box corroborates: logs/guest-failed-units.log reports 0 loaded units listed — no unit ever changed state.

Two further harvested lines point at an unwired archive secret. In logs/guest-control-plane.log:124-125 the files/calendar port logs a real clan-vars secret path while the archive port logs only its API-key store — no secret path at all:

calendar health: … passwordFile=/run/secrets/vars/nextcloud-admin/adminpass
archive health:  … store=/var/lib/archive/state/api-key

and logs/guest-archive-keystore.log reads, in full:

NOT-MINTED

Suspected layer: product

The clan render/attach seam, not the harness and not the fixtures. The archive port's secrets-env-file input looks like a carried string with no producer: no clan-vars generator mints it, so the render emits a non-path into environmentFiles. Commit 3e8cb171 (#1246) is why it surfaced now — it completed the co-host path, so archive.nix is imported and evaluated for the first time instead of sitting as dead text, and eval immediately found the hole. The drive behaved correctly: it caught a real product gap the moment the module went live.

Provenance caveat, stated plainly. logs/healer-claude.out holds a prior healer's diagnosis naming exact sites (archive.go:293,320 rendering environmentFiles = [ %q ] from cfg.SecretsEnvFile; archive_attach.go:90; portroute.go:49 building ArchiveLiveSet{Node, Apex} only; gateway_attach.go:108-122 deriving the module list from portAttachers) and reports a local repro of environmentFiles = [ "" ]. I could not verify any of it. This session's sandbox confines reads to the run directory and refused every attempt on /home/swarm/swarm/Matou/idss/internal/clan/ (both directly and via a sub-agent). Those line numbers are the healer's, unconfirmed — verify them against the tree before acting. What the run directory independently supports is the shape (the archive has no minted secret; files does), not the specific sites.

The healer further claims the same zero-value pattern leaves seven ports' secret fields empty (whakapapa, data-collections, paperless, newsletters, video, surveys alongside archive), each redding identically once co-hosted. Also unverified — but worth checking first, since it would change the fix from one wire into one derived seam.

A second, separate defect: the error is truncated where it matters

Every capture ends at Definition values: with the value list cut off — the one line that would name the offending string. Confirmed by grep -A3 across logs/ and artifacts/: nothing follows it anywhere in the harvest. That is precisely why "empty vs. relative path" cannot be settled from the records alone. Worth fixing in the clan error propagation independently of the archive fix — it is cheap, and it would have made this diagnosis exact.

What plugging it needs

RULED 2026-09-06 (agent, two-way under ADR 0174 — see the ruling comment below): SWARM-READY. The three questions, answered there in full (files precedent #360: per-module generator declaration, one env file per port, Nix-expression path, no Go-carried secret, all env-file ports in this ticket):

  1. Generator shape — one generator per port emitting a single env file (the archive needs DB and Omeka-admin vars across two containers), or per-secret files in the nextcloud-admin shape?
  2. Derivation — does the generator name/path derive from the port slug (a portSecrets table beside portAttachers, so registering a port stays one entry), or is it declared per-render?
  3. Scope — archive alone to unblock #1235, or all seven ports at once, following #1246's own derive-from-the-table precedent?

Both cheap fixes are wrong and should be ruled out explicitly: an invented literal path converts an honest eval red into a runtime EnvironmentFile not found on podman-omeka.service, and dropping environmentFiles when the path is empty boots Omeka and MariaDB with no passwords at all.

The actionable work (per the ruling): a red-first test that the archive render with no secret path carried never emits an empty environmentFiles entry; the generator wiring itself; and a TestPortSecretsCoversEveryAttacher pin so a future port cannot land render-without-secret.

Run-directory notes — what is absent

  • No live-box section was appended to this prompt. I had no access line, so I asked the box nothing; everything above comes from the harvested records. Diagnosing from logs alone is the ordinary case here, not a failure.
  • No logs/droplet-journal.txt. This drive ran against the local payload rather than a droplet — artifacts/host.json gives "payloadMode": "/home/swarm/swarm/rehearsal-payload" and "qemu": "exit ENOENT: spawn qemu-system-x86_64 ENOENT". The droplet-side records are the logs/guest-*.log set, harvested over ssh from 127.0.0.1:46353.
  • Present and read: legs.json, verdict.json, journey.json, host.json, .last-run.json, the leg and ceremony screenshots, the Playwright report with error-context.md and trace.zip, and the full logs/ set.
  • logs/clan-config-snapshot.log records HEAD: cf921ab32d0091357e6a372d61b6179aa9e6411e — that is the generated state/clan-config repo's own commit, not the idss source commit (3e8cb171, per verdict.json). Not a discrepancy.
  • state/clan-config/machines/gateway/ holds no archive.nix, consistent with the clean-retry rolling back after nothing was deployed.

drive 20260906T003416Z red at deploy-archive: deploy failed (clean-retry): provision: deploy gateway: clan: config_eval on gateway: the node was excluded at the eval preflight — nothing was deployed: error: … while evaluating the attribute 'v
evidence: /home/swarm/swarm/Matou/idss/test-results/private-path/20260906T003416Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## The failure Drive `20260906T003416Z` (private-path, target `archive`) is **6 green / 1 red, no skips** — `artifacts/verdict.json`: ``` "verdict": "red", "firstRedLeg": "deploy-archive", "legs": {"total": 7, "green": 6, "red": 1, "skip": 0}, "commit": "3e8cb1713fb148d3647acb92e882bf5beb5e93a8" ``` The drive got past `founding-prefix`, `operator-session`, `gateway-change`, `browse-catalogue`, `tick-archive` and `plain-deploy`, then died on `deploy-archive` after 30.7s (`artifacts/legs.json`): ``` deploy failed (clean-retry): provision: deploy gateway: clan: config_eval on gateway: the node was excluded at the eval preflight — nothing was deployed: error: … while evaluating the attribute 'value' error: A definition for option `virtualisation.oci-containers.containers.omeka.environmentFiles."[definition 1-entry 1]"' is not of type `absolute path'. Definition values: ``` **This is not the KNOWN frontier.** The brief names the own-VPS pairing carrier as this drive's known red, but `legs.json` records `"skip": 0` and carries no skip reasons at all — nothing in this drive's own records defers this. Pairing is not what failed; a Nix type error at the eval preflight is. ## The evidence The same string appears at three independent capture points — the leg record, the droplet-side control plane, and the Playwright artifact: - `artifacts/legs.json:40`, and `artifacts/journey.json:41` + `:44` (as the top-level `fault`) - `logs/guest-control-plane.log:145` — `level=WARN msg="provision deploy failed" component=control-plane device=gateway error="…"` - `artifacts/provision-archive.live-…/error-context.md:17`, test `tests/e2e/provision-archive.live.spec.ts:126` `virtualisation.oci-containers.containers.<n>.environmentFiles` is `types.listOf types.path`, so the first entry of the archive module's list is a string that is not an absolute path — empty or relative. The gateway was excluded *before* anything was applied ("nothing was deployed"), which the box corroborates: `logs/guest-failed-units.log` reports `0 loaded units listed` — no unit ever changed state. Two further harvested lines point at an unwired archive secret. In `logs/guest-control-plane.log:124-125` the files/calendar port logs a real clan-vars secret path while the archive port logs only its API-key store — no secret path at all: ``` calendar health: … passwordFile=/run/secrets/vars/nextcloud-admin/adminpass archive health: … store=/var/lib/archive/state/api-key ``` and `logs/guest-archive-keystore.log` reads, in full: ``` NOT-MINTED ``` ## Suspected layer: product The clan render/attach seam, not the harness and not the fixtures. The archive port's secrets-env-file input looks like a carried string with no producer: no clan-vars generator mints it, so the render emits a non-path into `environmentFiles`. Commit `3e8cb171` (#1246) is why it surfaced now — it completed the co-host path, so `archive.nix` is imported and evaluated for the first time instead of sitting as dead text, and eval immediately found the hole. The drive behaved correctly: it caught a real product gap the moment the module went live. **Provenance caveat, stated plainly.** `logs/healer-claude.out` holds a prior healer's diagnosis naming exact sites (`archive.go:293,320` rendering `environmentFiles = [ %q ]` from `cfg.SecretsEnvFile`; `archive_attach.go:90`; `portroute.go:49` building `ArchiveLiveSet{Node, Apex}` only; `gateway_attach.go:108-122` deriving the module list from `portAttachers`) and reports a local repro of `environmentFiles = [ "" ]`. **I could not verify any of it.** This session's sandbox confines reads to the run directory and refused every attempt on `/home/swarm/swarm/Matou/idss/internal/clan/` (both directly and via a sub-agent). Those line numbers are the healer's, unconfirmed — verify them against the tree before acting. What the run directory independently supports is the *shape* (the archive has no minted secret; files does), not the specific sites. The healer further claims the same zero-value pattern leaves seven ports' secret fields empty (whakapapa, data-collections, paperless, newsletters, video, surveys alongside archive), each redding identically once co-hosted. Also unverified — but worth checking first, since it would change the fix from one wire into one derived seam. ## A second, separate defect: the error is truncated where it matters Every capture ends at `Definition values:` with the value list cut off — the one line that would name the offending string. Confirmed by `grep -A3` across `logs/` and `artifacts/`: nothing follows it anywhere in the harvest. That is precisely why "empty vs. relative path" cannot be settled from the records alone. Worth fixing in the clan error propagation independently of the archive fix — it is cheap, and it would have made this diagnosis exact. ## What plugging it needs **RULED 2026-09-06 (agent, two-way under ADR 0174 — see the ruling comment below): SWARM-READY.** The three questions, answered there in full (files precedent #360: per-module generator declaration, one env file per port, Nix-expression path, no Go-carried secret, all env-file ports in this ticket): 1. **Generator shape** — one generator per port emitting a single env file (the archive needs DB and Omeka-admin vars across two containers), or per-secret files in the `nextcloud-admin` shape? 2. **Derivation** — does the generator name/path derive from the port slug (a `portSecrets` table beside `portAttachers`, so registering a port stays one entry), or is it declared per-render? 3. **Scope** — archive alone to unblock #1235, or all seven ports at once, following #1246's own derive-from-the-table precedent? Both cheap fixes are wrong and should be ruled out explicitly: an invented literal path converts an honest eval red into a runtime `EnvironmentFile not found` on `podman-omeka.service`, and dropping `environmentFiles` when the path is empty boots Omeka and MariaDB with **no passwords at all**. The actionable work (per the ruling): a red-first test that the archive render with no secret path carried never emits an empty `environmentFiles` entry; the generator wiring itself; and a `TestPortSecretsCoversEveryAttacher` pin so a future port cannot land render-without-secret. ## Run-directory notes — what is absent - **No live-box section was appended to this prompt.** I had no access line, so I asked the box nothing; everything above comes from the harvested records. Diagnosing from logs alone is the ordinary case here, not a failure. - **No `logs/droplet-journal.txt`.** This drive ran against the local payload rather than a droplet — `artifacts/host.json` gives `"payloadMode": "/home/swarm/swarm/rehearsal-payload"` and `"qemu": "exit ENOENT: spawn qemu-system-x86_64 ENOENT"`. The droplet-side records are the `logs/guest-*.log` set, harvested over ssh from `127.0.0.1:46353`. - Present and read: `legs.json`, `verdict.json`, `journey.json`, `host.json`, `.last-run.json`, the leg and ceremony screenshots, the Playwright report with `error-context.md` and `trace.zip`, and the full `logs/` set. - `logs/clan-config-snapshot.log` records `HEAD: cf921ab32d0091357e6a372d61b6179aa9e6411e` — that is the generated `state/clan-config` repo's own commit, not the idss source commit (`3e8cb171`, per `verdict.json`). Not a discrepancy. - `state/clan-config/machines/gateway/` holds no `archive.nix`, consistent with the clean-retry rolling back after nothing was deployed. drive `20260906T003416Z` red at `deploy-archive`: `deploy failed (clean-retry): provision: deploy gateway: clan: config_eval on gateway: the node was excluded at the eval preflight — nothing was deployed: error: … while evaluating the attribute 'v` evidence: `/home/swarm/swarm/Matou/idss/test-results/private-path/20260906T003416Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: 5401f695e3a1 -->
Owner

RULED (agent, two-way under ADR 0174 — Ben vetoes async): the files precedent (#360) — each port module DECLARES its own clan-vars generator beside its consumer and references the rendered path as a Nix expression; the Go live set carries NO secret path at all.

Verified line by line on main 3e8cb171 (the healer's sites hold): internal/clan/archive.go:293 and :320 render environmentFiles = [ %q ] from cfg.SecretsEnvFile; archive_attach.go:90 copies live.SecretsEnvFile; the attacher in portroute.go builds ArchiveLiveSet{Node, Apex} only, so the value is "" and the module emits environmentFiles = [ "" ] — types.listOf types.path rejects it at eval, the gateway is eval-excluded, nothing deploys. It surfaced now because #1246 made the module evaluate for the first time. The same carried-string-with-no-producer shape is in whakapapa.go:250/271 (SecretKeyFile), datacollections.go:222 (SecretKeyFile), newsletters.go:251 (EnvFile), video.go:195/247 (EnvFile); docsediting.go:178 (AdminSecretFile) rides its own attach path — audit it the same way. paperless/surveys render no env file (their own pattern; leave them).

The precedent to copy: files.go:483/488 reference config.clan.core.vars.generators.nextcloud-admin.files.adminpass.path / …nextcloud-db.files.dbpass.path IN NIX, and files.go:547-551 declare the generator (files.dbpass = { owner; group; mode }, runtimeInputs = [ pkgs.openssl ], script) in the same module — "single home, ADR 0062, so the deployed secret and the path the daemon reads can never drift from a hand-set literal" (files.go:222-226). Clan vars already deploy on the private VM guest (Nextcloud does), so no new plumbing.

The healer's three questions:

  1. Generator shape: ONE generator per port, ONE env file carrying every var that port's containers need, in KEY=VALUE lines, with the same generated value feeding both sides of a pair (archive: DB_PASSWORD == MARIADB_PASSWORD; plus MARIADB_ROOT_PASSWORD, OMEKA_ADMIN_PASSWORD). Name it <slug>-secrets, file env, mode = "0400", owner root (podman reads it as root). Both archive containers reference the SAME config.clan.core.vars.generators.archive-secrets.files.env.path. Per-secret files in the nextcloud-admin shape are for daemons that take a passwordFile; these ports take env files, so one file it is.
  2. Derivation: per-render declaration — the module owns its secrets, exactly as files does. NOT a portSecrets table beside portAttachers (a Go-side path string is the #360 drift the precedent exists to prevent). What IS pinned centrally: a render test over every portAttachers slug (and docs-editing) asserting no environmentFiles/EnvironmentFile entry is a quoted literal — every one is a config.clan.core.vars.generators.<…>.path expression, and none is empty.
  3. Scope: every port that renders an env file — archive, whakapapa, data-collections, newsletters, video (+ docs-editing if its audit finds no producer) — in this ONE ticket, by the identical mechanical change (#1243/#1246 precedent: the worker did all six/seven). Archive is first-class (the #1235 drive is its acceptance); the siblings are covered by the render test and, where an eval smoke exists (TestGuestImage_EvalSmoke style), by evaluating a co-host module set that includes them.

Rejected, explicitly: an invented literal path (turns an honest eval red into a runtime EnvironmentFile not found); dropping environmentFiles when empty (boots Omeka + MariaDB with NO passwords); carrying the generator path as a Go string on the live set (#360's drift).

What to build

  1. archive.go: declare clan.core.vars.generators.archive-secrets in the render (openssl-random values, one env file, the pair rule above); both containers' environmentFiles = [ config.clan.core.vars.generators.archive-secrets.files.env.path ] as a Nix expression (drop the %q). Delete SecretsEnvFile from ArchiveLiveSet/archiveConfig (a field nobody fills is the bug). Check omeka-reconcile (archive.go:389-430) still works: it runs omeka-s-cli via podman exec and needs no password — confirm the erseco image consumes OMEKA_ADMIN_PASSWORD on first run so adminuser exists when the oneshot mints the key.
  2. The same for whakapapa (GRAMPSWEB_SECRET_KEY), data-collections (GRIST_SESSION_SECRET), newsletters (LISTMONK_ADMIN_PASSWORD + LISTMONK_SMTP_PASSWORD — SMTP is the community mail credential, so that generator may need to read the mail generator's file rather than mint; follow whatever mail.go already does), video (PT_INITIAL_ROOT_PASSWORD); audit docs-editing.
  3. Red-first render tests per port (the archive render with a zero live set never emits an empty or literal env-file entry) + the central pin over every attacher.
  4. go test ./internal/clan/ ./internal/provision/ green; STATUS.md lead; GOTCHAS entry ("a render field only a test fills is "" in production — every secret path is a generator expression in Nix, never a carried string").

Acceptance

Next #1235 fire: deploy-archive passes eval and deploys; logs/guest-omeka-reconcile.log has entries; guest-archive-keystore.log = MINTED; archive-healthy runs the real keep→serve→refuse loop (green, or red with a REAL Omeka reason — then #1213's residuals); archive-door reaches Omeka. The truncated eval error ("Definition values:" with nothing after it) is a separate harness/adapter ticket, filed alongside.

## RULED (agent, two-way under ADR 0174 — Ben vetoes async): **the files precedent (#360) — each port module DECLARES its own clan-vars generator beside its consumer and references the rendered path as a Nix expression; the Go live set carries NO secret path at all.** Verified line by line on main `3e8cb171` (the healer's sites hold): `internal/clan/archive.go:293` and `:320` render `environmentFiles = [ %q ]` from `cfg.SecretsEnvFile`; `archive_attach.go:90` copies `live.SecretsEnvFile`; the attacher in `portroute.go` builds `ArchiveLiveSet{Node, Apex}` only, so the value is `""` and the module emits `environmentFiles = [ "" ]` — `types.listOf types.path` rejects it at eval, the gateway is eval-excluded, nothing deploys. It surfaced now because #1246 made the module evaluate for the first time. The same carried-string-with-no-producer shape is in `whakapapa.go:250/271` (`SecretKeyFile`), `datacollections.go:222` (`SecretKeyFile`), `newsletters.go:251` (`EnvFile`), `video.go:195/247` (`EnvFile`); `docsediting.go:178` (`AdminSecretFile`) rides its own attach path — audit it the same way. paperless/surveys render no env file (their own pattern; leave them). The precedent to copy: `files.go:483/488` reference `config.clan.core.vars.generators.nextcloud-admin.files.adminpass.path` / `…nextcloud-db.files.dbpass.path` IN NIX, and `files.go:547-551` declare the generator (`files.dbpass = { owner; group; mode }`, `runtimeInputs = [ pkgs.openssl ]`, `script`) in the same module — "single home, ADR 0062, so the deployed secret and the path the daemon reads can never drift from a hand-set literal" (`files.go:222-226`). Clan vars already deploy on the private VM guest (Nextcloud does), so no new plumbing. The healer's three questions: 1. **Generator shape:** ONE generator per port, ONE env file carrying every var that port's containers need, in KEY=VALUE lines, with the same generated value feeding both sides of a pair (archive: `DB_PASSWORD` == `MARIADB_PASSWORD`; plus `MARIADB_ROOT_PASSWORD`, `OMEKA_ADMIN_PASSWORD`). Name it `<slug>-secrets`, file `env`, `mode = "0400"`, owner root (podman reads it as root). Both archive containers reference the SAME `config.clan.core.vars.generators.archive-secrets.files.env.path`. Per-secret files in the nextcloud-admin shape are for daemons that take a `passwordFile`; these ports take env files, so one file it is. 2. **Derivation:** per-render declaration — the module owns its secrets, exactly as files does. NOT a `portSecrets` table beside `portAttachers` (a Go-side path string is the #360 drift the precedent exists to prevent). What IS pinned centrally: a render test over every `portAttachers` slug (and docs-editing) asserting no `environmentFiles`/`EnvironmentFile` entry is a quoted literal — every one is a `config.clan.core.vars.generators.<…>.path` expression, and none is empty. 3. **Scope:** every port that renders an env file — archive, whakapapa, data-collections, newsletters, video (+ docs-editing if its audit finds no producer) — in this ONE ticket, by the identical mechanical change (#1243/#1246 precedent: the worker did all six/seven). Archive is first-class (the #1235 drive is its acceptance); the siblings are covered by the render test and, where an eval smoke exists (`TestGuestImage_EvalSmoke` style), by evaluating a co-host module set that includes them. Rejected, explicitly: an invented literal path (turns an honest eval red into a runtime `EnvironmentFile not found`); dropping `environmentFiles` when empty (boots Omeka + MariaDB with NO passwords); carrying the generator path as a Go string on the live set (#360's drift). ## What to build 1. `archive.go`: declare `clan.core.vars.generators.archive-secrets` in the render (openssl-random values, one `env` file, the pair rule above); both containers' `environmentFiles = [ config.clan.core.vars.generators.archive-secrets.files.env.path ]` as a Nix expression (drop the `%q`). Delete `SecretsEnvFile` from `ArchiveLiveSet`/`archiveConfig` (a field nobody fills is the bug). Check `omeka-reconcile` (`archive.go:389-430`) still works: it runs `omeka-s-cli` via `podman exec` and needs no password — confirm the erseco image consumes `OMEKA_ADMIN_PASSWORD` on first run so `adminuser` exists when the oneshot mints the key. 2. The same for whakapapa (`GRAMPSWEB_SECRET_KEY`), data-collections (`GRIST_SESSION_SECRET`), newsletters (`LISTMONK_ADMIN_PASSWORD` + `LISTMONK_SMTP_PASSWORD` — SMTP is the community mail credential, so that generator may need to read the mail generator's file rather than mint; follow whatever `mail.go` already does), video (`PT_INITIAL_ROOT_PASSWORD`); audit docs-editing. 3. Red-first render tests per port (the archive render with a zero live set never emits an empty or literal env-file entry) + the central pin over every attacher. 4. `go test ./internal/clan/ ./internal/provision/` green; STATUS.md lead; GOTCHAS entry ("a render field only a test fills is `""` in production — every secret path is a generator expression in Nix, never a carried string"). ## Acceptance Next #1235 fire: `deploy-archive` passes eval and deploys; `logs/guest-omeka-reconcile.log` has entries; `guest-archive-keystore.log` = MINTED; `archive-healthy` runs the real keep→serve→refuse loop (green, or red with a REAL Omeka reason — then #1213's residuals); `archive-door` reaches Omeka. The truncated eval error ("Definition values:" with nothing after it) is a separate harness/adapter ticket, filed alongside.
Author
Member

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

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

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

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

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

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

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

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

Built ddc96c9b — following Ben's ruling, with two two-way scope calls (ADR 0174, veto anytime)

All five ruled ports converted to per-module clan.core.vars.generators.<slug>-secrets: archive, data-collections, whakapapa, newsletters, video. Carried *File fields deleted from config + live set. Central pin TestPortSecretsNeverRendersAnEmptyOrLiteralEnvFile over every portAttachers slug. go test ./internal/clan/ ./internal/provision/ + go build ./... + gofmt + golangci-lint green. GOTCHAS #174.

Scope call 1 — docs-editing deferred to #1250 (not converted). The ruling asked for docs-editing "if its audit finds no producer". The audit found no producer AND no defined consumer: (a) docs-editing renders systemd.services.coolwsd.serviceConfig.EnvironmentFile = "", but that is a systemd freeform string, not types.path — it evals fine when empty, so it does NOT exhibit the #1247 eval-exclusion; (b) it is not a portAttachers port (own coupled path), so the central pin does not reach it; (c) the nixpkgs collabora module exposes no admin/username/password/env option, so which env var coolwsd reads for its admin console is undefined in the repo — a needs-design decision, not a mechanical carried-string→generator conversion. Filed #1250 (needs-design) with the full contract question. Two-way: revertible, and #1250 can fold it into the pin once the contract is decided.

Scope call 2 — paperless/surveys left, per your ruling. Confirmed they carry the same empty-render pattern but via services.paperless.passwordFile/environmentFile and surveys passwordFile/LoadCredential — health-check-coupled admin passwords, "their own pattern". Left untouched; the pin does not check those option names, so they pass trivially, and the parity guard still forces every attacher into the pin.

The truncated eval-error diagnosis was #1248 (already built 5855aecf). #1235 re-armed — the next fire proves deploy-archive passes eval and deploys.

## Built `ddc96c9b` — following Ben's ruling, with two two-way scope calls (ADR 0174, veto anytime) All five ruled ports converted to per-module `clan.core.vars.generators.<slug>-secrets`: archive, data-collections, whakapapa, newsletters, video. Carried `*File` fields deleted from config + live set. Central pin `TestPortSecretsNeverRendersAnEmptyOrLiteralEnvFile` over every `portAttachers` slug. `go test ./internal/clan/ ./internal/provision/` + `go build ./...` + gofmt + golangci-lint green. GOTCHAS #174. **Scope call 1 — docs-editing deferred to #1250 (not converted).** The ruling asked for docs-editing "if its audit finds no producer". The audit found no producer AND no defined consumer: (a) docs-editing renders `systemd.services.coolwsd.serviceConfig.EnvironmentFile = ""`, but that is a systemd *freeform string*, not `types.path` — it evals fine when empty, so it does NOT exhibit the #1247 eval-exclusion; (b) it is not a `portAttachers` port (own coupled path), so the central pin does not reach it; (c) the nixpkgs collabora module exposes no admin/username/password/env option, so which env var coolwsd reads for its admin console is undefined in the repo — a needs-design decision, not a mechanical carried-string→generator conversion. Filed #1250 (needs-design) with the full contract question. Two-way: revertible, and #1250 can fold it into the pin once the contract is decided. **Scope call 2 — paperless/surveys left, per your ruling.** Confirmed they carry the same empty-render pattern but via `services.paperless.passwordFile`/`environmentFile` and surveys `passwordFile`/`LoadCredential` — health-check-coupled admin passwords, "their own pattern". Left untouched; the pin does not check those option names, so they pass trivially, and the parity guard still forces every attacher into the pin. The truncated eval-error diagnosis was #1248 (already built `5855aecf`). #1235 re-armed — the next fire proves `deploy-archive` passes eval and deploys.
Author
Member

close-report for #1247 — status success

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

envelope
{
  "issue": 1247,
  "status": "success",
  "commits": [
    "ddc96c9b7234478d8d697a894cbf062b80c17919"
  ],
  "changed_files": [
    "STATUS.md",
    "docs/GOTCHAS.md",
    "internal/clan/archive.go",
    "internal/clan/archive_attach.go",
    "internal/clan/archive_attach_test.go",
    "internal/clan/archive_test.go",
    "internal/clan/datacollections.go",
    "internal/clan/datacollections_attach.go",
    "internal/clan/datacollections_attach_test.go",
    "internal/clan/datacollections_test.go",
    "internal/clan/newsletters.go",
    "internal/clan/newsletters_attach.go",
    "internal/clan/newsletters_attach_test.go",
    "internal/clan/newsletters_test.go",
    "internal/clan/portsecrets.go",
    "internal/clan/portsecrets_test.go",
    "internal/clan/video.go",
    "internal/clan/video_attach.go",
    "internal/clan/video_attach_test.go",
    "internal/clan/video_test.go",
    "internal/clan/whakapapa.go",
    "internal/clan/whakapapa_attach.go",
    "internal/clan/whakapapa_attach_test.go",
    "internal/clan/whakapapa_test.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go test ./internal/clan/ ./internal/provision/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go build ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c gofmt -l internal/clan/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c golangci-lint run ./internal/clan/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "archive render declares its own clan-vars generator; SecretsEnvFile deleted; both containers reference the generator path as a Nix expression (never an empty/literal)": "internal/clan/archive.go renderArchiveSecrets + archiveSecretsEnvPath (%s not %q); ArchiveConfig/ArchiveLiveSet SecretsEnvFile removed; TestRenderArchive_SecretsEnvFileIsAGeneratorPathNotAnEmptyLiteral",
    "whakapapa/data-collections/newsletters/video converted by the identical mechanical change; carried *File fields deleted": "internal/clan/{whakapapa,datacollections,newsletters,video}.go renderXxxSecrets + generator path expressions; live-set/config fields removed; render tests updated (whakapapa_test/datacollections_test/newsletters_test/video_test)",
    "red-first render test that a zero live set never emits an empty environmentFiles entry": "TestRenderArchive_SecretsEnvFileIsAGeneratorPathNotAnEmptyLiteral (proven red on ddc96c9b's parent output environmentFiles = [ \"\" ]), plus per-port no-empty-literal guards",
    "central pin so a future port cannot land render-without-secret": "TestPortSecretsNeverRendersAnEmptyOrLiteralEnvFile (internal/clan/portsecrets_test.go) iterates every portAttachers slug with a zero config; parity guard forces new ports into the pin",
    "go test ./internal/clan/ ./internal/provision/ green; STATUS lead; GOTCHAS entry": "tests[] all exit 0; STATUS.md #1247 lead; docs/GOTCHAS.md #174"
  },
  "summary": "Every routable catalogue port that carried a secret path as an unfilled Go string now declares its own clan-vars generator and references the rendered path as a Nix expression, so a co-hosted port stops rendering the empty path that eval-excluded the gateway; docs-editing deferred to #1250, paperless/surveys left per ruling.",
  "reason": "The drive-level acceptance (deploy-archive passes eval and deploys) is #1235's next paid re-fire, not runnable here; this ticket delivers the ruled code fix + central pin, all self-verified green.",
  "blockers": []
}
**close-report** for #1247 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1247, "status": "success", "commits": [ "ddc96c9b7234478d8d697a894cbf062b80c17919" ], "changed_files": [ "STATUS.md", "docs/GOTCHAS.md", "internal/clan/archive.go", "internal/clan/archive_attach.go", "internal/clan/archive_attach_test.go", "internal/clan/archive_test.go", "internal/clan/datacollections.go", "internal/clan/datacollections_attach.go", "internal/clan/datacollections_attach_test.go", "internal/clan/datacollections_test.go", "internal/clan/newsletters.go", "internal/clan/newsletters_attach.go", "internal/clan/newsletters_attach_test.go", "internal/clan/newsletters_test.go", "internal/clan/portsecrets.go", "internal/clan/portsecrets_test.go", "internal/clan/video.go", "internal/clan/video_attach.go", "internal/clan/video_attach_test.go", "internal/clan/video_test.go", "internal/clan/whakapapa.go", "internal/clan/whakapapa_attach.go", "internal/clan/whakapapa_attach_test.go", "internal/clan/whakapapa_test.go" ], "tests": [ { "command": "nix develop .#go-ci -c go test ./internal/clan/ ./internal/provision/", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go build ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c gofmt -l internal/clan/", "exit_code": 0 }, { "command": "nix develop .#go-ci -c golangci-lint run ./internal/clan/", "exit_code": 0 } ], "criteria": { "archive render declares its own clan-vars generator; SecretsEnvFile deleted; both containers reference the generator path as a Nix expression (never an empty/literal)": "internal/clan/archive.go renderArchiveSecrets + archiveSecretsEnvPath (%s not %q); ArchiveConfig/ArchiveLiveSet SecretsEnvFile removed; TestRenderArchive_SecretsEnvFileIsAGeneratorPathNotAnEmptyLiteral", "whakapapa/data-collections/newsletters/video converted by the identical mechanical change; carried *File fields deleted": "internal/clan/{whakapapa,datacollections,newsletters,video}.go renderXxxSecrets + generator path expressions; live-set/config fields removed; render tests updated (whakapapa_test/datacollections_test/newsletters_test/video_test)", "red-first render test that a zero live set never emits an empty environmentFiles entry": "TestRenderArchive_SecretsEnvFileIsAGeneratorPathNotAnEmptyLiteral (proven red on ddc96c9b's parent output environmentFiles = [ \"\" ]), plus per-port no-empty-literal guards", "central pin so a future port cannot land render-without-secret": "TestPortSecretsNeverRendersAnEmptyOrLiteralEnvFile (internal/clan/portsecrets_test.go) iterates every portAttachers slug with a zero config; parity guard forces new ports into the pin", "go test ./internal/clan/ ./internal/provision/ green; STATUS lead; GOTCHAS entry": "tests[] all exit 0; STATUS.md #1247 lead; docs/GOTCHAS.md #174" }, "summary": "Every routable catalogue port that carried a secret path as an unfilled Go string now declares its own clan-vars generator and references the rendered path as a Nix expression, so a co-hosted port stops rendering the empty path that eval-excluded the gateway; docs-editing deferred to #1250, paperless/surveys left per ruling.", "reason": "The drive-level acceptance (deploy-archive passes eval and deploys) is #1235's next paid re-fire, not runnable here; this ticket delivers the ruled code fix + central pin, all self-verified green.", "blockers": [] } ``` </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#1247
No description provided.