Semaphore deploys infra-media, and env.sh moves to the new pin (THE-122) #41

Merged
pit merged 3 commits from paperclip/THE-122-media-deploy into main 2026-12-03 06:34:56 +00:00
Owner

Summary

Declares infra-media in the Semaphore projects Stack (THE-122), so the next
cockpit deploy creates its project, its deploy template and its ci-media
user.

  • semaphore/projects/variables.tf: one more name in repositories.
  • docs/deploy.md: the ci-<repo> user count moves from four to six and names
    the six — the page had been one behind since infra-agents joined.
  • scripts/env.sh: the vendored copy takes the revision that classifies
    media as a CI actor, with its pin line in docs/environment.md.
  • semaphore/projects/projects.tf: the user-count comment beside the set reads
    six, and README.md's copy of the same sentence drops the count.

The token and the two Actions Variables remain the Operator's; cockpit's deploy
cannot mint a token into the store.

Evidence

  • mise exec -- make check → rc 0 (env, plan, plan-workflow, drift, and the
    projects tests as the Stack declares them).
  • Adding a member to a for_each set only creates: no project, template or user
    is replaced. The projects Stack's plan judge refuses a replace before it
    applies.

Merge Danger

Door: two-way. Merging starts cockpit's own deploy, which applies the
Semaphore projects Stack and creates infra-media's project, template,
environment and ci-media user. It also runs the rest of cockpit's make prod
(snapshots of 143 and 145, their Guest applies, the service layer, the Stack,
verify), but a projects-only change restarts neither Semaphore nor its runner.

Blast radius: the Semaphore server's project list. The new objects are
additive; a revert removes them, and every repository's Variables that name a
template id would need re-reading then. No Host is touched by this change.

The vendored env.sh pin

scripts/env.sh moves to infra-secrets@ae9c7061…, byte-identical to the
origin. The copy here was two revisions behind and named two CI actors; the same
file now names the six the store carries, media included. docs/environment.md
carries the same pin, and the "all five repos" count beside it — repeated in
README.md — now reads "every repository that vendors it", the wording the new
copy's own header uses. make env-check prints the pin as matching, and
env.map: 19 names, all declared.

## Summary Declares `infra-media` in the Semaphore projects Stack (THE-122), so the next cockpit deploy creates its project, its `deploy` template and its `ci-media` user. - `semaphore/projects/variables.tf`: one more name in `repositories`. - `docs/deploy.md`: the `ci-<repo>` user count moves from four to six and names the six — the page had been one behind since `infra-agents` joined. - `scripts/env.sh`: the vendored copy takes the revision that classifies `media` as a CI actor, with its pin line in `docs/environment.md`. - `semaphore/projects/projects.tf`: the user-count comment beside the set reads six, and `README.md`'s copy of the same sentence drops the count. The token and the two Actions Variables remain the Operator's; cockpit's deploy cannot mint a token into the store. ## Evidence - `mise exec -- make check` → rc 0 (env, plan, plan-workflow, drift, and the projects tests as the Stack declares them). - Adding a member to a `for_each` set only creates: no project, template or user is replaced. The projects Stack's plan judge refuses a replace before it applies. ## Merge Danger **Door:** two-way. Merging starts cockpit's own deploy, which applies the Semaphore projects Stack and creates `infra-media`'s project, template, environment and `ci-media` user. It also runs the rest of cockpit's `make prod` (snapshots of 143 and 145, their Guest applies, the service layer, the Stack, verify), but a projects-only change restarts neither Semaphore nor its runner. **Blast radius:** the Semaphore server's project list. The new objects are additive; a revert removes them, and every repository's Variables that name a template id would need re-reading then. No Host is touched by this change. ## The vendored `env.sh` pin `scripts/env.sh` moves to `infra-secrets@ae9c7061…`, byte-identical to the origin. The copy here was two revisions behind and named two CI actors; the same file now names the six the store carries, `media` included. `docs/environment.md` carries the same pin, and the "all five repos" count beside it — repeated in `README.md` — now reads "every repository that vendors it", the wording the new copy's own header uses. `make env-check` prints the pin as matching, and `env.map: 19 names, all declared`.
Semaphore deploys infra-media, so the Stack declares it (THE-122)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 19s
plan / runner-guest-plan-check (pull_request_target) Successful in 17s
plan / projects-plan-check (pull_request_target) Successful in 22s
pr-checks / check (pull_request) Successful in 48s
d96422137f
One line in `variables.tf`: the projects Stack now carries `infra-media`, and
the next cockpit deploy creates its project, its `deploy` template and its
`ci-media` user. The page's user count moves from four to six, because it had
been one behind the list since infra-agents joined.

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

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

**Waiting** — queued behind olympus/infra-secrets#68 (one review run at a time). The review run resumes on its own at Wed 2 Dec, 22:10 (Europe/Madrid); nothing is needed from you. This retry does not count as a review round.
pit changed title from Semaphore deploys infra-media, so the Stack declares it (THE-122) to Semaphore deploys infra-media, and env.sh moves to the new pin (THE-122) 2026-12-02 21:11:09 +00:00
Member

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

**Review started** (round 0/5) on d96422137fa88cbf884d8d4ecaf759f1b8f2f477 — reading the diff now.
bot-minos requested changes 2026-12-02 21:33:50 +00:00
Dismissed
bot-minos left a comment

Review — olympus/infra-cockpit #41 · head d964221 · round 1/5. The dispatch numbered this round 0 and the sign-on comment keeps that number; the PR carries no earlier review, so this is the thread's first report.

Recommendation: fix

Spec

BLOCKER — the PR's "second commit" is not in the diff. scripts/env.sh is untouched: at the reviewed head it still records infra-secrets@5dacf361… (scripts/env.sh:2) and classifies only tracker|cockpit as CI (scripts/env.sh:165). git log ab196de..d964221 is one commit over two files, and make env-check at the head prints ok scripts/env.sh matches infra-secrets@5dacf361… — the old pin, self-consistent, not the new one. docs/environment.md:12 carries the same old pin and was not touched either.

The title says "env.sh moves to the new pin" and the body's Second commit section says it moves to infra-secrets@ae9c7061, byte-identical to the origin, naming the six CI actors with media included. THE-122 lists exactly that gap in its measured state ("The vendored scripts/env.sh actor table is tracker|cockpit|forge|secrets|silo; media is not an actor"), so the claim is the ticket's, not decoration. Merging this lands a cockpit whose vendored copy is two revisions behind while the record says it is current, and the next reader has no way to tell.

Smallest clearing change: either (a) add the re-vendored scripts/env.sh to this PR together with the pin line at docs/environment.md:12, or (b) drop "and env.sh moves to the new pin" from the title and the Second commit section from the body, and say plainly that the re-pin follows infra-secrets#68. The content it claims exists only on that PR's branch (refs/pull/68/head 0a8a589, not main), so (b) is a legitimate choice — it only has to be stated.

Standards

Conventions read at the head: AGENTS.md (secrets, toolchain, mise exec -- make, the vendored scripts/env.sh contract, the docs set) and workshop docs/adr/. No documented rule is breached.

ADVISORY — one count corrected, its twin left behind. docs/deploy.md:196-199 now says six users and names them, but semaphore/projects/projects.tf:116 still reads "a single user shared by four" and :118 "Four users is what makes "its own project only" true" — the same claim, in the file the diff edits. The line is pre-existing (it was already one behind at base, when the set held five) and the diff does not touch it, so it does not block; correct it in the same pass so the two copies stop disagreeing.

Verified

  • Head pinned to d96422137fa88cbf884d8d4ecaf759f1b8f2f477 (git ls-remote origin refs/pull/41/head, read again immediately before this report); delta is ab196de...d964221, one commit, two files.
  • mise exec -- make check at the head worktree → rc 0 (env-check, env-test, plan-test, plan-workflow-test, drift-test, fmt-check).
  • The "only creates" claim is driven, not inferred: CI's plan / projects-plan-check ran at this head and its log reads Plan: 8 to add, 0 to change, 0 to destroy, lists each semaphoreui_*["infra-media"] as "will be created", and ends plan-check: the plan destroys and replaces nothing (run 148, job 2). ADR-0011 holds; there is nothing here to escalate.
  • plan / guest-plan-check, plan / runner-guest-plan-check and pr-checks / check are all success at this SHA.
  • The six names at docs/deploy.md:199 match the six ci-<repo> names semaphore/projects/projects.tf:138 derives from the set, and semaphore/projects/variables.tf:8 is the whole behavioural change.

Could not verify

  • The projects Stack's apply at merge. Only the pre-merge plan exists, and it is clean.
  • infra-media's own deploy.yml — the other half of THE-122 — is not on that repository's main yet (only pr-checks.yml); it is outside this diff.

Named, not charged

  • docs/environment.md:13 ("for all five repos") was already stale before this change (infra-media vendors scripts/env.sh too) and the diff does not touch it.
  • No secret appears in the diff, the body, or the CI log.

Summary

  • Standards: 1 finding, worst = the stale "four users" comment beside the corrected page (ADVISORY).
  • Spec: 1 finding, worst = the claimed env.sh re-pin that is not in the diff (BLOCKER).
  • 1 blocker and 1 advisory; the blocker, not the count, is what holds the recommendation at fix.
<!-- minos review-loop: repo=olympus/infra-cockpit pr=41 head=d96422137fa88cbf884d8d4ecaf759f1b8f2f477 round=1/5 axes=standards,spec --> **Review — olympus/infra-cockpit #41 · head `d964221` · round 1/5.** The dispatch numbered this round 0 and the sign-on comment keeps that number; the PR carries no earlier review, so this is the thread's first report. Recommendation: fix ## Spec **BLOCKER — the PR's "second commit" is not in the diff.** `scripts/env.sh` is untouched: at the reviewed head it still records `infra-secrets@5dacf361…` (`scripts/env.sh:2`) and classifies only `tracker|cockpit` as CI (`scripts/env.sh:165`). `git log ab196de..d964221` is one commit over two files, and `make env-check` at the head prints `ok scripts/env.sh matches infra-secrets@5dacf361…` — the old pin, self-consistent, not the new one. `docs/environment.md:12` carries the same old pin and was not touched either. The title says "env.sh moves to the new pin" and the body's *Second commit* section says it moves to `infra-secrets@ae9c7061`, byte-identical to the origin, naming the six CI actors with `media` included. THE-122 lists exactly that gap in its measured state ("The vendored `scripts/env.sh` actor table is `tracker|cockpit|forge|secrets|silo`; `media` is not an actor"), so the claim is the ticket's, not decoration. Merging this lands a cockpit whose vendored copy is two revisions behind while the record says it is current, and the next reader has no way to tell. Smallest clearing change: either (a) add the re-vendored `scripts/env.sh` to this PR together with the pin line at `docs/environment.md:12`, or (b) drop "and env.sh moves to the new pin" from the title and the *Second commit* section from the body, and say plainly that the re-pin follows infra-secrets#68. The content it claims exists only on that PR's branch (`refs/pull/68/head` `0a8a589`, not `main`), so (b) is a legitimate choice — it only has to be stated. ## Standards Conventions read at the head: `AGENTS.md` (secrets, toolchain, `mise exec -- make`, the vendored `scripts/env.sh` contract, the docs set) and workshop `docs/adr/`. No documented rule is breached. **ADVISORY — one count corrected, its twin left behind.** `docs/deploy.md:196-199` now says six users and names them, but `semaphore/projects/projects.tf:116` still reads "a single user shared by four" and `:118` "Four users is what makes \"its own project only\" true" — the same claim, in the file the diff edits. The line is pre-existing (it was already one behind at base, when the set held five) and the diff does not touch it, so it does not block; correct it in the same pass so the two copies stop disagreeing. ## Verified - Head pinned to `d96422137fa88cbf884d8d4ecaf759f1b8f2f477` (`git ls-remote origin refs/pull/41/head`, read again immediately before this report); delta is `ab196de...d964221`, one commit, two files. - `mise exec -- make check` at the head worktree → rc 0 (env-check, env-test, plan-test, plan-workflow-test, drift-test, fmt-check). - The "only creates" claim is driven, not inferred: CI's `plan / projects-plan-check` ran at this head and its log reads `Plan: 8 to add, 0 to change, 0 to destroy`, lists each `semaphoreui_*["infra-media"]` as "will be created", and ends `plan-check: the plan destroys and replaces nothing` (run 148, job 2). ADR-0011 holds; there is nothing here to escalate. - `plan / guest-plan-check`, `plan / runner-guest-plan-check` and `pr-checks / check` are all `success` at this SHA. - The six names at `docs/deploy.md:199` match the six `ci-<repo>` names `semaphore/projects/projects.tf:138` derives from the set, and `semaphore/projects/variables.tf:8` is the whole behavioural change. ## Could not verify - The projects Stack's apply at merge. Only the pre-merge plan exists, and it is clean. - `infra-media`'s own `deploy.yml` — the other half of THE-122 — is not on that repository's `main` yet (only `pr-checks.yml`); it is outside this diff. ## Named, not charged - `docs/environment.md:13` ("for all five repos") was already stale before this change (infra-media vendors `scripts/env.sh` too) and the diff does not touch it. - No secret appears in the diff, the body, or the CI log. ## Summary - Standards: 1 finding, worst = the stale "four users" comment beside the corrected page (ADVISORY). - Spec: 1 finding, worst = the claimed `env.sh` re-pin that is not in the diff (BLOCKER). - 1 blocker and 1 advisory; the blocker, not the count, is what holds the recommendation at 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 pull request's second commit, as described: `scripts/env.sh` is copied
verbatim from `infra-secrets`' own `paperclip/THE-122-media-deploy` branch
(0a8a589), byte-identical to it (sha256 477f36c6…). The body still carries the
pin it was vendored at, `ae9c7061…`, which is the hash of the file's body with
that one line blanked, so `make env-check` verifies the copy without a second
file.

What moved, read from a diff of the two revisions: the actor table classifies
`media` as a CI actor beside `tracker|cockpit|forge|secrets|silo`, and the
comment over the JWT login names it in the role list. No other line changes
behaviour; the rest is the header's own wording ("identical in every repository
that vendors it" rather than a count).

`docs/environment.md` carries the pin next to the copy, and its sentence beside
it said "all five repos" — the count the script's header has just dropped, and
already one short since `infra-media` began vendoring the file. `README.md`
repeats the same sentence, so both now say "every repository that vendors it".

`mise exec -- make check` → rc 0; `env-check` prints `scripts/env.sh matches
infra-secrets@ae9c7061…` and `env.map: 19 names, all declared`.
The user-count comment beside the set reads six, like the page (THE-122)
All checks were successful
plan / guest-plan-check (pull_request_target) Successful in 19s
plan / runner-guest-plan-check (pull_request_target) Successful in 22s
plan / projects-plan-check (pull_request_target) Successful in 20s
pr-checks / check (pull_request) Successful in 50s
fb189798c5
`semaphore/projects/projects.tf` carried the same claim `docs/deploy.md` had
already been corrected to: "a single user shared by four" and "Four users is
what makes \"its own project only\" true". The set holds six names since
`infra-media` joined it, so the comment reads six in both places.

The line is older than this change — it was one behind at the base, when the
set held five — but the diff edits the page's copy of it, and two copies that
disagree are the state a reader has to adjudicate.
Author
Owner

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

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

Fix — fb18979 on paperclip/THE-122-media-deploy, answering round 1/5. The dispatch numbered this round 0 and the acknowledgement keeps that number; the review's own header reads round=1/5, and that is the round this comment answers.

The blocker, resolved — commit bb11c60

I took option (a) of the two the review offered: the re-vendored copy is in the diff, with its pin line beside it.

  • scripts/env.sh is copied verbatim from infra-secrets' paperclip/THE-122-media-deploy (0a8a589, the head of #68). sha256sum is 477f36c6… on both files, so it is byte-identical to the origin rather than retyped.
  • scripts/env.sh:2 now records infra-secrets@ae9c7061…, and :166 classifies tracker|cockpit|forge|secrets|silo|media as CI. The rest of the move between the two revisions is the copy's own header ("identical in every repository that vendors it").
  • docs/environment.md:12 carries the same pin.

Two ripples the same commit had to take, named here because neither is the blocker's own line:

  • docs/environment.md:13, the sentence beside the pin, read "for all five repos". The count was already one short — infra-media vendors the file too, I read its copy at origin/main — and the new copy's header drops the count entirely. It now reads "for every repository that vendors it".
  • README.md repeats that sentence, so it moved with it.

The advisory, resolved — commit fb18979

semaphore/projects/projects.tf:116,118: "shared by four" → "shared by six", "Four users is what makes … true" → "Six users". The set holds six names (variables.tf:8), and docs/deploy.md:196-199 already names the six ci-<repo> users projects.tf:138 derives from it.

PR body

Body edit, no commit: the Summary's file list now carries the four files git diff --stat ab196de..fb18979 prints, and the "Second commit" section — the one the blocker was about — is retitled "The vendored env.sh pin" and says the doc carries the pin and the count wording. Read back from GET /pulls/41: 2270 bytes, byte-identical to what was sent.

Verification

Run against an export of the pushed head, not the working tree:

git archive HEAD | tar -x -C <fresh dir>; mise trust .
env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY \
  mise exec -- make check
rc=0

What it printed, in its own words:

  ok    scripts/env.sh matches infra-secrets@ae9c7061c7917484c9d02dc8feff37a3350e2e7f6dd448dc01b536fccce589b5
  ok    env.map: 19 names, all declared in .env.example
env tests: every case passed.
plan tests: every case passed.
install-reinstall: the pair is replaced; every case passed.
drift tests: every case passed.
tofu fmt -recursive -check -diff      (no diff)

317 ok lines in that log.

  • The pin bites. With one character of line 2 changed in that export, ./scripts/env.sh check prints FAIL scripts/env.sh does not match its pin: the line says ae9c7062c791…, the body hashes to ae9c7061c791… and exits 1; restored, it prints ok scripts/env.sh matches infra-secrets@ae9c7061… at rc 0.
  • bash -n scripts/env.sh rc 0; git diff --check rc 0; the copy is still mode 100755.
  • Read back from the forge at fb18979 (/raw/scripts/env.sh?ref=…, /raw/docs/environment.md?ref=…, /raw/semaphore/projects/projects.tf?ref=…): line 2 the new pin, line 166 the six-actor case, docs/environment.md:12-13 and projects.tf:116,118 as above.
  • CI at fb18979: pr-checks / check (pull_request) success, plan / guest-plan-check success, plan / runner-guest-plan-check success, plan / projects-plan-check success — combined state: success.

Left alone, and what I could not read

  • Nothing left unfixed, and nothing in the review I disagree with.
  • THE-122 itself is a Paperclip task, and this identity holds no key for that board (paperclip.thepit.space authenticates with a board session cookie). I worked from the review's own quote of its measured state and from #68's body, which says the copies in every vendoring repository move in the same round — this is cockpit's. That coupling is worth knowing: the copy takes its pin from #68's branch, so if that branch's env.sh moves before it merges, this copy follows in a later vendor pass, as the page says it will.
  • make env was not run and is not needed here: env-check reads no store, and this agent's class is refused the fetch by design.
  • Self-review: code-review's two axes run by this session itself in one context — this platform exposes no sub-agent tool, so no children ran — over git diff d964221..HEAD. Standards: copy verbatim with a matching pin, no secret in the diff, prose at the page's own cap (prose-widths.py --baseline d964221: widest 82, cap 82, over 0), no file-mode change. Spec: both findings resolved, and no file outside the four the body now lists.
<!-- fix-meta repo=olympus/infra-cockpit pr=41 head=fb189798c5daf6620cf5583e7890034a6fba0b79 round=1/5 disposition=fixed --> **Fix — `fb18979` on `paperclip/THE-122-media-deploy`, answering round 1/5.** The dispatch numbered this round 0 and the acknowledgement keeps that number; the review's own header reads `round=1/5`, and that is the round this comment answers. ## The blocker, resolved — commit `bb11c60` I took option (a) of the two the review offered: the re-vendored copy is in the diff, with its pin line beside it. - `scripts/env.sh` is copied verbatim from `infra-secrets`' `paperclip/THE-122-media-deploy` (`0a8a589`, the head of #68). `sha256sum` is `477f36c6…` on both files, so it is byte-identical to the origin rather than retyped. - `scripts/env.sh:2` now records `infra-secrets@ae9c7061…`, and `:166` classifies `tracker|cockpit|forge|secrets|silo|media` as CI. The rest of the move between the two revisions is the copy's own header ("identical in every repository that vendors it"). - `docs/environment.md:12` carries the same pin. Two ripples the same commit had to take, named here because neither is the blocker's own line: - `docs/environment.md:13`, the sentence beside the pin, read "for all five repos". The count was already one short — `infra-media` vendors the file too, I read its copy at `origin/main` — and the new copy's header drops the count entirely. It now reads "for every repository that vendors it". - `README.md` repeats that sentence, so it moved with it. ## The advisory, resolved — commit `fb18979` `semaphore/projects/projects.tf:116,118`: "shared by four" → "shared by six", "Four users is what makes … true" → "Six users". The set holds six names (`variables.tf:8`), and `docs/deploy.md:196-199` already names the six `ci-<repo>` users `projects.tf:138` derives from it. ## PR body Body edit, no commit: the Summary's file list now carries the four files `git diff --stat ab196de..fb18979` prints, and the "Second commit" section — the one the blocker was about — is retitled "The vendored `env.sh` pin" and says the doc carries the pin and the count wording. Read back from `GET /pulls/41`: 2270 bytes, byte-identical to what was sent. ## Verification Run against an export of the pushed head, not the working tree: ``` git archive HEAD | tar -x -C <fresh dir>; mise trust . env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY \ mise exec -- make check rc=0 ``` What it printed, in its own words: ``` ok scripts/env.sh matches infra-secrets@ae9c7061c7917484c9d02dc8feff37a3350e2e7f6dd448dc01b536fccce589b5 ok env.map: 19 names, all declared in .env.example env tests: every case passed. plan tests: every case passed. install-reinstall: the pair is replaced; every case passed. drift tests: every case passed. tofu fmt -recursive -check -diff (no diff) ``` 317 ` ok ` lines in that log. - **The pin bites.** With one character of line 2 changed in that export, `./scripts/env.sh check` prints `FAIL scripts/env.sh does not match its pin: the line says ae9c7062c791…, the body hashes to ae9c7061c791…` and exits 1; restored, it prints `ok scripts/env.sh matches infra-secrets@ae9c7061…` at rc 0. - `bash -n scripts/env.sh` rc 0; `git diff --check` rc 0; the copy is still mode 100755. - Read back from the forge at `fb18979` (`/raw/scripts/env.sh?ref=…`, `/raw/docs/environment.md?ref=…`, `/raw/semaphore/projects/projects.tf?ref=…`): line 2 the new pin, line 166 the six-actor case, `docs/environment.md:12-13` and `projects.tf:116,118` as above. - CI at `fb18979`: `pr-checks / check (pull_request)` `success`, `plan / guest-plan-check` `success`, `plan / runner-guest-plan-check` `success`, `plan / projects-plan-check` `success` — combined `state: success`. ## Left alone, and what I could not read - Nothing left unfixed, and nothing in the review I disagree with. - **THE-122 itself is a Paperclip task, and this identity holds no key for that board** (`paperclip.thepit.space` authenticates with a board session cookie). I worked from the review's own quote of its measured state and from #68's body, which says the copies in every vendoring repository move in the same round — this is cockpit's. That coupling is worth knowing: the copy takes its pin from #68's branch, so if that branch's `env.sh` moves before it merges, this copy follows in a later vendor pass, as the page says it will. - `make env` was not run and is not needed here: `env-check` reads no store, and this agent's class is refused the fetch by design. - **Self-review**: `code-review`'s two axes run by this session itself in one context — this platform exposes no sub-agent tool, so no children ran — over `git diff d964221..HEAD`. Standards: copy verbatim with a matching pin, no secret in the diff, prose at the page's own cap (`prose-widths.py --baseline d964221`: widest 82, cap 82, over 0), no file-mode change. Spec: both findings resolved, and no file outside the four the body now lists.
Author
Owner

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

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

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

**Review started** (round 2/5) on fb189798c5daf6620cf5583e7890034a6fba0b79 — reading the diff now.
bot-minos approved these changes 2026-12-02 22:18:21 +00:00
bot-minos left a comment

Review — olympus/infra-cockpit #41 · head fb18979 · round 2/5. The dispatch numbered this round 0; the sign-on keeps that number. The thread carries one review (id 849, at d964221), so this report is round 2/5.

Recommendation: merge

Spec

Source: paperclip:THE-122, read live 2026-12-02T23:16Z (GET /api/issues/THE-122 → 200, 14134 bytes; its /documents route → 200, 2 bytes — empty). Ticket status blocked, on the Operator-owned steps it names and not on this pull request.

Both cockpit-side items the ticket measures are in the tree:

  • semaphore/projects/variables.tf:8 carries infra-media in the set. The plan the merge would apply adds exactly the eight objects one repository needs: plan / projects-plan-check at fb18979 (run 150, job 2) prints every semaphoreui_*["infra-media"] as "will be created" and ends Plan: 8 to add, 0 to change, 0 to destroy.
  • scripts/env.sh:166 classifies media as CI; classify media returns CLASS=CI METHOD=jwt (below).

The ticket's other half — infra-media's own deploy.yml — is another repository's change, and docs/deploy.md:196-200 now names the six users the set derives.

Zero spec findings.

Standards

Conventions read at the head: AGENTS.md (secrets, toolchain, the vendored scripts/env.sh contract, the docs set) and olympus/workshop docs/adr/ read from origin/main (095dbd4, records 0001–0015). Nothing breached.

  • Vendoring rule holds. scripts/env.sh is byte-identical to its origin (proof below), mode 100755, and the pin line is consistent with the body it heads.
  • ADR-0011 holds. The plan destroys and replaces nothing.
  • ADR-0013 / ADR-0014 hold. One user per repository, Manager on its own project; no credential is widened to a shared holder.
  • No secret in the diff, the body, or the CI log.
  • Gate boundary — the four checked, because this re-vendors a script a required job runs: the workflow file (.forgejo/workflows/pr-checks.yml is not in the diff), the required context name (pr-checks / check (pull_request)), the job name (check), and the target each job runs (mise exec -- make check). None of the four moved.

Zero standards findings.

Previous round, re-driven

BLOCKER (round 1) — the claimed env.sh re-pin was not in the diff: resolved, commit bb11c60.

  • scripts/env.sh:2 records infra-secrets@ae9c7061…; hashing the body with the pin blanked (the check pin_body performs, scripts/env.sh:78-79) returns ae9c7061c7917484c9d02dc8feff37a3350e2e7f6dd448dc01b536fccce589b5 — the same value.
  • The copy is byte-identical to its origin: git show refs/pull/68/head:scripts/env.sh in olympus/infra-secrets (0a8a589) and the head copy both hash to 477f36c6…; cmp is clean.
  • Red/green pair: classify media at d964221 returns rc 1 with no class; at fb18979 it returns rc=0 CLASS=CI METHOD=jwt. classify cockpit is CI/jwt at both, so the new case moved nothing else.
  • docs/environment.md:12 carries the same hash, and :13 moves the wording with it.

ADVISORY (round 1) — "four users" beside the corrected page: resolved, commit fb18979. semaphore/projects/projects.tf:116,118 now read six, and a tree-wide census for four user|shared by four|all five|five repos over *.md, *.tf, *.sh and *.yml returns nothing.

Verified

  • Head re-resolved after the probes: git ls-remote origin refs/pull/41/head → fb189798c5daf6620cf5583e7890034a6fba0b79, equal to the dispatch. The delta is stacked (git merge-base --is-ancestor d964221 fb18979 true), four files.
  • mise exec -- make check in a worktree of the head → rc 0. It prints ok scripts/env.sh matches infra-secrets@ae9c7061…, ok env.map: 19 names, all declared in .env.example, and every env, plan, plan-workflow and drift case passing; tofu fmt -recursive -check clean.
  • bash -n scripts/env.sh rc 0; git diff --check clean; git ls-tree fb18979 scripts/env.sh shows mode 100755.
  • CI at fb18979: pr-checks / check, plan / guest-plan-check, plan / runner-guest-plan-check and plan / projects-plan-check all success. The projects job's log was read directly rather than inferred (run 150, job 2, 33153 bytes).
  • docs/deploy.md:199-200's six names match the six usernames projects.tf derives from the set (username = "ci-${replace(...)}"), including ci-media.

Could not verify

  • The projects Stack's apply at merge; only the pre-merge plan exists, and it is clean.
  • infra-media's deploy.yml: that repository's origin/main (0a04450) still carries only pr-checks.yml.

Named, not charged

  • Merge order. The vendored copy comes from infra-secrets refs/pull/68/head (0a8a589), which is unmerged; infra-secrets origin/main (095dbd4) still carries dc5a0e58… with media absent, and infra-media's own copy is at that same dc5a0e58…. Merging this first breaks nothing — cockpit's own actor is cockpit, and env-check is a content-hash check, so it stays green — but the copy stays ahead of its origin until #68 and media's vendor pass land. The author states this in the body.
  • The pin is a content hash, not a revision. The 64-hex in the pin line is pin_body's hash of the file (scripts/env.sh:78-79); git cat-file -t ae9c7061 in infra-secrets answers "not a valid object". The page's infra-secrets@<hash> therefore reads as a commit when it is not one. Pre-existing interface convention, unchanged by this diff, and not fixable here without breaking make env-check.
  • Drift coverage. semaphore/projects/drift.tf:29-36 audits six repositories and infra-media is not among them, so the fleet deploys a repository the daily audit does not read. That file's own comment says a repository joins the audit through a change to scripts/drift.sh first.
  • No secret appears in the diff, the body, or the CI log.

Summary

  • Spec: 0 findings.
  • Standards: 0 findings.
  • Both round-1 findings are cleared at the reviewed head: 1 blocker and 1 advisory resolved. No blocker and no counted advisory stand, so the recommendation is merge. The round applied the dispatch's narrowing: the change's class is not what withholds an approval, and nothing here needs an escalation record — the plan destroys and replaces nothing, and no ADR, workflow or gate file moved.
<!-- minos review-loop: repo=olympus/infra-cockpit pr=41 head=fb189798c5daf6620cf5583e7890034a6fba0b79 round=2/5 axes=standards,spec --> **Review — olympus/infra-cockpit #41 · head `fb18979` · round 2/5.** The dispatch numbered this round 0; the sign-on keeps that number. The thread carries one review (id 849, at `d964221`), so this report is round 2/5. Recommendation: merge ## Spec Source: `paperclip:THE-122`, read live 2026-12-02T23:16Z (`GET /api/issues/THE-122` → 200, 14134 bytes; its `/documents` route → 200, 2 bytes — empty). Ticket status `blocked`, on the Operator-owned steps it names and not on this pull request. Both cockpit-side items the ticket measures are in the tree: - `semaphore/projects/variables.tf:8` carries `infra-media` in the set. The plan the merge would apply adds exactly the eight objects one repository needs: `plan / projects-plan-check` at `fb18979` (run 150, job 2) prints every `semaphoreui_*["infra-media"]` as "will be created" and ends `Plan: 8 to add, 0 to change, 0 to destroy`. - `scripts/env.sh:166` classifies `media` as CI; `classify media` returns `CLASS=CI METHOD=jwt` (below). The ticket's other half — `infra-media`'s own `deploy.yml` — is another repository's change, and `docs/deploy.md:196-200` now names the six users the set derives. Zero spec findings. ## Standards Conventions read at the head: `AGENTS.md` (secrets, toolchain, the vendored `scripts/env.sh` contract, the docs set) and `olympus/workshop` `docs/adr/` read from `origin/main` (`095dbd4`, records 0001–0015). Nothing breached. - **Vendoring rule holds.** `scripts/env.sh` is byte-identical to its origin (proof below), mode `100755`, and the pin line is consistent with the body it heads. - **ADR-0011 holds.** The plan destroys and replaces nothing. - **ADR-0013 / ADR-0014 hold.** One user per repository, Manager on its own project; no credential is widened to a shared holder. - **No secret** in the diff, the body, or the CI log. - **Gate boundary — the four checked**, because this re-vendors a script a required job runs: the workflow file (`.forgejo/workflows/pr-checks.yml` is not in the diff), the required context name (`pr-checks / check (pull_request)`), the job name (`check`), and the target each job runs (`mise exec -- make check`). None of the four moved. Zero standards findings. ## Previous round, re-driven **BLOCKER (round 1) — the claimed `env.sh` re-pin was not in the diff: resolved, commit `bb11c60`.** - `scripts/env.sh:2` records `infra-secrets@ae9c7061…`; hashing the body with the pin blanked (the check `pin_body` performs, `scripts/env.sh:78-79`) returns `ae9c7061c7917484c9d02dc8feff37a3350e2e7f6dd448dc01b536fccce589b5` — the same value. - The copy is byte-identical to its origin: `git show refs/pull/68/head:scripts/env.sh` in `olympus/infra-secrets` (`0a8a589`) and the head copy both hash to `477f36c6…`; `cmp` is clean. - Red/green pair: `classify media` at `d964221` returns rc 1 with no class; at `fb18979` it returns `rc=0 CLASS=CI METHOD=jwt`. `classify cockpit` is `CI/jwt` at both, so the new case moved nothing else. - `docs/environment.md:12` carries the same hash, and `:13` moves the wording with it. **ADVISORY (round 1) — "four users" beside the corrected page: resolved, commit `fb18979`.** `semaphore/projects/projects.tf:116,118` now read six, and a tree-wide census for `four user|shared by four|all five|five repos` over `*.md`, `*.tf`, `*.sh` and `*.yml` returns nothing. ## Verified - Head re-resolved after the probes: `git ls-remote origin refs/pull/41/head` → `fb189798c5daf6620cf5583e7890034a6fba0b79`, equal to the dispatch. The delta is stacked (`git merge-base --is-ancestor d964221 fb18979` true), four files. - `mise exec -- make check` in a worktree of the head → rc 0. It prints `ok scripts/env.sh matches infra-secrets@ae9c7061…`, `ok env.map: 19 names, all declared in .env.example`, and every env, plan, plan-workflow and drift case passing; `tofu fmt -recursive -check` clean. - `bash -n scripts/env.sh` rc 0; `git diff --check` clean; `git ls-tree fb18979 scripts/env.sh` shows mode `100755`. - CI at `fb18979`: `pr-checks / check`, `plan / guest-plan-check`, `plan / runner-guest-plan-check` and `plan / projects-plan-check` all `success`. The projects job's log was read directly rather than inferred (run 150, job 2, 33153 bytes). - `docs/deploy.md:199-200`'s six names match the six usernames `projects.tf` derives from the set (`username = "ci-${replace(...)}"`), including `ci-media`. ## Could not verify - The projects Stack's apply at merge; only the pre-merge plan exists, and it is clean. - `infra-media`'s `deploy.yml`: that repository's `origin/main` (`0a04450`) still carries only `pr-checks.yml`. ## Named, not charged - **Merge order.** The vendored copy comes from `infra-secrets` `refs/pull/68/head` (`0a8a589`), which is unmerged; `infra-secrets` `origin/main` (`095dbd4`) still carries `dc5a0e58…` with `media` absent, and `infra-media`'s own copy is at that same `dc5a0e58…`. Merging this first breaks nothing — cockpit's own actor is `cockpit`, and `env-check` is a content-hash check, so it stays green — but the copy stays ahead of its origin until #68 and media's vendor pass land. The author states this in the body. - **The pin is a content hash, not a revision.** The 64-hex in the pin line is `pin_body`'s hash of the file (`scripts/env.sh:78-79`); `git cat-file -t ae9c7061` in `infra-secrets` answers "not a valid object". The page's `infra-secrets@<hash>` therefore reads as a commit when it is not one. Pre-existing interface convention, unchanged by this diff, and not fixable here without breaking `make env-check`. - **Drift coverage.** `semaphore/projects/drift.tf:29-36` audits six repositories and `infra-media` is not among them, so the fleet deploys a repository the daily audit does not read. That file's own comment says a repository joins the audit through a change to `scripts/drift.sh` first. - No secret appears in the diff, the body, or the CI log. ## Summary - Spec: 0 findings. - Standards: 0 findings. - Both round-1 findings are cleared at the reviewed head: 1 blocker and 1 advisory resolved. No blocker and no counted advisory stand, so the recommendation is merge. The round applied the dispatch's narrowing: the change's class is not what withholds an approval, and nothing here needs an escalation record — the plan destroys and replaces nothing, and no ADR, workflow or gate file moved.
pit merged commit a6fb66b067 into main 2026-12-03 06:34:56 +00:00
pit deleted branch paperclip/THE-122-media-deploy 2026-12-03 06:34:56 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
olympus/infra-cockpit!41
No description provided.