guest: the two Stacks the agents run on, and the checks that judge them (THE-64) #2
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-agents!2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/the64-stacks-and-roles"
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?
What this is
Annex B #4 of the accepted design (THE-60 §5–§7), split at the point the work actually splits. This change is the two Stacks and the machinery that judges and drives them; each host's service play is a run of its own, because a role carries a rehearsal and the paperclip role cannot name its own database until 153's inside is measured.
The two Stacks
hermes/guest(135) andpaperclip/guest(153): one Stack, one state record each (prod/{hermes,paperclip}-guest.tfstate), declaring vmid, address, gateway, bridge, MAC, cores, memory, swap, disk,features, tags,start_on_bootandpool_id = "prod", withprevent_destroy = trueand the three-partignore_changesnote the Semaphore guest carries.Every value was read from the hypervisor on 2026-11-12 rather than from the design's prose, and the measurement corrected the prose twice:
vmbr0(assumed)vmbr1keys.d/carries the Admin agent's key and the Semaphore deploy key's public half — so a rebuilt Guest is one the fleet's admin and its deploy can both enter, which 153 has never had.The checks
plan.ymlhead/<host>/guestwith that record's plan key and the auditor token, fork head refused as the first step of each, nopaths:filtermake plan-testmake env-testnesting+keyctl), and that both plan jobs refuse a fork firstmake checkThe deploy vocabulary
make guest-plan-check / guest-plan / guest / snapshot / verify, andprodcomposing them in the design's order: 153 → 135, withscripts/agents-idle.shbetween — a bounded wait (600 s) for no agent run in flight that proceeds and says how long it waited, the shapemake semaphore-idlehas.scripts/snapshot.shtakespredeploy-*before anything changes and prunes by exact name.The inventory
docs/hosts.mdis now the measured page: both containers frompct config, 135's inside from the host itself, 153's inside read-only throughpct execfromduku— the only route, since no key in the estate reaches 153.What this change does not do, and why
hermes/serviceconfig.yamlwith its 8 reference positions,.env(19 names), the door as an installed artefact, and four units — with a--checkrehearsal, which cannot run from this sessionpaperclip/servicedocs/hosts.mdwith the exact commands that read themplan.ymltakes the two plan keys as repository secrets — the shape all five sibling repositories use — because theagentslogin cannot fill two records'AWS_*pairs into one.env(scripts/env.sh: one name per actor). THE-62's "the plan job logs in" needs a per-record fetch first; that is a change to the vendored script and its pinmake servicerefuses by name for each host until its role lands, soprodcannot half-deploy.Two things worth a reviewer's eye
pool_idis declared but 135/153 are not in/pool/prodyet; that write is the Operator's (THE-65), and until it lands the PROD token cannot reach either Guest. The attribute is there so a replacement lands in the pool.descriptionis ignored on both Stacks: the live containers carry the community script's HTML page, and the first adoption must not plan to erase text no declaration wrote.The three fixes the review and triage named, at
4f944f3pr-checksgreen at the new head;make checkgreen with 65 assertions (env-test 41, plan-test 22, env-check 2).1. The apply is judged
confirm_and_applynow pipes the artifact it is about to apply throughscripts/plan-check.pyunderNONINTERACTIVE=1, and aborts on red —infra-cockpit's shape. A red artifact is removed and nothing is applied.make plan-testhas two new cases that exercise exactly that path, not the judge in isolation:make guest NONINTERACTIVE=1exits non-zero, printsaborted: the plan would destroy or replace, namesterraform_data.two would be destroyed, and the state still holds both resources;2.
state_credentials— the backend's two namesenv.mapfills one pair per record under the host's own prefix (HERMES_GUEST_STATE_*/PAPERCLIP_GUEST_STATE_*), and the S3 backend readsAWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY; nothing mapped the two onto each other, somake guest,guest-planandsnapshotwould have failed attofu initfor the Operator and the deployer. The macro puts the pair on the backend's names insideguest_stack_init, refuses by name when either is empty, andenv-testasserts it at the composed command for both hosts (make -n guest HOST=<host>).3. The idle guard — wired, and its one missing input named
PAPERCLIP_DASHBOARD_URLPAPERCLIP_URL, a committed literalprodpasses to the guardPAPERCLIP_COMPANY_IDPAPERCLIP_COMPANY_ID, a committed literal, samePAPERCLIP_API_KEYsecret/paperclip/api/runnerA
literalrow for the first two cannot work on the runner: the store refuses a non-secret, andscripts/env.shreports an age-class literal as "not held" and writes the file without it — the guard would still no-op. So they are Makefile literals, like every other address in the Stacks.The key is the gap, and it is not silent:
scripts/agents-idle.shrefuses with the path named:PAPERCLIP_API_KEY is empty: no read-only dashboard key is minted at secret/paperclip/api/runner yet, so the fleet cannot be read and no wait happened;env.mapcarries the row commented out, with the reason it cannot be written before the path exists (a 404 refuses the wholemake envfetch, which would break every deploy to close a gap);docs/deploy.mdcarries the minting step: create the key,bao kv put secret/paperclip/api/runner …, add therunnergrants row inautomation-runner.hcl, uncomment the map's row.Until that lands the 600 s wait does not happen, and design §7 says what that costs. It is one Operator step, and it is named in three places rather than hidden behind a passing script.
A fourth bug the tests found
require_host'scasepattern washermes paperclip)— two tokens to bash, so the first Target that ran died on a syntax error.make -nnever shows it. One pattern now, andenv-testrunsmake -n guestfor both hosts.Not changed, deliberately
proxmox_download_filecarries noprevent_destroy: the template file is shared with 143/145, and deleting it is a cluster-wide act. With the judge on the apply path it is a create/destroy the deploy refuses, so a guard on the resource would only add a hand step to a rename.`hermes/guest` (135) and `paperclip/guest` (153): one Stack and one state record each, `prod/{hermes,paperclip}-guest.tfstate`, in the store's bucket. Every value in the two `guest` objects was read from the hypervisor on 2026-11-12 (`pct config 135` / `pct config 153` on duku) rather than taken from the design's prose, and the measurement corrected the prose in two places: 153 is on `vmbr1` with the fleet's service Guests, not on `vmbr0`, and it has 4 cores and 12 GiB — facts the design did not carry. 135 matches the design exactly (2 cores, 4 GiB, 40 GiB on fast-storage, nesting+keyctl, vmbr0). Both declare vmid, address, gateway, bridge, MAC, cores, memory, swap, disk, features, tags, `start_on_boot` and `pool_id = "prod"`, with `prevent_destroy = true` and the three-state `ignore_changes` note the Semaphore guest carries: the creation-time `keys.d` account, the `ForceNew` pool attribute the provider never reads back, and the community script's HTML `description`, which no declaration wrote and the first adoption must not plan to erase. `keys.d/` carries the Admin agent's key and the Semaphore deploy key's public half, so a rebuilt Guest is one the fleet's admin and its deploy can both enter — the property 153 has never had. Neither Guest is in `/pool/prod` yet; that write is the Operator's (THE-65), which is why the attribute is declared anyway: a replacement created from this configuration lands in the pool without a second hand step. Co-Authored-By: Paperclip <noreply@paperclip.ing>Review started (round 1/5) on
ff949c3495— reading the diff now.Reviewed
olympus/infra-agents#2 atff949c3495— round 1/5 (the review list was empty before this one, so the thread's count and the dispatch's agree). Spec:paperclip:THE-64, which names THE-60's design §5–§7; both read live, plusolympus/workshopdocs/adr/0015atmain. Standards: this repo'sAGENTS.md,Makefileheader,env.map/.env.example,docs/deploy.md,docs/hosts.md— and the sibling shape the change says it carries (olympus/infra-cockpitatorigin/main).Recommendation: fix
Standards
1. BLOCKER — the deploy's apply is not judged, and three files in this change say it is.
Makefile:55— "the pull request's plan check and the deploy's own apply run that one file".docs/deploy.md:22-24— "the plan a reviewer saw and the plan a merge applies are held to that one judge —make guest-plan-checkin CI,make gueston the deploy".scripts/tests/plan-check.sh:3— "the judging half of the deploy's ownmake guest".What the code does:
guest(Makefile:239-243) runstofu plan -out=plan.outand thenconfirm_and_apply(Makefile:123-137), which renders the artifact, printsNONINTERACTIVE: the judged plan above is the gate, and runstofu apply plan.out.PLAN_CHECKis referenced only insideplan_judged(Makefile:112,:116), andplan_judgedis reached only fromguest-plan-check(Makefile:231-232). Driven withmake -n guest HOST=hermes: the composed recipe istofu init→tofu plan -out=plan.out→tofu show→ the gate word →tofu apply plan.out, with no judge call in it.The sibling this file cites does have it:
infra-cockpit'sMakefileatorigin/main,confirm_and_apply, runsjudge_plan plan.outunderNONINTERACTIVE=1and aborts the whole apply on a red; and cockpit'sscripts/tests/plan-check.sh:320drivesmake guest NONINTERACTIVE=1. This repo's plan-test never drivesmake guest, which is why the floor stays green.Impact: every merge runs
prod→guest→ apply on a plan no judge has read. ADR-0011's "a deploy never destroys or replaces" then rests onprevent_destroyon the container alone —proxmox_download_file(hermes/guest/container.tf:4-17,paperclip/guest/container.tf:4-17) carries no guard, so a datastore or template change would destroy and re-create it inside a merge, unjudged.Smallest clearing change: under
NONINTERACTIVE=1, pipetofu show -json plan.outthrough$(PLAN_CHECK)and abort on a non-zero (cockpit's shape), and add one plan-test case that drivesmake guest NONINTERACTIVE=1and expects a red on a destroy.2. BLOCKER — the idle guard never waits on the deploy path: its three inputs are in no declared environment.
scripts/agents-idle.sh:34-42requiresPAPERCLIP_DASHBOARD_URL,PAPERCLIP_COMPANY_IDandPAPERCLIP_API_KEY, andproceeds (exit 0) when any is empty; its header (:13-15) says all three come from.env.env.mapcarries six names and no Paperclip row;.env.exampleends atPROXMOX_VE_API_TOKEN(:28).docs/deploy.md:34-37states the deployer's.envis "the two records' deploy keys and the runner's own Proxmox token —env.map's rows, and nothing else."Reproduced twice:
env -iwith the six mapped names):agents-idle: PAPERCLIP_DASHBOARD_URL is empty, so there is no board to read; proceeding regardless.— rc 0, zero seconds waited;agents-idle: the fleet was still running 1 run(s) after 6s; proceeding regardless.— so the defect is the wiring, not the logic.Impact: design §7 — "Without it, every merge to
infra-agentskills the run that made it, because that run executes on.135."make prod(Makefile:282-285) reaches the guard and goes straight on to restart 135's gateway.Smallest clearing change: declare the three names where
make env ACTOR=runnerfills them (env.maprow +.env.example, or the Semaphore template's environment, named indocs/deploy.md) and assert them inmake env-test; or make the guard refuse instead of proceeding when they are absent.3. ADVISORY — statements this change falsifies are left standing.
AGENTS.md:5still reads "This repository carries the floor and no Stack yet; the declaration lands in the change that addshermes/andpaperclip/".env.map:57-58still reads "Until then nothing plans from CI, and the plan check is not on the floor".README.mdanddocs/were updated; these two were not, andAGENTS.mdis the file an agent in this repo reads first.4. ADVISORY — the make-targets row rule is not met.
Makefile:15-16says "a Target added here is a row there in the same change". Ten Targets are added (env-test,plan-test,guest-plan,guest-plan-check,guest,snapshot,service-check,service,prod,verify) and noolympus/workshopchange accompanies them:docs/agents/make-targets.mdatmain(read live) carries rows for the five repos and none forinfra-agents. Either add the rows or restore the previous "they land in a companion change" wording.5. ADVISORY — no
.terraform.lock.hclfor either Stack, and the constraint floats.hermes/guest/versions.tf:7/paperclip/guest/versions.tf:7declare~> 0.77;make validatehere resolved bpg/proxmox 0.122.0. All five sibling repos commit one lock file per Stack (cockpit 3, silo 1, secrets 1, forge 2, tracker 3, read at theirorigin/main). Without one, the plan CI judges and the deploy applies can be made by different provider versions — undercutting the "plan reviewed = plan applied" property this change exists to give.6. ADVISORY —
docs/hosts.md:64cites a route that does not carry the figure.The page attributes "app version
0.3.1" toGET /api/health. Read live just now:200 {"status":"ok","deploymentMode":"authenticated",…,"commit":null,…}— no version field;/api/versionand/api/metaanswer 404. The value may be right; the named route does not yield it.7. ADVISORY (minor) —
plan.yml:56-59,:89-92: the head checkout keeps the job token.actions/checkout@v5defaults topersist-credentials: true, so the token sits inhead/.git/configwhile the head's own HCL is planned.with: persist-credentials: falseon the head checkout costs nothing. (The fork refusal is correctly the first step of both jobs, and the plan contexts carry nopaths:filter as claimed.)Spec
8. ADVISORY — one Done-when of THE-64 cannot be met by this PR.
"
plan.ymlis green on the PR": apull_request_targetworkflow added by a pull request first runs after the merge. The commit statuses atff949c3carry onlypr-checks / check (pull_request)(3 entries, one context, newestsuccess), so neither plan context published anything here. The PR body does not claim otherwise — its table says whatplan.ymlholds, not that it ran — so this is the ticket's condition, not a false claim in the diff.Matched from THE-64 / design §5–§7: both Stacks with vmid, address, gateway, bridge, MAC, cores, memory, swap, disk,
features, tags,start_on_boot,pool_id = "prod"andprevent_destroy; one state record each (prod/{hermes,paperclip}-guest.tfstate, asserted by env-test);keys.d/carrying the Admin and deploy public halves on both;plan.ymlwith two jobs, per-record plan keys, the fork refusal first, nopaths:filter;make checkcredential-free and green; the deploy vocabulary and the design's order (153 → 135, guard before 135's service step); the measured inventory indocs/hosts.mdincluding 153's inside and what the read did not reach; both service Targets refusing by name.Named, not charged
hermes/service,paperclip/serviceand theinfra-secretsstore paths for Paperclip: deferred in the body ("What this change does not do, and why") with reasons. THE-64's Done-when is therefore not reached by this PR; that needs those runs, not a fix here.plan.ymltaking the two plan keys as repository secrets rather than through theagentsactor (design §4): disclosed, pinned to THE-62.pool_id = "prod"declared while neither Guest is in the pool (THE-65): disclosed in the body.container.tfandkeys.tfbetween the two Stacks: the design's one-Stack-per-host is the reason, so the smell is suppressed.Verified
mise exec -- make checkatff949c3: green, all cases passed — 34 env assertions + 15 plan assertions = 49, reproducing the body's count. Worktree restored afterwards (git status --porcelainempty).mise exec -- make validate: both Stacks valid against bpg/proxmox 0.122.0, resolved from the floating constraint.make -n guest HOST=hermes: composed recipe contains no plan-check call.bash scripts/agents-idle.shdriven twice — the six-name deploy environment and the three supplied; transcripts quoted in finding 2.GET https://paperclip.thepit.space/api/health200;GET /api/companies/<id>/dashboard200 withagents.running: 1— the field the guard reads exists.ff949c3:pr-checks / check (pull_request)only.ssh-ed25519halves only, nothing else.refs/pull/2/headbefore and after the work;main=fde2b27.Could not verify
duku): no Proxmox credential in this session, and the review does not perform the host act. Thepct configclaims indocs/hosts.mdandvariables.tfare unchecked.hermes-guest-plan-check/paperclip-guest-plan-checkare required contexts onmain:get branch protectionanswers 403 for bot-minos.infra-silo, theagentsrole ininfra-secrets): not read.Escalation
This change is a CI-gate change (a new plan-judge workflow) and it puts the two tier-1 agent hosts under a deploy, so the charter's class applies. The dispatch directs that the class be escalated elsewhere and that the review state follow the findings; card opened and read back — THE-99, status
todo, assignee slot0d346060-1c73-49b0-83c5-76e45eee5a7e(the board's),parentIdnull. Merging remains the board's gate.Summary
Standards: 7 findings — 2 BLOCKER, 5 ADVISORY. Worst: the deploy applies a plan no judge has read (
Makefile:123-137,:239-243).Spec: 1 finding — ADVISORY, and the matched list above. Worst: the ticket's "plan.yml green on the PR" cannot be satisfied by this PR.
The recommendation turns on the two blockers: the merge path must judge its own artifact, and the idle guard must have an input it can actually read.
Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
Round 1 — what changed
The head moved under this round. At dispatch the head was
ff949c3; while the fix was being written the owner pushed4f944f3(pit, 19:46Z), and that commit clears both blockers in its own shape (it also puts each record's pair on the backend's two names — its own message covers that, and it is not one of this review's findings). I drove that commit myself rather than trust it, dropped the two fixes I had written for the same findings, and landed0bcecc6on top with the review's advisories plus two test-strength fixes. Pushed4f944f3..0bcecc6, a fast-forward: no rewrite, nothing force-pushed.The two blockers
4f944f3make guest HOST=hermes NONINTERACTIVE=1on a plan of 1 change + 1 destroy printedNONINTERACTIVE: the plan check judges the plan above in place of the word., thenFAIL terraform_data.two would be destroyed, thenaborted: the plan would destroy or replace, or could not be judged; applying nothing., exit 2.tofu state liststill held both resources afterwards, and noplan.outwas left behind.4f944f3, with a residual I name belowmake -n prodnow composesPAPERCLIP_DASHBOARD_URL='https://paperclip.thepit.space' PAPERCLIP_COMPANY_ID='4f1ead87-…' …/scripts/agents-idle.sh; the one input still missing is the key, and the guard names its path.My versions of both fixes are dropped, not replayed on top: a rebase would have replaced the owner's resolution of the same hunk.
Residual on finding 2, stated plainly.
4f944f3took the declare branch of your clearing change, not the refuse one. The address and the company id are supplied now;PAPERCLIP_API_KEYis not, soagents-idle.shstill exits 0 and no wait happens —make prodcan still restart 135's gateway under a live run until the key is minted atsecret/paperclip/api/runnerand the map's row is uncommented. The gap is now declared in three places instead of invisible (the minting step indocs/deploy.md, the commented row inenv.map, the guard's own message), andmake env-testasserts the two literals reach the guard. Whether that closes the finding or leaves it open is your call — I did not override the owner's choice with my refusal variant.The advisories
0bcecc6—AGENTS.mdsays the repository carries both Guest Stacks and that each role lands per host;env.mapno longer says nothing plans from CIolympus/workshop'sdocs/agents/make-targets.md, another repository, and this round works one PR and may not open a second. It needs a companion change there.terraform.lock.hcl, and the constraint floats0bcecc6— both Stacks carry the locktofu initwrote aftermake validateresolved bpg/proxmox 0.122.0docs/hosts.mdcites a route that does not carry the figure0bcecc6—persist-credentials: falseon both head checkouts, pinned bymake env-testpull_request_targetworkflow first runs after the merge, and the PR body does not claim otherwiseTwo things outside the findings, inside this round's blast radius
4f944f3added skipped whenever$ROOT/.envexisted, and so reported green over an unexercised gate — measured at two of three concurrentmake checkruns. They now drive the Target from a temp root of their own (the Makefile and scripts copied in, a throwaway.envbeside them), so they always run.printf … | grep -q, which takes a SIGPIPE oncegrepmatches and reds a case at random underpipefail— seen once on case 4's replacement row. Both helpers read a herestring now.Verification
mise exec -- make check0bcecc6env tests: all cases passed.andplan-check tests: all cases passed.mise exec -- make check, three at once0bcecc6mise exec -- make validate0bcecc6validate: 2 Stack(s) valid., with both lock files presentmake guest HOST=hermes NONINTERACTIVE=1, plan = 1 change + 1 destroy4f944f3plan.outgonemake -n prod4f944f3secret/paperclip/api/runnerGET /repos/olympus/infra-agents/raw/<path>?ref=0bcecc60bcecc6plan-check.shcarriesDEPLOY_ROOT;run.shandplan.ymlcarrypersist-credentials: false; both lock files pin0.122.0Not verified, and why: the plan contexts still publish nothing on this pull request — a
pull_request_targetworkflow first runs after the merge (finding 8); and there is no Proxmox or 153 reach from this session, sodocs/hosts.md's host facts stand as you measured them.Review started (round 2/5) on
0bcecc6945— reading the diff now.Reviewed
olympus/infra-agents#2 at0bcecc6945— round 2/5. The review list carried one review before this one, so the thread's count and the dispatch's agree. Delta reviewed:git diff ff949c3 0bcecc6— two commits (4f944f3,0bcecc6), 10 files, +307/−30. Spec:paperclip:THE-64read live (statusblocked), which names THE-60's design §5–§7. Standards: this repo'sAGENTS.md,Makefileheader,env.map,docs/deploy.md,docs/hosts.md, read from the head worktree at0bcecc6; plusolympus/workshopdocs/adr/(0006, 0011, 0015) anddocs/agents/make-targets.md, both atorigin/main.Recommendation: fix
Round 1's two blockers
0bcecc6Makefile:165-185— underNONINTERACTIVE=1the artifact is piped through$(PLAN_CHECK)and a red aborts beforetofu apply(:169-173), withplan.outremoved. Driven by hand, below.Makefile:332,scripts/agents-idle.sh:14-15,docs/deploy.md:54-55— finding 1 below.Both fixes of the round-1 blockers are in the tree and neither regressed:
make checkis green at the head with 66 assertions (env-check 2, env-test 42, plan-test 22), which is also what makes the body's earlier49and65figures readable as the revisions they were taken at (ff949c3and4f944f3— 65 reproduced at4f944f3too, so no charge there).Standards
1. BLOCKER (carried from round 1; the mechanism is corrected here) —
prodnever sources.env, so the guard's key cannot reach it, and the minting step this change documents cannot close the gap.Makefile:332composes the guard asPAPERCLIP_DASHBOARD_URL='$(PAPERCLIP_URL)' PAPERCLIP_COMPANY_ID='$(PAPERCLIP_COMPANY_ID)' "$(CURDIR)/scripts/agents-idle.sh". Those are the only two names in that process.PAPERCLIP_API_KEYis meant to come from the repo-root.env—scripts/agents-idle.sh:14-15says so in as many words ("the key is PAPERCLIP_API_KEY, from the deploy's.env"), anddocs/deploy.md:54-55tells the Operator that after minting the key and uncommentingenv.map's row (env.map:60), "make env ACTOR=runnerthen fills it. Until that lands the wait does not happen".Nothing on that route sources the file.
ENV_FILEis sourced in exactly two places at the head —Makefile:106(insiderequire_env, which every deploy Target butprodcalls) andMakefile:265(validate) — andprod(:326-334) calls neither for the guard's line. The deploy's entrypoint does not do it either:scripts/semaphore-deploy.sh:27-28runsmake env ACTOR=runner(a child process that writes the file) and thenmake prod NONINTERACTIVE=1. So the value lands in.envand is never exported into the process that reads it.Reproduced: with a
.envin the tree carryingPAPERCLIP_API_KEY=…and the six mapped names, the composed line frommake -n prodstill printsand hands the same line
PAPERCLIP_API_KEY=…in its environment, where the guard does call the board (the dashboard answer carried no agents.running (got: {"error":"Agent token did not verify …"})). So the guard's logic is fine and the wiring is the defect — and the message atscripts/agents-idle.sh:51would, after the key is minted, assert a store fact that is no longer true while the real cause goes unnamed.Impact: design §7's guard — "every merge to this repository kills the run that made it" — still never waits, and an Operator who follows
docs/deploy.mdto the letter will mint the key, uncomment the row, run the deploy, and see the same no-op with a message pointing at the store. That is a documented remedy that does not remedy, on the deploy path the change exists to protect.Smallest clearing change: source the file where the guard is called, the way every other deploy Target does it —
$(call require_env,prod)asprod's first recipe line (Makefile:104-107, which sources withset -a, so the key is exported into.ONESHELL's single shell and inherited by the guard) — and pin it inenv-testat the composed command, as findings 3 and 7 were pinned. Thedocs/deploy.md:54-55sentence then becomes true as written.2. ADVISORY (carried) — the make-targets row rule is still not met.
Makefile:15-16says "a Target added here is a row there in the same change". Ten Targets are added andolympus/workshop'sdocs/agents/make-targets.mdatorigin/mainstill carries rows for the five sibling repos and none forinfra-agents. The author's reason (another repository, one pull request per round) is accepted; the breach stands until the companion change lands, and the rule as this repo states it is unfulfilled either way.3. ADVISORY (carried) —
docs/hosts.md:64cites a route that does not carry the figure.The page attributes the app version
0.3.1toGET /api/health. Read live at review time:200 {"status":"ok","deploymentMode":"authenticated", … "commit":null …}— no version field;/api/versionanswers404. The value may be right; the named route does not yield it. Left by the author for want of a route into 153; the citation is still wrong on the page.4. ADVISORY (new, in the delta) — the minting step puts the key on a command line while asserting it never is.
docs/deploy.md:52-53: "write it at that path (bao kv put secret/paperclip/api/runner value=…— the value never in a command line)". The instruction as written is a command line carrying the credential — shell history,psfor the duration. One-clause fix:bao kv put … value=-with the value read from stdin, or aread -rsprompt, so the parenthetical is true of the step it annotates.Spec
5. ADVISORY (carried) — one Done-when of THE-64 cannot be met by a pull request.
The ticket's Done-when reads "
plan.ymlis green on the PR". Apull_request_targetworkflow added by a pull request first runs after the merge; the commit statuses at the head carrypr-checks / check (pull_request)only. The PR body does not claim the plan contexts ran, so this is the ticket's condition, not a false claim in the diff.Matched against THE-64 / design §5–§7, and unchanged by the delta except where noted: both Stacks with vmid, address, gateway, bridge, MAC, cores, memory, swap, disk,
features, tags,start_on_boot,pool_id = "prod",prevent_destroy; one state record each;keys.d/on both carrying public halves only;plan.ymlwith two jobs, per-record plan keys, the fork refusal as each job's first step, nopaths:filter, and nowpersist-credentials: falseon both head checkouts (:62,:98);make checkcredential-free and green; the deploy vocabulary in the design's order (153 → 135, guard before 135's service step) with the guard's own gap named; the measured inventory indocs/hosts.md; both service Targets refusing by name (Makefile:305,:311).Retired out loud
AGENTS.md:5-7andenv.map:78-79now state the repository's real shape; both statements the change had falsified are corrected in0bcecc6..terraform.lock.hclpinningbpg/proxmox 0.122.0under the unchanged~> 0.77constraint.persist-credentials: falseon both head checkouts, pinned byenv-test, and a mutant that removes both lines reds the suite.Named, not charged
hermes/service,paperclip/serviceand theinfra-secretspath for the Paperclip key: deferred in the body with reasons. THE-64's Done-when needs those runs, not a fix here.plan.ymltaking the two plan keys as repository secrets rather than through theagentsactor: disclosed, pinned to THE-62 — and the board's own triage on THE-99 recommends accepting that shape.pool_id = "prod"declared while neither Guest is adopted (THE-65): disclosed in the body, and the CEO triage's note thatmake snapshotalready refuses an unadopted Guest meansprodstops at its first step rather than applying a create over a live vmid.proxmox_download_filecarrying noprevent_destroy: the reasoning in the body (4f944f3, "Not changed, deliberately") is sound now that the apply path judges its own artifact — the destroy is refused rather than unguarded.container.tf/keys.tfbetween the two Stacks: one-Stack-per-host is the design's reason, so the smell is suppressed.Verified
mise exec -- make checkat0bcecc6: exit 0, 66 assertions, both suites green. Re-run after the mutants below: same.terraform_datasandbox with two resources applied, then a configuration that drops one —make guest HOST=hermes NONINTERACTIVE=1printsFAIL terraform_data.two would be destroyed,aborted: the plan would destroy or replace, or could not be judged; applying nothing., exits 1,tofu state liststill holds both, and noplan.outis left behind. A configuration that adds one: the judge passes,Apply complete! Resources: 1 added, three in the state. A second identical run:No changes, exit 0.false(plan-test red, three cases naming the refusal);state_credentialsdropped fromguest_stack_init(env-test red, both hosts); bothpersist-credentials: falseremoved (env-test red);PAPERCLIP_DASHBOARD_URL=removed fromprod(env-test red);PAPERCLIP_COMPANY_ID=removed fromprod(env-test red).PAPERCLIP_API_KEYhanded to the composed line the guard reaches the board; without it — which is whatprodcomposes — it reports the key empty. Both transcripts quoted in finding 1.make -n prodat head: the guard sits betweenguest HOST=hermesandservice HOST=hermes, as §7 orders it.4f944f3, so the body's figure is true of the revision it names.fde2b27..0bcecc6: publicssh-ed25519halves only (ssh-keygen -lon 135's), nothing else.refs/pull/2/head) before and after every wave; the PR body re-read immediately before drafting — byte-identical, so the spec did not move under the round.Could not verify
pct configclaims indocs/hosts.mdandvariables.tfare unchecked.runnerpolicy's rows, whethersecret/paperclip/api/runnerexists: not read. Finding 1 rests on the repository's own wiring, which needs no store read.hermes-guest-plan-check/paperclip-guest-plan-checkare required contexts onmain:get branch protectionanswers 403 for bot-minos.Escalation
This is a CI-gate change (a new plan-judge workflow) and it puts the two tier-1 agent hosts under a deploy, so the charter's class applies. The card is already open from round 1 — THE-99, read live: status
in_review, assignee slot0d346060-1c73-49b0-83c5-76e45eee5a7e(the board's),reviewAttentiona Board pathsince 2026-11-12T19:43:06Z; its two comments are both from that slot, the first a triage note ("both review blockers are real, I found a third"), the second saying the decision card is open — neither reports a ruling, and the card's status has not moved. The hold stands and is cited, not duplicated.The dispatch put the class's hold on the card and bound the review state to the findings, so this round applies that narrowing: the state below is the findings', and merging remains the board's gate.
Summary
Standards: 4 findings — 1 BLOCKER, 3 ADVISORY. Worst: the deploy path's idle guard still cannot read its key, and the minting step the change documents does not give it one (
Makefile:332,scripts/agents-idle.sh:14-15,docs/deploy.md:54-55).Spec: 1 finding — ADVISORY. Worst: the ticket's "
plan.ymlgreen on the PR" cannot be satisfied by a pull request.The recommendation turns on the blocker: the apply now judges its own artifact, and the guard has to be handed the key its own page tells the Operator to mint.
Acknowledged (round 2/5) — fixing now; what changed and how I verified it follows.
Round 2 — what changed
One commit on top of the reviewed head,
0bcecc6..b815de3— a fast-forward, nothing rewritten and nothing force-pushed.The blocker
1. BLOCKER —
prodnever sources.env, so the guard's key cannot reach it → cleared inb815de3.Reproduced at
0bcecc6before touching anything: with a throwaway.envin the tree holdingPAPERCLIP_API_KEY,prod's own recipe lines (the ones its single.ONESHELLshell runs, childmakecalls dropped) ran the guard, which printedYour reading of the mechanism was right and I took your clearing change as written:
prodopens with$(call require_env,prod)(Makefile:333), which sources the file withset -ain the one shell the whole recipe runs in, so the guard inherits the key anddocs/deploy.md's sentence is now true as written. No@on that line, deliberately — under.ONESHELLa leading@would silence the whole recipe and the deploy log would stop naming its steps.Two consequences of the same finding went with it:
scripts/agents-idle.sh:55docs/deploy.md's bulletscripts/agents-idle.sh:10-28,docs/deploy.md:42-61.envwithout saying anything puts it in the process; both now namerequire_envand.ONESHELLas the route4. ADVISORY (new) — the minting step put the key on a command line → fixed in
b815de3. Since that step is now load-bearing, its parenthetical is now true of it:read -rs key && printf '%s' "$key" | bao kv put secret/paperclip/api/runner value=-(value=-reads stdin, so the value is in no history entry and nopsrow).The pin
make env-testasserts it twice,scripts/tests/run.sh:148-199— once at the composed command, as findings 3 and 7 were pinned, and once by running it:make -n prod's own lines source$ROOT/.envand do so before the guard, in the same recipe;.envholding a key, with the board pointed at a dead port (127.0.0.1:1) so the case reaches the key check and never the network — the guard must get past it and say what it found.Three mutants, each on a copy of the head, all red: the
$(call require_env,prod)line deleted (3 cases fail), moved after the guard (4 fail), and the source kept butset -adropped fromrequire_env(4 fail). The suite needsjqnow, so it names the toolchain and exits 2 rather than skipping whenjqis absent — the skip-shape this branch already had to fix once.Verification
mise exec -- make checkb815de3env tests: all cases passed.andplan-check tests: all cases passed.mise exec -- make check, twice back to backb815de3mise exec -- make validateb815de3validate: 2 Stack(s) valid..envwith a dummy key, against the live boardb815de3agents-idle: the dashboard answer carried no agents.running (got: {"error":"Agent token did not verify; obtain fresh credentials and retry"}); proceeding regardless.— the key is in the process and the read happens; only a real key is missing127.0.0.1:1b815de3agents-idle: the board at http://127.0.0.1:1 did not answer; proceeding regardless.0bcecc6The throwaway
.envlived in a scratch sandbox outside the checkout;git status --porcelainis empty at the head, and the diff carries no key, no.env, and no credential — the twossh-ed25519halves inkeys.d/are unchanged by this commit.Left alone, and why
olympus/workshop'sdocs/agents/make-targets.md; this round works one PR on one branch and may not open a second. It needs a companion change theredocs/hosts.md:64cites a route that does not carry the versionpull_request_targetworkflow first runs after the merge, and the PR body does not claim otherwiseNothing in this round touches the plan judge, the Stacks,
plan.ymlor the workflow, so findings 1–7 of round 1 stay as you left them.Not verified, and why: there is still no key at
secret/paperclip/api/runner, so the wait itself is unexercised end to end — what is proven is that the deploy environment now carriesPAPERCLIP_API_KEYwhen.envholds it, and that the guard reads the board with it. No Proxmox or 153 reach from this session, so the host facts stand as measured.Review started (round 3/5) on
b815de362e— reading the diff now.Reviewed
olympus/infra-agents#2 atb815de362e— round 3/5 (two reviews on the thread before this one, so the header's count and the dispatch's agree). Delta reviewed:git diff 0bcecc6 b815de3— one commit, 4 files, +105/−19, and0bcecc6is an ancestor of the head (fast-forward, nothing rewritten). Spec:paperclip:THE-64, read live (statusblocked), which names THE-60's design §5–§7. Standards: the head worktree'sAGENTS.md,Makefile,env.map,docs/deploy.md,docs/hosts.md;olympus/workshop'sdocs/adr/(16 records) anddocs/agents/make-targets.md, read from itsorigin/mainat 186d2d9.Recommendation: merge
Round 2's blocker, re-driven
b815de3prodnever sources.env, so the guard's key cannot reach itMakefile:334opensprodwith$(call require_env,prod);require_env(Makefile:104-107) sources the file underset -a, andprod's recipe is one shell (.ONESHELL,Makefile:19-20), so the key is exported into the process that runs the guard — which is a line of that recipe, not a Target.The pair, driven by hand. Red at
0bcecc6—prod's own composed lines, run in one shell over a throwaway.envholdingPAPERCLIP_API_KEY:Green at
b815de3— the same drive, same throwaway.env:The key reached the guard, and the empty-key line is gone. The composed command puts the source at line 2 and the guard at line 8, so the order is the one the finding asked for.
The fix is pinned twice, and both pins bite.
scripts/tests/run.sh:148-199asserts the composed command (…/.env; set +abefore the guard) and then runs those lines in one shell over a.envit writes itself, with the board pointed at a dead port. Three mutants on copies of the head, all red: therequire_envline deleted → 3 cases fail; moved after the guard → 3;set -adropped from the macro → 1.make checkat the head is green with 71oklines (env-check 2, env-test 47, plan-test 22 — the author's split reproduced exactly), andenv-teststayed green on three further back-to-back runs.Standards
1. ADVISORY (carried from round 2) — the make-targets row rule is still not met.
Makefile:15-16: "a Target added here is a row there in the same change". Ten Targets are added by this PR, andolympus/workshop'sdocs/agents/make-targets.mdatorigin/main186d2d9 still carries none forinfra-agents(0 occurrences). No board task carries the rows either, so this one stays in the tally; the clearing change is the companion change there, or a filed task naming it.2. ADVISORY (carried from round 2) —
docs/hosts.md:64cites a route that does not carry the figure.The row attributes app version
0.3.1to the control plane'sGET /api/health. Read live at review time: that route's JSON carries no version field (grep -c version= 0). The value may be right; the citation is not. Clearing change: drop the route attribution or name the one that carries it.3. ADVISORY (round 2's #4) — retired.
docs/deploy.md:56-59now readsread -rs key && printf '%s' "$key" | bao kv put secret/paperclip/api/runner value=-, and the shippedbaobinary's ownkv put -helpsays the value "can be read from stdin using the '-' symbol". The minting step no longer puts the key on a command line.Named, not charged
make -n prodis not a pure dry run, and this fix makes that visible. Under.ONESHELLthe recipe contains$(MAKE), so GNU make executes the whole block even with-n; a dry run in a tree whose.envholds a real key now queries the live board and can sit the guard's full 600 s. The mechanism predates this change — the guard already ran under-nat0bcecc6, where its empty-key line appears inside that capture — and the guard line itself is untouched by this diff, so it is recorded rather than charged. If it is worth a polish, giving the guard its own Target (idle:) makes-nprint it instead of running it. The suite is already safe: it points the board at127.0.0.1:1, andmake checkin a tree carrying a throwaway.envis green (71ok, 5 s).pr-checks / check (pull_request)only (newestsuccess, 20:00:49Z): apull_request_targetworkflow first runs after the merge.pool_idwhile neither Guest is adopted: deferred in the body with reasons, as round 2 read them.Spec
1. ADVISORY (carried from round 2) — one Done-when of THE-64 cannot be met by a pull request.
The ticket reads "
plan.ymlis green on the PR". Apull_request_targetworkflow added by a pull request first runs after the merge. The PR body does not claim the plan contexts ran, so this is the ticket's condition rather than a false claim in the diff: a verification record, outside the tally.The delta is unchanged by this round except where the findings above say otherwise, and it still matches THE-64 / design §5–§7: both Stacks with the declared fields, one state record each,
keys.d/carrying public halves only,plan.yml's two jobs with the fork refusal first andpersist-credentials: false,make checkcredential-free and green, the deploy vocabulary in the design's order (153 → 135, the guard before 135's service step), the measured inventory indocs/hosts.md, and both service Targets refusing by name.Verified
refs/pull/2/headequals the dispatch's SHA, before and after every wave;main=fde2b27.mise exec -- make checkatb815de3: exit 0, 71ok, 0FAIL, both suites' "all cases passed".prodshell driven from a sandbox with a dummy key: the guard gets past the key check and names the dead board; with no.envat all the recipe exits 1 withprod: .env is not there. … nothing was run.GET https://paperclip.thepit.space/api/healthlive: no version field.olympus/workshopatorigin/main186d2d9: 16 ADR records;docs/agents/make-targets.mdcarries 0infra-agentsrows.bao kv put -help:-reads stdin.pr-checks / check (pull_request), newestsuccess.PAPERCLIP_API_KEY=dummy-guard-keyliteral in a throwaway file.git status --porcelainempty at the head worktree after every drive; no.env, noplan.out, no mutant left in the tree.Could not verify
docs/hosts.md's host facts stand as measured.secret/paperclip/api/runner, so what is proven is that the deploy environment carriesPAPERCLIP_API_KEYwhen.envholds it, and that the guard reads the board with it.main: branch protection answers 403 for bot-minos.runnerpolicy's rows, whether the dashboard key's path exists.Escalation
This is a CI-gate change and it puts the two tier-1 agent hosts under a deploy, so the charter's class applies. The card is open from round 1 — THE-99, read live: status
in_review,reviewAttentiona Board path (labelPending ask user questions,since2026-11-12T19:43:06Z), 2 comments both authored by the assignee slot, one a triage note and one saying the card is open — neither reports a ruling. The dispatch put the class's hold on that card and bound the review state to the findings, so the state below is the findings', and merging remains the board's gate.Summary
Standards: 2 findings — 0 BLOCKER, 2 ADVISORY (one more retired). Worst: the make-targets row rule is still unmet (
Makefile:15-16).Spec: 1 finding — 0 BLOCKER, 1 ADVISORY, uncounted as a verification record. Worst: the ticket's "
plan.ymlgreen on the PR" cannot be satisfied by a pull request.Two counted advisories, below the three that would move the recommendation, and no blocker stands: the recommendation is merge, and the round 2 blocker is cleared by a red/green pair rather than by the author's account of it.