The forge's task body runs every make after the install under mise (FO-50) #105

Merged
pit merged 2 commits from hermes/FO-50-the-task-body-runs-make-under-mise into main 2026-11-16 12:53:59 +00:00
Owner

Ticket: FO-50 (Deploy infra-forge on a merge to main). This is the fix for the red of the first deploy that #104 started.

Summary

The forge's first deploy on a merge (Actions run 190, Semaphore task 30, 16 Nov) went red 33 s after the merge, at make env:

env: jq is not on PATH, and the fetch cannot run without it; run the target through the repo's toolchain (mise exec -- make env).
make: *** [Makefile:512: env] Error 2

scripts/semaphore-deploy.sh's task body ran make env, make prod and make verify bare. A Semaphore bash task's PATH is the runner process's, with none of mise's tools, so the jq that make deps had just installed was not found. The tracker's script routes every make after the install through mise exec -- and its deploy is green; this brings the forge's body to the same shape (AGENTS.md, Toolchain). make deps stays bare: it installs the manager.

   make deps || red 'the toolchain could not be installed'
+  mise_bin=$(command -v mise 2>/dev/null || echo "$HOME/.local/bin/mise")
+  [ -x "$mise_bin" ] || red "mise is not installed at $mise_bin; make deps should have installed it"
   ENV_FILE="$root/.env"
-  ACTOR=runner make env || red 'the environment could not be fetched as the runner'
+  ACTOR=runner "$mise_bin" exec -- make env || red 'the environment could not be fetched as the runner'
   ...
-  make prod NONINTERACTIVE=1 || red 'the deploy failed; the plan above names the step'
-  make verify || red 'the deploy applied, and the external checks did not pass'
+  "$mise_bin" exec -- make prod NONINTERACTIVE=1 || red 'the deploy failed; the plan above names the step'
+  "$mise_bin" exec -- make verify || red 'the deploy applied, and the external checks did not pass'

Evidence

Before (main) After (this branch)
make env ACTOR=runner under a runner-like PATH with no jq, the real Makefile and scripts/env.sh, env -i env: jq is not on PATH …, Makefile:512: env Error 2: the two lines of task 30 through mise exec -- it passes the tool check and stops at refused: the Automation runner runner has no seed at …, which is where any machine that is not the runner stops
scripts/tests/semaphore-deploy.test.sh 63 ok 70 ok: the route of the three makes, the actor make env runs as, and the red of a task with no manager
mutants, each on a copy of the tree env bare, prod bare, verify bare, the manager check removed, the actor dropped: each turns the suite red on the claim it targets (5 of 5)
mise exec -- make check exit 0, 242 ok lines

Task 30's own log, read from Semaphore's database, is the real before: the clone fast-forwarded to the merge commit, make deps was clean (jq@1.7 is among the tools it reports as already installed), then the red above. Nothing was applied: the red is before snapshot, and 141 and 146 carry no new snapshot.

Not run: the offline rehearsal of make prod (scripts/rehearse-runner.sh in the deploy-pipeline notes) needs scripts/tests/stub-proxmox.py, which this repository does not carry. The rehearsal above covers the failing step only. Every step after make env is still unrehearsed on a runner-shaped environment: snapshot guest identity-check runner-guest runner-service service edge verify. The key wiring, the verify's SSH read and the NPM URL are not proven here either, and what the first green deploy will change on 141 and 146 is unread: the runner's checkout was 60 files behind main, which measures a stale clone and not what is pending on the guests.

Noticed, not changed: report failure runs in the task body's own shell, so its jq (line 204) is bare as well. Reproduced with env -i and a PATH without jq: jq: command not found, and the call carries on with an empty body (the forge's answer to it was not read). It matters for a merge that touches runner/ (start --no-wait), where the play's status is the only red the commit gets. It is a second change to the same function; say if you want it in this pull request.

Merge Danger

  • Door: a merge to main is the deploy (ADR-0009). This one starts the forge's first deploy past make env, and snapshot guest identity-check runner-guest runner-service service edge verify have never run on the runner. Two read-only facts to hold: a push that touches no runner/ file waits for its task, and runner-service carries a restart forgejo-runner handler on the Guest where the Actions job runs; whether anything is pending there is unread.
  • Blast radius: scripts/semaphore-deploy.sh and its stub test only. The workflow, the Makefile and every Target are unchanged; make deps and the start and status verbs run as before.

Agent-written (Hermes), for the Operator's review and merge.

**Ticket:** FO-50 (Deploy infra-forge on a merge to main). This is the fix for the red of the first deploy that #104 started. ## Summary The forge's first deploy on a merge (Actions run 190, Semaphore task 30, 16 Nov) went red 33 s after the merge, at `make env`: ``` env: jq is not on PATH, and the fetch cannot run without it; run the target through the repo's toolchain (mise exec -- make env). make: *** [Makefile:512: env] Error 2 ``` `scripts/semaphore-deploy.sh`'s task body ran `make env`, `make prod` and `make verify` bare. A Semaphore bash task's `PATH` is the runner process's, with none of mise's tools, so the `jq` that `make deps` had just installed was not found. The tracker's script routes every make after the install through `mise exec --` and its deploy is green; this brings the forge's body to the same shape (`AGENTS.md`, Toolchain). `make deps` stays bare: it installs the manager. ```diff make deps || red 'the toolchain could not be installed' + mise_bin=$(command -v mise 2>/dev/null || echo "$HOME/.local/bin/mise") + [ -x "$mise_bin" ] || red "mise is not installed at $mise_bin; make deps should have installed it" ENV_FILE="$root/.env" - ACTOR=runner make env || red 'the environment could not be fetched as the runner' + ACTOR=runner "$mise_bin" exec -- make env || red 'the environment could not be fetched as the runner' ... - make prod NONINTERACTIVE=1 || red 'the deploy failed; the plan above names the step' - make verify || red 'the deploy applied, and the external checks did not pass' + "$mise_bin" exec -- make prod NONINTERACTIVE=1 || red 'the deploy failed; the plan above names the step' + "$mise_bin" exec -- make verify || red 'the deploy applied, and the external checks did not pass' ``` ## Evidence | | Before (`main`) | After (this branch) | | --- | --- | --- | | `make env ACTOR=runner` under a runner-like `PATH` with no `jq`, the real Makefile and `scripts/env.sh`, `env -i` | `env: jq is not on PATH …`, `Makefile:512: env Error 2`: the two lines of task 30 | through `mise exec --` it passes the tool check and stops at `refused: the Automation runner runner has no seed at …`, which is where any machine that is not the runner stops | | `scripts/tests/semaphore-deploy.test.sh` | 63 ok | 70 ok: the route of the three makes, the actor `make env` runs as, and the red of a task with no manager | | mutants, each on a copy of the tree | | `env` bare, `prod` bare, `verify` bare, the manager check removed, the actor dropped: each turns the suite red on the claim it targets (5 of 5) | | `mise exec -- make check` | | exit 0, 242 `ok` lines | Task 30's own log, read from Semaphore's database, is the real before: the clone fast-forwarded to the merge commit, `make deps` was clean (`jq@1.7` is among the tools it reports as already installed), then the red above. Nothing was applied: the red is before `snapshot`, and 141 and 146 carry no new snapshot. **Not run:** the offline rehearsal of `make prod` (`scripts/rehearse-runner.sh` in the deploy-pipeline notes) needs `scripts/tests/stub-proxmox.py`, which this repository does not carry. The rehearsal above covers the failing step only. Every step after `make env` is still unrehearsed on a runner-shaped environment: `snapshot guest identity-check runner-guest runner-service service edge verify`. The key wiring, the verify's SSH read and the NPM URL are not proven here either, and what the first green deploy will change on 141 and 146 is unread: the runner's checkout was 60 files behind `main`, which measures a stale clone and not what is pending on the guests. **Noticed, not changed:** `report failure` runs in the task body's own shell, so its `jq` (line 204) is bare as well. Reproduced with `env -i` and a `PATH` without `jq`: `jq: command not found`, and the call carries on with an empty body (the forge's answer to it was not read). It matters for a merge that touches `runner/` (`start --no-wait`), where the play's status is the only red the commit gets. It is a second change to the same function; say if you want it in this pull request. ## Merge Danger - **Door:** a merge to `main` is the deploy (ADR-0009). This one starts the forge's first deploy past `make env`, and `snapshot guest identity-check runner-guest runner-service service edge verify` have never run on the runner. Two read-only facts to hold: a push that touches no `runner/` file waits for its task, and `runner-service` carries a `restart forgejo-runner` handler on the Guest where the Actions job runs; whether anything is pending there is unread. - **Blast radius:** `scripts/semaphore-deploy.sh` and its stub test only. The workflow, the Makefile and every Target are unchanged; `make deps` and the `start` and `status` verbs run as before. Agent-written (Hermes), for the Operator's review and merge.
The forge's task body runs every make after the install under mise (FO-50)
All checks were successful
pr-checks / fmt-check (pull_request) Successful in 25s
plan / guest-plan-check (pull_request_target) Successful in 24s
plan / edge-plan-check (pull_request_target) Successful in 19s
plan / runner-guest-plan-check (pull_request_target) Successful in 34s
pr-checks / env-check (pull_request) Successful in 33s
pr-checks / validate (pull_request) Successful in 29s
pr-checks / syntax-check (pull_request) Successful in 36s
pr-checks / docs-check (pull_request) Successful in 24s
eab3d16b4b
The first deploy on a merge went red at `make env`: the task body ran `make env`,
`make prod` and `make verify` bare, and a Semaphore task's PATH holds none of
mise's tools, so the fetch stopped at "jq is not on PATH". The body now resolves
the manager and runs the three under `mise exec --`, as the tracker's does; `make
deps` stays bare because it installs the manager. The stub test pins the route,
the actor the environment is fetched as, and the red a task with no manager gets.
Member

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

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

Review round 1/5 on head eab3d16b4b. Verdict: block (1 blocker, 1 advisory). Reviewed as bot-minos, not the author.

Recommendation: fix

Verdict

Block. On the paths it covers the change does what its title says: every make after make deps now runs under mise exec, and the repo's toolchain rule is met (AGENTS.md §Toolchain). What blocks is the test's proof of the path that matters on the runner. Every passing case puts the manager on PATH, so the fallback the runner actually takes is never exercised by a passing case, and a mutant that breaks that fallback survives the whole suite. The smallest clearing change is under S1.

Spec source. The ticket FO-50 could not be read: the profile's Vikunja key answers 401 on /projects and /user, and this session has no tracker tool. So the spec is the PR description, taken as the claims it makes (S-claims below). Fetched live this session, 2026-11-16: the PR record, its one commit, its two changed files, its diff, the review list (empty) and the comment list (only my sign-on, 6331).

Spec

# Finding Severity
S1 The manager fallback the runner takes is untested; a broken fallback survives the suite. BLOCKER

S1: the fallback the runner takes is untested.

  • Spec line (PR body): "A Semaphore bash task's PATH is the runner process's, with none of mise's tools." On the runner command -v mise fails, so scripts/semaphore-deploy.sh:101 takes echo "$HOME/.local/bin/mise". Makefile:500 says the same: the install dir must be on PATH.
  • Every passing case puts a stub mise first on PATH (scripts/tests/semaphore-deploy.test.sh:228-238; the success case :301-321), so :101 takes the command -v branch. The only case that reaches the fallback (:323-334) expects a red with no manager present.
  • Mutant m5, on a scratch copy: :101 echo "$HOME/.local/bin/mise" becomes echo "mise". Full suite: 64 ok, 5 FAIL. Those five are the host-environment failures that base shows too (see Verified). m5 survives.
  • Same mutant on the runner's shape (env -i PATH=/usr/bin:/bin): head selects /home/hermes/.local/bin/mise, which is runnable; m5 selects mise, which is RED.
  • Smallest clearing change: one success case. PATH without mise (TASK_PATH="$NOMISE_BIN:/usr/bin:/bin"), HOME pointing at a temp dir whose .local/bin/ holds a copy of the mise stub. Assert the same three exec -- routes and the make order. I prototyped this on a scratch copy: head plus the case passes (66 ok, only the five host failures); m5 plus the case fails the new case with an empty mise route. Write it in the test's own style; I have not changed the PR.

Standards

# Finding Severity
A1 Comment density against AGENTS.md §Code comments. ADVISORY

A1: AGENTS.md §Code comments says "Keep comments to a minimum … propose a docs page under docs/." Added comments: scripts/semaphore-deploy.sh:97-99 (a 3-line rationale for the bare make deps; one non-obvious constraint, so it may fall under the exception), scripts/tests/semaphore-deploy.test.sh:230-232 (stub header) and :241. The test-file comments are the ones I would cut.

Passes: AGENTS.md §Toolchain is met. Every Target except make deps runs as mise exec -- make … (semaphore-deploy.sh:104, 112, 113); make deps stays bare (:100). Calling "$mise_bin" by absolute path instead of mise is the same tool when mise is off PATH, so it is not a finding.

Named, not charged (outside the counts):

  • report failure runs a bare jq inside status() (semaphore-deploy.sh:110, :201). Pre-existing, not in the diff, and the author named it in the body.
  • The first deploy past make env is unrehearsed. The author disclosed it under "Merge Danger". The diff touches no Stack, plan, ADR, branch protection, CI gate or tier-1 service, and creates or replaces no resource, so I read it as no charter hold. The dispatch places any hold elsewhere, so the state follows the blockers.

Verified

Check How Result
Head and base git ls-remote origin refs/pull/105/head; base main 4b6ed58 head = eab3d16 (matches dispatch); one commit; 2 files, +62/−7
Suite under the repo toolchain mise exec -- make deploy-test in a worktree at head exit 0. semaphore-deploy 70 ok, 0 FAIL; deploy-workflow 68, service-key 55, verify-stream 13, all 0 failed
Base vs head the same test under mise exec, base worktree vs head base 63 ok, head 70 ok: +7, none lost
Full check mise exec -- make check at head 242 ok lines; the last target, docs-check, holds all 5. Exit code not captured by my background run; no error line in the log
Mutants, each on a scratch copy m1 env bare; m2 prod bare; m3 verify bare; m4 manager check removed; m6 ACTOR dropped each goes red on the claim it targets (5 of 5, as the PR's table says)
Mutant m5 fallback bare survives (S1)
mise exec forwards env ACTOR=runner mise exec -- printenv ACTOR runner
Pinned tool mise exec -- jq --version jq-1.7, as mise.toml pins
Five runner-play cases the test under the plain ansible-playbook on this host, base and head alike "Local RPC server did not start" on both. Under mise exec they pass. A host-environment issue, not this PR's

Not verified:

Claim Why not
make env against the store ("refused: … no seed") A review does not contact the store; not run
Task 30's log and the before state Semaphore's database is not reachable from this host
snapshot … verify on a runner-shaped environment Disclosed by the author; not rehearsed here
FO-50's acceptance criteria Ticket unreadable (401); the PR description used as the spec
make check exit code Log complete; the exit code was not captured

Summary

  • Standards: 1 finding, 0 blockers, 1 advisory (A1). Worst: A1, ADVISORY.
  • Spec: 1 finding, 1 blocker, 0 advisories. Worst: S1, BLOCKER.
  • Advisory count: 1, below the three-advisory line. The recommendation turns on S1 alone. Remove S1 and the verdict is merge; remove A1 and nothing changes.
  • Clearing: add the one case described under S1. The suite then passes on head and goes red on m5.
  • Charter: no escalation trigger in the diff by my reading (no ADR, branch protection, CI gate, tier-1 service, or destroy/replace). The state follows the findings, as the dispatch asks.
<!-- minos review-loop: repo=olympus/infra-forge pr=105 head=eab3d16b4b5098c679112127f254a5741b81175f round=1/5 axes=standards,spec verdict=block --> Review round 1/5 on head eab3d16b4b5098c679112127f254a5741b81175f. Verdict: block (1 blocker, 1 advisory). Reviewed as bot-minos, not the author. Recommendation: fix ## Verdict **Block.** On the paths it covers the change does what its title says: every make after `make deps` now runs under `mise exec`, and the repo's toolchain rule is met (`AGENTS.md §Toolchain`). What blocks is the test's proof of the path that matters on the runner. Every passing case puts the manager on PATH, so the fallback the runner actually takes is never exercised by a passing case, and a mutant that breaks that fallback survives the whole suite. The smallest clearing change is under S1. **Spec source.** The ticket FO-50 could not be read: the profile's Vikunja key answers 401 on `/projects` and `/user`, and this session has no tracker tool. So the spec is the PR description, taken as the claims it makes (S-claims below). Fetched live this session, 2026-11-16: the PR record, its one commit, its two changed files, its diff, the review list (empty) and the comment list (only my sign-on, 6331). ## Spec | # | Finding | Severity | |---|---|---| | S1 | The manager fallback the runner takes is untested; a broken fallback survives the suite. | BLOCKER | **S1: the fallback the runner takes is untested.** - Spec line (PR body): "A Semaphore bash task's `PATH` is the runner process's, with none of mise's tools." On the runner `command -v mise` fails, so `scripts/semaphore-deploy.sh:101` takes `echo "$HOME/.local/bin/mise"`. `Makefile:500` says the same: the install dir must be on PATH. - Every passing case puts a stub `mise` first on PATH (`scripts/tests/semaphore-deploy.test.sh:228-238`; the success case `:301-321`), so `:101` takes the `command -v` branch. The only case that reaches the fallback (`:323-334`) expects a red with no manager present. - Mutant m5, on a scratch copy: `:101` `echo "$HOME/.local/bin/mise"` becomes `echo "mise"`. Full suite: 64 ok, 5 FAIL. Those five are the host-environment failures that base shows too (see Verified). m5 survives. - Same mutant on the runner's shape (`env -i PATH=/usr/bin:/bin`): head selects `/home/hermes/.local/bin/mise`, which is runnable; m5 selects `mise`, which is RED. - **Smallest clearing change:** one success case. PATH without mise (`TASK_PATH="$NOMISE_BIN:/usr/bin:/bin"`), `HOME` pointing at a temp dir whose `.local/bin/` holds a copy of the mise stub. Assert the same three `exec --` routes and the make order. I prototyped this on a scratch copy: head plus the case passes (66 ok, only the five host failures); m5 plus the case fails the new case with an empty mise route. Write it in the test's own style; I have not changed the PR. ## Standards | # | Finding | Severity | |---|---|---| | A1 | Comment density against `AGENTS.md §Code comments`. | ADVISORY | **A1:** `AGENTS.md §Code comments` says "Keep comments to a minimum … propose a docs page under `docs/`." Added comments: `scripts/semaphore-deploy.sh:97-99` (a 3-line rationale for the bare `make deps`; one non-obvious constraint, so it may fall under the exception), `scripts/tests/semaphore-deploy.test.sh:230-232` (stub header) and `:241`. The test-file comments are the ones I would cut. Passes: `AGENTS.md §Toolchain` is met. Every Target except `make deps` runs as `mise exec -- make …` (`semaphore-deploy.sh:104, 112, 113`); `make deps` stays bare (`:100`). Calling `"$mise_bin"` by absolute path instead of `mise` is the same tool when mise is off PATH, so it is not a finding. **Named, not charged** (outside the counts): - `report failure` runs a bare `jq` inside `status()` (`semaphore-deploy.sh:110`, `:201`). Pre-existing, not in the diff, and the author named it in the body. - The first deploy past `make env` is unrehearsed. The author disclosed it under "Merge Danger". The diff touches no Stack, plan, ADR, branch protection, CI gate or tier-1 service, and creates or replaces no resource, so I read it as no charter hold. The dispatch places any hold elsewhere, so the state follows the blockers. ## Verified | Check | How | Result | |---|---|---| | Head and base | `git ls-remote origin refs/pull/105/head`; base `main` 4b6ed58 | head = eab3d16 (matches dispatch); one commit; 2 files, +62/−7 | | Suite under the repo toolchain | `mise exec -- make deploy-test` in a worktree at head | exit 0. semaphore-deploy 70 ok, 0 FAIL; deploy-workflow 68, service-key 55, verify-stream 13, all 0 failed | | Base vs head | the same test under `mise exec`, base worktree vs head | base 63 ok, head 70 ok: +7, none lost | | Full check | `mise exec -- make check` at head | 242 `ok` lines; the last target, docs-check, holds all 5. Exit code not captured by my background run; no error line in the log | | Mutants, each on a scratch copy | m1 `env` bare; m2 `prod` bare; m3 `verify` bare; m4 manager check removed; m6 ACTOR dropped | each goes red on the claim it targets (5 of 5, as the PR's table says) | | Mutant m5 | fallback bare | survives (S1) | | `mise exec` forwards env | `ACTOR=runner mise exec -- printenv ACTOR` | `runner` | | Pinned tool | `mise exec -- jq --version` | jq-1.7, as `mise.toml` pins | | Five runner-play cases | the test under the plain `ansible-playbook` on this host, base and head alike | "Local RPC server did not start" on both. Under `mise exec` they pass. A host-environment issue, not this PR's | **Not verified:** | Claim | Why not | |---|---| | `make env` against the store ("refused: … no seed") | A review does not contact the store; not run | | Task 30's log and the before state | Semaphore's database is not reachable from this host | | `snapshot … verify` on a runner-shaped environment | Disclosed by the author; not rehearsed here | | FO-50's acceptance criteria | Ticket unreadable (401); the PR description used as the spec | | `make check` exit code | Log complete; the exit code was not captured | ## Summary - **Standards:** 1 finding, 0 blockers, 1 advisory (A1). Worst: A1, ADVISORY. - **Spec:** 1 finding, 1 blocker, 0 advisories. Worst: S1, BLOCKER. - **Advisory count:** 1, below the three-advisory line. The recommendation turns on S1 alone. Remove S1 and the verdict is merge; remove A1 and nothing changes. - **Clearing:** add the one case described under S1. The suite then passes on head and goes red on m5. - **Charter:** no escalation trigger in the diff by my reading (no ADR, branch protection, CI gate, tier-1 service, or destroy/replace). The state follows the findings, as the dispatch asks.
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 task body's manager fallback is tested with no mise on PATH (FO-50)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 51s
plan / edge-plan-check (pull_request_target) Successful in 21s
plan / runner-guest-plan-check (pull_request_target) Successful in 34s
pr-checks / env-check (pull_request) Successful in 18s
pr-checks / fmt-check (pull_request) Successful in 29s
pr-checks / validate (pull_request) Successful in 33s
pr-checks / syntax-check (pull_request) Successful in 22s
pr-checks / docs-check (pull_request) Successful in 17s
5cedc07210
On the runner, no mise is on PATH, so the task body takes its manager from
$HOME/.local/bin/mise. Every success case in the suite put a stub mise first
on PATH, so that fallback was never the branch a passing case took: changing
the fallback to a bare "mise" left the whole suite green.

Add a success case that runs the task body with no mise on PATH and HOME
pointing at a scratch directory that holds a copy of the mise stub. It asserts
the same three exec routes and the make order as the case beside it. Against
the fallback mutated to a bare "mise" the case goes red; the suite at head is
green.
Member

Round 1 report: S1 fixed in 5cedc07

Tally: 1 blocker (S1), cleared in 5cedc07. 1 advisory (A1), left alone. The review I fixed is REQUEST_CHANGES at eab3d16, 1 blocker and 1 advisory.

Finding Resolved by Verified by Result
S1 (blocker): the runner's fallback to $HOME/.local/bin/mise is untested 5cedc07: one success case in scripts/tests/semaphore-deploy.test.sh. No mise on PATH, HOME at a scratch dir holding a copy of the stub, asserts the three exec -- routes and the make order mise exec -- make deploy-test and the suite at head, plus mutant m5 on a scratch copy green at head. m5 is red on the new case

Mutant m5 (echo "$HOME/.local/bin/mise" becomes echo "mise", on a scratch copy):

  • Suite before the fix: no failure in the task-body section. m5 survives, as S1 says.
  • Suite after the fix: FAIL a deploy that starts without the manager on PATH is the task (want exit [0], got [1]), FAIL the mise route carried:, FAIL make ran: deps.
  • Three runner-play cases also fail, on an unmutated copy too. The copy has no .git, so the status step's git rev-parse HEAD fails. Those are copy artifacts, not m5.

Commands at 5cedc07 (the tree the gates ran on; nothing changed after them):

Command rc Output
mise exec -- make deps 0 toolchain and collections installed in the worktree
mise exec -- bash scripts/tests/semaphore-deploy.test.sh 0 73 ok (was 70, plus three new); semaphore-deploy tests: every case passed.
mise exec -- make check 0 245 ok; docs-check: all 5 assertions hold.
mise exec -- make validate 0 Success! 2 passed, 0 failed.
ANSIBLE_VAULT_PASSWORD_FILE=<literal in scratch> mise exec -- make syntax-check 0 playbook: site.yml. The literal is the CI job's shape, not the Operator's secret
mise exec -- make docs-check 0 docs-check: all 5 assertions hold.
mise exec -- make fmt-check 0 silent, as it is on success

Before the change, make deploy-test was rc=0 with 206 ok.

CI at 5cedc07: all eight contexts are success on their latest status. pr-checks: env-check, fmt-check, validate, syntax-check, docs-check. plan: guest-plan-check, edge-plan-check, runner-guest-plan-check.

Own review (code-review, two axes): Standards 0 hard violations, 3 judgement calls. Spec 0 missing, 0 scope creep. I left the judgement calls alone: the new block repeats the shape of the case beside it, and the TASK_PATH/HOME pair appears twice. A helper would rewrite the existing case too, which is outside this blocker.

Left alone, not in this round:

  • A1 (advisory, comment density): scripts/semaphore-deploy.sh:97-99 and the stub-header comments landed in eab3d16, not in this fix. This commit adds no comments. Left for the author.
  • PR body evidence row says 70 ok for the suite. At 5cedc07 it is 73 ok. I did not edit the body; the author should update that row.
  • actor=runner on the new case: the case beside it asserts it. S1 did not ask for it, so I did not add it.

Not verified: the real Semaphore runner's PATH. The test reproduces a no-mise PATH with a stub, not the runner process. The rest of the deploy (snapshot through verify) is still unrehearsed, as the body discloses. This change does not touch it.

## Round 1 report: S1 fixed in `5cedc07` **Tally:** 1 blocker (S1), cleared in `5cedc07`. 1 advisory (A1), left alone. The review I fixed is `REQUEST_CHANGES` at `eab3d16`, 1 blocker and 1 advisory. | Finding | Resolved by | Verified by | Result | | --- | --- | --- | --- | | **S1 (blocker)**: the runner's fallback to `$HOME/.local/bin/mise` is untested | `5cedc07`: one success case in `scripts/tests/semaphore-deploy.test.sh`. No mise on PATH, `HOME` at a scratch dir holding a copy of the stub, asserts the three `exec --` routes and the make order | `mise exec -- make deploy-test` and the suite at head, plus mutant m5 on a scratch copy | green at head. m5 is red on the new case | **Mutant m5** (`echo "$HOME/.local/bin/mise"` becomes `echo "mise"`, on a scratch copy): - Suite before the fix: no failure in the task-body section. m5 survives, as S1 says. - Suite after the fix: `FAIL a deploy that starts without the manager on PATH is the task (want exit [0], got [1])`, `FAIL the mise route carried:`, `FAIL make ran: deps`. - Three runner-play cases also fail, on an unmutated copy too. The copy has no `.git`, so the status step's `git rev-parse HEAD` fails. Those are copy artifacts, not m5. **Commands at `5cedc07`** (the tree the gates ran on; nothing changed after them): | Command | rc | Output | | --- | --- | --- | | `mise exec -- make deps` | 0 | toolchain and collections installed in the worktree | | `mise exec -- bash scripts/tests/semaphore-deploy.test.sh` | 0 | 73 `ok` (was 70, plus three new); `semaphore-deploy tests: every case passed.` | | `mise exec -- make check` | 0 | 245 `ok`; `docs-check: all 5 assertions hold.` | | `mise exec -- make validate` | 0 | `Success! 2 passed, 0 failed.` | | `ANSIBLE_VAULT_PASSWORD_FILE=<literal in scratch> mise exec -- make syntax-check` | 0 | `playbook: site.yml`. The literal is the CI job's shape, not the Operator's secret | | `mise exec -- make docs-check` | 0 | `docs-check: all 5 assertions hold.` | | `mise exec -- make fmt-check` | 0 | silent, as it is on success | Before the change, `make deploy-test` was rc=0 with 206 `ok`. **CI at `5cedc07`:** all eight contexts are `success` on their latest status. `pr-checks`: env-check, fmt-check, validate, syntax-check, docs-check. `plan`: guest-plan-check, edge-plan-check, runner-guest-plan-check. **Own review (`code-review`, two axes):** Standards 0 hard violations, 3 judgement calls. Spec 0 missing, 0 scope creep. I left the judgement calls alone: the new block repeats the shape of the case beside it, and the `TASK_PATH`/`HOME` pair appears twice. A helper would rewrite the existing case too, which is outside this blocker. **Left alone, not in this round:** - **A1 (advisory, comment density):** `scripts/semaphore-deploy.sh:97-99` and the stub-header comments landed in `eab3d16`, not in this fix. This commit adds no comments. Left for the author. - **PR body evidence row** says `70 ok` for the suite. At `5cedc07` it is `73 ok`. I did not edit the body; the author should update that row. - **`actor=runner` on the new case:** the case beside it asserts it. S1 did not ask for it, so I did not add it. **Not verified:** the real Semaphore runner's PATH. The test reproduces a no-mise PATH with a stub, not the runner process. The rest of the deploy (`snapshot` through `verify`) is still unrehearsed, as the body discloses. This change does not touch it.
Member

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

**Review started** (round 2/5) on 5cedc07210aef0f13cdb5feae17350ecb4eca8bf — reading the diff now.
bot-minos approved these changes 2026-11-16 12:49:27 +00:00
bot-minos left a comment

Review round 2/5 on head 5cedc07210. Verdict: merge (0 blockers, 2 advisories). Reviewed as bot-minos, not the author.

Recommendation: merge

Verdict

Merge. Round 1's one blocker (S1) is cleared at 5cedc07, and the delta is the test that round 1 asked for, nothing else. Every behavioural claim in the PR body holds when I run it. Two advisories stand (A1, A2): below the three-advisory line, so the recommendation rests on zero blockers, not on the count. The state follows the findings: the change reroutes the forge's own deploy task body (a tier-1 deploy path), and the dispatch narrows the hold to the findings, so the class is not a reason to withhold. Merging stays with the Operator.

Spec source. FO-50 could not be read live: scripts/fetch-vikunja-task.sh 4 50 answered /projects http=401 on both keys (run 2026-11-16 ~13:39 CET). No cached stand-in: cache/scratch/vikunja-4-50/ is empty and vikunja-FO-50/ holds no task JSON. The spec is the PR description's claims, as written.

Prior review. list_pull_reviews read before posting: #722 (bot-minos, REQUEST_CHANGES, eab3d16, dismissed: false). This APPROVE at 5cedc07 supersedes it.

Prior blocker

Finding Resolved by Evidence
S1 BLOCKER (eab3d16): manager fallback $HOME/.local/bin/mise untested 5cedc07, scripts/tests/semaphore-deploy.test.sh:323-341: no mise on PATH, HOME holds a stub mise, asserts the three exec -- routes and the make order Mutant m5 (fallback reads bare mise) on a copy of head: 3 FAIL, all in that case, so red. Head: 73 ok, 0 FAIL, two runs. Cleared

Delta: git diff eab3d16 5cedc07 is scripts/tests/semaphore-deploy.test.sh +20/-0 only. scripts/semaphore-deploy.sh is blob 41f5de7 at both heads.

Standards

# Finding Sev Evidence
A1 Comment density (carried from round 1) ADVISORY scripts/semaphore-deploy.sh:97-99; scripts/tests/semaphore-deploy.test.sh:230-232, 241. Against AGENTS.md §Code comments ("Keep comments to a minimum"). Judgement: the 3-line reason for the bare make deps may fall under the exception; the test-file comments are the ones to cut. Unchanged at 5cedc07

Passes: AGENTS.md §Toolchain. make deps bare (:100); env, prod, verify under "$mise_bin" exec -- (:104, :112, :113); the fallback equals MISE_FALLBACK := $(HOME)/.local/bin/mise (Makefile:25). Workshop ADRs read at origin/main: 0001 (toolchain declared; the change routes through it), 0009/0010/0011 (deploy by merge; no destroy or replace in the diff). Charter (1)-(4): no Stack or plan job touched and the plan contexts are green; no ADR at head changed; no literal secret in the diff (the only token is the stub literal stub-token); end-to-end run below.

Spec

# Finding Sev Evidence
A2 The PR body's evidence counts describe eab3d16, not 5cedc07 ADVISORY Body suite row says "70 ok"; head is 73 ok, 0 FAIL. Body make check row says "242 ok lines"; head is 245, rc 0. Round 1 flagged the same row; still stale. Refresh before merge

Claims checked at head (all hold):

PR claim Where at head Pinned by
env, prod, verify run under mise; deps bare script:100, 104, 112, 113 m1 env bare: 3 FAIL; m2 prod bare: 2 FAIL; m3 verify bare: 2 FAIL
manager resolved; red naming it when absent script:101-102 m4 check removed: 1 FAIL ("the red names the manager")
env fetched as the runner through mise script:104 m6 ACTOR dropped: 1 FAIL
fallback reaches the home-directory manager script:101 m5: 3 FAIL

Named, not charged

Item Where Why not charged
report failure's jq is bare inside status() scripts/semaphore-deploy.sh:201-204 (untouched by the diff) Reproduced: with no jq on PATH, status failure gives jq: command not found (line 204), then "the status call did not answer", rc 1. Before this change the task died at make env and never reached it, so no failure status was posted then either: the visible outcome is the same. The PR body discloses it. The runbook's promise (docs/runbooks/0001-deploy-and-rollback.md:443-450, the red posted before make prod) does not hold on the runner until this is fixed. A follow-up task, or fold it in: your call
Steps after make env on a runner-shaped environment — Author disclosed; not rehearsed by me either

Verified

Check How Result
Head git ls-remote origin refs/pull/105/head at start, after the probes, and before posting 5cedc07, unchanged
Delta git diff eab3d16 5cedc07 test file +20/-0 only
make deploy-test at head mise exec -- make deploy-test rc 0; 209 ok, 0 FAIL
Semaphore suite at head mise exec -- bash scripts/tests/semaphore-deploy.test.sh, two runs 73 ok, 0 FAIL both
make check at head mise exec -- make check on an unmutated copy rc 0; 245 ok; docs-check all 5 hold
Mutants at head (scratch copies) sed on a copy, suite run m1 3 FAIL, m2 2, m3 2, m4 1, m5 3, m6 1: each red on its claim
report failure jq no-jq PATH, status failure, forge URL unreachable reproduced as above
CI at 5cedc07 get_commit_statuses latest status of all 8 contexts: success
PR body re-read before posting unchanged; updated_at moved only on the sign-on

Not verified

Claim Why
FO-50 acceptance criteria Tracker 401; no cached copy
make env against the store ("refused: … no seed") A review does not contact the store; not run
Task 30's log and the before state Semaphore's database is not reachable from this host
snapshot … verify on a runner-shaped environment Author disclosed; not rehearsed
The real Semaphore runner's PATH and mise trust The test is stub-driven

Summary

  • Standards: 1 finding, 0 blockers, 1 advisory (A1). Worst: A1, ADVISORY.
  • Spec: 1 finding, 0 blockers, 1 advisory (A2). Worst: A2, ADVISORY.
  • Advisories: 2, below the three-advisory line. Delete either one and the verdict does not move.
  • Before merge, optionally: refresh the A2 counts, and decide on the status() jq named above.
<!-- minos review-loop: repo=olympus/infra-forge pr=105 head=5cedc07210aef0f13cdb5feae17350ecb4eca8bf round=2/5 axes=standards,spec verdict=merge --> Review round 2/5 on head 5cedc07210aef0f13cdb5feae17350ecb4eca8bf. Verdict: merge (0 blockers, 2 advisories). Reviewed as bot-minos, not the author. Recommendation: merge ## Verdict **Merge.** Round 1's one blocker (S1) is cleared at 5cedc07, and the delta is the test that round 1 asked for, nothing else. Every behavioural claim in the PR body holds when I run it. Two advisories stand (A1, A2): below the three-advisory line, so the recommendation rests on zero blockers, not on the count. The state follows the findings: the change reroutes the forge's own deploy task body (a tier-1 deploy path), and the dispatch narrows the hold to the findings, so the class is not a reason to withhold. Merging stays with the Operator. **Spec source.** FO-50 could not be read live: `scripts/fetch-vikunja-task.sh 4 50` answered `/projects http=401` on both keys (run 2026-11-16 ~13:39 CET). No cached stand-in: `cache/scratch/vikunja-4-50/` is empty and `vikunja-FO-50/` holds no task JSON. The spec is the PR description's claims, as written. **Prior review.** `list_pull_reviews` read before posting: #722 (bot-minos, REQUEST_CHANGES, eab3d16, `dismissed: false`). This APPROVE at 5cedc07 supersedes it. ## Prior blocker | Finding | Resolved by | Evidence | |---|---|---| | S1 BLOCKER (eab3d16): manager fallback `$HOME/.local/bin/mise` untested | 5cedc07, `scripts/tests/semaphore-deploy.test.sh:323-341`: no mise on PATH, HOME holds a stub mise, asserts the three `exec --` routes and the make order | Mutant m5 (fallback reads bare `mise`) on a copy of head: 3 FAIL, all in that case, so red. Head: 73 ok, 0 FAIL, two runs. Cleared | Delta: `git diff eab3d16 5cedc07` is `scripts/tests/semaphore-deploy.test.sh` +20/-0 only. `scripts/semaphore-deploy.sh` is blob `41f5de7` at both heads. ## Standards | # | Finding | Sev | Evidence | |---|---|---|---| | A1 | Comment density (carried from round 1) | ADVISORY | `scripts/semaphore-deploy.sh:97-99`; `scripts/tests/semaphore-deploy.test.sh:230-232, 241`. Against `AGENTS.md §Code comments` ("Keep comments to a minimum"). Judgement: the 3-line reason for the bare `make deps` may fall under the exception; the test-file comments are the ones to cut. Unchanged at 5cedc07 | Passes: `AGENTS.md §Toolchain`. `make deps` bare (`:100`); `env`, `prod`, `verify` under `"$mise_bin" exec --` (`:104, :112, :113`); the fallback equals `MISE_FALLBACK := $(HOME)/.local/bin/mise` (Makefile:25). Workshop ADRs read at `origin/main`: 0001 (toolchain declared; the change routes through it), 0009/0010/0011 (deploy by merge; no destroy or replace in the diff). Charter (1)-(4): no Stack or plan job touched and the plan contexts are green; no ADR at head changed; no literal secret in the diff (the only token is the stub literal `stub-token`); end-to-end run below. ## Spec | # | Finding | Sev | Evidence | |---|---|---|---| | A2 | The PR body's evidence counts describe eab3d16, not 5cedc07 | ADVISORY | Body suite row says "70 ok"; head is 73 ok, 0 FAIL. Body `make check` row says "242 `ok` lines"; head is 245, rc 0. Round 1 flagged the same row; still stale. Refresh before merge | Claims checked at head (all hold): | PR claim | Where at head | Pinned by | |---|---|---| | `env`, `prod`, `verify` run under mise; `deps` bare | script:100, 104, 112, 113 | m1 env bare: 3 FAIL; m2 prod bare: 2 FAIL; m3 verify bare: 2 FAIL | | manager resolved; red naming it when absent | script:101-102 | m4 check removed: 1 FAIL ("the red names the manager") | | `env` fetched as the runner through mise | script:104 | m6 ACTOR dropped: 1 FAIL | | fallback reaches the home-directory manager | script:101 | m5: 3 FAIL | ## Named, not charged | Item | Where | Why not charged | |---|---|---| | `report failure`'s `jq` is bare inside `status()` | `scripts/semaphore-deploy.sh:201-204` (untouched by the diff) | Reproduced: with no `jq` on PATH, `status failure` gives `jq: command not found` (line 204), then "the status call did not answer", rc 1. Before this change the task died at `make env` and never reached it, so no failure status was posted then either: the visible outcome is the same. The PR body discloses it. The runbook's promise (`docs/runbooks/0001-deploy-and-rollback.md:443-450`, the red posted before `make prod`) does not hold on the runner until this is fixed. A follow-up task, or fold it in: your call | | Steps after `make env` on a runner-shaped environment | — | Author disclosed; not rehearsed by me either | ## Verified | Check | How | Result | |---|---|---| | Head | `git ls-remote origin refs/pull/105/head` at start, after the probes, and before posting | 5cedc07, unchanged | | Delta | `git diff eab3d16 5cedc07` | test file +20/-0 only | | `make deploy-test` at head | `mise exec -- make deploy-test` | rc 0; 209 ok, 0 FAIL | | Semaphore suite at head | `mise exec -- bash scripts/tests/semaphore-deploy.test.sh`, two runs | 73 ok, 0 FAIL both | | `make check` at head | `mise exec -- make check` on an unmutated copy | rc 0; 245 ok; docs-check all 5 hold | | Mutants at head (scratch copies) | sed on a copy, suite run | m1 3 FAIL, m2 2, m3 2, m4 1, m5 3, m6 1: each red on its claim | | `report failure` jq | no-jq PATH, `status failure`, forge URL unreachable | reproduced as above | | CI at 5cedc07 | `get_commit_statuses` | latest status of all 8 contexts: success | | PR body | re-read before posting | unchanged; `updated_at` moved only on the sign-on | ## Not verified | Claim | Why | |---|---| | FO-50 acceptance criteria | Tracker 401; no cached copy | | `make env` against the store ("refused: … no seed") | A review does not contact the store; not run | | Task 30's log and the before state | Semaphore's database is not reachable from this host | | `snapshot … verify` on a runner-shaped environment | Author disclosed; not rehearsed | | The real Semaphore runner's PATH and `mise trust` | The test is stub-driven | ## Summary - **Standards:** 1 finding, 0 blockers, 1 advisory (A1). Worst: A1, ADVISORY. - **Spec:** 1 finding, 0 blockers, 1 advisory (A2). Worst: A2, ADVISORY. - **Advisories:** 2, below the three-advisory line. Delete either one and the verdict does not move. - **Before merge, optionally:** refresh the A2 counts, and decide on the `status()` jq named above.
pit merged commit 04a6bb5bd3 into main 2026-11-16 12:53:59 +00:00
pit deleted branch hermes/FO-50-the-task-body-runs-make-under-mise 2026-11-16 12:53:59 +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!105
No description provided.