The forge's journals are persistent by declaration (FO-65) #91
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!91
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/FO-65-the-forge-s-journals-are-persistent-by-d"
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-65
Summary
The journald persistence is declared in the two service trees whose Guests the deploy will change, as
infra-cockpitdeclares it for the Semaphore pair:Each role writes one file, and restarts journald only when it changed:
persistentis what creates/var/log/journal; both Guests carry it today, sothis changes nothing on them and holds a Guest rebuilt from the role to the same
state. journald's default,
auto, would otherwise write to disk only where thatdirectory happens to survive the image.
One copy per tree rather than one shared role:
forgejo/service/andrunner/service/are separate playbooks with their own inventories,ansible.cfgand Targets, and neither has ever read the other's
roles/. A shared role wouldput one tree's playbook on the other tree's directory.
Evidence
/var/log/journalorjournald(grep -rn journald docs forgejo runner→ nothing); a rebuild kept persistent storage only by what the image shipped.mise exec -- make syntax-checkexits 0 — both playbooks parse with the new role resolved in each./etc/systemd/journald.conf.d, both trees,failed=0and the diff the copy task would write:mise exec -- make checkexits 0 —env-check(pin and map agree) anddocs-check(5 assertions hold).~/.secrets/proxmox/pre.age, somake preis unavailable and the first-deploy half of the acceptance criterion is unproven here. It is exercised by the first deploy after the merge.Merge Danger
Door: two-way — a role that writes one drop-in and restarts journald; nothing is destroyed, and reverting leaves that file behind on each Guest until a follow-up removes it.
Blast Radius: the two Guests' journald configuration — 141 and 146, the next time each service layer runs.
Review started (round 1/5) on
d7bba65fc4— reading the diff now.repo: olympus/infra-forge | pr: 91 | head:
d7bba65fc4| round: 1/5 | verdict: APPROVERound 1/5 — the thread carried no review before this one, so the thread's count and the dispatch's agree.
Recommendation: merge
0 BLOCKER, 2 counted ADVISORY. The recommendation does not turn on the count: both are advice, and neither is dressed up as a defect.
Spec source. FO-65 — project
4(infra-forge), index 65, global id 321 — read live from the tracker this round. The tracker's MCP tools are not mounted in this session; the read went throughfetch-vikunja-task-by-id.sh 321, which is why it worked where a barecurlat/api/v1/tasks/321answered401. The ticket's own text is the contract below.Standards
ADVISORY — the first acceptance criterion is declared, not exercised.
forgejo/service/roles/journal/handlers/main.yml:1-5,runner/service/roles/journal/handlers/main.yml:1-5docs/agents/workflow.md§The completion bar asks that "Every acceptance criterion or user story in the issue has been exercised on PRE, each reported pass/fail with the command that produced it", and §2 asks for a PRE rehearsal at all. FO-65's criterion 1 is "A Guest rebuilt from these roles carries/var/log/journalafter its first deploy". The PR states plainly that it was not rehearsed (no ~/.secrets/proxmox/pre.age, somake preis unavailable to the author).workflow.md:39-41sanctions exactly that hand-off — "say so in the PR and let the Operator run the Targets that need it" — which is why this is advice and not a block. What it needs is one command the Operator owns, run before or after the merge:ADVISORY — the runner Guest is documented at half the depth the forge Guest is.
docs/architecture.md:55-69vsdocs/architecture.md:93-97The forge section gained the journal paragraph (93-97): the drop-in's path,
Storage=persistent, why a rebuild needs it. §"The runner's Guest" still says only "The daemon is the only Service on it", while the identical declaration now lands on 146. The at-a-glance block (150-152) does name the role in both trees, so no page is stale — a reader of the runner section just does not learn the change. One clause, e.g. after line 63.Checked and not charged
AGENTS.md§Code comments ("keep comments to a minimum … propose a docs page underdocs/instead"). The role's 7 lines of rationale would fail a literal reading. But the repo's own practice is the reading:forgejo/service/roles/forgejo/tasks/main.ymlspends 121 of its 479 lines on why-not-what comments, andrunner/service/roles/runner/tasks/main.ymlopens with a five-line rationale. The rule is house practice read as no narration, and the new file matches its neighbours. Not a finding.Managed bypath.forgejo/service/ansible.cfgsets noroles_path, and neither tree has ever read the other'sroles/, so a shared role means inventing a shared path for 30 lines of stable drop-in — andinfra-cockpit'ssemaphore/service/roles/journal/(the shape FO-65 names as the precedent) has it once per tree too. Not a finding.Spec
forgejorole on 141 and for the runner's role on 146, as the cockpit's journal role does."forgejo/service/site.yml:5,runner/service/site.yml:5putjournalfirst in each play; the role is the cockpit's, per-tree./var/log/journal. This records the intent and survives a rebuild."/var/log/journalafter its first deploy."mise exec -- make checkexits 0."No scope creep. The only change the ticket did not ask for is the documentation edit, and that is the repo's own rule (
docs/index.md§Architecture, "update when the topology changes"), not the author's initiative. The three-role count in the prose matchesforgejo/service/site.yml, which now runsjournal,forgejoin one play andforgejo_mcpin the next.Verified
Worktree at
d7bba65off19e3563(=origin/main, the merge-base); one commit in the range.mise exec -- make checkenv-check: pin matchesinfra-secrets@137870c…,env.map19 names all declared;docs-check: all 5 assertions (50 relative links, 20 fragments, 9 ADR rows, section indexes, 21 documents in the wiki manifest);fmt-checkclean.mise exec -- make syntax-checkansible-galaxy collection install -r requirements.yml, which is whatmake depsdoes; without it the pre-existingforgejorole fails to resolvecommunity.postgresql.postgresql_user, exactly as the author's hand-off notes.journalrole,--check --diff, against a host with no/etc/systemd/journald.conf.dlocalhost : ok=3 changed=3 failed=0; the rendered diff is exactly# Managed by infra-forge (forgejo/service/roles/journal)./[Journal]/Storage=persistent, andRUNNING HANDLER … restart journaldfires. The PR's evidence reproduces byte-for-byte.changed=2plus the handler; run 2ok=2 changed=0, no handler — idempotent, so the restart is notified on change only and the runbook's "a second run reports0 changed" still holds.man journald.confat the head review hostpersistent: "stored preferably on disk, i.e. below the/var/log/journalhierarchy (which is created if needed)";auto: "behaves likepersistentif the/var/log/journaldirectory exists, andvolatileotherwise";SystemMaxUse: "defaults to 10% … capped to 4G". Every claim in the role's comments is true.git grepat19e3563forjournaldand/var/log/journaldiffof the two role copiesManaged bypath, each naming its own tree.d7bba65env-check,fmt-check,validate,syntax-check,docs-check,guest-plan-check,edge-plan-check.Files, all accounted for and passed:
docs/architecture.md,forgejo/service/roles/journal/{tasks,handlers}/main.yml,forgejo/service/site.yml,runner/service/roles/journal/{tasks,handlers}/main.yml,runner/service/site.yml.Not verified, and why
--check, whereansible.builtin.systemdreports without restarting; restarting the journal of the host this review runs on is not mine to do. This is the first advisory, and the reason the merge carries a leftover action for the Operator rather than a clean bill./var/log/journaltoday" — the ticket asserts it as well; no credential reached either Guest from here. If it were false the change still holds, sincepersistentcreates the directory, which is its point.pre.agein this profile, somake preis unavailable to the reviewer too;make preandjournalctl --list-bootson PRE are the Operator's.Summary
Standards: 2 findings, both ADVISORY; the worst is that FO-65's criterion 1 has never run against a live systemd host, which the PR discloses and one
make presettles. Spec: 0 blocking findings, 1 partial that is the same unexercised criterion, counted once — so nothing to name as a separate worst. Merge.