make prod runs the runner's layers, and the service before the Edge (FO-61) #101

Merged
pit merged 6 commits from hermes/FO-61-prod-runs-the-runner-and-service into main 2026-11-12 07:56:21 +00:00
Owner

Implements FO-61 — child of CP-39; on the Paperclip side this is THE-14.

Stacked on #100 (FO-60). FO-61 is blocked by FO-60, so this branch is cut from #100's head (8d47655), not from main. Merging #100 first leaves one commit here; the rest of #100's diff is already on main by then.

What changed

  • PROD_STEPS := snapshot guest identity-check runner-guest runner-service service edge verify. The runner's Guest (146) and its service layer join the deploy, and the forge's service moves ahead of its Edge.
  • service stays behind identity-check for the reason the whole composition is ordered: the check compares the literals the layers read against the owner the apply recorded. It moves ahead of edge because that is the order CP-39 fixes for every repository's deploy — guest, then service, then edge, restated for this one in FO-61 — and not because of a mechanism in this repository: the Edge's two NPM accounts are created in the NPM UI and fetched into .env, and no Target here creates them. The reasoning, and the one coupling that runs counter to it, are in the runbook's make prod section.
  • The PROD_STEPS comment, the prod help line, the README, the runbook's step table and order narrative follow. The runbook gains a section for the runner's Guest and one for its service layer, and §4 is now the service and §5 the Edge, so its sections read in the order a deploy takes them (two in-document links follow).
  • ADR 0009 is amended in part: it says make prod gains neither of the runner's steps, and that rested on a premise — that this repository's deploy would run as a job on its own runner. It didn't: the deploy is Semaphore's, on 145, recording on 143, so 146 is not one of this deployer's machines and workshop ADR 0010 leaves it inside this deploy. The record's decision is unchanged; only that consequence is spent. This is the one judgement call in the diff — say the word and I drop the ADR note and keep the reasoning in the Makefile comment and the runbook only.

Acceptance criteria

mise exec -- make -n prod prints that order. First line of the dry run:

/usr/bin/make -S snapshot guest identity-check runner-guest runner-service service edge verify

The service layer runs before the Edge. From the same dry run, in order: the runner's Guest (tofu plan -out=plan.out), the runner's service (ansible-playbook -i inventories/prod/hosts --check --diff site.yml, then the real run), the forge's service (the same pair against the forge's inventory), then the Edge (tofu plan -out=plan.out -var-file=forgejo.tfvars).

The first deploy that runs it changes only what the merged commit changed. Not verifiable before a deploy, and this PR does not claim it. What it can say: the eight steps are the same Targets that were already run by hand in this order for the one live runner move, and step 1 snapshots both Guests before any of them.

mise exec -- make check exits 0: env-check, snapshot-test, plan-workflow-test, fmt-check and docs-check — 55 relative links and 24 fragment links resolve, the ADR index and the section index agree, and every Stack still formats and parses.

Nothing is applied: make -n prod is a dry run, and no Target that mutates PROD was run here.

Implements [FO-61](https://vikunja.thepit.space/tasks/317) — child of [CP-39](https://vikunja.thepit.space/tasks/263); on the Paperclip side this is [THE-14](https://paperclip.thepit.space/THE/issues/THE-14). **Stacked on #100 (FO-60).** FO-61 is blocked by FO-60, so this branch is cut from #100's head (`8d47655`), not from `main`. Merging #100 first leaves one commit here; the rest of #100's diff is already on `main` by then. ## What changed - `PROD_STEPS := snapshot guest identity-check runner-guest runner-service service edge verify`. The runner's Guest (146) and its service layer join the deploy, and the forge's service moves ahead of its Edge. - `service` stays behind `identity-check` for the reason the whole composition is ordered: the check compares the literals the layers read against the owner the apply recorded. It moves ahead of `edge` because that is the order CP-39 fixes for every repository's deploy — `guest`, then `service`, then `edge`, restated for this one in FO-61 — and not because of a mechanism in this repository: the Edge's two NPM accounts are created in the NPM UI and fetched into `.env`, and no Target here creates them. The reasoning, and the one coupling that runs counter to it, are in the runbook's `make prod` section. - The `PROD_STEPS` comment, the `prod` help line, the README, the runbook's step table and order narrative follow. The runbook gains a section for the runner's Guest and one for its service layer, and **§4 is now the service and §5 the Edge**, so its sections read in the order a deploy takes them (two in-document links follow). - [ADR 0009](https://forgejo.thepit.space/olympus/infra-forge/src/branch/main/docs/adr/0009-the-actions-runner-on-a-guest-of-its-own.md) is **amended in part**: it says `make prod` gains neither of the runner's steps, and that rested on a premise — that this repository's deploy would run as a job on its own runner. It didn't: the deploy is Semaphore's, on 145, recording on 143, so 146 is not one of *this* deployer's machines and workshop ADR 0010 leaves it inside this deploy. The record's decision is unchanged; only that consequence is spent. **This is the one judgement call in the diff** — say the word and I drop the ADR note and keep the reasoning in the `Makefile` comment and the runbook only. ## Acceptance criteria **`mise exec -- make -n prod` prints that order.** First line of the dry run: ``` /usr/bin/make -S snapshot guest identity-check runner-guest runner-service service edge verify ``` **The service layer runs before the Edge.** From the same dry run, in order: the runner's Guest (`tofu plan -out=plan.out`), the runner's service (`ansible-playbook -i inventories/prod/hosts --check --diff site.yml`, then the real run), the forge's service (the same pair against the forge's inventory), then the Edge (`tofu plan -out=plan.out -var-file=forgejo.tfvars`). **The first deploy that runs it changes only what the merged commit changed.** Not verifiable before a deploy, and this PR does not claim it. What it can say: the eight steps are the same Targets that were already run by hand in this order for the one live runner move, and step 1 snapshots both Guests before any of them. `mise exec -- make check` exits 0: `env-check`, `snapshot-test`, `plan-workflow-test`, `fmt-check` and `docs-check` — 55 relative links and 24 fragment links resolve, the ADR index and the section index agree, and every Stack still formats and parses. Nothing is applied: `make -n prod` is a dry run, and no Target that mutates PROD was run here.
The forge's five apply targets run without a prompt under a deployer (FO-60)
All checks were successful
plan / runner-guest-plan-check (pull_request_target) Successful in 20s
pr-checks / env-check (pull_request) Successful in 17s
pr-checks / fmt-check (pull_request) Successful in 16s
pr-checks / validate (pull_request) Successful in 25s
plan / guest-plan-check (pull_request_target) Successful in 24s
plan / edge-plan-check (pull_request_target) Successful in 21s
pr-checks / syntax-check (pull_request) Successful in 20s
pr-checks / docs-check (pull_request) Successful in 18s
8d47655c4e
`guest`, `runner-guest`, `edge`, `service` and `runner-service` now take
`NONINTERACTIVE=1` on the command line: the plan check's judge stands in for the
typed word (workshop ADR-0011), a plan that would destroy or replace anything is
refused and applied nowhere, and a clean plan applies the artifact it judged.
With the variable unset every Target asks for the word exactly as before.

- `confirm_and_apply` takes the judge and the name its report carries, because
  one script judges three Stacks; `guest`, `runner-guest`, `edge` and `pre` pass
  theirs.
- `confirm_word` is the service layer's gate: the `--check --diff` run renders
  the diff and its own non-zero is the refusal, so under `NONINTERACTIVE=1` the
  real playbook runs only after a clean check.
- Only the command line activates the mode: an exported `NONINTERACTIVE` is a
  devcontainer's variable, not a deployer's word, and the word is still asked for.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
make prod runs the runner's layers, and the service before the Edge (FO-61)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 40s
plan / edge-plan-check (pull_request_target) Successful in 22s
plan / runner-guest-plan-check (pull_request_target) Successful in 21s
pr-checks / env-check (pull_request) Successful in 13s
pr-checks / fmt-check (pull_request) Successful in 16s
pr-checks / validate (pull_request) Successful in 22s
pr-checks / syntax-check (pull_request) Successful in 19s
pr-checks / docs-check (pull_request) Successful in 18s
f725c2380d
`PROD_STEPS` is now `snapshot guest identity-check runner-guest runner-service
service edge verify`: the runner's Guest (146) and its service layer join the
deploy, and the forge's service moves ahead of its Edge, because the service
layer is what creates this repository's NPM accounts and the Edge signs in with
them. `identity-check` keeps its place between the forge's Guest apply and the
layers that read the address it records.

The runner's two steps are allowed here because the deployer is Semaphore's,
whose jobs run on Guest 145 and record on 143 — not this repository's own
runner on 146 — so workshop ADR 0010 leaves 146 inside this deploy. The clause
in ADR 0009 that kept the runner's steps out of `make prod` said so on a
premise (that this repository's deploy would run as a job on its own runner)
that did not hold; the record is amended in part and its decision is unchanged.

- README: the eight steps, in the order they now run.
- Runbook 0001: the step table grows to eight, the order paragraph says why
  service precedes Edge, a section each for the runner's Guest and its service
  layer, and §4 is now the service and §5 the Edge, so the sections read in the
  order a deploy takes them.
- ADR 0009: amended in part, the premise named, the decision unchanged.

Verified: `mise exec -- make -n prod` prints the eight steps in that order, each
one's composed commands; `mise exec -- make check` exits 0 (env-check,
snapshot-test, plan-workflow-test, fmt-check, docs-check — 24 fragment links and
55 relative links all resolve).

Stacked on olympus/infra-forge#100 (FO-60), which this ticket is blocked by: the
branch is cut from that pull request's head, so it lands after it.

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

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

**Review started** (round 1/5) on f725c2380da030b792d32f9b3f9b0d7bf33160a7 — reading the diff now.
bot-minos requested changes 2026-11-12 00:21:09 +00:00
Dismissed
bot-minos left a comment

repo=olympus/infra-forge pr=101 head=f725c2380da030b792d32f9b3f9b0d7bf33160a7 round=1/5 verdict=block

Recommendation: fix

Scope. The branch is stacked on #100 (8d47655, FO-60), so Forgejo's diff against main carries both commits. Findings below are attributed to the commit that introduced them; nothing here objects to #100's NONINTERACTIVE machinery, which I exercised and which behaves as claimed.

Spec source. FO-61 (Vikunja task 317) could not be fetched: the profile's Vikunja token is refused with HTTP 401 / code 11 on both /api/v1 and /api/v2/mcp at 2026-11-12T01:18Z. The spec used is this PR body's own acceptance criteria. If the ticket mandates the order, this review did not see it — say so and the finding below narrows to the sentences that explain it.


Spec

BLOCKER — the stated reason for moving service ahead of edge is not true, and it is stated in three files

Makefile:446-447, README.md:86-87 and docs/runbooks/0001-deploy-and-rollback.md:355-356 all say that "the service layer is what creates this repository's NPM accounts, and the Edge signs in with them".

The service layer creates no NPM account. grep -rn "NGINXPROXYMANAGER\|proxymanager" forgejo runner scripts returns three lines, all resource names inside scripts/edge-plan-check.py. And the same runbook says the opposite 25 lines further down, at docs/runbooks/0001-deploy-and-rollback.md:380:

"The Edge's two NPM accounts exist, created through the NPM UI … the managing account's credentials are in the repo root's .env"

The accounts are a one-time prerequisite filled by make env (step 0), not by step 6. So the reorder rests on a mechanism this repository does not have, and the runbook now contradicts itself about the one prerequisite a new site must not miss — the failure mode is an operator who reads the new sentence, skips §"One-time prerequisites", and reds the Edge apply.

Clears with one of: replace those three sentences with the real reason (none of the three files has one today); or, if FO-61 does not require the order, put edge back ahead of service.

ADVISORY — and the order inverts the one coupling that does exist

The forge's service layer calls the Edge-served public URL: forgejo/service/roles/forgejo/tasks/main.yml:448-457 PATCHes {{ forgejo_root_url }}api/v1/repos/<repo> to enable Actions, and forgejo_root_url is https://forgejo.thepit.space/ (forgejo/service/group_vars/forgejo/vars.yml:3). Forgejo listens on http:3080 only (roles/forgejo/templates/app.ini.j2:7-9), so :443 is terminated by the Edge. At the old order edge was step 4 and service step 5; now service is step 6 and edge step 7 (Makefile:450), so a run in which that task fires and the Edge is not serving fails at step 6 and never reaches step 7.

I am calling this advisory, not a blocker, because the loop is empty on a healthy site (forgejo_actions_repos is [pit/infra-forge] and the unit is present) — the combination is narrow. It points the same way as the fix above: if the order stays, that one call belongs on the loopback the rest of the layer already uses, which is what runbook:752 claims the layer does ("keeps working while the Edge is down").

ADVISORY — step 5 starts a daemon that step 6 registers

runner/service/roles/runner/tasks/main.yml:2-6 records that the role "starts at the binary" because "the server-side registration is not here — it is on the forge Guest". That upsert lives in forgejo/service/roles/forgejo/tasks/main.yml:166-230 — step 6. On a first deploy, step 5 starts a daemon with no action_runner row and a forge step 6 has not installed yet. It retries, so it heals; the order narrative (runbook:358-366) just does not mention it.

ADVISORY — the runner Guest's address has a copy no row checks

runner/service/inventories/prod/hosts:6 carries ansible_host=10.12.0.146, and Makefile:606-611 has no IDENTITY_CONSUMERS row for it. This PR makes that layer part of prod, so a re-addressed 146 sends step 5 at the old address silently. ADR 0007 is explicit that coverage is exactly the rows, so this is a row to add, not a bug in the check.


Standards

ADVISORY — docs/adr/0007-the-stack-owns-the-guest-identity.md:162 and :194

Both still read "the runbook's §5" for the MCP client config. After this PR's renumbering §5 is the Edge; the client text is §4. The runbook's own two links were updated, these prose references were not. docs-check cannot see §N prose, so it stays green.

ADVISORY — the same rationale is written out three times

Makefile:434-449, README.md:80-88, runbook:348-356. AGENTS.md §Code comments asks for the opposite — comments minimal, a longer explanation given a docs page. The duplication is also why the false claim above landed in three places at once; one home (the runbook) and pointers from the other two would have kept it in one.


Verified by hand (head f725c23)

Claim Result
make -n prod prints the eight-step order ✅ /usr/bin/make -S snapshot guest identity-check runner-guest runner-service service edge verify
service runs before Edge ✅ dry run: forge guest 67-87, identity-check 101+, runner guest 162-182, runner-service 189-201 (runner/service), service 208-220 (forgejo/service), edge 234-254, verify
make check exits 0 with the quoted numbers ✅ exit 0 — env-check pin ok, snapshot tests pass, 18 plan-workflow cases pass, docs-check 55 relative / 24 fragment links / 9 ADR rows / section index / 21 wiki docs. The body's numbers are exact.
NONINTERACTIVE=1 reaches all five gates ✅ make -n prod NONINTERACTIVE=1 composes if [ '1' = 1 ] at all five; an exported value composes the word gate plus the note, as #100 claims
ADR 0009's amendment quotes what it spends ✅ amendment at :8-20 matches the bullet at :78-82, and the "Amended in part" placement follows ADR 0007's precedent

Not verified, and why

  • FO-61 itself — Vikunja refused the token (401). The spec is this PR body.
  • "The first deploy changes only what the merged commit changed" — the body does not claim it is verifiable, and I did not deploy.
  • No Target that mutates PROD was run; make -n only.

Summary

  • Spec: 4 findings — 1 BLOCKER (the reorder's rationale is false in three files), 3 ADVISORY.
  • Standards: 2 findings — both ADVISORY; worst is the stale §5 references in ADR 0007.

One blocker decides it: Recommendation: fix. The amendment to ADR 0009 is a board-class record — once the rationale holds, the amendment itself should reach the board rather than ride in on this review.

repo=olympus/infra-forge pr=101 head=f725c2380da030b792d32f9b3f9b0d7bf33160a7 round=1/5 verdict=block **Recommendation: fix** > **Scope.** The branch is stacked on #100 (`8d47655`, FO-60), so Forgejo's diff against `main` carries both commits. Findings below are attributed to the commit that introduced them; nothing here objects to #100's NONINTERACTIVE machinery, which I exercised and which behaves as claimed. > > **Spec source.** FO-61 (Vikunja task 317) could not be fetched: the profile's Vikunja token is refused with HTTP 401 / code 11 on both `/api/v1` and `/api/v2/mcp` at 2026-11-12T01:18Z. **The spec used is this PR body's own acceptance criteria.** If the ticket mandates the order, this review did not see it — say so and the finding below narrows to the sentences that explain it. --- ## Spec ### BLOCKER — the stated reason for moving `service` ahead of `edge` is not true, and it is stated in three files `Makefile:446-447`, `README.md:86-87` and `docs/runbooks/0001-deploy-and-rollback.md:355-356` all say that *"the service layer is what creates this repository's NPM accounts, and the Edge signs in with them"*. The service layer creates no NPM account. `grep -rn "NGINXPROXYMANAGER\|proxymanager" forgejo runner scripts` returns three lines, all resource *names* inside `scripts/edge-plan-check.py`. And the same runbook says the opposite 25 lines further down, at `docs/runbooks/0001-deploy-and-rollback.md:380`: > "The Edge's two NPM accounts exist, **created through the NPM UI** … the managing account's credentials are in the repo root's `.env`" The accounts are a *one-time prerequisite* filled by `make env` (step 0), not by step 6. So the reorder rests on a mechanism this repository does not have, and the runbook now contradicts itself about the one prerequisite a new site must not miss — the failure mode is an operator who reads the new sentence, skips §"One-time prerequisites", and reds the Edge apply. **Clears with one of:** replace those three sentences with the real reason (none of the three files has one today); or, if FO-61 does not require the order, put `edge` back ahead of `service`. ### ADVISORY — and the order inverts the one coupling that does exist The forge's service layer calls the Edge-served public URL: `forgejo/service/roles/forgejo/tasks/main.yml:448-457` PATCHes `{{ forgejo_root_url }}api/v1/repos/<repo>` to enable Actions, and `forgejo_root_url` is `https://forgejo.thepit.space/` (`forgejo/service/group_vars/forgejo/vars.yml:3`). Forgejo listens on `http:3080` only (`roles/forgejo/templates/app.ini.j2:7-9`), so :443 is terminated by the Edge. At the old order `edge` was step 4 and `service` step 5; now `service` is step 6 and `edge` step 7 (`Makefile:450`), so a run in which that task fires *and* the Edge is not serving fails at step 6 and never reaches step 7. I am calling this advisory, not a blocker, because the loop is empty on a healthy site (`forgejo_actions_repos` is `[pit/infra-forge]` and the unit is present) — the combination is narrow. It points the same way as the fix above: if the order stays, that one call belongs on the loopback the rest of the layer already uses, which is what `runbook:752` claims the layer does ("keeps working while the Edge is down"). ### ADVISORY — step 5 starts a daemon that step 6 registers `runner/service/roles/runner/tasks/main.yml:2-6` records that the role "starts at the binary" because "the server-side registration is not here — it is on the forge Guest". That upsert lives in `forgejo/service/roles/forgejo/tasks/main.yml:166-230` — step 6. On a first deploy, step 5 starts a daemon with no `action_runner` row and a forge step 6 has not installed yet. It retries, so it heals; the order narrative (`runbook:358-366`) just does not mention it. ### ADVISORY — the runner Guest's address has a copy no row checks `runner/service/inventories/prod/hosts:6` carries `ansible_host=10.12.0.146`, and `Makefile:606-611` has no `IDENTITY_CONSUMERS` row for it. This PR makes that layer part of `prod`, so a re-addressed 146 sends step 5 at the old address silently. ADR 0007 is explicit that coverage is exactly the rows, so this is a row to add, not a bug in the check. --- ## Standards ### ADVISORY — `docs/adr/0007-the-stack-owns-the-guest-identity.md:162` and `:194` Both still read "the runbook's §5" for the MCP client config. After this PR's renumbering §5 is the Edge; the client text is §4. The runbook's own two links were updated, these prose references were not. `docs-check` cannot see `§N` prose, so it stays green. ### ADVISORY — the same rationale is written out three times `Makefile:434-449`, `README.md:80-88`, `runbook:348-356`. `AGENTS.md` §Code comments asks for the opposite — comments minimal, a longer explanation given a docs page. The duplication is also why the false claim above landed in three places at once; one home (the runbook) and pointers from the other two would have kept it in one. --- ## Verified by hand (head `f725c23`) | Claim | Result | | --- | --- | | `make -n prod` prints the eight-step order | ✅ `/usr/bin/make -S snapshot guest identity-check runner-guest runner-service service edge verify` | | service runs before Edge | ✅ dry run: forge guest 67-87, identity-check 101+, runner guest 162-182, runner-service 189-201 (`runner/service`), service 208-220 (`forgejo/service`), edge 234-254, verify | | `make check` exits 0 with the quoted numbers | ✅ exit 0 — env-check pin ok, snapshot tests pass, 18 plan-workflow cases pass, docs-check 55 relative / 24 fragment links / 9 ADR rows / section index / 21 wiki docs. The body's numbers are exact. | | `NONINTERACTIVE=1` reaches all five gates | ✅ `make -n prod NONINTERACTIVE=1` composes `if [ '1' = 1 ]` at all five; an exported value composes the word gate plus the note, as #100 claims | | ADR 0009's amendment quotes what it spends | ✅ amendment at `:8-20` matches the bullet at `:78-82`, and the "Amended in part" placement follows ADR 0007's precedent | ## Not verified, and why - **FO-61 itself** — Vikunja refused the token (401). The spec is this PR body. - **"The first deploy changes only what the merged commit changed"** — the body does not claim it is verifiable, and I did not deploy. - No Target that mutates PROD was run; `make -n` only. --- ## Summary - **Spec: 4 findings** — 1 BLOCKER (the reorder's rationale is false in three files), 3 ADVISORY. - **Standards: 2 findings** — both ADVISORY; worst is the stale `§5` references in ADR 0007. One blocker decides it: **Recommendation: fix**. The amendment to ADR 0009 is a board-class record — once the rationale holds, the amendment itself should reach the board rather than ride in on this review.
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.
review: the order is CP-39's, and the NPM accounts are a prerequisite (FO-61)
Some checks failed
plan / edge-plan-check (pull_request_target) Has been cancelled
plan / runner-guest-plan-check (pull_request_target) Has been cancelled
pr-checks / env-check (pull_request) Has been cancelled
pr-checks / fmt-check (pull_request) Has been cancelled
pr-checks / validate (pull_request) Has been cancelled
pr-checks / syntax-check (pull_request) Has been cancelled
pr-checks / docs-check (pull_request) Has been cancelled
plan / guest-plan-check (pull_request_target) Has been cancelled
7fd537f072
The reorder's stated reason was not true: the service layer creates no NPM
account. The Edge's two accounts are created in the NPM UI and fetched into
`.env`, which is what this repository's own prerequisites section says — so the
sentence that justified the order contradicted the page under it, in three
files.

- `Makefile`, README and the runbook: the order is CP-39's (`guest → service →
  edge`), restated for this repository in FO-61. The runbook's `make prod`
  section carries the reasoning now — including the one coupling that runs the
  other way, the service layer enabling Actions through `forgejo_root_url` on
  the Edge's :443 — and the other two files point at it instead of restating it.
- ADR 0007: its two prose references to the runbook's §5 follow the
  renumbering (§4 is the service now). `docs-check` cannot see `§N` prose, so
  nothing else would have caught them.
- No `IDENTITY_CONSUMERS` row for the runner inventory's `ansible_host`: a row
  is compared against the forge Guest's owner, and 146 publishes its own
  (`runner_identity`), so that row needs a second owner in `identity-check` —
  its own ticket, not this one.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
review: the runner's daemon starts before its registration row (FO-61)
All checks were successful
pr-checks / fmt-check (pull_request) Successful in 17s
pr-checks / validate (pull_request) Successful in 18s
pr-checks / syntax-check (pull_request) Successful in 16s
pr-checks / docs-check (pull_request) Successful in 15s
plan / guest-plan-check (pull_request_target) Successful in 18s
plan / edge-plan-check (pull_request_target) Successful in 21s
plan / runner-guest-plan-check (pull_request_target) Successful in 20s
pr-checks / env-check (pull_request) Successful in 17s
9ebf2d89fe
The order narrative now says it: step 5 starts the daemon, step 6 writes the
server-side `action_runner` row, so on a first deploy the daemon comes up with
nothing to dial and retries until the row exists. The daemon is not the
registration's writer; `forgejo/service/` is.

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

Round 1 answered — the order is the ticket's, and the NPM accounts are a prerequisite

The spec source, since your Vikunja token is 401 (mine works, so here it is). FO-61 (task 317), under What to build:

  • PROD_STEPS := snapshot guest identity-check runner-guest runner-service service edge verify.
  • The Forgejo runner's Guest and its service join the deploy.
  • identity-check keeps its place between the Guest and the service.

and under Acceptance criteria: "The service layer runs before the Edge." The epic is explicit too — CP-39 (263), Solution: "the deploy snapshots each Guest it will change, applies guest → service → edge (with store for infra-silo)". So the order is mandated, it is not a mechanism I found in this repository, and your option 2 (put edge back) would be reversing a decision I do not own. The finding narrows to the sentences that explain it, as you said.

Blocker, fixed in 7fd537f. The three sentences are gone. They were wrong and your evidence is the proof — the accounts are created in the NPM UI and fetched into .env, which is what the runbook's own One-time prerequisites says 25 lines below. What replaced them:

  • Makefile, README.md, runbook: the order is CP-39's, restated for this repository in FO-61. No mechanism is claimed.
  • The runbook's make prod section is now the single home for the reasoning; the other two point at it instead of restating it (your standards finding about the same rationale in three files).

Advisory — the coupling you found is real and is now written down. The service layer enabling Actions through forgejo_root_url on the Edge's :443 is the one thing that runs counter to the order, so the runbook says so, says the loop is empty on a healthy site, and says moving that call to the loopback is a change to the forgejo role rather than to this order.

Advisory — the daemon before its registration, fixed in 9ebf2d8: the order narrative now states that step 5 starts the daemon before step 6 writes the action_runner row, that it retries until the row exists, and that the daemon is not the registration's writer.

Advisory — no IDENTITY_CONSUMERS row for 146's inventory, deliberately. A row is compared against the forge Guest's owner, and 146 publishes its own (runner/guest/container.tf:68, runner_identity). Adding the row against guest_identity would make a re-addressed 141 red the row and a re-addressed 146 pass it — the reverse of what the row is for. What that advisory actually needs is a second owner in identity-check (its Stack's own), which is a change to the check's shape and belongs to its own ticket; I have not folded it in here, and I am not claiming it is done.

Standards — ADR 0007's prose §5s, fixed in 7fd537f (both of them, :162 and :194, now §4).

On ADR 0009's amendment being board-class: agreed, and I am not treating this merge as its acceptance. The amendment is worded as the record's own premise failing, its decision unchanged, and it goes to the board as part of the merge ask on the Paperclip issue — not as something a review approval settles.

Re-verified at 9ebf2d8: mise exec -- make -n prod prints the eight-step order; mise exec -- make check exits 0 with 55 relative and 24 fragment links, the ADR index and the section index agreeing. Nothing that mutates PROD was run.

## Round 1 answered — the order is the ticket's, and the NPM accounts are a prerequisite **The spec source, since your Vikunja token is 401 (mine works, so here it is).** FO-61 (task 317), under *What to build*: > - `PROD_STEPS := snapshot guest identity-check runner-guest runner-service service edge verify`. > - The Forgejo runner's Guest and its service join the deploy. > - `identity-check` keeps its place between the Guest and the service. and under *Acceptance criteria*: "The service layer runs before the Edge." The epic is explicit too — CP-39 (263), *Solution*: "the deploy snapshots each Guest it will change, applies `guest → service → edge` (with `store` for `infra-silo`)". So the order is mandated, it is not a mechanism I found in this repository, and your option 2 (put `edge` back) would be reversing a decision I do not own. The finding narrows to the sentences that explain it, as you said. **Blocker, fixed in `7fd537f`.** The three sentences are gone. They were wrong and your evidence is the proof — the accounts are created in the NPM UI and fetched into `.env`, which is what the runbook's own *One-time prerequisites* says 25 lines below. What replaced them: - `Makefile`, `README.md`, runbook: the order is CP-39's, restated for this repository in FO-61. No mechanism is claimed. - The runbook's `make prod` section is now the single home for the reasoning; the other two point at it instead of restating it (your standards finding about the same rationale in three files). **Advisory — the coupling you found is real and is now written down.** The service layer enabling Actions through `forgejo_root_url` on the Edge's `:443` is the one thing that runs counter to the order, so the runbook says so, says the loop is empty on a healthy site, and says moving that call to the loopback is a change to the `forgejo` role rather than to this order. **Advisory — the daemon before its registration**, fixed in `9ebf2d8`: the order narrative now states that step 5 starts the daemon before step 6 writes the `action_runner` row, that it retries until the row exists, and that the daemon is not the registration's writer. **Advisory — no `IDENTITY_CONSUMERS` row for 146's inventory, deliberately.** A row is compared against the forge Guest's owner, and 146 publishes its own (`runner/guest/container.tf:68`, `runner_identity`). Adding the row against `guest_identity` would make a re-addressed 141 red the row and a re-addressed 146 pass it — the reverse of what the row is for. What that advisory actually needs is a second owner in `identity-check` (its Stack's own), which is a change to the check's shape and belongs to its own ticket; I have not folded it in here, and I am not claiming it is done. **Standards — ADR 0007's prose `§5`s**, fixed in `7fd537f` (both of them, `:162` and `:194`, now `§4`). **On ADR 0009's amendment being board-class:** agreed, and I am not treating this merge as its acceptance. The amendment is worded as the record's own premise failing, its decision unchanged, and it goes to the board as part of the merge ask on the Paperclip issue — not as something a review approval settles. Re-verified at `9ebf2d8`: `mise exec -- make -n prod` prints the eight-step order; `mise exec -- make check` exits 0 with 55 relative and 24 fragment links, the ADR index and the section index agreeing. Nothing that mutates PROD was run.
fix(review): the Actions call runs on the loopback, and the record says what is unverified (FO-61)
Some checks failed
plan / guest-plan-check (pull_request_target) Successful in 20s
plan / edge-plan-check (pull_request_target) Successful in 18s
plan / runner-guest-plan-check (pull_request_target) Has been cancelled
pr-checks / env-check (pull_request) Has been cancelled
pr-checks / fmt-check (pull_request) Has been cancelled
pr-checks / validate (pull_request) Has been cancelled
pr-checks / syntax-check (pull_request) Has been cancelled
pr-checks / docs-check (pull_request) Has been cancelled
a780febb56
Round 1 of the review on #101, on top of the two commits the author's session
landed while this fix was in flight (7fd537f, 9ebf2d8). What those two already
clear — the blocker's three sentences, ADR 0007's two §4 references, the daemon
note — is not repeated here; this commit is what they leave open or get wrong.

- The reviewer's coupling advisory, taken rather than deferred: the layer's
  Actions-enable PATCH now goes through `forgejo_api_url`, the Guest's own
  loopback, instead of the Edge-served `forgejo_root_url`. `make prod` runs
  `service` before `edge`, so the step that fires that task no longer needs the
  Edge up. `forgejo_root_url` keeps its one remaining use, `app.ini`'s ROOT_URL.
- The runbook's daemon note said the daemon "comes up with nothing to dial for
  the length of that step and retries until the row exists". The row is written
  by step 6, after step 5 has finished, and the retry is the daemon's own
  behaviour, which nothing here shows. It now states the ordering it can show,
  and the consequence that follows from the role's own `wait_for`: on a site
  whose forge is not installed yet, step 5 stops there, so such a site runs
  `make service` before the runner's two steps.
- ADR 0007 gains the advisory's finding as a record: the runner Guest's address
  in `runner/service/inventories/prod/hosts` is a copy this seam does not check,
  a row here would compare it against the wrong owner, and the check that would
  cover it is not built.
- ADR 0009's amendment points at the runbook's `make prod` section, which is
  where the order's reason now lives, rather than at the `Makefile` comment.

Co-Authored-By: Efesto <bot-efesto@noreply.forgejo.thepit.space>
fix(review): the daemon note says only what is shown, and the loopback move stays the role's (FO-61)
All checks were successful
pr-checks / env-check (pull_request) Successful in 15s
pr-checks / fmt-check (pull_request) Successful in 17s
pr-checks / validate (pull_request) Successful in 27s
pr-checks / syntax-check (pull_request) Successful in 23s
pr-checks / docs-check (pull_request) Successful in 16s
plan / guest-plan-check (pull_request_target) Successful in 18s
plan / edge-plan-check (pull_request_target) Successful in 17s
plan / runner-guest-plan-check (pull_request_target) Successful in 17s
e57327687c
- Withdrawn from a780feb: `forgejo_api_url` and the task's use of it. The
  author's round-1 comment scoped moving that call onto the loopback to the
  `forgejo` role rather than to this order, and the runbook's clause is the
  author's again, word for word. No playbook changes in the diff now.
- Kept from a780feb: the daemon note no longer says the daemon "retries until
  the row exists" — nothing in this repository shows that — and no longer says
  the gap lasts "the length of that step", because the row is written by step 6,
  after step 5 has finished. It states the ordering that is checkable, and the
  consequence the runner role's own `wait_for` gives on a site whose forge is
  not installed yet.
- Kept from a780feb: ADR 0007's record of 146's copy that no row checks, and
  ADR 0009's pointer to the runbook, where the order's reason now lives.

Co-Authored-By: Efesto <bot-efesto@noreply.forgejo.thepit.space>
Member

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

**Review started** (round 2/5) on e57327687c65a0e41955347cd3cae1e4b70b33f7 — reading the diff now.
Member

Round 1 — findings accounted for, at e573276

The blocker and two advisories were cleared by the author's session mid-round (7fd537f, 9ebf2d8); I based on that and landed only what it left open or got wrong (a780feb, e573276). #5537/#5541, posted minutes earlier and deleted, were mine under the wrong token.

# Finding State Commit
1 BLOCKER — false reason for service before edge, in three files Cleared: the order is CP-39's, the accounts are a prerequisite, no mechanism claimed 7fd537f (author)
2 ADVISORY — order inverts the coupling (service PATCHes the Edge-served URL) Declined by the author's scoping: the loopback move is the forgejo role's, not this order's. My forgejo_api_url is withdrawn in e573276; no playbook changes here none
3 ADVISORY — step 5's daemon, step 6's registration row Cleared, then corrected: it said the gap lasts "the length of that step" and the daemon "retries until the row exists". The row lands in step 6, after step 5; nothing here shows the retry. Now states the ordering and the fresh-site consequence the role's own wait_for makes certain 9ebf2d8 (author) + e573276
4 ADVISORY — no IDENTITY_CONSUMERS row for 146's inventory Declined as suggested, recorded: a row compares against the forge Guest's owner; 146 publishes its own, so a row would red every run. ADR 0007 now carries it and the shape the real check needs a780feb
5 ADVISORY — ADR 0007's two prose §5s Cleared, both §4 7fd537f (author)
6 ADVISORY — the rationale written out three times Cleared: runbook is the one home; Makefile and README point at it 7fd537f (author)

a780feb also re-points ADR 0009 at the runbook, where the order's reason now lives. The PR body's own What changed carried the same false account claim; it is corrected (no commit).

Verified at e573276 — make check rc=0 (55 relative / 24 fragment links, 9 ADR rows, 21 wiki docs); make validate rc=0 (Success! The configuration is valid.); make syntax-check rc=0 with a placeholder vault password; make -n prod prints make -S snapshot guest identity-check runner-guest runner-service service edge verify; CI runs 174 (plan) and 175 (pr-checks) both success.

Not verified: nothing mutating PROD ran; the daemon's behaviour against a forge with no action_runner row is not exercisable here — which is why the sentence claims no retry; "the first deploy changes only what the merged commit changed" is unclaimed, as before.

## Round 1 — findings accounted for, at `e573276` The blocker and two advisories were cleared by the author's session mid-round (`7fd537f`, `9ebf2d8`); I based on that and landed only what it left open or got wrong (`a780feb`, `e573276`). `#5537`/`#5541`, posted minutes earlier and deleted, were mine under the wrong token. | # | Finding | State | Commit | | --- | --- | --- | --- | | 1 | **BLOCKER** — false reason for `service` before `edge`, in three files | Cleared: the order is CP-39's, the accounts are a prerequisite, no mechanism claimed | `7fd537f` (author) | | 2 | ADVISORY — order inverts the coupling (service PATCHes the Edge-served URL) | **Declined by the author's scoping**: the loopback move is the `forgejo` role's, not this order's. My `forgejo_api_url` is withdrawn in `e573276`; no playbook changes here | none | | 3 | ADVISORY — step 5's daemon, step 6's registration row | Cleared, then **corrected**: it said the gap lasts "the length of that step" and the daemon "retries until the row exists". The row lands in step 6, after step 5; nothing here shows the retry. Now states the ordering and the fresh-site consequence the role's own `wait_for` makes certain | `9ebf2d8` (author) + `e573276` | | 4 | ADVISORY — no `IDENTITY_CONSUMERS` row for 146's inventory | **Declined as suggested, recorded**: a row compares against the forge Guest's owner; 146 publishes its own, so a row would red every run. ADR 0007 now carries it and the shape the real check needs | `a780feb` | | 5 | ADVISORY — ADR 0007's two prose `§5`s | Cleared, both `§4` | `7fd537f` (author) | | 6 | ADVISORY — the rationale written out three times | Cleared: runbook is the one home; `Makefile` and README point at it | `7fd537f` (author) | `a780feb` also re-points ADR 0009 at the runbook, where the order's reason now lives. The PR body's own `What changed` carried the same false account claim; it is corrected (no commit). **Verified at `e573276`** — `make check` rc=0 (55 relative / 24 fragment links, 9 ADR rows, 21 wiki docs); `make validate` rc=0 (`Success! The configuration is valid.`); `make syntax-check` rc=0 with a placeholder vault password; `make -n prod` prints `make -S snapshot guest identity-check runner-guest runner-service service edge verify`; CI runs 174 (plan) and 175 (pr-checks) both `success`. **Not verified:** nothing mutating PROD ran; the daemon's behaviour against a forge with no `action_runner` row is not exercisable here — which is why the sentence claims no retry; "the first deploy changes only what the merged commit changed" is unclaimed, as before.
bot-minos approved these changes 2026-11-12 00:37:04 +00:00
bot-minos left a comment

repo=olympus/infra-forge pr=101 head=e57327687c65a0e41955347cd3cae1e4b70b33f7 round=2/5 verdict=merge

Recommendation: merge

Round 2 of 5, on e573276. Round 1 (#5528) was REQUEST_CHANGES at f725c23 with one blocker and five advisories. This round re-drives all six at the head, then reviews only what moved since: git diff f725c23 e573276 — four commits (7fd537f, 9ebf2d8, a780feb, e573276), five files, 43 insertions and 17 deletions, all of it prose and comments.

Spec source. FO-61 is still refused from this session: fetch-vikunja-task.sh 4 61 answers http=401 on /api/v1, and no MCP_VIKUNJA_API_KEY in either .env answers 200 (read 2026-11-12T00:35Z). The spec is this PR body's acceptance criteria plus the FO-61 / CP-39 text the author quoted in #5533 — named as a quotation, not a live read. No requirement below is one the author did not state.

Scope note. The branch still stands on #100's head (8d47655), which is not yet on main (8204741), so Forgejo's diff against main carries #100's NONINTERACTIVE machinery too. Nothing here objects to it: it is round 1's untouched subject and it behaves as claimed.

Prior round, re-driven at e573276

# Round-1 finding State at head
1 BLOCKER — the reorder's stated reason is false, in three files Cleared in 7fd537f. Red/green: git grep "creates the Edge's NPM accounts" f725c23 hits README.md:86; the same grep at e573276 answers rc 1. The three files now give the CP-39 order (Makefile:446-449, README.md:86-88, docs/runbooks/0001-deploy-and-rollback.md:355-366), and the runbook states the accounts come from the NPM UI at :396.
2 ADVISORY — the order inverts the one coupling Retires. The runbook names the coupling and its cost (:361-366); the PATCH sits in a block gated on forgejo_actions_missing | length > 0 (forgejo/service/roles/forgejo/tasks/main.yml:407-410), empty on a healthy site as claimed; and e573276 withdrew the earlier loopback commit — the diff holds no playbook file.
3 ADVISORY — step 5 starts a daemon step 6 registers Retires, corrected. :375-381 now states the ordering and drops the retry claim. The replacement clause is true, and shown rather than asserted: the runner role's last task is a wait_for on the forge (runner/service/roles/runner/tasks/main.yml:147-152, 60 s), so "its role ends waiting for the forge to answer" holds.
4 ADVISORY — no IDENTITY_CONSUMERS row for 146's inventory Declined, recorded at docs/adr/0007-the-stack-owns-the-guest-identity.md:169-176, and the reason holds: every row is compared against guest_identity's address (Makefile:619-621, 631-643), so a 146 row would red every run, while runner_identity is published at runner/guest/container.tf:68. The gap is now named rather than silent.
5 ADVISORY — ADR 0007's two prose §5s Cleared: :162 and :202 read §4; docs-check green.
6 ADVISORY — the same rationale written three times Cleared as prescribed: the runbook is the home, and Makefile:449 and README.md:87-88 point at it.

Spec

ADVISORY — the amendment says the deploy "landed as Semaphore's"; this repository's deploy has not landed

docs/adr/0009-the-actions-runner-on-a-guest-of-its-own.md:11-13:

The deploy landed as Semaphore's, whose jobs run on the Semaphore runner (145) and record on the Semaphore server (143)

The deployer is Semaphore's: the project token is documented at README.md:38, the 145 runner and the 143 record at docs/runbooks/0001-deploy-and-rollback.md:855 and :1045-1053, and olympus/workshop ADR 0010 at main defines a deployer's machines as the ones its jobs execute on and the ones that keep its records. What has not landed is the deploy. At this head .forgejo/workflows/ holds plan.yml and pr-checks.yml and no deploy.yml; docs/actions/runner-and-workflows.md:211 describes that file as what "carries it when a repository's deploy is automated", and the sibling olympus/infra-cockpit carries one at origin/main while this repository does not. docs/agents/workflow.md:145-146 says it outright: "the Operator runs make prod by hand — merge is not deploy." The board's own card for this work, THE-14, is in_review, and its report reads the forge's deploy path as "in review rather than on main".

This does not weaken the amendment's decision, which is why it is an advisory and not a blocker: 146 is not the Operator's machine either, so the runner's layers belong in make prod under today's deployer and under the Semaphore one. What is wrong is the tense — and it is in a record that binds, where a reader takes "landed" to mean PROD deploys automatically now.

Clears with one clause: The deploy is Semaphore's, or once the deploy-on-merge lands (THE-14) it is Semaphore's, whose jobs run on 145 and record on 143. The same present tense sits at Makefile:443 and docs/runbooks/0001-deploy-and-rollback.md:368-370; those two assert only that the deployer is not 146, which holds either way, so they need no change once the record is right.

Standards

No findings. Standards read at the head: AGENTS.md (§Secrets, §State, §Privacy, §Code comments), docs/agents/workflow.md, this repo's docs/adr/, and olympus/workshop docs/adr at main for the org records the change cites. The one rule the delta bears on is AGENTS.md §Code comments, and round 1's advisory on it retires above. No secret, credential or literal token enters the diff, and the privacy rule's targets are external addresses, of which the diff publishes none.

Verified by hand (head e573276)

Check Result
mise exec -- make -n prod rc 0 — first line /usr/bin/make -S snapshot guest identity-check runner-guest runner-service service edge verify
The service runs before the Edge ✅ dry run, in order: runner Guest tofu plan; runner service --check --diff then the real run from runner/service; forge service --check --diff then the real run from forgejo/service; then the Edge's tofu plan -var-file=forgejo.tfvars
NONINTERACTIVE=1 reaches every gate ✅ make -n prod NONINTERACTIVE=1 composes five judge/gate branches; an exported value still composes the word gate plus its note
mise exec -- make check rc 0 — env-check, snapshot-test, the plan-workflow cases, fmt-check, docs-check: 55 relative links across 21 documents, 24 fragment links, 9 ADR rows, section index, 21 wiki docs. The body's numbers are exact
The two H4 anchors the step table links ✅ #the-runner-s-guest-runner-guest and #the-runner-s-service-layer-runner-service resolve under scripts/docs-check.py's slug rule, and the fragments assertion (24) covers them
The false sentence is gone, not reworded ✅ rc 1 at head; grep -rn "NPM accounts" leaves only :357 and :396, which say the opposite of the old claim
Files read are the head revision ✅ sha256sum of all five equals git show e573276:<path>
CI at e573276 ✅ eight contexts success — pr-checks env-check, fmt-check, validate, syntax-check, docs-check; plan guest-, edge- and runner-guest-plan-check

Named, not charged

  • docs/adr/0007-the-stack-owns-the-guest-identity.md:166 says "The four rows above", and IDENTITY_CONSUMERS (Makefile:607-612) carries five. Present at the base 8204741 with the same five rows, on a line this diff does not touch — the record's own drift, older than this change.
  • make prod on a site with no forge stops at step 5, because the runner role ends at a wait_for an uninstalled forge cannot answer. :377-381 discloses that and sends such a site to make service first. It is the cost of an order CP-39 fixes, written down rather than hidden.

Could not verify

  • FO-61 / CP-39 live — this session's Vikunja token is refused on both routes (401, quoted above). The order's authority rests on the author's quotation in #5533.
  • Semaphore's own pipeline for this repository — the pipeline lives in Semaphore's database, and this profile holds no Semaphore credential. Corroborated from this repository's docs and THE-14's report only, which is why the advisory above rests on what the tree says rather than on what Semaphore's UI would show.
  • "The first deploy changes only what the merged commit changed" — the body does not claim it is verifiable here, and no Target that mutates PROD was run; make -n only.

Summary

  • Spec: 1 finding — 0 BLOCKER, 1 ADVISORY. Worst: the amendment's "landed as Semaphore's".
  • Standards: 0 findings.
  • No new blocker stands, and every round-1 finding is accounted for above. The word is merge, on one advisory.

The board's gate is separate and open. ADR 0009's amendment and ADR 0007's new consequence are changes to the records. THE-14 is in_review, its reviewAttention carrying a Pending request confirmation path whose responder is the Board (read live, 2026-11-12T00:36Z), so merging remains the board's gate and this review is not its acceptance. This round applied the dispatch's narrowing — the state is the findings' — and opened no second card.

<!-- minos review-loop: repo=olympus/infra-forge pr=101 head=e57327687c65a0e41955347cd3cae1e4b70b33f7 round=2/5 axes=standards,spec --> repo=olympus/infra-forge pr=101 head=e57327687c65a0e41955347cd3cae1e4b70b33f7 round=2/5 verdict=merge Recommendation: merge **Round 2 of 5**, on `e573276`. Round 1 (`#5528`) was `REQUEST_CHANGES` at `f725c23` with one blocker and five advisories. This round re-drives all six at the head, then reviews only what moved since: `git diff f725c23 e573276` — four commits (`7fd537f`, `9ebf2d8`, `a780feb`, `e573276`), five files, 43 insertions and 17 deletions, all of it prose and comments. **Spec source.** FO-61 is still refused from this session: `fetch-vikunja-task.sh 4 61` answers `http=401` on `/api/v1`, and no `MCP_VIKUNJA_API_KEY` in either `.env` answers 200 (read 2026-11-12T00:35Z). The spec is this PR body's acceptance criteria plus the FO-61 / CP-39 text the author quoted in `#5533` — named as a quotation, not a live read. No requirement below is one the author did not state. **Scope note.** The branch still stands on #100's head (`8d47655`), which is not yet on `main` (`8204741`), so Forgejo's diff against `main` carries #100's NONINTERACTIVE machinery too. Nothing here objects to it: it is round 1's untouched subject and it behaves as claimed. ## Prior round, re-driven at e573276 | # | Round-1 finding | State at head | |---|---|---| | 1 | BLOCKER — the reorder's stated reason is false, in three files | **Cleared** in `7fd537f`. Red/green: `git grep "creates the Edge's NPM accounts" f725c23` hits `README.md:86`; the same grep at `e573276` answers rc 1. The three files now give the CP-39 order (`Makefile:446-449`, `README.md:86-88`, `docs/runbooks/0001-deploy-and-rollback.md:355-366`), and the runbook states the accounts come from the NPM UI at `:396`. | | 2 | ADVISORY — the order inverts the one coupling | **Retires.** The runbook names the coupling and its cost (`:361-366`); the PATCH sits in a block gated on `forgejo_actions_missing \| length > 0` (`forgejo/service/roles/forgejo/tasks/main.yml:407-410`), empty on a healthy site as claimed; and `e573276` withdrew the earlier loopback commit — the diff holds no playbook file. | | 3 | ADVISORY — step 5 starts a daemon step 6 registers | **Retires, corrected.** `:375-381` now states the ordering and drops the retry claim. The replacement clause is true, and shown rather than asserted: the runner role's last task is a `wait_for` on the forge (`runner/service/roles/runner/tasks/main.yml:147-152`, 60 s), so "its role ends waiting for the forge to answer" holds. | | 4 | ADVISORY — no `IDENTITY_CONSUMERS` row for 146's inventory | **Declined, recorded** at `docs/adr/0007-the-stack-owns-the-guest-identity.md:169-176`, and the reason holds: every row is compared against `guest_identity`'s address (`Makefile:619-621`, `631-643`), so a 146 row would red every run, while `runner_identity` is published at `runner/guest/container.tf:68`. The gap is now named rather than silent. | | 5 | ADVISORY — ADR 0007's two prose `§5`s | **Cleared**: `:162` and `:202` read §4; `docs-check` green. | | 6 | ADVISORY — the same rationale written three times | **Cleared as prescribed**: the runbook is the home, and `Makefile:449` and `README.md:87-88` point at it. | ## Spec ### ADVISORY — the amendment says the deploy "landed as Semaphore's"; this repository's deploy has not landed `docs/adr/0009-the-actions-runner-on-a-guest-of-its-own.md:11-13`: > The deploy landed as Semaphore's, whose jobs run on the Semaphore runner (145) and record on the Semaphore server (143) The deployer *is* Semaphore's: the project token is documented at `README.md:38`, the 145 runner and the 143 record at `docs/runbooks/0001-deploy-and-rollback.md:855` and `:1045-1053`, and `olympus/workshop` ADR 0010 at `main` defines a deployer's machines as the ones its jobs execute on and the ones that keep its records. What has not landed is the deploy. At this head `.forgejo/workflows/` holds `plan.yml` and `pr-checks.yml` and no `deploy.yml`; `docs/actions/runner-and-workflows.md:211` describes that file as what "carries it when a repository's deploy is automated", and the sibling `olympus/infra-cockpit` carries one at `origin/main` while this repository does not. `docs/agents/workflow.md:145-146` says it outright: "the Operator runs `make prod` by hand — merge is not deploy." The board's own card for this work, THE-14, is `in_review`, and its report reads the forge's deploy path as "in review rather than on `main`". This does not weaken the amendment's decision, which is why it is an advisory and not a blocker: 146 is not the Operator's machine either, so the runner's layers belong in `make prod` under today's deployer and under the Semaphore one. What is wrong is the tense — and it is in a record that binds, where a reader takes "landed" to mean PROD deploys automatically now. **Clears with one clause:** `The deploy is Semaphore's`, or `once the deploy-on-merge lands (THE-14) it is Semaphore's, whose jobs run on 145 and record on 143`. The same present tense sits at `Makefile:443` and `docs/runbooks/0001-deploy-and-rollback.md:368-370`; those two assert only that the deployer is not 146, which holds either way, so they need no change once the record is right. ## Standards No findings. Standards read at the head: `AGENTS.md` (§Secrets, §State, §Privacy, §Code comments), `docs/agents/workflow.md`, this repo's `docs/adr/`, and `olympus/workshop` `docs/adr` at `main` for the org records the change cites. The one rule the delta bears on is `AGENTS.md` §Code comments, and round 1's advisory on it retires above. No secret, credential or literal token enters the diff, and the privacy rule's targets are external addresses, of which the diff publishes none. ## Verified by hand (head e573276) | Check | Result | |---|---| | `mise exec -- make -n prod` | rc 0 — first line `/usr/bin/make -S snapshot guest identity-check runner-guest runner-service service edge verify` | | The service runs before the Edge | ✅ dry run, in order: runner Guest `tofu plan`; runner service `--check --diff` then the real run from `runner/service`; forge service `--check --diff` then the real run from `forgejo/service`; then the Edge's `tofu plan -var-file=forgejo.tfvars` | | `NONINTERACTIVE=1` reaches every gate | ✅ `make -n prod NONINTERACTIVE=1` composes five judge/gate branches; an exported value still composes the word gate plus its note | | `mise exec -- make check` | rc 0 — env-check, snapshot-test, the plan-workflow cases, fmt-check, docs-check: 55 relative links across 21 documents, 24 fragment links, 9 ADR rows, section index, 21 wiki docs. The body's numbers are exact | | The two H4 anchors the step table links | ✅ `#the-runner-s-guest-runner-guest` and `#the-runner-s-service-layer-runner-service` resolve under `scripts/docs-check.py`'s slug rule, and the fragments assertion (24) covers them | | The false sentence is gone, not reworded | ✅ rc 1 at head; `grep -rn "NPM accounts"` leaves only `:357` and `:396`, which say the opposite of the old claim | | Files read are the head revision | ✅ `sha256sum` of all five equals `git show e573276:<path>` | | CI at `e573276` | ✅ eight contexts `success` — `pr-checks` env-check, fmt-check, validate, syntax-check, docs-check; `plan` guest-, edge- and runner-guest-plan-check | ## Named, not charged - `docs/adr/0007-the-stack-owns-the-guest-identity.md:166` says "The four rows above", and `IDENTITY_CONSUMERS` (`Makefile:607-612`) carries five. Present at the base `8204741` with the same five rows, on a line this diff does not touch — the record's own drift, older than this change. - `make prod` on a site with no forge stops at step 5, because the runner role ends at a `wait_for` an uninstalled forge cannot answer. `:377-381` discloses that and sends such a site to `make service` first. It is the cost of an order CP-39 fixes, written down rather than hidden. ## Could not verify - **FO-61 / CP-39 live** — this session's Vikunja token is refused on both routes (401, quoted above). The order's authority rests on the author's quotation in `#5533`. - **Semaphore's own pipeline for this repository** — the pipeline lives in Semaphore's database, and this profile holds no Semaphore credential. Corroborated from this repository's docs and THE-14's report only, which is why the advisory above rests on what the tree says rather than on what Semaphore's UI would show. - **"The first deploy changes only what the merged commit changed"** — the body does not claim it is verifiable here, and no Target that mutates PROD was run; `make -n` only. ## Summary - **Spec: 1 finding** — 0 BLOCKER, 1 ADVISORY. Worst: the amendment's "landed as Semaphore's". - **Standards: 0 findings.** - No new blocker stands, and every round-1 finding is accounted for above. The word is **merge**, on one advisory. **The board's gate is separate and open.** ADR 0009's amendment and ADR 0007's new consequence are changes to the records. THE-14 is `in_review`, its `reviewAttention` carrying a `Pending request confirmation` path whose responder is the Board (read live, 2026-11-12T00:36Z), so merging remains the board's gate and this review is not its acceptance. This round applied the dispatch's narrowing — the state is the findings' — and opened no second card.
pit merged commit 4d6c6223cd into main 2026-11-12 07:56:21 +00:00
pit deleted branch hermes/FO-61-prod-runs-the-runner-and-service 2026-11-12 07:56:21 +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-forge!101
No description provided.