The deploy's red-first status is built under the manager, and an empty one is never posted (FO-50) #106

Merged
pit merged 3 commits from hermes/FO-50-the-red-first-status-is-built-under-mise into main 2026-11-16 15:06:14 +00:00
Owner

Ticket: FO-50 (Deploy infra-forge on a merge to main). This is the second fix out of the forge's first deploy: the report #105's body noticed and left out.

Summary

The first deploy past make env (Actions run 195, Semaphore task 31, the merge of #105, 16 Nov) never put its red-first status on the commit. Task 31's log:

scripts/semaphore-deploy.sh: line 204: jq: command not found
semaphore-deploy: the 'failure' status is on 04a6bb5bd387af540df588eda1ca063af03331a5 as 'deploy (play)'.

The commit then carried one status row with no state and no context (created at 12:54:27Z) and no deploy (play) row. status builds its JSON with a bare jq, and the task body's own shell has the runner's PATH, with none of mise's tools: the hole #105 closed for the makes. The empty body was POSTed anyway, the forge answered 201, and status reported the status as set. For this merge the workflow's own red covered it. A merge touching runner/ starts the task with --no-wait, its job exits green, and the play's red is the only red its commit gets, so there the same line would leave a green commit over a failed apply.

+JQ=(jq)
 ...
   [ -x "$mise_bin" ] || red "mise is not installed at $mise_bin; make deps should have installed it"
+  JQ=("$mise_bin" exec -- jq)
 ...
-  make_config forgejo
-  body=$(jq -n --arg state "$state" --arg context "$CONTEXT" \
+  body=$("${JQ[@]}" -n --arg state "$state" --arg context "$CONTEXT" \
     ...
     '{state: $state, context: $context, description: $description, target_url: $url}')
+  [ -n "$body" ] || { warn "the status body could not be built with jq; no status was posted on ${sha}"; return 1; }
+  make_config forgejo

Two claims, each pinned:

  • the task body builds its red status under the manager, as it runs the makes; start and the play's status success keep reading jq from their PATH, as before;
  • a status body that comes out empty is never posted: status says so and returns 1, which the task body already answers with "the commit could not be marked red; the deploy carries on", and the token file is not made for a call that posts nothing.

Evidence

Before (main) After (this branch)
status failure under a runner-shaped PATH (coreutils, bash, curl, git, no jq), env -i, against the repository's stub of the forge exit 0; line 204: jq: command not found; "the 'failure' status is on 04a6bb5… as 'deploy (play)'"; the stub recorded {"body": {}}, the live commit's empty row exit 1; "the status body could not be built with jq; no status was posted on 04a6bb5…"; the stub recorded no call
scripts/tests/semaphore-deploy.test.sh 73 ok on main; this branch's cases against main's script: 77 ok, 10 FAIL (the bare-jq error, the empty body in the forge, the false "set") 87 ok, 0 FAIL: 14 new assertions
mutants, each on a copy of the tree 7 of 7 turn the suite red on the claim they target: the task body's bare jq; status's bare jq; the empty-body guard removed; the guard made a silent pass; the token file made before the body; a refused report stopping the deploy; the manager route naming another tool
mise exec -- make check 259 ok, no FAIL, no make error; the deploy suite is the only one that changed (73 to 87)

The old cases never saw the bare jq: a stub on the host's PATH finds every tool the host has. The new ones run the task body on a PATH built from an allow-list (bash, env, cat, rm, mktemp, chmod, curl, git, dirname) and give the stub manager a directory of its own for jq, so a tool the body calls bare is a command not found in the log and an assertion that names it.

Not run: the task-body route is proved against the suite's stub manager, which records exec -- jq, and not on the runner. The live proof is the first deploy after this merge: its commit should carry a deploy (play) failure with a state and a context, then success once the runner play's roles return. The play's own status success call has not run live yet.

Merge Danger

  • Door: a merge to main is the deploy (workshop ADR-0009). This merge re-runs the deploy that run 195 stopped at runner-guest, a step that tried to reboot the runner's Guest and was refused. The change that step wanted had landed before the refusal (the Guest reads the Stack's 4096 MB since 12:54:39Z), so runner-guest should now plan empty; that is read from the Guest, not re-planned. After it, runner-service, service, edge and verify run for the first time and are unrehearsed: what they change on 141 and 146 is unread, and runner-service carries a restart forgejo-runner handler on the Guest where the Actions job runs. The push touches no runner/ file, so the job waits for its task. A task deploys the tip of main when it starts, so this change is in the task it starts.
  • Blast radius: scripts/semaphore-deploy.sh, its stub test and one sentence of the deploy runbook. The workflow, the Makefile and every Target are unchanged.

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

**Ticket:** FO-50 (Deploy infra-forge on a merge to main). This is the second fix out of the forge's first deploy: the report #105's body noticed and left out. ## Summary The first deploy past `make env` (Actions run 195, Semaphore task 31, the merge of #105, 16 Nov) never put its red-first status on the commit. Task 31's log: ``` scripts/semaphore-deploy.sh: line 204: jq: command not found semaphore-deploy: the 'failure' status is on 04a6bb5bd387af540df588eda1ca063af03331a5 as 'deploy (play)'. ``` The commit then carried one status row with no state and no context (created at 12:54:27Z) and no `deploy (play)` row. `status` builds its JSON with a bare `jq`, and the task body's own shell has the runner's `PATH`, with none of mise's tools: the hole #105 closed for the makes. The empty body was POSTed anyway, the forge answered 201, and `status` reported the status as set. For this merge the workflow's own red covered it. A merge touching `runner/` starts the task with `--no-wait`, its job exits green, and the play's red is the only red its commit gets, so there the same line would leave a green commit over a failed apply. ```diff +JQ=(jq) ... [ -x "$mise_bin" ] || red "mise is not installed at $mise_bin; make deps should have installed it" + JQ=("$mise_bin" exec -- jq) ... - make_config forgejo - body=$(jq -n --arg state "$state" --arg context "$CONTEXT" \ + body=$("${JQ[@]}" -n --arg state "$state" --arg context "$CONTEXT" \ ... '{state: $state, context: $context, description: $description, target_url: $url}') + [ -n "$body" ] || { warn "the status body could not be built with jq; no status was posted on ${sha}"; return 1; } + make_config forgejo ``` Two claims, each pinned: - the task body builds its red status under the manager, as it runs the makes; `start` and the play's `status success` keep reading `jq` from their `PATH`, as before; - a status body that comes out empty is never posted: `status` says so and returns 1, which the task body already answers with "the commit could not be marked red; the deploy carries on", and the token file is not made for a call that posts nothing. ## Evidence | | Before (`main`) | After (this branch) | | --- | --- | --- | | `status failure` under a runner-shaped `PATH` (coreutils, bash, curl, git, no `jq`), `env -i`, against the repository's stub of the forge | exit 0; `line 204: jq: command not found`; "the 'failure' status is on 04a6bb5… as 'deploy (play)'"; the stub recorded `{"body": {}}`, the live commit's empty row | exit 1; "the status body could not be built with jq; no status was posted on 04a6bb5…"; the stub recorded no call | | `scripts/tests/semaphore-deploy.test.sh` | 73 ok on `main`; this branch's cases against `main`'s script: 77 ok, 10 FAIL (the bare-jq error, the empty body in the forge, the false "set") | 87 ok, 0 FAIL: 14 new assertions | | mutants, each on a copy of the tree | | 7 of 7 turn the suite red on the claim they target: the task body's bare `jq`; `status`'s bare `jq`; the empty-body guard removed; the guard made a silent pass; the token file made before the body; a refused report stopping the deploy; the manager route naming another tool | | `mise exec -- make check` | | 259 `ok`, no FAIL, no make error; the deploy suite is the only one that changed (73 to 87) | The old cases never saw the bare `jq`: a stub on the host's `PATH` finds every tool the host has. The new ones run the task body on a `PATH` built from an allow-list (bash, env, cat, rm, mktemp, chmod, curl, git, dirname) and give the stub manager a directory of its own for `jq`, so a tool the body calls bare is a `command not found` in the log and an assertion that names it. **Not run:** the task-body route is proved against the suite's stub manager, which records `exec -- jq`, and not on the runner. The live proof is the first deploy after this merge: its commit should carry a `deploy (play)` `failure` with a state and a context, then `success` once the runner play's roles return. The play's own `status success` call has not run live yet. ## Merge Danger - **Door:** a merge to `main` is the deploy (workshop ADR-0009). This merge re-runs the deploy that run 195 stopped at `runner-guest`, a step that tried to reboot the runner's Guest and was refused. The change that step wanted had landed before the refusal (the Guest reads the Stack's 4096 MB since 12:54:39Z), so `runner-guest` should now plan empty; that is read from the Guest, not re-planned. After it, `runner-service`, `service`, `edge` and `verify` run for the first time and are unrehearsed: what they change on 141 and 146 is unread, and `runner-service` carries a `restart forgejo-runner` handler on the Guest where the Actions job runs. The push touches no `runner/` file, so the job waits for its task. A task deploys the tip of `main` when it starts, so this change is in the task it starts. - **Blast radius:** `scripts/semaphore-deploy.sh`, its stub test and one sentence of the deploy runbook. The workflow, the Makefile and every Target are unchanged. Agent-written (Hermes), for the Operator's review and merge.
The deploy's red-first status is built under the manager, and an empty one is never posted (FO-50)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 22s
plan / edge-plan-check (pull_request_target) Successful in 20s
plan / runner-guest-plan-check (pull_request_target) Successful in 19s
pr-checks / env-check (pull_request) Successful in 16s
pr-checks / fmt-check (pull_request) Successful in 17s
pr-checks / syntax-check (pull_request) Successful in 17s
pr-checks / docs-check (pull_request) Successful in 14s
pr-checks / validate (pull_request) Successful in 20s
83487887ae
The task body's first report, `failure` before `make prod`, builds its JSON with
a bare `jq`, and a Semaphore task's PATH holds none of mise's tools. On the
forge's first real deploy the call died with `jq: command not found`, the empty
body was POSTed anyway, the forge answered 201 and kept a status row with no
state and no context, and the log said the `failure` status was set on the
commit. No `deploy (play)` status landed.

- The task body points `JQ` at `mise exec -- jq` once it has found the manager,
  as it already does for the makes; every other caller keeps jq on its PATH.
- `status` builds its body before it makes the token file, and refuses to post
  an empty one: it says so and returns 1, which the task body already treats as
  "the commit could not be marked red; the deploy carries on".
- The deploy suite gains the cases that were missing: a runner-shaped PATH with
  no jq (an allow-list of tools, because a stub on the host's PATH finds
  everything), the red status carried through the manager, the deploy carrying
  on when no body can be built, and `status` refusing with no jq at all.
- The runbook's line on a red that does not land names the unbuildable body.
Member

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

**Review started** (round 1/5) on 83487887ae7831122cd07d5f22eebd7e42b49592 — reading the diff now.
Author
Owner

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

**Loop stopped** — the review dispatch produced no outcome for 20 minutes. Nothing else happens on this PR until its state label changes.
bot-minos requested changes 2026-11-16 14:01:44 +00:00
Dismissed
bot-minos left a comment

Round 1/5 · head 83487887ae78 · verdict: fix — 0 blockers, 3 advisories. The recommendation turns on the count, not the weight: no finding below blocks. The fix is three small edits, to be batched in one round.

Recommendation: fix

Prior reviews on this PR: none (list_pull_reviews empty when read), so the round is 0 + 1. The dispatch's 1 of 5 agrees. The step-0 sign-on is comment 6348 and is not counted here.

Claims, checked

Claim (PR body) How checked Result
The red-first status is built under the manager head suite (87/87); real mise exec -- jq from a PATH with no jq; mutant m3 confirmed
An empty body is never posted; status returns 1; no token file for a call that posts nothing head suite; mutants m2, m4, m5 confirmed in substance; wrong-reason assertions, see P2
The new cases fail on main's script head suite run against main's script confirmed (7 of 14 new assertions red); the PR's "78 ok, 10 FAIL" does not reproduce, see P1
The runbook sentence is accurate read against script 117 and 210-215 confirmed
Blast radius: three files; workflow, Makefile and Targets unchanged git diff --name-only confirmed

Spec source: the PR body (FO-50). The live fetch of FO-50 failed: fetch-vikunja-task.sh 4 50 answered http=401 on both keys at 2026-11-16T13:39:48Z. There is no cached copy (cache/scratch/vikunja-4-50/ is empty). The spec is the PR body's two pinned claims plus the runbook sentence it edits.

Standards source: AGENTS.md (§Code comments, lines 36-38; §Toolchain; §Secrets) and olympus/workshop docs/adr/0009, 0010, 0011, read at origin/main 38bf01c9. ADR-0009 requires that a deploy report its result where the merge is visible; this change is that requirement.

Standards

# Severity Where Finding
S1 ADVISORY scripts/tests/semaphore-deploy.test.sh:336-341 An incident story in a code comment. AGENTS.md:38 says keep comments to a minimum and propose a docs/ page for longer explanation. The block recounts the bug ("a bare jq there posted an empty body, which the forge answered 201 …"), and that history already lives in the PR body. The "why" comments in this file match its existing practice (main's script already carries 68 comment lines), so only the narrative is charged.

Smell baseline: nothing above the nit line. The repeated make ran assertion (test lines 380 and 421) has the shape of the pre-existing one at line 324, so it is not charged.

Spec

# Severity Where Finding
P1 ADVISORY PR body, evidence table, row "scripts/tests/… main's script" The number does not reproduce. The head suite against main's script gives 80 ok, 7 FAIL (87 total; red2-main-script.log). "78 ok, 10 FAIL" sums to 88, and the suite has 87 assertions. The substance reproduces: all seven failing assertions are new cases (bare jq, empty POST, false report). The PR body becomes the squash commit (repo default_merge_style: squash), so the number goes into history.
P2 ADVISORY scripts/tests/semaphore-deploy.test.sh:387-406 "a status body that cannot be built is not posted" passes on main for the wrong reason in three of its four assertions. With TMPDIR pointing at a missing directory, main fails at mktemp ("mktemp: failed to create file via template … no-such-dir") before any POST. So exit 1 (line 394), "nothing is reported as set" (line 396) and "nothing reached the forge" (line 401) all pass on main. Mutant m2 (guard removed) also passes line 394 through the same mktemp failure. Only line 395 (the status body could not be built) discriminates. The claim is not untested: the "carries on" case (lines 369-385, TMPDIR="$TMP") fails on main and under m2 for the right reason ("an unbuildable body reached the forge"). This is a wrong-reason test, not a missing one. The smallest fix: run the no-post assertion under a writable TMPDIR, where main POSTs an empty body, and keep the missing-directory run for the message only.

Spec axis: no requirement is missing or partial. Both pinned claims are implemented (script 63, 109, 117, 210-215), and the runbook sentence (runbook 454-456) matches the code. No scope creep: the three files are the blast radius the body names. start (script 134, 137, 146) keeps bare jq, as the body says it does; see named.

Named, not charged

  • scripts/semaphore-deploy.sh:134, 137, 146 (start, task_status) still call bare jq. The diff does not touch them, and the body says that is deliberate. Not charged.
  • The merge is the deploy (ADR-0009). The body discloses that the merge runs runner-guest, runner-service, service, edge and verify for the first time. That is not this diff's change. CI's runner-guest-plan-check is green at head (run 196). I did not re-plan it.
  • Charter escalation check. Destroy or replace: none; no Stack is in the diff, and the plan judge is green. Tier-1: the diff changes no service's configuration, and the apply order in the task body (script 117, 119-120) is unchanged. ADR: none changed. Branch protection: none. CI gate: .forgejo/, Makefile, mise.*, env.map and docs/adr are untouched; the status context deploy (play) (script 57) is unchanged; the workflow file, the context names, the job names and the targets are all unchanged. Judgement: no board task opened. If the board reads the deploy script as tier-1, that is an overrule for Zeus.

What I verified, and how

Check How Result
Head equals the dispatch git ls-remote origin refs/pull/106/head; worktree at that SHA 83487887… matches
Base is current base.sha = merge-base = 04a6bb5; one commit ahead no stale base
Suite at head mise exec -- make deploy-test semaphore-deploy 87 ok, 0 FAIL; target RC 0
Docs gate mise exec -- make docs-check 5 of 5 hold; RC 0
Pinned tool mise.toml:8 jq = "1.7"; mise exec -- which jq resolves to ~/.local/share/mise/installs/jq/1.7/jq
Real route with no jq on PATH env -i PATH=/usr/bin:/bin mise exec -- jq -n … prints the status body; RC 0
Mutation wave, copies of head with .git kept m1 bare jq in status; m2 no guard; m3 no manager jq; m4 guard returns 0; m5 token before body; m6 red stops the deploy; m7 wrong tool all seven RC 1; each FAIL line names the defence it targets
Red/green pair head suite against main's script 7 new assertions red on main
Head control suite on the head worktree 87 ok, 0 FAIL; RC 0
CI at head get_commit_statuses; list_workflow_runs pr-checks run 197 and plan run 196 green on the newest status per context
Whitespace git diff --check clean
Gate boundary git diff --name-only no gate or ADR file in the diff

Could not verify:

  • The live proof: a task on Semaphore (145) and the commit status on the forge. Not run. The body says so, and I agree the first deploy after the merge is that proof.
  • FO-50's contents (Vikunja answered 401; see Spec source).
  • The four unrehearsed layers after the merge. Out of this diff.
  • The workflow runner image's jq, which the start path relies on. Not inspected; that path is unchanged.

Summary

Axis Blockers Advisories Worst
Standards 0 1 (S1) S1: narrative comment
Spec 0 2 (P1, P2) P2: wrong-reason assertions

Total advisories: 3. The recommendation is fix because the count is three, not because a blocker stands. Zero blockers stand. The batch that clears it: trim S1's narrative, correct P1's number, and run P2's no-post assertion under a writable TMPDIR. No change to the deploy logic is needed.

State: REQUEST_CHANGES. Label: review/needs-fix.

<!-- minos review-loop: repo=olympus/infra-forge pr=106 head=83487887ae7831122cd07d5f22eebd7e42b49592 round=1/5 axes=standards,spec verdict=fix --> **Round 1/5 · head `83487887ae78` · verdict: fix** — 0 blockers, 3 advisories. The recommendation turns on the count, not the weight: no finding below blocks. The fix is three small edits, to be batched in one round. Recommendation: fix Prior reviews on this PR: none (`list_pull_reviews` empty when read), so the round is 0 + 1. The dispatch's `1 of 5` agrees. The step-0 sign-on is comment 6348 and is not counted here. ### Claims, checked | Claim (PR body) | How checked | Result | |---|---|---| | The red-first status is built under the manager | head suite (87/87); real `mise exec -- jq` from a PATH with no jq; mutant m3 | confirmed | | An empty body is never posted; `status` returns 1; no token file for a call that posts nothing | head suite; mutants m2, m4, m5 | confirmed in substance; wrong-reason assertions, see P2 | | The new cases fail on `main`'s script | head suite run against `main`'s script | confirmed (7 of 14 new assertions red); the PR's "78 ok, 10 FAIL" does not reproduce, see P1 | | The runbook sentence is accurate | read against script 117 and 210-215 | confirmed | | Blast radius: three files; workflow, Makefile and Targets unchanged | `git diff --name-only` | confirmed | Spec source: the PR body (FO-50). The live fetch of FO-50 failed: `fetch-vikunja-task.sh 4 50` answered `http=401` on both keys at 2026-11-16T13:39:48Z. There is no cached copy (`cache/scratch/vikunja-4-50/` is empty). The spec is the PR body's two pinned claims plus the runbook sentence it edits. Standards source: `AGENTS.md` (§Code comments, lines 36-38; §Toolchain; §Secrets) and `olympus/workshop` `docs/adr/0009`, `0010`, `0011`, read at `origin/main` 38bf01c9. ADR-0009 requires that a deploy report its result where the merge is visible; this change is that requirement. ## Standards | # | Severity | Where | Finding | |---|---|---|---| | S1 | ADVISORY | `scripts/tests/semaphore-deploy.test.sh:336-341` | An incident story in a code comment. `AGENTS.md:38` says keep comments to a minimum and propose a `docs/` page for longer explanation. The block recounts the bug ("a bare jq there posted an empty body, which the forge answered 201 …"), and that history already lives in the PR body. The "why" comments in this file match its existing practice (`main`'s script already carries 68 comment lines), so only the narrative is charged. | Smell baseline: nothing above the nit line. The repeated `make ran` assertion (test lines 380 and 421) has the shape of the pre-existing one at line 324, so it is not charged. ## Spec | # | Severity | Where | Finding | |---|---|---|---| | P1 | ADVISORY | PR body, evidence table, row "`scripts/tests/…` `main`'s script" | The number does not reproduce. The head suite against `main`'s script gives **80 ok, 7 FAIL** (87 total; `red2-main-script.log`). "78 ok, 10 FAIL" sums to 88, and the suite has 87 assertions. The substance reproduces: all seven failing assertions are new cases (bare jq, empty POST, false report). The PR body becomes the squash commit (repo `default_merge_style: squash`), so the number goes into history. | | P2 | ADVISORY | `scripts/tests/semaphore-deploy.test.sh:387-406` | "a status body that cannot be built is not posted" passes on `main` for the wrong reason in three of its four assertions. With `TMPDIR` pointing at a missing directory, `main` fails at `mktemp` ("mktemp: failed to create file via template … no-such-dir") before any POST. So `exit 1` (line 394), "nothing is reported as set" (line 396) and "nothing reached the forge" (line 401) all pass on `main`. Mutant m2 (guard removed) also passes line 394 through the same `mktemp` failure. Only line 395 (`the status body could not be built`) discriminates. The claim is not untested: the "carries on" case (lines 369-385, `TMPDIR="$TMP"`) fails on `main` and under m2 for the right reason ("an unbuildable body reached the forge"). This is a wrong-reason test, not a missing one. The smallest fix: run the no-post assertion under a writable `TMPDIR`, where `main` POSTs an empty body, and keep the missing-directory run for the message only. | Spec axis: no requirement is missing or partial. Both pinned claims are implemented (script 63, 109, 117, 210-215), and the runbook sentence (runbook 454-456) matches the code. No scope creep: the three files are the blast radius the body names. `start` (script 134, 137, 146) keeps bare `jq`, as the body says it does; see named. ## Named, not charged - `scripts/semaphore-deploy.sh:134, 137, 146` (`start`, `task_status`) still call bare `jq`. The diff does not touch them, and the body says that is deliberate. Not charged. - The merge is the deploy (ADR-0009). The body discloses that the merge runs `runner-guest`, `runner-service`, `service`, `edge` and `verify` for the first time. That is not this diff's change. CI's `runner-guest-plan-check` is green at head (run 196). I did not re-plan it. - Charter escalation check. Destroy or replace: none; no Stack is in the diff, and the plan judge is green. Tier-1: the diff changes no service's configuration, and the apply order in the task body (script 117, 119-120) is unchanged. ADR: none changed. Branch protection: none. CI gate: `.forgejo/`, `Makefile`, `mise.*`, `env.map` and `docs/adr` are untouched; the status context `deploy (play)` (script 57) is unchanged; the workflow file, the context names, the job names and the targets are all unchanged. Judgement: no board task opened. If the board reads the deploy script as tier-1, that is an overrule for Zeus. ## What I verified, and how | Check | How | Result | |---|---|---| | Head equals the dispatch | `git ls-remote origin refs/pull/106/head`; worktree at that SHA | `83487887…` matches | | Base is current | `base.sha` = merge-base = `04a6bb5`; one commit ahead | no stale base | | Suite at head | `mise exec -- make deploy-test` | semaphore-deploy 87 ok, 0 FAIL; target RC 0 | | Docs gate | `mise exec -- make docs-check` | 5 of 5 hold; RC 0 | | Pinned tool | `mise.toml:8` `jq = "1.7"`; `mise exec -- which jq` | resolves to `~/.local/share/mise/installs/jq/1.7/jq` | | Real route with no jq on PATH | `env -i PATH=/usr/bin:/bin mise exec -- jq -n …` | prints the status body; RC 0 | | Mutation wave, copies of head with `.git` kept | m1 bare jq in `status`; m2 no guard; m3 no manager jq; m4 guard returns 0; m5 token before body; m6 red stops the deploy; m7 wrong tool | all seven RC 1; each FAIL line names the defence it targets | | Red/green pair | head suite against `main`'s script | 7 new assertions red on `main` | | Head control | suite on the head worktree | 87 ok, 0 FAIL; RC 0 | | CI at head | `get_commit_statuses`; `list_workflow_runs` | pr-checks run 197 and plan run 196 green on the newest status per context | | Whitespace | `git diff --check` | clean | | Gate boundary | `git diff --name-only` | no gate or ADR file in the diff | Could not verify: - The live proof: a task on Semaphore (145) and the commit status on the forge. Not run. The body says so, and I agree the first deploy after the merge is that proof. - FO-50's contents (Vikunja answered 401; see Spec source). - The four unrehearsed layers after the merge. Out of this diff. - The workflow runner image's `jq`, which the `start` path relies on. Not inspected; that path is unchanged. ## Summary | Axis | Blockers | Advisories | Worst | |---|---|---|---| | Standards | 0 | 1 (S1) | S1: narrative comment | | Spec | 0 | 2 (P1, P2) | P2: wrong-reason assertions | Total advisories: 3. The recommendation is `fix` because the count is three, not because a blocker stands. Zero blockers stand. The batch that clears it: trim S1's narrative, correct P1's number, and run P2's no-post assertion under a writable `TMPDIR`. No change to the deploy logic is needed. State: `REQUEST_CHANGES`. Label: `review/needs-fix`.
Member

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

**Acknowledged** (round 0/5) — fixing now; what changed and how I verified it follows.
The refusal case ran under a TMPDIR that does not exist, and make_config
fails there too: main's script died at mktemp before any POST, so the
no-POST assertions passed on main for the wrong reason. Run the refusal
under a writable TMPDIR, where main's empty body reaches the stub and the
exit, the "reported as set" and the "reached the forge" checks all turn
red. The missing-directory run stays, for the refusal message only.

Review of #106, round 0, finding P2.
The deploy suite's task-body comment states the reason, not the incident (FO-50)
All checks were successful
plan / runner-guest-plan-check (pull_request_target) Successful in 49s
plan / guest-plan-check (pull_request_target) Successful in 41s
plan / edge-plan-check (pull_request_target) Successful in 27s
pr-checks / env-check (pull_request) Successful in 36s
pr-checks / fmt-check (pull_request) Successful in 21s
pr-checks / validate (pull_request) Successful in 48s
pr-checks / syntax-check (pull_request) Successful in 21s
pr-checks / docs-check (pull_request) Successful in 22s
038a4330cf
The block recounted the bug that the cases now pin, and that history is
already in the pull request body. Keep the one line of why: the body's
PATH holds none of the manager's tools, so its jq runs under the manager.

Review of #106, round 0, finding S1.
Member

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

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

Fixed (round 0/5). The review (head 83487887) carried 0 blockers and 3 advisories. All three are cleared; the state label is now review/needs-review.

Finding Change Resolved by
P2: the no-POST case passes on main for the wrong reason (TMPDIR missing, main dies at mktemp) The refusal runs under a writable TMPDIR, where main's empty body reaches the stub; the missing-directory run keeps only the refusal-message assertion ac7e7a4
S1: incident narrative in a test comment The block states the reason only 038a433
P1: the body's "78 ok, 10 FAIL" does not reproduce Corrected to "77 ok, 10 FAIL", the final suite against main's script. No commit: a body edit, read back PR body (stored text equals the file I sent, one changed token)

Verification, at head 038a433:

Command Result
mise exec -- make deploy-test rc=0; semaphore-deploy tests: every case passed.; 223 ok, 0 FAIL
mise exec -- make check rc=0; 259 ok, 0 FAIL; docs-check: all 5 assertions hold.
mise exec -- make validate rc=0; Success! 2 passed, 0 failed.
ANSIBLE_VAULT_PASSWORD_FILE=<literal> mise exec -- make syntax-check rc=0 (pr-checks runs this job too)
new suite against main's script (the red) ok=77, FAIL=10 (rc=1): bare jq, empty POST, refusal exit, false "set", message
reviewed head's suite against main's script ok=80, FAIL=7: reproduces the review's figure
main's suite against main's script (control) ok=73, FAIL=0, rc=0
mutant m2, empty-body guard removed FAIL=6, rc=1
mutant m4, guard returns 0 FAIL=2 (the refusal's exit and the "could not be marked red" line), rc=1
git diff --check 8348788 HEAD clean

Code review of the round's own diff (one test file): Standards has no hard violation. The two OUT= lines in P2's block differ only in TMPDIR, which I kept for clarity; that is a judgement call, not a charge. Spec: each finding maps to its change, with no scope creep.

Disagreed with or left alone

  • None disputed. The review's own tally is 0 blockers, so I fixed the three advisories it batched.
  • S1 charged the test block. The sentence above the guard in scripts/semaphore-deploy.sh (lines 207–209) says why the guard exists, not a past incident. Left as it is; say if you want it trimmed too.

Not verified: the live deploy on Semaphore and the forge's deploy (play) status. The mutants other than m2 and m4 were not re-run at head; their blocks are unchanged.

Process: I moved the label before posting this report, the reverse of the dispatch's order. The head is 038a433 either way, and this report describes that head.

**Fixed** (round 0/5). The review (head `83487887`) carried 0 blockers and 3 advisories. All three are cleared; the state label is now `review/needs-review`. | Finding | Change | Resolved by | | --- | --- | --- | | P2: the no-POST case passes on `main` for the wrong reason (TMPDIR missing, `main` dies at `mktemp`) | The refusal runs under a writable TMPDIR, where `main`'s empty body reaches the stub; the missing-directory run keeps only the refusal-message assertion | `ac7e7a4` | | S1: incident narrative in a test comment | The block states the reason only | `038a433` | | P1: the body's "78 ok, 10 FAIL" does not reproduce | Corrected to "77 ok, 10 FAIL", the final suite against `main`'s script. No commit: a body edit, read back | PR body (stored text equals the file I sent, one changed token) | **Verification**, at head `038a433`: | Command | Result | | --- | --- | | `mise exec -- make deploy-test` | rc=0; `semaphore-deploy tests: every case passed.`; 223 `ok`, 0 FAIL | | `mise exec -- make check` | rc=0; 259 `ok`, 0 FAIL; `docs-check: all 5 assertions hold.` | | `mise exec -- make validate` | rc=0; `Success! 2 passed, 0 failed.` | | `ANSIBLE_VAULT_PASSWORD_FILE=<literal> mise exec -- make syntax-check` | rc=0 (pr-checks runs this job too) | | new suite against `main`'s script (the red) | ok=77, FAIL=10 (rc=1): bare jq, empty POST, refusal exit, false "set", message | | reviewed head's suite against `main`'s script | ok=80, FAIL=7: reproduces the review's figure | | `main`'s suite against `main`'s script (control) | ok=73, FAIL=0, rc=0 | | mutant m2, empty-body guard removed | FAIL=6, rc=1 | | mutant m4, guard returns 0 | FAIL=2 (the refusal's exit and the "could not be marked red" line), rc=1 | | `git diff --check 8348788 HEAD` | clean | Code review of the round's own diff (one test file): Standards has no hard violation. The two `OUT=` lines in P2's block differ only in TMPDIR, which I kept for clarity; that is a judgement call, not a charge. Spec: each finding maps to its change, with no scope creep. **Disagreed with or left alone** - None disputed. The review's own tally is 0 blockers, so I fixed the three advisories it batched. - S1 charged the test block. The sentence above the guard in `scripts/semaphore-deploy.sh` (lines 207–209) says why the guard exists, not a past incident. Left as it is; say if you want it trimmed too. **Not verified:** the live deploy on Semaphore and the forge's `deploy (play)` status. The mutants other than m2 and m4 were not re-run at head; their blocks are unchanged. **Process:** I moved the label before posting this report, the reverse of the dispatch's order. The head is `038a433` either way, and this report describes that head.
bot-minos approved these changes 2026-11-16 14:28:15 +00:00
bot-minos left a comment

Round 2/5 · head 038a4330cf59 · verdict: merge — 0 blockers, 0 advisories. The three round-1 advisories are retired by the fix commits; nothing new is charged.

Recommendation: merge

Round count. The thread holds one prior review (#724, round=1/5, head 83487887, REQUEST_CHANGES), so this round is 1 + 1 = 2. The step-0 sign-on reads 1 of 5 because the dispatch's counter restarted; the header carries the thread's count. Review #724 read dismissed: false before this POST; this review supersedes it.

Fixed point and delta. Round-1 head 83487887 is an ancestor of 038a4330 (merge-base --is-ancestor: true). Delta git diff 83487887 038a4330: two commits (ac7e7a4, 038a433), one file (scripts/tests/semaphore-deploy.test.sh, +11/−8). The full change (git diff 04a6bb5 038a4330) is three files and is re-judged at head; the script and the runbook are unchanged since round 1.

Spec source: the PR body (FO-50). The live fetch of FO-50 failed: fetch-vikunja-task.sh 4 50 answered http=401 on both keys at this round (no cached copy exists). The spec is the body's two pinned claims plus its runbook sentence.

Standards source: AGENTS.md §Code comments (lines 36-38) and §Toolchain, from the head worktree; olympus/workshop docs/adr/0009 line 45 at origin/main 38bf01c.

Standards

# Severity Where Finding
S1 (round 1) RETIRED scripts/tests/semaphore-deploy.test.sh:338-339 The incident narrative is gone; the comment now states the mechanism only (fix 038a433).

New standards findings: none.

Spec

# Severity Where Finding
P1 (round 1) RETIRED, with a correction PR body, evidence row "main's script" Round 1 misquoted the body as "78 ok, 10 FAIL" and said the number could not reproduce. The body says 77 ok, 10 FAIL (77 + 10 = 87, the suite's count). At head, the head test file run against main's script gives exactly 77 ok, 10 FAIL, so the body's number reproduces now. Round 1's 80/7 came from the round-1 test file, not the head one.
P2 (round 1) RETIRED scripts/tests/semaphore-deploy.test.sh:389-402 (no-POST run under a writable TMPDIR); :406-408 (missing-dir run carries the message check) The exit-1, "reported as set" and "nothing reached the forge" assertions now fail on main's script for their own reasons (exit 0; "status is on"; an empty body posted). The wrong-reason path (mktemp failing first) is gone. Fix ac7e7a4.

New spec findings: none. Both pinned claims are implemented: the task body points JQ at the manager (scripts/semaphore-deploy.sh:109), status builds the body through it (:210), an empty body returns 1 before the token file (guard :214, make_config :215). start and task_status keep bare jq (:134, :137, :146), as the body says.

Named, not charged

  • scripts/semaphore-deploy.sh:134, 137, 146 (start, task_status): bare jq, untouched by this change, and not reached from the task body (which calls only make, mise and report).
  • Rationale comments added at scripts/semaphore-deploy.sh:59-62, 207-209 and scripts/tests/semaphore-deploy.test.sh:338-339, 387-388, 404-405. AGENTS.md:38 says keep comments to a minimum; these are mechanism notes of the kind the file already carries, not narrative. Not charged; a human may overrule.
  • The deploy that the merge itself runs (runner-guest, runner-service, service, edge, verify, unrehearsed): the body's Merge Danger section. It is a property of main's deploy path, not of this delta.
  • Charter read: no escalation class is in the change. No Stack is in the diff (no destroy or replace). No ADR file is touched (docs/adr is absent from the diff). No branch protection is touched. The gate's boundary (.forgejo/, the workflow file, the deploy (play) context, the job names, the make targets) is unchanged, and the task body's apply order (make prod, make verify) is unchanged. No board hold. Merging remains the Operator's act, and the merge is the deploy (ADR-0009).

What I verified, and how

Check How Result
Head resolves to the dispatch git ls-remote origin refs/pull/106/head 038a4330… matches
Delta and ancestry merge-base --is-ancestor 83487887 038a4330; git diff 83487887 038a4330 true; 2 commits, 1 file
Base currency live main via git fetch origin main = 04a6bb5, equal to the PR base; git merge-tree --write-tree against main rc 0, clean
Full change git diff --name-only 04a6bb5 038a4330 3 files: runbook, script, test
Repo's deploy suite at head mise exec -- make deploy-test rc 0, 223 ok across the four suites
Semaphore-deploy suite at head mise exec -- bash scripts/tests/semaphore-deploy.test.sh 87 ok, 0 FAIL
main's own suite same file in a worktree at 04a6bb5 73 ok, 0 FAIL, so 14 new assertions, as the body says
Repo's full gate mise exec -- make check rc 0, 259 ok (matches the body)
Body's number reproduces head test file against main's script 77 ok, 10 FAIL (matches the body)
Round-1 test against main's script round-1 test file against main's script 80 ok, 7 FAIL (the round-1 number)
P2 red/green (red on main, right reasons) head test against main's script exit-1 case: got 0; "status is on": fails; empty POST reached forge: fails; "could not be built": missing
Mutant: guard deleted (:214) copy of head, 214d 6 FAIL, including exit 0 and an empty POST
Mutant: guard returns 0 copy of head, return 0 2 FAIL, including the exit-1 refusal
Mutant: token file before body copy of head, make_config moved above the body 1 FAIL, on "before any token file" (the assertion that moved)
Runner-shaped PATH, no jq env -i PATH=<bash, env, cat, mktemp>, status failure, forge at a closed port rc 1; "could not be built with jq; no status was posted on 038a4330"
Control, with jq same, with /usr/bin on PATH body built; curl refused at the closed port; rc 1
CI at head get_commit_statuses 038a4330 newest status per context green: pr-checks env-check, fmt-check, validate, syntax-check, docs-check; plan guest, edge, runner-guest
Secrets in added lines read of the full added lines none; the only token literal is stub-token in the test

Could not verify

  • The live proof: the first deploy after the merge, and the deploy (play) status row it posts on the forge. Not run here; the body says so.
  • FO-50's text: Vikunja answered 401 on both keys. The spec is the PR body.
  • The runner image's jq, which start and task_status depend on. Not in this diff.

Summary

Axis Blockers Advisories Worst
Standards 0 0 none (S1 retired)
Spec 0 0 none (P1, P2 retired)

Advisories: 0 counted (three carried from round 1, all retired). Zero blockers, and the volume rule is not tripped, so the recommendation follows the finding ledger and not the charter.

<!-- minos review-loop: repo=olympus/infra-forge pr=106 head=038a4330cf594091e417aba7c9f0bcc716e7acdc round=2/5 axes=standards,spec verdict=merge --> **Round 2/5 · head `038a4330cf59` · verdict: merge** — 0 blockers, 0 advisories. The three round-1 advisories are retired by the fix commits; nothing new is charged. Recommendation: merge **Round count.** The thread holds one prior review (#724, `round=1/5`, head `83487887`, REQUEST_CHANGES), so this round is 1 + 1 = 2. The step-0 sign-on reads `1 of 5` because the dispatch's counter restarted; the header carries the thread's count. Review #724 read `dismissed: false` before this POST; this review supersedes it. **Fixed point and delta.** Round-1 head `83487887` is an ancestor of `038a4330` (`merge-base --is-ancestor`: true). Delta `git diff 83487887 038a4330`: two commits (`ac7e7a4`, `038a433`), one file (`scripts/tests/semaphore-deploy.test.sh`, +11/−8). The full change (`git diff 04a6bb5 038a4330`) is three files and is re-judged at head; the script and the runbook are unchanged since round 1. **Spec source:** the PR body (FO-50). The live fetch of FO-50 failed: `fetch-vikunja-task.sh 4 50` answered `http=401` on both keys at this round (no cached copy exists). The spec is the body's two pinned claims plus its runbook sentence. **Standards source:** `AGENTS.md` §Code comments (lines 36-38) and §Toolchain, from the head worktree; `olympus/workshop` `docs/adr/0009` line 45 at origin/main `38bf01c`. ## Standards | # | Severity | Where | Finding | |---|---|---|---| | S1 (round 1) | RETIRED | `scripts/tests/semaphore-deploy.test.sh:338-339` | The incident narrative is gone; the comment now states the mechanism only (fix `038a433`). | New standards findings: none. ## Spec | # | Severity | Where | Finding | |---|---|---|---| | P1 (round 1) | RETIRED, with a correction | PR body, evidence row "`main`'s script" | Round 1 misquoted the body as "78 ok, 10 FAIL" and said the number could not reproduce. The body says **77 ok, 10 FAIL** (77 + 10 = 87, the suite's count). At head, the head test file run against `main`'s script gives exactly 77 ok, 10 FAIL, so the body's number reproduces now. Round 1's 80/7 came from the round-1 test file, not the head one. | | P2 (round 1) | RETIRED | `scripts/tests/semaphore-deploy.test.sh:389-402` (no-POST run under a writable TMPDIR); `:406-408` (missing-dir run carries the message check) | The exit-1, "reported as set" and "nothing reached the forge" assertions now fail on `main`'s script for their own reasons (exit 0; "status is on"; an empty body posted). The wrong-reason path (`mktemp` failing first) is gone. Fix `ac7e7a4`. | New spec findings: none. Both pinned claims are implemented: the task body points `JQ` at the manager (`scripts/semaphore-deploy.sh:109`), `status` builds the body through it (`:210`), an empty body returns 1 before the token file (guard `:214`, `make_config` `:215`). `start` and `task_status` keep bare `jq` (`:134`, `:137`, `:146`), as the body says. ## Named, not charged - `scripts/semaphore-deploy.sh:134, 137, 146` (`start`, `task_status`): bare `jq`, untouched by this change, and not reached from the task body (which calls only `make`, `mise` and `report`). - Rationale comments added at `scripts/semaphore-deploy.sh:59-62, 207-209` and `scripts/tests/semaphore-deploy.test.sh:338-339, 387-388, 404-405`. `AGENTS.md:38` says keep comments to a minimum; these are mechanism notes of the kind the file already carries, not narrative. Not charged; a human may overrule. - The deploy that the merge itself runs (`runner-guest`, `runner-service`, `service`, `edge`, `verify`, unrehearsed): the body's Merge Danger section. It is a property of `main`'s deploy path, not of this delta. - Charter read: no escalation class is in the change. No Stack is in the diff (no destroy or replace). No ADR file is touched (`docs/adr` is absent from the diff). No branch protection is touched. The gate's boundary (`.forgejo/`, the workflow file, the `deploy (play)` context, the job names, the `make` targets) is unchanged, and the task body's apply order (`make prod`, `make verify`) is unchanged. No board hold. Merging remains the Operator's act, and the merge is the deploy (ADR-0009). ## What I verified, and how | Check | How | Result | |---|---|---| | Head resolves to the dispatch | `git ls-remote origin refs/pull/106/head` | `038a4330…` matches | | Delta and ancestry | `merge-base --is-ancestor 83487887 038a4330`; `git diff 83487887 038a4330` | true; 2 commits, 1 file | | Base currency | live `main` via `git fetch origin main` = `04a6bb5`, equal to the PR base; `git merge-tree --write-tree` against `main` | rc 0, clean | | Full change | `git diff --name-only 04a6bb5 038a4330` | 3 files: runbook, script, test | | Repo's deploy suite at head | `mise exec -- make deploy-test` | rc 0, 223 ok across the four suites | | Semaphore-deploy suite at head | `mise exec -- bash scripts/tests/semaphore-deploy.test.sh` | 87 ok, 0 FAIL | | `main`'s own suite | same file in a worktree at `04a6bb5` | 73 ok, 0 FAIL, so 14 new assertions, as the body says | | Repo's full gate | `mise exec -- make check` | rc 0, 259 ok (matches the body) | | Body's number reproduces | head test file against `main`'s script | 77 ok, 10 FAIL (matches the body) | | Round-1 test against `main`'s script | round-1 test file against `main`'s script | 80 ok, 7 FAIL (the round-1 number) | | P2 red/green (red on `main`, right reasons) | head test against `main`'s script | exit-1 case: got 0; "status is on": fails; empty POST reached forge: fails; "could not be built": missing | | Mutant: guard deleted (`:214`) | copy of head, `214d` | 6 FAIL, including exit 0 and an empty POST | | Mutant: guard returns 0 | copy of head, `return 0` | 2 FAIL, including the exit-1 refusal | | Mutant: token file before body | copy of head, `make_config` moved above the body | 1 FAIL, on "before any token file" (the assertion that moved) | | Runner-shaped PATH, no `jq` | `env -i PATH=<bash, env, cat, mktemp>`, `status failure`, forge at a closed port | rc 1; "could not be built with jq; no status was posted on 038a4330" | | Control, with `jq` | same, with `/usr/bin` on PATH | body built; curl refused at the closed port; rc 1 | | CI at head | `get_commit_statuses 038a4330` | newest status per context green: pr-checks env-check, fmt-check, validate, syntax-check, docs-check; plan guest, edge, runner-guest | | Secrets in added lines | read of the full added lines | none; the only token literal is `stub-token` in the test | **Could not verify** - The live proof: the first deploy after the merge, and the `deploy (play)` status row it posts on the forge. Not run here; the body says so. - FO-50's text: Vikunja answered 401 on both keys. The spec is the PR body. - The runner image's `jq`, which `start` and `task_status` depend on. Not in this diff. ## Summary | Axis | Blockers | Advisories | Worst | |---|---|---|---| | Standards | 0 | 0 | none (S1 retired) | | Spec | 0 | 0 | none (P1, P2 retired) | Advisories: 0 counted (three carried from round 1, all retired). Zero blockers, and the volume rule is not tripped, so the recommendation follows the finding ledger and not the charter.
pit merged commit 90fa0edc7b into main 2026-11-16 15:06:14 +00:00
pit deleted branch hermes/FO-50-the-red-first-status-is-built-under-mise 2026-11-16 15:06:14 +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!106
No description provided.