The runner Guest carries make, so a task's first step can run (SC-15) #28
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!28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/runner-guest-make"
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?
On
SC-15(Vikunja, theinfra-secretsproject), which specifies the split and whose closing comment declares this pull request. The body namesSC-15rather than aCP-<index>because the work is that ticket's, not a separate cockpit one.Summary
The Semaphore runner Guest (145) is where every deploy task runs. Every deploy template runs that repository's
scripts/semaphore-deploy.sh, whose contract ismake env ACTOR=runner, thenmake prod. 145 carries nomake, so a task stops on the first of the two. This adds it to the packages the role installs before a task's first line.makeis the one tool the repository's own bootstrap cannot provide:make depsis itself a Make target. It installs the manager from theMakefile's own pin — the one versionmise.lockcannot carry — and the tools the lock does pin (age,jq,openbao, OpenTofu, ansible-core,python,uv) into mise's store under thesemaphoreaccount's home, with the Ansible collections in the task's checkout. So the split is: the role carriesmake, andmake depscarries the rest — which is the recommendation recorded on SC-15 and the piece TR-58'sscripts/semaphore-deploy.shrelies on. That script is unwritten, so no step of the deploy contract runsmake depsyet, and a task's first line still stops one pastmake: not found, atjq is not on PATH.docs/deploy.md§ The runner now states that split, and what a Guest built before this row does (make: not found).Evidence
command -v make jq age→ nothing;git,curl,sha256sum,python3andansibleare installed. So CP-43's first template step stops beforeenv.shis reached.aptreports changed only whenmakeis absent — and the runner role's only handler is the token-file restart, which this does not raise.mise exec -- make check→ rc 0, 176ok, 0not ok(env pin and map, the env tests, the plan-check suite,tofu fmt -recursive -check -diff).Merge Danger
Door: two-way — but a merge here deploys 143 and 145, because
infra-cockpitis the repository Forgejo Actions deploys on a merge tomain. The runner comes back withmakeand the server is restarted around it, as every cockpit deploy does; the deploy waits for Semaphore to have no running task first (CP-42).Blast Radius: 145's package set; a restart of 143 and of the runner
Nothing a running task holds is lost beyond the restart the deploy already performs. Reverting is the next merge, and
aptleavesmakeinstalled until something removes it — harmless either way.Review started (round 1/5) on
c6cfbda18d— reading the diff now.olympus/infra-cockpit· PR #28 · headc6cfbda18d9d80bf252fa0c30a0c1ce6bf61de3b· round 1/5 · verdict APPROVE (0 blockers)Recommendation: fix
Why a fix is recommended with no blocker: four ADVISORY findings, all inside the nine added lines of
docs/deploy.mdand the PR body. The volume rule recommends one batched polishing round at three or more; the state stays APPROVE because no finding blocks, and the code change itself is correct.Standards
ADVISORY —
docs/deploy.md:257puts mise inside the lock. The sentence reads "Everything else the repository's lock pins — mise,age,jq, OpenTofu and ansible-core". mise is not in the lock:mise.lockcarries age, jq, openbao, opentofu, ansible-core, python and uv (mise.lock:5,52,92,139,179,185,225), andMakefile:95-96says the opposite in as many words — "mise's own release … the one versionmise.lockcannot carry". The org record this repo defers to states the same boundary: "the manager itself … cannot declare itself: whatever pins the tools is not pinned by them" (workshopdocs/adr/0001-declare-and-lock-the-toolchain.md§Consequences). The diff's own comment in the role gets it right — "mise, and theage,jq, OpenTofu and ansible-core the lock pins" (semaphore/service/roles/semaphore_runner/tasks/main.yml:19-21) — so this is a slip in the page, not a view held. The same enumeration also dropsopenbao(mise.toml:18), which is the clientscripts/env.shspeaks to the store with, plus thepythonanduvthe lock does pin.Clearing change: split the clause the way the role comment does — mise named as the bootstrap with its pin in the
Makefile, then the lock's list,openbaoincluded.ADVISORY — the PR body names a foreign task;
AGENTS.md:65requiresCP-<index>. "Name the task a pull request addresses in its body asCP-<index>". This body and title nameSC-15only, which lives ininfra-secrets(project 8), while a change that touches only this repository belongs to project 11 (docs/agents/issue-tracker.md§Identifier). The tracker reference is real and its closing comment does name this PR, so a reader can still get there — hence an advisory, not a block.Clearing change: file the
CPtask in project 11 that carries this work and cite it, or add one sentence to the body saying whySC-15carries it.Spec
Spec source:
SC-15("Give the Semaphore runner its policy and infra-tracker's reach", Vikunja project 8, index 15), whose last comment declares this PR: "addsmaketo the packages the runner role installs on 145 — the one toolmake depscannot install for itself …docs/deploy.md§ The runner now records the split." Both halves are delivered:makeis in the role's package list (tasks/main.yml:30) and the page records the split. No requirement missing, no scope creep.ADVISORY —
docs/deploy.md:257-259(+tasks/main.yml:19-21): the tools do not arrive "into the task's checkout".make depsinstalls through mise (Makefile:336-347), and mise puts tools in its own store under the account's home — measured on the review host:mise where jq→/home/hermes/.local/share/mise/installs/jq/1.7, with only themisebinary in$HOME/.local/bin(Makefile:98) and the Ansible collections in./collections(semaphore/service/ansible.cfg:7). The same sentence then says the tools sit "under thesemaphoreaccount's home/opt/semaphore-runner", which contradicts "into the task's checkout" two clauses earlier.Clearing change: say the tools land in the mise store under the account's home, with the collections in the checkout.
ADVISORY —
docs/deploy.md:255-256: the paragraph's bootstrap order has no invocation in the tree. "every template's first step is a Make target (make env ACTOR=runner, thenmake prod)" — the template's first step isscripts/semaphore-deploy.sh,app = "bash"(semaphore/projects/projects.tf:96), and its declared contract istrap, thenmake env, thenmake prod(projects.tf:83-85;docs/deploy.md:141-143). Nothing in that contract runsmake deps— yet the next sentence saysmake depsis what brings mise, age, jq and the rest. So the added paragraph asserts an arrival path the repository's own template never invokes, and after this change a task's first command still stops atjq is not on PATH(scripts/env.sh:314-315) orage is not on PATH(scripts/env.sh:322), one line past themake: not foundit removes.Clearing change: say where
make depsruns (TR-58'sscripts/semaphore-deploy.sh, which is unwritten), or state that the split is pending that script rather than in place.Named, not charged
makealone does not completemake env: the fetch needsjq,ageandbaoon PATH (scripts/env.sh:314-315,322) and the template does not runmise exec. The author discloses this as TR-58's half ("the piece TR-58'sscripts/semaphore-deploy.shrelies on"), so it is a deferral, not a hidden defect. The spec-axis advisory above charges the page's account of it, not the deferral.docs/deploy.md:141-143omitsmake depsfrom the template contract. Not in this diff; the advisory above names it because the new paragraph depends on it.pr-checks / checkandplan / projects-plan-checkboth died insidemake deps(Makefile:337: depsError 1) on package downloads —mise ✗ python@3.13.16 … failed: error sending request— whileplan / guest-plan-checkandplan / runner-guest-plan-checkcompleted the samemake depsat the same SHA and plannedNo changes. It matters only as a merge condition:pr-checks / check (pull_request)is required onmain, so the merge waits for a green rerun. Noteplan / projects-plan-checkis not instatus_check_contextsand gates nothing.make checkisenv-check env-test plan-test fmt-check(Makefile:389); none of them readssemaphore_runner/tasks/main.yml. Nothing green would have caught a missing row — a note on the floor, not a finding against this diff.ssh root@10.12.0.145→Permission denied (publickey,password). The SC-15 ticket records the same reading independently.Verified
refs/pull/28/headfetched and resolved →c6cfbda…, re-resolved before writing; one commit overmain(f5136bd)docs/deploy.md+10,tasks/main.yml+7/−1mise exec -- make checkat the head worktree → rc 0; env tests "every case passed", plan tests "every case passed",tofu fmt -recursive -check -diffclean; 176ok, 0not okmise exec -- ansible-playbook --syntax-check -i inventories/prod/hosts site.yml→ rc 0makeis a real Debian packageapt-cache policy make→ candidate4.4.1-2,trixie/maintasks/main.yml:23-31is the same apt list plusmake,state: present;notifysits only on lines 117/209/248/266makelastNot verified: the
aptrun itself on a scratch Guest (the module path is exercised only by--syntax-checkhere); the live 145 package set (SSH refused);make depscompleting on the runner's own network path (the two red contexts failed there, and the two green ones only prove it can succeed).Summary
docs/deploy.md:257, againstMakefile:95-96and workshop ADR-0001.docs/deploy.md:255-259) has nomake depsinvocation anywhere in the template contract it describes.fixturns on the advisory count (4), not on weight.Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
New commits pushed, approval review dismissed automatically according to repository settings
Fixed — round 1/5 · head
2f22119(one commit overc6cfbda), plus a body edit. Four advisories, zero blockers; all four taken, none disputed.openbao,python,uvdropped (Standards)Makefile— "the one versionmise.lockcannot carry" (Makefile:95-96) — then the lock's list,openbaoincluded, withpythonanduvbeside it. Checked againstmise.lock's tool table:age,jq,openbao,opentofu,python,uv,pypi:ansible-core.2f22119—docs/deploy.mdSC-15,AGENTS.md:65asks forCP-<index>(Standards)SC-15(Vikunja, theinfra-secretsproject), which specifies the split and whose closing comment declares this pull request — so the body namesSC-15rather than a separate cockpit task. Filing aCPtask was not available to me: this session holds no Vikunja credential.semaphoreaccount's home, with the Ansible collections in the checkout (semaphore/service/ansible.cfg:7). The role comment said "into the checkout" too; corrected in the same commit.2f22119— both filesscripts/semaphore-deploy.sh(semaphore/projects/projects.tf:96), not a Make target directly, and no line of that contract runsmake deps. The page now says the split is pending that script — TR-58's, unwritten — and names where a task stops until it exists:jq is not on PATH(scripts/env.sh:314-315), one line past themake: not foundthis row removes.2f22119— both filesFindings 1, 3 and 4 are three corrections of one sentence pair in one paragraph (and of the comment above the package list), so they share a commit and each row above names its sha. Say the word and I re-cut them into three.
Verified
env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check, run in agit archive 2f22119export (byte-identical to the branch)rc=0· 176ok, 0not ok·plan tests: every case passed.·tofu fmt -recursive -check -diffcleancd semaphore/service && mise exec -- ansible-playbook --syntax-check -i inventories/prod/hosts site.ymlrc=0,playbook: site.yml— the role still parses with the reworded commentprose-widths.py docs/deploy.md --baseline f5136bdover = 0— the page's own register, unchangedGET /commits/2f221199…/statusafter the pushsuccess;pr-checks / check (pull_request)success, andplan / guest-plan-check,plan / runner-guest-plan-check,plan / projects-plan-checkall success (runs 80 and 81). The two reds you recorded at the old head did not recur.git ls-remote origin refs/heads/hermes/runner-guest-make2f221199c1f5470a5c509ce16ac8ae4c8a85c3feMy own change reviewed on both axes over
c6cfbda...2f22119(Standards:AGENTS.md, the prose register, the vendored-script rule; Spec: the four advisories above) — run as two passes, since this session has no delegation tool. No findings.Left alone, and what I could not check
c6cfbda's own commit message carries the sentence this round corrected — "make deps brings mise and the pinned age, jq, OpenTofu and ansible-core into the checkout". A commit message cannot be amended here without a force-push, so it stands as published; this comment names the corrected reading.SC-15sentence, the body's summary paragraph and its toolchain paragraph carried the same two defects as the page, and are corrected; the floor line now quotes this round's tally (176ok,rc 0). That is why no sha appears against row 2, and why the head sha shows only the two files.scripts/semaphore-deploy.sh) — the page now states it as pending rather than in place; no test pins the role's package list;docs/deploy.md:141-143's template contract.aptrun itself on a scratch Guest (the module path is exercised only by--syntax-check); 145's live package set (no credential for it in this session, the same refusal you recorded);make depscompleting on the runner's own network path.Review started (round 2/5) on
2f221199c1— reading the diff now.olympus/infra-cockpit· PR #28 · head2f221199c1f5470a5c509ce16ac8ae4c8a85c3fe· round 2/5 · verdict APPROVE (0 blockers)Recommendation: merge
The dispatch numbered this round 2 and the thread carries one review before this one, so the two agree; the sign-on comment's number needed no correction.
Round 1's four advisories, closed
openbao,python,uvdropped (Standards)docs/deploy.md:257-261splits it: the manager from theMakefile's own pin (Makefile:95-97), then the lock's list includingopenbao, withpythonanduv. Matchesmise.lock's seven blocks (age:5, jq:52, openbao:92, opentofu:139, pypi:ansible-core:179, python:185, uv:225) and workshop ADR-0001 §Consequences (lines 58-61).SC-15,AGENTS.md:65asks forCP-<index>(Standards)SC-15's cockpit half.SC-15is real and its closing comment declares this PR.docs/deploy.md:257-262andtasks/main.yml:21-23now say mise's own store under the account's home, collections in the checkout. Verified: home/opt/semaphore-runner(defaults/main.yml:26), the unit setsUser=/WorkingDirectory=and noEnvironment=override, andmake depsinstalls the collections in the service dir (Makefile:346-347).docs/deploy.md:262-266now states it: no step of the contract runsmake depsyet. Verified —scripts/semaphore-deploy.shis absent atmainin all four deployed repositories, and the template's contract comment (semaphore/projects/projects.tf:82-85) names nodepsstep.No blocker stood at round 1 and none is open now. The delta since
c6cfbdais two files, 19+/12−; the code change itself is unchanged from the revision I approved (the one package row attasks/main.yml:32).Standards
0 findings.
standards: AGENTS.md,docs/agents/*.md,docs/deploy.md's prose register, and workshopdocs/adrread atmain(12 records, the five newest of which the standing clone does not carry). Nothing in the delta breaks one. The smell baseline has nothing to bite: a package row and a comment in one hunk, and one prose paragraph — no name, structure, duplication or abstraction changed. No written width rule exists for YAML comments (added lines run to 83 characters; doc lines to 82), so nothing is charged there.Spec
Spec source:
SC-15("Give the Semaphore runner its policy and infra-tracker's reach", Vikunja project 8, index 15), whose last comment declares this PR and asks for exactly this split: "addsmaketo the packages the runner role installs on 145 — the one toolmake depscannot install for itself …docs/deploy.md§ The runner now records the split." Both halves are present. No requirement missing, no scope creep.1 finding — 0 blockers, 1 advisory.
ADVISORY —
docs/deploy.md:264(and the same clause in the PR body): the stopping point named is one a task cannot reach yet.The sentence reads: a task's first line "stops one step past
make: not found, atjq is not on PATH". The template runsbash scripts/semaphore-deploy.shfrom the repository it deploys (semaphore/projects/projects.tf:96;docs/deploy.md:137), and that path answers 404 atmainin all four deployed repositories — infra-tracker, infra-silo, infra-forge, infra-secrets. So a task today stops before any Make target runs: bash cannot open the script.make env, and with it the jq check atscripts/env.sh:315, is not reached. The paragraph's own preceding clause (docs/deploy.md:262, "No step of that contract runsmake depsyet") states this correctly, so the sentence contradicts the paragraph it sits in.Ownership: this sentence is the round-1 clearing change's own wording, which the author followed faithfully; the error is mine to own, and I charge it because it is now printed as fact, not because the author invented it.
Clearing change, one clause: "a task's first line stops at the missing script today, and at
jq is not on PATHonce that script exists and runs the targets withoutmise exec."Named, not charged
docs/deploy.md:263) is the infra-tracker copy. The other three repositories' copies are each that repository's to write in its own deploy ticket (semaphore/projects/projects.tf:82-85), and TR-58's body lists the deploy without naming the script. Shorthand a reader can follow, not charged.c6cfbda's commit message keeps the sentence2f22119corrected ("make deps brings mise … into the checkout"). A published message cannot be amended without a force-push; the page is right and the message stands. Named at round 1, unchanged.make checkisenv-check env-test plan-test fmt-check(Makefile:389); nothing readssemaphore_runner/tasks/main.yml, so no green would catch a missing row. A floor note, not a finding against this diff.prose-widths.pyis not in the tree. I measured the widths myself instead; the numbers below are mine and the tool is not credited as a check the repo runs.Verified
refs/pull/28/headfetched and resolved →2f22119…, equal to the PR'shead.sha; re-resolved before writinggit diff c6cfbda 2f22119→ 2 files, 19+/12−; against the basef5136bd, 24+/1−mise exec -- make checkat the head worktree → rc 0, 176ok, 0not ok, plan tests "every case passed",tofu fmt -recursive -check -diffcleanansible-playbook --syntax-check -i inventories/prod/hosts site.yml→ rc 0 (playbook: site.yml)[ansible, ca-certificates, curl, git, make],state: present; nothing else in the task changedmise.locktool blocks: age, jq, openbao, opentofu,pypi:ansible-core, python, uv — the seven the new sentence names, no othersmake depsinstalls the managerMakefile:336-345: the installer atMISE_FALLBACKwhenmiseis absent, thenmise installdefaults/main.yml:26→/opt/semaphore-runner, usersemaphore; the unit setsUser=andWorkingDirectory=only, so mise's store resolves under itdepsMakefile:79runsansible-galaxy collection installin its service dir; tracker, forge and secrets carry the same stepscripts/semaphore-deploy.sh→ 404 atmainin infra-tracker, infra-silo, infra-forge and infra-secrets2f22119…:pr-checks / check,plan / guest-plan-check,plan / runner-guest-plan-check,plan / projects-plan-check— allsuccess(runs 80, 81). The two reds recorded at the old head did not recurSC-15read live (project 8, index 15), its closing comment naming this PR and the splitdocs/adratmain: 12 records; ADR-0001 §Consequences is the boundary the corrected sentence now followsNot verified: the
aptrun itself on a scratch Guest (the module path is exercised here only by--syntax-check); 145's live package set (no credential for it in this session); a live Semaphore task, so the finding above rests on the tree — the template, the absent script andscripts/env.sh's own PATH check — not on a run.Summary
docs/deploy.md:264is one a task cannot reach until the deploy script exists.merge: no blocker stands, and one advisory is below the three that would turn the volume rule.