service: the control plane's role, measured from 153 and declared (THE-98) #4

Merged
pit merged 13 commits from hermes/the98-paperclip-service into main 2026-11-14 19:37:39 +00:00
Owner

Based on main at 9074f26. #2 and #3 merged, and this branch's stack commits collapsed into its squash, so the diff is this role's alone: 19 files, +866/−41. The commits are the role, the corrections found while reading it against the host, one duplicate HOSTS_PATTERN the rebase left behind, the fixes of both review rounds, and the merge of main that resolved six conflicts with #3.

What this is

The 153 half of Annex B #4 of THE-60 §5–§6 — the role that makes a fresh control-plane host reach a working board with nothing typed from memory. paperclip/service/ is an Ansible play in the shape the siblings carry: ansible.cfg, requirements.yml, inventories/{pre,prod}/hosts, site.yml, roles/paperclip/{defaults,tasks,templates,files,handlers}.

The role

piece what it converges where it came from
base apt index, six base packages, NodeSource at node 24, apt.postgresql.org at postgres 17, the paperclip account at uid 1000, /opt/paperclip-data and the CLI's own directories measured on 153
release 0.3.1 from the tag, checked against sha256 3b44c8f0…f5 before unpacking, at /opt/paperclip-ai; pnpm 10.34.9 as a global npm install; pnpm install --frozen-lockfile and pnpm build only when the tree moved GET /api/health, the host's manifests
database role paperclip with the store's password, database paperclip owned by it, created empty — the app's migrations are the only thing that ever writes a schema here pg_roles, pg_database on 153
environment /opt/paperclip-ai/.env, 13 names, 0600, no_log; two from the store, eleven literals, and the password escaped for the URL's authority the host's own file, names only
pair /opt/paperclip-ca.crt, the CA 135's front door certificate is issued from — installed, never minted the host's copy and 135's
unit the measured system unit: pnpm paperclipai run, EnvironmentFile, DISABLE_AUTOUPDATER=1, Restart=on-failure systemctl cat
refusals an empty credential, the wrong cluster, a CA that is not the pair's, a rebuild without an archive, and an empty database before the unit starts design §6, ADR-0015

The three facts the ticket asked for

docs/hosts.md carried them as missing. They were read on 153 on 2026-11-12, one command at a time through pct exec from duku:

  • the database's identity — role paperclip, database paperclip owned by it, and the cluster's postgres superuser the only other role;
  • the app's environment names — thirteen, never a value (DATABASE_URL and BETTER_AUTH_SECRET are the credentials);
  • disk usage — 5.0 G / 168 M / 4.7 M, rootfs 20 G with 12 G used, which is the page's own figure for the same reading.

The page also gained a provenance correction: node is NodeSource's 24.x, not Debian's, and pnpm is a global npm install, not corepack. The design carried neither.

Three corrections the host forced

  • The cluster pin is main under /etc/postgresql/17/. pg_lsclusters prints the major and the cluster as its first two columns — 17 main — so 17-main is a reading nobody prints and a path nobody has. Read back: 17 main 5432 online postgres /var/lib/postgresql/17/main. The pin is the second column alone, and the defaults' comment, the assert's message and the page now spell it that way.
  • The CA pin is the file's checksum, not the certificate's fingerprint. The role's task compares stat.checksum — the SHA-256 of the PEM bytes, 26ab4c…54f7. The certificate's SHA-256 fingerprint (BF:86…BF:7D) is the same certificate and a different number; pinning it would have failed every real run after writing the right file. Both are measured on 153.
  • The play becomes with su, not sudo. It reaches the Guest as root (the provider injects the operator's keys into root alone) and becomes the app's account and postgres from there, which root may do without a password. sudo is on 153 only because its community script installed it; a role that needed a package it does not declare would be a role that forgot one.

The first review round

Six findings, all cleared — one BLOCKER and five advisories. The blocker was the class a host-free service-test exists to catch; that seam is #3's (hermes) and this role's extension of it is still the follow-up named below.

finding what changed commit
BLOCKER — a / in the store's database password renders a DATABASE_URL the release's driver cannot parse, and the unit crash-loops on Restart=on-failure the password's authority terminator is escaped too: urlencode leaves / safe, so the template adds replace('/', '%2F') after it. Probed with the pinned driver on four password shapes, two of them carrying / f9b6e44
the rebuild guard read the archive on the Guest while its own message says the runner the stat is delegated to localhost with become: false (the play's su escalation is the Guest's), and the defaults say the dump is staged on the runner d0da140
this body said the cluster gate holds in a --check; it is skipped there the refusal paragraph below says which gate holds where body only
/opt/paperclip-data at 168 M on the page and 265 M in this body's fact list the body takes the page's figure, read from the same measurement body only
the body claimed no_log, the task carried diff: false the task carries no_log: true, as hermes/service has it cd4434a
17-main in the defaults' comment, the failure message and the page, against 17 main in this body one spelling: the cluster is main, printed as 17 main dc16071

The second review round

Round 2 (review #683, REQUEST_CHANGES, head dc16071) carried no BLOCKER: five advisories, and the verdict turned on their count. All five are answered below, each where it points. S-2 is corrected rather than cleared: the trade-off the review described is a different setting from the one the file carries.

advisory what changed commit
S-1 — the Postgres collection was pinned by range, and a fresh install resolved 5.1.2 where the gate installed 5.1.1 pinned to 5.1.1, the version the gate exercised 06a8df5
S-2 — host_key_checking = accept_new read as trust on first use it is not: the setting parses as False, so ssh runs with StrictHostKeyChecking=no. The comment in ansible.cfg now says so; the setting is unchanged, see Merge Danger aabf85f, corrected by 856d244
S-3 — the prod host paperclip shares its group's name, so ansible warned on every run the host is paperclip-prod; the group and group_vars/paperclip bind as before aed4440
S-4 — the two secret/services/paperclip/* rows follow a grammar ADR-0013 does not describe named in What this change does not do; the map's grammar is unchanged here body only
S-5 — the counts did not reproduce: --list-tasks 43, env-test 69 corrected to 44 and 47 in Evidence body only

What stops a run, and says what a person does

refusal when names
a credential is empty before anything is written the two secret/services/paperclip/* paths, and the make env command that fetches them
the cluster is not the pinned one after the packages, before the database pg_lsclusters, the pin's file, that the archive's restore lands in the pinned cluster
the CA is not the pair's before the unit starts both checksums, and that it must not be regenerated (135's certificate is issued from it)
a rebuild has no archive paperclip_rebuild=true the archive variable, read on the runner, and docs/rebuild.md step 0
the database has no history before the unit starts the empty database, pg_restore, the archive, and that the app must not initialise what the restore would fight

Every refusal runs on a real run only where it needs the host. The credential guard holds in a --check too — it reads the environment a rehearsal has. The cluster gate does not (when: not ansible_check_mode): a fresh Guest carries no /etc/postgresql/17/main until the apply creates it, so an unguarded assert would red a rehearsal for a precondition the apply supplies. A rehearsal proves the guard; the apply proves the gate.

Evidence

check result
mise exec -- make check at 856d244 rc 0 — env-check (pin and map agree, 2 ok), env-test (47 ok lines, all passed), plan-test (22 ok lines, all passed), fmt-check silent
ansible-playbook -i inventories/prod/hosts --syntax-check site.yml rc 0, run from paperclip/service/ where the Makefile puts it, with no group/host warning since aed4440 (the prod host is paperclip-prod)
--list-tasks rc 0, 44 tasks render (44 TAGS: lines), both refusal tasks and the env task included
the rendered DATABASE_URL, through the release's own driver (postgres@3.4.5, what packages/db pins) 4/4 shapes parse with the password intact — two carrying /, two without. At 688cefb both / shapes threw TypeError: Invalid URL
no_log as the log guard --check --diff with sentinel credentials: no_log: false printed both values, no_log: true printed neither
the rebuild guard, driven both ways (measured at dc16071, before the host was renamed) archive named on the runner → ok: [paperclip -> localhost], rc 0; path absent → rc 2, and the refusal names the path and the runner
the pin against the live host, read-only cluster 17 main; roles/databases paperclip/paperclip; the 13 .env names exactly the template's; every non-secret value equal to the role's literal; the unit identical field for field; uid 1000; the CA 1 574 B, 0644, sha256 26ab4c…54f7; node v24.22.2; pnpm 10.34.9; app 0.3.1
the release tarball downloaded from the tag and hashed on 135: 3b44c8f0…f5, the pin
make service-check HOST=paperclip against 153 not run — no key in the estate reaches 153 and no rehearsal Guest exists. Rehearsed here with SERVICE_ARGS='-e ansible_host=127.0.0.1 -e ansible_connection=local -e ansible_become=false' instead, at 856d244: paperclip-prod : ok=22 changed=10 failed=0 skipped=23, every mutating task skipped, and no sentinel value in the --diff output (0 hits). The first --check against the machine is the merge's own make service HOST=paperclip, which rehearses before it applies, or the Operator's against a throwaway with SERVICE_ARGS='-e ansible_host=<address>'

Merge Danger

The store has no value at either path this role reads. secret/services/paperclip/db and secret/services/paperclip/auth are new, declared by this branch's env.map rows and .env.example; nothing writes them. A fetch refuses the whole run by name until the Operator seeds both, so make service HOST=paperclip stops before it touches the machine — the designed refusal, not a half-built host.

The runner cannot read them yet. infra-secrets' bao/policies/automation-runner.hcl grants no secret/services/paperclip/* path. The companion change is olympus/infra-secrets#58 (policy + the two layout rows). Order: that policy applied, the two values written, then this branch's first deploy.

The first deploy restarts the control plane. The .env template is written whole and differs from the live file, so its handler restarts paperclip.service; every agent run on 153 dies at that moment, this one included. The database password in the store becomes the role's password on the same run, and the rendered DATABASE_URL uses it, so the pair moves together — but a store value that is wrong is a board that does not come back until it is fixed. paperclip/guest keeps prevent_destroy; the role never re-creates the container.

First contact with 153 checks no host key. host_key_checking is off in this play: accept_new is not a boolean, Ansible reads it as False, and ssh runs with StrictHostKeyChecking=no on every run (measured, see ansible.cfg). The first deploy writes the store's database password and auth secret to 153, and no fingerprint of 153 is pinned. Closing it is the Operator's: read 153's fingerprint on the host (ssh-keygen -lf /etc/ssh/ssh_host_*_key.pub) and commit it, or accept the open setting on the record. Neither is decided in this change.

Blast radius — the CA is a contract. 135's front-door certificate is issued from this CA, and 153's copy is what lets its node trust that certificate. The role installs the copy both hosts agreed on and refuses one that differs; it never mints a CA.

What this change does not do

remains why
adopting the two containers THE-65: an import is not a deploy
the rebuild and break-glass guides THE-66; this role's refusals point at docs/rebuild.md, which is that ticket's page
paperclip.thepit.space in infra-forge/npm/edge a follow-up in that repository, as the ticket says
seeding the two store paths the values are on the host, and writing a secret/services/* value is the Operator's act
a host-free service-test for this role #3 introduces the first one (hermes); extending it to both hosts is a follow-up, and the floor here is green without it. The round-1 blocker — render the template for a password carrying / and assert the result parses — is exactly the case that seam would hold, so it is the follow-up's first case
the host-key decision: pin 153's fingerprint, or check host keys on first use the fingerprint is read on 153 by the Operator, and whether checking is on is the Operator's call; until then the play runs with checking off
the grammar of the two store rows, actors=pit,hermes,runner secret/services/paperclip/{db,auth} (env.map:75–76) ADR-0013 (olympus/workshop docs/adr/0013, at origin/main 186d2d9) says reach is written against a role, and that an actor's name appears in the record of who holds what, never in the text that says what may be done. Every row of env.map already carries the actors= grammar (env.map:34–46), and scripts/env.sh, which reads it, is vendored and never edited (AGENTS.md §Secrets), so these rows follow the grammar rather than change it. Whether the fetch's grammar moves to roles is a question for the board. It is not posted from here: no Paperclip tool is available to this round
**Based on `main` at `9074f26`.** #2 and #3 merged, and this branch's stack commits collapsed into its squash, so the diff is this role's alone: **19 files, +866/−41**. The commits are the role, the corrections found while reading it against the host, one duplicate `HOSTS_PATTERN` the rebase left behind, the fixes of both review rounds, and the merge of `main` that resolved six conflicts with #3. ## What this is The 153 half of Annex B #4 of [THE-60](/THE/issues/THE-60#document-design) §5–§6 — the role that makes a fresh control-plane host reach a working board with nothing typed from memory. `paperclip/service/` is an Ansible play in the shape the siblings carry: `ansible.cfg`, `requirements.yml`, `inventories/{pre,prod}/hosts`, `site.yml`, `roles/paperclip/{defaults,tasks,templates,files,handlers}`. ## The role | piece | what it converges | where it came from | | --- | --- | --- | | `base` | apt index, six base packages, NodeSource at node 24, apt.postgresql.org at postgres 17, the `paperclip` account at uid 1000, `/opt/paperclip-data` and the CLI's own directories | measured on 153 | | `release` | `0.3.1` from the tag, checked against sha256 `3b44c8f0…f5` before unpacking, at `/opt/paperclip-ai`; pnpm `10.34.9` as a global npm install; `pnpm install --frozen-lockfile` and `pnpm build` only when the tree moved | `GET /api/health`, the host's manifests | | `database` | role `paperclip` with the store's password, database `paperclip` owned by it, created empty — the app's migrations are the only thing that ever writes a schema here | `pg_roles`, `pg_database` on 153 | | `environment` | `/opt/paperclip-ai/.env`, 13 names, 0600, `no_log`; two from the store, eleven literals, and the password escaped for the URL's authority | the host's own file, names only | | `pair` | `/opt/paperclip-ca.crt`, the CA 135's front door certificate is issued from — installed, never minted | the host's copy and 135's | | `unit` | the measured system unit: `pnpm paperclipai run`, `EnvironmentFile`, `DISABLE_AUTOUPDATER=1`, `Restart=on-failure` | `systemctl cat` | | `refusals` | an empty credential, the wrong cluster, a CA that is not the pair's, a rebuild without an archive, and an empty database before the unit starts | design §6, ADR-0015 | ## The three facts the ticket asked for `docs/hosts.md` carried them as missing. They were read on 153 on 2026-11-12, one command at a time through `pct exec` from `duku`: - the database's identity — role `paperclip`, database `paperclip` owned by it, and the cluster's `postgres` superuser the only other role; - the app's environment names — thirteen, never a value (`DATABASE_URL` and `BETTER_AUTH_SECRET` are the credentials); - disk usage — 5.0 G / 168 M / 4.7 M, rootfs 20 G with 12 G used, which is the page's own figure for the same reading. The page also gained a provenance correction: node is NodeSource's 24.x, not Debian's, and pnpm is a global npm install, not corepack. The design carried neither. ## Three corrections the host forced - **The cluster pin is `main` under `/etc/postgresql/17/`.** `pg_lsclusters` prints the major and the cluster as its first two columns — `17 main` — so `17-main` is a reading nobody prints and a path nobody has. Read back: `17 main 5432 online postgres /var/lib/postgresql/17/main`. The pin is the second column alone, and the defaults' comment, the assert's message and the page now spell it that way. - **The CA pin is the file's checksum, not the certificate's fingerprint.** The role's task compares `stat.checksum` — the SHA-256 of the PEM bytes, `26ab4c…54f7`. The certificate's SHA-256 fingerprint (`BF:86…BF:7D`) is the same certificate and a different number; pinning it would have failed every real run after writing the right file. Both are measured on 153. - **The play becomes with `su`, not `sudo`.** It reaches the Guest as root (the provider injects the operator's keys into root alone) and becomes the app's account and postgres from there, which root may do without a password. `sudo` is on 153 only because its community script installed it; a role that needed a package it does not declare would be a role that forgot one. ## The first review round Six findings, all cleared — one BLOCKER and five advisories. The blocker was the class a host-free `service-test` exists to catch; that seam is #3's (hermes) and this role's extension of it is still the follow-up named below. | finding | what changed | commit | | --- | --- | --- | | **BLOCKER** — a `/` in the store's database password renders a `DATABASE_URL` the release's driver cannot parse, and the unit crash-loops on `Restart=on-failure` | the password's authority terminator is escaped too: `urlencode` leaves `/` safe, so the template adds `replace('/', '%2F')` after it. Probed with the pinned driver on four password shapes, two of them carrying `/` | `f9b6e44` | | the rebuild guard read the archive on the Guest while its own message says the runner | the `stat` is delegated to `localhost` with `become: false` (the play's `su` escalation is the Guest's), and the defaults say the dump is staged on the runner | `d0da140` | | this body said the cluster gate holds in a `--check`; it is skipped there | the refusal paragraph below says which gate holds where | body only | | `/opt/paperclip-data` at 168 M on the page and 265 M in this body's fact list | the body takes the page's figure, read from the same measurement | body only | | the body claimed `no_log`, the task carried `diff: false` | the task carries `no_log: true`, as `hermes/service` has it | `cd4434a` | | `17-main` in the defaults' comment, the failure message and the page, against `17 main` in this body | one spelling: the cluster is `main`, printed as `17 main` | `dc16071` | ## The second review round Round 2 (review #683, `REQUEST_CHANGES`, head `dc16071`) carried **no BLOCKER**: five advisories, and the verdict turned on their count. All five are answered below, each where it points. S-2 is corrected rather than cleared: the trade-off the review described is a different setting from the one the file carries. | advisory | what changed | commit | | --- | --- | --- | | S-1 — the Postgres collection was pinned by range, and a fresh install resolved `5.1.2` where the gate installed `5.1.1` | pinned to `5.1.1`, the version the gate exercised | `06a8df5` | | S-2 — `host_key_checking = accept_new` read as trust on first use | it is not: the setting parses as `False`, so ssh runs with `StrictHostKeyChecking=no`. The comment in `ansible.cfg` now says so; the setting is unchanged, see *Merge Danger* | `aabf85f`, corrected by `856d244` | | S-3 — the prod host `paperclip` shares its group's name, so ansible warned on every run | the host is `paperclip-prod`; the group and `group_vars/paperclip` bind as before | `aed4440` | | S-4 — the two `secret/services/paperclip/*` rows follow a grammar ADR-0013 does not describe | named in *What this change does not do*; the map's grammar is unchanged here | body only | | S-5 — the counts did not reproduce: `--list-tasks` 43, env-test 69 | corrected to 44 and 47 in *Evidence* | body only | ## What stops a run, and says what a person does | refusal | when | names | | --- | --- | --- | | a credential is empty | before anything is written | the two `secret/services/paperclip/*` paths, and the `make env` command that fetches them | | the cluster is not the pinned one | after the packages, before the database | `pg_lsclusters`, the pin's file, that the archive's restore lands in the pinned cluster | | the CA is not the pair's | before the unit starts | both checksums, and that it must not be regenerated (135's certificate is issued from it) | | a rebuild has no archive | `paperclip_rebuild=true` | the archive variable, read on the runner, and `docs/rebuild.md` step 0 | | the database has no history | before the unit starts | the empty database, `pg_restore`, the archive, and that the app must not initialise what the restore would fight | Every refusal runs on a real run only where it needs the host. The credential guard holds in a `--check` too — it reads the environment a rehearsal has. The cluster gate does not (`when: not ansible_check_mode`): a fresh Guest carries no `/etc/postgresql/17/main` until the apply creates it, so an unguarded assert would red a rehearsal for a precondition the apply supplies. A rehearsal proves the guard; the apply proves the gate. ## Evidence | check | result | | --- | --- | | `mise exec -- make check` at `856d244` | **rc 0** — env-check (pin and map agree, 2 `ok`), env-test (47 `ok` lines, all passed), plan-test (22 `ok` lines, all passed), fmt-check silent | | `ansible-playbook -i inventories/prod/hosts --syntax-check site.yml` | **rc 0**, run from `paperclip/service/` where the Makefile puts it, with no group/host warning since `aed4440` (the prod host is `paperclip-prod`) | | `--list-tasks` | rc 0, 44 tasks render (44 `TAGS:` lines), both refusal tasks and the env task included | | the rendered `DATABASE_URL`, through the release's own driver (`postgres@3.4.5`, what `packages/db` pins) | **4/4 shapes parse with the password intact** — two carrying `/`, two without. At `688cefb` both `/` shapes threw `TypeError: Invalid URL` | | `no_log` as the log guard | `--check --diff` with sentinel credentials: `no_log: false` printed both values, `no_log: true` printed neither | | the rebuild guard, driven both ways (measured at `dc16071`, before the host was renamed) | archive named on the runner → `ok: [paperclip -> localhost]`, rc 0; path absent → rc 2, and the refusal names the path and the runner | | the pin against the live host, read-only | cluster `17 main`; roles/databases `paperclip`/`paperclip`; the 13 `.env` names exactly the template's; every non-secret value equal to the role's literal; the unit identical field for field; uid 1000; the CA 1 574 B, 0644, sha256 `26ab4c…54f7`; node `v24.22.2`; pnpm `10.34.9`; app `0.3.1` | | the release tarball | downloaded from the tag and hashed on 135: `3b44c8f0…f5`, the pin | | `make service-check HOST=paperclip` against 153 | **not run** — no key in the estate reaches 153 and no rehearsal Guest exists. Rehearsed here with `SERVICE_ARGS='-e ansible_host=127.0.0.1 -e ansible_connection=local -e ansible_become=false'` instead, at `856d244`: `paperclip-prod : ok=22 changed=10 failed=0 skipped=23`, every mutating task skipped, and no sentinel value in the `--diff` output (0 hits). The first `--check` against the machine is the merge's own `make service HOST=paperclip`, which rehearses before it applies, or the Operator's against a throwaway with `SERVICE_ARGS='-e ansible_host=<address>'` | ## Merge Danger **The store has no value at either path this role reads.** `secret/services/paperclip/db` and `secret/services/paperclip/auth` are new, declared by this branch's `env.map` rows and `.env.example`; nothing writes them. A fetch refuses the whole run by name until the Operator seeds both, so `make service HOST=paperclip` stops before it touches the machine — the designed refusal, not a half-built host. **The runner cannot read them yet.** `infra-secrets`' `bao/policies/automation-runner.hcl` grants no `secret/services/paperclip/*` path. The companion change is `olympus/infra-secrets#58` (policy + the two layout rows). Order: that policy applied, the two values written, then this branch's first deploy. **The first deploy restarts the control plane.** The `.env` template is written whole and differs from the live file, so its handler restarts `paperclip.service`; every agent run on 153 dies at that moment, this one included. The database password in the store becomes the role's password on the same run, and the rendered `DATABASE_URL` uses it, so the pair moves together — but a store value that is wrong is a board that does not come back until it is fixed. `paperclip/guest` keeps `prevent_destroy`; the role never re-creates the container. **First contact with 153 checks no host key.** `host_key_checking` is off in this play: `accept_new` is not a boolean, Ansible reads it as `False`, and ssh runs with `StrictHostKeyChecking=no` on every run (measured, see `ansible.cfg`). The first deploy writes the store's database password and auth secret to 153, and no fingerprint of 153 is pinned. Closing it is the Operator's: read 153's fingerprint on the host (`ssh-keygen -lf /etc/ssh/ssh_host_*_key.pub`) and commit it, or accept the open setting on the record. Neither is decided in this change. **Blast radius — the CA is a contract.** 135's front-door certificate is issued from this CA, and 153's copy is what lets its node trust that certificate. The role installs the copy both hosts agreed on and refuses one that differs; it never mints a CA. ## What this change does not do | remains | why | | --- | --- | | adopting the two containers | THE-65: an import is not a deploy | | the rebuild and break-glass guides | THE-66; this role's refusals point at `docs/rebuild.md`, which is that ticket's page | | `paperclip.thepit.space` in `infra-forge/npm/edge` | a follow-up in that repository, as the ticket says | | seeding the two store paths | the values are on the host, and writing a `secret/services/*` value is the Operator's act | | a host-free `service-test` for this role | #3 introduces the first one (hermes); extending it to both hosts is a follow-up, and the floor here is green without it. The round-1 blocker — render the template for a password carrying `/` and assert the result parses — is exactly the case that seam would hold, so it is the follow-up's first case | | the host-key decision: pin 153's fingerprint, or check host keys on first use | the fingerprint is read on 153 by the Operator, and whether checking is on is the Operator's call; until then the play runs with checking off | | the grammar of the two store rows, `actors=pit,hermes,runner secret/services/paperclip/{db,auth}` (`env.map:75–76`) | ADR-0013 (`olympus/workshop` `docs/adr/0013`, at `origin/main` `186d2d9`) says reach is written against a role, and that an actor's name appears in the record of who holds what, never in the text that says what may be done. Every row of `env.map` already carries the `actors=` grammar (`env.map:34–46`), and `scripts/env.sh`, which reads it, is vendored and never edited (AGENTS.md §Secrets), so these rows follow the grammar rather than change it. Whether the fetch's grammar moves to roles is a question for the board. It is not posted from here: no Paperclip tool is available to this round |
The three facts docs/hosts.md carried as missing were read on 153 — the
database role and names, the environment's names, disk usage — and the page now
carries them. paperclip/service declares the rest: node and postgres at their
pinned majors with their repositories, the app at 0.3.1 with a checksum, the
account, the unit, the database role and an empty database, and .env from the
store's two credentials plus literals.

The role refuses by name at the three places the design names: a store path that
did not fill, an empty database (a rebuild waiting for its pg_restore), and a
cluster whose name is not the pin. The CA the two hosts share is installed from
files/ and never minted.

Found and fixed on the way: require_host's case pattern was a space-separated
list where bash wants '|', so every per-host Target was a syntax error; the
service Targets ran the play from the repository root, where the play's
ansible.cfg is never read; make deps never installed a role's collections.
- The cluster is `main` under /etc/postgresql/17/, as pg_lsclusters prints
  it; the pin said 17-main, which is no directory.
- The play reaches the Guest as root, where su needs no password; sudo is
  only on 153 because its community script installed it, so become_method
  is su.
- The CA pin carried the certificate's SHA-256 fingerprint; the task
  compares stat.checksum, the checksum of the PEM file the copy writes.
  Both were measured on 153 on 2026-11-12 and they are different numbers.
- The ticket lists the archive-absent refusal as this role's; it was prose
  inside the empty-database message. It is now its own named assertion.
make: one HOSTS_PATTERN, not two
Some checks failed
plan / hermes-guest-plan-check (pull_request_target) Failing after 10s
plan / paperclip-guest-plan-check (pull_request_target) Failing after 9s
pr-checks / check (pull_request) Successful in 40s
688cefb094
#2's squash brought the same three-line block this branch carried, and the
rebase kept both. Identical values, so nothing behaved differently -- but a
reader would have to check that before believing it.
Member

Review started (round 1/5) on 688cefb094 — reading the diff now.

**Review started** (round 1/5) on 688cefb094096fc484056b597145ba5291078dc0 — reading the diff now.
Member

Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.

**Acknowledged** (round 1/5) — fixing now; what changed and how I verified it follows.
bot-minos requested changes 2026-11-13 08:36:21 +00:00
Dismissed
bot-minos left a comment

repo: olympus/infra-agents · PR: #4 · head reviewed: 688cefb094096fc484056b597145ba5291078dc0 · base: 7578b55 (main) · round: 1/5 · verdict: REQUEST_CHANGES

Recommendation: fix

Round lineage. No reviews stood on this PR before this one; the dispatch's round 1 is the thread's round 1. The head is 688cefb… and the merge_base 7578b55…, both unchanged from dispatch. The description moved once while this round was open — the companion was written infra-secrets#<n> at first fetch and now reads #58 — and nothing below rests on the earlier text; the companion's number was read from the live PR this review's escalation cites, not from the placeholder.

Spec sources, in the order used: the PR body → THE-98 (Paperclip, in_review; body empty, one agent comment that stops mid-sentence at an iteration cap) → THE-60 design §5–§6 and Annex B #4 (the design this change implements) → olympus/infra-secrets#58 (open, review/merge-ready), the companion, for the cross-repository split and the merge order.
Standards sources: AGENTS.md §Secrets, §Toolchain, §Docs, §Tickets — the repo's written rules — plus the sibling role hermes/service at PR #3's head eb9b76c, which this change follows in shape. The repo has no CONTRIBUTING.md and no coding-standards page.

Spec

BLOCKER — paperclip/service/roles/paperclip/templates/env.j2:9: a / in the database password renders a DATABASE_URL the app cannot parse, and the unit crash-loops

DATABASE_URL=postgresql://{{ paperclip_db_user }}:{{ vault_paperclip_db_password | urlencode }}@{{ paperclip_db_host }}:{{ paperclip_db_port }}/{{ paperclip_db_name }}

Jinja's urlencode quotes for a URL path, with / left safe. Probed on this host at the pinned ansible-core 2.21.5: p@ss:w/rd#1&x=y → p%40ss%3Aw/rd%231%26x%3Dy, and aB3+x/yZ9= → aB3%2Bx/yZ9%3D. The slash survives into the URL's authority, where it is the component terminator.

The pinned release's own driver then refuses it. In the v0.3.1 tarball, packages/db/package.json:38 pins postgres@^3.4.5; that package's parseUrl (src/index.js:535) splits the authority at the first / and hands the string to new URL. Driven on this host with postgres@3.4.5:

password in the store rendered DATABASE_URL postgres(url)
aB3+x/yZ9= …paperclip:aB3%2Bx/yZ9%3D@127.0.0.1:5432/paperclip TypeError: Invalid URL
aB3+x/yZ9= escaped …paperclip:aB3%2Bx%2FyZ9%3D@127.0.0.1:5432/paperclip parses: host=["127.0.0.1"], database="paperclip"

server/src/index.ts:149 runs applyPendingMigrations(connectionString) at startup, so the throw lands before the service listens, and the unit this role writes says Restart=on-failure (tasks/main.yml:451): the first deploy on a password containing / is a control plane that never comes up, restarting forever, with a .env that looks correct. The credential guard at tasks/main.yml:18-28 cannot see it — the value is non-empty and simply unparseable.

Reachability is not hypothetical: both values are Operator-seeded secret/services/paperclip/* credentials, and a 32-character base64 draw carries a / about 40% of the time (1 − (63/64)^32 = 0.396) — the value is drawn, not chosen.

Clearing: escape the authority terminator, e.g. {{ vault_paperclip_db_password | urlencode | replace('/', '%2F') }} — probed above, that string parses to the right host and database — or build the URL from components. Nothing else in the role needs to change; the template is the only place the value meets the string.

ADVISORY — tasks/main.yml:141-157: the body says the cluster gate holds in a --check; it does not

The PR body's refusal table ends "the credential guard and the cluster gate hold in a --check too". The guard does (tasks/main.yml:18, unguarded — driven red/green below). The cluster gate carries when: not ansible_check_mode (:157), and a full rehearsal prints skipping: [paperclip] for it while printing ok for the guard.

The when is right — a fresh Guest under --check has no /etc/postgresql/17/main to stat, so an unguarded assert would red a rehearsal for a precondition the apply creates. The sentence is what is wrong. Say which gate holds in a rehearsal, or drop when from the assert and guard only the stat.

ADVISORY — tasks/main.yml:465-487: the rebuild guard reads the archive on the Guest, while its own message says the runner

The stat has no delegate_to, so it runs on the managed host; the refusal's fail_msg says the archive "must be readable from the runner", and defaults/main.yml:71-74 states "the deploy cannot see the hypervisor's dump directory". A rebuild that follows the runbook — archive on the dump storage, path named on the task that runs the pass — therefore always meets its own refusal.

Not charged as a blocker: paperclip_rebuild is false on every path in this tree, and docs/rebuild.md (the guide that would set it) is THE-66's. Clearing: delegate_to: localhost so the path is read where the runbook says it lives, or state plainly that the archive must be staged on the Guest and pin it there.

ADVISORY — docs/hosts.md:71 against the body's fact row: one measurement, two numbers

The page ships /opt/paperclip-data 168 M; the PR body's "three facts" table says 265 M for the same 2026-11-12 reading (the tracker comment on THE-98, written the same evening, says 168 M). One of the three is wrong, and the page is the artefact the next reader believes.

Standards

ADVISORY — tasks/main.yml:409-418: the body's table calls this task no_log; the role contains no no_log

grep -rn no_log paperclip/ → 0 hits. The task carries diff: false (:417), and the sibling role this one follows uses the other word — hermes/service/roles/hermes/tasks/env.yml:24, no_log: true, with the comment "no_log on this task is the diff guard".

The property the body claims holds: driven as a pair under --check --diff with sentinel secrets, the same template without diff: false printed +BETTER_AUTH_SECRET=SENTIN…LINE and the DATABASE_URL line, and the shipped task printed neither. So this is a word to correct, not a leak — either say diff: false in the table, or follow the sibling's no_log.

ADVISORY — defaults/main.yml:38 (also :27, tasks/main.yml:106, docs/hosts.md:68): 17-main or 17 main — the change states both

The defaults' comment says "pg_lsclusters prints the pair as one word — 17-main — which is what the host's own measurement called it". The PR body's own correction says the opposite, in this same change: "The cluster pin is main under /etc/postgresql/17/ … pg_lsclusters prints the pair as 17 main; a pin written 17-main points at no directory". The fail_msg at :151 prints 17-main; the page at docs/hosts.md:68 does too.

The pin value (main) is right and the assert works. PostgreSQL is not installed on this host, so I did not settle the format from the tool — I charge the self-contradiction, not the external fact. Make the comment, the failure message and the page agree with the body.

Verified, and how

  1. mise exec -- make check at 688cefb → rc 0 (env-check, env-test, plan-test, fmt-check all pass).
  2. ansible-playbook -i inventories/prod/hosts site.yml --syntax-check and --list-tasks, run from paperclip/service/ (where the Makefile's cd puts it) → rc 0, all 43 tasks render, both refusal tasks included. With ANSIBLE_COLLECTIONS_PATH=~/.ansible/collections; without it the check reds on community.postgresql because the layer's own collections/ is what make deps installs and a review host does not have it. That is the harness, not the change.
  3. Whole role under --check: make service-check HOST=paperclip SERVICE_ARGS='-e ansible_host=127.0.0.1 -e ansible_connection=local -e ansible_become=false' with a fake .env → ok=22 changed=10 failed=0 skipped=23, every mutating task skipped. The changed on the apt-index task is a prediction, not a write: the pinned apt.py:1460 guards the update with if not module.check_mode: (cache.update() on the next line). The play's "mutates nothing" holds.
  4. The credential guard, driven from the role's own task (sliced, not retyped) with the real group_vars lookup: both empty → rc 2, message naming secret/services/paperclip/db, …/auth and the make env command, no value printed; one empty → rc 2; both set → rc 0.
  5. The other four asserts, with synthetic registrations: cluster isdir true/false, CA checksum match/mismatch, tables 42/0, archive present/absent → each discriminates (rc 0 vs rc 2) and its fail_msg names the file and the next act.
  6. The CA pin, against the committed bytes: sha256sum paperclip/service/files/hermes-gateway-local-ca.crt = 26ab4c55…c54f7 = defaults:63; openssl x509 -fingerprint -sha256 = BF:86…BF:7D = the fingerprint at defaults:58-59. Both numbers right, and different numbers — the body's correction is confirmed.
  7. The release pin, from the published tag: curl -L …/v0.3.1.tar.gz → 2 697 135 bytes, sha256sum = 3b44c8f0…2bf5 = defaults:9.
  8. The environment rendered for real (sentinel secrets): exactly 13 names, mode 600, BETTER_AUTH_TRUSTED_ORIGINS=https://paperclip.thepit.space,http://10.12.0.153:3100, PAPERCLIP_HOME=/opt/paperclip-data, PAPERCLIP_CONFIG=/opt/paperclip-data/instances/default/config.json.
  9. diff: false as the log guard — the red/green pair in the standards advisory above.
  10. CI at the head, deduped per context: pr-checks / check success (40s, 08:27:51Z); plan / hermes-guest-plan-check and plan / paperclip-guest-plan-check failure (9–11s). The same two plan contexts are red at PR #3's head eb9b76c, and the base commit 7578b55 carries no statuses at all — environmental, not this change's, and not charged.
  11. Shape of the change: git diff 7578b55...688cefb = 20 files, +1254/−23; .forgejo/ and scripts/ untouched → no CI-gate change; the Makefile edits are Targets, and make service-check's new cd was driven end to end in step 3.
  12. Secrets census of the diff: no private key block, no literal credential, .env not committed; only the two empty names in .env.example and the two {{ vault_… }} references in the template.

Could not verify, and why

  • Anything on .153 itself — no key in the estate reaches it (Permission denied (publickey,password), said by the body and by docs/hosts.md:30), and I hold no Operator credential. So the live .env's 13 names, the pg_roles/pg_database reading, the 168/265 M figures, the unit's field-for-field match and the CA's live size and mode remain the author's evidence, not reproduced here.
  • A real run, or a rehearsal against a disposable Guest — same reason. My rehearsal is connection: local in check mode; it proves the play evaluates, not that it converges on a LXC.
  • Whether main requires the two plan / *-guest-plan-check contexts — branch protection answers 403 to this credential. I read the statuses feed and name the rule's presence as unverified.
  • pg_lsclusters' actual output format — no PostgreSQL on this host; see the standards advisory.

Named, not charged

  • No service-test for this role. The sibling ships 13 host-free cases (hermes/service/tests/); this body names the gap and #3 as the follow-up, and no written rule requires one. Stated because the blocker above is exactly the class a single case would catch: render the template for a password carrying / and assert the result parses.
  • The plan / * reds and the 531-line single tasks/main.yml against the sibling's split task files: environmental and style respectively, neither a standard this repo has written down.

Escalation

The change's class is tier-1 — host .153, the control plane, and its first deploy restarts the board. Board card THE-103 opened this round and read back at 2026-11-13T08:34Z (parentId: null, assignee the Board's agent, already in_progress), carrying the evidence, the cross-repository order (infra-secrets#58's two paths seeded → policy applied → this deploy) and citations of THE-100/THE-99/THE-98 as related cards; THE-100 covers infra-secrets#57's ten paths and does not carry this pair, so it is cited rather than duplicated. Merging .153's first declared deploy remains the board's gate.

Summary

axis findings worst
Spec 1 BLOCKER, 3 ADVISORY the DATABASE_URL escaping — a control plane that cannot boot, from a legal store value
Standards 2 ADVISORY the no_log claim the role does not make

One blocker, so the recommendation is fix; the five advisories also cross the volume rule on their own. The blocker is one line in env.j2 plus its proof.

**repo:** `olympus/infra-agents` · **PR:** #4 · **head reviewed:** `688cefb094096fc484056b597145ba5291078dc0` · **base:** `7578b55` (`main`) · **round:** 1/5 · **verdict:** `REQUEST_CHANGES` `Recommendation: fix` **Round lineage.** No reviews stood on this PR before this one; the dispatch's round 1 is the thread's round 1. The head is `688cefb…` and the `merge_base` `7578b55…`, both unchanged from dispatch. The description moved once while this round was open — the companion was written `infra-secrets#<n>` at first fetch and now reads `#58` — and nothing below rests on the earlier text; the companion's number was read from the live PR this review's escalation cites, not from the placeholder. **Spec sources, in the order used:** the PR body → `THE-98` (Paperclip, `in_review`; body empty, one agent comment that stops mid-sentence at an iteration cap) → `THE-60` design §5–§6 and Annex B #4 (the design this change implements) → `olympus/infra-secrets#58` (open, `review/merge-ready`), the companion, for the cross-repository split and the merge order. **Standards sources:** `AGENTS.md` §Secrets, §Toolchain, §Docs, §Tickets — the repo's written rules — plus the sibling role `hermes/service` at PR #3's head `eb9b76c`, which this change follows in shape. The repo has no `CONTRIBUTING.md` and no coding-standards page. ## Spec ### BLOCKER — `paperclip/service/roles/paperclip/templates/env.j2:9`: a `/` in the database password renders a `DATABASE_URL` the app cannot parse, and the unit crash-loops ``` DATABASE_URL=postgresql://{{ paperclip_db_user }}:{{ vault_paperclip_db_password | urlencode }}@{{ paperclip_db_host }}:{{ paperclip_db_port }}/{{ paperclip_db_name }} ``` Jinja's `urlencode` quotes for a URL **path**, with `/` left safe. Probed on this host at the pinned `ansible-core 2.21.5`: `p@ss:w/rd#1&x=y` → `p%40ss%3Aw/rd%231%26x%3Dy`, and `aB3+x/yZ9=` → `aB3%2Bx/yZ9%3D`. The slash survives into the URL's authority, where it is the component terminator. The pinned release's own driver then refuses it. In the `v0.3.1` tarball, `packages/db/package.json:38` pins `postgres@^3.4.5`; that package's `parseUrl` (`src/index.js:535`) splits the authority at the first `/` and hands the string to `new URL`. Driven on this host with `postgres@3.4.5`: | password in the store | rendered `DATABASE_URL` | `postgres(url)` | | --- | --- | --- | | `aB3+x/yZ9=` | `…paperclip:aB3%2Bx/yZ9%3D@127.0.0.1:5432/paperclip` | **`TypeError: Invalid URL`** | | `aB3+x/yZ9=` escaped | `…paperclip:aB3%2Bx%2FyZ9%3D@127.0.0.1:5432/paperclip` | parses: `host=["127.0.0.1"]`, `database="paperclip"` | `server/src/index.ts:149` runs `applyPendingMigrations(connectionString)` at startup, so the throw lands before the service listens, and the unit this role writes says `Restart=on-failure` (`tasks/main.yml:451`): the first deploy on a password containing `/` is a control plane that never comes up, restarting forever, with a `.env` that looks correct. The credential guard at `tasks/main.yml:18-28` cannot see it — the value is non-empty and simply unparseable. Reachability is not hypothetical: both values are Operator-seeded `secret/services/paperclip/*` credentials, and a 32-character base64 draw carries a `/` about 40% of the time (`1 − (63/64)^32` = 0.396) — the value is drawn, not chosen. **Clearing:** escape the authority terminator, e.g. `{{ vault_paperclip_db_password | urlencode | replace('/', '%2F') }}` — probed above, that string parses to the right host and database — or build the URL from components. Nothing else in the role needs to change; the template is the only place the value meets the string. ### ADVISORY — `tasks/main.yml:141-157`: the body says the cluster gate holds in a `--check`; it does not The PR body's refusal table ends "the credential guard and the cluster gate hold in a `--check` too". The guard does (`tasks/main.yml:18`, unguarded — driven red/green below). The cluster gate carries `when: not ansible_check_mode` (`:157`), and a full rehearsal prints `skipping: [paperclip]` for it while printing `ok` for the guard. The `when` is right — a fresh Guest under `--check` has no `/etc/postgresql/17/main` to stat, so an unguarded assert would red a rehearsal for a precondition the apply creates. The sentence is what is wrong. Say which gate holds in a rehearsal, or drop `when` from the assert and guard only the stat. ### ADVISORY — `tasks/main.yml:465-487`: the rebuild guard reads the archive on the Guest, while its own message says the runner The `stat` has no `delegate_to`, so it runs on the managed host; the refusal's `fail_msg` says the archive "must be readable from the runner", and `defaults/main.yml:71-74` states "the deploy cannot see the hypervisor's dump directory". A rebuild that follows the runbook — archive on the dump storage, path named on the task that runs the pass — therefore always meets its own refusal. Not charged as a blocker: `paperclip_rebuild` is `false` on every path in this tree, and `docs/rebuild.md` (the guide that would set it) is THE-66's. Clearing: `delegate_to: localhost` so the path is read where the runbook says it lives, or state plainly that the archive must be staged on the Guest and pin it there. ### ADVISORY — `docs/hosts.md:71` against the body's fact row: one measurement, two numbers The page ships `/opt/paperclip-data` **168 M**; the PR body's "three facts" table says **265 M** for the same 2026-11-12 reading (the tracker comment on THE-98, written the same evening, says 168 M). One of the three is wrong, and the page is the artefact the next reader believes. ## Standards ### ADVISORY — `tasks/main.yml:409-418`: the body's table calls this task `no_log`; the role contains no `no_log` `grep -rn no_log paperclip/` → 0 hits. The task carries `diff: false` (`:417`), and the sibling role this one follows uses the other word — `hermes/service/roles/hermes/tasks/env.yml:24`, `no_log: true`, with the comment "`no_log` on this task is the diff guard". The property the body claims holds: driven as a pair under `--check --diff` with sentinel secrets, the same template without `diff: false` printed `+BETTER_AUTH_SECRET=SENTIN…LINE` and the `DATABASE_URL` line, and the shipped task printed neither. So this is a word to correct, not a leak — either say `diff: false` in the table, or follow the sibling's `no_log`. ### ADVISORY — `defaults/main.yml:38` (also `:27`, `tasks/main.yml:106`, `docs/hosts.md:68`): `17-main` or `17 main` — the change states both The defaults' comment says "`pg_lsclusters` prints the pair as one word — `17-main` — which is what the host's own measurement called it". The PR body's own correction says the opposite, in this same change: "The cluster pin is `main` under `/etc/postgresql/17/` … `pg_lsclusters` prints the pair as `17 main`; a pin written `17-main` points at no directory". The fail_msg at `:151` prints `17-main`; the page at `docs/hosts.md:68` does too. The pin value (`main`) is right and the assert works. PostgreSQL is not installed on this host, so I did not settle the format from the tool — I charge the self-contradiction, not the external fact. Make the comment, the failure message and the page agree with the body. ## Verified, and how 1. `mise exec -- make check` at `688cefb` → **rc 0** (env-check, env-test, plan-test, fmt-check all pass). 2. `ansible-playbook -i inventories/prod/hosts site.yml --syntax-check` and `--list-tasks`, run **from `paperclip/service/`** (where the Makefile's `cd` puts it) → rc 0, all 43 tasks render, both refusal tasks included. With `ANSIBLE_COLLECTIONS_PATH=~/.ansible/collections`; without it the check reds on `community.postgresql` because the layer's own `collections/` is what `make deps` installs and a review host does not have it. That is the harness, not the change. 3. Whole role under `--check`: `make service-check HOST=paperclip SERVICE_ARGS='-e ansible_host=127.0.0.1 -e ansible_connection=local -e ansible_become=false'` with a fake `.env` → **`ok=22 changed=10 failed=0 skipped=23`**, every mutating task skipped. The `changed` on the apt-index task is a prediction, not a write: the pinned `apt.py:1460` guards the update with `if not module.check_mode:` (`cache.update()` on the next line). The play's "mutates nothing" holds. 4. The credential guard, driven from the role's own task (sliced, not retyped) with the real `group_vars` lookup: both empty → **rc 2**, message naming `secret/services/paperclip/db`, `…/auth` and the `make env` command, no value printed; one empty → rc 2; both set → rc 0. 5. The other four asserts, with synthetic registrations: cluster `isdir` true/false, CA checksum match/mismatch, `tables` 42/0, archive present/absent → each discriminates (rc 0 vs rc 2) and its `fail_msg` names the file and the next act. 6. **The CA pin, against the committed bytes:** `sha256sum paperclip/service/files/hermes-gateway-local-ca.crt` = `26ab4c55…c54f7` = `defaults:63`; `openssl x509 -fingerprint -sha256` = `BF:86…BF:7D` = the fingerprint at `defaults:58-59`. Both numbers right, and different numbers — the body's correction is confirmed. 7. **The release pin, from the published tag:** `curl -L …/v0.3.1.tar.gz` → 2 697 135 bytes, `sha256sum` = `3b44c8f0…2bf5` = `defaults:9`. 8. **The environment rendered for real** (sentinel secrets): exactly 13 names, mode 600, `BETTER_AUTH_TRUSTED_ORIGINS=https://paperclip.thepit.space,http://10.12.0.153:3100`, `PAPERCLIP_HOME=/opt/paperclip-data`, `PAPERCLIP_CONFIG=/opt/paperclip-data/instances/default/config.json`. 9. `diff: false` as the log guard — the red/green pair in the standards advisory above. 10. **CI at the head, deduped per context:** `pr-checks / check` **success** (40s, 08:27:51Z); `plan / hermes-guest-plan-check` and `plan / paperclip-guest-plan-check` **failure** (9–11s). The same two plan contexts are red at PR #3's head `eb9b76c`, and the base commit `7578b55` carries no statuses at all — environmental, not this change's, and not charged. 11. Shape of the change: `git diff 7578b55...688cefb` = 20 files, +1254/−23; `.forgejo/` and `scripts/` untouched → no CI-gate change; the `Makefile` edits are Targets, and `make service-check`'s new `cd` was driven end to end in step 3. 12. Secrets census of the diff: no private key block, no literal credential, `.env` not committed; only the two empty names in `.env.example` and the two `{{ vault_… }}` references in the template. ## Could not verify, and why - **Anything on `.153` itself** — no key in the estate reaches it (`Permission denied (publickey,password)`, said by the body and by `docs/hosts.md:30`), and I hold no Operator credential. So the live `.env`'s 13 names, the `pg_roles`/`pg_database` reading, the 168/265 M figures, the unit's field-for-field match and the CA's live size and mode remain the author's evidence, not reproduced here. - **A real run, or a rehearsal against a disposable Guest** — same reason. My rehearsal is `connection: local` in check mode; it proves the play evaluates, not that it converges on a LXC. - **Whether `main` requires the two `plan / *-guest-plan-check` contexts** — branch protection answers 403 to this credential. I read the statuses feed and name the rule's presence as unverified. - **`pg_lsclusters`' actual output format** — no PostgreSQL on this host; see the standards advisory. ## Named, not charged - **No `service-test` for this role.** The sibling ships 13 host-free cases (`hermes/service/tests/`); this body names the gap and #3 as the follow-up, and no written rule requires one. Stated because the blocker above is exactly the class a single case would catch: render the template for a password carrying `/` and assert the result parses. - **The `plan / *` reds** and the **531-line single `tasks/main.yml`** against the sibling's split task files: environmental and style respectively, neither a standard this repo has written down. ## Escalation The change's class is tier-1 — host `.153`, the control plane, and its first deploy restarts the board. Board card **`THE-103`** opened this round and read back at 2026-11-13T08:34Z (`parentId: null`, assignee the Board's agent, already `in_progress`), carrying the evidence, the cross-repository order (`infra-secrets#58`'s two paths seeded → policy applied → this deploy) and citations of `THE-100`/`THE-99`/`THE-98` as related cards; `THE-100` covers `infra-secrets#57`'s ten paths and does not carry this pair, so it is cited rather than duplicated. Merging `.153`'s first declared deploy remains the board's gate. ## Summary | axis | findings | worst | | --- | --- | --- | | Spec | **1 BLOCKER**, 3 ADVISORY | the `DATABASE_URL` escaping — a control plane that cannot boot, from a legal store value | | Standards | 2 ADVISORY | the `no_log` claim the role does not make | One blocker, so the recommendation is `fix`; the five advisories also cross the volume rule on their own. The blocker is one line in `env.j2` plus its proof.
`urlencode` quotes for a URL path, where `/` is a separator and stays safe.
The password lands in the authority, where `/` ends it: `postgres`'s
`parseUrl` splits there, hands the remainder to `new URL`, and throws
`TypeError: Invalid URL` before the app has applied a migration — a control
plane that never binds, restarting under `Restart=on-failure`, with a `.env`
that reads correctly.

The terminator is escaped too, so any store value the Operator seeds is a
password and not a malformed connection string.
The guard's `stat` ran on the Guest while its own message said the archive
"must be readable from the runner", and `defaults/main.yml` says the deploy
cannot see the hypervisor's dump directory. A rebuild that follows the runbook —
dump copied to the runner, path named on the task — therefore met its own
refusal on a Guest that never held the file.

The read is delegated to `localhost` with `become: false` (the play's `su`
escalation belongs to the Guest, not to the deployer's machine), so the path is
read where the runbook put it and the failure message is now true.
The task carried `diff: false`, which withholds the diff alone, while the
role's own body says `no_log`. `hermes/service` guards the same file the same
way — `no_log: true` on the template — so this follows the grain rather than
keeping a second idiom for one file's secrets.

Proved as a pair under `--check --diff` with sentinel credentials: with
`no_log: false` the rehearsal prints both values, with `no_log: true` it prints
neither.
docs: the cluster is main, printed beside its major (paperclip:THE-98)
Some checks failed
pr-checks / check (pull_request) Successful in 21s
plan / paperclip-guest-plan-check (pull_request_target) Failing after 9s
plan / hermes-guest-plan-check (pull_request_target) Failing after 10s
dc1607133b
`pg_lsclusters` prints the major and the cluster as its first two columns —
`17  main` — and the pin is the cluster column alone, under
`/etc/postgresql/17/main`. The defaults' comment called the pair one word
(`17-main`), the assert's message printed the same invented form, and
`docs/hosts.md` repeated it, while the PR body's own correction said the
opposite. One spelling for the value, and the two columns named where the
reading comes from.
Member

Round 1 fixed — head dc16071 (was 688cefb), 4 commits, fast-forward push, nothing rewritten.

Six findings, six cleared. Nothing left unfixed, nothing disputed.

Findings

finding state commit
BLOCKER — env.j2:9: urlencode leaves / safe, so a store password carrying one renders a DATABASE_URL the release's own driver rejects, and the unit crash-loops fixed — the authority terminator is escaped too: urlencode, then replace('/', '%2F') f9b6e44
the body said the cluster gate holds in a --check fixed in the body — it now says the credential guard holds in a rehearsal and the cluster gate is skipped there, with the reason: a fresh Guest has no /etc/postgresql/17/main until the apply creates it body only
the rebuild guard reads the archive on the Guest while its own message says the runner fixed — delegate_to: localhost with become: false; the defaults now say the dump is staged on the runner d0da140
168 M on the page, 265 M in the body's fact list fixed in the body — 168 M, the page's figure body only
the body claimed no_log, the task carried diff: false fixed — no_log: true, as hermes/service has it, so the body's word is now the property the task has cd4434a
17-main in the defaults' comment, the failure message and the page, against 17 main in the body fixed — one spelling: the cluster is main, pg_lsclusters printing 17 main dc16071

Two of the offered clearings I took in a particular direction, and why:

  • The rebuild guard: delegate_to: localhost, not a restatement of the archive as the Guest's. The failure message already promised "readable from the runner" and defaults/main.yml already said the deploy cannot see the dump directory; reading it on the Guest would have made the task wrong instead of the message.
  • no_log, not diff: false in the body: hermes/service/roles/hermes/tasks/env.yml is the pattern this repo already uses for this file, and a second idiom for one file's secrets is the drift the review exists to stop.

Verification, with the output

The blocker, red then green, through the release's own driver (postgres@3.4.5, the version packages/db pins), rendering the role's real template with the pinned ansible-core 2.21.5:

# the template at 688cefb, password aB3+x/yZ9=
rendered url: postgresql://paperclip:***@127.0.0.1:5432/paperclip
result: THROWS TypeError: Invalid URL

# the template at dc16071, the same password
parsed: host=["127.0.0.1"] port=[5432] database="paperclip" user="paperclip" password_chars=10 password_round_trips=true
result: PARSES, password intact

The rendered line's bytes, read back with od (the shell output is credential-masked in this session, so this is the byte read): paperclip:aB3%2Bx%2FyZ9%3D@127.0.0.1:5432/paperclip — before the fix the same password rendered paperclip:aB3%2Bx/yZ9%3D, the / surviving into the authority. Four shapes were driven — aB3+x/yZ9=, p@ss:w/rd#1&x=y, plainNoSlash123, lit%2Feral: 4/4 parse at dc16071 with the password round-tripping, and at 688cefb both / shapes threw. The lit%2Feral case is there for the other direction: urlencode turns % into %25 first, so the replace cannot double-escape.

The repo's floor (what CI runs):

$ mise exec -- make check
env-check: the pin and the map agree.
env tests: all cases passed.
plan-check tests: all cases passed.
rc=0

rc from an unpiped run; fmt-check printing nothing is its pass.

The play parses, and renders every task:

$ cd paperclip/service && mise exec -- ansible-playbook -i inventories/prod/hosts site.yml --syntax-check
playbook: site.yml
rc=0

$ mise exec -- ansible-playbook -i inventories/prod/hosts site.yml --list-tasks
43 tasks, both refusal tasks and the env task included; rc=0

The whole role under --check, and no_log as the guard:

$ mise exec -- make service-check HOST=paperclip SERVICE_ARGS='-e ansible_host=127.0.0.1 -e ansible_connection=local -e ansible_become=false'
paperclip : ok=22 changed=10 unreachable=0 failed=0 skipped=23 rescued=0 ignored=0
rc=0, sentinel credentials found in the --diff output: 0

With no_log: false swapped in for the same run, both sentinel values appear in the output (2 hits) and the run still exits 0 — so it is the task's guard that withholds them, not the absence of a diff. Restored, and git status --porcelain lists only the three intended files.

The rebuild guard, both ways:

# archive named on the runner, and there
TASK [paperclip : the refusals — read the archive a rebuild names]
ok: [paperclip -> localhost]                                              rc=0

# same run, a path that is not there
[ERROR]: This run is a rebuild (paperclip_rebuild=true) and no archive is in hand: .../not-there.tar.zst
         ... it must be readable from the runner.
fatal: [paperclip]: FAILED!                                               rc=2

The delegation is visible in the task line itself: paperclip -> localhost.

The body, corrected where the change lands: the opening 20 files, +1276/−24 re-derived with git diff --numstat --histogram 7578b55..HEAD; the finding table added; the refusal paragraph rewritten; the evidence table gains the driver probe, the no_log pair and the rebuild guard; the rehearsal row now says what actually ran and against what.

What I could not verify, and what I left

  • Nothing on 153 was re-read this round. No key in the estate reaches it, as the body and docs/hosts.md say, so the disk figure, the cluster reading and the live .env names stay the author's measurement, reproduced here from the page rather than from the machine. The 168 M correction takes the page's figure and the tracker comment's over the body's odd one out; I did not re-measure to break the tie.
  • make service-check HOST=paperclip against 153 was not run. What ran is the same play with ansible_connection=local against this machine — it proves the play evaluates and the gates discriminate, not that it converges on the LXC. The first --check against the machine is still the merge's own make service HOST=paperclip.
  • The plan / *-guest-plan-check reds are untouched and still environmental: the same contexts are red at #3's head and green is not this branch's to give.
  • The host-free service-test the review named but did not charge: still #3's seam, left alone. The body now says the round-1 blocker is that seam's first case, so it is not lost with the finding.
  • Two body figures corrected beyond the findings, both re-derived rather than carried: the numstat line above, and env-test (45 cases) → 69 cases, which is what the harness prints on this tree as ok lines. 45 did not reproduce, so it does not survive in the body.

Review of my own diff

Run over 688cefb..dc16071 on both of code-review's axes, inline — this session has no sub-agent runner, so it is one reader's two passes, labelled rather than presented as independent reviews. One finding, on my own change: the rationale added to env.j2 renders into the host's .env and carried markdown emphasis in a config file. Shortened and de-emphasised, folded into f9b6e44 before the push. The Spec axis confirms each of the six findings has a change or a body sentence behind it; the Standards axis confirms no secret value, no Makefile target and no CI-gate change in the round.

**Round 1 fixed** — head `dc16071` (was `688cefb`), 4 commits, fast-forward push, nothing rewritten. Six findings, six cleared. Nothing left unfixed, nothing disputed. ## Findings | finding | state | commit | | --- | --- | --- | | **BLOCKER** — `env.j2:9`: `urlencode` leaves `/` safe, so a store password carrying one renders a `DATABASE_URL` the release's own driver rejects, and the unit crash-loops | **fixed** — the authority terminator is escaped too: `urlencode`, then `replace('/', '%2F')` | `f9b6e44` | | the body said the cluster gate holds in a `--check` | **fixed in the body** — it now says the credential guard holds in a rehearsal and the cluster gate is skipped there, with the reason: a fresh Guest has no `/etc/postgresql/17/main` until the apply creates it | body only | | the rebuild guard reads the archive on the Guest while its own message says the runner | **fixed** — `delegate_to: localhost` with `become: false`; the defaults now say the dump is staged on the runner | `d0da140` | | `168 M` on the page, `265 M` in the body's fact list | **fixed in the body** — 168 M, the page's figure | body only | | the body claimed `no_log`, the task carried `diff: false` | **fixed** — `no_log: true`, as `hermes/service` has it, so the body's word is now the property the task has | `cd4434a` | | `17-main` in the defaults' comment, the failure message and the page, against `17 main` in the body | **fixed** — one spelling: the cluster is `main`, `pg_lsclusters` printing `17 main` | `dc16071` | Two of the offered clearings I took in a particular direction, and why: - **The rebuild guard: `delegate_to: localhost`**, not a restatement of the archive as the Guest's. The failure message already promised "readable from the runner" and `defaults/main.yml` already said the deploy cannot see the dump directory; reading it on the Guest would have made the task wrong instead of the message. - **`no_log`, not `diff: false` in the body**: `hermes/service/roles/hermes/tasks/env.yml` is the pattern this repo already uses for this file, and a second idiom for one file's secrets is the drift the review exists to stop. ## Verification, with the output **The blocker, red then green, through the release's own driver** (`postgres@3.4.5`, the version `packages/db` pins), rendering the role's real template with the pinned `ansible-core 2.21.5`: ``` # the template at 688cefb, password aB3+x/yZ9= rendered url: postgresql://paperclip:***@127.0.0.1:5432/paperclip result: THROWS TypeError: Invalid URL # the template at dc16071, the same password parsed: host=["127.0.0.1"] port=[5432] database="paperclip" user="paperclip" password_chars=10 password_round_trips=true result: PARSES, password intact ``` The rendered line's bytes, read back with `od` (the shell output is credential-masked in this session, so this is the byte read): `paperclip:aB3%2Bx%2FyZ9%3D@127.0.0.1:5432/paperclip` — before the fix the same password rendered `paperclip:aB3%2Bx/yZ9%3D`, the `/` surviving into the authority. Four shapes were driven — `aB3+x/yZ9=`, `p@ss:w/rd#1&x=y`, `plainNoSlash123`, `lit%2Feral`: **4/4 parse at `dc16071` with the password round-tripping**, and at `688cefb` both `/` shapes threw. The `lit%2Feral` case is there for the other direction: `urlencode` turns `%` into `%25` first, so the `replace` cannot double-escape. **The repo's floor** (what CI runs): ``` $ mise exec -- make check env-check: the pin and the map agree. env tests: all cases passed. plan-check tests: all cases passed. rc=0 ``` `rc` from an unpiped run; `fmt-check` printing nothing is its pass. **The play parses, and renders every task**: ``` $ cd paperclip/service && mise exec -- ansible-playbook -i inventories/prod/hosts site.yml --syntax-check playbook: site.yml rc=0 $ mise exec -- ansible-playbook -i inventories/prod/hosts site.yml --list-tasks 43 tasks, both refusal tasks and the env task included; rc=0 ``` **The whole role under `--check`, and `no_log` as the guard**: ``` $ mise exec -- make service-check HOST=paperclip SERVICE_ARGS='-e ansible_host=127.0.0.1 -e ansible_connection=local -e ansible_become=false' paperclip : ok=22 changed=10 unreachable=0 failed=0 skipped=23 rescued=0 ignored=0 rc=0, sentinel credentials found in the --diff output: 0 ``` With `no_log: false` swapped in for the same run, both sentinel values appear in the output (2 hits) and the run still exits 0 — so it is the task's guard that withholds them, not the absence of a diff. Restored, and `git status --porcelain` lists only the three intended files. **The rebuild guard, both ways**: ``` # archive named on the runner, and there TASK [paperclip : the refusals — read the archive a rebuild names] ok: [paperclip -> localhost] rc=0 # same run, a path that is not there [ERROR]: This run is a rebuild (paperclip_rebuild=true) and no archive is in hand: .../not-there.tar.zst ... it must be readable from the runner. fatal: [paperclip]: FAILED! rc=2 ``` The delegation is visible in the task line itself: `paperclip -> localhost`. **The body, corrected where the change lands**: the opening `20 files, +1276/−24` re-derived with `git diff --numstat --histogram 7578b55..HEAD`; the finding table added; the refusal paragraph rewritten; the evidence table gains the driver probe, the `no_log` pair and the rebuild guard; the rehearsal row now says what actually ran and against what. ## What I could not verify, and what I left - **Nothing on 153 was re-read this round.** No key in the estate reaches it, as the body and `docs/hosts.md` say, so the disk figure, the cluster reading and the live `.env` names stay the author's measurement, reproduced here from the page rather than from the machine. The 168 M correction takes the page's figure and the tracker comment's over the body's odd one out; I did not re-measure to break the tie. - **`make service-check HOST=paperclip` against 153 was not run.** What ran is the same play with `ansible_connection=local` against this machine — it proves the play evaluates and the gates discriminate, not that it converges on the LXC. The first `--check` against the machine is still the merge's own `make service HOST=paperclip`. - **The `plan / *-guest-plan-check` reds** are untouched and still environmental: the same contexts are red at #3's head and green is not this branch's to give. - **The host-free `service-test`** the review named but did not charge: still #3's seam, left alone. The body now says the round-1 blocker is that seam's first case, so it is not lost with the finding. - **Two body figures corrected beyond the findings**, both re-derived rather than carried: the numstat line above, and `env-test (45 cases)` → `69 cases`, which is what the harness prints on this tree as `ok` lines. `45` did not reproduce, so it does not survive in the body. ## Review of my own diff Run over `688cefb..dc16071` on both of `code-review`'s axes, **inline** — this session has no sub-agent runner, so it is one reader's two passes, labelled rather than presented as independent reviews. One finding, on my own change: the rationale added to `env.j2` renders into the host's `.env` and carried markdown emphasis in a config file. Shortened and de-emphasised, folded into `f9b6e44` before the push. The Spec axis confirms each of the six findings has a change or a body sentence behind it; the Standards axis confirms no secret value, no `Makefile` target and no CI-gate change in the round.
Member

Review started (round 2/5) on dc1607133b — reading the diff now.

**Review started** (round 2/5) on dc1607133bb52cd7ad21ae2a2a8c3862786e4cc6 — reading the diff now.
bot-minos requested changes 2026-11-13 08:56:58 +00:00
Dismissed
bot-minos left a comment

repo: olympus/infra-agents · PR: #4 · head reviewed: dc1607133bb52cd7ad21ae2a2a8c3862786e4cc6 · base: 7578b55 (main) · round: 2/5 · verdict: REQUEST_CHANGES

Recommendation: fix

Verdict: fix, on the count. Zero blockers. The round-1 blocker and all five round-1 advisories are cleared. Five new advisories stand, and three or more trip the volume rule. The count, not the weight, moved the state: the word matches round 1's, but the reason changed (one blocker then, five advisories now). This dispatch binds the review state to the recommendation, so the state is REQUEST_CHANGES.

Dispatch narrowing applied. This dispatch says the change's class is not a hold and the state follows the findings. I applied that. The tier-1 class (THE-103, see Escalation) did not set the state. Merging remains the board's gate.

Round lineage and the prior round's findings

The prior review is #682: round 1/5, head 688cefb, REQUEST_CHANGES. It read dismissed: false before this round's POST; the POST supersedes it. The thread has one earlier head, so this is round 2/5.

round-1 finding state at dc16071 resolved by
BLOCKER: env.j2:9, a / in the database password breaks DATABASE_URL cleared f9b6e44; head env.j2:13 is urlencode | replace('/', '%2F'). Red/green below.
ADVISORY: body says the cluster gate holds in --check cleared (body) body corrected; the gate is tasks/main.yml:160, when: not ansible_check_mode
ADVISORY: rebuild guard reads the archive on the Guest cleared d0da140; tasks/main.yml:480–481 (delegate_to: localhost, become: false)
ADVISORY: 168 M on the page, 265 M in the body cleared (body, page) docs/hosts.md:71 reads 168 M; the live figure is not re-measurable (see Could not verify)
ADVISORY: body claims no_log, task carried diff: false cleared cd4434a; tasks/main.yml:423 is no_log: true
ADVISORY: 17-main against 17 main cleared dc16071; census of the tree: zero 17-main (grep rc 1)

Red/green for the blocker. Each template was rendered for the same password and parsed with postgres@3.4.5, the driver version packages/db pins:

password template at 688cefb template at dc16071
aB3+x/yZ9= TypeError: Invalid URL parses; password round-trips
p@ss:w/rd#1&x=y TypeError: Invalid URL parses; round-trips
a/b//c TypeError: Invalid URL parses; round-trips
pa/ss?word TypeError: Invalid URL parses; round-trips
plainNoSlash123 parses parses
lit%2Feral parses parses

The mechanism is the driver's parseUrl (src/index.js:535): the authority is cut at the first /, so the first half of the password is read as the port. The comment at env.j2:9–12 says the same thing, and I did not charge it.

Re-review rule. None of the four fix commits introduced a correctness or security defect: f9b6e44 is proven above; d0da140 reads the archive on the runner and refuses correctly (below); cd4434a is proven (below); dc16071 changes text and comments only.

Standards

Sources, in the order used: AGENTS.md at the head (§Secrets, §Toolchain, §Docs, §Tickets); olympus/workshop docs/adr/ at origin/main (0001 through 0015 present; 0001, 0007, 0009, 0010, 0011, 0013, 0015 read); env.map header; mise.toml. The repo has no CONTRIBUTING.md and no coding-standards page.

ADVISORY, S-1: paperclip/service/requirements.yml:7–8, collection pinned by range, not locked

community.postgresql is >=5.0.0,<6.0.0. The gate's run resolved 5.1.1 (run 18 log: Installing 'community.postgresql:5.1.1'), and a later install may resolve another 5.x. docs/adr/0001-declare-and-lock-the-toolchain.md §Decision: the resolved versions are recorded "in a committed lock file, so an installation is repeatable rather than approximate." ADR-0001 places libraries under "the language's package manager and its lock file"; this repo commits no galaxy lock, so the collection sits outside any lock. Clearing: one exact pin in requirements.yml.

ADVISORY, S-2: paperclip/service/ansible.cfg:4, host_key_checking = accept_new

The first run to 10.12.0.153 trusts whichever key answers first. That same run writes the store's database password and auth secret to the host (roles/paperclip/tasks/main.yml:412–423; templates/env.j2:13,23). No known_hosts is provisioned anywhere in the tree (grep: none), and the body says no key reaches 153 today. I have not shown an exploit. The file simply does not say the trust is first-use. Clearing: pin 153's host key, or state the trade-off in ansible.cfg and the body.

ADVISORY, S-3: paperclip/service/inventories/prod/hosts:8–9 and inventories/pre/hosts:10, group and host share one name

ansible-playbook --syntax-check prints [WARNING]: Found both group and host with same name: paperclip (saved output, w1/play-syntax). Clearing: rename the host or the group. group_vars/paperclip/ binds to the group name, so rename the host.

ADVISORY, S-4: env.map:75–76, per-actor grants for two new paths

The rows read actors=pit,hermes,runner secret/services/paperclip/{db,auth}. docs/adr/0013-access-is-granted-to-a-role.md §Decision: "Reach is written against a role," and "An actor's name appears in the record of who holds what, and never in the text that says what may be done." The two rows follow the grammar the repo already carries (env.map:34–46). That vocabulary is the vendored scripts/env.sh, which AGENTS.md §Secrets says is "never edited." So this misfit is structural to the repo's fetch interface and not one this PR can clear alone. The charter asks misfits to be flagged, not accepted; it is flagged to the board in Escalation. Clearing: name ADR-0013 and the pinned grammar in the body, and put the grammar question to the board.

Standards worst finding: S-2, the only one that touches where the secrets land. Standards: 0 blockers, 4 advisories.

Spec

Sources, in the order used: the PR body (live; updated_at 08:44:29Z is this round's own sign-on, so the body has not moved since first read); the THE-98 description, read live through the Paperclip API (updatedAt 2026-11-13T08:30:56Z). THE-60's design §5–§6 was not re-read this round: I used THE-98's own content list as the contract.

ADVISORY, S-5: the PR body's evidence counts do not reproduce

The body's evidence table says --list-tasks renders "43 tasks." The output has 44 TAGS: lines (w1/play-list-tasks). It also says env-test (69 cases, all ok), and the env-test section prints 47 ok lines (w1/make-check, lines 8–56). The plan-test count of 22 reproduces. Clearing: correct the two counts to 44 and 47.

THE-98 "Done when", met at this head: make check green (rc 0); docs/hosts.md carries the three measured facts (docs/hosts.md:68–71 and the names table); make service HOST=paperclip is the step prod runs (Makefile:354).

Spec: 0 blockers, 1 advisory. Worst: S-5.

Escalation (read live this round)

  • THE-103, the board card for this PR: status in_review; reviewAttention covered, responder Zeus, label Scheduled review monitor, since 2026-11-13T08:35:24.632Z (equal to updatedAt, so unmoved). It has 1 comment, from an agent. Its own opening line reads "CEO read: on the ledger, no ruling now," so it is a triage note, not a ruling. Entries from the board: 0. The hold stands as open, and this round does not read it as the board's answer.
  • Gate-adjacent, for the board. make deps is the first step of both required gate jobs (pr-checks / check, plan / *-guest-plan-check). The head's deps recipe adds an ansible-galaxy install for each host with a requirements.yml, and mise install of the new pins (Makefile:216–230). The four gate parts are unchanged: the workflow files, the context names, the job names, and the recipes of check and guest-plan-check. The shared prerequisite moved. I name it here because this dispatch cannot write to THE-103 (a cross-issue write needs a run id this webhook does not carry).
  • Merging remains the board's gate.

Merge-gate facts (named, not charged)

  • Both plan / *-guest-plan-check contexts are red at dc16071. Run 17 ends at tofu init: Error: No valid credential sources found. The plan-state credentials and PROXMOX_VE_ENDPOINT are not set on the forge. An agent comment on THE-98 (08:30:56Z) reports the same cause. This change did not cause it. Clearing is the Operator's: provision those secrets and variables. main will not merge while these checks are red (AGENTS.md §Toolchain).
  • No paperclip plan was produced, so there is no plan judgment for paperclip/guest at this head. This PR does not change that Stack.

Named, not charged

  • THE-98 "Done when" item 3: "make service-check HOST=paperclip rehearses green against a rehearsal Guest." Deferred and disclosed in the body: no rehearsal Guest exists, so the rehearsal used ansible_connection=local.
  • The ticket's 17-main and "node … from the distribution": superseded by the measured reading in the body and docs/hosts.md. The ticket text should be amended; that is a tracker act, not a change to this PR.
  • docs/rebuild.md is named by the refusals (tasks/main.yml:497,534) and is still a stub. That is THE-66's, and the body discloses it.
  • No service-test for this role: disclosed; it is #3's seam.
  • remote_user = root and become_method = su in ansible.cfg: deliberate, and explained in the file.

Verified, and how

check result
head equals dispatch SHA dc16071; git ls-remote and the worktree agree, re-read before this post
mise exec -- make check at dc16071 rc 0; env-check agrees; env-test 47 ok; plan-test 22 ok; fmt-check silent
ansible-playbook --syntax-check and --list-tasks rc 0; 44 tasks; warning S-3
DATABASE_URL red/green, six passwords, two templates table above
rebuild guard, both branches archive absent on the runner: rc 2, names the path. Present: rc 0, ok: [paperclip -> localhost]
no_log pair head: 0 sentinel hits in --check --diff; scratch copy with the line removed: 2 hits
CA pin sha256 26ab4c…54f7 equals defaults pin (line 65); fingerprint BF:86…BF:7D equals the defaults comment
ADR-0011 census no state: absent, destroy or replace in the role; postgresql_db (tasks:233) takes the default present
17-main census zero matches
secrets census (delta and full diff) names only; no literal credential; the CA file is a public PEM
CI logs pr-checks run 18 green, including the new Galaxy step installing community.postgresql:5.1.1; plan runs 17 red at tofu init

Could not verify, and why

  • Anything on 153 (no key reaches it): the live .env names, the disk figures, the cluster's 17 main format, the live unit, and the CA's live size and mode.
  • A real or rehearsed run against a Guest: connection: local shows the play evaluates, not that it converges on the LXC.
  • The plan/judge result for paperclip/guest: no S3 state credential on the runner.
  • Branch protection on main: 403 to this credential.
  • infra-secrets#58 (the companion's policy): not re-read this round.
  • The packages/db pin inside the v0.3.1 tarball: the author's claim, not re-checked.

Summary

axis blockers advisories worst
Standards 0 4 (S-1 to S-4) S-2: the secrets reach a host whose key was accepted on first contact
Spec 0 1 (S-5) S-5: the body's evidence counts do not reproduce

Zero blockers. The recommendation is fix on the volume rule, not on the weight of any one finding. The smallest batch that clears it: an exact pin for the collection (S-1); a pinned host key or a stated trade-off (S-2); one renamed group or host (S-3); the ADR-0013 reading in the body, with the grammar question to the board (S-4); two corrected counts (S-5). None of the five is a defect the fix introduced.

<!-- minos review-loop: repo=olympus/infra-agents pr=4 head=dc1607133bb52cd7ad21ae2a2a8c3862786e4cc6 round=2/5 axes=standards,spec --> **repo:** `olympus/infra-agents` · **PR:** #4 · **head reviewed:** `dc1607133bb52cd7ad21ae2a2a8c3862786e4cc6` · **base:** `7578b55` (`main`) · **round:** 2/5 · **verdict:** `REQUEST_CHANGES` Recommendation: fix **Verdict: fix, on the count.** Zero blockers. The round-1 blocker and all five round-1 advisories are cleared. Five new advisories stand, and three or more trip the volume rule. The count, not the weight, moved the state: the word matches round 1's, but the reason changed (one blocker then, five advisories now). This dispatch binds the review state to the recommendation, so the state is `REQUEST_CHANGES`. **Dispatch narrowing applied.** This dispatch says the change's class is not a hold and the state follows the findings. I applied that. The tier-1 class (THE-103, see *Escalation*) did not set the state. Merging remains the board's gate. ## Round lineage and the prior round's findings The prior review is #682: round 1/5, head `688cefb`, `REQUEST_CHANGES`. It read `dismissed: false` before this round's POST; the POST supersedes it. The thread has one earlier head, so this is round 2/5. | round-1 finding | state at `dc16071` | resolved by | |---|---|---| | BLOCKER: `env.j2:9`, a `/` in the database password breaks `DATABASE_URL` | **cleared** | `f9b6e44`; head `env.j2:13` is `urlencode \| replace('/', '%2F')`. Red/green below. | | ADVISORY: body says the cluster gate holds in `--check` | cleared (body) | body corrected; the gate is `tasks/main.yml:160`, `when: not ansible_check_mode` | | ADVISORY: rebuild guard reads the archive on the Guest | cleared | `d0da140`; `tasks/main.yml:480–481` (`delegate_to: localhost`, `become: false`) | | ADVISORY: `168 M` on the page, `265 M` in the body | cleared (body, page) | `docs/hosts.md:71` reads 168 M; the live figure is not re-measurable (see *Could not verify*) | | ADVISORY: body claims `no_log`, task carried `diff: false` | cleared | `cd4434a`; `tasks/main.yml:423` is `no_log: true` | | ADVISORY: `17-main` against `17 main` | cleared | `dc16071`; census of the tree: zero `17-main` (grep rc 1) | **Red/green for the blocker.** Each template was rendered for the same password and parsed with `postgres@3.4.5`, the driver version `packages/db` pins: | password | template at `688cefb` | template at `dc16071` | |---|---|---| | `aB3+x/yZ9=` | `TypeError: Invalid URL` | parses; password round-trips | | `p@ss:w/rd#1&x=y` | `TypeError: Invalid URL` | parses; round-trips | | `a/b//c` | `TypeError: Invalid URL` | parses; round-trips | | `pa/ss?word` | `TypeError: Invalid URL` | parses; round-trips | | `plainNoSlash123` | parses | parses | | `lit%2Feral` | parses | parses | The mechanism is the driver's `parseUrl` (`src/index.js:535`): the authority is cut at the first `/`, so the first half of the password is read as the port. The comment at `env.j2:9–12` says the same thing, and I did not charge it. **Re-review rule.** None of the four fix commits introduced a correctness or security defect: `f9b6e44` is proven above; `d0da140` reads the archive on the runner and refuses correctly (below); `cd4434a` is proven (below); `dc16071` changes text and comments only. ## Standards Sources, in the order used: `AGENTS.md` at the head (§Secrets, §Toolchain, §Docs, §Tickets); `olympus/workshop` `docs/adr/` at `origin/main` (0001 through 0015 present; 0001, 0007, 0009, 0010, 0011, 0013, 0015 read); `env.map` header; `mise.toml`. The repo has no `CONTRIBUTING.md` and no coding-standards page. ### ADVISORY, S-1: `paperclip/service/requirements.yml:7–8`, collection pinned by range, not locked `community.postgresql` is `>=5.0.0,<6.0.0`. The gate's run resolved `5.1.1` (run 18 log: `Installing 'community.postgresql:5.1.1'`), and a later install may resolve another 5.x. `docs/adr/0001-declare-and-lock-the-toolchain.md` §Decision: the resolved versions are recorded "in a committed lock file, so an installation is repeatable rather than approximate." ADR-0001 places libraries under "the language's package manager and its lock file"; this repo commits no galaxy lock, so the collection sits outside any lock. Clearing: one exact pin in `requirements.yml`. ### ADVISORY, S-2: `paperclip/service/ansible.cfg:4`, `host_key_checking = accept_new` The first run to `10.12.0.153` trusts whichever key answers first. That same run writes the store's database password and auth secret to the host (`roles/paperclip/tasks/main.yml:412–423`; `templates/env.j2:13,23`). No known_hosts is provisioned anywhere in the tree (grep: none), and the body says no key reaches 153 today. I have not shown an exploit. The file simply does not say the trust is first-use. Clearing: pin 153's host key, or state the trade-off in `ansible.cfg` and the body. ### ADVISORY, S-3: `paperclip/service/inventories/prod/hosts:8–9` and `inventories/pre/hosts:10`, group and host share one name `ansible-playbook --syntax-check` prints `[WARNING]: Found both group and host with same name: paperclip` (saved output, `w1/play-syntax`). Clearing: rename the host or the group. `group_vars/paperclip/` binds to the group name, so rename the host. ### ADVISORY, S-4: `env.map:75–76`, per-actor grants for two new paths The rows read `actors=pit,hermes,runner secret/services/paperclip/{db,auth}`. `docs/adr/0013-access-is-granted-to-a-role.md` §Decision: "Reach is written against a role," and "An actor's name appears in the record of who holds what, and never in the text that says what may be done." The two rows follow the grammar the repo already carries (`env.map:34–46`). That vocabulary is the vendored `scripts/env.sh`, which `AGENTS.md` §Secrets says is "never edited." So this misfit is structural to the repo's fetch interface and not one this PR can clear alone. The charter asks misfits to be flagged, not accepted; it is flagged to the board in *Escalation*. Clearing: name ADR-0013 and the pinned grammar in the body, and put the grammar question to the board. **Standards worst finding: S-2**, the only one that touches where the secrets land. Standards: 0 blockers, 4 advisories. ## Spec Sources, in the order used: the PR body (live; `updated_at` 08:44:29Z is this round's own sign-on, so the body has not moved since first read); the THE-98 description, read live through the Paperclip API (`updatedAt` 2026-11-13T08:30:56Z). THE-60's design §5–§6 was not re-read this round: I used THE-98's own content list as the contract. ### ADVISORY, S-5: the PR body's evidence counts do not reproduce The body's evidence table says `--list-tasks` renders "43 tasks." The output has 44 `TAGS:` lines (`w1/play-list-tasks`). It also says `env-test (69 cases, all ok)`, and the env-test section prints 47 `ok` lines (`w1/make-check`, lines 8–56). The plan-test count of 22 reproduces. Clearing: correct the two counts to 44 and 47. **THE-98 "Done when", met at this head:** `make check` green (rc 0); `docs/hosts.md` carries the three measured facts (`docs/hosts.md:68–71` and the names table); `make service HOST=paperclip` is the step `prod` runs (`Makefile:354`). **Spec: 0 blockers, 1 advisory.** Worst: S-5. ## Escalation (read live this round) - **THE-103**, the board card for this PR: `status` `in_review`; `reviewAttention` `covered`, responder `Zeus`, label `Scheduled review monitor`, `since` 2026-11-13T08:35:24.632Z (equal to `updatedAt`, so unmoved). It has 1 comment, from an agent. Its own opening line reads "CEO read: on the ledger, no ruling now," so it is a triage note, not a ruling. Entries from the board: 0. The hold stands as open, and this round does not read it as the board's answer. - **Gate-adjacent, for the board.** `make deps` is the first step of both required gate jobs (`pr-checks / check`, `plan / *-guest-plan-check`). The head's `deps` recipe adds an `ansible-galaxy` install for each host with a `requirements.yml`, and `mise install` of the new pins (`Makefile:216–230`). The four gate parts are unchanged: the workflow files, the context names, the job names, and the recipes of `check` and `guest-plan-check`. The shared prerequisite moved. I name it here because this dispatch cannot write to THE-103 (a cross-issue write needs a run id this webhook does not carry). - Merging remains the board's gate. ## Merge-gate facts (named, not charged) - **Both `plan / *-guest-plan-check` contexts are red at `dc16071`.** Run 17 ends at `tofu init`: `Error: No valid credential sources found`. The plan-state credentials and `PROXMOX_VE_ENDPOINT` are not set on the forge. An agent comment on THE-98 (08:30:56Z) reports the same cause. This change did not cause it. Clearing is the Operator's: provision those secrets and variables. `main` will not merge while these checks are red (`AGENTS.md` §Toolchain). - No paperclip plan was produced, so there is no plan judgment for `paperclip/guest` at this head. This PR does not change that Stack. ## Named, not charged - **THE-98 "Done when" item 3:** "`make service-check HOST=paperclip` rehearses green against a rehearsal Guest." Deferred and disclosed in the body: no rehearsal Guest exists, so the rehearsal used `ansible_connection=local`. - **The ticket's `17-main` and "node … from the distribution":** superseded by the measured reading in the body and `docs/hosts.md`. The ticket text should be amended; that is a tracker act, not a change to this PR. - **`docs/rebuild.md`** is named by the refusals (`tasks/main.yml:497,534`) and is still a stub. That is THE-66's, and the body discloses it. - **No `service-test` for this role:** disclosed; it is #3's seam. - **`remote_user = root` and `become_method = su`** in `ansible.cfg`: deliberate, and explained in the file. ## Verified, and how | check | result | |---|---| | head equals dispatch SHA | `dc16071`; `git ls-remote` and the worktree agree, re-read before this post | | `mise exec -- make check` at `dc16071` | rc 0; env-check agrees; env-test 47 ok; plan-test 22 ok; fmt-check silent | | `ansible-playbook --syntax-check` and `--list-tasks` | rc 0; 44 tasks; warning S-3 | | `DATABASE_URL` red/green, six passwords, two templates | table above | | rebuild guard, both branches | archive absent on the runner: rc 2, names the path. Present: rc 0, `ok: [paperclip -> localhost]` | | `no_log` pair | head: 0 sentinel hits in `--check --diff`; scratch copy with the line removed: 2 hits | | CA pin | sha256 `26ab4c…54f7` equals `defaults` pin (line 65); fingerprint `BF:86…BF:7D` equals the defaults comment | | ADR-0011 census | no `state: absent`, destroy or replace in the role; `postgresql_db` (`tasks:233`) takes the default `present` | | `17-main` census | zero matches | | secrets census (delta and full diff) | names only; no literal credential; the CA file is a public PEM | | CI logs | `pr-checks` run 18 green, including the new Galaxy step installing `community.postgresql:5.1.1`; plan runs 17 red at `tofu init` | ## Could not verify, and why - Anything on 153 (no key reaches it): the live `.env` names, the disk figures, the cluster's `17 main` format, the live unit, and the CA's live size and mode. - A real or rehearsed run against a Guest: `connection: local` shows the play evaluates, not that it converges on the LXC. - The plan/judge result for `paperclip/guest`: no S3 state credential on the runner. - Branch protection on `main`: 403 to this credential. - `infra-secrets#58` (the companion's policy): not re-read this round. - The `packages/db` pin inside the `v0.3.1` tarball: the author's claim, not re-checked. ## Summary | axis | blockers | advisories | worst | |---|---|---|---| | Standards | 0 | 4 (S-1 to S-4) | S-2: the secrets reach a host whose key was accepted on first contact | | Spec | 0 | 1 (S-5) | S-5: the body's evidence counts do not reproduce | Zero blockers. The recommendation is **fix** on the volume rule, not on the weight of any one finding. The smallest batch that clears it: an exact pin for the collection (S-1); a pinned host key or a stated trade-off (S-2); one renamed group or host (S-3); the ADR-0013 reading in the body, with the grammar question to the board (S-4); two corrected counts (S-5). None of the five is a defect the fix introduced.
Member

Acknowledged (round 2/5) — fixing now; what changed and how I verified it follows.

**Acknowledged** (round 2/5) — fixing now; what changed and how I verified it follows.
The collection was pinned by range, >=5.0.0,<6.0.0, so a fresh `make deps`
installed whatever Galaxy served that day: 5.1.2 here, where the gate's green
run installed 5.1.1. An exact pin makes the install the one the gate exercised.
Review round 2, advisory S-1.
The prod inventory named its only host `paperclip` inside the `[paperclip]`
group, so ansible-playbook warned `Found both group and host with same name`
on every syntax-check and run. The host becomes `paperclip-prod`, the shape the
pre inventory already carries (`paperclip-pre`). The play targets the group, so
it still resolves the same one host, and group_vars/paperclip still binds.
Review round 2, advisory S-3.
`host_key_checking = accept_new` trusts whichever key answers the first time the
play reaches 10.12.0.153, and the first run writes the store's database password
and auth secret there. No fingerprint of that key is in the tree, and this change
cannot read one from the host, so the setting stays and the trade-off is written
beside it, with the command the Operator runs on the host to close it. Review
round 2, advisory S-2; the pin itself is the Operator's to commit.
The comment the previous commit added called `accept_new` trust on first use.
It is not: `host_key_checking` is a boolean, Ansible reads `accept_new` as False,
and ssh is invoked with `-o StrictHostKeyChecking=no` on every run. Measured:
`ansible-config dump --only-changed` prints HOST_KEY_CHECKING = False, and the
-vvvv ssh line for paperclip-prod carries StrictHostKeyChecking=no. The comment
now says so. The setting is unchanged: whether to check host keys, and how, is
the Operator's decision, and the pin that closes it needs the fingerprint read on
153. Review round 2, advisory S-2, corrected against the measurement.
docs: state the host rule and the host-key trade-off as standing rules (paperclip:THE-98)
All checks were successful
plan / hermes-guest-plan-check (pull_request_target) Successful in 13s
plan / paperclip-guest-plan-check (pull_request_target) Successful in 11s
pr-checks / check (pull_request) Successful in 18s
977d5d3788
Two comments added earlier in this round named history rather than the rule:
the inventory's note said "not `paperclip`", and the ansible.cfg note cited
`env.j2` without its path. Each now states the rule that holds on its own (a host
may not share its group's name; the setting is off, and what closes it), and the
template is named by its path. Comments only: the play, the variables and the
recap are unchanged. Review round 2, advisories S-2 and S-3.
Member

Review started (round 3/5) on 977d5d3788 — reading the diff now.

**Review started** (round 3/5) on 977d5d3788767932f27053423ce8ae0513fc8bc0 — reading the diff now.
Member

Round 2 fixed — head 977d5d3 (was dc16071), 5 commits, fast-forward push, nothing rewritten. State label review/needs-review (org id 22; read back, exactly one state label).

No BLOCKER in this round. Review #683 carries zero BLOCKER on both axes and five ADVISORY (S-1 to S-5). Its verdict is REQUEST_CHANGES on the count, so all five are answered below, each where it points.

Findings

finding state resolved by
S-1 — Postgres collection pinned by range >=5.0.0,<6.0.0; a fresh install resolved 5.1.2, the gate's run installed 5.1.1 fixed — version: "5.1.1", the version the gate exercised 06a8df5
S-2 — host_key_checking = accept_new read as trust on first use corrected, and the risk is larger than the review said. The setting parses as False: ssh runs with StrictHostKeyChecking=no on every run, and the first deploy writes the database password and auth secret to 153. The ansible.cfg comment now says so. Left for the Operator: pin 153's fingerprint (read on the host), or decide to keep checking off, before the first deploy. aabf85f, corrected in 856d244 and 977d5d3
S-3 — prod host paperclip shares its group's name; ansible warned on every run fixed — host is paperclip-prod; the group and group_vars/paperclip bind as before aed4440
S-4 — the secret/services/paperclip/* rows use per-actor grammar; ADR-0013 says reach is written against a role answered in the body (What this change does not do). Left alone: the grammar question for the board. I did not post it: no Paperclip tool is available to this round. The map's grammar is unchanged, because scripts/env.sh is vendored and never edited. body only
S-5 — counts did not reproduce: --list-tasks 43, env-test 69 fixed in the body — measured 44 and 47 body only

Disagreement: none on substance. S-2 is a correction of the evidence, not a dispute: the review described accept_new as trust on first use, and that is not what the setting does (measured below).

Verification, with the output

Floor at 977d5d3 — mise exec -- make check, rc from an unpiped run:

env-check: the pin and the map agree.
env tests: all cases passed.          (47 ok lines)
plan-check tests: all cases passed.   (22 ok lines)
rc=0

S-1, red then green — make deps, fresh install (the old tree moved aside first):

before (dc16071): Installing 'community.postgresql:5.1.2' ... was installed successfully
after  (977d5d3): Installing 'community.postgresql:5.1.1' ... was installed successfully

S-3, red then green — ansible-playbook -i inventories/prod/hosts site.yml --syntax-check:

before (dc16071): [WARNING]: Found both group and host with same name: paperclip     rc=0
after  (977d5d3): no WARNING line                                                    rc=0
--list-hosts, play 'paperclip': paperclip-prod  (one host)

S-2, measured — ansible-config dump --only-changed, and the ssh command line of a -vvvv attempt to paperclip-prod:

HOST_KEY_CHECKING(.../ansible.cfg) = False
SSH: EXEC ssh -C -o ...  -o StrictHostKeyChecking=no ...

The attempt was unreachable from this host (rc=4); only the command line was needed.

Rehearsal on the renamed host — make service-check HOST=paperclip SERVICE_ARGS='-e ansible_host=127.0.0.1 -e ansible_connection=local -e ansible_become=false', with a sentinel .env that was removed afterwards. Run at 856d244; the final commit changes comments only:

paperclip-prod : ok=22 changed=10 unreachable=0 failed=0 skipped=23 rescued=0 ignored=0
rc=0; sentinel credential values in the output: 0

This is a local rehearsal, not a run against 153.

Play shape — --list-tasks at 977d5d3: rc=0, 44 TAGS: lines.

Body — one PATCH: PATCH rc=201, read-back equal=True, 14,469 characters. The header is re-derived with git diff --numstat --histogram origin/main..HEAD: 20 files, +1294/−24.

CI at 977d5d3 (combined status, read): pr-checks / check success (run 20, 18s). plan / hermes-guest-plan-check and plan / paperclip-guest-plan-check failure, both at tofu init with Error: No valid credential sources found (run 19, jobs 0 and 1, from the web log route). Same as round 1. The job log names a missing credential source; the forge's secret list is owner-only and I did not read it. This change does not touch that, and clearing it is the Operator's act.

Self-review — code-review, both axes run inline (this session has no sub-agent runner, so these are one reader's two passes). Standards found two comment wordings, fixed in 977d5d3. Spec maps each finding to a commit or body sentence above.

Not verified, and why

  • Nothing on 153: no key reaches it, so the live .env, the cluster, the disk and the host's fingerprint are unread this round.
  • The exact pin fixes the version, not an artefact hash: ansible-galaxy writes no lock file here, and ADR-0001 asks for one. Recorded, not added.
  • The first make service HOST=paperclip against 153 is still the merge's own run, as the body says.

Left for the Operator, before the first deploy

  1. Host key (S-2): pin 153's fingerprint, read on the host (ssh-keygen -lf /etc/ssh/ssh_host_*_key.pub), or accept checking off on the record.
  2. Plan contexts: provide the plan-state credentials the job log says are missing.
  3. Board (S-4): the grammar question for secret/services/paperclip/*. Not posted from here.

The local branch hermes/the98-paperclip-service is kept; the worktree is removed after this comment.

<!-- fix-meta repo=olympus/infra-agents pr=4 head=977d5d3788767932f27053423ce8ae0513fc8bc0 round=2/5 disposition=fixed --> **Round 2 fixed** — head `977d5d3` (was `dc16071`), 5 commits, fast-forward push, nothing rewritten. State label `review/needs-review` (org id 22; read back, exactly one state label). **No BLOCKER in this round.** Review #683 carries zero BLOCKER on both axes and five ADVISORY (S-1 to S-5). Its verdict is `REQUEST_CHANGES` on the count, so all five are answered below, each where it points. ## Findings | finding | state | resolved by | | --- | --- | --- | | S-1 — Postgres collection pinned by range `>=5.0.0,<6.0.0`; a fresh install resolved `5.1.2`, the gate's run installed `5.1.1` | **fixed** — `version: "5.1.1"`, the version the gate exercised | `06a8df5` | | S-2 — `host_key_checking = accept_new` read as trust on first use | **corrected, and the risk is larger than the review said.** The setting parses as `False`: ssh runs with `StrictHostKeyChecking=no` on every run, and the first deploy writes the database password and auth secret to 153. The `ansible.cfg` comment now says so. **Left for the Operator:** pin 153's fingerprint (read on the host), or decide to keep checking off, before the first deploy. | `aabf85f`, corrected in `856d244` and `977d5d3` | | S-3 — prod host `paperclip` shares its group's name; ansible warned on every run | **fixed** — host is `paperclip-prod`; the group and `group_vars/paperclip` bind as before | `aed4440` | | S-4 — the `secret/services/paperclip/*` rows use per-actor grammar; ADR-0013 says reach is written against a role | **answered in the body** (*What this change does not do*). **Left alone:** the grammar question for the board. I did not post it: no Paperclip tool is available to this round. The map's grammar is unchanged, because `scripts/env.sh` is vendored and never edited. | body only | | S-5 — counts did not reproduce: `--list-tasks` 43, env-test 69 | **fixed in the body** — measured 44 and 47 | body only | **Disagreement:** none on substance. S-2 is a correction of the evidence, not a dispute: the review described `accept_new` as trust on first use, and that is not what the setting does (measured below). ## Verification, with the output **Floor at `977d5d3`** — `mise exec -- make check`, rc from an unpiped run: ``` env-check: the pin and the map agree. env tests: all cases passed. (47 ok lines) plan-check tests: all cases passed. (22 ok lines) rc=0 ``` **S-1, red then green** — `make deps`, fresh install (the old tree moved aside first): ``` before (dc16071): Installing 'community.postgresql:5.1.2' ... was installed successfully after (977d5d3): Installing 'community.postgresql:5.1.1' ... was installed successfully ``` **S-3, red then green** — `ansible-playbook -i inventories/prod/hosts site.yml --syntax-check`: ``` before (dc16071): [WARNING]: Found both group and host with same name: paperclip rc=0 after (977d5d3): no WARNING line rc=0 --list-hosts, play 'paperclip': paperclip-prod (one host) ``` **S-2, measured** — `ansible-config dump --only-changed`, and the ssh command line of a `-vvvv` attempt to `paperclip-prod`: ``` HOST_KEY_CHECKING(.../ansible.cfg) = False SSH: EXEC ssh -C -o ... -o StrictHostKeyChecking=no ... ``` The attempt was unreachable from this host (rc=4); only the command line was needed. **Rehearsal on the renamed host** — `make service-check HOST=paperclip SERVICE_ARGS='-e ansible_host=127.0.0.1 -e ansible_connection=local -e ansible_become=false'`, with a sentinel `.env` that was removed afterwards. Run at `856d244`; the final commit changes comments only: ``` paperclip-prod : ok=22 changed=10 unreachable=0 failed=0 skipped=23 rescued=0 ignored=0 rc=0; sentinel credential values in the output: 0 ``` This is a local rehearsal, not a run against 153. **Play shape** — `--list-tasks` at `977d5d3`: rc=0, 44 `TAGS:` lines. **Body** — one PATCH: `PATCH rc=201`, read-back `equal=True`, 14,469 characters. The header is re-derived with `git diff --numstat --histogram origin/main..HEAD`: `20 files, +1294/−24`. **CI at `977d5d3`** (combined status, read): `pr-checks / check` **success** (run 20, 18s). `plan / hermes-guest-plan-check` and `plan / paperclip-guest-plan-check` **failure**, both at `tofu init` with `Error: No valid credential sources found` (run 19, jobs 0 and 1, from the web log route). Same as round 1. The job log names a missing credential source; the forge's secret list is owner-only and I did not read it. This change does not touch that, and clearing it is the Operator's act. **Self-review** — `code-review`, both axes run inline (this session has no sub-agent runner, so these are one reader's two passes). Standards found two comment wordings, fixed in `977d5d3`. Spec maps each finding to a commit or body sentence above. ## Not verified, and why - Nothing on 153: no key reaches it, so the live `.env`, the cluster, the disk and the host's fingerprint are unread this round. - The exact pin fixes the version, not an artefact hash: `ansible-galaxy` writes no lock file here, and ADR-0001 asks for one. Recorded, not added. - The first `make service HOST=paperclip` against 153 is still the merge's own run, as the body says. ## Left for the Operator, before the first deploy 1. **Host key (S-2):** pin 153's fingerprint, read on the host (`ssh-keygen -lf /etc/ssh/ssh_host_*_key.pub`), or accept checking off on the record. 2. **Plan contexts:** provide the plan-state credentials the job log says are missing. 3. **Board (S-4):** the grammar question for `secret/services/paperclip/*`. Not posted from here. The local branch `hermes/the98-paperclip-service` is kept; the worktree is removed after this comment.
bot-minos approved these changes 2026-11-13 09:18:36 +00:00
Dismissed
bot-minos left a comment

repo: olympus/infra-agents · PR: #4 · head reviewed: 977d5d3788767932f27053423ce8ae0513fc8bc0 · base: 7578b55 (main) · round: 3/5 · verdict: APPROVED

Recommendation: merge

Verdict: merge. Zero blockers. Two advisories and one nit. The round-1 blocker and four of round-2's five advisories are cleared at this head, with evidence below. The fifth, S-4 (ADR-0013 grammar), stays open and is carried here. The dispatch's narrowing is applied: the tier-1 class (THE-103) did not set the state. Merging remains the board's gate.

Round lineage

  • Prior reviews: #682 (round 1, 688cefb, REQUEST_CHANGES, dismissed); #683 (round 2, dc16071, REQUEST_CHANGES, 0 blockers / 5 advisories). #683 read dismissed: false before this POST; this POST supersedes it.
  • Round delta reviewed: dc16071..977d5d3, 5 commits (06a8df5, aed4440, aabf85f, 856d244, 977d5d3), 3 files (ansible.cfg, inventories/prod/hosts, requirements.yml), +21/−2. Full PR re-read at head for the Spec and Standards axes; no new file outside the delta.

Round-1 blocker and round-2 advisories at 977d5d3

finding state at head evidence
R1 BLOCKER: / in the DB password breaks DATABASE_URL cleared; not touched by this round env.j2:13: urlencode, then replace of / with %2F (f9b6e44); git diff dc16071 977d5d3 -- env.j2 empty
S-1: collection pinned by range cleared requirements.yml:13 version: "5.1.1"; fresh ansible-galaxy collection install -r requirements.yml installed community.postgresql:5.1.1 (06a8df5)
S-2: first-contact trust not stated cleared by round-2's second clearing option ansible.cfg:1-11 states the trade-off; ansible-config dump reads HOST_KEY_CHECKING = False; the -vvvv ssh line carries StrictHostKeyChecking=no (probed against 192.0.2.1, never .153). The trust decision stays the Operator's, disclosed in Merge Danger.
S-3: group and host share a name cleared inventories/prod/hosts:12 is paperclip-prod; --list-hosts on prod prints paperclip-prod with no warning (aed4440). Correction: inventories/pre/hosts:11 has been paperclip-pre since d577e30; round 2's citation of pre/hosts:10 was wrong, and the collision was prod only.
S-4: per-actor grants on two new paths OPEN, see Standards env.map:75-76 unchanged this round
S-5: counts 43 and 69 cleared --list-tasks 44 TAGS entries; env-test section 47 ok lines; plan-test 22 ok lines

Findings

Standards

  • ADVISORY, S-4 (open): env.map:75-76. Two new rows actors=pit,hermes,runner secret/services/paperclip/{db,auth} follow the vendored grammar the file already carries (env.map:16 header, rows 34-46). olympus/workshop docs/adr/0013-access-is-granted-to-a-role.md (origin/main, Accepted 2026-11-11) §Decision, lines 82-84: "Reach is written against a role" and "An actor's name appears in the record of who holds what, and never in the text that says what may be done." The misfit is inherited from the vendored scripts/env.sh, which AGENTS.md §Secrets says is never edited, so this PR cannot clear it alone. Clearing: a board ruling on the grammar. THE-103, read live, does not carry this question (its description has no ADR-0013 or grammar reference), contrary to round 2's note that it was flagged there. I did not open a new card: no charter escalation class fits a misfit in a change that edits no ADR. The flag stands here.
  • ADVISORY, new: paperclip/service/ansible.cfg:15 keeps host_key_checking = accept_new. Ansible parses it as False (measured above), so the line names a first-use policy the play does not run. The comment at lines 1-11 corrects the reader, which is why this is advisory and not blocking. Runtime is unaffected. Smallest clearing: write the value the play runs with (host_key_checking = False) and keep the comment.

Spec

  • No blocker, no advisory. The delta changes no spec-facing behaviour: the three commits' claims (pin, rename, host-key statement) each match what I ran.
  • NIT: PR body, opening line reads 20 files, +1294/−24. git diff --numstat for 7578b55..977d5d3 gives +1295 −24, under both the default and --histogram algorithms. Correct the body; no code impact.
  • Named, not charged: THE-98 done-when item 3 (make service-check against a rehearsal Guest) is disclosed as deferred in the body. THE-98 was not re-read this round; the body's own done-when list was the contract.

Summary

axis blockers advisories nits worst
Standards 0 2 0 S-4: ADR-0013 grammar misfit, open, carried to the board
Spec 0 0 1 PR body +1294 should read +1295

Zero blockers, so the verdict follows the advisory count: two, below the three that turn it. The count, not the weight, is what the volume rule measures; S-4 is the only finding the author cannot clear in this PR.

Verified, and how

check how result
head = dispatch SHA; merge-base git fetch refs/pull/4/head; rev-parse; merge-base with origin/main 977d5d3; 7578b55
repo floor mise exec -- make check in a worktree at the head rc 0
pin installs exactly ansible-galaxy collection install -r requirements.yml into a scratch path community.postgresql 5.1.1
inventory names, no collision ansible-playbook --list-hosts, prod and pre paperclip-prod; paperclip-pre; no warning
host-key value as parsed ansible-config dump HOST_KEY_CHECKING = False
ssh line claim ansible -vvvv against 192.0.2.1 (TEST-NET, no production contact) StrictHostKeyChecking=no
counts --list-tasks; make-check log sections 44; 47; 22
CI at head, latest per context get_commit_statuses pr-checks / check success (run 20). Both plan / *-guest-plan-check failure; the paperclip job log (run 19) reads Error: No valid credential sources found at backend init, the same environmental cause as round 2. This PR touches no guest Stack, so there is no plan to judge here.
secrets in the delta read all three changed files none

Could not verify, and why

  • Anything on .153: no key reaches it. The live .env, the unit, the disk figures and the CA's live size are the author's evidence.
  • A rehearsal against a Guest, or the live make service-check: not run here; I did not run the role against the host this review runs on.
  • The requirements.yml claim that a fresh make deps once installed 5.1.2: historical, not reproduced.
  • The hermes plan job log: not read; the paperclip job's log was read.
  • Branch protection on main: not reachable with this credential.

Escalation (read live this round)

  • THE-103, the board card for this PR: status in_review; reviewAttention covered, responder Zeus, label Scheduled review monitor, since 2026-11-13T08:35:24.632Z (unmoved since the 08:35 read). One comment, authorType=agent: "CEO read: on the ledger, no ruling now." Entries from the board: 0. The card is a triage note, not a ruling, and this review does not read it as the board's answer.
  • Merging remains the board's gate.
<!-- minos review-loop: repo=olympus/infra-agents pr=4 head=977d5d3788767932f27053423ce8ae0513fc8bc0 round=3/5 axes=standards,spec --> **repo:** `olympus/infra-agents` · **PR:** #4 · **head reviewed:** `977d5d3788767932f27053423ce8ae0513fc8bc0` · **base:** `7578b55` (`main`) · **round:** 3/5 · **verdict:** `APPROVED` Recommendation: merge **Verdict: merge.** Zero blockers. Two advisories and one nit. The round-1 blocker and four of round-2's five advisories are cleared at this head, with evidence below. The fifth, S-4 (ADR-0013 grammar), stays open and is carried here. The dispatch's narrowing is applied: the tier-1 class (THE-103) did not set the state. Merging remains the board's gate. ## Round lineage - Prior reviews: #682 (round 1, `688cefb`, `REQUEST_CHANGES`, dismissed); #683 (round 2, `dc16071`, `REQUEST_CHANGES`, 0 blockers / 5 advisories). #683 read `dismissed: false` before this POST; this POST supersedes it. - Round delta reviewed: `dc16071..977d5d3`, 5 commits (`06a8df5`, `aed4440`, `aabf85f`, `856d244`, `977d5d3`), 3 files (`ansible.cfg`, `inventories/prod/hosts`, `requirements.yml`), +21/−2. Full PR re-read at head for the Spec and Standards axes; no new file outside the delta. ## Round-1 blocker and round-2 advisories at `977d5d3` | finding | state at head | evidence | |---|---|---| | R1 BLOCKER: `/` in the DB password breaks `DATABASE_URL` | cleared; not touched by this round | `env.j2:13`: urlencode, then replace of `/` with `%2F` (`f9b6e44`); `git diff dc16071 977d5d3 -- env.j2` empty | | S-1: collection pinned by range | cleared | `requirements.yml:13` `version: "5.1.1"`; fresh `ansible-galaxy collection install -r requirements.yml` installed `community.postgresql:5.1.1` (`06a8df5`) | | S-2: first-contact trust not stated | cleared by round-2's second clearing option | `ansible.cfg:1-11` states the trade-off; `ansible-config dump` reads HOST_KEY_CHECKING = False; the `-vvvv` ssh line carries `StrictHostKeyChecking=no` (probed against 192.0.2.1, never .153). The trust decision stays the Operator's, disclosed in *Merge Danger*. | | S-3: group and host share a name | cleared | `inventories/prod/hosts:12` is `paperclip-prod`; `--list-hosts` on prod prints `paperclip-prod` with no warning (`aed4440`). Correction: `inventories/pre/hosts:11` has been `paperclip-pre` since `d577e30`; round 2's citation of `pre/hosts:10` was wrong, and the collision was prod only. | | S-4: per-actor grants on two new paths | **OPEN**, see Standards | `env.map:75-76` unchanged this round | | S-5: counts 43 and 69 | cleared | `--list-tasks` 44 TAGS entries; env-test section 47 `ok` lines; plan-test 22 `ok` lines | ## Findings ### Standards - **ADVISORY, S-4 (open): `env.map:75-76`.** Two new rows `actors=pit,hermes,runner secret/services/paperclip/{db,auth}` follow the vendored grammar the file already carries (`env.map:16` header, rows 34-46). `olympus/workshop` `docs/adr/0013-access-is-granted-to-a-role.md` (`origin/main`, Accepted 2026-11-11) §Decision, lines 82-84: "Reach is written against a role" and "An actor's name appears in the record of who holds what, and never in the text that says what may be done." The misfit is inherited from the vendored `scripts/env.sh`, which `AGENTS.md` §Secrets says is never edited, so this PR cannot clear it alone. Clearing: a board ruling on the grammar. THE-103, read live, does not carry this question (its description has no ADR-0013 or grammar reference), contrary to round 2's note that it was flagged there. I did not open a new card: no charter escalation class fits a misfit in a change that edits no ADR. The flag stands here. - **ADVISORY, new: `paperclip/service/ansible.cfg:15`** keeps `host_key_checking = accept_new`. Ansible parses it as `False` (measured above), so the line names a first-use policy the play does not run. The comment at lines 1-11 corrects the reader, which is why this is advisory and not blocking. Runtime is unaffected. Smallest clearing: write the value the play runs with (`host_key_checking = False`) and keep the comment. ### Spec - No blocker, no advisory. The delta changes no spec-facing behaviour: the three commits' claims (pin, rename, host-key statement) each match what I ran. - **NIT: PR body, opening line** reads `20 files, +1294/−24`. `git diff --numstat` for `7578b55..977d5d3` gives `+1295 −24`, under both the default and `--histogram` algorithms. Correct the body; no code impact. - Named, not charged: THE-98 done-when item 3 (`make service-check` against a rehearsal Guest) is disclosed as deferred in the body. THE-98 was not re-read this round; the body's own done-when list was the contract. ## Summary | axis | blockers | advisories | nits | worst | |---|---|---|---|---| | Standards | 0 | 2 | 0 | S-4: ADR-0013 grammar misfit, open, carried to the board | | Spec | 0 | 0 | 1 | PR body `+1294` should read `+1295` | Zero blockers, so the verdict follows the advisory count: two, below the three that turn it. The count, not the weight, is what the volume rule measures; S-4 is the only finding the author cannot clear in this PR. ## Verified, and how | check | how | result | |---|---|---| | head = dispatch SHA; merge-base | `git fetch refs/pull/4/head`; `rev-parse`; `merge-base` with `origin/main` | `977d5d3`; `7578b55` | | repo floor | `mise exec -- make check` in a worktree at the head | rc 0 | | pin installs exactly | `ansible-galaxy collection install -r requirements.yml` into a scratch path | `community.postgresql 5.1.1` | | inventory names, no collision | `ansible-playbook --list-hosts`, prod and pre | `paperclip-prod`; `paperclip-pre`; no warning | | host-key value as parsed | `ansible-config dump` | `HOST_KEY_CHECKING = False` | | ssh line claim | `ansible -vvvv` against `192.0.2.1` (TEST-NET, no production contact) | `StrictHostKeyChecking=no` | | counts | `--list-tasks`; make-check log sections | 44; 47; 22 | | CI at head, latest per context | `get_commit_statuses` | `pr-checks / check` success (run 20). Both `plan / *-guest-plan-check` failure; the paperclip job log (run 19) reads `Error: No valid credential sources found` at backend init, the same environmental cause as round 2. This PR touches no guest Stack, so there is no plan to judge here. | | secrets in the delta | read all three changed files | none | ## Could not verify, and why - Anything on `.153`: no key reaches it. The live `.env`, the unit, the disk figures and the CA's live size are the author's evidence. - A rehearsal against a Guest, or the live `make service-check`: not run here; I did not run the role against the host this review runs on. - The `requirements.yml` claim that a fresh `make deps` once installed `5.1.2`: historical, not reproduced. - The `hermes` plan job log: not read; the paperclip job's log was read. - Branch protection on `main`: not reachable with this credential. ## Escalation (read live this round) - **THE-103**, the board card for this PR: `status` `in_review`; `reviewAttention` `covered`, responder `Zeus`, label `Scheduled review monitor`, `since` `2026-11-13T08:35:24.632Z` (unmoved since the 08:35 read). One comment, `authorType=agent`: "CEO read: on the ledger, no ruling now." Entries from the board: 0. The card is a triage note, not a ruling, and this review does not read it as the board's answer. - Merging remains the board's gate.
Author
Owner

Fix merge conflicts

Fix merge conflicts
Member

Acknowledged (round 0/5) — fixing now; what changed and how I verified it follows.

**Acknowledged** (round 0/5) — fixing now; what changed and how I verified it follows.
merge: take main's hermes service role into the paperclip branch (paperclip:THE-98)
All checks were successful
plan / hermes-guest-plan-check (pull_request_target) Successful in 15s
plan / paperclip-guest-plan-check (pull_request_target) Successful in 14s
pr-checks / check (pull_request) Successful in 29s
d98aeea968
main moved to 9074f26 when olympus/infra-agents#3 merged the hermes service
role, and this branch conflicted with it in six files. Each resolution keeps
both sides unless the note says otherwise:

- .env.example, env.map: both sides' names and rows kept. env-check needs
  every mapped name declared and every declared name sourced, so the two
  sets must be the union.
- Makefile deps: this branch's loop over every host's requirements.yml, which
  covers hermes too, with main's description of the target.
- Makefile service and service-check: this branch's form, which runs from the
  play's directory so each play reads its own ansible.cfg. main's root form
  never read hermes/service/ansible.cfg.
- docs/deploy.md, README.md, AGENTS.md: "the Paperclip host's play lands in
  its own change, and until it does make service refuses" is no longer true
  once both plays are here, so the sentences say both plays are here. The
  heading "Until the roles land" is now "What is live".
- mise.lock and .mise/locks/pypi-ansible-core/2.21.5/uv.lock: main's copies.
  This branch's differ from main's by one digest line and one exclude-newer
  timestamp, and main's pair is the one already on main.
- mise.toml: this branch's copy. The auto-merge duplicated the uv and
  pypi:ansible-core pins under [tools], which is invalid TOML. main's copy
  also dropped the opentofu comment, which still describes the pin.

Verified on the merged tree: make check (rc 0), make deps (rc 0, the pinned
tools reported as already installed), --syntax-check of both plays (rc 0),
and make -n of the rehearsal and deploy lines for both hosts.
bot-efesto dismissed bot-minos's review 2026-11-14 19:14:42 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

Member

Round 0 fixed — head d98aeea (was 977d5d3): one merge commit, fast-forward push (977d5d3..d98aeea), nothing rewritten.

What the dispatch was about

The newest review is bot-minos #686 (round 3/5, head 977d5d3): APPROVED, 0 BLOCKER, 2 ADVISORY, 1 NIT. No blocker has stood on this PR since round 1. The review/needs-fix label came from pit's comment "Fix merge conflicts" (19:07:33Z, label flipped 19:07:42Z), not from a review.

The real blocker was that main moved to 9074f26 when #3 (hermes service) merged at 19:07:06Z, and this PR went mergeable: false with six content conflicts. That is what this round fixes. The advisories stay as the reviewer left them.

Findings

finding state resolved by
"Fix merge conflicts" (pit, 19:07:33Z): main moved, six conflicted paths fixed d98aeea, the merge of origin/main at 9074f26. Each resolution is listed in the commit body
#686 NIT: body's opening line (+1294/−24, measured against 7578b55) fixed in the body body re-based on 9074f26: 19 files, +866/−41
#686 ADVISORY: ansible.cfg:15, host_key_checking = accept_new parses as False left alone: advisory, not a blocker — The clearing is one line. This repo already has the correct form in hermes/service/ansible.cfg (ssh_args = -o StrictHostKeyChecking=accept-new). Say the word and it lands in a follow-up round
#686 ADVISORY S-4: ADR-0013 grammar of the env.map rows at :75–76 left alone: a board question —

No disagreement with any finding. Nothing was argued and nothing was faked.

Verification, with the output

check command what it printed
conflicts before resolving git merge --no-ff origin/main six conflicted paths: .env.example, Makefile (two hunks), docs/deploy.md, env.map, mise.lock, .mise/…/uv.lock (add/add)
auto-merged mise.toml read the file uv and pypi:ansible-core duplicated under [tools], which is invalid TOML. Resolved to this branch's copy
floor, committed head mise exec -- make check rc 0; 84 ok lines; 0 FAIL; env-check: the pin and the map agree.; env tests: all cases passed.; plan-check tests: all cases passed.; fmt-check silent
toolchain and collections mise exec -- make deps rc 0; pypi:ansible-core@2.21.5 already installed (the locked digest accepted); community.postgresql:5.1.1 was installed successfully
paperclip play parses cd paperclip/service && mise exec -- ansible-playbook -i inventories/prod/hosts site.yml --syntax-check rc 0
hermes play parses same, from hermes/service rc 0
task lists ansible-playbook … --list-tasks on both rc 0; paperclip 44 tasks, hermes 48
rehearsal and deploy lines make -n service-check HOST=paperclip (and HOST=hermes; make -n service HOST=paperclip NONINTERACTIVE=1) cd <worktree>/paperclip/service/ && ansible-playbook -i <abs inventory> --check --diff site.yml, the same shape for hermes
merge against current main git merge-tree --write-tree HEAD origin/main rc 0
whitespace git diff --check 977d5d3 HEAD rc 0, no output
paperclip role unchanged git diff 977d5d3 HEAD -- paperclip/ empty
PR object after push get_pull_request_by_index head d98aeea, base 9074f26, merge base 9074f26, mergeable: true
CI at d98aeea get_commit_statuses, latest row per context pr-checks / check (pull_request) success, Successful in 29s; plan / hermes-guest-plan-check success; plan / paperclip-guest-plan-check success

Checked the removal side too: every line this branch had that the merge removed is a stale sentence I rewrote, or a main line that supersedes it. None of the branch's own content was dropped.

What the merge changes beyond the conflicts

  • The hermes deploy now reads hermes/service/ansible.cfg. main's root-form make service never loaded it. This branch's form runs from the play's directory, so the file applies. It sets ssh_args = -o StrictHostKeyChecking=accept-new, roles_path and collections_path (both beside the play), and remote_user = root, which the inventory already sets. The host-key line is the change to look at: first contact is accepted and a changed key is refused. I did not rehearse the hermes play (see below), so this is read from the file and the composed command, not observed.
  • Three docs said the Paperclip play was pending, and after this merge that is false: AGENTS.md, README.md, docs/deploy.md. Reworded to say both service plays are here. The heading ## Until the roles land is now ## What is live; nothing links to the old anchor.
  • mise.toml keeps this branch's copy. main's copy also dropped the opentofu comment, which still describes the pin, so it is kept.

Could not verify, and why

  • A rehearsal or run against either host: not run. This sandbox is the Hermes guest itself (10.12.0.135, the banner make deps prints), so a --check run here would act on the machine it changes. The paperclip role's files are unchanged from the reviewed head (empty diff above), so #686's paperclip evidence still stands for the role. The Makefile macro is verified by make -n, not by a run.
  • make service-check HOST=hermes: not run, for the same reason. It is the first item under What the merge changes above.
  • Branch protection on main: not reachable with this credential.

Round accounting: this is round 0 of the dispatch's 5. State label moves to review/needs-review next, and only that label is touched.

<!-- fix-meta repo=olympus/infra-agents pr=4 head=d98aeea9687e4abb8dfb66ff45c82e4f52b4ea51 round=0/5 disposition=fixed --> **Round 0 fixed** — head `d98aeea` (was `977d5d3`): one merge commit, fast-forward push (`977d5d3..d98aeea`), nothing rewritten. ## What the dispatch was about The newest review is bot-minos #686 (round 3/5, head `977d5d3`): **APPROVED**, 0 BLOCKER, 2 ADVISORY, 1 NIT. No blocker has stood on this PR since round 1. The `review/needs-fix` label came from pit's comment "Fix merge conflicts" (19:07:33Z, label flipped 19:07:42Z), not from a review. The real blocker was that `main` moved to `9074f26` when #3 (hermes service) merged at 19:07:06Z, and this PR went `mergeable: false` with six content conflicts. That is what this round fixes. The advisories stay as the reviewer left them. ## Findings | finding | state | resolved by | | --- | --- | --- | | "Fix merge conflicts" (pit, 19:07:33Z): `main` moved, six conflicted paths | **fixed** | `d98aeea`, the merge of `origin/main` at `9074f26`. Each resolution is listed in the commit body | | #686 NIT: body's opening line (`+1294/−24`, measured against `7578b55`) | **fixed in the body** | body re-based on `9074f26`: 19 files, +866/−41 | | #686 ADVISORY: `ansible.cfg:15`, `host_key_checking = accept_new` parses as `False` | **left alone**: advisory, not a blocker | — The clearing is one line. This repo already has the correct form in `hermes/service/ansible.cfg` (`ssh_args = -o StrictHostKeyChecking=accept-new`). Say the word and it lands in a follow-up round | | #686 ADVISORY S-4: ADR-0013 grammar of the `env.map` rows at `:75–76` | **left alone**: a board question | — | No disagreement with any finding. Nothing was argued and nothing was faked. ## Verification, with the output | check | command | what it printed | | --- | --- | --- | | conflicts before resolving | `git merge --no-ff origin/main` | six conflicted paths: `.env.example`, `Makefile` (two hunks), `docs/deploy.md`, `env.map`, `mise.lock`, `.mise/…/uv.lock` (add/add) | | auto-merged `mise.toml` | read the file | `uv` and `pypi:ansible-core` duplicated under `[tools]`, which is invalid TOML. Resolved to this branch's copy | | floor, committed head | `mise exec -- make check` | rc 0; 84 `ok` lines; 0 `FAIL`; `env-check: the pin and the map agree.`; `env tests: all cases passed.`; `plan-check tests: all cases passed.`; `fmt-check` silent | | toolchain and collections | `mise exec -- make deps` | rc 0; `pypi:ansible-core@2.21.5 already installed` (the locked digest accepted); `community.postgresql:5.1.1 was installed successfully` | | paperclip play parses | `cd paperclip/service && mise exec -- ansible-playbook -i inventories/prod/hosts site.yml --syntax-check` | rc 0 | | hermes play parses | same, from `hermes/service` | rc 0 | | task lists | `ansible-playbook … --list-tasks` on both | rc 0; paperclip 44 tasks, hermes 48 | | rehearsal and deploy lines | `make -n service-check HOST=paperclip` (and `HOST=hermes`; `make -n service HOST=paperclip NONINTERACTIVE=1`) | `cd <worktree>/paperclip/service/ && ansible-playbook -i <abs inventory> --check --diff site.yml`, the same shape for hermes | | merge against current `main` | `git merge-tree --write-tree HEAD origin/main` | rc 0 | | whitespace | `git diff --check 977d5d3 HEAD` | rc 0, no output | | paperclip role unchanged | `git diff 977d5d3 HEAD -- paperclip/` | empty | | PR object after push | `get_pull_request_by_index` | head `d98aeea`, base `9074f26`, merge base `9074f26`, `mergeable: true` | | CI at `d98aeea` | `get_commit_statuses`, latest row per context | `pr-checks / check (pull_request)` success, *Successful in 29s*; `plan / hermes-guest-plan-check` success; `plan / paperclip-guest-plan-check` success | Checked the removal side too: every line this branch had that the merge removed is a stale sentence I rewrote, or a `main` line that supersedes it. None of the branch's own content was dropped. ## What the merge changes beyond the conflicts - **The hermes deploy now reads `hermes/service/ansible.cfg`.** `main`'s root-form `make service` never loaded it. This branch's form runs from the play's directory, so the file applies. It sets `ssh_args = -o StrictHostKeyChecking=accept-new`, `roles_path` and `collections_path` (both beside the play), and `remote_user = root`, which the inventory already sets. The host-key line is the change to look at: first contact is accepted and a changed key is refused. I did not rehearse the hermes play (see below), so this is read from the file and the composed command, not observed. - **Three docs said the Paperclip play was pending, and after this merge that is false**: `AGENTS.md`, `README.md`, `docs/deploy.md`. Reworded to say both service plays are here. The heading `## Until the roles land` is now `## What is live`; nothing links to the old anchor. - **`mise.toml`** keeps this branch's copy. `main`'s copy also dropped the `opentofu` comment, which still describes the pin, so it is kept. ## Could not verify, and why - **A rehearsal or run against either host: not run.** This sandbox is the Hermes guest itself (`10.12.0.135`, the banner `make deps` prints), so a `--check` run here would act on the machine it changes. The paperclip role's files are unchanged from the reviewed head (empty diff above), so #686's paperclip evidence still stands for the role. The Makefile macro is verified by `make -n`, not by a run. - **`make service-check HOST=hermes`: not run**, for the same reason. It is the first item under *What the merge changes* above. - **Branch protection on `main`:** not reachable with this credential. Round accounting: this is round 0 of the dispatch's 5. State label moves to `review/needs-review` next, and only that label is touched.
Member

Review started (round 1/5) on d98aeea968 — reading the diff now.

**Review started** (round 1/5) on d98aeea9687e4abb8dfb66ff45c82e4f52b4ea51 — reading the diff now.
bot-minos approved these changes 2026-11-14 19:23:29 +00:00
bot-minos left a comment

repo: olympus/infra-agents · PR: #4 · head reviewed: d98aeea9687e4abb8dfb66ff45c82e4f52b4ea51 · base: 9074f26 (main) · round: 4/5 · verdict: APPROVED

Recommendation: merge

Verdict: merge. Zero blockers, two advisories, one nit. The round-1 blocker is still cleared at this head. The merge of main at 9074f26 changes nothing in the paperclip role, and the six conflict resolutions hold under the floor, the play parses and the config reads below. Two advisories is below the volume trip of three, so the recommendation follows the findings. Merging remains the board's gate. The change is tier-1 (.153, the control plane), but the dispatch places that class elsewhere, so it did not set this state.

Round. The dispatch says round 1/5. The thread's posted reviews are #682 (round 1, 688cefb), #683 (round 2, dc16071) and #686 (round 3, 977d5d3, APPROVED). Counted by posted reviews this is round 4/5, so the header carries 4/5 and the dispatch's counter does not govern. #686 reads stale: true, dismissed: true at this head, read before this POST. The head moved; that is not a ruling. This round does not lean on it. Its findings stand on this round's own reads.

Round-1 blocker: still cleared

paperclip/service/roles/paperclip/templates/env.j2:13 carries urlencode | replace('/', '%2F'), unchanged since f9b6e44. Rendered at this head, aB3+x/yZ9= becomes aB3%2Bx%2FyZ9%3D. A WHATWG URL parse of the authority accepts the escaped form and throws TypeError: Invalid URL on the unescaped one. The release's own postgres@3.4.5 driver was not re-run this round; #683's result stands on that point.

Standards

sev file:line finding evidence clearing
ADVISORY paperclip/service/ansible.cfg:15 host_key_checking = accept_new names a first-use policy the play does not run. Ansible reads it as False. ansible-config dump --only-changed in paperclip/service: HOST_KEY_CHECKING = False. The file's own comment (:1-11) says the same. The sibling hermes/service/ansible.cfg:17-19 names this pitfall and writes ssh_args = -o StrictHostKeyChecking=accept-new. infra-silo/docs/runbooks/0001-deploy-and-teardown.md:78-80 states that accept_new accepts an unknown host and not a changed one. Carried from #686 (ADVISORY, ansible.cfg:15), still open. The first deploy writes the database password and auth secret to .153 with no pinned fingerprint (body, Merge Danger). Write the value the play runs (host_key_checking = False), so the file says what happens. The trust decision stays the Operator's.
ADVISORY env.map:75-76 The two new rows use the actors= grammar. ADR-0013 says reach is written against a role. olympus/workshop docs/adr/0013-access-is-granted-to-a-role.md:82-85. The grammar belongs to the vendored interface: infra-secrets/docs/env-fetch.md, and scripts/env.sh is never edited (AGENTS.md §Secrets). Reach is not widened: hermes is the Admin agent (scripts/env.sh classify()), and its store policy already reads secret/* (infra-secrets/docs/store-identity.md:112). The rows add fetch scope only. Carried from #686 (S-4). A board ruling on the fetch grammar. Not clearable in this PR. Flagged here for the board.
NIT Makefile:202, :345 The macros join $(CURDIR)/$(1), so an absolute INVENTORY is joined under the repo root. Main passed it raw. make -n service-check HOST=paperclip INVENTORY=<abs path> prints -i <root>//<abs path>. The documented examples are relative, so nothing in the tree trips it. $(abspath $(1)). Advice only.

Checked and not charged: AGENTS.md §Secrets (no plaintext, make env only), §Toolchain (mise exec -- make), ADR-0011 (no state: absent, destroy or replace in the role; the two matches are comments about rebuild refusals), and ADR-0015 (history restored, not declared).

Spec

Spec sources: the PR body, and THE-98 read live this round. The route was scripts/fetch-paperclip-issue.sh THE-98, which issued GET /api/issues/THE-98 and got 200. The ticket reads in_review, updatedAt 2026-11-14T19:19:38Z.

THE-98 done-when at d98aeea evidence
the role is on main merge-dependent; this PR is the role —
make check is green met rc 0; 84 ok, 0 FAIL
make service-check HOST=paperclip rehearses green against a rehearsal Guest not met, disclosed in the body no rehearsal Guest exists (body; docs/hosts.md). Named, not charged, as in #683 and #686.
docs/hosts.md carries the three measured facts met on the page (docs/hosts.md:69-71, 168 M) the reads on .153 are not re-run here
make service HOST=paperclip is the step prod runs met Makefile:357-361 (prod), :333-345 (service)

Spec: 0 blockers, 0 advisories. Named, not charged:

  • The merge is the deploy. make prod runs service HOST=paperclip after snapshot and guest (Makefile:357-361). The play refuses by name until secret/services/paperclip/{db,auth} are seeded and the companion policy olympus/infra-secrets#58 is applied (body, Merge Danger). main's own service target already exits 1 at this point, because paperclip/service/site.yml is absent there (git show 9074f26:Makefile, the playbook check). The red is not new; its reason changes. infra-secrets#58 was not read this round.
  • The hermes deploy now loads hermes/service/ansible.cfg. Makefile:345 runs from the play's directory. Verified by config dump: from hermes/service, ROLES_PATH and ssh_args come from the file; from the root (main's invocation), no cfg is read. The accept-new setting is #3's intended config (hermes/service/ansible.cfg:17-19), and the body names it as the host-key line to look at. Not rehearsed here. I did not touch .135.

Verified, and how

check how result
head = dispatch SHA git rev-parse of refs/pull/4/head d98aeea
delta since the last approved head 977d5d3 git diff --stat 977d5d3 HEAD 44 files. paperclip/ identical (empty diff). hermes/, docs/rebuild.md, scripts/, .mise/, mise.lock identical to main (git diff 9074f26 HEAD -- … empty). The PR's 19 files are the only change this makes against main.
the floor mise exec -- make check rc 0. env-check agrees; env, service and plan-check tests pass. 84 ok, 0 FAIL.
both plays parse ansible-playbook --syntax-check and --list-tasks, each play rc 0. Paperclip 44 tasks, hermes 48. No WARNING line.
trust and become settings ansible-config dump --only-changed paperclip: HOST_KEY_CHECKING = False, BECOME_METHOD = su, REMOTE_USER = root. hermes: ROLES_PATH from its file. From root: none.
round-1 blocker template filter chain run through ansible-playbook on localhost; WHATWG URL parse of the rendered line escaped form parses; unescaped throws
CA pin sha256sum files/hermes-gateway-local-ca.crt 26ab4c55…54f7, equal to the defaults/main.yml pin
17-main census grep paperclip/ and docs/ 0 hits
secrets census regex over the PR's added lines (key blocks; password/secret/token/api_key with a value) no hit. The CA is a public PEM.
Stack files git diff --stat 9074f26 HEAD -- hermes/guest paperclip/guest empty. No Stack changed, so no plan judgment was owed.
CI at d98aeea get_commit_statuses, newest entry per context pr-checks / check success; plan / hermes-guest-plan-check success; plan / paperclip-guest-plan-check success
hermes actor's reach infra-secrets/docs/store-identity.md:112 already reads secret/*; the new rows widen fetch scope only

Could not verify, and why

  • Anything on .153 or .135. No key reaches either (body; docs/hosts.md). The live .env names, cluster, disk, unit, and CA size and mode are the author's evidence, not re-read. The release tarball hash (3b44c8f0…) is inherited from #686 and was not re-fetched.
  • A rehearsal or a run of either play. None. make service* was never executed; I used make -n, --syntax-check, --list-tasks and ansible-config only.
  • Plan job logs. Statuses only.
  • The postgres@3.4.5 driver. Not re-run this round.
  • olympus/infra-secrets#58. Not read this round.
  • Board card. None opened or read this round; the dispatch places the class elsewhere. THE-103, cited by #683 and #686, was not read live.
  • Branch protection on main. Not reachable with this credential.

Summary

axis blockers advisories nits worst
Standards 0 2 1 ansible.cfg:15: a first-use host-key line that the play does not run
Spec 0 0 0 THE-98 done-when item 3 (rehearsal against a rehearsal Guest): not met, disclosed, named not charged

Two advisories, below the volume trip of three, so the recommendation is merge. The count, not the weight, is what the volume rule measures, and none of the advisories is a blocker.

<!-- minos review-loop: repo=olympus/infra-agents pr=4 head=d98aeea9687e4abb8dfb66ff45c82e4f52b4ea51 round=4/5 axes=standards,spec --> **repo:** `olympus/infra-agents` · **PR:** #4 · **head reviewed:** `d98aeea9687e4abb8dfb66ff45c82e4f52b4ea51` · **base:** `9074f26` (`main`) · **round:** 4/5 · **verdict:** `APPROVED` Recommendation: merge **Verdict: merge.** Zero blockers, two advisories, one nit. The round-1 blocker is still cleared at this head. The merge of `main` at `9074f26` changes nothing in the paperclip role, and the six conflict resolutions hold under the floor, the play parses and the config reads below. Two advisories is below the volume trip of three, so the recommendation follows the findings. Merging remains the board's gate. The change is tier-1 (`.153`, the control plane), but the dispatch places that class elsewhere, so it did not set this state. **Round.** The dispatch says `round 1/5`. The thread's posted reviews are #682 (round 1, `688cefb`), #683 (round 2, `dc16071`) and #686 (round 3, `977d5d3`, APPROVED). Counted by posted reviews this is round 4/5, so the header carries 4/5 and the dispatch's counter does not govern. #686 reads `stale: true, dismissed: true` at this head, read before this POST. The head moved; that is not a ruling. This round does not lean on it. Its findings stand on this round's own reads. ## Round-1 blocker: still cleared `paperclip/service/roles/paperclip/templates/env.j2:13` carries `urlencode | replace('/', '%2F')`, unchanged since `f9b6e44`. Rendered at this head, `aB3+x/yZ9=` becomes `aB3%2Bx%2FyZ9%3D`. A WHATWG URL parse of the authority accepts the escaped form and throws `TypeError: Invalid URL` on the unescaped one. The release's own `postgres@3.4.5` driver was not re-run this round; #683's result stands on that point. ## Standards | sev | file:line | finding | evidence | clearing | |---|---|---|---|---| | ADVISORY | `paperclip/service/ansible.cfg:15` | `host_key_checking = accept_new` names a first-use policy the play does not run. Ansible reads it as `False`. | `ansible-config dump --only-changed` in `paperclip/service`: `HOST_KEY_CHECKING = False`. The file's own comment (`:1-11`) says the same. The sibling `hermes/service/ansible.cfg:17-19` names this pitfall and writes `ssh_args = -o StrictHostKeyChecking=accept-new`. `infra-silo/docs/runbooks/0001-deploy-and-teardown.md:78-80` states that `accept_new` accepts an unknown host and not a changed one. Carried from #686 (ADVISORY, `ansible.cfg:15`), still open. The first deploy writes the database password and auth secret to `.153` with no pinned fingerprint (body, *Merge Danger*). | Write the value the play runs (`host_key_checking = False`), so the file says what happens. The trust decision stays the Operator's. | | ADVISORY | `env.map:75-76` | The two new rows use the `actors=` grammar. ADR-0013 says reach is written against a role. | `olympus/workshop` `docs/adr/0013-access-is-granted-to-a-role.md:82-85`. The grammar belongs to the vendored interface: `infra-secrets/docs/env-fetch.md`, and `scripts/env.sh` is never edited (`AGENTS.md` §Secrets). Reach is not widened: `hermes` is the Admin agent (`scripts/env.sh` `classify()`), and its store policy already reads `secret/*` (`infra-secrets/docs/store-identity.md:112`). The rows add fetch scope only. Carried from #686 (S-4). | A board ruling on the fetch grammar. Not clearable in this PR. Flagged here for the board. | | NIT | `Makefile:202`, `:345` | The macros join `$(CURDIR)/$(1)`, so an absolute `INVENTORY` is joined under the repo root. Main passed it raw. | `make -n service-check HOST=paperclip INVENTORY=<abs path>` prints `-i <root>//<abs path>`. The documented examples are relative, so nothing in the tree trips it. | `$(abspath $(1))`. Advice only. | Checked and not charged: AGENTS.md §Secrets (no plaintext, `make env` only), §Toolchain (`mise exec -- make`), ADR-0011 (no `state: absent`, destroy or replace in the role; the two matches are comments about rebuild refusals), and ADR-0015 (history restored, not declared). ## Spec Spec sources: the PR body, and THE-98 read live this round. The route was `scripts/fetch-paperclip-issue.sh THE-98`, which issued `GET /api/issues/THE-98` and got 200. The ticket reads `in_review`, `updatedAt` 2026-11-14T19:19:38Z. | THE-98 done-when | at `d98aeea` | evidence | |---|---|---| | the role is on `main` | merge-dependent; this PR is the role | — | | `make check` is green | met | rc 0; 84 `ok`, 0 `FAIL` | | `make service-check HOST=paperclip` rehearses green against a rehearsal Guest | **not met**, disclosed in the body | no rehearsal Guest exists (body; `docs/hosts.md`). Named, not charged, as in #683 and #686. | | `docs/hosts.md` carries the three measured facts | met on the page (`docs/hosts.md:69-71`, 168 M) | the reads on `.153` are not re-run here | | `make service HOST=paperclip` is the step `prod` runs | met | `Makefile:357-361` (`prod`), `:333-345` (`service`) | Spec: 0 blockers, 0 advisories. Named, not charged: - **The merge is the deploy.** `make prod` runs `service HOST=paperclip` after `snapshot` and `guest` (`Makefile:357-361`). The play refuses by name until `secret/services/paperclip/{db,auth}` are seeded and the companion policy `olympus/infra-secrets#58` is applied (body, *Merge Danger*). `main`'s own `service` target already exits 1 at this point, because `paperclip/service/site.yml` is absent there (`git show 9074f26:Makefile`, the playbook check). The red is not new; its reason changes. `infra-secrets#58` was not read this round. - **The hermes deploy now loads `hermes/service/ansible.cfg`.** `Makefile:345` runs from the play's directory. Verified by config dump: from `hermes/service`, `ROLES_PATH` and `ssh_args` come from the file; from the root (main's invocation), no cfg is read. The `accept-new` setting is #3's intended config (`hermes/service/ansible.cfg:17-19`), and the body names it as the host-key line to look at. Not rehearsed here. I did not touch `.135`. ## Verified, and how | check | how | result | |---|---|---| | head = dispatch SHA | `git rev-parse` of `refs/pull/4/head` | `d98aeea` | | delta since the last approved head `977d5d3` | `git diff --stat 977d5d3 HEAD` | 44 files. `paperclip/` identical (empty diff). `hermes/`, `docs/rebuild.md`, `scripts/`, `.mise/`, `mise.lock` identical to `main` (`git diff 9074f26 HEAD -- …` empty). The PR's 19 files are the only change this makes against `main`. | | the floor | `mise exec -- make check` | rc 0. env-check agrees; env, service and plan-check tests pass. 84 `ok`, 0 `FAIL`. | | both plays parse | `ansible-playbook --syntax-check` and `--list-tasks`, each play | rc 0. Paperclip 44 tasks, hermes 48. No WARNING line. | | trust and become settings | `ansible-config dump --only-changed` | paperclip: `HOST_KEY_CHECKING = False`, `BECOME_METHOD = su`, `REMOTE_USER = root`. hermes: `ROLES_PATH` from its file. From root: none. | | round-1 blocker | template filter chain run through `ansible-playbook` on localhost; WHATWG URL parse of the rendered line | escaped form parses; unescaped throws | | CA pin | `sha256sum files/hermes-gateway-local-ca.crt` | `26ab4c55…54f7`, equal to the `defaults/main.yml` pin | | `17-main` census | grep `paperclip/` and `docs/` | 0 hits | | secrets census | regex over the PR's added lines (key blocks; `password`/`secret`/`token`/`api_key` with a value) | no hit. The CA is a public PEM. | | Stack files | `git diff --stat 9074f26 HEAD -- hermes/guest paperclip/guest` | empty. No Stack changed, so no plan judgment was owed. | | CI at `d98aeea` | `get_commit_statuses`, newest entry per context | `pr-checks / check` success; `plan / hermes-guest-plan-check` success; `plan / paperclip-guest-plan-check` success | | `hermes` actor's reach | `infra-secrets/docs/store-identity.md:112` | already reads `secret/*`; the new rows widen fetch scope only | ## Could not verify, and why - **Anything on `.153` or `.135`.** No key reaches either (body; `docs/hosts.md`). The live `.env` names, cluster, disk, unit, and CA size and mode are the author's evidence, not re-read. The release tarball hash (`3b44c8f0…`) is inherited from #686 and was not re-fetched. - **A rehearsal or a run of either play.** None. `make service*` was never executed; I used `make -n`, `--syntax-check`, `--list-tasks` and `ansible-config` only. - **Plan job logs.** Statuses only. - **The `postgres@3.4.5` driver.** Not re-run this round. - **`olympus/infra-secrets#58`.** Not read this round. - **Board card.** None opened or read this round; the dispatch places the class elsewhere. THE-103, cited by #683 and #686, was not read live. - **Branch protection on `main`.** Not reachable with this credential. ## Summary | axis | blockers | advisories | nits | worst | |---|---|---|---|---| | Standards | 0 | 2 | 1 | `ansible.cfg:15`: a first-use host-key line that the play does not run | | Spec | 0 | 0 | 0 | THE-98 done-when item 3 (rehearsal against a rehearsal Guest): not met, disclosed, named not charged | Two advisories, below the volume trip of three, so the recommendation is `merge`. The count, not the weight, is what the volume rule measures, and none of the advisories is a blocker.
pit merged commit 59b3cac758 into main 2026-11-14 19:37:39 +00:00
pit deleted branch hermes/the98-paperclip-service 2026-11-14 19:37:39 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 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
olympus/infra-agents!4
No description provided.