Run Semaphore's tasks on the runner Guest (CP-42) #21
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!21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/cp42-runner-role"
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?
CP-42's second half. The first (!20) gave 145 a Guest; this gives it a job and takes that job away from the server.
This merge deploys, and what it deploys changes 143. The deploy reconfigures the server (
use_remote_runner: trueplus the registration token) and installs and registers the runner on 145, in one play run.Summary
Why the order is the change. A config that hands tasks to a runner nothing has registered errors every task the moment it is written. So the server is configured first, the runner registers second, and the gap between them is the only time the pair is out of step. The third play is what makes
is_defaulttrue — registration creates the row withactive(the CLI's--enableddefaults true) and leavesis_defaultfalse.Why registration is guarded by a file. The shared token creates a new runner row every time it is presented, so the role registers only when
/etc/semaphore-runner/tokenis absent. A second deploy adds nothing. A rebuilt server database needs that file removed on 145 before it can re-register; the role's failure message anddocs/deploy.mdboth say so. And if a stale row is left behind, the third play refuses two rows with the runner's name rather than marking the wrong one default.Why the pin is repeated. Ansible cannot read one role's defaults from another without templating them, so
semaphore_runnerstates the version and the digest again.scripts/tests/run.shholds the two files to each other —case_runner_role_pins_the_same_release— so a bump that moves one and not the other failsmake check. The server's address is not repeated: both machines readsemaphore_web_rootfromgroup_vars/all, and the same case fails if the runner role grows a copy back.Evidence
mise exec -- make checkataa49c09, on an export of the pushed tree (git archive HEAD | tar -x), withPROXMOX_VE_API_TOKEN,AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEYunset: exit 0, 154oklines,env tests: every case passed.,plan tests: every case passed.,tofu fmt -recursive -checkwith nothing to report. No case skipped: this machine carriesdpkg, so the install fixture ran rather than reporting the skip an Arch host gives.role refuses a missing runner token(refused when the switch is on, accepted when off),runner role pins the same release(version and digest; the address has one home),the third play runs the runner default file(--list-tasksoversite.yml, so thetasks_from:that ran the whole server role instead is red),the runner token is mode 0600(the role's own task file driven against a scratch token, then read back withstat),the runner play runs the token mode file(--list-tasksover play #2: the file's two tasks, in their place between the registration and the unit, so a role that stops importing it is red rather than green) andthe runner config dials the deploy's address(the rendered config againstgroup_vars/all's own values).mise exec -- make service-checkneeds the environmentmake envfetches — refused for an agent — and reaches the live 143 and 145, so it is not run here. The two lines it carried (ok=62 changed=4 skipped=22on 143,ok=20 changed=11 skipped=13on 145) were measured on a playbook whose third play re-ran the whole server role, which this PR's own fix removed:--list-tasksat this head lists 42 tasks for play #1, 33 for play #2 and 9 for play #3, against a 143 recap that counted 84 across the two plays it ran. Runmise exec -- make service-checkat this head and put its two recap lines in this slot.systemdcannot start a unit whose file--checkonly diffed (task and handler nowwhen: not ansible_check_mode), andurihas no check mode, sorunner-default.ymlis one skipped block.Merge Danger
Door: one-way in the window, two-way after it.
Merging starts the existing deploy. Between the server's restart (running tasks nowhere, since no runner is registered yet) and the runner's registration, any task dispatched errors. The window is one play wide — seconds — and nothing else can shorten it. If the runner fails to register, 143 keeps
use_remote_runner: truewith no runner, and every task errors until the runner is fixed. The recovery ismake serviceagain after the runner's problem is cleared, or a one-line revert of the switch.Blast Radius: 143's config, and one new systemd unit on 145.
The deploy rewrites
/opt/semaphore/config.jsonon the server and restarts it — cookies, the database and its encryption keys are untouched, so signed-in sessions and stored access keys survive. On 145 it installs the pinned package, creates thesemaphoreaccount and writes four files; nothing on 145 exists yet except the bare Guest.Not covered by this PR's plan check:
semaphore/guestis what CI plans.runner/guesthas no plan job yet, so this change is verified by the rehearsal above and by the deploy, not by the workflow.CP-42 stays open. Its fourth criterion —
make prodgains the runner's Guest and service steps, and the snapshot covers 145 — is not in this pull request:PROD_STEPSis stillsnapshot guest service verify, andsnapshotreads only the server Stack's vmid. Widening what a merge runs is the Operator's decision, so it is named here rather than folded into this round.Review started (round 1/5) on
a9b4f25b0c— reading the diff now.repo: olympus/infra-cockpit | PR: #21 | reviewed head:
a9b4f25b0c| round: 1/5 | verdict: REQUEST_CHANGES (4 blockers)Recommendation: fix
Round 1 of the thread (the review list was empty; the dispatch also said 1/5). Fixed point:
mainat99c8ee8, one commit, whole head reviewed. The head I read isrefs/pull/21/head, equal to the dispatch SHA.Spec source: Vikunja CP-42 (project 11, index 42), its four acceptance criteria, plus the PR body ("CP-42's second half"). Standards source:
AGENTS.md(§Secrets, §Toolchain, §Docs),docs/agents/*. The repo keeps no ADRs of its own; no ADR is contradicted that I found.What blocks (four, all on the third play and the runner's token — the half of the change that was never run)
The body's evidence says it plainly: the deploy is "not yet run", and
urihas no check mode, sorunner-default.ymlwas one skipped block in the rehearsal. I ran it. I downloaded the pinned 2.19.16 community package (sha256 matches the pin, noRedisTaskStateStore), started a real server on the role's own rendered config, registered a runner with the PR's exactregisterargv, and drove the PR'srunner-default.ymlagainst it.Spec
runner-default.yml.semaphore/service/site.yml:31-32(- role: semaphore/tasks_from: runner-default.ymlunderroles:). In aroles:listtasks_fromis not a task-file selector (it is only honoured byimport_role/include_role). With the repo's pinned ansible-core 2.21.5,ansible-playbook -i inventories/prod/hosts site.yml --list-taskslists play #3 as 40 tasks of the whole server role (the three config values are set,refresh the apt cache, …) and 0 of runner-default.yml's five. Control, same pin:import_role: {name: semaphore, tasks_from: runner-default.yml}undertasks:lists exactly the five. Consequence: nothing ever setsis_default, so CP-42 AC1 ("runner list shows 145 active and default") is unmet, and the body's claim "The third play is what makesis_defaulttrue" is false at this head. Clears: run the file throughimport_role/include_roletasks_fromintasks:.semaphore/service/roles/semaphore/tasks/runner-default.yml:23(status_code: 200). Semaphore 2.19.16 answersPOST /api/auth/loginwith 204; the play dies on its first task:Status code was 204 and not [200](curl on the same server:login http=204). Hidden behind finding 1 today, it becomes the red deploy the moment finding 1 is fixed. Clears: accept 204.runner-default.yml:59-71: thereadtask carriesheaders: Cookie:(line 31-32), thePUT /api/runners/<id>task does not. With finding 1 and finding 2 patched in a scratch copy, the PUT returns401 Unauthorizedand the play fails. Clears: the sameCookieheader on the PUT.Red/green for findings 1..3 together: with all three patched in a scratch copy of the role, run 1 ends rc=0 and the row reads
active:true, is_default:true, name/max_parallel_taskspreserved (the echoed-row PUT body is sound); run 2 skips the PUT; a second registered row of the same name stops at theexactly oneassertion with the PR's message. Those parts of the file are right once the three defects are out. On the author's side the order of operations matters: fixing only finding 1 turns a silent no-op into a red deploy after play 1 has already flippeduse_remote_runner: trueon 143.0600and owned by the runner account");docs/deploy.md:141("/etc/semaphore-runner/token(0600, thesemaphoreaccount's)"); the body's summary line (/etc/semaphore-runner/{registration-token,token} at 0600).roles/semaphore_runner/tasks/main.yml:216-231runsregister, which writestoken; no task sets its mode (the only0600in the file is the registration-token copy, line 202). Realregisterrun:stat -c %a …/token→ 644, under a shell umask of0002, so the binary sets 0644 itself and no umask makes it 0600. The0700directory (main.yml:163, "the directory both tokens live in") limits who can reach it, but the stated property, and the acceptance criterion, is the file's mode. Clears: a task after the registration that setsmode: "0600"and the account as owner onsemaphore_runner_token_file(guarded for check mode, where the file does not exist yet), and a probe or case that reads the mode back.predeploy-*snapshot on 143 and on 145") and the ticket's "make prodgains the runner's guest and service steps, and the snapshot covers 145".Makefile:56is stillPROD_STEPS := snapshot guest service verify, andsnapshotreads only$(GUEST_DIR)'s vmid; the diff does not touch the Makefile. The body calls itself the second of two halves (!20 being the first), so neither half names these. Say in the body which ticket or PR carries them, or keep CP-42 open for them.Standards
No finding against
AGENTS.md§Secrets: no plaintext in the diff,env.mapand.env.exampleagree (make env-check:env.map: 15 names, all declared), the registration token is read from the environment and written 0600 in the registration-token copy withno_log. §Docs: the pages the change touches are the ones AGENTS.md names. Where the repo has no written rule below, I judged by general practice.semaphore/service/group_vars/all/vars.yml:6-9("a change to the address is a change to one line here"),roles/semaphore_runner/defaults/main.yml:45-48(semaphore_runner_web_root, whichtemplates/config.json.j2:2reads, not the group var),roles/semaphore/defaults/main.yml:52(semaphore_web_root). The new casecase_runner_role_pins_the_same_releaseholds only the two role defaults together. Mutation, run in copies of the head tree: runner version bumped alone → suite FAIL (want [2.19.16], got [2.19.17]); runner web_root changed alone → FAIL;group_vars/allweb_root changed alone → suite rc=0, the server would be moving to a new address while the runner dials the old one. Either have the runner role readsemaphore_web_rootfromgroup_vars/all(the file already exists for exactly this), or put it in the pin case and fix the comment.no_log: truehides the reason on the one play that has to explain itself.runner-default.yml:25,35,71. A wrong admin password, a refused connection and a 401 all print{"censored": "the output has been hidden …"}(driven: wrong password → exactly that line). The operator of a red deploy at the last play, with the server already switched, gets no status code. Hide the body (no_logonly on the task that carries the password, orfailed_whenwith a fixed message naming the status), not the failure.roles/semaphore_runner/tasks/main.yml:210("the role names that in its README"; the role has no README) anddocs/deploy.md:152("The role's final assertion says so when the unit will not stay up"; the assertion'sfail_msg, main.yml:272-284, says the token file was written by an older server database but never says to delete/etc/semaphore-runner/token). The body repeats it ("the role's failure message anddocs/deploy.mdboth say so"). The remedy is only in the docs page; put it in thefail_msgor drop the claim.site.ymlruns, norrunner-default.yml, nor the token's mode, and all four blockers sit there.tests/ha/bootstrap.sh:22alreadyPUTs/runners/1against a real server; a--list-tasksassertion on play #3 would have caught finding 1 without a server.Verified, and how
mise exec -- make checkgreenenv.map: 15 names,env tests: every case passed,plan tests: every case passed, fmt cleanregisterargv is validactive:true, is_default:false, token file written (mode 644, finding 4)exactly oneassertion fires with its message--list-tasksat the pin, with a control--checkskipping, rc=0git status --porcelainCould not verify
ProtectSystem=strict,ReadWritePaths, a task cloning and running): no Guest here. I did not run a task end to end, so whether an active, non-default runner takes untagged tasks is untested; AC2 ("a scratch task runs on 145, and none on 143") is unverified.secret/services/semaphore/runner-registrationexists in the store. The ticket's own comment at the state-key mint lists it as "not written", and the fetch is all-or-nothing, so merging before it is written turns the deploy red atmake env(a safe failure, before anything changes). The body does not list it as a merge precondition; the ticket's other hand-offs (cockpit's SSH key on 145,ci-cockpitread on this path) are likewise not mentioned. Not charged: I cannot read the store.make service-checkagainst 143/145 and the author's recap (changed=4/changed=11): needs the Operator's credentials.Named, not charged
site.ymlplay 1), so the failure of play 2 or 3 leaves 143 handing tasks to a runner that is not default: disclosed in the body's Merge Danger, with its recovery. A design alternative is to flip the switch in play 3, once the row exists; it is the author's call.runner/guesthas no plan job: disclosed.ok, notchanged, on the run that changes the row: not counted.Closing summary
runner-default.yml, so no runner is ever made defaultgroup_vars/allpasses the suiteThe verdict turns on the four blockers. Separately, five advisories is three or more, which on its own would also have moved the recommendation to
fix; it did not decide it, and each advisory keeps the weight its evidence earned.Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
Round 1 report — head
943f9b0, two new commits onhermes/cp42-runner-role. No force-push, no history rewritten, one branch.runner-default.ymlsite.yml's third play istasks:+import_role: tasks_from:, which is the form Ansible honours; theroles:+tasks_from:shape is gone, with the comment saying why5daf3fe--list-tasksat the head: play #3 is the file's eight tasks and none of the server role; reverted, the new case reds on three assertionsstatus_code: 200vs 204)5daf3fesemaphore_runner_session; the read and the PUT both carry it5daf3fe"cookie": "session=stub-session"on GET and PUT; drop the header and the play fails naming 401tasks/token-mode.yml, imported after the registration:stat, thenfileat0600, the account's own, skipped when the file is not there yet (check mode)5daf3festatreads back600; mutated to 0644 it redsmake prodand the 145 snapshot)semaphore_web_rootfromgroup_vars/all; its own copy is deleted5daf3fe943f9b0renders the runner's config and compares it to the valuegroup_vars/allholdsno_loghid the reasonfailed_when: false, nostatus_code:) and the assertion after it reports the status and what it means; the calls stayno_log5daf3fePUT /api/runners/7 answered 401. …where the reviewed head printed{"censored": "the output has been hidden …"}fail_msgnow namesrm /etc/semaphore-runner/tokenand one moremake service, which is whatdocs/deploy.mdalready said it did5daf3fe--list-tasksoversite.yml, the token-mode file driven against a scratch token, and the runner's config rendered5daf3fe,943f9b0Left alone
Finding 5 (CP-42 AC4). I took the second of the two clearing options the finding offers: the body now says CP-42 stays open, and names what is missing —
PROD_STEPSis stillsnapshot guest service verify, andsnapshotreads only the server Stack's vmid. Widening what a merge runs (a second Guest apply in a CI token that cannot create a Guest) is a deploy-shape decision, not a fix I should fold into a review round. Nothing else in the finding is disputed.No finding was disagreed with. Findings 1–3 were reproduced here before they were fixed.
Commands, and what they printed
Red proofs, each on a mutation of this head and reverted:
site.ymlput back toroles:+tasks_from:→FAIL the third play reads the rows the server knows (missing […]),FAIL and marks that runner active and default (missing […]),FAIL and does not re-run the whole server role (found [semaphore : the three config values are set])0644→FAIL the mode the role leaves on the token is 0600 (want [600], got [644])web_hostpointed at another variable →FAIL its web_host is the address group_vars/all holds (missing ["web_host": "http://10.12.0.143:3000"])Findings 2 and 3, driven against a stand-in API that answers 204 to a login, 401 to a call without the cookie, and 204 to the PUT:
CI on
943f9b0:pr-checks / check (pull_request)— success, 38 s. The log carries the new cases:the third play runs the runner default file,the runner token is mode 0600,the runner config dials the deploy s address, thenenv tests: every case passed./plan tests: every case passed.plan / guest-plan-check (pull_request_target)— success, 15 s,No changes. Your infrastructure matches the configuration.Body corrections
Two sentences in the PR body were falsified by this change and are corrected in place: the pin is version and digest only (the address has one home), and the new-cases line names all three cases. The CP-42 note above was added in the same write; the stored body was read back and compared byte for byte.
Not verified here
make service-checkagainst 143 and 145 — no credential in this environment. Your rehearsal numbers still stand; I did not re-run them.semaphore_web_rootnow resolves fromgroup_vars/allin the deploy (playbook-level vars); the new render case proves it against the same file the deploy reads, but onlocalhost, not on 143.Review started (round 2/5) on
943f9b05e7— reading the diff now.repo: olympus/infra-cockpit | PR: #21 | reviewed head:
943f9b05e7| round: 2/5 | verdict: APPROVED, no blockers (3 advisories)Recommendation: fix
The recommendation turns on the count, not the weight. No blocker stands: all four round-1 blockers are cleared. Three advisories were counted, and three or more move the recommendation to
fix(one batched polish round). None of the three is a defect in what the change does; each keeps the weight its evidence earned.Round 2 of the thread (one review already posted, so the count is 1 + 1; the dispatch said 2/5 as well). Fixed point:
a9b4f25(round 1's head);git merge-base --is-ancestor a9b4f25 943f9b0is true, so the fix stacked and the round's delta isgit diff a9b4f25 943f9b0(commits5daf3fe,943f9b0; 9 files, no base merge). The head I read isrefs/pull/21/head, equal to the dispatch SHA, and unchanged when I posted.Spec source: Vikunja CP-42 (project 11) acceptance criteria as read in round 1, plus the PR body. Standards source:
AGENTS.md§Secrets, §Toolchain, §Docs;docs/agents/*; the repo keeps no ADRs of its own.Round 1's four blockers
Each driven for myself, not read: a real community 2.19.16 server (version string
2.19.16-f8cefe6), a realrunner register, and the head's play 3 written exactly assite.ymlwrites it (hosts: semaphore,import_role+tasks_from) run against it.runner-default.yml5daf3fe,semaphore/service/site.yml:35-39(tasks:+import_role+tasks_from)ansible-playbook … site.yml --list-tasks: play #3 is 9 tasks, allsemaphore : …from the file, and 0 hits forthe three config values are set(r1: 40 tasks of the whole role). Red/green: put back toroles:+tasks_from:in a copy → suite FAIL x3 (the third play reads the rows…,and marks that runner…,and does not re-run the whole server role).status_code: 200vs 2045daf3fe,roles/semaphore/tasks/runner-default.yml:35,41(failed_when: false, assertin [200, 204])http=204,ok=9 failed=0, row readsactive:true, is_default:true, name andmax_parallel_taskspreserved.5daf3fe,runner-default.yml:54(semaphore_runner_session),:62(GET),:109(PUT)5daf3fe,roles/semaphore_runner/tasks/token-mode.yml:25(mode: "0600"), imported atroles/semaphore_runner/tasks/main.yml:237after the registrationregisterleaves644; the role's owntoken-mode.ymlagainst that real token →changed,statreads600; second runchanged=0. Check mode: the task isskippingwhen the file does not exist. Play #2's task list carries both new tasks after the registration. Mutation0644→ suite FAILwant [600], got [644].Advisories 6, 7, 8 and 9 from round 1 are also cleared, each driven:
config.json.j2:2readssemaphore_web_root; the runner's default is gone.ansible-inventory --hostfor both prod hosts resolves the same value. Mutations — template with a literal other address, and the runner role regrowingsemaphore_runner_web_root— both FAIL the suite.no_loghid the reason): wrong password now printsPOST /api/auth/login answered 401 …; server down printsanswered -1 …; two rows prints theexactly onemessage.main.yml:291now namesrm {{ semaphore_runner_token_file }}, which makesdocs/deploy.md:152true.Spec
semaphore : ok=62 changed=4 skipped=22andsemaphore-runner : ok=20 changed=11 skipped=13, "the real--check --diffagainst 143 and 145", with "the 4 on 143 are the config template … and the restart handler". At the reviewed heada9b4f25play #3 re-ran the whole server role (r1's--list-tasks: play #1 = 42 tasks, play #3 = 40; 82 tasks against a recap of ok+skipped = 84). Now play #3 is 9 tasks and play #2 is 33 (was 31). Those recaps cannot be what the fixed playbook prints, and the template-plus-handler explanation is two changes, which a double run would report as four. The author's round-1 comment says "Your rehearsal numbers still stand; I did not re-run them"; for 143 and 145 they do not. Same finding, second site: the body's "New cases:" line names four cases and the PR adds five (the runner config dials the deploy s address,scripts/tests/run.sh:582, is missing). Clears: re-runmake service-checkat this head (it needs the Operator's credentials, so say so if it cannot be) and replace the two recap lines and the cases list.Named, not charged: CP-42 AC2 ("a scratch task runs on 145, and none on 143") and AC4 (
make prod, the 145 snapshot) — the body keeps CP-42 open for AC4 and says why (Makefile:56is stillPROD_STEPS := snapshot guest service verify); AC2 needs the Guest and stays untested here as in round 1.Standards
standards:
AGENTS.md§Secrets: no plaintext in the diff; the session cookie lives inset_factwithno_log: true, andsemaphore/service/ansible.cfgsets no fact caching, so it stays in memory. §Toolchain:pr-checks / checkandplan / guest-plan-checkaresuccesson943f9b0(statuses read by SHA).token-mode.yml.scripts/tests/run.sh:550(case_the_runner_token_is_mode_0600) drivestests/runner-token-mode.yml, which imports the file alone. Mutation, in a copy of head: delete the import atroles/semaphore_runner/tasks/main.yml:236-237→scripts/tests/run.shrc=0, nothing FAILs, and the deploy is back to a 0644 token — round 1's blocker 4. The author's own comment in that file says "a test that restated the mode would keep passing after this stopped setting it"; the same is true of the import.case_the_third_play_runs_the_runner_default_file(run.sh:524) already does this forsite.ymlwith--list-tasks; a--list-tasksassertion over play #2 forthe runner's standing token is the account's, at 0600closes it without a server.docs/deploy.md:147says "Two consequences worth knowing:" and lists three bullets (:149,:150,:154). Say "Three", or fold the first bullet into the lead-in.Verified, and how
git ls-remote origin refs/pull/21/headand the fetched ref943f9b05…, twicegit merge-base --is-ancestor a9b4f25 943f9b0make checkgreenmake plan-testx4 at head and x4 at base99c8ee8plan testscase (and aborts when none is typed, preceded byplan-check.sh: line 50: printf: write error: Broken pipe); all eight reruns rc=0. A flake in a file this PR does not touch; not charged. The 149okassertions of the env suite are all green,env tests: every case passed.--list-tasksoversite.yml;--syntax-checkrunner register, play 3 verbatim, scratch ports and dirsis_default:true; run 2 PUT skipped;--checkall 9skipping, rc=0roles:; token0644; literal address in the template; runner address copy regrown; import removedsuccessgit status --porcelainCould not verify
make service-check/ the deploy against 143 and 145: needs the Operator's credentials; the stale recap is advisory 1.secret/services/semaphore/runner-registrationexists in the store (as in round 1; the body still lists it nowhere as a merge precondition, but I cannot read the store).Named, not charged
plan-check.shBroken-pipe flake above (pre-existing file, not in the diff).ok, notchanged, on the run that changes the row (round 1: not counted).runner/guesthas no plan job: disclosed in the body.Closing summary
make service-checkrecap predates the fix; it describes a play 3 that re-ran the whole server rolerun.shgreenBlockers: 0, so the review state is APPROVED. Advisories: 3, so
Recommendation: fixand the labelreview/needs-fix; the count did it, not the weight.Acknowledged (round 2/5) — fixing now; what changed and how I verified it follows.
New commits pushed, approval review dismissed automatically according to repository settings
Round 2 report — head
aa49c09, two new commits onhermes/cp42-runner-role, fast-forward from943f9b0. No force-push, no history rewritten. Round 2's review wasAPPROVEDwith 0 BLOCKER and 3 ADVISORY; the recommendation isfixon the count, so all three are answered here.PATCH, no commitmake service-checkrecap lines are withdrawn rather than re-stated: they were measured on a playbook whose third play re-ran the whole server role. The slot says who re-runs it and why I cannot, with--list-tasks' own counts (42 / 33 / 9) as the reason the old 84 cannot stand. The cases list now names six, includingthe runner config dials the deploy's address.token-mode.ymlaa49c09the runner play runs the token mode file:--list-tasksover play #2, asserting the file's two tasks and their place between the registration and the unit.54828e7Not re-run, and why.
mise exec -- make service-checkis the Operator's: it needs the environmentmake envfetches — whichAGENTS.mdrefuses an agent — and it reaches the live 143 and 145. Rather than carry a stale recap another round, the body says it is withdrawn and names the command to run at this head. Everything else in the round is verified below.Verification, on an export of the pushed tree (
git archive HEAD | tar -x,mise trust), not on the worktree:env -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check→ rc=0.env-check: the pin and the map agree.,env tests: every case passed.,plan tests: every case passed.,tofu fmt -recursive -check -diffwith nothing to report; 154oklines, 0FAIL, 0skip(this machine carriesdpkg, so the install fixture ran rather than skipping).ok the runner play reads the token \register` wrote,ok and leaves it 0600 for the account,ok the mode sits between the registration and the unit`.import_tasks: token-mode.ymldeleted fromroles/semaphore_runner/tasks/main.yml→env tests: 3 case(s) FAILED.,make: *** [Makefile:294: env-test] Error 1, printingFAIL the runner play reads the token \register` wrote (missing [...]),FAIL and leaves it 0600 for the account (missing [...]),FAIL the mode sits between the registration and the unit (lines: 28/none/29)`. The mode case beside it stayed green — the blind spot, reproduced.FAIL the mode sits between the registration and the unit (lines: 30/29/31), and only that assertion: presence alone would not have caught it, an order does.mise exec -- ansible-playbook -i semaphore/service/inventories/prod/hosts site.yml --list-tasks→ 3 plays, 42 / 33 / 9 tasks; play #2 carries both token-mode tasks.scripts/prose-widths.py docs/deploy.md --baseline origin/main→ widest prose line 82, cap 82,over = 0.Disagreed with: nothing. CP-42 AC2 (a scratch task running on 145) and AC4 (
make prodcovering 145) stay named-not-met, as round 1: no Guest here, and widening what a merge runs is the Operator's decision.CI on
aa49c09:pr-checks / check (pull_request)andplan / guest-plan-checkbothsuccess; the commit's aggregate status readssuccess(GET /commits/aa49c09…/status). Read before posting this, not after.Label moved
review/needs-fix→review/needs-review. Nothing left for a human here; the one thing this round could not do is the rehearsal, and the body says so where a reader will look for the numbers.Review started (round 3/5) on
aa49c09565— reading the diff now.repo: olympus/infra-cockpit | PR: #21 | reviewed head:
aa49c09565| round: 3/5 | verdict: APPROVED, no blockers (0 advisories)Recommendation: merge
Round 3 by the thread (two reviews already posted, so 2 + 1; the dispatch said 3/5 as well). Fixed point:
943f9b0, round 2's head.git merge-base --is-ancestor 943f9b0 aa49c09is true, so the fix stacked and the delta isgit diff 943f9b0 aa49c09: commits54828e7andaa49c09, 2 files (docs/deploy.md+1/-1,scripts/tests/run.sh+40/-1), no base merge.refs/pull/21/headon the forge equals the dispatch SHA, read at the start and again before posting. One reviewer held both axes; the sections below stay apart anyway.Ask, and where it came from. Round 2 was
APPROVEDwith 0 blockers and 3 counted advisories, so the round is owed those three advisories' clearing changes and nothing more. A new BLOCKER on this round would have to be a correctness or security defect introduced or exposed by the delta; I found none.Spec source: Vikunja CP-42 (project 11) acceptance criteria as quoted in rounds 1 and 2 (not re-read this session; carried from those bodies), plus the PR body, which I re-read at this head. Standards source:
AGENTS.md§Secrets, §Toolchain, §Docs at the head worktree;docs/agents/*; the repo keeps no ADRs of its own.Round 2's findings, closed
Round 2 left no blocker. Its three advisories, each driven at this head:
ok=62 changed=4/ok=20 changed=11lines are withdrawn, not re-stated. The body's replacement counts check out:ansible-playbook … site.yml --list-tasksat head gives play #1 = 42, #2 = 33, #3 = 9; the two plays that run on 143 now list 42 + 9 = 51 tasks, where the old 143 recap counted 62 + 22 = 84, so it cannot stand. The cases line names six, and all six exist inscripts/tests/run.sh(:260,:309,:524,:550,:585,:621). The body's154 oklines andenv tests/plan tests: every case passed.reproduce (below).token-mode.ymlaa49c09,scripts/tests/run.sh:585-614(case_the_runner_play_runs_the_token_mode_file), wired into the loop at:660docs/deploy.mdsays "Two consequences" over three bullets54828e7,docs/deploy.md:147("Three consequences worth knowing:"):149,:150,:154); a census oftwo consequences|three consequencesoverdocs/andREADME.mdfinds only that line.The new case, proved by mutation (a case that cannot fail is the finding)
Each mutation is a fresh
git archive HEADcopy; the suite isscripts/tests/run.shas shipped. Evidence of each mutation printed before its result was read.env tests: every case passed.import_tasks: token-mode.ymlblock removed fromroles/semaphore_runner/tasks/main.yml(--syntax-checkrc=0, so the red is not a parse error)the runner play reads the token \register` wrote (missing […]),and leaves it 0600 for the account (missing […]),the mode sits between the registration and the unit (lines: 28/none/29)`register with the server …(--syntax-checkrc=0)the mode sits between the registration and the unit (lines: 30/29/31)token-mode.ymlset tomode: "0644"the mode the role leaves on the token is 0600 (want [600], got [644])Round 2's blind spot (deleting the import left the suite green) is closed; presence and order are each pinned by their own assertion, and the pre-existing mode case still reds on the mode itself. A first attempt at mutation A that deleted only the module line left a task with no action and reddened the whole playbook (
want [0], got [4]); I discarded it as a probe fault and redid it with the name line removed too, which is the row above.Spec
No findings. The two lines that changed carry no behaviour: the diff touches no role, play or template. The deploy's contract (CP-42 AC1, AC3) is as round 2 left it:
token-mode.yml:25still sets0600,main.yml:237still imports it after the registration (:217) and before the unit (:242).Standards
No findings.
AGENTS.md§Secrets: the delta adds no credential. §Toolchain:pr-checks / check (pull_request)andplan / guest-plan-check (pull_request_target)are bothsuccessonaa49c09(/commits/<sha>/status, by SHA). §Docs: the one doc edit is a count made true.Verified, and how
git ls-remote origin refs/pull/21/head, and the fetched refaa49c095…, three timesgit merge-base --is-ancestor 943f9b0 aa49c09make checkgreenenv -u PROXMOX_VE_API_TOKEN -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY mise exec -- make check, run to a log, rc taken bareoklines (`grep -cE '^:space:*ok(:space:the runner play runs the token mode filewith its 4oklines--list-tasks, lines 77-80 of the listinggit merge-tree --write-tree origin/main HEADorigin/mainis99c8ee8, equal to the PR'smerge_base, so the branch is current/commits/aa49c09…/statussuccess, both contextsgit status --porcelainCould not verify
make service-checkneeds the environmentmake envfetches, whichAGENTS.md§Secrets refuses an agent. Both are named in the body as not run; the body no longer claims numbers it did not measure.secret/services/semaphore/runner-registrationexists in the store (as in rounds 1 and 2; I cannot read it).Named, not charged
make prodand the 145 snapshot): the body keeps CP-42 open and says why (MakefilePROD_STEPSunchanged). A disclosed deferral, as in rounds 1 and 2.make service-checkrecap at this head. That is a hand-off the body states plainly, not a claim it makes; the merge deploys either way and the Merge Danger section already says what an unregistered runner does.plan-check.sh's Broken-pipe flake from round 2 did not recur (singlemake checkrun green); still not in this diff.scripts/prose-widths.py; no such file is in the repo at head (ls scripts/=env.sh plan-check.py semaphore-idle.sh snapshot.sh tests). It is a comment's claim about the author's own tooling, not part of the diff. The one added doc line is 74 characters.Closing summary
Blockers: 0, so the review state is APPROVED. Counted advisories: 0, so
Recommendation: mergeand the labelreview/merge-ready. All three of round 2's advisories are cleared and each clearing change was driven, the new case by mutation in both directions.