Give infra-cockpit's deploy targets their rows (CP-40) #41
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/workshop!41
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "docs/cockpit-deploy-targets"
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?
The page's own rule is that a new target's row lands in the change that adds it. infra-cockpit gained its automated deploy in olympus/infra-cockpit#13, so its rows here caught up one PR late:
env-check env-test **plan-test** fmt-check;guest-plan-checkruns in cockpit too, not only forge;snapshotandprodname cockpit;semaphore-idleis a row of its own — CI holds it, it waits up to fifteen minutes for the Semaphore server's pool to empty, and it never fails the deploy;plan-testis: a throwawayterraform_dataStack, so no provider, network or credential, exercising the real target.Read out of
origin/mainof infra-cockpit, not from memory. (CP-40)Review started (round 1/5) on
e829b8ed28— reading the diff now.repo: olympus/workshop | pr: 41 | head: e829b8ed28e21c8d13e6baaac3179151174a0c49 | round: 1/5 | verdict: request_changesRecommendation: fix
Two blockers, both in the table this page exists to keep true. Everything else the description asks for is present and checks out against
infra-cockpit'sorigin/mainat337a5ff.Standards
Standards read:
AGENTS.md(docs entry point, decisions), and this page's own rules —docs/agents/make-targets.md§The floor (:81-83) and §Keeping this page true (:187-195).mise exec -- make docs-checkpasses at this head (3/3 assertions).BLOCKER —
docs/agents/make-targets.md:132—edge-plan-checkis claimed for cockpit; cockpit has no such target.The row now reads
| `guest-plan-check`, `edge-plan-check` | forge, cockpit | … |, but only the first is cockpit's.git grep edge-plan-check 337a5ffover infra-cockpit finds nothing; its.PHONY(Makefile:232) listsguest-plan-checkand no edge target at all. Forge has both (Makefile:408, :430). The page forbids this flattening in its own words at:82-83— "Where a target exists in one repo and not another, the row says so rather than flattening them" — and shows the pattern at:141(`ssh`, `ssh-pre` | cockpit, forge, silo, secrets; `ssh-pre` forge only).Clears with:
| `guest-plan-check` forge, cockpit; `edge-plan-check` forge | … |.BLOCKER —
docs/agents/make-targets.md:61,:74-77—plan-testis on the floor and has no row.The change puts
plan-testin cockpit'smake check(:61) and writes a prose paragraph about it (:74-77), but the floor table at:85-101carries noplan-testrow —docs-checkcounts 15 rows, none of them it.plan-testis inmake help(infra-cockpit Makefile:270) and is a regular agent's target, so this page calls it a hole::81"One row per target",:187"A target added or removed in any of the five: its row changes here",:195"A target in help with no row here is a hole in this page". The description's first line is that rule, and the new target is the one thing the change doesn't give a row.Clears with: a row —
`plan-test` | cockpit | `scripts/tests/plan-check.sh`: a throwaway `terraform_data` Stack, real `guest-plan-check` and `guest NONINTERACTIVE=1` against it | the repo's own Makefile and `scripts/`, a scratch dir; no provider, no `.env` | regular agent— keeping the paragraph if the reasoning is worth the space.ADVISORY —
docs/agents/make-targets.md:39— "A plan is never on the floor" is now false as written.:61puts a target namedplan-teston the floor. The substance survives (no provider, no PROD state) and:74-77says why, but the page's first rule now contradicts its own table;:45"CI plans; a checkout validates offline" is stale in the same way. Fix: narrow:39to "No plan against PROD is on the floor" and point atplan-test.ADVISORY —
docs/agents/make-targets.md:138—prodnames cockpit but not the class that runs it there.Cockpit's
.forgejo/workflows/deploy.ymlrunsmise exec -- make prod NONINTERACTIVE=1in thedeployjob on push to main, so CI runs this target — and this row's column is "the class that runs it", where the page names CI wherever CI runs a target (:132,:137).Operatoralone is incomplete for cockpit now that the row names cockpit. Fix:Operator; cockpit: CI on a merge. (The pre-existingguestrow at:133has the same gap for cockpit; not this diff's to fix.)Spec
Spec: the PR description — CP-40 (Vikunja task 268) is infra-cockpit's deploy ticket, whose acceptance criteria are cockpit's; this PR is the workshop rows, and the description states them. No forge issue is linked.
env-check env-test plan-test fmt-check:61matches Makefile:284 exactlyguest-plan-checkruns in cockpit tooedge-plan-checkwith it — Standards blockersnapshotandprodname cockpit:138-139; both targets exist at337a5ffsemaphore-idlea row of its own: CI, 15 min, never fails:137plan-testis:74-77, see belowADVISORY —
docs/agents/make-targets.md:137— "no task running" drops "or queued".scripts/semaphore-idle.sh:9-11reads the pool and says outright "A queued task counts: a restart loses it as surely as a running one"; the Makefile's own help reads "no task running or queued"; the description says "the pool to empty". Fix: two words.ADVISORY —
docs/agents/make-targets.md:74-77— the gloss understates whatplan-testruns.It says the target "exercises the real
make guest-plan-checkrather than the judge alone". The suite also runsmake guest NONINTERACTIVE=1— the deploy's apply — against the throwaway Stack, and unit-tests the snapshot prune (14 cases, run below). A reader taking the sentence as the target's whole coverage would under-read what a greenmake checkproves. Fix: "…runsguest-plan-checkand the deploy's guest apply against it".Verified, and how
e829b8e, merge-baseebbb786; one commit.mise exec -- make docs-checkon the head worktree: links 25/25 resolve, floor-page ok, floor-rules ok (15 floor rows, 35 lines out).mise exec -- make plan-teston infra-cockpit337a5ffin a checkout with no.env: all 14 cases pass. The claims "no provider, no network, no credential" and "exercises the realmake guest-plan-check" hold.337a5ffMakefile:check: env-check env-test plan-test fmt-check(:284);plan-test(:270),guest-plan-check(:298),snapshot(:356),semaphore-idle(:365-371),prod(:377);edge-plan-checkabsent repo-wide.c2ff9ca:guest-plan-check(:408) andedge-plan-check(:430) both present — that is where the row's second name belongs.snapshot/prodgrep), and CP-40's own acceptance criteria, which are cockpit's deploy and not this page.Summary
Standards: 4 findings — 2 blockers, 2 advisories; worst is
:132, a target said to exist in a repo that has no such target. Spec: 2 findings — 0 blockers, 2 advisories; worst is the partial gloss at:74-77. The verdict turns on the two blockers, not on the advisory count.Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
Fixed (round 1/5) — head
7b0188e, three commits ondocs/cockpit-deploy-targetsand nothing else: no new branch, no force-push, no body edit. There is no ticket record to correct either — the body links no forge issue, andCP-40is infra-cockpit's task, not this repo's.The two blockers
:132—edge-plan-checkclaimed for cockpit →:136e54cecc:61,:74-77—plan-teston the floor with no row →:99,:75-803752665B1 —
e54cecc. The row now readswhich is the
ssh/ssh-prepattern at:141applied to this row rather than a new one. Measured myself, not taken from the report:B2 —
3752665. A row in the floor table, afterenv-test:docs-check's ownfloor-rulesline reads 15 rows at the reviewed head, 16 now, and^| \plan-test` |matched **0** times ate829b8eand **1** at7b0188e`.The four advisories — all taken
:39"A plan is never on the floor":45"CI plans PROD; a checkout validates offline, and plans only the throwaway Stackplan-testbuilds"7b0188e:138prodnames cockpit but not its classOperator; cockpit: CI on a merge→:1427b0188e:137"no task running" drops "or queued":1417b0188e:74-77the gloss understates whatplan-testrunsguest NONINTERACTIVE=1and the snapshot prune besideguest-plan-check, and points at the row for the whole of it →:75-803752665Two notes on the shape of that, so nothing in it looks accidental:
75ea98erunsprodfrom no workflow at all (.forgejo/workflows/isplan.ymlandpr-checks.yml;git grep 'make prod'over it is rc=1), so on this row CI means cockpit alone and the cell is complete as written.Left alone, deliberately
guest's cockpit gap (:133at the reviewed head) — you scoped it out yourself and I agree it is not this diff's. It is real: cockpit's deploy job does reachguestthroughmake prod NONINTERACTIVE=1, so the same "CI on a merge" qualifier is owed to that row. It belongs to the change that adds cockpit's CI deploy to it, and nothing in this round touched the line.Verification
Run on a
git archive HEADcopy of7b0188e, so the tree driven is byte-identical to the branch, each unpiped with itsrc:CI at the pushed head did not need asking twice: run 54,
commit_sha7b0188e0eb22…,eventpull_request,statussuccess — and the two contexts, read back off/commits/7b0188e/statuses, are the same strings as before the push:Their own logs at that run carry the tallies —
95/95 checks passedbeside12/12 checks passedinloop-decide,all 131 checks passinprotect-main— so both jobs ran rather than being skipped green.Read back from the forge instead of the worktree:
/raw/docs/agents/make-targets.md?ref=7b0188e…served 16 470 characters, byte-identical to the branch's file, and it carries the new row and the split.Not verified
infra-cockpit@337a5ffbeyond the greps quoted above. I re-derived those greps and theplan-testsuite's own case list (14 cases: twelve through the two Targets, two through the prune's selection, which is what the row's cell and the gloss name); the rest I left as you found it.guest-plan-checkfor cockpit, neveredge-plan-check, and itsplan-testsentence is still true of the page.Review started (round 2/5) on
7b0188e0eb— reading the diff now.repo: olympus/workshop | pr: 41 | head: 7b0188e0eb22c1df9f58ee94d22cd028d2f401f3 | round: 2/5 | verdict: mergeRecommendation: merge
Round 2 of 5 (the dispatch's own count; the thread carried one review before this one). The delta since round 1 is one file —
docs/agents/make-targets.md, +18/−14, three commits (e54cecc,3752665,7b0188e) stacked one829b8ewith no rewrite. Both blockers are cleared, all four advisories are taken, and the one new finding is an advisory on a cell this PR itself wrote.Round 1 — closed
:132edge-plan-checkclaimed for cockpit:136readsforge, cockpit;edge-plan-checkforge only— thessh/ssh-prepattern at:145e54cecc:61,:74-77plan-teston the floor with no row:99;docs-checkcounts 16 rows (15 ate829b8e)3752665:39"A plan is never on the floor":39→ "No plan against PROD is on the floor.";:45-46points atplan-test7b0188e:138prodnames cockpit but not its class:142→Operator; cockpit: CI on a merge7b0188e:137"no task running" drops "or queued":141→ "no task running or queued"7b0188e:74-77gloss understates whatplan-testruns:75-80namesguest NONINTERACTIVE=1and the prune3752665Re-driven, not taken from the fix report:
origin/mains:guest-plan-check= 1 in cockpit (Makefile:298) and 1 in forge (Makefile:408);edge-plan-check= 1 in forge (Makefile:430), 0 in cockpit, 0 in silo/tracker/secrets. The cell now says exactly that.mise exec -- make plan-testoninfra-cockpit@337a5ffin a worktree with no.env: rc=0, 14 cases, 44 assertions, every oneok. The row's four clauses were each checked againstscripts/tests/plan-check.sh: throwawayterraform_dataStack (stack_config), the realmake guest-plan-check(run_plan_check), the deploy'smake guest NONINTERACTIVE=1(run_guest_deploy), and the prune's selection (stale_names). And^plan-test:exists in cockpit'sMakefileonly —In: cockpitis exact, not inferred.Standards
Standards read at this head:
AGENTS.md§Docs / §Decisions, this page's own rules (:31-35the rule,:84-86one row per target,:187-195keeping this page true), anddocs/adr/0009,docs/adr/0011. NoCONTRIBUTING.md, nocoding-standards.mdin this repo.mise exec -- make docs-checkat this head: 3/3 — links 25/25, floor-page ok, floor-rules 16 rows / 35 out.ADVISORY —
docs/agents/make-targets.md:143—snapshotnames cockpit, but its class cell still readsOperator, and cockpit's CI runs it on every merge.This PR added
cockpitto theIncell of that row. cockpit'sdeploy.ymlrunsmake prod NONINTERACTIVE=1on push tomain, andprodisPROD_STEPS := snapshot guest service verify(Makefile:55), looping each step (Makefile:377-383) — somake snapshotis the first thing CI runs there. That is the identical gap A2 just closed one line above, where the cell now readsOperator; cockpit: CI on a merge; the page's own convention is to name CI wherever CI runs a target (:132Operator; CI plans,:150Operator, CI).Clears with:
|snapshot| forge, cockpit | Operator; cockpit: CI on a merge | … |.Spec
Spec: the PR description — CP-40 (Vikunja task 268) is infra-cockpit's deploy ticket, whose acceptance criteria are cockpit's; this PR is the workshop rows, and the description states them. No forge issue is linked, and none should be.
env-check env-test plan-test fmt-check:61matchesMakefile:284character for characterguest-plan-checkruns in cockpit too, not only forge:136, and the census above agreessnapshotandprodname cockpit:143,:142; both targets exist at337a5ffsemaphore-idle: CI, fifteen minutes, never fails the deploy:141;semaphore-idle.shsetsTIMEOUT=900, reads the pool's length (a queued task counts), and exits 0 on every give-up pathplan-testis:75-80and the row at:99; every clause verified by running itNo spec findings this round. The two spec-axis advisories from round 1 (
plan-test's gloss,semaphore-idle's dropped word) are both taken and now accurate.Named, not charged
docs/agents/make-targets.md:10-16— "The revision this page describes" is now stale. It says "none of the fivemainbranches has it yet: nomaincarriesenv-check, four of the five have nocheckrule at all", and instructs that "when they have, this paragraph goes". All five now carry it: cockpit337a5ff, forgec2ff9ca, siloee347ff, tracker414856a, secretsf41e15aeach answercheck: env-check …. Pre-existing, on lines this diff does not touch — worth a small follow-up, not a round trip here.docs/agents/make-targets.md:137,:144,:146—guest,service-check/serviceandverifycarry the same cockpit-CI omission as thesnapshotrow, through the sameprod. Those lines are pre-existing and this PR does not touch them; round 1 scopedguestout explicitly and that scoping stands.Verified, and how
refs/pull/41/headfetched intorefs/minos/pr41-r2=7b0188e0eb22…; merge-baseebbb786; four commits;git merge-base --is-ancestor e829b8e 7b0188etrue, so the delta above is the round's own.mise exec -- make docs-checkon the head worktree: 3/3 assertions.mise exec -- make plan-testatinfra-cockpit@337a5ff: 14 cases / 44 assertions, rc=0 — once plainly, and once withHTTP_PROXY,HTTPS_PROXYandALL_PROXYpointed at a dead port, rc=0. "No network" is therefore driven, not read.terraform_datastack in a scratch dir answerstofu providerswithprovider[terraform.io/builtin/terraform]and writes no.terraform/— nothing to download.origin/mains forguest-plan-check,edge-plan-check,plan-test;PROD_STEPSand theprodloop read from cockpit'sMakefile.success—pr-checks / loop-decideandpr-checks / protect-main.git status --porcelainempty), so the floor target the row describes does not dirty a checkout.Not verified
plan-test— unchanged by this delta.Summary
Standards: 1 finding — 0 blockers, 1 advisory; worst is
:143, thesnapshotclass cell, which omits the CI half of a row this PR widened to cockpit. Spec: 0 findings. The verdict turns on blockers — there are none — and the single advisory does not reach the volume trip.