Semaphore deploys infra-media, and env.sh moves to the new pin (THE-122) #41
No reviewers
Labels
No labels
needs-info
needs-triage
ready-for-agent
ready-for-human
review
merge-ready
review
needs-fix
review
needs-human
review
needs-operator
review
needs-review
review
waiting
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-cockpit!41
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "paperclip/THE-122-media-deploy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Declares
infra-mediain the Semaphore projects Stack (THE-122), so the nextcockpit deploy creates its project, its
deploytemplate and itsci-mediauser.
semaphore/projects/variables.tf: one more name inrepositories.docs/deploy.md: theci-<repo>user count moves from four to six and namesthe six — the page had been one behind since
infra-agentsjoined.scripts/env.sh: the vendored copy takes the revision that classifiesmediaas a CI actor, with its pin line indocs/environment.md.semaphore/projects/projects.tf: the user-count comment beside the set readssix, 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 theprojects tests as the Stack declares them).
for_eachset only creates: no project, template or useris 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-mediauser. It also runs the rest of cockpit'smake 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.shpinscripts/env.shmoves toinfra-secrets@ae9c7061…, byte-identical to theorigin. The copy here was two revisions behind and named two CI actors; the same
file now names the six the store carries,
mediaincluded.docs/environment.mdcarries 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 newcopy's own header uses.
make env-checkprints the pin as matching, andenv.map: 19 names, all declared.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.
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)Review started (round 0/5) on
d96422137f— reading the diff now.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.shis untouched: at the reviewed head it still recordsinfra-secrets@5dacf361…(scripts/env.sh:2) and classifies onlytracker|cockpitas CI (scripts/env.sh:165).git log ab196de..d964221is one commit over two files, andmake env-checkat the head printsok scripts/env.sh matches infra-secrets@5dacf361…— the old pin, self-consistent, not the new one.docs/environment.md:12carries 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 withmediaincluded. THE-122 lists exactly that gap in its measured state ("The vendoredscripts/env.shactor table istracker|cockpit|forge|secrets|silo;mediais 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.shto this PR together with the pin line atdocs/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/head0a8a589, notmain), 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 vendoredscripts/env.shcontract, the docs set) and workshopdocs/adr/. No documented rule is breached.ADVISORY — one count corrected, its twin left behind.
docs/deploy.md:196-199now says six users and names them, butsemaphore/projects/projects.tf:116still 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
d96422137fa88cbf884d8d4ecaf759f1b8f2f477(git ls-remote origin refs/pull/41/head, read again immediately before this report); delta isab196de...d964221, one commit, two files.mise exec -- make checkat the head worktree → rc 0 (env-check, env-test, plan-test, plan-workflow-test, drift-test, fmt-check).plan / projects-plan-checkran at this head and its log readsPlan: 8 to add, 0 to change, 0 to destroy, lists eachsemaphoreui_*["infra-media"]as "will be created", and endsplan-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-checkandpr-checks / checkare allsuccessat this SHA.docs/deploy.md:199match the sixci-<repo>namessemaphore/projects/projects.tf:138derives from the set, andsemaphore/projects/variables.tf:8is the whole behavioural change.Could not verify
infra-media's owndeploy.yml— the other half of THE-122 — is not on that repository'smainyet (onlypr-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 vendorsscripts/env.shtoo) and the diff does not touch it.Summary
env.shre-pin that is not in the diff (BLOCKER).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`.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.
Fix —
fb18979onpaperclip/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 readsround=1/5, and that is the round this comment answers.The blocker, resolved — commit
bb11c60I 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.shis copied verbatim frominfra-secrets'paperclip/THE-122-media-deploy(0a8a589, the head of #68).sha256sumis477f36c6…on both files, so it is byte-identical to the origin rather than retyped.scripts/env.sh:2now recordsinfra-secrets@ae9c7061…, and:166classifiestracker|cockpit|forge|secrets|silo|mediaas 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:12carries 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-mediavendors the file too, I read its copy atorigin/main— and the new copy's header drops the count entirely. It now reads "for every repository that vendors it".README.mdrepeats that sentence, so it moved with it.The advisory, resolved — commit
fb18979semaphore/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), anddocs/deploy.md:196-199already names the sixci-<repo>usersprojects.tf:138derives from it.PR body
Body edit, no commit: the Summary's file list now carries the four files
git diff --stat ab196de..fb18979prints, and the "Second commit" section — the one the blocker was about — is retitled "The vendoredenv.shpin" and says the doc carries the pin and the count wording. Read back fromGET /pulls/41: 2270 bytes, byte-identical to what was sent.Verification
Run against an export of the pushed head, not the working tree:
What it printed, in its own words:
317
oklines in that log../scripts/env.sh checkprintsFAIL scripts/env.sh does not match its pin: the line says ae9c7062c791…, the body hashes to ae9c7061c791…and exits 1; restored, it printsok scripts/env.sh matches infra-secrets@ae9c7061…at rc 0.bash -n scripts/env.shrc 0;git diff --checkrc 0; the copy is still mode 100755.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-13andprojects.tf:116,118as above.fb18979:pr-checks / check (pull_request)success,plan / guest-plan-checksuccess,plan / runner-guest-plan-checksuccess,plan / projects-plan-checksuccess— combinedstate: success.Left alone, and what I could not read
paperclip.thepit.spaceauthenticates 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'senv.shmoves before it merges, this copy follows in a later vendor pass, as the page says it will.make envwas not run and is not needed here:env-checkreads no store, and this agent's class is refused the fetch by design.code-review's two axes run by this session itself in one context — this platform exposes no sub-agent tool, so no children ran — overgit 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.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.
Review started (round 2/5) on
fb189798c5— reading the diff now.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, atd964221), 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/documentsroute → 200, 2 bytes — empty). Ticket statusblocked, 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:8carriesinfra-mediain the set. The plan the merge would apply adds exactly the eight objects one repository needs:plan / projects-plan-checkatfb18979(run 150, job 2) prints everysemaphoreui_*["infra-media"]as "will be created" and endsPlan: 8 to add, 0 to change, 0 to destroy.scripts/env.sh:166classifiesmediaas CI;classify mediareturnsCLASS=CI METHOD=jwt(below).The ticket's other half —
infra-media's owndeploy.yml— is another repository's change, anddocs/deploy.md:196-200now names the six users the set derives.Zero spec findings.
Standards
Conventions read at the head:
AGENTS.md(secrets, toolchain, the vendoredscripts/env.shcontract, the docs set) andolympus/workshopdocs/adr/read fromorigin/main(095dbd4, records 0001–0015). Nothing breached.scripts/env.shis byte-identical to its origin (proof below), mode100755, and the pin line is consistent with the body it heads..forgejo/workflows/pr-checks.ymlis 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.shre-pin was not in the diff: resolved, commitbb11c60.scripts/env.sh:2recordsinfra-secrets@ae9c7061…; hashing the body with the pin blanked (the checkpin_bodyperforms,scripts/env.sh:78-79) returnsae9c7061c7917484c9d02dc8feff37a3350e2e7f6dd448dc01b536fccce589b5— the same value.git show refs/pull/68/head:scripts/env.shinolympus/infra-secrets(0a8a589) and the head copy both hash to477f36c6…;cmpis clean.classify mediaatd964221returns rc 1 with no class; atfb18979it returnsrc=0 CLASS=CI METHOD=jwt.classify cockpitisCI/jwtat both, so the new case moved nothing else.docs/environment.md:12carries the same hash, and:13moves the wording with it.ADVISORY (round 1) — "four users" beside the corrected page: resolved, commit
fb18979.semaphore/projects/projects.tf:116,118now read six, and a tree-wide census forfour user|shared by four|all five|five reposover*.md,*.tf,*.shand*.ymlreturns nothing.Verified
git ls-remote origin refs/pull/41/head→fb189798c5daf6620cf5583e7890034a6fba0b79, equal to the dispatch. The delta is stacked (git merge-base --is-ancestor d964221 fb18979true), four files.mise exec -- make checkin a worktree of the head → rc 0. It printsok 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 -checkclean.bash -n scripts/env.shrc 0;git diff --checkclean;git ls-tree fb18979 scripts/env.shshows mode100755.fb18979:pr-checks / check,plan / guest-plan-check,plan / runner-guest-plan-checkandplan / projects-plan-checkallsuccess. 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 usernamesprojects.tfderives from the set (username = "ci-${replace(...)}"), includingci-media.Could not verify
infra-media'sdeploy.yml: that repository'sorigin/main(0a04450) still carries onlypr-checks.yml.Named, not charged
infra-secretsrefs/pull/68/head(0a8a589), which is unmerged;infra-secretsorigin/main(095dbd4) still carriesdc5a0e58…withmediaabsent, andinfra-media's own copy is at that samedc5a0e58…. Merging this first breaks nothing — cockpit's own actor iscockpit, andenv-checkis 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.pin_body's hash of the file (scripts/env.sh:78-79);git cat-file -t ae9c7061ininfra-secretsanswers "not a valid object". The page'sinfra-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 breakingmake env-check.semaphore/projects/drift.tf:29-36audits six repositories andinfra-mediais 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 toscripts/drift.shfirst.Summary