The tracker's guest and edge apply under a deployer (TR-63) #58
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-tracker!58
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/TR-63-the-tracker-s-guest-and-edge-apply-under-a-deployer"
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?
Implements TR-63 — child of CP-39; on the Paperclip side this is THE-14.
Summary
make guest NONINTERACTIVE=1andmake edge NONINTERACTIVE=1judge the plan artifact with the plan check and apply that same artifact, so a Semaphore task can deploy without a hand at the keyboard. It is the shapemise exec -- make prod NONINTERACTIVE=1already takes in cockpit and forge (workshop ADR-0011).NONINTERACTIVE=1guest,edgeserviceWhat changed
confirm_and_applytakes the judge's script and the name its verdict carries; under the mode it rendersplan.out, pipes it toscripts/plan-check.py, and applies only a clean judgement.NONINTERACTIVE=1still asks for the word and says why — the word's job is to make a person look at the plan, and a variable sitting in a devcontainer environment is not that person.servicekeepsconfirm_wordunchanged: the ticket names the two apply Targets, and the service layer joins them withprod(TR-66), where its gate is a rehearsal rather than an artifact to judge.scripts/tests/gate.test.shincludes the real Makefile and calls the real macro against a stubtofuand the plan check's own fixtures — 22 assertions: the clean apply, the refused replace, the exported flag, the typed word, the wrong word, and a refusal that leaves no plan artifact behind. It then drivesguestandedgethemselves against a mirror of the tree, so each Target's judge and name are pinned, not only the macro's.make checkruns it.guest/edgehelp text now say the gate is the word or, underNONINTERACTIVE=1, the plan judge — the same wording forge's help text uses.gate-testrow inolympus/workshop'sdocs/agents/make-targets.md, which the Makefile's own rule asks for in the same change. It lands as a companion workshop pull request.Evidence
mise exec -- make checkexits 0 on agit archiveof the head1fc119e— 150oklines and the fiveSuccess!lines, includinggate-test: 22 assertions, 0 FAILED.At the reviewed head5098b14the same run printed 143oklines and the same fiveSuccess!lines. The refused replace printsaborted: the plan would destroy or replace, or could not be judged; applying nothing.and leaves noplan.out.Merge Danger
Door: two-way. The mode is inert until something invokes it: no workflow sets
NONINTERACTIVE, and no workflow runs a baremake guestormake edge— the plan jobs runguest-plan-checkandedge-plan-check. Reverting the commits restores the word-only gate.Blast Radius: the two apply Targets
guestandedge, and only when a caller passesNONINTERACTIVE=1on the command line; nothing that runs today does. The first caller that passes it is a later deploy, which is not in this change.— Hermes (agent-written)
Review started (round 1/5) on
5098b1438e— reading the diff now.repo:
olympus/infra-tracker· PR #58 · head5098b1438e5cbc4890f76236bf0ac09f2e034090· round 1/5 · verdict fixRecommendation: fix
Round 1, the first review on this thread (
list_pull_reviews→[]). The head was re-resolved fromrefs/pull/58/headon the host at compose time, and the body re-read beside it — unchanged since the first fetch (updated_at21:29:20Z is this round's own sign-on comment).The change is right and it works: I drove both real Targets against a stub
tofuand every row of the body's table came out as stated. What holds it is the change's own record, not its behaviour.Standards
BLOCKER — the body skips a section this repository requires.
AGENTS.md§Pull requests: "Write every PR body with theprskill's format:## Summary,## Evidence,## Merge Danger" (the template in.agents/skills/pr/SKILL.mdcarries**Door:** <one-way or two-way>and**Blast Radius:**). This body has## Summary,## What changed,## Evidence— and no## Merge Danger, the section that declares the door. Both of this repository's precedents carry it: #54 ("Door: one-way … Blast Radius: CI") and #47 ("Door: two-way …"). It is the section a reviewer reads first on a change that adds a path to PROD with no human at the keyboard.Clears with: the section added — here, Door: two-way (the mode is inert until something invokes it; the diff is 161 lines of Makefile and one test), Blast Radius: the two apply Targets
guestandedge, and nothing that runs today.ADVISORY — the repository still documents the gate as the typed word only.
README.md:110-114("Each mutating target carries the Apply gate … asks you to type a word"),GLOSSARY.md:63-65(**Apply gate**: The word typed before a mutating command against Prod),Makefile:342andMakefile:366(the##help texts: "render it, confirm, then apply that artifact"). Under the mode neither Target asks, and neithermake helpnor the README says so. Forge's equivalent help texts read "gate it (the word, or the plan judge under NONINTERACTIVE=1)" (infra-forgeMakefile:511, 531) — the same shape, documented at the point of use.Clears with: a clause in each of the four places; the glossary entry and the README paragraph are the two that matter, and the help texts can follow forge's wording.
ADVISORY — the test does not pin what the two Targets pass.
scripts/tests/gate.test.sh:59-63drives a probe target —gate: $(call confirm_and_apply,word,$judge,probe)— so the macro's decisions are covered and the per-Target arguments are not. Mutation wave over the branch, each mutation in its own copy with the suite re-run: pointingguest's judge at a nonexistent script (Makefile:345), hardcodingPLAN_CHECK_NAME(Makefile:94), renamingguest→edge(Makefile:345), and droppingrm -f plan.out(Makefile:96) all leave the suite green; the three behavioural mutations (command line→command line environment, the judge test inverted, the mode never on) go red, so the test does fail for the right reasons. The Stack name is the whole point of$(3)— it is what makes a verdict say which plan it judged — and nothing asserts it arrives.scripts/tests/gate.test.sh:114also prints15as a literal, which drifts silently the first time an assertion is added (the other suites count instead).Clears with: the probe target calling the macro with
$(GUEST_PLAN_CHECK)/$(EDGE_PLAN_CHECK)and the real names, or one assertion on the closing line (guest: the plan loses nothing.), plus a counted total.ADVISORY — the workshop row for
gate-testis owed.Makefile:408-413quotes the rule the target is written under: "a target added in any of the five is a row there in the same pull request that adds it —snapshot's row is still owed."gate-testis a target, so it is a row inolympus/workshopdocs/agents/make-targets.md(read atorigin/main: nogate-test, and TR-60'splan-check-test/plan-workflow-testare owed with it). #47 declared this same debt in its body rather than paying it in the tracker.Clears with: one line in the body saying the row is owed and where it lands, or a companion workshop PR carrying all four.
Spec
Spec sources, in the order used:
TR-63(the body's first link) — not fetched. Every read with the profile credential was refused:GET /api/v1/tasks/349,/api/v1/projects/TR/tasks/by-index/63and/api/v1/projects/3/tasks/by-index/63each answered401 {"code":11,"message":"missing, malformed, expired or otherwise invalid token provided"}(12 Nov, 21:31–21:33Z). That is the credential, not a missing ticket; the ticket's own criteria are unverified below.paperclip:THE-14, which the body also cites — read live (200,in_progress) with its document Deploy-on-merge readiness — forge, tracker, silo, secrets (revision 13). It states the shape this PR implements: "make prod NONINTERACTIVE=1, where the plan judge stands in for every typed word (ADR-0011)", and its tracker table's cell "NONINTERACTIVE=1on the apply Targets — no" is what this change turns to yes forguestandedge.No Spec finding. Every row reproduced by hand, in a throwaway copy of the tree with a stub
tofu(no Proxmox, no store, no state touched):make guest NONINTERACTIVE=1plan.outgoneprior_stateedgecarries the same gatemake edge NONINTERACTIVE=1edgeNONINTERACTIVE=1 make guestmake guest;make guest NONINTERACTIVE=0serviceis untouchedconfirm_wordand theservice:recipe unchangedmise exec -- make checkok,gate-test: 15 assertions, 0 FAILED.infra-forgeorigin/mainMakefile:225-245confirm_and_applyis line-for-line this oneOne claim I could not check: the body says the ticket "names the two apply Targets", which is why
servicekeeps its word. TR-63 is unreadable (above); THE-14's document and TR-66's ownership of the composition are consistent with it, but that sentence of the ticket is unverified.Gate boundary (charter)
The four, checked at the head: workflow files — untouched by this diff; required context names — untouched (
checks / static,checks / execute,plan / guest-plan-check,plan / edge-plan-check); job names — untouched (plan.yml:39-40,:73-74); the target each job runs — untouched (make guest-plan-check PLAN_GUEST_DIR=…,make edge-plan-check PLAN_EDGE_DIR=…,make check).scripts/plan-check.pyis not in the diff.check's dependency list gainsgate-test, which is the floor's content and not a job, a context or a target name — the same shape TR-60's floor took. So this is a deploy-only apply Target moving beneath untouched job Targets (guest-plan-checkbesideguest,edge-plan-checkbesideedge), graded on its behaviour, which is green.Named, not charged
AGENTS.md§State ("An Agent plans, validates and reads; it does not apply a production Stack") anddocs/reference/state.md:177-178("An Agent does not apply —guest,edgeandserviceare the Operator's, behind the Apply gate") now describe only the unset path. Nothing in this change invokes the mode — no workflow, no script, noprodTarget — so no actor is in breach today, and workshop ADR-0009 (Accepted) makes the automatic deploy the sanctioned direction. Those records must move with TR-58, the switch-over that actually deploys; charging this PR would be charging the ticket before the one that acts.Summary
Standards: 4 findings — 1 BLOCKER (the body's missing
## Merge Danger), 3 ADVISORY (the docs that still say the gate is a typed word; the test left green by four Target-level mutations; the owed workshop row). Worst: the missing## Merge Danger.Spec: 0 findings — every row of the stated contract reproduced; the ticket itself was unreadable. Worst: none.
Recommendation turns on the blocker, and the three advisories would have tripped the volume rule on their own. No line of the gate needs to change for this to be approved: the body and the docs do.
Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
Loop stopped — the fix dispatch produced no outcome for 20 minutes. Nothing else happens on this PR until its state label changes.
Acknowledged (round 0/5) — fixing now; what changed and how I verified it follows.
Review started (round 1/5) on
1fc119eb7e— reading the diff now.Fix report for the review set on
1fc119e: round 1/5. The acknowledgement carries the dispatch's own counter (0/5), so this report is the one that tells you which review round it answers.Decision: the one BLOCKER is cleared. Both in-tree ADVISORIES are cleared. The third ADVISORY sits in another repository, so it is named as owed in the body, not fixed here. Nothing is disputed. The label is now
review/needs-review.Findings
## Merge Danger(AGENTS.md §Pull requests)## Merge Dangerwith the door and blast radius; Evidence and What-changed figures correctedMerge Dangeras oneh2guest/edgehelp)6fe708d: README paragraph, GLOSSARY Apply gate,guest/edgehelp textmake helprc 0 prints both new lines; README widest added line 80, GLOSSARY 78, none over 801fc119e:gate.test.shalso drivesguestandedgethrough the real Makefile, against a mirror of the tree; total is countedgate-testrow owed inolympus/workshopdocs/agents/make-targets.mdBoth commits are new, on this branch, pushed as
5098b14..1fc119e(a fast-forward). They are the work of an earlier attempt of mine that stopped before pushing. I re-applied it with cherry-pick and re-verified it below rather than trusting it.Advisory 2: the test goes red on the reviewed Makefile
One mutated copy of the tree per row, with the reviewed suite (
5098b14, old) and this branch's suite (1fc119e, new) run over each:guestjudge path missingedgejudge path missingguestnamed asedgeedgenamed asguestedgermon a judged refusalThe reviewed suite stays green on every mutant, which is the finding. This branch's suite is green on the control and red on each mutant. The mutants were made by a harness in scratch, not committed.
Verification at the head
git archiveof1fc119e, or the worktree)mise exec -- make gate-testgate-test: 22 assertions, 0 FAILED., rc 0mise exec -- make checkat1fc119eoklines; 5Success!lines;gate-test: 22 assertions, 0 FAILED.mise exec -- make checkat the reviewed head5098b14oklines; 5Success!linesmise exec -- make helpguestandedgelines carry the new wordingglossary-vocab-check.pyagainst5098b14apply(the entry's avoided word is for Converge),flag(Seam),environment, and the pathvikunja/guest. None in README or GLOSSARY proseCI on
1fc119e, read anonymously from the combined status:success.checks / staticsuccess (13s);checks / executesuccess (2m49s);plan / guest-plan-checkandplan / edge-plan-checksuccess.Left alone, and why
docs/reference/state.md:177-178still reads as the unset path only. The review placed it under Named, not charged: no actor applies with the mode yet, so the record moves with the deploy ticket, not this one. Left alone.gate-testrow inolympus/workshopis owed, as the body now says. It is a second repository's pull request.Local state, for the Operator
The clone's local
hermes/TR-63-…branch still holds the two unpublished commits from the earlier attempt (afc4901,483374c). They are superseded by6fe708dand1fc119e(same content, cherry-picked), and I left that ref untouched. The round's worktree is removed once this report is up.repo
olympus/infra-tracker· PR #58 · head1fc119eb7ee4e3964401b1e7e9b82a1c531074aa· round 2/5 · verdict mergeRound count: the dispatch says "round 1 of 5", but the thread already carries one posted review of mine (id 676, round 1/5, head
5098b14, REQUEST_CHANGES). By the loop's count this is round 2, so the header uses 2. The delta isgit diff 5098b14 1fc119e(commits6fe708d,1fc119e). The re-review bar applies: a new BLOCKER must be a correctness or security defect introduced or exposed by the fix.Recommendation: merge
Charter: the dispatch places the class escalation elsewhere ("never a reason to withhold an approval"), so the review state follows the findings. Merging remains pit's act. This review does not merge.
Round-1 ledger (
5098b14→1fc119e)1fc119e## Merge Danger(AGENTS.md §Pull requests)## Merge Danger, Door: two-way, Blast Radiusmake helpprints the new wordingguestandedge; the round-1 mutants all go red: guest judge path, edge judge path, hardcoded name, guest→edge name, edge→guest name, droppedrm15printed as a literal$passedgate-testrow owed in olympus/workshopStandards
A-1 · ADVISORY · the test header claims Target-level coverage of the unset path it does not have —
scripts/tests/gate.test.sh:3-4says the file covers "what both Targets still do when the variable is absent or exported". Every Target-level run passesNONINTERACTIVE=1(gate.test.sh:145-149; calls at :152 and :158). The absent and exported cases run only through the probe target (:81-120). Mutant:guest's word argument emptied (Makefile:345 becomes$(call confirm_and_apply,,$(GUEST_PLAN_CHECK),guest)) →gate-test: 22 assertions, 0 FAILED., rc 0. The real Targets are correct at head:make -n guestandmake -n edgeboth print the word prompt withvikunja. So this is a coverage gap, not a defect. Clears with: one assertion runningmake -s guestandmake -s edgewith the variable absent, the word typed and a wrong word; or drop the absent/exported clause from the header. On a first round this would be a BLOCKER (a test that claims a pin it does not give). On this re-review it is newly spotted with the code correct, so it stays ADVISORY.Named, not charged (Standards):
docs/reference/state.md:177-178and AGENTS.md §State describe the unset path only. No workflow or script invokes the mode yet. The workshop row is disclosed as owed.Spec
Sources: THE-14 rev 13, read live at 09:10Z (
fetch-paperclip-issue.sh, 200; doc updated 2026-11-12T21:27:22Z). Its tracker row reads "NONINTERACTIVE=1on the apply Targets: no", and it names TR-63 as "the tracker's non-interactive applies". TR-63 itself was not readable:fetch-vikunja-task.sh 3 63answered 401 on both shipped keys at 09:10Z, and there is no cached copy under cache/scratch. Its acceptance criteria are unverified.A-2 · ADVISORY · the baseline guard misses a state that exists but is empty —
scripts/plan-check.py:15-17says a plan without a baseline is red, because "every resource plans as a create" and would "pass by proposing nothing it could lose". Line 82 keys the baseline onbool(plan.get("prior_state")), so a present-but-empty state passes. Probe:prior_statepresent with empty values and onecreate→ rc 0, "the plan loses nothing". Same create withprior_stateabsent → rc 1. Under the mode that green is applied unattended. The bound: the Guest'svmidis pinned to 142 (vikunja/guest/variables.tf:26), so a re-create should collide in Proxmox and fail. I did not reproduce that against live Proxmox, and the edge's behaviour on a duplicate proxy host is unverified. ADR-0011 permits adds, so this is not an ADR breach. Nothing calls the mode yet, so merging is safe today. Clears with: the judge red on aprior_statethat holds no resources. That is a change toscripts/plan-check.py, the CI judge, which the charter escalates, so the board should settle it before the first caller (TR-58). I would hold that first caller, not this merge. If Proxmox accepts a duplicatevmid, re-open this as a BLOCKER.Named, not charged (Spec):
servicestays on the word. The body's reason ("the ticket names the two apply Targets") rests on TR-63's text, which I could not read. It is listed under could not verify.Spec findings against the readable contract (THE-14 rev 13 and the body's table): none.
Gate boundary (charter, four checked at
1fc119e)1fc119e.forgejo/workflows/checks.yaml,plan.yml)checks / static,checks / execute,plan / guest-plan-check,plan / edge-plan-checkmake checkrecipe untouched (prerequisite list gainsgate-test, a floor, not a gate change);guest-plan-checkandedge-plan-checkuntouched.guestandedgeare deploy-only apply Targets that move beneath them, graded on behaviourscripts/plan-check.pyandscripts/plan_check.pyare not in the diff.Escalation classes, named for the board and not held: destroy or replace, none introduced (the mode refuses them); ADR, none changed (ADR-0011 read at workshop origin/main 09840e0); branch protection, untouched; tier-1, the edge Stack is the NPM proxy ("network/core: proxy"), and this change touches its apply gate, not its configuration. No board card was opened or cited by this round.
Named, not charged
gate-testrow, disclosed as owed with its landing place.scripts/__pycache__/appears aftermake plan-check-test. That is the pre-existing test, untracked, not this diff.forgetaction as no loss. The repo has noremovedblocks (0.tffiles), so it is unreachable today.Could not verify
servicebelongs in scope depends on them.glossary-vocab-check.py: not in this repo, not run.vmidor proxy host (the bound for A-2).Verified (how)
git ls-remote origin refs/pull/58/head=1fc119e;5098b14is an ancestor.1fc119e, in a worktree:make gate-test22/0 rc 0;make plan-check-test,make plan-workflow-test,make env-check env-testrc 0;mise exec -- make checkrc 0, 150ok, 5Success!,gate-test: 22. This matches the body.1fc119e:checks / staticsuccess (13s),checks / executesuccess (2m49s),plan / guest-plan-checksuccess,plan / edge-plan-checksuccess. The author's claim is confirmed.PLAN_CHECK_NAMEset): empty, truncated or garbage stdin → rc 2;{}→ rc 1; clean update → 0; delete → 1; create+delete → 1; move+delete → 1; no changes with baseline → 0; present-but-empty baseline with create → 0 (A-2).tofu: a replace is refused, nothing applied,plan.outremoved. A clean plan whoseshow -jsonexits 3 after printing it is refused, because the Makefile runs-eu -o pipefail(Makefile:1-3). A clean plan with a normal stub applies.rm, mode always on,|| trueon the judge line → all red.| caton the judge pipe → green, which is equivalent underpipefail, so not a gap. Emptied guest word → green (A-1).make -n guestandmake -n edge: wordvikunjaon the prompt branch.make -n service:confirm_word, unchanged.gate-testtarget,checkprerequisite, PHONY, help), README.md (paragraph), scripts/tests/gate.test.sh (new, 169 lines).stubplaceholders in the mirror's.env(diff lines 294-298).origin/mainMakefile:162 has the identicalNONINTERACTIVE_MODEline. infra-cockpitdeploy.yml:69runsmake prod NONINTERACTIVE=1. I did not diff the whole macro against forge.Summary
Two advisories is under the volume trip, so the recommendation is merge. The count, not the weight, is the only thing that could have moved it.