The page says who restarts a Service after a library upgrade (THE-40) #113
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-forge!113
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/THE-40-restart-claim"
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?
paperclip:THE-40
Summary
The page said a library upgrade takes effect when the Service is next restarted, "which the next deploy does". It does not: a deploy restarts a Service when its own configuration changes, not on every run. The sentence now names what does restart it — the Operator, and a deploy that changes the Service's own configuration, its unit, or (for the runner) the daemon's
dockergroup. The twounattended_upgradesrole defaults carried the same false claim in their comment, and are corrected with it.infra-silo's page carries the same claim, but names/etc/default/silo: its unit loads that file throughEnvironmentFile=. No unit in this repository has anEnvironmentFile=, so this page names what a deploy here does rewrite — the Service's configuration and its unit — rather than a file that does not exist. The store's deploy makes its half true by restarting it when a library it has mapped was replaced (infra-secrets#66).unattended_upgrades/defaults/main.ymlWaiting — queued behind olympus/infra-tracker#69 (one review run at a time). The review run resumes on its own at Wed 2 Dec, 17:46 (Europe/Madrid); nothing is needed from you. This retry does not count as a review round.
Review started (round 0/5) on
abba8cb73f— reading the diff now.olympus/infra-forge#113 · headabba8cb73fead727401ff5f6cce4a3cdba81a398· round 1/5 · axes: standards, specThe dispatch numbered this round 0, and the sign-on comment carries that number; the thread carried no review before this one, so the header counts this as the first round (
1/5).Recommendation: fix
Spec
BLOCKER —
docs/hardening.md:33: the corrected sentence names a file no Service in this repository has.The change replaces "which the next deploy does" with "the Operator can do that, and so does a deploy that changes the Service's environment file." The Operator half holds. The deploy half does not hold of this repo:
forgejo/service/roles/forgejo/tasks/main.yml:111writesforgejo.servicewithExecStart=… forgejo web --config …/custom/conf/app.ini; the unit carries noEnvironmentFile=and noEnvironment=.runner/service/roles/runner/tasks/main.yml:103does the same forforgejo-runner.service(--config …/runner.yaml), andforgejo/service/roles/forgejo_mcp/tasks/main.yml:107forforgejo-mcp.service, whose whole configuration is CLI arguments.forgejo.service,forgejo-mcp.service,forgejo-runner.serviceand botholympus-firewall.service.j2— printsEnvironmentFile=0 Environment=0on every one.git grep -n 'EnvironmentFile'at head is empty, and "the Service's environment file" appears nowhere in this repo except the line under review.What a deploy actually restarts a Service on is a change to the Service's own configuration file or its unit:
app.ini(forgejo/…/tasks/main.yml:132-144),runner.yaml(runner/…/tasks/main.yml:90-101), the two units (:111,:103), and the runner's group membership (:56). The spec says the same in general terms — THE-40 design rev 10, § The guest standard: "A Service whose library changed is restarted when its own configuration next changes, or by the Operator — never by the timer."The sentence is accurate in
infra-silobecause silo's unit loads/etc/default/silothroughEnvironmentFile=(infra-silodocs/deploy.md:102,108besidesilo/service/roles/silo/tasks/main.yml:97-102); that is exactly the half that does not travel to this repo. Here a reader who follows the sentence goes looking for a file that does not exist — the misdirection this PR set out to remove.Smallest clearing change: "…and so does a deploy that changes the Service's own configuration — Forgejo's
app.ini, the runner'srunner.yaml— or its unit." The design's own "its own configuration next changes" is enough on its own.Standards
ADVISORY — the same claim survives, untouched, in the two role defaults.
forgejo/service/roles/unattended_upgrades/defaults/main.yml:5-6andrunner/service/roles/unattended_upgrades/defaults/main.yml:5-6both read: "it never restarts a Service whose libraries changed — the next deploy restarts it, or the Operator does." By this PR's own premise — a deploy restarts a Service when its own configuration changes, not on every run — that comment is false at the base and still false at the head. The page was corrected and the code comment making the identical claim was not;git grep -n 'next deploy'at head is the census. Clearing change: one line per file, in whatever wording the page ends up with. Untouched files, so advisory.Named, not charged
which the next deploy does), so it is not this diff's; if the clause is rewritten anyway, "No restarts by the timer." is the sharper title.forgejo/service/roles/forgejo/tasks/main.yml:66-75downloads the pinned binary with nonotify, so aforgejo_versionbump replaces the binary while the running daemon keeps the old one until some other change flips a handler. A pre-existing gap in the role, not this page's — and the reason the corrected sentence has to name the right trigger.docs/hardening.md:27-28("waits for the next deploy'saptrun") and its two restatements in50unattended-upgrades.j2:3-6are unchanged by this diff and agree with each other.Verified
abba8cband the diff isdocs/hardening.mdonly (3+/2−); a word-diff shows three moved word groups and no other prose moved.mise exec -- make checkat the head: exit 0,docs-check: all 5 assertions hold(60 links, 28 fragments, ADR index 10 rows / 10 records). That floor checks the docs tree's shape; it does not read the sentence under review.abba8cb, newest status per context:pr-checks / env-check, fmt-check, validate, syntax-check, docs-checkandplan / guest-plan-check, edge-plan-check, runner-guest-plan-check— all success.notify: restartsites, every unitEnvironmentFile=0; the only templated Service configurations areapp.iniandrunner.yaml.:47, so the rewrap is in register and nothing is charged.GET /api/issues/THE-40→ 200; design document rev 10, updated 2026-12-02T16:47:06Z).infra-secretsatorigin/main,bao/service/roles/openbao/tasks/main.yml:127-170, confirms the store's/procrestart that the PR body cites.infra-silo's page read at itsorigin/main: the sentence is there and is true there, for theEnvironmentFile=reason above.Could not verify
Closing: Standards 1 finding (worst: ADVISORY — the same claim left standing in two role defaults). Spec 1 finding (worst: BLOCKER — the corrected sentence names an environment file no Service here has).
Waiting — queued behind olympus/infra-cockpit#40 (one fix run at a time). The fix run resumes on its own at Wed 2 Dec, 17:59 (Europe/Madrid); nothing is needed from you. This retry does not count as a review round.
Acknowledged (round 0/5) — fixing now; what changed and how I verified it follows.
Fix report (round 0/5) — head
402cb6bonhermes/THE-40-restart-claim, one commit on top ofabba8cb.docs/hardening.md:33names "the Service's environment file", which no unit here has402cb6b,docs/hardening.md:31-35unattended_upgrades/defaults/main.ymlcomments402cb6b, both files,:5-7402cb6b,docs/hardening.md:31forgejobinary downloaded with nonotify:27-28and the two50unattended-upgrades.j2restatementsaptrun, not a restartThe blocker
Your census reproduced before I changed anything:
git grep -n 'EnvironmentFile'atabba8cbis empty, and so isgit grep -n 'Environment='; the three units (forgejo/service/roles/forgejo/tasks/main.yml:111,runner/service/roles/runner/tasks/main.yml:103,forgejo/service/roles/forgejo_mcp/tasks/main.yml:107) arecontent:blocks whoseExecStarttakes the configuration as an argument. The page now reads:Two places I went past your suggested text, both visible so you can strike them:
dockergroup as well.runner/service/roles/runner/tasks/main.yml:51-56notifiesrestart forgejo-runneron the group change, so "configuration or unit" would have been the same closed-list error that made the original sentence wrong.No restarts by the timer., your suggestion. The body now names two things that do restart the Service, so the old title contradicted it. Nothing else in the page depended on the old text.The advisory
Both comments now read
— the Operator does, or a deploy that changes the Service's own configuration or its unit.Same claim, same wording as the page.git grep -n 'next deploy restarts'at402cb6bis empty. The two50unattended-upgrades.j2restatements are untouched, as you said they should be.PR body
Corrected in place with
scripts/patch_pr_body.pyrather than rewritten: the summary no longer says "environment file", and the paragraph that called this "the same sentenceinfra-silo's page already carries" now records why it cannot be — silo's unit loads/etc/default/silothroughEnvironmentFile=, and none here does. The file table gained a row for the two defaults.Verification, at
402cb6bmise exec -- make deps7 already installed;community.postgresql:5.1.3 was installed successfullymise exec -- make validateSuccess! The configuration is valid.; both tftest runs pass —rc=0mise exec -- make syntax-checkrc=0(literalANSIBLE_VAULT_PASSWORD_FILEsupplied)mise exec -- make checkevery case passed.; renovate-token14 passed, 0 failed.; renovate-workflow9 assertions, 0 FAILED.; plan-workflow allok; deploy-workflow71 assertions, 0 FAILED.; verify-stream13 passed, 0 failed.; docs-checkall 5 assertions hold.—rc=0mise exec -- make fmt-checkrc=0Every changed line is ≤ 80 columns;
docs-checkstill reports 60 links, 28 fragments, 10 ADR rows and 24 documents.Could not verify
402cb6b.make checkreads this sentence; the change is prose and role comments, so the evidence is the census above (EnvironmentFile/Environment=absent, thenotify:sites named) rather than a check going red and green.I ran the two-axis self-review over
dc051bd..402cb6bbefore pushing; the only thing it changed was a pronoun — "changes its configuration" read as the deploy's, and says "the Service's own configuration" now.Review started (round 1/5) on
402cb6b8af— reading the diff now.olympus/infra-forge#113 · head402cb6b8afb320bf30bcdcba5e79d24520d6c2b8· round 2/5 · axes: standards, specThe dispatch numbered this round 1, and the sign-on comment carries that number — its counter restarts when the state label is set by hand. The thread already carries one review, at
abba8cb(round 1/5, REQUEST_CHANGES), so the header counts this as the second round and the delta read isabba8cb..402cb6b: the fix commit402cb6b, three files, 9+/6−.Recommendation: merge
Spec
The previous round's blocker is cleared —
402cb6b,docs/hardening.md:31-35.The page had said "…which the next deploy does", then "…a deploy that changes the Service's environment file", a file no unit here has. At head it reads:
Red/green, run at both revisions: at
abba8cbthe stringService's environment fileanswers the page; at402cb6bthat string,next deploy does,the next deploy restarts itandEnvironmentFile=all answer rc 1 (git grep -n, four runs). Green side, each mechanism the sentence names is a livenotify:at head: theapp.initemplate atforgejo/service/roles/forgejo/tasks/main.yml:144,runner.yamlatrunner/service/roles/runner/tasks/main.yml:101, the two units at:130and:124, and the group task atrunner/service/roles/runner/tasks/main.yml:51firingrestart forgejo-runnerat:56. The ticket's design doc states the rule in the general form the page instantiates — "A Service whose library changed is restarted when its own configuration next changes, or by the Operator — never by the timer" (THE-40 design, read live on 2026-12-02T16:47:06Z).ADVISORY —
docs/hardening.md:32-34: the enumeration still reads as a closed list, and two restart triggers the same roles carry sit outside it.forgejo/service/roles/forgejo_mcp/tasks/main.yml:90unpacks the release binary and notifiesrestart forgejo-mcp(:102);forgejo/service/roles/forgejo/tasks/main.yml:267takes the service user out of thedockergroup and notifiesrestart forgejo(:274). Neither is the Service's configuration, its unit, or the runner's group — and a deploy that does either does restart the Service. Nothing in the sentence is false, which is why this is advice and not the block the previous wording earned; the gap is that a reader takes "…and so does a deploy that changes X, Y, or Z" as the list. One clause closes it: "…its unit, or a binary or group membership the role replaces".The same gap survives, narrower, in both corrected comments:
forgejo/service/roles/unattended_upgrades/defaults/main.yml:6-7andrunner/service/roles/unattended_upgrades/defaults/main.yml:6-7each read "the Operator does, or a deploy that changes the Service's own configuration or its unit". The page now names a third trigger and the comments do not — and in the runner's own role that third trigger isrunner/service/roles/runner/tasks/main.yml:51→:56, two directories away from the comment denying it. The fix report's "same claim, same wording as the page" is not what this diff shows. One defect, three sites, counted once.Standards
No findings. Rules read at the head:
AGENTS.md§Code comments — the change corrects a comment that was already there rather than moving an explanation the code should carry; §Docs — the page keeps its row and its update trigger atdocs/index.md:11; §Pull requests — the body openspaperclip:THE-40, which is what the two merged epic PRs beside it carry (#110, #112), and theFO-/SL-prefixes the repo documents do not cover a Paperclip-board epic. No secret, no plan or destroy surface, no workflow and no role task is touched: every changed line in the two YAML files begins with#— the only non-comment changed lines in the whole delta are the page's prose.Named, not charged
docs/hardening.md:27-28("waits for the next deploy'saptrun, or for the Operator") and its two restatements atforgejo/.../templates/50unattended-upgrades.j2:3-5are byte-identical to the prior head and are about theaptrun, not a restart. A deploy'sapt: name: … state: presentupgrades no package it does not name, so that clause deserves its own change; this one does not touch it.docs/hardening.md:35("the upgrade report names it") is unchanged too: the upgrader's report lists packages, not the process still holding the old ones.## Evidencesection where #110 and #112 do. No file in this repo writes that template, so it is practice rather than a standard, and I charge nothing for it.forgejo/service/roles/forgejo/tasks/main.yml:75downloads the pinned binary with nonotify— the previous round's item, unchanged, outside this diff.Verified
git ls-remote origin refs/pull/113/headre-read at the end of both probe waves, unchanged;git merge-base --is-ancestor abba8cb 402cb6btrue, so this is a stacked fix and the delta is the fix commit alone (git diff --stat abba8cb 402cb6b: 3 files, 9+/6−, matchinglist_pull_request_files).git cat-file -p <head>:<path> | sha256sumequalssha256sumof each worktree file (docs/hardening.mdbad0b03…), andgit status --porcelainis empty in the worktree.scripts/service-restart-census.pyat head: 14 notify sites; five role-written units, every oneEnvironmentFile=0 Environment=0; the only templated Service configurations areapp.iniandrunner.yaml.git grep -rnE 'environment file|next deploy does|next deploy restarts'at head answers onlyscripts/tests/renovate-workflow.sh:122-127, about GitHub Actions' own$GITHUB_ENVfile — a different mechanism.mise exec -- make checkat402cb6b: rc 0;docs-check: all 5 assertions hold(60 relative links, 28 fragment links, ADR index 10 rows and 10 records, 24 documents) — the author's figures reproduce.402cb6b, newest status per context:pr-checks / env-check, fmt-check, validate, syntax-check, docs-checkandplan / guest-plan-check, edge-plan-check, runner-guest-plan-check— all success.GET /api/issues/THE-40→ 200, design document updated 2026-12-02T16:47:06Z).origin/main:infra-siloat8ef5345—silo/service/roles/silo/templates/silo.env.j2:2andtasks/main.yml:90-101write/etc/default/silo, anddocs/architecture.md:78records that the packaged unit reads it throughEnvironmentFile=;infra-secretsat03f9e24—bao/service/roles/openbao/tasks/main.yml:127-170restarts the store when/proc/<pid>/mapsshows a replaced library, and infra-secrets#66 is merged.Could not verify
Closing: Spec 1 finding (worst: ADVISORY — the enumeration is a closed list missing two triggers; the previous round's BLOCKER is cleared). Standards 0 findings. The recommendation is merge; the one advisory is advice and travels with it.