The page says who restarts a Service after a library upgrade (THE-40) #40

Merged
pit merged 3 commits from hermes/THE-40-restart-claim into main 2026-12-02 18:15:07 +00:00
Owner

paperclip:THE-40

Summary

The page said a library upgrade takes effect when the Service is next restarted, "which the next deploy does". It does not: a deploy restarts a Service when its own configuration changes, not on every run. The sentence now names what does restart it — the Operator, and a deploy that changes the Service's own configuration (/opt/semaphore/config.json on the server, /opt/semaphore-runner/config.json on the runner).

The point-release bullet no longer promises the next deploy's apt run. state: present installs an absent package and does not upgrade an installed one, so a deploy upgrades nothing but the Service package its pin names.

It follows infra-silo's page, which carries the same shape because its packaged unit reads an EnvironmentFile=; this Service's equivalent is its own configuration. The store's deploy is the precedent: it restarts a Service when a library it has mapped was replaced (infra-secrets#66).

File What
the hardening page two bullets corrected: who restarts a Service after a library upgrade, and what a deploy's apt upgrades
roles/unattended_upgrades/defaults/main.yml the role's comment, which still said the next deploy restarts it
roles/unattended_upgrades/templates/50unattended-upgrades.j2 the same "next deploy's apt run" claim at the point-release limit
paperclip:THE-40 ## Summary The page said a library upgrade takes effect when the Service is next restarted, "which the next deploy does". It does not: a deploy restarts a Service when its own configuration changes, not on every run. The sentence now names what does restart it — the Operator, and a deploy that changes the Service's own configuration (`/opt/semaphore/config.json` on the server, `/opt/semaphore-runner/config.json` on the runner). The point-release bullet no longer promises the next deploy's `apt` run. `state: present` installs an absent package and does not upgrade an installed one, so a deploy upgrades nothing but the Service package its pin names. It follows `infra-silo`'s page, which carries the same shape because its packaged unit reads an `EnvironmentFile=`; this Service's equivalent is its own configuration. The store's deploy is the precedent: it restarts a Service when a library it has mapped was replaced (`infra-secrets#66`). | File | What | | --- | --- | | the hardening page | two bullets corrected: who restarts a Service after a library upgrade, and what a deploy's `apt` upgrades | | `roles/unattended_upgrades/defaults/main.yml` | the role's comment, which still said the next deploy restarts it | | `roles/unattended_upgrades/templates/50unattended-upgrades.j2` | the same "next deploy's apt run" claim at the point-release limit |
The page says who restarts a Service after a library upgrade (THE-40)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 15s
plan / runner-guest-plan-check (pull_request_target) Successful in 14s
plan / projects-plan-check (pull_request_target) Successful in 20s
pr-checks / check (pull_request) Successful in 49s
f5c3cbf1f5
A library upgrade takes effect when the Service is restarted, and the page said
the next deploy does it. It does not: a deploy restarts a Service when its own
configuration changes. The page now names the Operator, and a deploy that
changes the Service's environment file — the same sentence infra-silo's page
already carries, and the one the store's deploy makes true by restarting it
when a library it has mapped was replaced.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Author
Owner

Waiting — queued behind olympus/infra-tracker#69 (one review run at a time). The review run resumes on its own at Wed 2 Dec, 17:46 (Europe/Madrid); nothing is needed from you. This retry does not count as a review round.

**Waiting** — queued behind olympus/infra-tracker#69 (one review run at a time). The review run resumes on its own at Wed 2 Dec, 17:46 (Europe/Madrid); nothing is needed from you. This retry does not count as a review round.
Member

Review started (round 0/5) on f5c3cbf1f5 — reading the diff now.

**Review started** (round 0/5) on f5c3cbf1f5c123cebf5207530645526b30871a7b — reading the diff now.
bot-minos requested changes 2026-12-02 16:54:14 +00:00
Dismissed
bot-minos left a comment

olympus/infra-cockpit #40 · head f5c3cbf · round 1/5 — the dispatch numbered this 0/5; the thread carries no earlier review, so this is the first. Delta: git diff 865c8cf...f5c3cbf, one file, +4/−3.

Recommendation: fix

Spec

BLOCKER — docs/hardening.md:33-34: the corrected sentence still does not name what restarts this Service.

The change's claim is "The sentence now names what does restart it — the Operator, and a deploy that changes the Service's environment file." The diagnosis holds; the replacement does not. Semaphore has no environment file. The unit runs --config against /opt/semaphore/config.json and has no EnvironmentFile=:

  • semaphore/service/roles/semaphore/templates/semaphore.service.j2:11 — ExecStart={{ semaphore_binary }} server --config {{ semaphore_config }}; no EnvironmentFile= anywhere in the head tree (grep -rn EnvironmentFile . → rc 1).
  • semaphore/service/roles/semaphore/defaults/main.yml:44 — semaphore_config: /opt/semaphore/config.json.
  • semaphore/service/roles/semaphore/tasks/main.yml:246-252 renders config.json.j2 to that path; :230 is the notify: restart semaphore that makes a config change restart the Service.
  • The file this repo does call "the environment file" is the repo-root .env — docs/environment.md:3: "This repo has one environment file: .env at the root, sourced by every target". That file lives on the deployer, is sourced by make targets, and is never shipped to 143 or 145; a deploy that changes it restarts nothing on either Guest.

So the sentence is wrong under both readings: read literally it names a file the Service does not read, and read against the repo's own vocabulary it names the wrong host.

Where the wording came from is checkable, and it explains it: infra-silo's docs/hardening.md:32-35 (at 8ef5345bfb3f25d858b7c47c231955c077a92a68) carries this sentence, and it is true there because silo's packaged unit reads EnvironmentFile=/etc/default/silo (infra-silo docs/deploy.md:101-105). The mechanism the sentence names exists in that repo and not in this one.

The standard the page should restate is the ticket's own, paperclip:THE-40 design doc, §"The guest standard" (Updates): "A Service whose library changed is restarted when its own configuration next changes, or by the Operator — never by the timer."

Smallest clearing change: replace "the Service's environment file" with "the Service's configuration (/opt/semaphore/config.json)" — one clause, and the sentence becomes true. (Naming only the config is fine even though five task sites notify the restart — tasks/main.yml:133, 230, 240, 257, 303: package, TLS pair, key, config, unit. Naming the one that does not exist is the defect, not naming one of five.)

Standards

Sources read at head: AGENTS.md (§Docs: docs/hardening.md is the page that records what both Guests carry between deploys; no prose-width, markdown-lint or naming rule is written, and make fmt-check is tofu fmt only), and olympus/workshop docs/adr/ at main (0001–0015 + index, none governing docs prose). standards: no repo conventions govern this page's prose — the two rows below are documentation-consistency calls, not breaches of a written rule.

ADVISORY S1 — semaphore/service/roles/unattended_upgrades/defaults/main.yml:5-6: the claim this PR retires survives here verbatim — "the next deploy restarts it, or the Operator does." The line is untouched by the diff, so it is advice, not a blocker; it is the same sentence at its second site, and infra-silo's twin comment (defaults/main.yml:1-8 at 8ef5345) has already moved to the new wording. Until it moves, the page and the role state opposite things about a deploy. The blocker's edit is the moment to sweep it.

ADVISORY S2 — docs/hardening.md:28-29: "A point release … waits for the next deploy's apt run" overstates what a deploy's apt does. The role's only apt tasks are a cache refresh and five named packages plus the pinned deb (tasks/main.yml:16-30, 113-114); there is no upgrade: or state: latest anywhere in the tree, so only those five move. infra-silo's page states the true shape (hardening.md:28-30 at 8ef5345): "a deploy upgrades nothing but the Service package its pin names."

Verified

Check Result
refs/pull/40/head on the host f5c3cbf1f5c123cebf5207530645526b30871a7b — equals the dispatch's head
Delta git diff 865c8cf...f5c3cbf — docs/hardening.md only, +4/−3
mise exec -- make check at head exit 0 (env pin + tests, plan-workflow tests, drift tests, tofu fmt -check)
Commit statuses at head (newest per context) pr-checks / check success 49s; plan / guest-plan-check, plan / runner-guest-plan-check, plan / projects-plan-check all success
Secrets none in the diff, description or comments
Sibling claim "the same sentence infra-silo's page carries" true — infra-silo docs/hardening.md:32-35 at 8ef5345
Sibling claim "the store's deploy makes it true by restarting on a replaced library" true — infra-secrets bao/service/roles/openbao/tasks/main.yml:127-175 at 03f9e249, which is PR #66's merge commit
Claim "a deploy does not restart on every run" holds: the handler is notified only by changed tasks (tasks/main.yml:133, 230, 240, 257, 303); no task restarts unconditionally
Ticket paperclip:THE-40 read live (issue + design doc) at 17:51 CET

Could not verify

  • The play's runtime behaviour: make service-check needs the environment, which an Agent does not fetch (AGENTS.md §Secrets), so the restart graph above is read at head, not observed in a run.

Named, not charged

  • Dropping silo's closing clause ("Until then the running daemon keeps the old copy, and the upgrade report names it") is correct here: nothing in this repo reports a replaced library — the /proc reader is infra-secrets' (bao/service/roles/openbao/tasks/main.yml:127-175).
  • Line width: docs/hardening.md:33 is 80 columns, but the page already carried eleven 79–80-column prose lines at base, so it is not a deviation.

Summary

Spec: 1 finding — 1 BLOCKER (the sentence names a file this Service does not read). Standards: 2 findings — 0 blockers, 2 ADVISORY. Worst per axis: Spec — a correction that still misinforms the Operator about what restarts Semaphore; Standards — the retired claim left in the role's own comment.

<!-- minos review-loop: repo=olympus/infra-cockpit pr=40 head=f5c3cbf1f5c123cebf5207530645526b30871a7b round=1/5 axes=standards,spec --> olympus/infra-cockpit #40 · head `f5c3cbf` · round 1/5 — the dispatch numbered this 0/5; the thread carries no earlier review, so this is the first. Delta: `git diff 865c8cf...f5c3cbf`, one file, +4/−3. Recommendation: fix ## Spec **BLOCKER — `docs/hardening.md:33-34`: the corrected sentence still does not name what restarts this Service.** The change's claim is "The sentence now names what does restart it — the Operator, and a deploy that changes the Service's environment file." The diagnosis holds; the replacement does not. Semaphore has **no environment file**. The unit runs `--config` against `/opt/semaphore/config.json` and has no `EnvironmentFile=`: - `semaphore/service/roles/semaphore/templates/semaphore.service.j2:11` — `ExecStart={{ semaphore_binary }} server --config {{ semaphore_config }}`; no `EnvironmentFile=` anywhere in the head tree (`grep -rn EnvironmentFile .` → rc 1). - `semaphore/service/roles/semaphore/defaults/main.yml:44` — `semaphore_config: /opt/semaphore/config.json`. - `semaphore/service/roles/semaphore/tasks/main.yml:246-252` renders `config.json.j2` to that path; `:230` is the `notify: restart semaphore` that makes a config change restart the Service. - The file this repo *does* call "the environment file" is the repo-root `.env` — `docs/environment.md:3`: "This repo has one environment file: `.env` at the root, sourced by every target". That file lives on the deployer, is sourced by `make` targets, and is never shipped to 143 or 145; a deploy that changes it restarts nothing on either Guest. So the sentence is wrong under both readings: read literally it names a file the Service does not read, and read against the repo's own vocabulary it names the wrong host. Where the wording came from is checkable, and it explains it: `infra-silo`'s `docs/hardening.md:32-35` (at `8ef5345bfb3f25d858b7c47c231955c077a92a68`) carries this sentence, and it is true **there** because silo's packaged unit reads `EnvironmentFile=/etc/default/silo` (`infra-silo` `docs/deploy.md:101-105`). The mechanism the sentence names exists in that repo and not in this one. The standard the page should restate is the ticket's own, `paperclip:THE-40` design doc, §"The guest standard" (Updates): "A Service whose library changed is restarted when its own **configuration** next changes, or by the Operator — never by the timer." Smallest clearing change: replace "the Service's environment file" with "the Service's configuration (`/opt/semaphore/config.json`)" — one clause, and the sentence becomes true. (Naming only the config is fine even though five task sites notify the restart — `tasks/main.yml:133, 230, 240, 257, 303`: package, TLS pair, key, config, unit. Naming the one that does not exist is the defect, not naming one of five.) ## Standards Sources read at head: `AGENTS.md` (§Docs: `docs/hardening.md` is the page that records what both Guests carry between deploys; no prose-width, markdown-lint or naming rule is written, and `make fmt-check` is `tofu fmt` only), and `olympus/workshop` `docs/adr/` at `main` (`0001`–`0015` + index, none governing docs prose). `standards: no repo conventions govern this page's prose` — the two rows below are documentation-consistency calls, not breaches of a written rule. **ADVISORY S1 — `semaphore/service/roles/unattended_upgrades/defaults/main.yml:5-6`:** the claim this PR retires survives here verbatim — "the next deploy restarts it, or the Operator does." The line is untouched by the diff, so it is advice, not a blocker; it is the same sentence at its second site, and `infra-silo`'s twin comment (`defaults/main.yml:1-8` at `8ef5345`) has already moved to the new wording. Until it moves, the page and the role state opposite things about a deploy. The blocker's edit is the moment to sweep it. **ADVISORY S2 — `docs/hardening.md:28-29`:** "A point release … waits for the next deploy's `apt` run" overstates what a deploy's apt does. The role's only apt tasks are a cache refresh and five named packages plus the pinned deb (`tasks/main.yml:16-30`, `113-114`); there is no `upgrade:` or `state: latest` anywhere in the tree, so only those five move. `infra-silo`'s page states the true shape (`hardening.md:28-30` at `8ef5345`): "a deploy upgrades nothing but the Service package its pin names." ## Verified | Check | Result | | --- | --- | | `refs/pull/40/head` on the host | `f5c3cbf1f5c123cebf5207530645526b30871a7b` — equals the dispatch's head | | Delta | `git diff 865c8cf...f5c3cbf` — `docs/hardening.md` only, +4/−3 | | `mise exec -- make check` at head | exit 0 (env pin + tests, plan-workflow tests, drift tests, `tofu fmt -check`) | | Commit statuses at head (newest per context) | `pr-checks / check` success 49s; `plan / guest-plan-check`, `plan / runner-guest-plan-check`, `plan / projects-plan-check` all success | | Secrets | none in the diff, description or comments | | Sibling claim "the same sentence infra-silo's page carries" | true — `infra-silo` `docs/hardening.md:32-35` at `8ef5345` | | Sibling claim "the store's deploy makes it true by restarting on a replaced library" | true — `infra-secrets` `bao/service/roles/openbao/tasks/main.yml:127-175` at `03f9e249`, which is PR #66's merge commit | | Claim "a deploy does not restart on every run" | holds: the handler is notified only by changed tasks (`tasks/main.yml:133, 230, 240, 257, 303`); no task restarts unconditionally | | Ticket | `paperclip:THE-40` read live (issue + design doc) at 17:51 CET | ## Could not verify - The play's runtime behaviour: `make service-check` needs the environment, which an Agent does not fetch (`AGENTS.md` §Secrets), so the restart graph above is read at head, not observed in a run. ## Named, not charged - Dropping silo's closing clause ("Until then the running daemon keeps the old copy, and the upgrade report names it") is correct here: nothing in this repo reports a replaced library — the `/proc` reader is `infra-secrets`' (`bao/service/roles/openbao/tasks/main.yml:127-175`). - Line width: `docs/hardening.md:33` is 80 columns, but the page already carried eleven 79–80-column prose lines at base, so it is not a deviation. ## Summary Spec: 1 finding — 1 BLOCKER (the sentence names a file this Service does not read). Standards: 2 findings — 0 blockers, 2 ADVISORY. Worst per axis: Spec — a correction that still misinforms the Operator about what restarts Semaphore; Standards — the retired claim left in the role's own comment.
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.
Name the configuration that restarts Semaphore, not an environment file (THE-40)
All checks were successful
plan / runner-guest-plan-check (pull_request_target) Successful in 20s
plan / guest-plan-check (pull_request_target) Successful in 20s
plan / projects-plan-check (pull_request_target) Successful in 19s
pr-checks / check (pull_request) Successful in 49s
1c820b8fa4
The page said a deploy restarts the Service "when the Service's environment
file" changes. Semaphore has no environment file: its unit runs
`--config /opt/semaphore/config.json` and carries no `EnvironmentFile=`. The
repo's own `.env` is the deployer's, sourced by make, and never reaches either
Guest. The sentence came from infra-silo's page, where it is true — silo's
unit reads `/etc/default/silo` — and was carried here with the mechanism.

Name the file this repo's Service does read. The role's own comment and the
50unattended-upgrades template repeat the retired claim ("the next deploy
restarts it", "waits for the next deploy's apt run"), so both move with it,
and the point-release limit now says what a deploy's apt actually touches:
five dependencies and the pinned package, nothing else.
Member

Round 1 fix — 1c820b8 on hermes/THE-40-restart-claim, one commit, three files.

The blocker

docs/hardening.md:33-34 — the sentence named a file this Service does not read. Corrected in 1c820b8. The clause now reads:

  next restarted — the Operator can do that, and so does a deploy that changes
  the Service's configuration, `/opt/semaphore/config.json`. Semaphore's own

I re-checked the diagnosis rather than taking it: grep -rn EnvironmentFile . → rc 1 (no such line anywhere at the head tree); semaphore.service.j2:11 runs ExecStart=… server --config {{ semaphore_config }}; defaults/main.yml:44 is /opt/semaphore/config.json; tasks/main.yml notifies restart semaphore from five sites (133, 230, 240, 257, 303), of which :257 is the config template. Naming the configuration alone is the ticket's own standard — paperclip:THE-40 §"The guest standard" (Updates), which the review quotes.

The two advisories — both taken

Finding Resolution
S1 roles/unattended_upgrades/defaults/main.yml:5-6 Fixed in 1c820b8 — "a deploy that changes the Service's own configuration restarts it, or the Operator does."
S2 docs/hardening.md:28-29 Fixed in 1c820b8 — the point-release bullet no longer promises the next deploy's apt run; it says a deploy's apt touches only the five packages the role depends on and the Service's own pinned package.

On S2 I did not copy infra-silo's wording ("a deploy upgrades nothing but the Service package its pin names"), and that is a disagreement with the evidence, not with the finding. tasks/main.yml:23-30 installs five dependencies with state: present — ansible, ca-certificates, curl, jq, openssl — and state: present upgrades each to the latest available, so a deploy here does move five packages that silo's page says nothing about. The finding's charge (the sentence overstates what a deploy does) is right and is fixed; the sibling's clause is the true shape for the sibling, not for this role.

Corrections no finding asked for

  • roles/unattended_upgrades/templates/50unattended-upgrades.j2:4 — the same "waits for the next deploy's apt run or for the Operator" sentence lived in the template the role writes onto both Guests. Same commit, same claim, same fix; the header now says the point release waits for the Operator and what a deploy touches. The edit is inside // comment lines only — no key the upgrader reads changed.
  • Body edit, no commit. The description carried the retired clause twice: "a deploy that changes the Service's environment file" is now "…the Service's configuration (/opt/semaphore/config.json)", and the file table, which still described a one-file diff, now names all three files. Patched with the anchors asserted to match exactly once, PATCH /pulls/40 → 201, and the body read back identical (959 chars).

Verification

Command Output
env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check rc=0; 317 ok lines; drift tests: every case passed.; tofu fmt -recursive -check -diff clean
prose-widths.py docs/hardening.md --baseline f5c3cbf widest prose line = 80, cap 80, over = 0 — the page's own register held
widest comment line across the two role files 78 (50unattended-upgrades.j2), inside the file's own 78-column block
claim sweep, grep -rn 'environment file|next deploy restarts|next deploy.s apt' . only docs/environment.md:3, which is the repo-root .env and correct
commit status at 1c820b8 state=success — pr-checks / check (pull_request) 49s, plan / guest-plan-check, plan / runner-guest-plan-check, plan / projects-plan-check all success

make check was run on the worktree, then again after the wording pass that produced the final commit; both runs are the same 317 assertions.

Left alone, deliberately

  • infra-silo's docs/hardening.md:33-34 still says "a deploy that changes the Service's environment file". It is true there (EnvironmentFile=/etc/default/silo) and it is not this repository; the PR body already declares the sentence's origin, and correcting the sibling is a change in another repository.
  • The claim now lives in three files (page, role comment, template comment). That duplication is older than this PR and is the shape of the role — the comment travels to the Guest with the file it describes. Collapsing it would delete operator-facing text from the Guest, so I left it and noted it here instead.
  • make service-check was not run: it needs the environment make env fetches, which AGENTS.md §Secrets refuses an Agent. Nothing here needed it — the two role edits are inside // and # comments, and the rendered 50unattended-upgrades gains no key.

Self-review before pushing

Two-axis pass over my own diff (f5c3cbf..HEAD): Standards — no repo rule governs this prose (make fmt-check is tofu fmt only), and the page's width cap is met; no baseline smell beyond the duplication named above. Spec — the page and the ticket's standard now say the same thing. The pass caught one wording tension in my first draft ("installs the five packages … it upgrades nothing else", which reads as if those five never move) and I changed it to "touches only" before the commit was pushed.

Round 1 fix — `1c820b8` on `hermes/THE-40-restart-claim`, one commit, three files. ## The blocker **`docs/hardening.md:33-34` — the sentence named a file this Service does not read.** Corrected in `1c820b8`. The clause now reads: ``` next restarted — the Operator can do that, and so does a deploy that changes the Service's configuration, `/opt/semaphore/config.json`. Semaphore's own ``` I re-checked the diagnosis rather than taking it: `grep -rn EnvironmentFile .` → rc 1 (no such line anywhere at the head tree); `semaphore.service.j2:11` runs `ExecStart=… server --config {{ semaphore_config }}`; `defaults/main.yml:44` is `/opt/semaphore/config.json`; `tasks/main.yml` notifies `restart semaphore` from five sites (`133, 230, 240, 257, 303`), of which `:257` is the config template. Naming the configuration alone is the ticket's own standard — `paperclip:THE-40` §"The guest standard" (Updates), which the review quotes. ## The two advisories — both taken | Finding | Resolution | | --- | --- | | S1 `roles/unattended_upgrades/defaults/main.yml:5-6` | **Fixed** in `1c820b8` — "a deploy that changes the Service's own configuration restarts it, or the Operator does." | | S2 `docs/hardening.md:28-29` | **Fixed** in `1c820b8` — the point-release bullet no longer promises the next deploy's `apt` run; it says a deploy's `apt` touches only the five packages the role depends on and the Service's own pinned package. | On S2 I did **not** copy `infra-silo`'s wording ("a deploy upgrades nothing but the Service package its pin names"), and that is a disagreement with the evidence, not with the finding. `tasks/main.yml:23-30` installs five dependencies with `state: present` — `ansible`, `ca-certificates`, `curl`, `jq`, `openssl` — and `state: present` upgrades each to the latest available, so a deploy here does move five packages that silo's page says nothing about. The finding's charge (the sentence overstates what a deploy does) is right and is fixed; the sibling's clause is the true shape for the sibling, not for this role. ## Corrections no finding asked for - **`roles/unattended_upgrades/templates/50unattended-upgrades.j2:4`** — the same "waits for the next deploy's apt run or for the Operator" sentence lived in the template the role writes onto both Guests. Same commit, same claim, same fix; the header now says the point release waits for the Operator and what a deploy touches. The edit is inside `//` comment lines only — no key the upgrader reads changed. - **Body edit, no commit.** The description carried the retired clause twice: *"a deploy that changes the Service's environment file"* is now *"…the Service's configuration (`/opt/semaphore/config.json`)"*, and the file table, which still described a one-file diff, now names all three files. Patched with the anchors asserted to match exactly once, `PATCH /pulls/40` → `201`, and the body read back identical (959 chars). ## Verification | Command | Output | | --- | --- | | `env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check` | **rc=0**; 317 ` ok ` lines; `drift tests: every case passed.`; `tofu fmt -recursive -check -diff` clean | | `prose-widths.py docs/hardening.md --baseline f5c3cbf` | `widest prose line = 80, cap 80, over = 0` — the page's own register held | | widest comment line across the two role files | 78 (`50unattended-upgrades.j2`), inside the file's own 78-column block | | claim sweep, `grep -rn 'environment file\|next deploy restarts\|next deploy.s apt' .` | only `docs/environment.md:3`, which is the repo-root `.env` and correct | | commit status at `1c820b8` | `state=success` — `pr-checks / check (pull_request)` 49s, `plan / guest-plan-check`, `plan / runner-guest-plan-check`, `plan / projects-plan-check` all success | `make check` was run on the worktree, then again after the wording pass that produced the final commit; both runs are the same 317 assertions. ## Left alone, deliberately - **`infra-silo`'s `docs/hardening.md:33-34`** still says "a deploy that changes the Service's environment file". It is true there (`EnvironmentFile=/etc/default/silo`) and it is not this repository; the PR body already declares the sentence's origin, and correcting the sibling is a change in another repository. - **The claim now lives in three files** (page, role comment, template comment). That duplication is older than this PR and is the shape of the role — the comment travels to the Guest with the file it describes. Collapsing it would delete operator-facing text from the Guest, so I left it and noted it here instead. - **`make service-check`** was not run: it needs the environment `make env` fetches, which `AGENTS.md` §Secrets refuses an Agent. Nothing here needed it — the two role edits are inside `//` and `#` comments, and the rendered `50unattended-upgrades` gains no key. ## Self-review before pushing Two-axis pass over my own diff (`f5c3cbf..HEAD`): Standards — no repo rule governs this prose (`make fmt-check` is `tofu fmt` only), and the page's width cap is met; no baseline smell beyond the duplication named above. Spec — the page and the ticket's standard now say the same thing. The pass caught one wording tension in my first draft (`"installs the five packages … it upgrades nothing else"`, which reads as if those five never move) and I changed it to `"touches only"` before the commit was pushed.
Member

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

**Review started** (round 1/5) on 1c820b8fa42b25f81152fdf3c3b8e2f96886e08e — reading the diff now.
bot-minos requested changes 2026-12-02 17:05:38 +00:00
Dismissed
bot-minos left a comment

olympus/infra-cockpit #40 · head 1c820b8 · round 2/5 — the dispatch numbered this 1/5 and the sign-on comment repeats the dispatch's number; the thread already carries one review (f5c3cbf, its header round=1/5), so this is the thread's second. Delta: git diff f5c3cbf...1c820b8, three files, +11/−8, all of it the clearing changes for round 1.

Recommendation: fix

Round 1, re-driven

BLOCKER docs/hardening.md:33-34 (round 1) — cleared. The page no longer names an environment file. git grep -n 'environment file' at head answers only docs/environment.md:3 (the repo-root .env, correct), and grep -rn EnvironmentFile . answers rc 1. The replacement path exists and its template task notifies the restart: semaphore/service/roles/semaphore/defaults/main.yml:44 (semaphore_config: /opt/semaphore/config.json), roles/semaphore/tasks/main.yml:246-257 (dest: "{{ semaphore_config }}", notify: restart semaphore), and the unit runs --config against it (templates/semaphore.service.j2:11).

ADVISORY S1 .../roles/unattended_upgrades/defaults/main.yml:5-6 — cleared. :5-7 now reads "a deploy that changes the Service's own configuration restarts it, or the Operator does", and that holds on both plays: the server's config task notifies restart semaphore (roles/semaphore/tasks/main.yml:257), the runner's notifies restart semaphore runner (roles/semaphore_runner/tasks/main.yml:218-225).

ADVISORY S2 docs/hardening.md:28-29 — not cleared. It is the blocker below: the replacement sentence asserts the opposite error from the one it replaced.

Spec

BLOCKER — docs/hardening.md:29-30, and the same claim at .../templates/50unattended-upgrades.j2:4-5: "A deploy's apt touches only the five packages the role depends on and the Service's own pinned package." A deploy moves none of those five on a Guest that already carries them, which is the state the page describes.

The PR's table says this bullet is "corrected: … what a deploy's apt touches". It is not corrected. state: present does not upgrade an installed package — only state: latest does. The pinned module is unambiguous, ansible-core 2.21.5 (mise.lock:179-183): ansible/modules/apt.py:750 gates the install on version_installable and ((not installed and not only_upgrade) or upgrade or not installed_version), and upgrade is set only when the state is latest (apt.py:1567). Every apt task in the play is state: present:

  • the server's five dependencies — roles/semaphore/tasks/main.yml:23-31;
  • the runner's five — roles/semaphore_runner/tasks/main.yml:25-33;
  • nftables — roles/firewall/tasks/main.yml:7-10;
  • unattended-upgrades — roles/unattended_upgrades/tasks/main.yml:16-18.

What a deploy does move is the pinned Service deb (roles/semaphore/tasks/main.yml:111-114), and nothing else. The sentence is false under either reading of "touches": read as moves, the five do not move; read as names, the same deploy also names nftables and unattended-upgrades through the two roles the play runs before the Service (semaphore/service/site.yml:16-28), so "only" is wrong by two packages.

Where the claim came from is checkable, and it is not the author's alone: the fix note says "state: present upgrades each to the latest available, so a deploy here does move five packages", and round 1's advisory leaned on the same misreading ("no upgrade: or state: latest anywhere in the tree, so only those five move"). The conclusion held — the bullet overstated what a deploy's apt does — but the mechanism both notes gave is wrong, and the fix enshrined it. infra-silo's sentence, declined in the fix note on that premise, is the accurate one for this role too.

Smallest clearing change, both sites: replace the clause with "a deploy upgrades nothing but the Service package its pin names" (page :29-30; template comment :4-5). The "waits for the Operator" half of the bullet is right and stays.

One side note while you are in the sentence: "the five packages the role depends on" does not resolve inside §Unattended security updates — that role installs one package (roles/unattended_upgrades/tasks/main.yml:16-18); the five belong to the Service role. Naming the Service role makes the clause parse either way.

ADVISORY — docs/hardening.md:35: the parenthetical names one Guest's configuration on a page that covers both. /opt/semaphore/config.json is the server's (roles/semaphore/defaults/main.yml:44); the runner's is /opt/semaphore-runner/config.json (roles/semaphore_runner/defaults/main.yml:28), and a deploy that changes it restarts the runner (roles/semaphore_runner/tasks/main.yml:218-225). The page's subject is "what both Guests carry between deploys" (:3-7), and docs/deploy.md calls 143 "the server" and 145 "the runner", so "the Service" does not settle which path is meant either. One-clause fix: name both paths, or drop the path and say "the Service's own configuration". This clause is my own round-1 wording, dictated in the clearing change; it is charged here rather than passed over in silence.

ADVISORY — the description's "This is the same sentence infra-silo's page already carries". Not true at this head. infra-silo at 8ef5345 (fresh origin/main) carries "…or by a deploy that changes the Service's environment file" (docs/hardening.md:32-35), which is right there because its unit reads one — the whole point of this fix is that this Service does not. The clause was true at f5c3cbf; this round's own body patch made it false. One-clause fix: say it is the same sentence silo carries with that Service's file named, this Service's being its configuration.

Standards

Sources read at the head worktree: AGENTS.md (Rules/Secrets, Toolchain, Docs — no prose-width, markdown or naming rule; make check is the env pin and its tests, the plan tests, drift-test and tofu fmt -check), README.md, docs/agents/*.md, and the org records at olympus/workshop docs/adr/ read at origin/main 45790e7 (0001–0015 plus the index; none governs docs prose). standards: no repo conventions govern this page's prose.

No finding. Measured rather than assumed:

  • Widths are in register. The page's prose peaks at 80 (:34), which is where the base already sat (base :33 is 80); the changed lines are 77–80. The template's comment block peaks at 78 (:4), inside the block's own register (base comment lines peaked at 79).
  • No secret-shaped line in the delta.

Verified

Check Result
head on the host refs/pull/40/head = 1c820b8fa42b25f81152fdf3c3b8e2f96886e08e, equal to the dispatch, checked before and after the probes
delta git diff f5c3cbf...1c820b8 — docs/hardening.md, the role defaults comment and the template comment: +11/−8
mise exec -- make check at head rc 0, 317 ok lines, drift tests: every case passed., tofu fmt -recursive -check -diff clean
commit statuses at head (newest per context) pr-checks / check (pull_request) success 49s; plan / guest-plan-check, plan / runner-guest-plan-check, plan / projects-plan-check all success
template change is comment-only non-// content cmp-identical base↔head; no key the upgrader reads changed
retired phrases at head git grep for next deploy, environment file, EnvironmentFile, restart the Service: only docs/environment.md:3 and docs/deploy.md:253 (a different, correct "next deploy" — a deleted project is rebuilt by the next deploy)
apt scope all four apt task sites state: present; the upgrade gate read in the pinned ansible-core 2.21.5 apt.py:750 and :1567
restart graph server notifies at roles/semaphore/tasks/main.yml:133, 230, 240, 257, 303 (config at :257); runner at roles/semaphore_runner/tasks/main.yml:119, 216, 225, 264, 282 (config at :225)
sibling claim infra-silo origin/main 8ef5345, docs/hardening.md:27-35
ticket paperclip:THE-40 read live — issue plus its design document — via the Paperclip control plane; standard §"The guest standard" (Updates)
secrets none in the delta, the description or the comments
label set at open live set review/needs-review; one prior review, at f5c3cbf

Could not verify

  • The play's runtime behaviour on a live Guest: make service-check and make prod need the environment, which AGENTS.md §Secrets refuses an Agent. The apt semantics above are read from the pinned module's code and the task declarations, not observed on 143 or 145.

Named, not charged

  • The design document's own Updates sentence — "A point release (trixie-updates) is not a security fix and waits for the next deploy or the Operator" — carries the same overstatement this blocker is about. It is THE-40's document, not this repository's page, and the page's "waits for the Operator" is the accurate half. If the org wants the two to agree, the document is the site, and it is not this change's to edit.
  • The claim living in three files (page, role comment, template comment) is older than this PR and is the shape of the role: the comment travels to the Guest with the file it describes.
  • 50unattended-upgrades.j2:10 at 83 columns is a config line, untouched by the diff, and 83 at base.

Summary

Spec: 3 findings — 1 BLOCKER, 2 ADVISORY. Worst: the corrected bullet tells the Operator that a deploy upgrades five packages it does not touch, and states it in the template that lands on the Guest. Standards: 0 findings. Round 1's blocker and S1 are cleared at 1c820b8; S2 is carried forward as the blocker.

<!-- minos review-loop: repo=olympus/infra-cockpit pr=40 head=1c820b8fa42b25f81152fdf3c3b8e2f96886e08e round=2/5 axes=standards,spec --> olympus/infra-cockpit #40 · head `1c820b8` · round 2/5 — the dispatch numbered this 1/5 and the sign-on comment repeats the dispatch's number; the thread already carries one review (`f5c3cbf`, its header `round=1/5`), so this is the thread's second. Delta: `git diff f5c3cbf...1c820b8`, three files, +11/−8, all of it the clearing changes for round 1. Recommendation: fix ## Round 1, re-driven **BLOCKER `docs/hardening.md:33-34` (round 1) — cleared.** The page no longer names an environment file. `git grep -n 'environment file'` at head answers only `docs/environment.md:3` (the repo-root `.env`, correct), and `grep -rn EnvironmentFile .` answers rc 1. The replacement path exists and its template task notifies the restart: `semaphore/service/roles/semaphore/defaults/main.yml:44` (`semaphore_config: /opt/semaphore/config.json`), `roles/semaphore/tasks/main.yml:246-257` (`dest: "{{ semaphore_config }}"`, `notify: restart semaphore`), and the unit runs `--config` against it (`templates/semaphore.service.j2:11`). **ADVISORY S1 `.../roles/unattended_upgrades/defaults/main.yml:5-6` — cleared.** `:5-7` now reads "a deploy that changes the Service's own configuration restarts it, or the Operator does", and that holds on both plays: the server's config task notifies `restart semaphore` (`roles/semaphore/tasks/main.yml:257`), the runner's notifies `restart semaphore runner` (`roles/semaphore_runner/tasks/main.yml:218-225`). **ADVISORY S2 `docs/hardening.md:28-29` — not cleared.** It is the blocker below: the replacement sentence asserts the opposite error from the one it replaced. ## Spec **BLOCKER — `docs/hardening.md:29-30`, and the same claim at `.../templates/50unattended-upgrades.j2:4-5`: "A deploy's `apt` touches only the five packages the role depends on and the Service's own pinned package."** A deploy moves none of those five on a Guest that already carries them, which is the state the page describes. The PR's table says this bullet is "corrected: … what a deploy's `apt` touches". It is not corrected. `state: present` does not upgrade an installed package — only `state: latest` does. The pinned module is unambiguous, `ansible-core` 2.21.5 (`mise.lock:179-183`): `ansible/modules/apt.py:750` gates the install on `version_installable and ((not installed and not only_upgrade) or upgrade or not installed_version)`, and `upgrade` is set only when the state is `latest` (`apt.py:1567`). Every apt task in the play is `state: present`: - the server's five dependencies — `roles/semaphore/tasks/main.yml:23-31`; - the runner's five — `roles/semaphore_runner/tasks/main.yml:25-33`; - `nftables` — `roles/firewall/tasks/main.yml:7-10`; - `unattended-upgrades` — `roles/unattended_upgrades/tasks/main.yml:16-18`. What a deploy does move is the pinned Service deb (`roles/semaphore/tasks/main.yml:111-114`), and nothing else. The sentence is false under either reading of "touches": read as *moves*, the five do not move; read as *names*, the same deploy also names `nftables` and `unattended-upgrades` through the two roles the play runs before the Service (`semaphore/service/site.yml:16-28`), so "only" is wrong by two packages. Where the claim came from is checkable, and it is not the author's alone: the fix note says "`state: present` upgrades each to the latest available, so a deploy here does move five packages", and round 1's advisory leaned on the same misreading ("no `upgrade:` or `state: latest` anywhere in the tree, so only those five move"). The conclusion held — the bullet overstated what a deploy's apt does — but the mechanism both notes gave is wrong, and the fix enshrined it. `infra-silo`'s sentence, declined in the fix note on that premise, is the accurate one for this role too. Smallest clearing change, both sites: replace the clause with "a deploy upgrades nothing but the Service package its pin names" (page `:29-30`; template comment `:4-5`). The "waits for the Operator" half of the bullet is right and stays. One side note while you are in the sentence: "the five packages the role depends on" does not resolve inside §Unattended security updates — that role installs one package (`roles/unattended_upgrades/tasks/main.yml:16-18`); the five belong to the Service role. Naming the Service role makes the clause parse either way. **ADVISORY — `docs/hardening.md:35`: the parenthetical names one Guest's configuration on a page that covers both.** `/opt/semaphore/config.json` is the server's (`roles/semaphore/defaults/main.yml:44`); the runner's is `/opt/semaphore-runner/config.json` (`roles/semaphore_runner/defaults/main.yml:28`), and a deploy that changes it restarts the runner (`roles/semaphore_runner/tasks/main.yml:218-225`). The page's subject is "what both Guests carry between deploys" (`:3-7`), and `docs/deploy.md` calls 143 "the server" and 145 "the runner", so "the Service" does not settle which path is meant either. One-clause fix: name both paths, or drop the path and say "the Service's own configuration". This clause is my own round-1 wording, dictated in the clearing change; it is charged here rather than passed over in silence. **ADVISORY — the description's "This is the same sentence `infra-silo`'s page already carries".** Not true at this head. `infra-silo` at `8ef5345` (fresh `origin/main`) carries "…or by a deploy that changes the Service's **environment file**" (`docs/hardening.md:32-35`), which is right there because its unit reads one — the whole point of this fix is that this Service does not. The clause was true at `f5c3cbf`; this round's own body patch made it false. One-clause fix: say it is the same sentence silo carries with *that* Service's file named, this Service's being its configuration. ## Standards Sources read at the head worktree: `AGENTS.md` (Rules/Secrets, Toolchain, Docs — no prose-width, markdown or naming rule; `make check` is the env pin and its tests, the plan tests, `drift-test` and `tofu fmt -check`), `README.md`, `docs/agents/*.md`, and the org records at `olympus/workshop` `docs/adr/` read at `origin/main` `45790e7` (0001–0015 plus the index; none governs docs prose). `standards: no repo conventions govern this page's prose`. No finding. Measured rather than assumed: - Widths are in register. The page's prose peaks at 80 (`:34`), which is where the base already sat (base `:33` is 80); the changed lines are 77–80. The template's comment block peaks at 78 (`:4`), inside the block's own register (base comment lines peaked at 79). - No secret-shaped line in the delta. ## Verified | Check | Result | | --- | --- | | head on the host | `refs/pull/40/head` = `1c820b8fa42b25f81152fdf3c3b8e2f96886e08e`, equal to the dispatch, checked before and after the probes | | delta | `git diff f5c3cbf...1c820b8` — `docs/hardening.md`, the role defaults comment and the template comment: +11/−8 | | `mise exec -- make check` at head | rc 0, 317 `ok` lines, `drift tests: every case passed.`, `tofu fmt -recursive -check -diff` clean | | commit statuses at head (newest per context) | `pr-checks / check (pull_request)` success 49s; `plan / guest-plan-check`, `plan / runner-guest-plan-check`, `plan / projects-plan-check` all success | | template change is comment-only | non-`//` content `cmp`-identical base↔head; no key the upgrader reads changed | | retired phrases at head | `git grep` for `next deploy`, `environment file`, `EnvironmentFile`, `restart the Service`: only `docs/environment.md:3` and `docs/deploy.md:253` (a different, correct "next deploy" — a deleted project is rebuilt by the next deploy) | | apt scope | all four apt task sites `state: present`; the upgrade gate read in the pinned `ansible-core` 2.21.5 `apt.py:750` and `:1567` | | restart graph | server notifies at `roles/semaphore/tasks/main.yml:133, 230, 240, 257, 303` (config at `:257`); runner at `roles/semaphore_runner/tasks/main.yml:119, 216, 225, 264, 282` (config at `:225`) | | sibling claim | `infra-silo` `origin/main` `8ef5345`, `docs/hardening.md:27-35` | | ticket | `paperclip:THE-40` read live — issue plus its design document — via the Paperclip control plane; standard §"The guest standard" (Updates) | | secrets | none in the delta, the description or the comments | | label set at open | live set `review/needs-review`; one prior review, at `f5c3cbf` | ## Could not verify - The play's runtime behaviour on a live Guest: `make service-check` and `make prod` need the environment, which `AGENTS.md` §Secrets refuses an Agent. The apt semantics above are read from the pinned module's code and the task declarations, not observed on 143 or 145. ## Named, not charged - The design document's own Updates sentence — "A point release (`trixie-updates`) is not a security fix and waits for the next deploy or the Operator" — carries the same overstatement this blocker is about. It is THE-40's document, not this repository's page, and the page's "waits for the Operator" is the accurate half. If the org wants the two to agree, the document is the site, and it is not this change's to edit. - The claim living in three files (page, role comment, template comment) is older than this PR and is the shape of the role: the comment travels to the Guest with the file it describes. - `50unattended-upgrades.j2:10` at 83 columns is a config line, untouched by the diff, and 83 at base. ## Summary Spec: 3 findings — 1 BLOCKER, 2 ADVISORY. Worst: the corrected bullet tells the Operator that a deploy upgrades five packages it does not touch, and states it in the template that lands on the Guest. Standards: 0 findings. Round 1's blocker and S1 are cleared at `1c820b8`; S2 is carried forward as the blocker.
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.
Correct what a deploy's apt upgrades, and name both Guests' configs (THE-40)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 19s
plan / runner-guest-plan-check (pull_request_target) Successful in 19s
plan / projects-plan-check (pull_request_target) Successful in 18s
pr-checks / check (pull_request) Successful in 48s
42a3574c58
`state: present` installs an absent package and does not move an installed one:
only `state: latest` upgrades, and no task in the play uses it. So a deploy
upgrades nothing but the Service package its pin names — the dependencies are
installed if absent, not brought current. The page and the
`50unattended-upgrades` template the role writes onto both Guests say that now,
replacing the claim that a deploy's `apt` touches the five dependencies and the
pinned package, which was false in both readings (the five do not move, and the
deploy also names the packages of the two roles that run before the Service).

The page also names each Guest's own configuration — the server's
`/opt/semaphore/config.json` and the runner's
`/opt/semaphore-runner/config.json` — instead of the server's alone, since the
page covers both Guests and either deploy restarts its own Service when that
file changes.

Round 2 corrected a mechanism, not only a sentence: the previous round's claim
that `state: present` upgrades each dependency to the latest available is what
made the wrong replacement look right.
Author
Owner

Waiting — queued behind olympus/infra-media#3 (one review run at a time). The review run resumes on its own at Wed 2 Dec, 18:12 (Europe/Madrid); nothing is needed from you. This retry does not count as a review round.

**Waiting** — queued behind olympus/infra-media#3 (one review run at a time). The review run resumes on its own at Wed 2 Dec, 18:12 (Europe/Madrid); nothing is needed from you. This retry does not count as a review round.
Member

Round 2 fix — 42a3574 on hermes/THE-40-restart-claim, plus a body edit. The blocker and both advisories are addressed; nothing is left open.

Blocker — the corrected bullet still overstated what a deploy's apt does

docs/hardening.md:29-30 and roles/unattended_upgrades/templates/50unattended-upgrades.j2:4-5 — fixed in 42a3574.

I re-derived the mechanism before adopting the wording. In the pinned ansible-core 2.21.5 (mise.lock:179-183), apt.py:1567 sets state_upgrade = True only when p['state'] == 'latest', and apt.py:750 gates the install on ... or upgrade or .... Every apt task in the play is state: present (roles/semaphore/tasks/main.yml:31, roles/semaphore_runner/tasks/main.yml:33, roles/firewall/tasks/main.yml:9, roles/unattended_upgrades/tasks/main.yml:18), so a deploy moves none of the dependencies and only the pinned Service deb when its digest differs. grep -rn 'state: latest\|upgrade:' semaphore/service/ → no hits.

Both sites now read "a deploy upgrades nothing but the Service package its pin names". The "five packages the role depends on" clause is gone, so the side note about it not resolving inside §Unattended security updates goes with it.

The previous round's premise — that state: present upgrades each dependency — was wrong, and it is what made the first replacement look right. The commit message records that correction.

Advisory — one Guest's config path on a page that covers both

Fixed in 42a3574. docs/hardening.md:34-36 now names both: /opt/semaphore/config.json on the server and /opt/semaphore-runner/config.json on the runner (roles/semaphore/defaults/main.yml:44, roles/semaphore_runner/defaults/main.yml:28; each role's config template notifies its own restart — roles/semaphore/tasks/main.yml:257, roles/semaphore_runner/tasks/main.yml:225).

Advisory — the body's infra-silo sentence

Body edit, no commit. The stored body now says the page follows silo's shape because silo's packaged unit reads an EnvironmentFile=, this Service's equivalent being its own configuration — not that the sentence is the same one silo carries. Verified at silo's live origin/main 8ef5345: docs/hardening.md:27-36 carries the bullet with "environment file", and docs/deploy.md:102 says the unit reads through EnvironmentFile=. The store's-deploy precedent was re-read at infra-secrets origin/main 03f9e24 (PR #66's merge): bao/service/roles/openbao/tasks/main.yml:120-178 restarts the service when a library it has mapped was replaced. The body was PATCHed with each anchor asserted to match exactly once, answered 201, and read back identical (1382 chars).

Verification

Command Output
env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check, on a git archive HEAD export of 42a3574 rc=0; 317 ok lines; env tests: every case passed.; plan tests: every case passed.; plan workflow tests: every case passed.; drift tests: every case passed.; tofu fmt -recursive -check -diff clean
prose-widths.py docs/hardening.md --baseline 1c820b8 widest prose line = 80, cap 80, over = 0
template comment widths peaks at 78 over lines 3-7, the block's own register
template config lines non-// content cmp-identical to 1c820b8; no key the upgrader reads changed
commit statuses at 42a3574 (newest per context) combined state=success; pr-checks / check (pull_request) success 48s; plan / guest-plan-check, plan / runner-guest-plan-check, plan / projects-plan-check all success
served files read back at the sha GET /raw/docs/hardening.md?ref=42a3574 and the template carry the replacement; the retired clauses are absent

317 is unchanged from the previous head, not a stale copy: this round changes prose the suite does not parse.

Left alone, deliberately

  • docs/deploy.md:253 says "next deploy" about a deleted project being rebuilt with new ids — a different, correct use of the phrase; not this claim.
  • infra-silo's page still says "environment file". It is true there and it is another repository.
  • make service-check / make prod were not run: they need the environment make env fetches, which AGENTS.md §Secrets refuses an Agent. Nothing here needed it — the edits are prose and // comments.
  • The claim living in three files (page, role comment, template comment) is older than this PR; the comment travels to the Guest with the file it describes. Left as is.

Erratum in the pushed commit message

42a3574's message says "the packages of the two roles that run before the Service". Precisely, three roles run before it (journal, unattended_upgrades, firewall) and two of them install packages (unattended_upgrades, firewall). The message stands as pushed — correcting it would need a force-push — and the tree is unaffected.

Self-review

Two-axis pass over 1c820b8..HEAD, run in this one context (this session has no sub-agent tool). Standards: no documented rule governs this prose (make fmt-check is tofu fmt only); widths in register; no secret-shaped line. Spec: the ticket's own standard — "restarted when its own configuration next changes, or by the Operator — never by the timer" — is what the page now says on both Guests.

<!-- fix-meta repo=olympus/infra-cockpit pr=40 head=42a3574c5831349c460d3de5c82a79922d4e60bf round=2/5 disposition=fixed --> Round 2 fix — `42a3574` on `hermes/THE-40-restart-claim`, plus a body edit. The blocker and both advisories are addressed; nothing is left open. ## Blocker — the corrected bullet still overstated what a deploy's `apt` does **`docs/hardening.md:29-30` and `roles/unattended_upgrades/templates/50unattended-upgrades.j2:4-5`** — fixed in `42a3574`. I re-derived the mechanism before adopting the wording. In the pinned `ansible-core` 2.21.5 (`mise.lock:179-183`), `apt.py:1567` sets `state_upgrade = True` only when `p['state'] == 'latest'`, and `apt.py:750` gates the install on `... or upgrade or ...`. Every apt task in the play is `state: present` (`roles/semaphore/tasks/main.yml:31`, `roles/semaphore_runner/tasks/main.yml:33`, `roles/firewall/tasks/main.yml:9`, `roles/unattended_upgrades/tasks/main.yml:18`), so a deploy moves none of the dependencies and only the pinned Service deb when its digest differs. `grep -rn 'state: latest\|upgrade:' semaphore/service/` → no hits. Both sites now read "a deploy upgrades nothing but the Service package its pin names". The "five packages the role depends on" clause is gone, so the side note about it not resolving inside §Unattended security updates goes with it. The previous round's premise — that `state: present` upgrades each dependency — was wrong, and it is what made the first replacement look right. The commit message records that correction. ## Advisory — one Guest's config path on a page that covers both Fixed in `42a3574`. `docs/hardening.md:34-36` now names both: `/opt/semaphore/config.json` on the server and `/opt/semaphore-runner/config.json` on the runner (`roles/semaphore/defaults/main.yml:44`, `roles/semaphore_runner/defaults/main.yml:28`; each role's config template notifies its own restart — `roles/semaphore/tasks/main.yml:257`, `roles/semaphore_runner/tasks/main.yml:225`). ## Advisory — the body's `infra-silo` sentence **Body edit, no commit.** The stored body now says the page follows silo's shape because silo's packaged unit reads an `EnvironmentFile=`, this Service's equivalent being its own configuration — not that the sentence is the same one silo carries. Verified at silo's live `origin/main` `8ef5345`: `docs/hardening.md:27-36` carries the bullet with "environment file", and `docs/deploy.md:102` says the unit reads through `EnvironmentFile=`. The store's-deploy precedent was re-read at `infra-secrets` `origin/main` `03f9e24` (PR #66's merge): `bao/service/roles/openbao/tasks/main.yml:120-178` restarts the service when a library it has mapped was replaced. The body was PATCHed with each anchor asserted to match exactly once, answered 201, and read back identical (1382 chars). ## Verification | Command | Output | | --- | --- | | `env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check`, on a `git archive HEAD` export of `42a3574` | **rc=0**; 317 ` ok ` lines; `env tests: every case passed.`; `plan tests: every case passed.`; `plan workflow tests: every case passed.`; `drift tests: every case passed.`; `tofu fmt -recursive -check -diff` clean | | `prose-widths.py docs/hardening.md --baseline 1c820b8` | `widest prose line = 80, cap 80, over = 0` | | template comment widths | peaks at 78 over lines 3-7, the block's own register | | template config lines | non-`//` content `cmp`-identical to `1c820b8`; no key the upgrader reads changed | | commit statuses at `42a3574` (newest per context) | combined `state=success`; `pr-checks / check (pull_request)` success 48s; `plan / guest-plan-check`, `plan / runner-guest-plan-check`, `plan / projects-plan-check` all success | | served files read back at the sha | `GET /raw/docs/hardening.md?ref=42a3574` and the template carry the replacement; the retired clauses are absent | 317 is unchanged from the previous head, not a stale copy: this round changes prose the suite does not parse. ## Left alone, deliberately - **`docs/deploy.md:253`** says "next deploy" about a deleted project being rebuilt with new ids — a different, correct use of the phrase; not this claim. - **`infra-silo`'s page** still says "environment file". It is true there and it is another repository. - **`make service-check` / `make prod`** were not run: they need the environment `make env` fetches, which `AGENTS.md` §Secrets refuses an Agent. Nothing here needed it — the edits are prose and `//` comments. - **The claim living in three files** (page, role comment, template comment) is older than this PR; the comment travels to the Guest with the file it describes. Left as is. ## Erratum in the pushed commit message `42a3574`'s message says "the packages of the two roles that run before the Service". Precisely, three roles run before it (`journal`, `unattended_upgrades`, `firewall`) and two of them install packages (`unattended_upgrades`, `firewall`). The message stands as pushed — correcting it would need a force-push — and the tree is unaffected. ## Self-review Two-axis pass over `1c820b8..HEAD`, run in this one context (this session has no sub-agent tool). Standards: no documented rule governs this prose (`make fmt-check` is `tofu fmt` only); widths in register; no secret-shaped line. Spec: the ticket's own standard — "restarted when its own configuration next changes, or by the Operator — never by the timer" — is what the page now says on both Guests.
Member

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

**Review started** (round 1/5) on 42a3574c5831349c460d3de5c82a79922d4e60bf — reading the diff now.
bot-minos approved these changes 2026-12-02 17:39:10 +00:00
bot-minos left a comment

olympus/infra-cockpit #40 · head 42a3574 · round 3/5 — the dispatch and my sign-on comment number this 1/5; the thread already carries two reviews (f5c3cbf round=1/5, 1c820b8 round=2/5), so this is the thread's third. Delta reviewed: git diff 1c820b8...42a3574, two files, +10/−9, all of it the clearing changes for round 2. The whole change against the merge-base (865c8cf...42a3574, three files, +13/−8) was re-read as well.

Recommendation: merge

Round 2, re-driven

Round 2 finding State Evidence at 42a3574
BLOCKER — docs/hardening.md:29-30 and .../templates/50unattended-upgrades.j2:4-5: the corrected bullet overstated what a deploy's apt moves cleared Page :28-30 now reads "waits for the Operator. A deploy upgrades nothing but the Service package its pin names."; template :3-5 carries the same clause. The claim is true, and I checked it in the pinned module rather than the prose: ansible-core 2.21.5 (mise.lock:179-183), apt.py:750 — version_installable and ((not installed and not only_upgrade) or upgrade or not installed_version) — with upgrade set only when the state is latest (apt.py:1563-1567). Every apt task in the play is state: present or a cache refresh: roles/firewall/tasks/main.yml:7-11, roles/unattended_upgrades/tasks/main.yml:11-13,16-18, roles/semaphore/tasks/main.yml:16-19,23-31, roles/semaphore_runner/tasks/main.yml:11-14,26-33; grep -rn 'state: latest|upgrade:|autoremove' semaphore/ → rc 1. The only thing a deploy moves is the pinned Service deb (roles/semaphore/tasks/main.yml:96-114, roles/semaphore_runner/tasks/main.yml:85-106).
ADVISORY — docs/hardening.md:35 named one Guest's config on a page covering both cleared :34-36 now names /opt/semaphore/config.json on the server and /opt/semaphore-runner/config.json on the runner. Both exist and both notify a restart: roles/semaphore/defaults/main.yml:44 with roles/semaphore/tasks/main.yml:246-257; roles/semaphore_runner/defaults/main.yml:28 with roles/semaphore_runner/tasks/main.yml:218-225.
ADVISORY — the description's "the same sentence infra-silo's page already carries" cleared The body now says silo "carries the same shape because its packaged unit reads an EnvironmentFile=; this Service's equivalent is its own configuration". True at silo origin/main 8ef5345: docs/hardening.md:33-35 carries the environment-file clause, docs/deploy.md:102 says the unit reads EnvironmentFile=. The store precedent the body cites is also true: infra-secrets origin/main 03f9e24, bao/service/roles/openbao/tasks/main.yml:120-178, whose comment names this ticket.

Spec

No findings. The spec is paperclip:THE-40 (read live through the Paperclip control plane, issue + design document) and its §"The guest standard" (Updates): "A Service whose library changed is restarted when its own configuration next changes, or by the Operator — never by the timer." The page now states exactly that, on both Guests, and nothing the diff says is outside what the ticket and the PR body claim:

Body claim Check
"the sentence now names what does restart it" docs/hardening.md:33-38 — Operator, and a config-changing deploy, with both paths
"the point-release bullet no longer promises the next deploy's apt run" :28-30; no next deploy survives at the page or the role comment (grep -rn 'next deploy' docs/ semaphore/ → only docs/deploy.md:253, a deleted project rebuilt with new ids)
"the role's comment, which still said the next deploy restarts it" roles/unattended_upgrades/defaults/main.yml:5-7 now says a configuration-changing deploy or the Operator
"the same claim at the point-release limit" in the template templates/50unattended-upgrades.j2:3-5; non-// content diff-identical to 865c8cf, so no key the upgrader reads changed

Standards

No findings. Sources read at head: AGENTS.md (§Docs names what each page records; no prose-width, markdown or naming rule is written for this page), README.md, docs/agents/*.md, and the org records olympus/workshop docs/adr/ 0001–0015 (none governs docs prose). standards: no repo conventions govern this page's prose; the axis below is general good practice, and the change meets it — the sentence is checkable against the role, and it is now checkable and correct.

No smell in the delta: the change is three comment/prose hunks, no logic, no new abstraction. The one shape worth naming is duplication (the same claim in page, role comment and template comment), which is older than this PR and deliberate — the comment travels to the Guest with the file it describes; the author declared it and I agree it stays.

Verified

Check Result
head on the host refs/pull/40/head = 42a3574c5831349c460d3de5c82a79922d4e60bf, equal to the dispatch, re-checked after the probes
delta git diff 1c820b8...42a3574 — docs/hardening.md, the template comment: +10/−9
mise exec -- make check at head (my own run, worktree at 42a3574) rc=0, 317 ok lines, env/plan/plan workflow/drift tests: every case passed., tofu fmt -recursive -check -diff clean
commit statuses at head (newest per context) pr-checks / check (pull_request) success 48s; plan / guest-plan-check, plan / runner-guest-plan-check, plan / projects-plan-check all success
restart graph server notifies restart semaphore at roles/semaphore/tasks/main.yml:133,230,240,257,303 (config :257); runner at roles/semaphore_runner/tasks/main.yml:119,216,225,264,282 (config :225); both handlers are systemd state: restarted
is any automatic library-restart path omitted from the page? none — grep -rn /proc semaphore/ answers nothing, so the store's /proc reader (infra-secrets) is the only one in the fleet and the page's "the Operator, or a config-changing deploy" is the complete set here
widths changed prose lines 71–80 (docs/hardening.md:28-38), unchanged register; template comment block peaks at 78 over :3-7, inside the base's own 78–79
secrets none in the delta, the description, or the comments

Could not verify

  • The play against a live Guest: make service-check and make prod need the environment, which AGENTS.md §Secrets refuses an Agent. The apt semantics above are read from the pinned module's source and the declared tasks, not observed on 143 or 145.

Named, not charged

  • paperclip:THE-40 §"The guest standard" (Updates) still says a point release "waits for the next deploy or the Operator". The page is now the accurate half, and the design document is the site where the correction belongs — it is the ticket's text, in another product's database, not this repository's. Left, as round 2 left it.
  • docs/deploy.md:74-77 says the service step restarts the server; it restarts only when a task changes, which is what this page now states. A different claim on an untouched page, and the idle-wait rationale it supports holds either way. Not this change's to edit; worth a one-clause tightening the next time that page is worked on.
  • The claim living in three files (page, role defaults comment, template comment): older than this PR, deliberate, and declared by the author.

Summary

Spec: 0 findings (0 blockers, 0 advisories). Standards: 0 findings. Worst per axis: none on Spec, none on Standards. Round 2's blocker and both advisories are cleared at 42a3574; the change now says the true thing in all three places and the suite is green at this head.

<!-- minos review-loop: repo=olympus/infra-cockpit pr=40 head=42a3574c5831349c460d3de5c82a79922d4e60bf round=3/5 axes=standards,spec --> olympus/infra-cockpit #40 · head `42a3574` · round 3/5 — the dispatch and my sign-on comment number this 1/5; the thread already carries two reviews (`f5c3cbf` round=1/5, `1c820b8` round=2/5), so this is the thread's third. Delta reviewed: `git diff 1c820b8...42a3574`, two files, +10/−9, all of it the clearing changes for round 2. The whole change against the merge-base (`865c8cf...42a3574`, three files, +13/−8) was re-read as well. Recommendation: merge ## Round 2, re-driven | Round 2 finding | State | Evidence at `42a3574` | | --- | --- | --- | | **BLOCKER** — `docs/hardening.md:29-30` and `.../templates/50unattended-upgrades.j2:4-5`: the corrected bullet overstated what a deploy's `apt` moves | **cleared** | Page `:28-30` now reads "waits for the Operator. A deploy upgrades nothing but the Service package its pin names."; template `:3-5` carries the same clause. The claim is true, and I checked it in the pinned module rather than the prose: `ansible-core` 2.21.5 (`mise.lock:179-183`), `apt.py:750` — `version_installable and ((not installed and not only_upgrade) or upgrade or not installed_version)` — with `upgrade` set only when the state is `latest` (`apt.py:1563-1567`). Every apt task in the play is `state: present` or a cache refresh: `roles/firewall/tasks/main.yml:7-11`, `roles/unattended_upgrades/tasks/main.yml:11-13,16-18`, `roles/semaphore/tasks/main.yml:16-19,23-31`, `roles/semaphore_runner/tasks/main.yml:11-14,26-33`; `grep -rn 'state: latest\|upgrade:\|autoremove' semaphore/` → rc 1. The only thing a deploy moves is the pinned Service deb (`roles/semaphore/tasks/main.yml:96-114`, `roles/semaphore_runner/tasks/main.yml:85-106`). | | **ADVISORY** — `docs/hardening.md:35` named one Guest's config on a page covering both | **cleared** | `:34-36` now names `/opt/semaphore/config.json` on the server and `/opt/semaphore-runner/config.json` on the runner. Both exist and both notify a restart: `roles/semaphore/defaults/main.yml:44` with `roles/semaphore/tasks/main.yml:246-257`; `roles/semaphore_runner/defaults/main.yml:28` with `roles/semaphore_runner/tasks/main.yml:218-225`. | | **ADVISORY** — the description's "the same sentence `infra-silo`'s page already carries" | **cleared** | The body now says silo "carries the same shape because its packaged unit reads an `EnvironmentFile=`; this Service's equivalent is its own configuration". True at silo `origin/main` `8ef5345`: `docs/hardening.md:33-35` carries the environment-file clause, `docs/deploy.md:102` says the unit reads `EnvironmentFile=`. The store precedent the body cites is also true: `infra-secrets` `origin/main` `03f9e24`, `bao/service/roles/openbao/tasks/main.yml:120-178`, whose comment names this ticket. | ## Spec **No findings.** The spec is `paperclip:THE-40` (read live through the Paperclip control plane, issue + design document) and its §"The guest standard" (Updates): "A Service whose library changed is restarted when its own **configuration** next changes, or by the Operator — never by the timer." The page now states exactly that, on both Guests, and nothing the diff says is outside what the ticket and the PR body claim: | Body claim | Check | | --- | --- | | "the sentence now names what does restart it" | `docs/hardening.md:33-38` — Operator, and a config-changing deploy, with both paths | | "the point-release bullet no longer promises the next deploy's `apt` run" | `:28-30`; no `next deploy` survives at the page or the role comment (`grep -rn 'next deploy' docs/ semaphore/` → only `docs/deploy.md:253`, a deleted project rebuilt with new ids) | | "the role's comment, which still said the next deploy restarts it" | `roles/unattended_upgrades/defaults/main.yml:5-7` now says a configuration-changing deploy or the Operator | | "the same claim at the point-release limit" in the template | `templates/50unattended-upgrades.j2:3-5`; non-`//` content `diff`-identical to `865c8cf`, so no key the upgrader reads changed | ## Standards **No findings.** Sources read at head: `AGENTS.md` (§Docs names what each page records; no prose-width, markdown or naming rule is written for this page), `README.md`, `docs/agents/*.md`, and the org records `olympus/workshop` `docs/adr/` `0001`–`0015` (none governs docs prose). `standards: no repo conventions govern this page's prose`; the axis below is general good practice, and the change meets it — the sentence is checkable against the role, and it is now checkable and correct. No smell in the delta: the change is three comment/prose hunks, no logic, no new abstraction. The one shape worth naming is duplication (the same claim in page, role comment and template comment), which is older than this PR and deliberate — the comment travels to the Guest with the file it describes; the author declared it and I agree it stays. ## Verified | Check | Result | | --- | --- | | head on the host | `refs/pull/40/head` = `42a3574c5831349c460d3de5c82a79922d4e60bf`, equal to the dispatch, re-checked after the probes | | delta | `git diff 1c820b8...42a3574` — `docs/hardening.md`, the template comment: +10/−9 | | `mise exec -- make check` at head (my own run, worktree at `42a3574`) | **rc=0**, 317 ` ok ` lines, `env/plan/plan workflow/drift tests: every case passed.`, `tofu fmt -recursive -check -diff` clean | | commit statuses at head (newest per context) | `pr-checks / check (pull_request)` success 48s; `plan / guest-plan-check`, `plan / runner-guest-plan-check`, `plan / projects-plan-check` all success | | restart graph | server notifies `restart semaphore` at `roles/semaphore/tasks/main.yml:133,230,240,257,303` (config `:257`); runner at `roles/semaphore_runner/tasks/main.yml:119,216,225,264,282` (config `:225`); both handlers are `systemd state: restarted` | | is any automatic library-restart path omitted from the page? | none — `grep -rn /proc semaphore/` answers nothing, so the store's `/proc` reader (`infra-secrets`) is the only one in the fleet and the page's "the Operator, or a config-changing deploy" is the complete set here | | widths | changed prose lines 71–80 (`docs/hardening.md:28-38`), unchanged register; template comment block peaks at 78 over `:3-7`, inside the base's own 78–79 | | secrets | none in the delta, the description, or the comments | ## Could not verify - The play against a live Guest: `make service-check` and `make prod` need the environment, which `AGENTS.md` §Secrets refuses an Agent. The apt semantics above are read from the pinned module's source and the declared tasks, not observed on 143 or 145. ## Named, not charged - **`paperclip:THE-40` §"The guest standard" (Updates)** still says a point release "waits for the next deploy or the Operator". The page is now the accurate half, and the design document is the site where the correction belongs — it is the ticket's text, in another product's database, not this repository's. Left, as round 2 left it. - **`docs/deploy.md:74-77`** says the service step restarts the server; it restarts only when a task changes, which is what this page now states. A different claim on an untouched page, and the idle-wait rationale it supports holds either way. Not this change's to edit; worth a one-clause tightening the next time that page is worked on. - **The claim living in three files** (page, role defaults comment, template comment): older than this PR, deliberate, and declared by the author. ## Summary Spec: 0 findings (0 blockers, 0 advisories). Standards: 0 findings. Worst per axis: none on Spec, none on Standards. Round 2's blocker and both advisories are cleared at `42a3574`; the change now says the true thing in all three places and the suite is green at this head.
pit merged commit ab196de4a7 into main 2026-12-02 18:15:07 +00:00
pit deleted branch hermes/THE-40-restart-claim 2026-12-02 18:15:08 +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-cockpit!40
No description provided.