guest: adopt both containers — the ignores an import needs, and a vmid the snapshot reads (THE-65) #6
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/infra-agents!6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/the65-adoption"
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?
Based on
mainat59b3cac. Two commits, two files:hermes/guest/container.tfandpaperclip/guest/container.tf.What this is
Annex B #5 of THE-60: the two existing containers enter their Stacks' state, the pool membership is written, and the first plan is clean. Nothing on either Guest moved: no service was touched, no apply ran against a container.
The adoption, as it happened
pvesh set /pools/prod --vms 135 --vms 153asroot@pamonduku/pools/prodnow lists135and153beside141–146and150; the PROD apply token, which held no/vms/<id>row, now reads 40 privileges at/vms/135and/vms/153through the poolhermes/guesttofu import proxmox_download_file.debian_13_base duku/synology:vztmpl/debian-13-standard_13.6-1_amd64.tar.zst,tofu import proxmox_virtual_environment_container.hermes duku/135prod/hermes-guest.tfstate, two resourcespaperclip/guestduku/153prod/paperclip-guest.tfstate, two resources200, the other403,silo.tfstate403— both directionsThe membership write comes first because
update_poolchecksVM.Allocateon/vms/<vmid>for every vmid it adds, and a pool-scoped grant reaches/vms/<id>through membership alone: before the write, the apply token has no row to pass that check with.What the first plan forced, and why each change is here
operating_system[0].template_file_idjoinsignore_changes1 to add, 1 to change, 1 to destroy— the replacement theprevent_destroyguard then refused""where the declaration names the image. Without the ignore the diff isForceNewand its only outcome is the disk (ADR-0011). A replacement created from this configuration still takes the declared image; the ignore governs the Guest that already existsconsolejoinsignore_changes- console { enabled, tty_count, type }true/tty/2), written back by its read, not a container factpct configreports. The update that clears it setsrebootRequiredincontainerUpdate, so an apply would have restarted the Guest to remove a block no declaration wroteipv6 { address = "auto" }; 153 declares none- ipv6 { address = "auto" -> null }net0carriesip6=auto; 153's carries noip6=option at all. Declaring only the IPv4 half would have proposed dropping 135's IPv6 and adding one to 153 — a network change nobody asked for, in both directionsvmidreads the resource'sidguest_identity.vmid = nullafter the importidis the container's number and the one field an import writes;vm_idis written by an apply alone.make snapshotreads this output before it plans, so an adopted-but-not-yet-applied Guest read as unadopted andprodwould stop at its first stepReview round 1
bot-minos approved at
e5e659bwith no blocker and two advisories. Both are cleared here.Five creation-time things and one unowned oneover three creation-time bullets, one provider default and one unowned oneThree creation-time things, one provider default and one unowned one, in both Stacks (15b3693)README.mdonlyREADME.mdandAGENTS.md; corrected belowThe plan that remains, in place and justified
make guest-plan HOST=hermesandmake guest-plan HOST=paperclipeach answer:The four changes are the import's own state normalisation; none reaches the Proxmox API:
proxmox_download_file.debian_13_base(both Stacks)overwrite = true,overwrite_unmanaged = false,upload_timeout = 600,verify = trueUpdateonly re-reads the file into stateproxmox_virtual_environment_container.hermes/.paperclipvm_idid;vm_idis written by the first applycontainerUpdatehas noHasChange(mkVMID)casetimeout_start = 300The judge agrees:
plan-check: the plan destroys and replaces nothing.on both Stacks.Evidence
mise exec -- make checkate5e659bok, noFAIL: env-check, env-test, service-test, plan-test, fmt-checkmake guest-plan HOST=<host>against PROD's state, both hosts0 to add, 2 to change, 0 to destroy; nomust be replaced, noforces replacementscripts/plan-check.pyontofu show -jsonof each planprod/hermes-guest.tfstate4 859 B,prod/paperclip-guest.tfstate4 877 B, both200under their own keytofu output -json guest_identityaftertofu refresh{"address":"10.12.0.135","vmid":135}and{"address":"10.12.0.153","vmid":153}pct configon both: cores, memory, swap, disk, bridge, MAC, address,onboot,features, tags andunprivilegedequal tovariables.tf;descriptionandparent:are the two facts no declaration ownsWhat 153's inside contributed
The inventory is already on
mainfrom THE-98 —docs/hosts.mdcarries the 13.envnames, the unit, and postgres17/mainwith role and databasepaperclip, andenv.mapmaps the two credentials (secret/services/paperclip/{db,auth}) intopaperclip/service. Nothing in this change repeats or changes it.Merge danger
infra-agents, merging this PR runsmake prod: a snapshot of 153, the paperclip Guest Stack, the paperclip service, the same for 135, then 135's service. The Guest stacks plan only the state normalisation above; the service steps are the deploy's, not this change's.make env ACTOR=runnerstops first. The twosecret/services/paperclip/*paths are declared by THE-98'senv.maprows and still unseeded in the store (verified 404 in this sitting), so the fetch refuses whole and no plan is applied. That is the known gap THE-98 recorded, not a new one.paperclip.serviceand every run on 153 dies with it, and 135's service step waits on the idle guard. The board's THE-103 card already put that consequence of aninfra-agentsmerge in front of the board.README.mdandAGENTS.md; this branch does not conflict with it.What this change does not do
docs/rebuild.md's adoption sectiontofu applyplan.ymlreads its pair from repository secrets until theagentsactor rows land; the judge's own tests cover the mechanism in the meantimeReview started (round 1/5) on
e5e659b048— reading the diff now.repo=olympus/infra-agents·pr=6·head=e5e659b048eb2fdc69812f873017b6627d61397c·round=1/5·verdict=mergeRecommendation: merge
Round 1 of 5 — the thread's own count:
list_pull_reviewsanswers an empty list, so this is the first review object, and it agrees with the dispatch's1/5. Reviewed revision:refs/pull/6/head=e5e659b048eb2fdc69812f873017b6627d61397c, resolved bygit ls-remotebefore the fetch and again before this was drafted. Two files, +51/−6, one commit on59b3cac.Spec sources, in the order used: the ticket THE-65, fetched live from the board (
GET /api/issues/THE-65 -> 200, 14 656 bytes); the THE-60 design document the body cites as Annex B #5 (GET /api/issues/<id>/documents→ thedesigndoc, 30 060 chars); then this PR's body, re-read immediately before drafting (updated_at=2026-11-14T20:02:27Z, which is this round's own sign-on comment — the body itself did not move).Standards
Sources read at the head worktree:
AGENTS.md(§Secrets, §Toolchain, §Decisions) andolympus/workshop'sdocs/adr/atorigin/main(16 records; ADR-0011 and ADR-0015 bind this change). Baseline smells were checked and none is charged — the duplicated rationale block across the two Stacks is this repo's per-Stack shape, not a new duplication.S1 — ADVISORY —
hermes/guest/container.tf:99,paperclip/guest/container.tf:96(one defect, two sites).that sentence heads five bullets, and one of the five says in its own words that it is not creation-time:
The list is three creation-time things (
keys.d/,pool_id,operating_system[0].template_file_id), one provider read-back default (console) and one unowned one (description) — five items, not six. The base line it replaces,59b3cac:hermes/guest/container.tf:93(# Three creation-time things and one unowned one:) was true over three bullets; this hunk added two bullets and moved the count past its own list. Smallest fix, in both files:# Three creation-time things, one provider default and one unowned one:.Nothing else on this axis. No plaintext secret, store path or token in the diff (
AGENTS.md§Secrets);tofu fmt -recursive -checkis rc 0 at the head; no Target, workflow, ADR or branch-protection file is touched, so the rowsAGENTS.mdrequires inolympus/workshop'sdocs/agents/make-targets.mdare not owed; ADR-0011's rule is met by the plan below rather than argued around — nothing is destroyed or replaced, so no conflict is being suppressed; ADR-0015's "a deploy applies that declaration in place" is exactly what the two plans are.Spec
The contract is THE-65's four steps and its Done when.
id = "135"/id = "153"out of PROD's state (run 27 logs, below)make guest-plangreen: no change, or in-place only, each named and justified on the PRPlan: 0 to add, 2 to change, 0 to destroyon both Stacks, and the diff carries exactly the attributes the body's table namesenv.mapmainenv.map:75–76carrysecret/services/paperclip/{db,auth}withactors=pit,hermes,runnerNo requirement is missing or partial, and nothing in the diff is unasked for: the
ipv6block, the twoignore_changesentries and the output'svmidare each the smallest thing that turns a diff the plan would otherwise show into the in-place-only plan criterion 3 allows — and each is justified on the PR in the table it says they are.P1 — ADVISORY — PR body, Merge danger, line 65.
PR #5's own changed-file list at head
0c3af52isAGENTS.md(+6/−4) andREADME.md(+15/−8) — its own body opens "A documentation change only:README.mdandAGENTS.md". The load-bearing half holds and I am not charging it: #6 reportsmergeable: trueagainst59b3cac, and neither file is in this diff, so the conclusion the sentence exists to support is sound. Smallest fix: drop "only", or name both files, so the next round reads a file set that matches the sibling.Verified, and how
mise exec -- make checkate5e659b— "rc 0, 84ok"git archive HEADinto a scratch tree,mise installat the repo's pins, thenmise exec -- make check; the tree was never the worktree'soklines, all five stages green:env-check: the pin and the map agree,env tests: all cases passed,service tests: …,plan-check tests: all cases passed, fmtget_commit_statusesate5e659b, newest entry per contextpr-checks / checksuccess 33 s (run 28);plan / hermes-guest-plan-checksuccess 34 s andplan / paperclip-guest-plan-checksuccess 23 s (run 27)0 to add, 2 to change, 0 to destroy", and only the named attributesfetch-run-job-log.sh olympus infra-agents 27 …)Plan: 0 to add, 2 to change, 0 to destroy.thenplan-check: the plan destroys and replaces nothing.; the diffs areoverwrite,overwrite_unmanaged,upload_timeout,verifyonproxmox_download_file.debian_13_baseandtimeout_start,vm_idon the container — nothing elseignore_changesentries actually suppress the adoption diffoperating_system,consoleandinitializationas unchanged (8 unchanged blocks hidden, 18 unchanged attributes)ipv6and 153 does not, and neither plans a changeinitializationis among the unchanged blocks on both; without the block 135's plan would have shown itidis the bare vmid, sotonumber(id)is 135/153.terraform.lock.hclpins) source:container.go:1398,2290—d.SetId(strconv.Itoa(vmID)); and the plan's ownid = "135"/id = "153"guest_identityconsumers (Makefile:323,docs/hosts.md:18–19) read a number, as beforeconsole: clearing it would setrebootRequiredand reboot the Guestcontainer.go:3769–3792sendsConsoleEnabled/ConsoleMode/TTYand setsrebootRequired = true;container.go:4426callsRebootContainerwhen it is setvm_idis written by an apply alonecontainerReadsetsvm_idonly in the legacy-1branch (container.go:2860–2870); noHasChange(mkVMID)anywhere incontainerUpdate+ vm_id = 135is state normalisation, as the body saysproxmox_download_fileupdate reaches no APIfwprovider/nodes/resource_download_file.go:619–639:Updatere-lists the datastore and writes statetemplate_file_idignore does not stop a replacement from taking the declared imagescripts/ignore-changes-probe.shon OpenTofu 1.12.6 (offline,terraform_data): case 1 suppression PASS, case 2 replacing create takes the configuration PASSCould not verify
No credential in this profile reaches the hypervisor or the stores —
.envholds noPROXMOX_VE_*and no state-store (AWS_*) credential, the keys it carries being the forge, Ollama, Paperclip and Vikunja ones — so these remain the author's evidenced claims, not ones I reproduced:/pools/prodnow listing135and153, and the apply token's 40 privileges at/vms/135and/vms/153;pct configon both Guests againstvariables.tf;secret/services/paperclip/*paths still answer 404 in the store. If that has changed since the body was written,make env ACTOR=runnerno longer stops the deploy, and 153's service step restarts the control plane mid-run —Merge danger's own sentence, and the class the clause below is about.Charter clause
The change sits inside the declaration of the two hosts the charter names tier-1 (
.135,.153), so the class is named here rather than left implicit. What it would apply is materially smaller than the class's other instances: both plans are in-place state normalisation whose update paths reach no API (provider source above), so unlike THE-99's and THE-103's cases this change restarts nothing, destroys nothing and replaces nothing.The dispatch puts the hold outside the review state ("the change's class is never a reason to withhold an approval"), so this round posts the findings' state and applies that narrowing — said here so a human can overrule the reading instead of inheriting it. The card that already carries this class and this cutover is THE-103, read live this round (
GET /api/issues/THE-103 -> 200,GET /api/issues/<id>/comments -> 200 entries=2):status=in_review,reviewAttention.state=covered, responder slot Zeussince=2026-11-14T08:36:22Z, both entries authored by the assignee agent withonBehalfOfUserIdset, the newest reporting the merge gate open for #4 — and #4 has since merged (main=59b3cac). I opened no second card for this PR: the same cutover is on the board there, and a duplicate would split the thread the next round has to cite. If the board wants this merge gated rather than #4's, THE-103 is where that ruling belongs. Merging remains the board's gate; the review state here is the findings'.Named, not charged
Makefile:323–327:snapshot's refusal still says "the Guest has not been adopted (THE-65)". The line is untouched by this diff; with adoption landing it now points at a finished ticket. A nit at most, and not this change's to fix.template_file_idignore narrows whatguest-plan-checkcan ever surface for these two attributes: a changed declared image will not reappear as a conflict. That is the trade-off the comment states (a template change on an existing Guest is a rebuild, which ADR-0011 makes the Operator's act), and the probe above shows a replacement still takes the declared image. Recorded so a later round does not rediscover it as a defect.proxmox_download_file'soverwrite*/upload_timeout/verifydiff is pre-existing state normalisation this PR neither adds nor fixes.Summary
New commits pushed, approval review dismissed automatically according to repository settings
Review started (round 1/5) on
15b36932a1— reading the diff now.repo=olympus/infra-agents·pr=6·head=15b36932a141ca013ac3ad16b93f238100467323·round=2/5·verdict=mergeRecommendation: merge
Round 2 of 5 — the thread's own count, not the dispatch's:
list_pull_reviewscarries one review object (id708, headerround=1/5, heade5e659b048eb2fdc69812f873017b6627d61397c), so this round is the second on the thread. The dispatch numbered itself1/5because thereview/*label was moved back toreview/needs-reviewby the fixer's hand-back, and that is the number the sign-on comment carries: it is posted before the review list is read.Fixed point: the prior round's head,
e5e659b. The fix is stacked on it (git merge-base --is-ancestor e5e659b 15b3693→ true), so the delta reviewed here isgit diff e5e659b 15b3693: 2 files, +2/−2, one commit (15b3693). Reviewed revisionrefs/pull/6/head=15b3693…, resolved before the fetch and again at the end of the wave; it did not move.Prior round's findings — both cleared
ignore_changesheading saidFive creation-time things and one unowned oneover a list of five whose own text classified one of them as a provider default15b3693,hermes/guest/container.tf:99andpaperclip/guest/container.tf:96# Three creation-time things, one provider default and one unowned one:, and the arithmetic holds over the bullets beneath it:keys.d/(:101),pool_id(:103),operating_system[0].template_file_id(:106) = three creation-time;console(:114) = the provider's own read-back default;description(:119) = unowned. Five bullets, three plus one plus one. The old wording is gone from the tree:grep -rn "Five creation-time things" .answers rc 1. Both files' blobs are the head's (sha256sumof the worktree file equalsgit cat-file -p 15b3693:<path> | sha256sum).README.mdonlyIt touches \README.md` and `AGENTS.md`; this branch does not conflict with it.PR #5's changed-file list at head0c3af52isAGENTS.md(+6/−4) andREADME.md` (+15/−8) — both files, as written.The S1 sentence is the one round 1 dictated, so it was checked rather than waved through: it was verified against the list it heads, above, before being credited.
Standards
Sources read at the head worktree:
AGENTS.md(§Secrets:22, §Toolchain:36/:41, §Decisions) andolympus/workshop'sdocs/adr/atorigin/main(16 records;git ls-tree origin/main docs/adr/counted them, and the local checkout carries the same 16 — no stale clone). ADR-0011 and ADR-0015 bind this change. Baseline smells were checked against the delta and none is chargeable: two identical comment lines in the two Stacks are this repo's per-Stack shape, not a new duplication.Zero findings. The delta is two comment lines; no secret, path or token enters it (§Secrets); no Target, workflow, ADR or branch-protection file is touched; ADR-0011 is satisfied by the plan below, not argued around; ADR-0015's "a deploy applies that declaration in place" is what both plans are.
tofu fmt -recursive -check -diffis rc 0 at the head, which also proves both edited files still parse.Spec
Spec source, in the order used: the ticket THE-65, fetched live this round (
GET /api/issues/THE-65→ 200, 14 656 bytes,status=in_progress); its Steps 1–4 and Done when; then this PR's body, re-read immediately before drafting (updated_at=2026-11-14T20:16:16Z, which is this round's own sign-on comment — the body text is byte-identical to the first fetch, so nothing re-opened).The delta maps to no criterion: it corrects a comment's count. Round 1's grading of the four steps stands, and nothing in the change is withdrawn by it.
Zero findings. Nothing the ticket asked for is missing at this head; nothing in the delta is unasked for.
Verified, and how
git ls-remote origin refs/pull/6/headat the wave's start and its end15b36932a141ca013ac3ad16b93f238100467323both timesgit merge-base --is-ancestor,git diff --stat, thengit diff -U0 … | grep -E '^[+-][^+-]' | grep -v '#'2 files changed, 2 insertions(+), 2 deletions(-); zero non-comment changed linesmise exec -- make checkat15b3693git archive 15b3693into a scratch tree (never the worktree),mise exec -- make checkoklines, 0FAIL:env-check: the pin and the map agree,env tests: all cases passed,service tests: …,plan-check tests: all cases passed.fmt-checkistofu fmt -recursive -check -diff, silent on success — rc 0 is its greenget_commit_statusesat15b3693, newest entry per contextpr-checks / checksuccess 24 s (run 30);plan / hermes-guest-plan-checksuccess 18 s andplan / paperclip-guest-plan-checksuccess 17 s (run 29)fetch-run-job-log.sh)Plan: 0 to add, 2 to change, 0 to destroy.thenplan-check: the plan destroys and replaces nothing.grep -nat the head worktree, andsha256sumagainstgit cat-file -p 15b3693:<path>hermes/guest/container.tf:99,paperclip/guest/container.tf:96; hashes equal in both filesCarried from round 1, not re-attempted
The live-instance claims —
/pools/prodmembership and the apply token's privileges, the two state objects' sizes and the 200/403 key boundary,pct configagainstvariables.tf, and the twosecret/services/paperclip/*paths answering 404 in the store — were not re-driven: no credential in this profile reaches the hypervisor or the stores, and the delta touches none of them. They remain the author's evidenced claims, as round 1 recorded them.Charter clause
The change sits inside the declaration of the two hosts the charter names tier-1 (
.135,.153), so the class is named rather than left implicit. The dispatch puts the hold outside the review state ("the change's class is never a reason to withhold an approval … post the review state the findings earned"), so this round posts the findings' state and applies that narrowing — said here so a human can overrule the reading instead of inheriting it.The board card carrying this class and cutover remains THE-103, read live this round (
GET /api/issues/THE-103→ 200, 12 022 bytes):status=in_review,reviewAttention.state=covered, the interaction path's responder slotBoardwithsince=2026-11-14T08:36:05Zand the monitor path'sZeuswithsince=2026-11-14T08:36:22Z— unmoved since round 1. No second card was opened for this PR, on round 1's reasoning: the same cutover is on the board there, and a duplicate would split the thread a later round has to cite. Merging remains the board's gate; the state here is the findings'. A later round has nothing to change on this review until that card moves.Named, not charged
Makefile:324:snapshot's refusal still says the Guest "has not been adopted (THE-65)". Untouched by this diff, pre-existing, and not this change's to fix.template_file_idignore narrows whatguest-plan-checkcan surface for that attribute — a changed declared image will not reappear as a conflict on an existing Guest. That is the trade-off the comment states (a template change is a rebuild, ADR-0011's Operator act), and round 1's probe showed a replacement still takes the declared image. Recorded so a later round does not rediscover it as a defect.Summary
15b3693; nothing new was introduced or exposed by the fix, and the plan, the checks andmake checkare green at the reviewed head.