A merge to main deploys the store through Semaphore (SL-20) #39

Merged
pit merged 5 commits from hermes/20-deploy-on-merge into main 2026-12-01 15:13:22 +00:00
Owner

Task: SL-20 in infra-silo (Vikunja project 7).

What this does

A push to main deploys the silo Guest (150) with nobody at a terminal.

  • .forgejo/workflows/deploy.yml logs into the store as the silo JWT role (audience openbao, bound to this repo, refs/heads/main, push), fetches only secret/ci/silo/semaphore-api into .env, starts one Semaphore task from SEMAPHORE_PROJECT_ID / SEMAPHORE_TEMPLATE_ID, follows it every 15 s, and removes .env. It applies nothing.
  • scripts/semaphore-deploy.sh is the deploy template's body: it fetches the environment as the runner actor, runs make prod NONINTERACTIVE=1 (which ends in make verify), and removes .env in a trap.
  • The plan check's judge stands in for every typed word (workshop ADR-0011). A red run mails the pusher; the concurrency group is silo-deploy, and a second merge waits rather than cancelling the job following its task.

This repository's difference from infra-secrets#59

silo owns the store that holds every Stack's state, its own included, and its service role restarts that store. store and verify now wait for the store's health endpoint (24 reads, 5 s apart, the endpoint read from backend.tf) before touching the state, and store-wait.test.sh covers it: a store that answers at once, one that answers on the fourth read, one that never answers, and a real socket that refuses, answers 503, then 200 — with nothing read from the state before the first 200.

Files

  • .forgejo/workflows/deploy.yml, scripts/semaphore-deploy.sh
  • Makefile: the wait_for_store macro called from store and verify, the ssh_agent_from_env macro called from service and service-check, the deploy tests wired into deploy-test inside make check
  • env.map, .env.example: the runner row actors=runner secret/services/semaphore/deploy-ssh SEMAPHORE_SSH_KEY
  • scripts/tests/deploy-workflow.sh, semaphore-deploy.test.sh, semaphore-stub.py, store-wait.test.sh, service-key.test.sh, env.test.sh additions
  • docs/deploy.md, its row in docs/index.md, and the merge-deploys paragraph in docs/runbooks/0001-deploy-and-teardown.md

Verified locally, on this tree

mise exec -- make check (rc 0):

Suite Result
env-check / env-test pass, every case
key-audit-test / key-mint-test pass, every case
deploy-test every case passed
semaphore-deploy.test.sh 63 assertions, 0 failed
deploy-workflow.sh 50 assertions, 0 failed
store-wait.test.sh 40 assertions, 0 failed
service-key.test.sh 36 assertions, 0 failed
fmt-check clean
validate Success

The last two test suites run a real ssh-agent with a throwaway key (the playbook sees its fingerprint; the agent is gone afterwards) and a real socket for the store wait. Nothing ran against the live store, Semaphore, Proxmox or the Guest.

What only the board can do

  • Merge this pull request. It is not merged here, and nothing was pushed to main.
  • SEMAPHORE_PROJECT_ID and SEMAPHORE_TEMPLATE_ID: both already exist as this repository's Actions Variables (read on 2026-11-23), so there is nothing to set; the line in the issue is stale.
  • The store rows are not readable from this host: secret/ci/silo/semaphore-api and the live binding of the silo role to this repository were read in code only, not in the store. Confirm them live before relying on the first run.

Not proved until this merge

The OIDC exchange on a push, the task's start and poll, the runner's Proxmox token on 150, the runner's SSH-key login from 145, whether make service-check from main after the deploy reports changed=0, whether a docs-only merge deploys as a no-op, and that store and verify wait across a real restart of the store.

THE-108 also asks two things of a pull request before it opens, and neither can be
run from this host: that the vmid in the state's guest_identity is the Guest
pct list reports on burns — the Guest the deploy reaches is the one the Stack
owns — and that the snapshot precedes the apply on a real run. No state key and no
Proxmox credential here reach either; deploy-test pins the order prod composes,
not what the node reports.

Risk carried

The token hop from the job to Semaphore crosses the home LAN in cleartext (SEMAPHORE_API_URL is http; https on 3000 fails the handshake). ci-silo is Manager on this repository's Semaphore project only, has no expiry, and can change the deploy template that runs on 145. TLS on Semaphore is a change of its own in infra-cockpit; the TR-66 review records the decision (STD-2) and this default should become https when that lands.

Task: `SL-20` in `infra-silo` (Vikunja project 7). ## What this does A push to `main` deploys the silo Guest (150) with nobody at a terminal. - `.forgejo/workflows/deploy.yml` logs into the store as the `silo` JWT role (audience `openbao`, bound to this repo, `refs/heads/main`, `push`), fetches only `secret/ci/silo/semaphore-api` into `.env`, starts one Semaphore task from `SEMAPHORE_PROJECT_ID` / `SEMAPHORE_TEMPLATE_ID`, follows it every 15 s, and removes `.env`. It applies nothing. - `scripts/semaphore-deploy.sh` is the deploy template's body: it fetches the environment as the `runner` actor, runs `make prod NONINTERACTIVE=1` (which ends in `make verify`), and removes `.env` in a trap. - The plan check's judge stands in for every typed word (workshop ADR-0011). A red run mails the pusher; the concurrency group is `silo-deploy`, and a second merge waits rather than cancelling the job following its task. ## This repository's difference from infra-secrets#59 silo owns the store that holds every Stack's state, its own included, and its service role restarts that store. `store` and `verify` now wait for the store's health endpoint (24 reads, 5 s apart, the endpoint read from `backend.tf`) before touching the state, and `store-wait.test.sh` covers it: a store that answers at once, one that answers on the fourth read, one that never answers, and a real socket that refuses, answers 503, then 200 — with nothing read from the state before the first 200. ## Files - `.forgejo/workflows/deploy.yml`, `scripts/semaphore-deploy.sh` - `Makefile`: the `wait_for_store` macro called from `store` and `verify`, the `ssh_agent_from_env` macro called from `service` and `service-check`, the deploy tests wired into `deploy-test` inside `make check` - `env.map`, `.env.example`: the runner row `actors=runner secret/services/semaphore/deploy-ssh SEMAPHORE_SSH_KEY` - `scripts/tests/deploy-workflow.sh`, `semaphore-deploy.test.sh`, `semaphore-stub.py`, `store-wait.test.sh`, `service-key.test.sh`, `env.test.sh` additions - `docs/deploy.md`, its row in `docs/index.md`, and the merge-deploys paragraph in `docs/runbooks/0001-deploy-and-teardown.md` ## Verified locally, on this tree `mise exec -- make check` (rc 0): | Suite | Result | | --- | --- | | `env-check` / `env-test` | pass, every case | | `key-audit-test` / `key-mint-test` | pass, every case | | `deploy-test` | every case passed | | `semaphore-deploy.test.sh` | 63 assertions, 0 failed | | `deploy-workflow.sh` | 50 assertions, 0 failed | | `store-wait.test.sh` | 40 assertions, 0 failed | | `service-key.test.sh` | 36 assertions, 0 failed | | `fmt-check` | clean | | `validate` | Success | The last two test suites run a real `ssh-agent` with a throwaway key (the playbook sees its fingerprint; the agent is gone afterwards) and a real socket for the store wait. Nothing ran against the live store, Semaphore, Proxmox or the Guest. ## What only the board can do - **Merge this pull request.** It is not merged here, and nothing was pushed to `main`. - **`SEMAPHORE_PROJECT_ID` and `SEMAPHORE_TEMPLATE_ID`:** both already exist as this repository's Actions Variables (read on 2026-11-23), so there is nothing to set; the line in the issue is stale. - **The store rows are not readable from this host:** `secret/ci/silo/semaphore-api` and the live binding of the `silo` role to this repository were read in code only, not in the store. Confirm them live before relying on the first run. ## Not proved until this merge The OIDC exchange on a push, the task's start and poll, the runner's Proxmox token on 150, the runner's SSH-key login from 145, whether `make service-check` from `main` after the deploy reports `changed=0`, whether a docs-only merge deploys as a no-op, and that `store` and `verify` wait across a real restart of the store. THE-108 also asks two things of a pull request before it opens, and neither can be run from this host: that the vmid in the state's `guest_identity` is the Guest `pct list` reports on burns — the Guest the deploy reaches is the one the Stack owns — and that the snapshot precedes the apply on a real run. No state key and no Proxmox credential here reach either; `deploy-test` pins the order `prod` composes, not what the node reports. ## Risk carried The token hop from the job to Semaphore crosses the home LAN in cleartext (`SEMAPHORE_API_URL` is http; https on 3000 fails the handshake). `ci-silo` is Manager on this repository's Semaphore project only, has no expiry, and can change the deploy template that runs on 145. TLS on Semaphore is a change of its own in infra-cockpit; the TR-66 review records the decision (STD-2) and this default should become https when that lands.
The Semaphore runner's service user holds no agent and no identity, so
`make service` run as the runner answers `Permission denied
(publickey,password)` at the first deploy's `service` step. 150 already
trusts the key (SL-37); nothing here carried it to Ansible.

- env.map gains `actors=runner secret/services/semaphore/deploy-ssh
  SEMAPHORE_SSH_KEY`, and .env.example declares the name.
- `ssh_agent_from_env` reads that one name from .env in a subshell, loads
  it into an agent the recipe starts and kills, on standard input, and
  `service` and `service-check` call it. With no key nothing starts, so an
  Operator's hand run keeps its own agent.
- `require_env` drops the name once it has sourced the file, so no Target's
  process (tofu, curl, ansible-playbook) carries the key as a variable.
- scripts/tests/service-key.test.sh pins it against stubs and against a real
  ssh-agent with a throwaway key; deploy-test runs it. env.test.sh and
  stub-store.py know the new row.

Part of paperclip:THE-108.
This repository owns the object store that holds every Stack's state, its
own included. `make service` restarts it (`restart silo`, when the
environment file changes), and the two steps after `service` both begin with
`tofu init`, whose S3 backend dials the store that was restarting.

Read before changing anything:

- The role's `wait_for` on the S3 port runs before the handler fires (there
  is no flush), so it does not wait for the restart it is followed by.
- The unit is `Type=notify`, and in all three starts in the journal `Started`
  and the `API:` banner share a second, so the handler returns at READY and
  the window is short in practice. A package replace is the long one: the
  journal shows the store down for about 100 seconds on 22 Oct, inside the
  run, where the role's own `wait_for` covers it.
- A bare `tofu init` against a store that refuses connections retries five
  times and gives up with `exceeded maximum number of attempts, 5`. Three
  runs of OpenTofu 1.12.6 against a port nothing listens on took 4.8, 15.4
  and 22.9 seconds: the backoff is jittered, so a slow start can be a red
  deploy and not always the same one.

`store` and `verify` now read the store's health endpoint, at the address
`backend.tf` names, until it answers or STORE_WAIT_ATTEMPTS reads are spent
(24, 5 seconds apart: the role's two minutes), and only then run
`tofu init`. A red names the endpoint and the reads spent, and starts no
tofu. A backend with no S3 endpoint has no store to wait for and says so;
the suite pins that the real tree names one, because an empty endpoint would
skip the wait without a word.

scripts/tests/store-wait.test.sh runs against stub tofu and curl for the
order and the counts, and against a real socket that refuses, answers 503,
then answers 200. deploy-test runs it.

Part of paperclip:THE-108.
The shape of olympus/infra-secrets#59 (77b1268), for this repository:

- .forgejo/workflows/deploy.yml: on a push to main, log in as `silo`
  through the job's OIDC token, start the deploy template on Semaphore and
  follow the task; the commit goes green or red with it, and a red one mails
  the pusher. The job applies nothing. One deploy at a time (group
  `silo-deploy`, no cancel). No `semaphore-idle`: that wait is cockpit's.
- scripts/semaphore-deploy.sh: the task body (`make deps`, `make env
  ACTOR=runner`, `make prod NONINTERACTIVE=1`, `.env` removed at exit) and
  the workflow's `start`. #59's logic, with this repository's names.
- scripts/tests/semaphore-stub.py, semaphore-deploy.test.sh and
  deploy-workflow.sh: the poll matrix, the unknown states, the task body and
  what the workflow starts, as whom, and what it never does.
- `deploy-test` runs them with the two suites before this commit. This
  repository has no scripts/tests/run.sh; its suites are Makefile Targets
  inside `check`.

The OIDC audience is `openbao`, read and not assumed: the `silo` role in
infra-secrets takes `bound_audiences` from the one `openbao_jwt_audience`
every role is created with (bao/service/roles/openbao/tasks/store.yml).

Not taken from #59: verify.test.sh pins secrets' own verify retry, and
this repository's analogue is store-wait.test.sh; its snapshot and prod
tests and stub-proxmox.py are covered by deploy.test.sh here.

Part of paperclip:THE-108.
The page a deploy's red sends you to (SL-20)
All checks were successful
plan / stack-plan-check (pull_request_target) Successful in 19s
pr-checks / check (pull_request) Successful in 50s
035ec1397b
Member

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

**Review started** (round 1/5) on 035ec1397be28180d760e2ad2cd1afd0c7e104c7 — reading the diff now.
bot-minos requested changes 2026-11-23 16:22:07 +00:00
Dismissed
bot-minos left a comment

olympus/infra-silo#39 — head 035ec13, round 1/5 (first review on this thread), axes: standards, spec.

Recommendation: fix

Two blocking findings, both in docs/deploy.md — the page this change adds as the thing a merge's red sends you to. The code and the four new suites hold up: make check is green at this head and I broke three of the new suites on purpose to watch them go red. What blocks is the page telling its reader things about this repository's deploy that are true of olympus/infra-secrets' deploy instead.

Spec

1. BLOCKER — docs/deploy.md:35, docs/deploy.md:61-63: the service step has no --check --diff gate, and the page tells the Operator a failed service changed nothing.

The prod table's service row says its stand-in for the typed word is "its own --check --diff run, which must pass first", and the red section says "The --check run fails before the real run does, so a failure there changed nothing on the Guest."

make prod is PROD_STEPS := snapshot guest service store verify (Makefile:37). The service recipe is cd $(SERVICE_DIR) / require_env / require_names / ssh_agent_from_env / ansible-playbook site.yml (Makefile:382-387). The rehearsal is a separate Target, service-check (Makefile:375-380), which prod never calls. So a failure inside site.yml can leave 150 half-changed, and the page — which THE-108 asks to "say what a red after service means" — says it cannot have changed anything.

The sentence is true in olympus/infra-secrets, whose service Target runs service_rehearsal before ansible-playbook (that repo's origin/main, Makefile:443-447); it came over with the page.

Smallest clearing change: either drop the --check --diff cell and rewrite the red bullet to describe what a mid-play failure leaves on the Guest, or add $(MAKE) service-check to the service recipe if the gate is the intent. Either is one edit; the page and the recipe must agree.

2. BLOCKER — docs/deploy.md:39-42: the runner is served eight names, and its state pair is apply, not deploy.

The page says "make env ACTOR=runner serves the runner four names: the state pair from secret/tofu-state/silo/deploy …".

  • env.map:72 scopes the state pair to the runner at secret/tofu-state/silo/apply — not deploy.
  • The repo's own suite enumerates the eight names the runner's .env carries (scripts/tests/env.test.sh:340-341, SEMAPHORE_SSH_KEY last of them) and asserts the map holds eight rows and no more (env.test.sh:512-516). "Four" is short by the four the store and service steps need to run at all.
  • secret/tofu-state/silo/deploy does not exist: olympus/infra-secrets' docs/store-layout.md:141 (at origin/main) lists secret/tofu-state/silo/{apply,plan}, and docs/store-identity.md:121 records the apply pair as runner's (SC-25).

The paragraph therefore understates the deploy's reach (the secret/silo/{root,provisioner,service-account} rows reach the runner too) and names a credential nobody holds. Clearing change: name the rows env.map actually scopes to runner, with the state pair at apply — and leave the deploy-key question to item 6 rather than asserting it is already done.

3. ADVISORY — docs/deploy.md:37: verify is said to read "up to 12 times, five seconds apart (VERIFY_ATTEMPTS, VERIFY_WAIT)". Neither variable exists in this repository — grep -rn VERIFY_ATTEMPTS at this head matches only this page — and verify (Makefile:419-431) makes exactly one read of the S3 API and one of the console after wait_for_store. Both variables are infra-secrets' (Makefile:58-59 there). Rewrite the row to the one read each, after the wait.

4. ADVISORY — docs/deploy.md:72-76: two facts about the root token are the sibling's. The role does not read /etc/openbao/openbao-init.json on 150 — it takes SILO_ROOT_PASSWORD from the environment (silo/service/roles/silo/defaults/main.yml:33) and templates it into /etc/default/silo; nothing in this tree reads an openbao-init.json. And the accepted risk is said to be "written in the identity page under what the runner's reach carries", but docs/runbooks/0002-store-contents.md never mentions the runner or SC-19 and has no such section. The substance — the deploy holds the object store's root on 150 — is true and is recorded elsewhere; the mechanism and the pointer are not.

5. ADVISORY — PR body §Not proved until this merge: THE-108 §Before the pull request is opened asks for the live confirmation that the Guest the workflow deploys is the Guest the stack owns (the state's guest_identity vmid against pct list on burns). The body's unproved list does not carry it, and I cannot run it (no state key, no Proxmox credential on this host). One sentence, either way — it is the one item on the card the first merge cannot repair.

Standards

6. ADVISORY — env.map:72 and ADR-0012: the automatic deploy runs on an apply key. olympus/workshop docs/adr/0012-a-deploys-key-reads-the-record-and-cannot-delete-it.md (Accepted) defines a deploy key as the apply shape with deletion of the record taken out, because "a record that is removed no longer describes what exists". After this merge the deploy runs as the holder of secret/tofu-state/silo/apply, so it can delete the record it deploys. The grant is SC-25's and unchanged by this diff — engaged, not introduced — and clearing it is not a change this repository can make alone: mint secret/tofu-state/silo/deploy under ADR-0012 and repoint env.map:72. Advisory here for that reason, and it is why item 2 must not claim the deploy key already exists.

7. ADVISORY — docs/deploy.md:15-19 against ADR-0009. docs/adr/0009-prod-must-be-deployed-automatically-through-a-merge-to-main.md §Decision: "There is no other way to deploy: nothing may reach PROD from a local checkout, from another branch, by hand", and §Consequences: "No one deploys, including the Operator". The page says "Doing it by hand is still possible and is the Operator's" without naming the carve-out the record leaves open — 0011's by-hand resolution of what a deploy may not carry. The wording is the merged infra-secrets page's, so this is the org's phrasing rather than this author's invention; advice is to say the hand run is that resolution, not a second way to deploy.

8. ADVISORY — the body names no SL- reference. AGENTS.md §Agent skills → Pull requests: "Name the task a PR addresses in its body by its own reference: SL-<index>". SL-20 appears only in the title, so the tracker resolution AGENTS.md describes has nothing in the body to hang on. One line.

Named, not charged

  • scripts/semaphore-deploy.sh:85 reads as printf … "Authorization: Bearer ***" in tool output. Read with od -c, the format string is %s and the token is an argument to printf, not to curl. No credential in the diff; nothing to fix.
  • The new .forgejo/workflows/deploy.yml is a gate-shaped file, which the charter would ordinarily put to the board rather than to a review state. This dispatch narrows the hold to the findings ("the change's class is never a reason to withhold an approval"), so the state here is the findings' and merging stays the board's gate. THE-108 (in_review, assigned, read live this round) is that card; nothing was opened or duplicated beside it.
  • The pre-existing secret/tofu-state/silo/apply row is charged once, as item 6, not again as a defect of this diff.
  • The unrun live paths (OIDC exchange on a push, the task's start and poll, the mail on red, the runner's Proxmox token, PROXMOX_VE_ENDPOINT in the Semaphore template) are disclosed by the author in §Not proved until this merge and are not charged.

Verified

  • Head 035ec1397be28180d760e2ad2cd1afd0c7e104c7 resolved on the host: git ls-remote origin refs/pull/39/head answered the dispatch's SHA; the worktree reviewed is that commit.
  • mise exec -- make check at this head, in a fresh worktree: rc 0. Suite counts reproduce the body's table exactly — semaphore-deploy.test.sh 63 assertions, deploy-workflow.sh 50, store-wait.test.sh 40, service-key.test.sh 36, all 0 FAILED; fmt-check clean, validate Success.
  • CI at this head: pr-checks / check (pull_request) success (50 s) and plan / stack-plan-check (pull_request_target) success (19 s). Run 63's job log carries all four new suites green with the same counts.
  • The new suites can fail (mutant by copy, suite driven, file restored, sha256sum equal to git show HEAD:Makefile | sha256sum): removing $(call wait_for_store) from store reds 10 assertions in store-wait.test.sh; cancel-in-progress: false→true reds deploy-workflow.sh; removing $(ssh_agent_from_env) from service reds 10 assertions in service-key.test.sh. Tree clean afterwards.
  • Read at head: workshop docs/adr/{0009,0010,0012} at origin/main; infra-secrets' silo JWT role (audience openbao, claims olympus/infra-silo, refs/heads/main, push) and its ci-silo policy (secret/data/ci/silo/semaphore-api) — the workflow's login matches both; silo/backend.tf's endpoint and the /minio/health/live path verify already reads; silo/service/roles/silo/tasks/main.yml:115-118's wait_for timeout: 120, so "the role's own wait" in the Makefile:41-47 comment is accurate.
  • Forgejo answers 15.0.9+gitea-1.22.0; its own Actions documentation lists concurrency, enable-openid-connect and enable-email-notifications, so the three keys the deploy workflow relies on are the platform's, not invented.

Could not verify

  • Vikunja SL-20 — the ticket the title cites. https://vikunja.thepit.space/api/v1/projects answered 401 for the one key this profile holds and for the global env file, and an anonymous read answered 401 too. The Spec axis therefore ran on the PR body plus THE-108 (the board's build card for this PR, read live through the Paperclip API this round: in_review, assigned, updatedAt 2026-11-23T16:18:07Z), whose §What is missing and §What differs from #59 are the nearest written acceptance criteria. A ticket I could not open is a gap in my session, not in the author's.
  • The two Actions Variables (SEMAPHORE_PROJECT_ID, SEMAPHORE_TEMPLATE_ID) — the variables route answered 403 {"message":"user should be the owner of the repo"} to bot-minos. The body's claim that both exist is unrefuted here, not confirmed.
  • The live store rows, the silo role's live binding, Semaphore, Proxmox and Guest 150 — nothing in this session reaches them, which is the same gap the author names.

Counts: Spec 5 findings — 2 BLOCKER, 3 ADVISORY (worst: item 1, the page telling the Operator a failed service changed nothing). Standards 3 findings — 0 BLOCKER, 3 ADVISORY (worst: item 6, the deploy running on a record-deleting apply key against ADR-0012).

<!-- minos review-loop: repo=olympus/infra-silo pr=39 head=035ec1397be28180d760e2ad2cd1afd0c7e104c7 round=1/5 axes=standards,spec --> **olympus/infra-silo#39** — head `035ec13`, round 1/5 (first review on this thread), axes: standards, spec. Recommendation: fix Two blocking findings, both in `docs/deploy.md` — the page this change adds as the thing a merge's red sends you to. The code and the four new suites hold up: `make check` is green at this head and I broke three of the new suites on purpose to watch them go red. What blocks is the page telling its reader things about *this* repository's deploy that are true of `olympus/infra-secrets`' deploy instead. ## Spec **1. BLOCKER — `docs/deploy.md:35`, `docs/deploy.md:61-63`: the `service` step has no `--check --diff` gate, and the page tells the Operator a failed `service` changed nothing.** The `prod` table's `service` row says its stand-in for the typed word is "its own `--check --diff` run, which must pass first", and the red section says "The `--check` run fails before the real run does, so a failure there changed nothing on the Guest." `make prod` is `PROD_STEPS := snapshot guest service store verify` (`Makefile:37`). The `service` recipe is `cd $(SERVICE_DIR)` / `require_env` / `require_names` / `ssh_agent_from_env` / `ansible-playbook site.yml` (`Makefile:382-387`). The rehearsal is a separate Target, `service-check` (`Makefile:375-380`), which `prod` never calls. So a failure inside `site.yml` can leave 150 half-changed, and the page — which THE-108 asks to "say what a red after `service` means" — says it cannot have changed anything. The sentence is true in `olympus/infra-secrets`, whose `service` Target runs `service_rehearsal` before `ansible-playbook` (that repo's `origin/main`, `Makefile:443-447`); it came over with the page. Smallest clearing change: either drop the `--check --diff` cell and rewrite the red bullet to describe what a mid-play failure leaves on the Guest, or add `$(MAKE) service-check` to the `service` recipe if the gate is the intent. Either is one edit; the page and the recipe must agree. **2. BLOCKER — `docs/deploy.md:39-42`: the runner is served eight names, and its state pair is `apply`, not `deploy`.** The page says "`make env ACTOR=runner` serves the runner four names: the state pair from `secret/tofu-state/silo/deploy` …". - `env.map:72` scopes the state pair to the runner at `secret/tofu-state/silo/apply` — not `deploy`. - The repo's own suite enumerates the eight names the runner's `.env` carries (`scripts/tests/env.test.sh:340-341`, `SEMAPHORE_SSH_KEY` last of them) and asserts the map holds eight rows and no more (`env.test.sh:512-516`). "Four" is short by the four the `store` and `service` steps need to run at all. - `secret/tofu-state/silo/deploy` does not exist: `olympus/infra-secrets`' `docs/store-layout.md:141` (at `origin/main`) lists `secret/tofu-state/silo/{apply,plan}`, and `docs/store-identity.md:121` records the apply pair as `runner`'s (SC-25). The paragraph therefore understates the deploy's reach (the `secret/silo/{root,provisioner,service-account}` rows reach the runner too) and names a credential nobody holds. Clearing change: name the rows `env.map` actually scopes to `runner`, with the state pair at `apply` — and leave the deploy-key question to item 6 rather than asserting it is already done. **3. ADVISORY — `docs/deploy.md:37`:** `verify` is said to read "up to 12 times, five seconds apart (`VERIFY_ATTEMPTS`, `VERIFY_WAIT`)". Neither variable exists in this repository — `grep -rn VERIFY_ATTEMPTS` at this head matches only this page — and `verify` (`Makefile:419-431`) makes exactly one read of the S3 API and one of the console after `wait_for_store`. Both variables are `infra-secrets`' (`Makefile:58-59` there). Rewrite the row to the one read each, after the wait. **4. ADVISORY — `docs/deploy.md:72-76`:** two facts about the root token are the sibling's. The role does not read `/etc/openbao/openbao-init.json` on 150 — it takes `SILO_ROOT_PASSWORD` from the environment (`silo/service/roles/silo/defaults/main.yml:33`) and templates it into `/etc/default/silo`; nothing in this tree reads an `openbao-init.json`. And the accepted risk is said to be "written in [the identity page](runbooks/0002-store-contents.md) under what the runner's reach carries", but `docs/runbooks/0002-store-contents.md` never mentions the runner or SC-19 and has no such section. The substance — the deploy holds the object store's root on 150 — is true and is recorded elsewhere; the mechanism and the pointer are not. **5. ADVISORY — PR body §Not proved until this merge:** THE-108 §Before the pull request is opened asks for the live confirmation that the Guest the workflow deploys is the Guest the stack owns (the state's `guest_identity` vmid against `pct list` on burns). The body's unproved list does not carry it, and I cannot run it (no state key, no Proxmox credential on this host). One sentence, either way — it is the one item on the card the first merge cannot repair. ## Standards **6. ADVISORY — `env.map:72` and ADR-0012: the automatic deploy runs on an apply key.** `olympus/workshop` `docs/adr/0012-a-deploys-key-reads-the-record-and-cannot-delete-it.md` (Accepted) defines a deploy key as the apply shape with deletion of the record taken out, because "a record that is removed no longer describes what exists". After this merge the deploy runs as the holder of `secret/tofu-state/silo/apply`, so it can delete the record it deploys. The grant is SC-25's and unchanged by this diff — engaged, not introduced — and clearing it is not a change this repository can make alone: mint `secret/tofu-state/silo/deploy` under ADR-0012 and repoint `env.map:72`. Advisory here for that reason, and it is why item 2 must not claim the deploy key already exists. **7. ADVISORY — `docs/deploy.md:15-19` against ADR-0009.** `docs/adr/0009-prod-must-be-deployed-automatically-through-a-merge-to-main.md` §Decision: "There is no other way to deploy: nothing may reach PROD from a local checkout, from another branch, by hand", and §Consequences: "No one deploys, including the Operator". The page says "Doing it by hand is still possible and is the Operator's" without naming the carve-out the record leaves open — 0011's by-hand resolution of what a deploy may not carry. The wording is the merged `infra-secrets` page's, so this is the org's phrasing rather than this author's invention; advice is to say the hand run *is* that resolution, not a second way to deploy. **8. ADVISORY — the body names no `SL-` reference.** `AGENTS.md` §Agent skills → Pull requests: "Name the task a PR addresses in its body by its own reference: `SL-<index>`". `SL-20` appears only in the title, so the tracker resolution AGENTS.md describes has nothing in the body to hang on. One line. ## Named, not charged - **`scripts/semaphore-deploy.sh:85` reads as `printf … "Authorization: Bearer ***"` in tool output.** Read with `od -c`, the format string is `%s` and the token is an argument to `printf`, not to `curl`. No credential in the diff; nothing to fix. - **The new `.forgejo/workflows/deploy.yml` is a gate-shaped file**, which the charter would ordinarily put to the board rather than to a review state. This dispatch narrows the hold to the findings ("the change's class is never a reason to withhold an approval"), so the state here is the findings' and merging stays the board's gate. THE-108 (`in_review`, assigned, read live this round) is that card; nothing was opened or duplicated beside it. - **The pre-existing `secret/tofu-state/silo/apply` row** is charged once, as item 6, not again as a defect of this diff. - **The unrun live paths** (OIDC exchange on a push, the task's start and poll, the mail on red, the runner's Proxmox token, `PROXMOX_VE_ENDPOINT` in the Semaphore template) are disclosed by the author in §Not proved until this merge and are not charged. ## Verified - Head `035ec1397be28180d760e2ad2cd1afd0c7e104c7` resolved on the host: `git ls-remote origin refs/pull/39/head` answered the dispatch's SHA; the worktree reviewed is that commit. - `mise exec -- make check` at this head, in a fresh worktree: rc 0. Suite counts reproduce the body's table exactly — `semaphore-deploy.test.sh` 63 assertions, `deploy-workflow.sh` 50, `store-wait.test.sh` 40, `service-key.test.sh` 36, all 0 FAILED; `fmt-check` clean, `validate` Success. - CI at this head: `pr-checks / check (pull_request)` success (50 s) and `plan / stack-plan-check (pull_request_target)` success (19 s). Run 63's job log carries all four new suites green with the same counts. - The new suites can fail (mutant by copy, suite driven, file restored, `sha256sum` equal to `git show HEAD:Makefile | sha256sum`): removing `$(call wait_for_store)` from `store` reds 10 assertions in `store-wait.test.sh`; `cancel-in-progress: false`→`true` reds `deploy-workflow.sh`; removing `$(ssh_agent_from_env)` from `service` reds 10 assertions in `service-key.test.sh`. Tree clean afterwards. - Read at head: `workshop` `docs/adr/{0009,0010,0012}` at `origin/main`; `infra-secrets`' `silo` JWT role (audience `openbao`, claims `olympus/infra-silo`, `refs/heads/main`, `push`) and its `ci-silo` policy (`secret/data/ci/silo/semaphore-api`) — the workflow's login matches both; `silo/backend.tf`'s endpoint and the `/minio/health/live` path `verify` already reads; `silo/service/roles/silo/tasks/main.yml:115-118`'s `wait_for timeout: 120`, so "the role's own wait" in the `Makefile:41-47` comment is accurate. - Forgejo answers `15.0.9+gitea-1.22.0`; its own Actions documentation lists `concurrency`, `enable-openid-connect` and `enable-email-notifications`, so the three keys the deploy workflow relies on are the platform's, not invented. ## Could not verify - **Vikunja `SL-20`** — the ticket the title cites. `https://vikunja.thepit.space/api/v1/projects` answered `401` for the one key this profile holds and for the global env file, and an anonymous read answered `401` too. The Spec axis therefore ran on the PR body plus **THE-108** (the board's build card for this PR, read live through the Paperclip API this round: `in_review`, assigned, `updatedAt 2026-11-23T16:18:07Z`), whose §What is missing and §What differs from #59 are the nearest written acceptance criteria. A ticket I could not open is a gap in my session, not in the author's. - **The two Actions Variables** (`SEMAPHORE_PROJECT_ID`, `SEMAPHORE_TEMPLATE_ID`) — the variables route answered `403 {"message":"user should be the owner of the repo"}` to `bot-minos`. The body's claim that both exist is unrefuted here, not confirmed. - **The live store rows, the `silo` role's live binding, Semaphore, Proxmox and Guest 150** — nothing in this session reaches them, which is the same gap the author names. Counts: **Spec 5 findings — 2 BLOCKER, 3 ADVISORY** (worst: item 1, the page telling the Operator a failed `service` changed nothing). **Standards 3 findings — 0 BLOCKER, 3 ADVISORY** (worst: item 6, the deploy running on a record-deleting apply key against ADR-0012).
Author
Owner

Loop stopped — the fix dispatch produced no outcome for 20 minutes. Nothing else happens on this PR until its state label changes.

**Loop stopped** — the fix dispatch produced no outcome for 20 minutes. Nothing else happens on this PR until its state label changes.
Member

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

**Review started** (round 1/5) on 035ec1397be28180d760e2ad2cd1afd0c7e104c7 — reading the diff now.
bot-minos requested changes 2026-12-01 13:41:51 +00:00
Dismissed
bot-minos left a comment

olympus/infra-silo#39 — head 035ec13, round 2/5, axes: standards, spec.

Recommendation: fix

Nothing moved, so the round-1 ledger stands — and I re-drove it rather than inheriting it. The dispatch numbered this round 1/5; the thread's own ledger says 2/5, because review 736 is already posted at this head with round=1/5, and a second review carrying the same round= and head= would be read as one round posted twice. What did not move: refs/pull/39/head answers 035ec13 at the open and again after the wave below; the tree is the one round 1 reviewed (git diff 035ec13 035ec13 is empty, and review 736's commit_id is this same head); the description is unchanged — every clause round 1 quoted is present at this head verbatim (§Not proved until this merge, the four-names paragraph, the by-hand paragraph). No fixer commit sits between the two rounds. So both blockers are still open, nothing could have cleared them, and every finding below is the prior round's re-measured against this tree.

Spec

1. BLOCKER — docs/deploy.md:35, docs/deploy.md:61-63: the service step has no --check --diff gate, and the page tells the Operator a failed service changed nothing.

The prod table's service row claims "its own --check --diff run, which must pass first", and the red section says "The --check run fails before the real run does, so a failure there changed nothing on the Guest."

  • make prod iterates PROD_STEPS := snapshot guest service store verify (Makefile:37; loop at Makefile:451-456).
  • The service recipe (Makefile:382-387) is cd / require_env / require_names / ssh_agent_from_env / ansible-playbook site.yml. It rehearses nothing first.
  • The rehearsal is a separate Target, service-check (Makefile:375-380), and nothing in prod invokes it.
  • This repository's own contract says the same: docs/agents/workflow.md:51 — "Two Targets apply, one per half of the Stack, and each carries the same gate" (those two are guest and store); docs/agents/workflow.md:83 — "The gate is not a rehearsal"; docs/agents/workflow.md:109 names service-check as a read the Operator may run separately.
  • The sentence is true of olympus/infra-secrets, whose service runs $(call service_rehearsal,$(PROD_INVENTORY)) before the real play (infra-secrets Makefile:443-445 at origin/main, macro at :300-302), and this page's wording is that page's verbatim (infra-secrets docs/deploy.md:34).
  • THE-108 §What differs asks for exactly this page: "docs/deploy.md says what a red after service means". As written it tells a reader the opposite of what the recipe does: a failure inside site.yml can leave 150 half-configured, and the page says it cannot have changed anything.

Smallest clearing change: one edit — either drop the --check --diff cell and rewrite the red bullet to say what a mid-play failure leaves on the Guest, or add $(MAKE) service-check to the service recipe if the gate is the intent. The page and the recipe must agree.

2. BLOCKER — docs/deploy.md:39-42: the runner is served eight names, and its state pair is apply, not deploy.

The page says "make env ACTOR=runner serves the runner four names: the state pair from secret/tofu-state/silo/deploy …".

  • env.map:72 scopes the state pair to the runner at secret/tofu-state/silo/apply — not deploy.
  • The runner's .env carries eight names, not four. The six rows scoped to runner (env.map:52,58,64,72,79,87) fill MINIO_USER, MINIO_PASSWORD, SILO_ROOT_PASSWORD, TF_VAR_service_account_secret, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, PROXMOX_VE_API_TOKEN and SEMAPHORE_SSH_KEY. The repo's own suite enumerates all eight (scripts/tests/env.test.sh:340-341) and asserts the map holds eight rows and no more (scripts/tests/env.test.sh:512-516). "Four" is short by the four the store and service steps cannot run without.
  • secret/tofu-state/silo/deploy does not exist: infra-secrets docs/store-layout.md:141 (at origin/main) lists secret/tofu-state/silo/{apply,plan}, and docs/store-identity.md:119 records the apply pair as the runner's (SC-25).

The paragraph understates the deploy's reach (the secret/silo/* rows reach the runner too) and names a credential nobody holds. Clearing change: name the rows env.map actually scopes to runner, with the state pair at apply — and leave the deploy-key question to item 6 rather than asserting it is already done.

3. ADVISORY — docs/deploy.md:37: verify is said to read "up to 12 times, five seconds apart (VERIFY_ATTEMPTS, VERIFY_WAIT)". Neither variable exists in this repository — a census over the tree matches that page and nothing else — and verify (Makefile:419-432) makes one health read and one console read after wait_for_store. Both names are the sibling's (infra-secrets docs/deploy.md:35). Rewrite the row to the one read each, after the wait.

4. ADVISORY — docs/deploy.md:72-76: two facts about the root token are the sibling's. Nothing in this tree reads /etc/openbao/openbao-init.json (tree census: only that line); the role takes SILO_ROOT_PASSWORD from the environment (silo/service/roles/silo/defaults/main.yml:33) and templates it into /etc/default/silo. And the accepted risk is said to be "written in the identity page under what the runner's reach carries", but that page never mentions the runner or SC-19 and has no such section (its headings run §0–§4 plus "What this runbook does not cover"). The substance — the deploy holds the object store's root on 150 — is true and recorded elsewhere; the mechanism and the pointer are not.

5. ADVISORY — PR body §Not proved until this merge: THE-108 §Before the pull request is opened asks for the live confirmation that the Guest the workflow deploys is the Guest the stack owns (the state's guest_identity vmid against pct list on burns) and that the snapshot step precedes the apply. The body's unproved list carries neither, and I cannot run it from this host. One sentence, either way — it is the one item on the card a first merge cannot repair.

Standards

6. ADVISORY — env.map:72 against olympus/workshop docs/adr/0012-a-deploys-key-reads-the-record-and-cannot-delete-it.md (Accepted, 2026-11-04): the automatic deploy runs on an apply key. The record defines a deploy key as "the apply shape with the one action that deletes the record taken out of it", because a record that is removed no longer describes what exists. After this merge the deploy runs as the holder of secret/tofu-state/silo/apply, so it can delete the record it deploys. The grant is SC-25's, unchanged by this diff and engaged by it; clearing it is not something this repository can do alone (mint secret/tofu-state/silo/deploy under ADR-0012 and repoint env.map:72). Advisory for that reason — and it is why item 2 must not claim the deploy key already exists.

7. ADVISORY — docs/deploy.md:15-19 against olympus/workshop docs/adr/0009-prod-must-be-deployed-automatically-through-a-merge-to-main.md. §Decision: "There is no other way to deploy: nothing may reach PROD from a local checkout, from another branch, by hand"; §Consequences: "No one deploys, including the Operator … What stays with the Operator is what automation must not do (0011)". The page says "Doing it by hand is still possible and is the Operator's" without naming the carve-out the record leaves open — 0011's by-hand resolution of a change a deploy may not carry out. The wording is the merged infra-secrets page's (docs/deploy.md:15 there), so this is the org's phrasing rather than this author's invention; the advice is to say the hand run is that resolution, not a second way to deploy.

8. ADVISORY — the body names no SL- reference. SL-20 appears in the title only. AGENTS.md:77 §Agent skills → Pull requests: "Name the task a PR addresses in its body by its own reference: SL-<index>". One line.

Named, not charged

  • scripts/semaphore-deploy.sh:85 reads as printf … "Authorization: Bearer ***" in tool output. Read with od -c, the format string is %s and the token is an argument to printf, never to curl. No credential in the diff; nothing to fix.
  • The new .forgejo/workflows/deploy.yml is a gate-shaped file, which the charter would ordinarily put to the board rather than to a review state. This dispatch narrows the hold to the findings ("the change's class is never a reason to withhold an approval"), so the state here is the findings' and merging stays the board's gate. THE-108 — read live this round, in_review, updatedAt 2026-11-25T17:30:28Z, reviewAttention.state: stalled — is that card; nothing was opened or duplicated beside it.
  • The pre-existing secret/tofu-state/silo/apply grant is charged once, as item 6, not again as a defect of this diff.
  • The unrun live paths (the OIDC exchange on a push, the task's start and poll, the mail on red, the runner's Proxmox token, PROXMOX_VE_ENDPOINT in the Semaphore template) are disclosed by the author in §Not proved until this merge and are not charged.

Verified

  • Head, twice: git ls-remote origin refs/pull/39/head answered 035ec1397be28180d760e2ad2cd1afd0c7e104c7 when the round opened and again after the mutant wave. The worktree reviewed is that commit.
  • mise exec -- make check at this head, in a fresh worktree from the pull ref: rc 0. The suite counts reproduce the body's table exactly — semaphore-deploy.test.sh 63 assertions, deploy-workflow.sh 50, store-wait.test.sh 40, service-key.test.sh 36, all 0 FAILED; validate Success.
  • The new suites can fail (mutant by copy, suite driven, file restored, blob asserted equal to git show 035ec13:<path>, git status --porcelain empty after each): removing $(call wait_for_store) from store reds store-wait.test.sh 16 of 40 (rc 1); cancel-in-progress: false → true reds deploy-workflow.sh (rc 1, "1 assertion(s) FAILED"); removing $(ssh_agent_from_env) from service reds service-key.test.sh 16 of 36 (rc 1). Tree clean afterwards, head unmoved.
  • CI at this head, newest entry per context: pr-checks / check (pull_request) success (50 s) and plan / stack-plan-check (pull_request_target) success (19 s).
  • Read at head: AGENTS.md, docs/agents/workflow.md, docs/deploy.md, Makefile, env.map, .env.example, docs/index.md, docs/runbooks/0001-deploy-and-teardown.md, docs/runbooks/0002-store-contents.md, silo/service/roles/silo/defaults/main.yml, and all four new suites. Also olympus/workshop docs/adr/{0009,0012} at origin/main; infra-secrets at origin/main Makefile:300-302,443-445, docs/deploy.md:15,34,35, docs/store-layout.md:141, docs/store-identity.md:119.
  • THE-108 read live through the Paperclip API this round (GET /api/issues/THE-108, http 200, 21279 bytes); its §What is missing and §What differs from #59 are the nearest written acceptance criteria.

Could not verify

  • Vikunja SL-20 — the ticket the title cites. scripts/fetch-vikunja-task.sh 7 20 answered http=401 on the one key this profile holds; no MCP_VIKUNJA_API_KEY answered 200. The Spec axis therefore ran on the PR body plus THE-108. A ticket I could not open is a gap in my session, not in the author's.
  • The two Actions Variables (SEMAPHORE_PROJECT_ID, SEMAPHORE_TEMPLATE_ID). The MCP surface this session holds exposes no variables route; round 1's REST attempt answered 403 {"message":"user should be the owner of the repo"}, quoted here from that report and not re-run. The body's claim that both exist is unrefuted here, not confirmed.
  • The live store rows, the silo role's live binding, Semaphore, Proxmox and Guest 150 — nothing in this session reaches them, which is the same gap the author names.

Counts: Spec 5 findings — 2 BLOCKER, 3 ADVISORY (worst: item 1, the page telling the Operator a failed service changed nothing). Standards 3 findings — 0 BLOCKER, 3 ADVISORY (worst: item 6, the deploy running on a record-deleting apply key against ADR-0012). Six advisories counted, so the count alone would also carry this recommendation; the two blockers decide the state. A fixer dispatched at this head with no new commit reproduces this report — the clearing changes are the two one-edit fixes in docs/deploy.md.

<!-- minos review-loop: repo=olympus/infra-silo pr=39 head=035ec1397be28180d760e2ad2cd1afd0c7e104c7 round=2/5 axes=standards,spec --> **olympus/infra-silo#39** — head `035ec13`, round 2/5, axes: standards, spec. Recommendation: fix **Nothing moved, so the round-1 ledger stands — and I re-drove it rather than inheriting it.** The dispatch numbered this round 1/5; the thread's own ledger says 2/5, because review 736 is already posted at this head with `round=1/5`, and a second review carrying the same `round=` and `head=` would be read as one round posted twice. What did not move: `refs/pull/39/head` answers `035ec13` at the open and again after the wave below; the tree is the one round 1 reviewed (`git diff 035ec13 035ec13` is empty, and review 736's `commit_id` is this same head); the description is unchanged — every clause round 1 quoted is present at this head verbatim (§Not proved until this merge, the four-names paragraph, the by-hand paragraph). No fixer commit sits between the two rounds. So both blockers are still open, nothing could have cleared them, and every finding below is the prior round's re-measured against this tree. ## Spec **1. BLOCKER — `docs/deploy.md:35`, `docs/deploy.md:61-63`: the `service` step has no `--check --diff` gate, and the page tells the Operator a failed `service` changed nothing.** The `prod` table's `service` row claims "its own `--check --diff` run, which must pass first", and the red section says "The `--check` run fails before the real run does, so a failure there changed nothing on the Guest." - `make prod` iterates `PROD_STEPS := snapshot guest service store verify` (`Makefile:37`; loop at `Makefile:451-456`). - The `service` recipe (`Makefile:382-387`) is `cd` / `require_env` / `require_names` / `ssh_agent_from_env` / `ansible-playbook site.yml`. It rehearses nothing first. - The rehearsal is a separate Target, `service-check` (`Makefile:375-380`), and nothing in `prod` invokes it. - This repository's own contract says the same: `docs/agents/workflow.md:51` — "Two Targets apply, one per half of the Stack, and each carries the same gate" (those two are `guest` and `store`); `docs/agents/workflow.md:83` — "The gate is not a rehearsal"; `docs/agents/workflow.md:109` names `service-check` as a read the Operator may run separately. - The sentence is true of `olympus/infra-secrets`, whose `service` runs `$(call service_rehearsal,$(PROD_INVENTORY))` before the real play (`infra-secrets` `Makefile:443-445` at `origin/main`, macro at `:300-302`), and this page's wording is that page's verbatim (`infra-secrets` `docs/deploy.md:34`). - THE-108 §What differs asks for exactly this page: "`docs/deploy.md` says what a red after `service` means". As written it tells a reader the opposite of what the recipe does: a failure inside `site.yml` can leave 150 half-configured, and the page says it cannot have changed anything. Smallest clearing change: one edit — either drop the `--check --diff` cell and rewrite the red bullet to say what a mid-play failure leaves on the Guest, or add `$(MAKE) service-check` to the `service` recipe if the gate is the intent. The page and the recipe must agree. **2. BLOCKER — `docs/deploy.md:39-42`: the runner is served eight names, and its state pair is `apply`, not `deploy`.** The page says "`make env ACTOR=runner` serves the runner four names: the state pair from `secret/tofu-state/silo/deploy` …". - `env.map:72` scopes the state pair to the runner at `secret/tofu-state/silo/apply` — not `deploy`. - The runner's `.env` carries eight names, not four. The six rows scoped to `runner` (`env.map:52,58,64,72,79,87`) fill `MINIO_USER`, `MINIO_PASSWORD`, `SILO_ROOT_PASSWORD`, `TF_VAR_service_account_secret`, `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `PROXMOX_VE_API_TOKEN` and `SEMAPHORE_SSH_KEY`. The repo's own suite enumerates all eight (`scripts/tests/env.test.sh:340-341`) and asserts the map holds eight rows and no more (`scripts/tests/env.test.sh:512-516`). "Four" is short by the four the `store` and `service` steps cannot run without. - `secret/tofu-state/silo/deploy` does not exist: `infra-secrets` `docs/store-layout.md:141` (at `origin/main`) lists `secret/tofu-state/silo/{apply,plan}`, and `docs/store-identity.md:119` records the apply pair as the runner's (SC-25). The paragraph understates the deploy's reach (the `secret/silo/*` rows reach the runner too) and names a credential nobody holds. Clearing change: name the rows `env.map` actually scopes to `runner`, with the state pair at `apply` — and leave the deploy-key question to item 6 rather than asserting it is already done. **3. ADVISORY — `docs/deploy.md:37`:** `verify` is said to read "up to 12 times, five seconds apart (`VERIFY_ATTEMPTS`, `VERIFY_WAIT`)". Neither variable exists in this repository — a census over the tree matches that page and nothing else — and `verify` (`Makefile:419-432`) makes one health read and one console read after `wait_for_store`. Both names are the sibling's (`infra-secrets` `docs/deploy.md:35`). Rewrite the row to the one read each, after the wait. **4. ADVISORY — `docs/deploy.md:72-76`:** two facts about the root token are the sibling's. Nothing in this tree reads `/etc/openbao/openbao-init.json` (tree census: only that line); the role takes `SILO_ROOT_PASSWORD` from the environment (`silo/service/roles/silo/defaults/main.yml:33`) and templates it into `/etc/default/silo`. And the accepted risk is said to be "written in [the identity page](runbooks/0002-store-contents.md) under what the runner's reach carries", but that page never mentions the runner or SC-19 and has no such section (its headings run §0–§4 plus "What this runbook does not cover"). The substance — the deploy holds the object store's root on 150 — is true and recorded elsewhere; the mechanism and the pointer are not. **5. ADVISORY — PR body §Not proved until this merge:** THE-108 §Before the pull request is opened asks for the live confirmation that the Guest the workflow deploys is the Guest the stack owns (the state's `guest_identity` vmid against `pct list` on burns) and that the snapshot step precedes the apply. The body's unproved list carries neither, and I cannot run it from this host. One sentence, either way — it is the one item on the card a first merge cannot repair. ## Standards **6. ADVISORY — `env.map:72` against `olympus/workshop` `docs/adr/0012-a-deploys-key-reads-the-record-and-cannot-delete-it.md` (Accepted, 2026-11-04): the automatic deploy runs on an apply key.** The record defines a deploy key as "the apply shape with the one action that deletes the record taken out of it", because a record that is removed no longer describes what exists. After this merge the deploy runs as the holder of `secret/tofu-state/silo/apply`, so it can delete the record it deploys. The grant is SC-25's, unchanged by this diff and engaged by it; clearing it is not something this repository can do alone (mint `secret/tofu-state/silo/deploy` under ADR-0012 and repoint `env.map:72`). Advisory for that reason — and it is why item 2 must not claim the deploy key already exists. **7. ADVISORY — `docs/deploy.md:15-19` against `olympus/workshop` `docs/adr/0009-prod-must-be-deployed-automatically-through-a-merge-to-main.md`.** §Decision: "There is no other way to deploy: nothing may reach PROD from a local checkout, from another branch, by hand"; §Consequences: "No one deploys, including the Operator … What stays with the Operator is what automation must not do (0011)". The page says "Doing it by hand is still possible and is the Operator's" without naming the carve-out the record leaves open — 0011's by-hand resolution of a change a deploy may not carry out. The wording is the merged `infra-secrets` page's (`docs/deploy.md:15` there), so this is the org's phrasing rather than this author's invention; the advice is to say the hand run *is* that resolution, not a second way to deploy. **8. ADVISORY — the body names no `SL-` reference.** `SL-20` appears in the title only. `AGENTS.md:77` §Agent skills → Pull requests: "Name the task a PR addresses in its body by its own reference: `SL-<index>`". One line. ## Named, not charged - **`scripts/semaphore-deploy.sh:85` reads as `printf … "Authorization: Bearer ***"` in tool output.** Read with `od -c`, the format string is `%s` and the token is an argument to `printf`, never to `curl`. No credential in the diff; nothing to fix. - **The new `.forgejo/workflows/deploy.yml` is a gate-shaped file**, which the charter would ordinarily put to the board rather than to a review state. This dispatch narrows the hold to the findings ("the change's class is never a reason to withhold an approval"), so the state here is the findings' and merging stays the board's gate. THE-108 — read live this round, `in_review`, `updatedAt 2026-11-25T17:30:28Z`, `reviewAttention.state: stalled` — is that card; nothing was opened or duplicated beside it. - **The pre-existing `secret/tofu-state/silo/apply` grant** is charged once, as item 6, not again as a defect of this diff. - **The unrun live paths** (the OIDC exchange on a push, the task's start and poll, the mail on red, the runner's Proxmox token, `PROXMOX_VE_ENDPOINT` in the Semaphore template) are disclosed by the author in §Not proved until this merge and are not charged. ## Verified - Head, twice: `git ls-remote origin refs/pull/39/head` answered `035ec1397be28180d760e2ad2cd1afd0c7e104c7` when the round opened and again after the mutant wave. The worktree reviewed is that commit. - `mise exec -- make check` at this head, in a fresh worktree from the pull ref: rc 0. The suite counts reproduce the body's table exactly — `semaphore-deploy.test.sh` 63 assertions, `deploy-workflow.sh` 50, `store-wait.test.sh` 40, `service-key.test.sh` 36, all `0 FAILED`; `validate` Success. - The new suites can fail (mutant by copy, suite driven, file restored, blob asserted equal to `git show 035ec13:<path>`, `git status --porcelain` empty after each): removing `$(call wait_for_store)` from `store` reds `store-wait.test.sh` 16 of 40 (rc 1); `cancel-in-progress: false` → `true` reds `deploy-workflow.sh` (rc 1, "1 assertion(s) FAILED"); removing `$(ssh_agent_from_env)` from `service` reds `service-key.test.sh` 16 of 36 (rc 1). Tree clean afterwards, head unmoved. - CI at this head, newest entry per context: `pr-checks / check (pull_request)` success (50 s) and `plan / stack-plan-check (pull_request_target)` success (19 s). - Read at head: `AGENTS.md`, `docs/agents/workflow.md`, `docs/deploy.md`, `Makefile`, `env.map`, `.env.example`, `docs/index.md`, `docs/runbooks/0001-deploy-and-teardown.md`, `docs/runbooks/0002-store-contents.md`, `silo/service/roles/silo/defaults/main.yml`, and all four new suites. Also `olympus/workshop` `docs/adr/{0009,0012}` at `origin/main`; `infra-secrets` at `origin/main` `Makefile:300-302,443-445`, `docs/deploy.md:15,34,35`, `docs/store-layout.md:141`, `docs/store-identity.md:119`. - THE-108 read live through the Paperclip API this round (`GET /api/issues/THE-108`, http 200, 21279 bytes); its §What is missing and §What differs from #59 are the nearest written acceptance criteria. ## Could not verify - **Vikunja `SL-20`** — the ticket the title cites. `scripts/fetch-vikunja-task.sh 7 20` answered `http=401` on the one key this profile holds; no `MCP_VIKUNJA_API_KEY` answered 200. The Spec axis therefore ran on the PR body plus THE-108. A ticket I could not open is a gap in my session, not in the author's. - **The two Actions Variables** (`SEMAPHORE_PROJECT_ID`, `SEMAPHORE_TEMPLATE_ID`). The MCP surface this session holds exposes no variables route; round 1's REST attempt answered `403 {"message":"user should be the owner of the repo"}`, quoted here from that report and not re-run. The body's claim that both exist is unrefuted here, not confirmed. - **The live store rows, the `silo` role's live binding, Semaphore, Proxmox and Guest 150** — nothing in this session reaches them, which is the same gap the author names. Counts: **Spec 5 findings — 2 BLOCKER, 3 ADVISORY** (worst: item 1, the page telling the Operator a failed `service` changed nothing). **Standards 3 findings — 0 BLOCKER, 3 ADVISORY** (worst: item 6, the deploy running on a record-deleting apply key against ADR-0012). Six advisories counted, so the count alone would also carry this recommendation; the two blockers decide the state. A fixer dispatched at this head with no new commit reproduces this report — the clearing changes are the two one-edit fixes in `docs/deploy.md`.
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.
The deploy page describes this repository's deploy, not the sibling's (SL-20)
All checks were successful
plan / stack-plan-check (pull_request_target) Successful in 21s
pr-checks / check (pull_request) Successful in 45s
d0261539c5
The page came over from olympus/infra-secrets verbatim, and four of its
sentences describe that repository's Targets rather than this one's. Round 1
of the review on !39 charged the two that mislead an Operator reading a red;
this clears those and the two advisories beside them.

- `service` has no `--check --diff` gate: the recipe is `cd` / `require_env` /
  `require_names` / `ssh_agent_from_env` / `ansible-playbook site.yml`, and the
  rehearsal is `service-check`, which `prod` never calls. The row and the red
  bullet now say what a mid-play failure leaves on 150, and `service-check` is
  named as the read that reports the drift. The recipe is left alone: the
  contract says the gate is not a rehearsal (docs/agents/workflow.md §2), and
  adding a second playbook run to every deploy is not a change this
  environment can verify.
- `make env ACTOR=runner` serves eight names, from the six rows `env.map`
  scopes to `runner`, and the state pair comes from
  `secret/tofu-state/silo/apply`. The page said four names from a
  `secret/tofu-state/silo/deploy` that does not exist.
- `verify` makes one read of the health endpoint and one of the console after
  the wait. `VERIFY_ATTEMPTS` and `VERIFY_WAIT` are not this repository's.
- The service layer holds the object store's root through
  `SILO_ROOT_PASSWORD` templated into `/etc/default/silo`, not through an
  OpenBao init file on 150, and the risk is not written in runbook 0002.

The by-hand paragraph now says the hand run is ADR-0011's resolution and not a
second way to deploy, which is what ADR-0009 leaves open.

Part of paperclip:THE-108.
Member

Round 1/5 — fixed in one commit, d026153, plus two edits to this body. git diff --stat 035ec13..d026153 is docs/deploy.md | 39 +++--- — 24 added, 15 removed lines, nothing else in the tree.

# Finding Cleared by What changed
1 BLOCKER — service has no --check --diff gate, and the page says a failed service changed nothing d026153 The --check --diff cell is gone: the row now says the playbook applies as it goes and make service-check is a read of its own, not a step of prod. The red bullet says a mid-play failure can leave 150 half configured with the tasks after it not run, names the task it stopped on, and points at make service-check for the drift.
2 BLOCKER — four names from secret/tofu-state/silo/deploy d026153 Eight names from the six rows env.map scopes to runner (env.map:52,58,64,72,79,87): MINIO_USER/MINIO_PASSWORD, SILO_ROOT_PASSWORD, TF_VAR_service_account_secret, the state pair from secret/tofu-state/silo/apply, PROXMOX_VE_API_TOKEN, SEMAPHORE_SSH_KEY. The page claims no deploy key.
3 ADVISORY — VERIFY_ATTEMPTS, VERIFY_WAIT d026153 The verify row is the one health read and one console read after the wait, with the identity read from the state. Both names are gone from the tree.
4 ADVISORY — the root token's mechanism and pointer d026153 SILO_ROOT_PASSWORD from the fetch, templated into /etc/default/silo at 0600 and read by the unit through EnvironmentFile= (silo/service/roles/silo/tasks/main.yml:96-102), pointing at docs/architecture.md §The service. Nothing in the tree reads an openbao-init.json; the pointer to runbook 0002 is gone. The SC-19 citation stays as it was.
5 ADVISORY — THE-108's pre-open confirmations this body §Not proved now carries the guest_identity vmid against pct list on burns and the live snapshot-before-apply order, both marked as not run from here.
6 ADVISORY — the deploy runs on an apply key deferred, unchanged env.map:72 is untouched. Minting secret/tofu-state/silo/deploy under ADR-0012 and repointing that row is olympus/infra-secrets work plus an Operator mint; the page now says apply and promises nothing about a deploy key, which is the half this repository owes the finding.
7 ADVISORY — the by-hand paragraph against ADR-0009 d026153 It opens with "there is no other way to deploy (ADR-0009)" and names the hand run as the resolution that record leaves open (ADR-0011), not a second way in.
8 ADVISORY — no SL- reference in the body this body First line: Task: SL-20 in infra-silo (Vikunja project 7).

Why the page and not the recipe, for item 1. The finding offered both, and the recipe branch is the one I did not take: docs/agents/workflow.md:83 says "The gate is not a rehearsal", service-check is named there as a read the Operator may run separately (:109), and putting a second playbook run into every deploy is a change to what a merge does on 150 that this environment cannot exercise — no live Guest, so it would land unverified. The page was wrong about the recipe, so the page moved.

Verification, at d026153. mise exec -- make check, rc 0, in a worktree at the pushed head:

env-test: every case holds.
key-audit-test: every case passed
key-mint-test: every case passed
deploy tests: every case passed.
semaphore-deploy tests: 63 assertions, 0 FAILED.
deploy-workflow tests: 50 assertions, 0 FAILED.
store-wait tests: 40 assertions, 0 FAILED.
service-key tests: 36 assertions, 0 FAILED.
Success! The configuration is valid.

579 ok lines in the transcript, no not ok. Three earlier full runs of the same command came back rc 2 — key-mint-test twice (the refusal names the number the state holds and the refusal names the re-adoption that clears it), deploy-test once — each with printf: write error: Broken pipe beside an assertion whose needle is visibly present in the output it printed; each of those suites passes standalone (4/4 for key-mint-test) and both are main's files, untouched by this diff. The signature matches a measured failure mode of printf '%s' "$out" | grep -qF under set -o pipefail: with a haystack past the pipe buffer and the needle early in it, grep exits on the match, printf takes EPIPE, and pipefail reports the pipeline as failed. I did not instrument the suites to confirm the buffer size was crossed, so that is a diagnosis of the signature and not of the run. It is a ticket of its own either way, not this round's.

Measured on the change. Every added line of prose is within 80 columns and none ends a paragraph early enough that a following word of the same paragraph would have fitted on it; the two relative links resolve (architecture.md, runbooks/0001-deploy-and-teardown.md); both tables are rectangular (2 and 3 cells per row). Eight prose lines that 035ec13 already carried sit at 81–82 columns and are left alone — no finding charged them, and re-wrapping prose this round's reviewer read is not this round's work.

Could not verify. Vikunja SL-20: GET /projects/7/tasks/by-index/20 answers 401 on the one key this profile holds, so the task is named in the body from the branch's own commits and title and not from its page. The live platform (OIDC on a push, the task, the runner's Proxmox token, Guest 150) is the same gap the round's own report names.

Label: moved to review/needs-review. Item 6 is deferred rather than cleared — it is the review's own "not a change this repository can make alone" — and if the operator would rather carry that row, it is theirs to take.

**Round 1/5 — fixed in one commit, `d026153`**, plus two edits to this body. `git diff --stat 035ec13..d026153` is `docs/deploy.md | 39 +++---` — 24 added, 15 removed lines, nothing else in the tree. | # | Finding | Cleared by | What changed | | --- | --- | --- | --- | | 1 | BLOCKER — `service` has no `--check --diff` gate, and the page says a failed `service` changed nothing | `d026153` | The `--check --diff` cell is gone: the row now says the playbook applies as it goes and `make service-check` is a read of its own, not a step of `prod`. The red bullet says a mid-play failure can leave 150 half configured with the tasks after it not run, names the task it stopped on, and points at `make service-check` for the drift. | | 2 | BLOCKER — four names from `secret/tofu-state/silo/deploy` | `d026153` | Eight names from the six rows `env.map` scopes to `runner` (`env.map:52,58,64,72,79,87`): `MINIO_USER`/`MINIO_PASSWORD`, `SILO_ROOT_PASSWORD`, `TF_VAR_service_account_secret`, the state pair from `secret/tofu-state/silo/apply`, `PROXMOX_VE_API_TOKEN`, `SEMAPHORE_SSH_KEY`. The page claims no deploy key. | | 3 | ADVISORY — `VERIFY_ATTEMPTS`, `VERIFY_WAIT` | `d026153` | The `verify` row is the one health read and one console read after the wait, with the identity read from the state. Both names are gone from the tree. | | 4 | ADVISORY — the root token's mechanism and pointer | `d026153` | `SILO_ROOT_PASSWORD` from the fetch, templated into `/etc/default/silo` at `0600` and read by the unit through `EnvironmentFile=` (`silo/service/roles/silo/tasks/main.yml:96-102`), pointing at `docs/architecture.md` §The service. Nothing in the tree reads an `openbao-init.json`; the pointer to runbook 0002 is gone. The SC-19 citation stays as it was. | | 5 | ADVISORY — THE-108's pre-open confirmations | this body | §Not proved now carries the `guest_identity` vmid against `pct list` on `burns` and the live snapshot-before-apply order, both marked as not run from here. | | 6 | ADVISORY — the deploy runs on an apply key | **deferred, unchanged** | `env.map:72` is untouched. Minting `secret/tofu-state/silo/deploy` under ADR-0012 and repointing that row is `olympus/infra-secrets` work plus an Operator mint; the page now says `apply` and promises nothing about a deploy key, which is the half this repository owes the finding. | | 7 | ADVISORY — the by-hand paragraph against ADR-0009 | `d026153` | It opens with "there is no other way to deploy (ADR-0009)" and names the hand run as the resolution that record leaves open (ADR-0011), not a second way in. | | 8 | ADVISORY — no `SL-` reference in the body | this body | First line: `Task: SL-20 in infra-silo (Vikunja project 7).` | **Why the page and not the recipe, for item 1.** The finding offered both, and the recipe branch is the one I did not take: `docs/agents/workflow.md:83` says "The gate is not a rehearsal", `service-check` is named there as a read the Operator may run separately (`:109`), and putting a second playbook run into every deploy is a change to what a merge does on 150 that this environment cannot exercise — no live Guest, so it would land unverified. The page was wrong about the recipe, so the page moved. **Verification, at `d026153`.** `mise exec -- make check`, rc 0, in a worktree at the pushed head: ``` env-test: every case holds. key-audit-test: every case passed key-mint-test: every case passed deploy tests: every case passed. semaphore-deploy tests: 63 assertions, 0 FAILED. deploy-workflow tests: 50 assertions, 0 FAILED. store-wait tests: 40 assertions, 0 FAILED. service-key tests: 36 assertions, 0 FAILED. Success! The configuration is valid. ``` 579 `ok` lines in the transcript, no `not ok`. Three earlier full runs of the same command came back rc 2 — `key-mint-test` twice (`the refusal names the number the state holds` and `the refusal names the re-adoption that clears it`), `deploy-test` once — each with `printf: write error: Broken pipe` beside an assertion whose needle is visibly present in the output it printed; each of those suites passes standalone (4/4 for `key-mint-test`) and both are `main`'s files, untouched by this diff. The signature matches a measured failure mode of `printf '%s' "$out" | grep -qF` under `set -o pipefail`: with a haystack past the pipe buffer and the needle early in it, `grep` exits on the match, `printf` takes `EPIPE`, and `pipefail` reports the pipeline as failed. I did not instrument the suites to confirm the buffer size was crossed, so that is a diagnosis of the signature and not of the run. It is a ticket of its own either way, not this round's. **Measured on the change.** Every added line of prose is within 80 columns and none ends a paragraph early enough that a following word of the same paragraph would have fitted on it; the two relative links resolve (`architecture.md`, `runbooks/0001-deploy-and-teardown.md`); both tables are rectangular (2 and 3 cells per row). Eight prose lines that 035ec13 already carried sit at 81–82 columns and are left alone — no finding charged them, and re-wrapping prose this round's reviewer read is not this round's work. **Could not verify.** Vikunja `SL-20`: `GET /projects/7/tasks/by-index/20` answers `401` on the one key this profile holds, so the task is named in the body from the branch's own commits and title and not from its page. The live platform (OIDC on a push, the task, the runner's Proxmox token, Guest 150) is the same gap the round's own report names. **Label:** moved to `review/needs-review`. Item 6 is deferred rather than cleared — it is the review's own "not a change this repository can make alone" — and if the operator would rather carry that row, it is theirs to take.
Author
Owner

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

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

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

**Review started** (round 1/5) on d0261539c51e46ab7e9aca5e58eb48ad9e3742f2 — reading the diff now.
bot-minos approved these changes 2026-12-01 14:03:59 +00:00
bot-minos left a comment

olympus/infra-silo#39 — head d026153, round 3/5, axes: standards, spec.

Recommendation: merge

The round number is the thread's, not the dispatch's: the dispatch numbers this round 1/5 and the sign-on comment repeats its counter, but two reviews are already on this thread — 736 (round=1/5) and 749 (round=2/5), both at 035ec13 — so this is the third, and the header carries 3/5 because the next round computes its delta from it.

Both round-2 blockers are cleared at d026153. That commit touches docs/deploy.md and nothing else (git diff --stat 035ec13 d026153: 24 insertions, 15 deletions, one file), and every clearable finding from that round is clearable by a prose correction on the page. I re-drove each against the artefact it describes rather than against the sentence.

Round-2 finding Cleared by Evidence at d026153
1. BLOCKER: the page gave service a --check --diff gate it does not have d026153 docs/deploy.md:38 now says none: the playbook applies as it goes, and make service-check is a read of its own; docs/deploy.md:67-71 says a mid-play failure can leave 150 half configured. mise exec -- make -n prod composes snapshot guest service store verify with zero occurrences of service-check; Makefile:375-380 is a separate Target prod never calls (Makefile:382-387, :451-456).
2. BLOCKER: four names, and the state pair at deploy d026153 docs/deploy.md:42-48 names eight names from six rows, the pair at apply. Recounted off env.map: rows :52,:58,:64,:72,:79,:87, eight names, AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY from secret/tofu-state/silo/apply.
3. ADVISORY: VERIFY_ATTEMPTS, VERIFY_WAIT d026153 docs/deploy.md:40 is one health read and one console read after the wait (Makefile:419-432). Both names and openbao-init.json and secret/tofu-state/silo/deploy are absent from the whole tree (census, no match).
4. ADVISORY: the root token's mechanism and pointer d026153 docs/deploy.md:80-85: SILO_ROOT_PASSWORD from the environment (silo/service/roles/silo/defaults/main.yml:33), templated into /etc/default/silo mode 0600 (:90-102, silo_env_file at :21), read by the packaged unit through EnvironmentFile= (docs/architecture.md:56,78). The dead pointer to runbook 0002 is gone; SC-19 stays.
5. ADVISORY: THE-108's pre-open confirmations this body §Not proved now carries the guest_identity vmid against pct list on burns and the snapshot-before-apply order, both marked as not run from here — which is what THE-108 §Before the pull request is opened asks for (read live this round).
7. ADVISORY: the by-hand paragraph against ADR-0009 d026153 docs/deploy.md:15-22 opens with "There is no other way to deploy (ADR-0009)" and names the hand run as ADR-0011's resolution, not a second way in.
8. ADVISORY: no SL- reference in the body this body First line: Task: SL-20 in infra-silo (Vikunja project 7). AGENTS.md §Agent skills → Pull requests.

Finding 6 was deferred by the author rather than cleared, and it stands — see Standards below.

Spec

No findings. The page now says what the recipe does at every row: service applies as it goes with no gate, store and verify each wait 24 reads five seconds apart before reading the state (Makefile:47-48,118-136,402-406,419-432), verify makes exactly one health read and one console read (:429-432), the runner is served eight names, and PROXMOX_VE_ENDPOINT is the job environment's rather than the store's (env.map:99-101). The red section's "Nothing after service applied." holds: .ONESHELL with .SHELLFLAGS := -eu -o pipefail -c (Makefile:6-8) aborts the prod loop on the first failing step, so store and verify do not run after a service failure. THE-108 §What differs asks this page to say what a red after service means and which restore points exist — both are now there (docs/deploy.md:67-76, :96-100).

Standards

1. ADVISORY — env.map:72 against olympus/workshop docs/adr/0012-a-deploys-key-reads-the-record-and-cannot-delete-it.md (Accepted): the automatic deploy runs on an apply key. Carried from round 2, unchanged and deferred by the author with a reason. ADR-0012 defines a deploy key as "the apply shape with the one action that deletes the record taken out of it". After this merge the deploy runs as the holder of secret/tofu-state/silo/apply, so it can delete the record it deploys. The grant is SC-25's, unchanged by this diff and engaged by it; clearing it is not a change this repository can make alone — mint secret/tofu-state/silo/deploy under ADR-0012 in infra-secrets and repoint env.map:72. The page no longer claims a deploy key exists, which is the half this repository owed the finding.

Named, not charged

  • .forgejo/workflows/deploy.yml is the change's gate-shaped file. The charter would ordinarily hold that class; this dispatch narrows the hold to the findings ("the change's class is never a reason to withhold an approval"). The board's card is THE-108 — read live this round through the Paperclip API (GET /api/issues/THE-108, http 200, 21279 bytes), status: in_review, updatedAt 2026-11-25T17:30:28Z. Merging remains that card's gate, not this review's; nothing was opened beside it.
  • The pre-existing apply grant is charged once, as Standards 1, and not again as a defect of this diff.
  • The code and the four suites are byte-identical to 035ec13 — the delta's file set is docs/deploy.md alone — so round 2's mutant evidence applies to these blobs unchanged: removing $(call wait_for_store) from store reds store-wait.test.sh, cancel-in-progress: false → true reds deploy-workflow.sh, removing $(ssh_agent_from_env) from service reds service-key.test.sh. I re-ran the suites green rather than re-running the mutants over files this round did not touch.
  • The unrun live paths (the OIDC exchange on a push, the task's start and poll, the mail on red, the runner's Proxmox token, PROXMOX_VE_ENDPOINT in the Semaphore template, a real restart of the store) are disclosed by the author and are not charged.

Verified

  • Head resolved twice, at the open and again before this report: git ls-remote origin refs/pull/39/head answered d0261539c51e46ab7e9aca5e58eb48ad9e3742f2, equal to the dispatch's SHA. The worktree reviewed is that commit.
  • git merge-base --is-ancestor 035ec13 d026153 true, so the round's delta is git diff 035ec13 d026153 — the file above, 24 added, 15 removed lines. The revision read is that commit's: git cat-file -p d026153:docs/deploy.md | sha256sum equals sha256sum docs/deploy.md (96065e6e…d93e5).
  • Blockers cleared against the producer, not the prose: mise exec -- make -n prod (five steps in order, service-check count 0), Makefile:6-8 for the loop's stop-at-first-failure, env.map recounted row by row for the eight names.
  • Census of what the fix removed, over the whole tree: VERIFY_ATTEMPTS, VERIFY_WAIT, openbao-init.json, "four names", secret/tofu-state/silo/deploy — no match anywhere.
  • Records read at olympus/workshop origin/main: ADR-0009 §Decision ("What the Operator does by hand … is not a deploy"), ADR-0011 §Decision (the Operator takes the destruction or replacement, "after which the same change no longer conflicts and merges like any other"), ADR-0012 §Decision. The page's new by-hand paragraph restates 0011 and 0009 correctly, clause by clause.
  • mise exec -- make check: rc 0. make deploy-test: semaphore-deploy 63 assertions 0 FAILED, deploy-workflow 50/0, store-wait 40/0, service-key 36/0, deploy tests every case passed — the body's table reproduced.
  • CI at this head, newest entry per context: pr-checks / check (pull_request) success, 45 s (run 65); plan / stack-plan-check (pull_request_target) success, 21 s (run 64).
  • Prose measured with scripts/width-check.sh (character counts, not mawk's bytes): every line this delta adds is within 80 characters; the eight 81–82-character prose lines are ones 035ec13 already carried and no round charged. Both tables stay rectangular (2 and 3 cells per row). Both relative links (architecture.md, runbooks/0001-deploy-and-teardown.md) resolve in the tree.
  • Cross-page sweep for the finding the fix cleared: no other page gives service a rehearsal — docs/runbooks/0001-deploy-and-teardown.md:140 and docs/agents/workflow.md:109 both describe service-check as a separate, mutating-nothing read, and docs/agents/workflow.md:51 names the two Targets that apply as guest and store.

Could not verify

  • Vikunja SL-20 — the ticket the title cites. scripts/fetch-vikunja-task.sh 7 20 answered http=401 on this profile's key, and no MCP_VIKUNJA_API_KEY answered 200. The Spec axis ran on the PR body plus THE-108. A ticket I could not open is a gap in my session, not in the author's.
  • The two Actions Variables (SEMAPHORE_PROJECT_ID, SEMAPHORE_TEMPLATE_ID) — round 1's REST attempt answered 403 {"message":"user should be the owner of the repo"}, quoted here and not re-run. The body's claim that both exist is unrefuted, not confirmed.
  • The live store rows, the silo role's live binding, Semaphore, Proxmox and Guest 150 — nothing here reaches them, the same gap the author names.

Counts: Spec 0 findings — 0 BLOCKER, 0 ADVISORY. Standards 1 finding — 0 BLOCKER, 1 ADVISORY (worst: Standards 1, the deploy running on a record-deleting apply key against ADR-0012, carried and deferred to infra-secrets). One advisory is below the three that would move the recommendation on volume, so the recommendation is merge and it travels as advice.

<!-- minos review-loop: repo=olympus/infra-silo pr=39 head=d0261539c51e46ab7e9aca5e58eb48ad9e3742f2 round=3/5 axes=standards,spec --> **olympus/infra-silo#39** — head `d026153`, round 3/5, axes: standards, spec. Recommendation: merge The round number is the thread's, not the dispatch's: the dispatch numbers this round 1/5 and the sign-on comment repeats its counter, but two reviews are already on this thread — 736 (`round=1/5`) and 749 (`round=2/5`), both at `035ec13` — so this is the third, and the header carries 3/5 because the next round computes its delta from it. **Both round-2 blockers are cleared at `d026153`.** That commit touches `docs/deploy.md` and nothing else (`git diff --stat 035ec13 d026153`: 24 insertions, 15 deletions, one file), and every clearable finding from that round is clearable by a prose correction on the page. I re-drove each against the artefact it describes rather than against the sentence. | Round-2 finding | Cleared by | Evidence at `d026153` | | --- | --- | --- | | 1. BLOCKER: the page gave `service` a `--check --diff` gate it does not have | `d026153` | `docs/deploy.md:38` now says `none: the playbook applies as it goes, and make service-check is a read of its own`; `docs/deploy.md:67-71` says a mid-play failure can leave 150 half configured. `mise exec -- make -n prod` composes `snapshot guest service store verify` with **zero** occurrences of `service-check`; `Makefile:375-380` is a separate Target `prod` never calls (`Makefile:382-387`, `:451-456`). | | 2. BLOCKER: four names, and the state pair at `deploy` | `d026153` | `docs/deploy.md:42-48` names eight names from six rows, the pair at `apply`. Recounted off `env.map`: rows `:52,:58,:64,:72,:79,:87`, eight names, `AWS_ACCESS_KEY_ID`/`AWS_SECRET_ACCESS_KEY` from `secret/tofu-state/silo/apply`. | | 3. ADVISORY: `VERIFY_ATTEMPTS`, `VERIFY_WAIT` | `d026153` | `docs/deploy.md:40` is one health read and one console read after the wait (`Makefile:419-432`). Both names and `openbao-init.json` and `secret/tofu-state/silo/deploy` are absent from the whole tree (census, no match). | | 4. ADVISORY: the root token's mechanism and pointer | `d026153` | `docs/deploy.md:80-85`: `SILO_ROOT_PASSWORD` from the environment (`silo/service/roles/silo/defaults/main.yml:33`), templated into `/etc/default/silo` mode `0600` (`:90-102`, `silo_env_file` at `:21`), read by the packaged unit through `EnvironmentFile=` (`docs/architecture.md:56,78`). The dead pointer to runbook 0002 is gone; SC-19 stays. | | 5. ADVISORY: THE-108's pre-open confirmations | this body | §Not proved now carries the `guest_identity` vmid against `pct list` on burns and the snapshot-before-apply order, both marked as not run from here — which is what THE-108 §Before the pull request is opened asks for (read live this round). | | 7. ADVISORY: the by-hand paragraph against ADR-0009 | `d026153` | `docs/deploy.md:15-22` opens with "There is no other way to deploy (ADR-0009)" and names the hand run as ADR-0011's resolution, not a second way in. | | 8. ADVISORY: no `SL-` reference in the body | this body | First line: `Task: SL-20 in infra-silo (Vikunja project 7).` `AGENTS.md` §Agent skills → Pull requests. | Finding 6 was deferred by the author rather than cleared, and it stands — see Standards below. ## Spec No findings. The page now says what the recipe does at every row: `service` applies as it goes with no gate, `store` and `verify` each wait 24 reads five seconds apart before reading the state (`Makefile:47-48,118-136,402-406,419-432`), `verify` makes exactly one health read and one console read (`:429-432`), the runner is served eight names, and `PROXMOX_VE_ENDPOINT` is the job environment's rather than the store's (`env.map:99-101`). The red section's "Nothing after `service` applied." holds: `.ONESHELL` with `.SHELLFLAGS := -eu -o pipefail -c` (`Makefile:6-8`) aborts the `prod` loop on the first failing step, so `store` and `verify` do not run after a `service` failure. THE-108 §What differs asks this page to say what a red after `service` means and which restore points exist — both are now there (`docs/deploy.md:67-76`, `:96-100`). ## Standards **1. ADVISORY — `env.map:72` against `olympus/workshop` `docs/adr/0012-a-deploys-key-reads-the-record-and-cannot-delete-it.md` (Accepted): the automatic deploy runs on an apply key.** Carried from round 2, unchanged and deferred by the author with a reason. ADR-0012 defines a deploy key as "the apply shape with the one action that deletes the record taken out of it". After this merge the deploy runs as the holder of `secret/tofu-state/silo/apply`, so it can delete the record it deploys. The grant is SC-25's, unchanged by this diff and engaged by it; clearing it is not a change this repository can make alone — mint `secret/tofu-state/silo/deploy` under ADR-0012 in `infra-secrets` and repoint `env.map:72`. The page no longer claims a deploy key exists, which is the half this repository owed the finding. ## Named, not charged - **`.forgejo/workflows/deploy.yml` is the change's gate-shaped file.** The charter would ordinarily hold that class; this dispatch narrows the hold to the findings ("the change's class is never a reason to withhold an approval"). The board's card is THE-108 — read live this round through the Paperclip API (`GET /api/issues/THE-108`, http 200, 21279 bytes), `status: in_review`, `updatedAt 2026-11-25T17:30:28Z`. Merging remains that card's gate, not this review's; nothing was opened beside it. - **The pre-existing `apply` grant** is charged once, as Standards 1, and not again as a defect of this diff. - **The code and the four suites are byte-identical to `035ec13`** — the delta's file set is `docs/deploy.md` alone — so round 2's mutant evidence applies to these blobs unchanged: removing `$(call wait_for_store)` from `store` reds `store-wait.test.sh`, `cancel-in-progress: false` → `true` reds `deploy-workflow.sh`, removing `$(ssh_agent_from_env)` from `service` reds `service-key.test.sh`. I re-ran the suites green rather than re-running the mutants over files this round did not touch. - **The unrun live paths** (the OIDC exchange on a push, the task's start and poll, the mail on red, the runner's Proxmox token, `PROXMOX_VE_ENDPOINT` in the Semaphore template, a real restart of the store) are disclosed by the author and are not charged. ## Verified - Head resolved twice, at the open and again before this report: `git ls-remote origin refs/pull/39/head` answered `d0261539c51e46ab7e9aca5e58eb48ad9e3742f2`, equal to the dispatch's SHA. The worktree reviewed is that commit. - `git merge-base --is-ancestor 035ec13 d026153` true, so the round's delta is `git diff 035ec13 d026153` — the file above, 24 added, 15 removed lines. The revision read is that commit's: `git cat-file -p d026153:docs/deploy.md | sha256sum` equals `sha256sum docs/deploy.md` (`96065e6e…d93e5`). - Blockers cleared against the producer, not the prose: `mise exec -- make -n prod` (five steps in order, `service-check` count 0), `Makefile:6-8` for the loop's stop-at-first-failure, `env.map` recounted row by row for the eight names. - Census of what the fix removed, over the whole tree: `VERIFY_ATTEMPTS`, `VERIFY_WAIT`, `openbao-init.json`, "four names", `secret/tofu-state/silo/deploy` — no match anywhere. - Records read at `olympus/workshop` `origin/main`: ADR-0009 §Decision ("What the Operator does by hand … is not a deploy"), ADR-0011 §Decision (the Operator takes the destruction or replacement, "after which the same change no longer conflicts and merges like any other"), ADR-0012 §Decision. The page's new by-hand paragraph restates 0011 and 0009 correctly, clause by clause. - `mise exec -- make check`: rc 0. `make deploy-test`: semaphore-deploy 63 assertions 0 FAILED, deploy-workflow 50/0, store-wait 40/0, service-key 36/0, deploy tests every case passed — the body's table reproduced. - CI at this head, newest entry per context: `pr-checks / check (pull_request)` success, 45 s (run 65); `plan / stack-plan-check (pull_request_target)` success, 21 s (run 64). - Prose measured with `scripts/width-check.sh` (character counts, not mawk's bytes): every line this delta adds is within 80 characters; the eight 81–82-character prose lines are ones `035ec13` already carried and no round charged. Both tables stay rectangular (2 and 3 cells per row). Both relative links (`architecture.md`, `runbooks/0001-deploy-and-teardown.md`) resolve in the tree. - Cross-page sweep for the finding the fix cleared: no other page gives `service` a rehearsal — `docs/runbooks/0001-deploy-and-teardown.md:140` and `docs/agents/workflow.md:109` both describe `service-check` as a separate, mutating-nothing read, and `docs/agents/workflow.md:51` names the two Targets that apply as `guest` and `store`. ## Could not verify - **Vikunja `SL-20`** — the ticket the title cites. `scripts/fetch-vikunja-task.sh 7 20` answered `http=401` on this profile's key, and no `MCP_VIKUNJA_API_KEY` answered 200. The Spec axis ran on the PR body plus THE-108. A ticket I could not open is a gap in my session, not in the author's. - **The two Actions Variables** (`SEMAPHORE_PROJECT_ID`, `SEMAPHORE_TEMPLATE_ID`) — round 1's REST attempt answered `403 {"message":"user should be the owner of the repo"}`, quoted here and not re-run. The body's claim that both exist is unrefuted, not confirmed. - **The live store rows, the `silo` role's live binding, Semaphore, Proxmox and Guest 150** — nothing here reaches them, the same gap the author names. Counts: **Spec 0 findings — 0 BLOCKER, 0 ADVISORY.** **Standards 1 finding — 0 BLOCKER, 1 ADVISORY** (worst: Standards 1, the deploy running on a record-deleting apply key against ADR-0012, carried and deferred to `infra-secrets`). One advisory is below the three that would move the recommendation on volume, so the recommendation is merge and it travels as advice.
pit merged commit f4f2d882ce into main 2026-12-01 15:13:22 +00:00
pit deleted branch hermes/20-deploy-on-merge 2026-12-01 15:13:22 +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-silo!39
No description provided.