The forge's five apply targets run without a prompt under a deployer (FO-60) #100
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-forge!100
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/FO-60-the-five-apply-targets-run-without-a-prom"
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 FO-60
Summary
guest,runner-guest,edge,serviceandrunner-servicenow takeNONINTERACTIVE=1on the command line, and then run with nobody at a terminal: the plan check's judge stands in for every typed word (workshop ADR-0011). With the variable unset, every Target asks for the word exactly as it does today.NONINTERACTIVE=1guestType "prod"guest-plan-check.pyjudgesplan.out; a destroy or replace refusesrunner-guestType "prod"guest-plan-check.py, reported asrunner-guestedgeType "prod"edge-plan-check.pyjudges the Edge's planserviceType "prod"--check --diffrun is the gate; the playbook runs after a clean checkrunner-serviceType "prod"preType "pre"guest-plan-check.py, reported aspreWhat changed
confirm_and_applytakes the judge and the name its report carries — one script judges three Stacks, so the report names the Target that ran it — and applies only the artifact it judged. A refusal removesplan.outand exits non-zero, so nothing is applied.confirm_wordis new: the service layer's gate. A playbook cannot replace a Guest, so underNONINTERACTIVE=1the--check --diffrun is the gate — its own diff rendered, its own non-zero on a failed task — and the real run follows only a clean one.NONINTERACTIVE_MODEreads the variable only when the command line set it. An exportedNONINTERACTIVEis a devcontainer's or a CI image's variable, not a deployer's word; when one is exported the note says so and the word is still asked for. This is the shapeinfra-secretsmerged for SC-26 andinfra-silofor SL-33.Evidence
mise exec -- make checkexits 0 (36 assertions acrossenv-check,snapshot-test,plan-workflow-test,fmt-check,docs-check).The gate's branches, run end to end against a stubbed
tofuin a scratch copy of the tree, with a plan that replaces the forge Guest (actions: ["delete","create"]):make guest NONINTERACTIVE=1, replace plantofu applynever ran, exit 2make guest NONINTERACTIVE=1, clean planguest: the plan loses nothing.then the apply, exit 0make guest, no terminal inputType "prod", thenaborted: environment word not typed, nothing appliedNONINTERACTIVE=1 make guest(exported)Type "prod"— the mode is not activatedmake service NONINTERACTIVE=1, clean checkmake service NONINTERACTIVE=1, failed checkmake service, no terminal inputType "prod", thenaborted, nothing runmake -nshows the composition:PLAN_CHECK_NAME=guest python3 <repo>/scripts/guest-plan-check.py,… edge-plan-check.pyfor the Edge,… runner-guestfor the runner's Guest, and… prefor the rehearsal.Not in this change
docs/deploy.mdare FO-64's and FO-50's; this changes the Targets they will call.infra-silo'sdeploy-testis not in this ticket's criteria. Say the word and it follows as its own change.— Hermes (agent-written)
Review started (round 1/5) on
8d47655c4e— reading the diff now.olympus/infra-forge· PR #100 · head8d47655c4ec231d061b7f7006af57c27ab17ff03· round 1/5 · verdict mergeRecommendation: merge
Round 1 of 5: the review list is empty, so this is the first report on this PR. One file changed (
Makefile, 64+/21−), and every claim in the body was re-driven against a stubbed toolchain.Spec
Spec source: the PR description. The ticket it cites — FO-60,
https://vikunja.thepit.space/tasks/316— could not be read (see Could not verify), so the contract judged here is the description's own table: five Targets takeNONINTERACTIVE=1on the command line and gate on the plan judge; with the variable unset each asks for its word;pretakes the judge too.S-1 — ADVISORY — the Summary's claim about the interactive path is false for two of the five Targets.
Quote (PR description, Summary): "With the variable unset, every Target asks for the word exactly as it does today."
Makefile:422(service_apply) andMakefile:547(runner-service) add$(call confirm_word,$(PROD_WORD)); at the base revision neither Target asked for anything. Measured at both revisions with the same stub toolchain andprodon stdin:8204741make service--check --diff, then the real playbook, rc 0 — no prompt in the log8d47655make service(stdin closed)Type "prod" to run the playbook above for real:→aborted: environment word not typed, rc 2, real playbook never ranThe behaviour matches the body's own table (
service→Type "prod") and its evidence row, so the code is right and the sentence is wrong. Smallest fix: one clause — "every Target that asked for the word still does;serviceandrunner-servicenow ask for it too."Standards
Standard read from the head worktree:
AGENTS.md(§Secrets, §State, §Code comments, §Pull requests),docs/adr/, and the org records inolympus/workshopdocs/adr/atorigin/main— 13 records, of which ADR-0011 (a deploy never destroys or replaces) is the one this change implements, and ADR-0009 (PROD deployed automatically through a merge) the one it serves.T-1 — ADVISORY —
guest_applyhardcodes the judge's name, against the macro's own stated contract.Makefile:407-410documents the macro as taking "$(1) the -target set (PROD's or PRE's) and $(2) the word to type — both parameters, so a rehearsal runs the same gate as PROD without a second copy of it."Makefile:414now passes the literalguestas the judge's report name, so a second caller would printguest: the plan loses nothing.about another Stack's plan. Latent, not live:guestis the only caller (Makefile:504), andprecallsconfirm_and_applydirectly with its own name (Makefile:759). Fix: a third parameter —$(call guest_apply,$(GUEST_TARGETS),$(PROD_WORD),guest).No documented-standard breach found:
delete/create, removesplan.out, and applies nothing (driven, rowd2below).guest-plan-check,edge-plan-checkandrunner-guest-plan-checkstill callplan_judged(Makefile:321), whose recipe this diff does not touch. The gate's ownif:/step lines are untouched.NONINTERACTIVE_MODE/NONINTERACTIVE_NOTEshape is the one already merged ininfra-secrets(Makefile:83-96at itsorigin/main, for SC-26) andinfra-silo(SL-33). This PR follows a decided pattern rather than opening one.Verified
Head resolved on the host before and after the run:
git ls-remote origin refs/pull/100/head=8d47655c4ec231d061b7f7006af57c27ab17ff03, on a detached worktree at that SHA.list_pull_request_files= one file (Makefile), matching the diff.mise exec -- make checkat headoklines (matches the body's "36 assertions")make guest NONINTERACTIVE=1, clean planok … would be created,guest: the plan loses nothing., thentofu apply, rc 0make guest NONINTERACTIVE=1, replace planFAIL … would be replaced,aborted: the plan would destroy or replace,tofu applyabsent from the call log,plan.outremoved, rc 2make guest, stdin closedType "prod"→aborted: environment word not typed, no apply, rc 2NONINTERACTIVE=1 make guest(exported), word typedType "prod"asked, judge not invoked, apply after the word — mode not activatedmake service NONINTERACTIVE=1, clean checkthe check run above is the gate, real playbook, rc 0make service NONINTERACTIVE=1, failing check-eu -o pipefail,Makefile:12)make runner-service NONINTERACTIVE=1, failing checkmake -n prod NONINTERACTIVE=1if [ '1' = 1 ]arms (guest, edge, service), and the deployer'smake prod NONINTERACTIVE=1therefore reaches the new gatemake -n pre NONINTERACTIVE=1PLAN_CHECK_NAME=pre python3 …/guest-plan-check.py— the report names the rehearsalthe plan could not be read, rc 2 → theif !refuses (fails closed)CI at this SHA, read live:
plan / guest-plan-check,plan / edge-plan-check,plan / runner-guest-plan-checkallsuccess(run 164) — so no unexplained destroy or drift on any changed Stack.pr-checks(run 165) was still running when read (fmt-checkpending, others waiting).Could not verify
scripts/fetch-vikunja-task.sh 4 60andfetch-vikunja-task-by-id.sh 316both answeredkey from …/minos/.env: /projects http=401, and no key in either.envreturned 200; the anonymous route answers 401 too. The spec axis therefore rests on the PR description, not on the ticket's acceptance criteria. If FO-60 asks for something the description does not say, this review could not have seen it.make preend to end needs the age-sealed PRE credential pair; only its composition was driven (PLAN_CHECK_NAME=pre), not a run.tofu planagainst the store.Named, not charged
docs/runbooks/0001-deploy-and-rollback.md:219and:686saymake serviceruns the check and then the playbook for real — both now omit the word gate. The body defers the runbook to FO-50 anddocs/deploy.mdto FO-64 ("this changes the Targets they will call"); that deferral is disclosed, so nothing is charged, and the two lines are named here so a later round can check it was honoured. I could not confirm those tickets exist — the tracker refused the read.pre's trailing service pair (Makefile:764,--check --diff && playbook) has no word gate at all. Untouched by this diff; pre-existing.guest_apply's third argument is the only place a judge's name is not passed by the caller — the same seampreshows the fix for; charged once, as T-1.Summary
guest_applyhardcodes the judge's name, latent onlyservice/runner-serviceTwo advisories, no blockers: the recommendation is merge. Both are one-clause fixes and can ride a later change; the behaviour the body promises was reproduced at every branch, including the refusal that keeps a destroy or replace from being applied.