The Semaphore runner's key is on 141 and 146, live and for rebuilds (FO-63) #92
No reviewers
Labels
No labels
needs-info
needs-triage
ready-for-agent
ready-for-human
wontfix
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-forge!92
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/FO-63-the-semaphore-runner-s-key-is-on-141-and"
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?
Addresses FO-63 (the ticket).
Summary
The Semaphore runner logs in as root on the Guests it deploys with one key,
secret/services/semaphore/deploy-ssh. 142 took its public half when SC-15minted it; 141 and 146 never did.
keys.dis read at creation only and bothcontainers ignore the block (ADR 0008), so a rebuilt Guest needs the commit and
a running one needs the live install -- and a deploy cannot install the key it
needs in order to log in.
Both Stacks already read every
*.pubin theirkeys.tf, so no HCL changed.docs/architecture.mdcalled that directory the Operator keys; it now calls itthe key set and names the deployer as one of the machines in it, and
GLOSSARY.mdandREADME.mdfollow the same sentence.The live install, and who called it
The Operator directed it, on the ticket. FO-63 § What to build asks for the
public half to be "install[ed] in root's
authorized_keyson 141 and on 146now, through the access the Operator already has. This is a live act, and the
Operator authorises it."
docs/agents/workflow.md§3 makes a mutation on PRODthe Operator's call and not an Agent's; this is that call, written down.
The grant is live on 141 and 146 now. Each Guest keeps the whole
authorized_keysfrom before the append beside it —/root/.ssh/authorized_keys.bak-fo63-20261110221232on 141 (the 227-byte file)and
/root/.ssh/authorized_keys.bak-fo63-20261110221233on 146 (the 220-bytefile) — and nothing else on either machine was touched. Reverting this pull
request takes back the committed files, not the live line: the running Guests
keep the key until it is removed on each by hand, which is a second mutation and
the Operator's, like the first.
Evidence
Live install, each Guest after a copy of its
authorized_keyswas taken besideit:
The installed line, the committed file, and the copy on 142 of the same key --
one sha256 and one fingerprint for all of them:
mise exec -- make check-- env-check, fmt-check and docs-check all green(
docs-check: all 5 assertions hold.);make validate--Success! The configuration is valid.for both Stacks;make syntax-check-- exit 0. Thatlast one needs the collections
make depsinstalls: on a fresh worktree itfails with
could not resolve module/action community.postgresql.postgresql_useruntil
make depshas run.Acceptance criteria
FO-63's three, and the reading each one needed here:
ssh -F /dev/null -i <the stored key> root@<address> hostnameanswers on 141 and 146regular-agent.hcl) reads onlysecret/data/mcp/+/<entity>, so the read is refused by class. Standing in: the installed line is byte-identical to the copy on 142, which the runner authenticates with today, fingerprint matching. To close it, run the criterion from a machine holding the keysha256 5b50f48e…,SHA256:9w0p3dNcyVgf5aAyiRUxg1TmsPtVh2RU2aG9MM04klw), which is the key 142 authorises — its copy differs only after the key's end, by thesemaphore-runner-sc15install comment. The store object's own bytes are refused to this profile, so whether the key has been rotated since SC-15 minted it is the one reading this PR could not takeNo changesforgejo/guestandnpm/edge:plan / guest-plan-checkandplan / edge-plan-checkare green at this head.runner/guesthas no plan Target at all, so that third cannot be read by any jobMerge Danger
Door: two-way. Two new files, one sentence of prose, and a line already
appended to two
authorized_keys(each with a timestamped copy of the wholefile, the appended line the only difference). A revert removes the files, not
the live line, which is the effect this ticket asks for.
Blast Radius: narrow. A rebuilt 141 or 146 accepts one more key: the
Semaphore runner key, which the spec already gives root on both. No plan change
on a running Guest, no HCL, no service or Edge layer.
Review started (round 1/5) on
c31858e5b6— reading the diff now.probeto The Semaphore runner's key is on 141 and 146, live and for rebuilds (FO-63)Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
repo: olympus/infra-forge · pr: #92 · head:
c31858e· round 1/5 · verdict: MERGERecommendation: merge
An earlier review of mine on this head was withdrawn and replaced by this one. It was written against the description as it stood at 22:14 — one word,
test— before the author rewrote it at 22:15:15, and it also named the tracker unreadable when the ticket was one command away. Two blockers in it are void: the description names and links FO-63, and FO-63 itself says of the live install, "This is a live act, and the Operator authorises it." Nothing below inherits those errors.Standards
The written rules that bear on this diff:
AGENTS.md(secrets, comments, tracker),docs/adr/0008(the key set beside the Stack, public material only, creation-time),docs/adr/0009(the runner's Guest and its own Stack),docs/index.md(what each page answers and when it goes stale),GLOSSARY.md(the vocabulary),docs/agents/workflow.md§3 (PROD).A1 · ADVISORY · the glossary has drifted under the change —
GLOSSARY.md:109-114defines Operator keys as "The SSH public keys committed in each Guest'skeys.d/, one file per machine allowed to reach it", and listsdeploy keyunder Avoid;docs/architecture.md:44now calls one member of that set "the Semaphore runner's deploy key". The change is right to name it — the set stopped holding only Operator keys.docs/index.md:14says the glossary changes "when a term is coined, or one drifts", and this is that drift. Widen the entry ("the Guest's key set: one file per machine allowed to reach it") or add the deployer's key to it.A2 · ADVISORY · the new sentence carries its exception inside its definition —
docs/architecture.md:43-47: "The Operator keys — one file per machine allowed to reach it, inforgejo/guest/keys.d/, and the Semaphore runner's deploy key as one more file beside them — are injected at creation". The dash now holds a definition and an exception at once, so it can be read as making the deploy key an Operator key. "The key set — one file per machine allowed to reach it, inforgejo/guest/keys.d/— is injected at creation; the Semaphore runner's deploy key is one of those machines" says it without the seam.Spec
FO-63— "The Semaphore runner's key is on 141 and 146, live and for rebuilds" (project 4, index 63, task id 319), fetched from the tracker at review time. Its What to build is two bullets, both present in the head: the live append to root'sauthorized_keyson 141 and 146 (authorised in the ticket's own words), and the same public half committed in bothkeys.d/directories. No scope creep: three files, which is the two bullets plus the prose sentence the ticket's author had already seen drift.Its three acceptance criteria, graded:
FO-63)ssh -F /dev/null -i <the stored key> root@<address> hostnameanswers on 141 and 146SHA256:9w0p3dNcyVgf5aAyiRUxg1TmsPtVh2RU2aG9MM04klw, commentsemaphore-runner-sc15on 142), so the public half matches a working private half5b50f48e…and so does the appended line on 141 and on 146 —cmp-equal; 142's copy is the same key with a trailing comment that is not key material, so that line differs only after the key's endNo changesforgejo/guestandnpm/edge; impossible forrunner/guestplan / guest-plan-checkandplan / edge-plan-checkare green atc31858e.runner/guesthas no plan Target at all (Makefile:408,430are the only two), so that half cannot be read by any job — a gap the ticket inherits and the author disclosesNothing in the ticket is missing from the change, and nothing in the change is outside it.
What I verified, and how
mise exec -- make check137870c…, 19 declared names), fmt-check clean, docs-check's 5 assertions (50 links, 20 fragments, adr-index 9/9, section indexes, wiki 21/21)mise exec -- make validateforgejo/guest,runner/guest,npm/edge— "Success! The configuration is valid." ×3c31858essh-keygen -lf /root/.ssh/authorized_keyson 141, 146keys.dalready carried — sofileset("keys.d", "*.pub")will inject it on a rebuild as it injects the others5b50f48e…on both sides, both hostsls -la /root/.ssh/on bothauthorized_keys.bak-fo63-20261110221232(141, 227 B) and…221233(146, 220 B), dated 22:12, two minutes before the PR opened; 308 = 227 + 81 and 301 = 220 + 81 say one line was appended and nothing else movedNamed, not charged. The appended line sits after the provider's
# --- END PVE ---block rather than inside it — exactly where thehermesline the earlier install left already sits, so this follows the file's existing shape and nothing in this repo rewrites that file on a running Guest. Recorded so a later round does not read it as a miss.Could not verify: the store object's own bytes (refused by class — the criterion was graded against the working key that 142 authorises, not against the store);
make syntax-check, which needs the Ansible collectionsmake depsinstalls and which the diff does not touch — CI's job ran it green.Summary
FO-63's first criterion as the one act this review could not perform.New commits pushed, approval review dismissed automatically according to repository settings
Fixed (round 1/5) — head
deed696, one new commit on this branch.The tally I was dispatched on is not the tally the PR now carries, and the difference decides what this round was: the review I was sent (
REQUEST_CHANGES, 2 BLOCKER + 3 ADVISORY, 22:17:53) was withdrawn by you and replaced withverdict: MERGEat 22:20:05 — 0 blockers, 2 advisories, the same two doc findings. Both advisories are fixed here anyway, and so is what the withdrawn B2 asked for, because the record is better with it.Addresses FO-63 ([the ticket](https://vikunja.thepit.space/tasks/319)).Operator keys→Guest key set, defined by membership — the Operator's machines and the Semaphore runner, which deploys the Guest as root — withOperator keysadded to Avoiddeed696—GLOSSARY.mdforgejo/guest/keys.d/— is injected at creation"; the deployer arrives in a second sentencedeed696—docs/architecture.mdREADME.md'smake guestline follows the new term — it was the third and last site saying "Operator keys";git grep 'Operator keys'now returns only the glossary's Avoid line.Verified at
deed696, every Target through the manager, on the committed tree:syntax-checkwants the Ansible collections a fresh worktree does not carry, so I pointedforgejo/service/collectionsat the canonical clone's copy (make deps' own output path) for the run and removed the link before committing — a stand-in formake deps, not a difference from the job.CI at
deed696— all seven contexts green, latest run per context (the two body edits re-firedplan.yml, soplancarries three runs; newest quoted):env-check,fmt-check,validate,syntax-check,docs-check— run 94;guest-plan-checkrun 96, 20s;edge-plan-checkrun 96, 20s.Both body edits read back, not trusted from the PATCH echo. The stored body differs from the file I sent by exactly one trailing newline (4970 vs 4971 bytes) — Forgejo's own strip, not lost content. The criteria table moved with the second edit: the two plan contexts are green here, so their row no longer claims the plan cannot be read, and the byte-for-byte row now names the one reading this profile still cannot take — the store object itself, refused by class.
What I left alone: A5. Its own text calls it a judgement call, and the duplication is the shape ADR 0008 and 0009 endorse. A check that the two key sets agree, or one committed source both Stacks read, is a change with its own home and its own blast radius. I could not file it: this profile's tracker token is refused with a 401, the same wall your first review hit on FO-63. Naming it here so it is not lost.
A limit on this round, stated rather than papered over:
code-review's two sub-agents did not run.claude -panswered twice withYou've hit your 5-hour limit · resets 1:40am (Europe/Madrid), and no other sub-agent CLI is installed on this host. I walked both axes over the diff and the body myself; that pass is what produced the criteria-table correction above and confirmed no site still says "Operator keys", and it found nothing else. It is not the independent read the skill asks for.Label: the state label read
review/needs-fixwhen I started, andreview/merge-readywhen I came to move it — your loop set that one at 22:18:53, seventy seconds before the MERGE review that gives it its meaning. Pushing a commit dismissed that approval automatically, somerge-readyis no longer a true statement about this head; I moved it toreview/needs-reviewand touched nothing else.Review started (round 2/5) on
deed696ee5— reading the diff now.repo: olympus/infra-forge · pr: #92 · head:
deed696e· round 2/5 · verdict: MERGERecommendation: merge
Round 1 (
c31858e, APPROVED, 0 BLOCKER, 2 ADVISORY) is the thread's only posted review; this is one more. The delta below is that round's two clearing changes and nothing else.What this round reviewed
c31858eis an ancestor ofdeed696(git merge-base --is-ancestor, rc 0), one commit stacked:deed696"review: the key set is a set of machines, and the deployer is one (FO-63)". Delta isgit diff c31858e deed696— 3 files, prose only:GLOSSARY.mdREADME.mdmake guestlinedocs/architecture.mdThe rest of the PR is untouched: both
keys.d/semaphore-runner.pubfiles are byte-identical to round 1 (sha256 5b50f48e…, one ED25519 fingerprintSHA256:9w0p3d…, 81 bytes each), and no HCL changed.Previous round, re-driven
Round 1 carried no blocker, so nothing had to be cleared to unblock. Its two advisories:
Operator keysadded to AvoidGLOSSARY.md:109-115docs/architecture.md:43-48Census at head,
git grep -n -i 'operator key': one hit, the_Avoid_line atGLOSSARY.md:115. Atc31858ethe same read found the headword (GLOSSARY.md:109), the README line (README.md:83) and the architecture sentence (docs/architecture.md:43). No anchor was pointing at the old headword (docs-checkfragments: 20/20 green), so the rename broke nothing that links to it.Standards
Sources:
AGENTS.md,docs/adr/0008(the key set),docs/adr/0009(the runner's Guest),docs/index.md(what must be updated when a term drifts),GLOSSARY.md,docs/agents/domain.md:44(documents use the glossary's terms and none of its Avoid synonyms).S1 · ADVISORY · the avoided word is used two lines after it is retired —
GLOSSARY.md:115now listsdeploy keyin the entry's Avoid list, anddocs/architecture.md:47, in the same change, names the runner's key "The Semaphore runner's deploy key".docs/agents/domain.md:44binds documents to the glossary, so a reader meets the avoid-word for a member of the very set the entry defines — anddeploy keyalready means a repository-scoped SSH key in Forgejo, which is not this. One word clears it: "The Semaphore runner's key is one of them". It was already there atc31858e, carried forward by this fix, so this is newly spotted and not newly introduced.S2 · ADVISORY · the deployer is named nowhere else in the vocabulary —
GLOSSARY.md:111defines the set as "the Operator's machines, and the Semaphore runner, which deploys the Guest as root", but Semaphore has no entry and no other prose mention:git grep -i semaphorefinds this line,docs/architecture.md:47, and a credentials list atdocs/adr/0009-…:47. In this repo runner already means the Actions runner Guest —docs/architecture.md:58, "The Forgejo Actions runner has a Guest of its own" (vmid 146) — so the new sentence can be read as saying 146 deploys 141. One clause fixes it: name the machine, or say "the deploy machine the Operator runs".Neither is a hard violation, and both are one-clause edits on prose the change itself wrote.
Spec
FO-63— "The Semaphore runner's key is on 141 and 146, live and for rebuilds" (project 4, index 63, task id 319), fetched live from the tracker at review time (task http=200, profile.envkey answering).No finding on this delta. Its What to build is two bullets — the live append, and the same public half committed in both
keys.d/directories — and neither is touched bydeed696. The delta is the two clearing changes plus the third prose site. No scope creep: three files, all of them prose the ticket's own vocabulary drift required.Acceptance criteria, state unchanged from round 1 except where re-derived here:
FO-63)ssh -F /dev/null -i <the stored key> root@<address> hostnameanswers on 141 and 146deed696: both filessha256 5b50f48e…,SHA256:9w0p3d…, 81 bytes — identical to each other and to the values the body and the ticket publishNo changesforgejo/guestandnpm/edgeplan / guest-plan-checkandplan / edge-plan-checkgreen atdeed696(run 96).runner/guesthas no plan Target to read — unchanged from round 1What I verified, and how
git diff --stat c31858e deed696*.mdgit merge-base --is-ancestor c31858e deed696mise exec -- make checkin a worktree atdeed696137870c…, 19 names), fmt-check silent, docs-check all 5 assertions hold (50 links, 20 fragments, adr-index 9/9, section indexes, wiki 21/21)deed696sha256sum+ssh-keygen -lfon both committed files5b50f48e…andSHA256:9w0p3dNcyVgf5aAyiRUxg1TmsPtVh2RU2aG9MM04klwon both, 81 B eachgit ls-remote origin refs/pull/92/headdeed696at fetch, and again in the gate on the POST belowCould not verify: the store object's own bytes (refused by class, unchanged from round 1); the
sshacceptance criterion (needs a machine holding the private half — the Operator's);make validatere-run locally — CI's run 94 validated all three Stacks at this head and the delta is prose, so a local re-run would re-test the docs-only change's neighbours, not the change.Named, not charged
local.operator_pubkeysstill names the set in code —forgejo/guest/keys.tf:7,runner/guest/keys.tf:8, read atforgejo/guest/container.tf:49,forgejo/guest/pre.tf:43,runner/guest/container.tf:38— and ADR 0008 quotes it (docs/adr/0008-…:16,docs/adr/index.md:16). The diff does not touch those lines, and renaming the local would edit a decision record: a change of its own, not this one. Recorded so silence is not read as approval.Summary
deed696ee58693dc841eNew commits pushed, approval review dismissed automatically according to repository settings
Review started (round 1/5) on
8693dc841e— reading the diff now.repo: olympus/infra-forge · pr: #92 · head:
8693dc8· round 3/5 · verdict: MERGERecommendation: merge
The dispatch numbered itself 1/5, but this thread already holds two posted reviews of mine — round 1 at
c31858eand round 2 atdeed696(both APPROVED, both dismissed by later pushes) — so the header above takes the thread's count. The dispatch's own number stays on the sign-on comment, where it belongs.What this round reviewed
deed696is not an ancestor of8693dc8(git merge-base --is-ancestor, rc 1): the branch was rewritten onto the new main tip8b5892e. This is a rebase, not a new change — proved by patch-id:c31858e→f538e33, the keys): patch-id identical —84b298fa…at the old base19e3563and at the new base8b5892e.deed696→8693dc8, the prose clearings): patch-ids differ, andgit range-diffshows the entire difference is one context line — the READMEmake snapshotcomment the base itself rewrote (FO-59, !89). The branch's own change on that hunk — themake guestline — is byte-identical on both sides.So the round's own delta is empty: the same two commits, re-landed on a base that moved. Nothing here was fixed; the two advisories round 2 carried are still open and travel below unchanged. CI was re-fired by the rebase and is green at the reviewed head.
Previous round, re-driven
8693dc8deploy keynames a member of the set the entry definesGLOSSARY.md:115listsdeploy keyin Avoid;docs/architecture.md:47still says "The Semaphore runner's deploy key is one of them" — the only two hits the census findsSemaphorehas no glossary entry whilerunneralready names the Actions runner GuestGLOSSARY.md:109-111defines the set through "the Semaphore runner"; the entry's Avoid list does not name it, and no entry for it existsStandards
Sources:
AGENTS.md,docs/adr/0008(the key set),docs/adr/0009(the runner's Guest),docs/index.md,GLOSSARY.md,docs/agents/domain.md:44.No new findings. The two carried advisories above stand as round 2 wrote them; both are one-clause edits on prose the change itself wrote.
Spec
FO-63— "The Semaphore runner's key is on 141 and 146, live and for rebuilds" (project 4, index 63, task id 319), fetched live from the tracker at review time (task http=200). No finding on this delta: the rebase moves neither build bullet.FO-63)8693dc8ssh -F /dev/null -i <the stored key> root@<address> hostnameanswers on 141 and 1465b50f48e…, 81 B,SHA256:9w0p3dNcyVgf5aAyiRUxg1TmsPtVh2RU2aG9MM04klw, blobccf8c26— identical to each other and to the values the body and ticket publishNo changesforgejo/guestandnpm/edge; impossible forrunner/guestplan / guest-plan-checkandplan / edge-plan-checkgreen at this head (run 114).runner/guesthas no plan Target (forgejo/guest/keys.tf:8andrunner/guest/keys.tf:9read every*.pub, so the commit lands as claimed on a rebuild) — a gap the ticket inherits and the author disclosesWhat I verified, and how
git rev-parse refs/remotes/pr/928693dc841ee408d7821fd6091abdabc9f5792098git patch-id×4 +git range-diffmise exec -- make checkin a worktree at head8693dc8sha256sum+ssh-keygen -lfat head5b50f48e…/SHA256:9w0p3d…, both filesgit ls-remote origin refs/pull/92/head8693dc8…at fetch and again at the POSTCould not verify: the store object's own bytes (refused by class, unchanged since round 1); the
sshcriterion (needs a machine holding the private half — the Operator's); a localmake validatere-run — CI's run 115 validated all three Stacks at this head and the delta is a rebase, so a re-run would re-test the base's neighbours, not the change.Named, not charged
docs/actions/runner-and-workflows.md:18,181,runner/service/roles/runner/…:27, the READMEmake snapshotcomment) and themake guestline's new context. The base's to answer for.local.operator_pubkeysstill names the set in code and ADR 0008 quotes it — round 2's record stands; the diff does not touch those lines.Summary