The store Guest's journal is persistent by declaration (SL-35) #33

Merged
pit merged 1 commit from hermes/SL-35-the-store-guest-s-journal-is-persistent into main 2026-11-10 21:41:07 +00:00
Member

Implements SL-35

Summary

The silo role declares the journal persistent, right after its password gate and
before it installs anything:

 silo/service/roles/silo/
 ├── tasks/main.yml
+│   # 2. the journal
+│   - /etc/systemd/journald.conf.d            directory, root:root 0755
+│   - /etc/systemd/journald.conf.d/persistent.conf
+│                                             [Journal] Storage=persistent, 0644
 ├── handlers/main.yml
+│   - restart journald

journald's default, auto, keeps a disk journal only where /var/log/journal
happens to exist; Storage=persistent stores under /var/log/journal, "which is
created if needed" (man 5 journald.conf). 150 carries the directory today, so
this changes nothing there — it is the declaration a Guest rebuilt from this role
keeps, and what lets journalctl answer for the boot before the one being read
after a deploy that did not come back.

The same mechanism as infra-cockpit's semaphore/service/roles/journal on 143
and 145, declared inside this repo's one role rather than as a second one: this
repo has one host, and docs/architecture.md says "One role, silo, run against
the silo host".

docs/architecture.md gains the step — its service mapping is the page that goes
stale when the role gains one — and runbook 0001 §2 says where the drop-in lands,
why it lands before everything else, and what reads it.

Evidence

  • Before: the role ran nine tasks, the password assert then straight to apt.
  • After: eleven — ansible-playbook site.yml --list-tasks on the branch:
silo : the root password the service needs is present and safe to template
silo : the directory journald reads its drop-ins from
silo : keep the journal on disk
silo : refresh the apt cache before the first install
...
  • mise exec -- make check → CHECK_EXIT=0 (env-check, env-test, key-audit-test,
    key-mint-test, deploy-test, fmt-check, validate).
  • ansible-playbook site.yml --syntax-check → SYNTAX_EXIT=0.
  • notify: restart journald resolves to the handler of that name; parsed from the
    role's own tasks/main.yml and handlers/main.yml: unresolved notifies: [].

What this cannot show. Nothing here can prove a rebuilt Guest carries
/var/log/journal: that is make service-check, then make service (or
make prod) on 150, and both are the Operator's — they need
SILO_ROOT_PASSWORD, which make env refuses for an agent's class. This repo has
no rehearsal Guest by design. The mechanism is the one 143 and 145 already run.

Merge Danger

Door: two-way. A drop-in file and a directory; a revert restores the role, and
journald restarts rather than anything being replaced.

Blast Radius: one Guest. Nothing changes until the next make service or
make prod against 150, where it writes two files under /etc and restarts
systemd-journald — the journal keeps its contents across that restart.

Implements [SL-35](https://vikunja.thepit.space/tasks/344) ## Summary The `silo` role declares the journal persistent, right after its password gate and before it installs anything: ```diff silo/service/roles/silo/ ├── tasks/main.yml +│ # 2. the journal +│ - /etc/systemd/journald.conf.d directory, root:root 0755 +│ - /etc/systemd/journald.conf.d/persistent.conf +│ [Journal] Storage=persistent, 0644 ├── handlers/main.yml +│ - restart journald ``` journald's default, `auto`, keeps a disk journal only where `/var/log/journal` happens to exist; `Storage=persistent` stores under `/var/log/journal`, "which is created if needed" (`man 5 journald.conf`). 150 carries the directory today, so this changes nothing there — it is the declaration a Guest rebuilt from this role keeps, and what lets `journalctl` answer for the boot before the one being read after a deploy that did not come back. The same mechanism as `infra-cockpit`'s `semaphore/service/roles/journal` on 143 and 145, declared inside this repo's one role rather than as a second one: this repo has one host, and `docs/architecture.md` says "One role, `silo`, run against the `silo` host". `docs/architecture.md` gains the step — its service mapping is the page that goes stale when the role gains one — and runbook 0001 §2 says where the drop-in lands, why it lands before everything else, and what reads it. ## Evidence - **Before:** the role ran nine tasks, the password assert then straight to apt. - **After:** eleven — `ansible-playbook site.yml --list-tasks` on the branch: ```text silo : the root password the service needs is present and safe to template silo : the directory journald reads its drop-ins from silo : keep the journal on disk silo : refresh the apt cache before the first install ... ``` - `mise exec -- make check` → `CHECK_EXIT=0` (env-check, env-test, key-audit-test, key-mint-test, deploy-test, fmt-check, validate). - `ansible-playbook site.yml --syntax-check` → `SYNTAX_EXIT=0`. - `notify: restart journald` resolves to the handler of that name; parsed from the role's own `tasks/main.yml` and `handlers/main.yml`: `unresolved notifies: []`. **What this cannot show.** Nothing here can prove a rebuilt Guest carries `/var/log/journal`: that is `make service-check`, then `make service` (or `make prod`) on 150, and both are the Operator's — they need `SILO_ROOT_PASSWORD`, which `make env` refuses for an agent's class. This repo has no rehearsal Guest by design. The mechanism is the one 143 and 145 already run. ## Merge Danger **Door:** two-way. A drop-in file and a directory; a revert restores the role, and journald restarts rather than anything being replaced. **Blast Radius:** one Guest. Nothing changes until the next `make service` or `make prod` against 150, where it writes two files under `/etc` and restarts `systemd-journald` — the journal keeps its contents across that restart.
ticket-dispatch: declare the store Guest's journal persistent in the service role (SL-35)
All checks were successful
pr-checks / check (pull_request) Successful in 24s
b0fe4d670d
Member

Review started (round 1/5) on b0fe4d670d — reading the diff now.

**Review started** (round 1/5) on b0fe4d670da7c61b368e2b1111938f9fa17b5969 — reading the diff now.
bot-minos approved these changes 2026-11-10 21:15:30 +00:00
Dismissed
bot-minos left a comment

Review — repo olympus/infra-silo · PR #33 · head b0fe4d670da7c61b368e2b1111938f9fa17b5969 · round 1/5 (the thread carries no earlier review; the sign-on comment's 1/5 agrees) · verdict: merge (no blockers; two advisories)

Recommendation: merge

Spec source: SL-35, fetched live from Vikunja project 7 (task id 344, the one the body links). Its acceptance criteria: (1) a Guest rebuilt from this role carries /var/log/journal after its first deploy; (2) mise exec -- make check exits 0. Standards source: AGENTS.md, docs/agents/workflow.md, docs/index.md conventions; docs/adr/ (0001–0010) read, none bears on a journald drop-in; the org records in olympus/workshop bind nothing this change touches.

Spec

Criteria 1 and 2 are met on the path the ticket describes. The body's claims, reproduced at the head:

Claim Result
make check exits 0 reproduced: mise exec -- make check rc=0; CI pr-checks / check (pull_request) is success on this SHA
site.yml --syntax-check exits 0 reproduced, rc=0
role goes from nine tasks to eleven reproduced: --list-tasks at head lists 11; the base file holds nine
notify: restart journald resolves to a handler confirmed: handlers/main.yml:8 carries that exact name; the drop-in text is byte-for-byte the same mechanism as infra-cockpit's semaphore/service/roles/journal (read from origin/main)
"what this cannot show" (a rebuilt Guest) agreed and disclosed; I could not drive a Guest either (no rehearsal Guest by design, docs/agents/workflow.md)

ADVISORY 1 — the journald restart is deferred to the end of the play, so the docs' ordering is not what runs, and a failed first run is never repaired by its retry. silo/service/roles/silo/tasks/main.yml:47 (notify: restart journald) queues the handler; Ansible runs it after the last task. Two consequences:

  • docs/architecture.md:63-65 lists the restart as step 2 of an ordered list ("with systemd-journald restarted through the handler"), and docs/runbooks/0001-deploy-and-teardown.md:140-143 says the drop-in "lands before anything else the run does". The file does; the restart (which is what creates /var/log/journal) happens after step 8.
  • If a later task fails (the pinned .deb download, apt, the port wait) the queued handler is dropped, and on the retry the copy reports ok, so it notifies nothing: journald is not restarted and /var/log/journal stays absent until the Guest reboots. Driven in scratch with the role's copy+notify shape (cache/scratch/infra-silo-33-r1/handler-pb.yml): run 1 fails after the notify → persistent.conf written, no handler marker; run 2 succeeds with changed=0, still no handler marker. That is the "first deploy that did not come back" this change exists to make readable. It does not turn criterion 1 red on a clean first run, and a reboot repairs it, hence advisory.
  • Clearing change (one task, after the copy): - ansible.builtin.meta: flush_handlers. It makes the restart happen at step 2 as the docs say and survives a later failure. Or state the end-of-play timing in the two doc sentences. infra-cockpit's role has the same shape; that is context, not a reason.

Standards

ADVISORY 2 — new comments run against AGENTS.md §Code comments ("Keep comments to a minimum … When something genuinely needs more explanation than the code can carry, propose a docs page under docs/ instead of writing it as a comment"). silo/service/roles/silo/tasks/main.yml:23-26 (four lines) and :35-36 (two) carry the rationale that this same PR writes out in docs/architecture.md:63-68 and docs/runbooks/0001-deploy-and-teardown.md:140-146, so the explanation now lives in three places. :25-26 ("150 carries it today") is a point-in-time fact that goes stale the day 150 is rebuilt, which is the only moment it matters. I read the rule against the file's own practice (the base tasks/main.yml already carries four rationale comments of two to five lines each, at :6-8, :21-22, :42-43, :59-63), so this is not a blocker: the docs pages exist already, so the clearing change is to drop :23-26 and :35-36 and leave the banner and the task names.

Not a finding (checked): Duplicated Code against infra-cockpit's journal role is real (same two tasks, same handler) and the body states why a second role is not declared; the repo's documented shape ("One role, silo") overrides the smell baseline. No secret, no hostname or external IP in the diff (AGENTS.md §Privacy). Docs links and the glossary are untouched; the section-banner renumbering in tasks/main.yml is the matching churn of adding a section.

Named, not charged

  • The live Guest: whether /var/log/journal exists after make service on a rebuilt Guest, and that systemd-journald restarts cleanly in its LXC, could not be verified from here; both are the Operator's (docs/agents/workflow.md §3), as the body says. I could not run the role against a Guest; the handler path above was driven on a stand-in play, not on the role.
  • Comment block banners "1. the gate / 3. the package …" renumbered: a necessary consequence, not charged.

Summary

Axis Findings Worst
Spec 1 (ADVISORY) ADVISORY 1: the restart is queued to end of play; a failed first run is never repaired by its retry (tasks/main.yml:47)
Standards 1 (ADVISORY) ADVISORY 2: new comments restate the docs the same PR adds (tasks/main.yml:23-26, :35-36; AGENTS.md §Code comments)

Blockers: 0. Advisories: 2 — under the three that turn the recommendation, so the recommendation is merge, and both travel as advice.

<!-- minos review-loop: repo=olympus/infra-silo pr=33 head=b0fe4d670da7c61b368e2b1111938f9fa17b5969 round=1/5 axes=standards,spec --> **Review** — repo `olympus/infra-silo` · PR #33 · head `b0fe4d670da7c61b368e2b1111938f9fa17b5969` · round 1/5 (the thread carries no earlier review; the sign-on comment's 1/5 agrees) · verdict: **merge** (no blockers; two advisories) Recommendation: merge **Spec source:** SL-35, fetched live from Vikunja project 7 (task id 344, the one the body links). Its acceptance criteria: (1) a Guest rebuilt from this role carries `/var/log/journal` after its first deploy; (2) `mise exec -- make check` exits 0. **Standards source:** `AGENTS.md`, `docs/agents/workflow.md`, `docs/index.md` conventions; `docs/adr/` (0001–0010) read, none bears on a journald drop-in; the org records in `olympus/workshop` bind nothing this change touches. ## Spec Criteria 1 and 2 are met on the path the ticket describes. The body's claims, reproduced at the head: | Claim | Result | | --- | --- | | `make check` exits 0 | reproduced: `mise exec -- make check` rc=0; CI `pr-checks / check (pull_request)` is `success` on this SHA | | `site.yml --syntax-check` exits 0 | reproduced, rc=0 | | role goes from nine tasks to eleven | reproduced: `--list-tasks` at head lists 11; the base file holds nine | | `notify: restart journald` resolves to a handler | confirmed: `handlers/main.yml:8` carries that exact name; the drop-in text is byte-for-byte the same mechanism as `infra-cockpit`'s `semaphore/service/roles/journal` (read from `origin/main`) | | "what this cannot show" (a rebuilt Guest) | agreed and disclosed; I could not drive a Guest either (no rehearsal Guest by design, `docs/agents/workflow.md`) | **ADVISORY 1 — the journald restart is deferred to the end of the play, so the docs' ordering is not what runs, and a failed first run is never repaired by its retry.** `silo/service/roles/silo/tasks/main.yml:47` (`notify: restart journald`) queues the handler; Ansible runs it after the last task. Two consequences: - `docs/architecture.md:63-65` lists the restart as step 2 of an ordered list ("with `systemd-journald` restarted through the handler"), and `docs/runbooks/0001-deploy-and-teardown.md:140-143` says the drop-in "lands before anything else the run does". The file does; the restart (which is what creates `/var/log/journal`) happens after step 8. - If a later task fails (the pinned `.deb` download, `apt`, the port wait) the queued handler is dropped, and on the retry the `copy` reports `ok`, so it notifies nothing: journald is not restarted and `/var/log/journal` stays absent until the Guest reboots. Driven in scratch with the role's copy+notify shape (`cache/scratch/infra-silo-33-r1/handler-pb.yml`): run 1 fails after the notify → `persistent.conf` written, no handler marker; run 2 succeeds with `changed=0`, still no handler marker. That is the "first deploy that did not come back" this change exists to make readable. It does not turn criterion 1 red on a clean first run, and a reboot repairs it, hence advisory. - Clearing change (one task, after the `copy`): `- ansible.builtin.meta: flush_handlers`. It makes the restart happen at step 2 as the docs say and survives a later failure. Or state the end-of-play timing in the two doc sentences. `infra-cockpit`'s role has the same shape; that is context, not a reason. ## Standards **ADVISORY 2 — new comments run against `AGENTS.md` §Code comments** ("Keep comments to a minimum … When something genuinely needs more explanation than the code can carry, propose a docs page under `docs/` instead of writing it as a comment"). `silo/service/roles/silo/tasks/main.yml:23-26` (four lines) and `:35-36` (two) carry the rationale that this same PR writes out in `docs/architecture.md:63-68` and `docs/runbooks/0001-deploy-and-teardown.md:140-146`, so the explanation now lives in three places. `:25-26` ("150 carries it today") is a point-in-time fact that goes stale the day 150 is rebuilt, which is the only moment it matters. I read the rule against the file's own practice (the base `tasks/main.yml` already carries four rationale comments of two to five lines each, at `:6-8`, `:21-22`, `:42-43`, `:59-63`), so this is not a blocker: the docs pages exist already, so the clearing change is to drop `:23-26` and `:35-36` and leave the banner and the task names. **Not a finding (checked):** Duplicated Code against `infra-cockpit`'s journal role is real (same two tasks, same handler) and the body states why a second role is not declared; the repo's documented shape ("One role, `silo`") overrides the smell baseline. No secret, no hostname or external IP in the diff (`AGENTS.md` §Privacy). Docs links and the glossary are untouched; the section-banner renumbering in `tasks/main.yml` is the matching churn of adding a section. ## Named, not charged - The live Guest: whether `/var/log/journal` exists after `make service` on a rebuilt Guest, and that `systemd-journald` restarts cleanly in its LXC, could not be verified from here; both are the Operator's (`docs/agents/workflow.md` §3), as the body says. I could not run the role against a Guest; the handler path above was driven on a stand-in play, not on the role. - Comment block banners "1. the gate / 3. the package …" renumbered: a necessary consequence, not charged. ## Summary | Axis | Findings | Worst | | --- | --- | --- | | Spec | 1 (ADVISORY) | ADVISORY 1: the restart is queued to end of play; a failed first run is never repaired by its retry (`tasks/main.yml:47`) | | Standards | 1 (ADVISORY) | ADVISORY 2: new comments restate the docs the same PR adds (`tasks/main.yml:23-26`, `:35-36`; `AGENTS.md` §Code comments) | Blockers: 0. Advisories: 2 — under the three that turn the recommendation, so the recommendation is merge, and both travel as advice.
pit force-pushed hermes/SL-35-the-store-guest-s-journal-is-persistent from b0fe4d670d
All checks were successful
pr-checks / check (pull_request) Successful in 24s
to 394556cc0d
All checks were successful
pr-checks / check (pull_request) Successful in 29s
2026-11-10 21:31:35 +00:00
Compare
pit dismissed bot-minos's review 2026-11-10 21:31:35 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

Member

Review started (round 1/5) on 394556cc0d — reading the diff now.

**Review started** (round 1/5) on 394556cc0d534c60f1f77aea7ccc52fa5676c5c6 — reading the diff now.
bot-minos approved these changes 2026-11-10 21:36:02 +00:00
bot-minos left a comment

Review — repo olympus/infra-silo · PR #33 · head 394556cc0d534c60f1f77aea7ccc52fa5676c5c6 · round 2/5 in the thread's count (one earlier review sits on this PR, APPROVED at b0fe4d6; the sign-on comment's 1/5 is the dispatch's counter, and the branch has been rebased since) · verdict: merge (no blockers, two advisories)

Recommendation: merge

Fixed point. The head moved by rebase, not by a fix: git merge-base --is-ancestor b0fe4d6 394556c is false, and the branch is one commit on d69964a. git diff b0fe4d6 394556c is exactly d69964a's own change (7 files — README, ADR 0010, runbooks 0001/0003, the mint test, silo/store/), including the twenty-five → twenty-six line that commit rewrote; no branch edit was dropped in the rebase. There is therefore no fix delta to review; the whole head was reviewed, and both findings below were re-driven at it.

Spec source: SL-35, read live from Vikunja project 7 (task id 344). Acceptance criteria: (1) a Guest rebuilt from this role carries /var/log/journal after its first deploy; (2) mise exec -- make check exits 0.
Standards source: AGENTS.md §Code comments and §Privacy, docs/agents/workflow.md, docs/index.md; org records in olympus/workshop docs/adr at main (0002 protected main, 0009 deploy-on-merge, 0011 a deploy never destroys or replaces). None is breached.

Spec

Claim in the body Result
make check exits 0 reproduced at head: CHECK_RC=0
site.yml --syntax-check exits 0 reproduced: SYNTAX_RC=0
nine tasks → eleven reproduced: --list-tasks lists exactly 11 on the silo play
notify: restart journald resolves confirmed: notified ['restart journald', 'restart silo'], handlers ['restart silo', 'restart journald'], unresolved: []
the drop-in is [Journal] / Storage=persistent, 0644 confirmed by a --check --diff render of the shipped role: +[Journal] +Storage=persistent at /etc/systemd/journald.conf.d/persistent.conf
Storage=persistent creates /var/log/journal the mechanism is what the man page states: "persistent" stores "below the /var/log/journal hierarchy (which is created if needed) … "auto" behaves like "persistent" if the /var/log/journal directory exists" (man 5 journald.conf, Storage=)
CI green on this SHA confirmed: pr-checks / check (pull_request) success (29s) on 394556c

ADVISORY 1 — the restart is queued to the end of the play, so the ordering both doc pages state is not what runs, and a failed first deploy is never repaired by its retry. silo/service/roles/silo/tasks/main.yml:47 (notify: restart journald) against silo/service/roles/silo/handlers/main.yml:8-11: Ansible flushes handlers after the last task, so the restart that creates /var/log/journal happens after wait for the S3 API to answer (tasks/main.yml:114-118), not at step 2.

  • docs/architecture.md:63-65 puts the restart inside ordered step 2 ("with systemd-journald restarted through the handler"), and docs/runbooks/0001-deploy-and-teardown.md:140-143 says the declaration "lands before anything else the run does". The file does. The restart does not.
  • Driven twice at head. (a) The shipped role rendered on localhost under --check --diff (connection: local, become: false): the directory and the drop-in report changed with exactly the declared content, then the run stops at download the pinned package (Destination /var/cache/apt/archives is not writable) — a real failure after the notify, and the handler never appears in the log. (b) A scratch role carrying the same copy+notify shape, run as a red/green pair: run 1 fails after the notify → drop-in written, handler never ran; run 2 on the same destination succeeds with changed=0, because the file is already there, so nothing notifies and the handler still never runs. Inserting - ansible.builtin.meta: flush_handlers after the copy makes run 1 run the handler before the failing task (marker present), i.e. the retry path is repaired.
  • Grading: ADVISORY, not a blocker. A clean first deploy converges — the scratch role's clean run printed RUNNING HANDLER … marker before the play ends: True at the end of the play — so criterion 1 holds on the path the ticket describes; the gap is the failure path, and a reboot repairs it.
  • Clearing change, one task: - ansible.builtin.meta: flush_handlers straight after the copy. Or narrow the two doc sentences to say the restart happens at the end of the play. (infra-cockpit's semaphore/service/roles/journal has the same shape; that is context, not a reason.)

Standards

ADVISORY 2 — six new comment lines restate the documentation this same PR writes. AGENTS.md:37-41 §Code comments: "Keep comments to a minimum: code should be expressive enough to explain itself. When something genuinely needs more explanation than the code can carry, propose a docs page under docs/ instead of writing it as a comment." silo/service/roles/silo/tasks/main.yml:23-26 (four lines) and :35-36 (two) carry the same rationale now written out in docs/architecture.md:63-68 and docs/runbooks/0001-deploy-and-teardown.md:140-146, so the explanation lives in three places; :25 ("150 carries it today") is a point-in-time fact that goes stale on the rebuild it is meant to describe. Read against the file's own practice — at base d69964a the file carried 15 comment lines, four of them 2–5-line rationale blocks — so this is not a blocker. Clearing change: drop :23-26 and :35-36, keep the section banner and the task names.

Not a finding (checked): Duplicated Code against infra-cockpit's journal role is real (the same two tasks, the same handler, the same file content and modes), and the repo's documented shape overrides the smell baseline: docs/architecture.md:58 ("One role, silo, run against the silo host") and the ticket asks for the declaration inside it. No secret, no DDNS hostname and no external IP in the diff (AGENTS.md §Privacy). No relative link added; the section-banner renumbering is the matching churn of a new step.

Named, not charged

  • No test pins the role's new tasks, and make check never loads the role. That is the repo's documented shape — docs/agents/workflow.md:196: "No Suite … They test those four guards and nothing else" — and the body says it was left undone on purpose. A --list-tasks assertion over site.yml is the credential-free pin if the repo ever wants one.
  • The live half could not be verified. ssh -o BatchMode=yes root@10.12.0.150 'ls -d /var/log/journal' answers Permission denied (publickey,password), and make service/make service-check need SILO_ROOT_PASSWORD, which make env refuses for an Agent's class. So: whether a rebuilt Guest carries /var/log/journal, and whether systemd-journald restarts cleanly in its LXC, stay the Operator's read after a deploy.
  • The rebase's own files (README, ADR 0010, runbooks 0003, the mint test, silo/store/) are d69964a's, not this branch's; they are not judged here.

Summary

Axis Findings Worst
Spec 1 (ADVISORY) ADVISORY 1 — the restart lands at the end of the play, and a failed first run is not repaired by its retry (tasks/main.yml:47, handlers/main.yml:8-11)
Standards 1 (ADVISORY) ADVISORY 2 — new comments restate the docs the same PR adds (tasks/main.yml:23-26, :35-36; AGENTS.md:37-41)

Blockers: 0. Advisories: 2 — below the three that turn the recommendation, so the recommendation is merge and both travel as advice.

<!-- minos review-loop: repo=olympus/infra-silo pr=33 head=394556cc0d534c60f1f77aea7ccc52fa5676c5c6 round=2/5 axes=standards,spec --> **Review** — repo `olympus/infra-silo` · PR #33 · head `394556cc0d534c60f1f77aea7ccc52fa5676c5c6` · round 2/5 in the thread's count (one earlier review sits on this PR, APPROVED at `b0fe4d6`; the sign-on comment's `1/5` is the dispatch's counter, and the branch has been rebased since) · verdict: **merge** (no blockers, two advisories) Recommendation: merge **Fixed point.** The head moved by rebase, not by a fix: `git merge-base --is-ancestor b0fe4d6 394556c` is false, and the branch is one commit on `d69964a`. `git diff b0fe4d6 394556c` is exactly `d69964a`'s own change (7 files — README, ADR 0010, runbooks 0001/0003, the mint test, `silo/store/`), including the `twenty-five → twenty-six` line that commit rewrote; no branch edit was dropped in the rebase. There is therefore no fix delta to review; the whole head was reviewed, and both findings below were re-driven at it. **Spec source:** SL-35, read live from Vikunja project 7 (task id 344). Acceptance criteria: (1) a Guest rebuilt from this role carries `/var/log/journal` after its first deploy; (2) `mise exec -- make check` exits 0. **Standards source:** `AGENTS.md` §Code comments and §Privacy, `docs/agents/workflow.md`, `docs/index.md`; org records in `olympus/workshop` `docs/adr` at `main` (0002 protected `main`, 0009 deploy-on-merge, 0011 a deploy never destroys or replaces). None is breached. ## Spec | Claim in the body | Result | | --- | --- | | `make check` exits 0 | reproduced at head: `CHECK_RC=0` | | `site.yml --syntax-check` exits 0 | reproduced: `SYNTAX_RC=0` | | nine tasks → eleven | reproduced: `--list-tasks` lists exactly 11 on the `silo` play | | `notify: restart journald` resolves | confirmed: notified `['restart journald', 'restart silo']`, handlers `['restart silo', 'restart journald']`, `unresolved: []` | | the drop-in is `[Journal]` / `Storage=persistent`, 0644 | confirmed by a `--check --diff` render of the shipped role: `+[Journal] +Storage=persistent` at `/etc/systemd/journald.conf.d/persistent.conf` | | `Storage=persistent` creates `/var/log/journal` | the mechanism is what the man page states: `"persistent"` stores "below the `/var/log/journal` hierarchy (which is created if needed) … "auto" behaves like "persistent" if the `/var/log/journal` directory exists" (`man 5 journald.conf`, `Storage=`) | | CI green on this SHA | confirmed: `pr-checks / check (pull_request)` `success` (29s) on `394556c` | **ADVISORY 1 — the restart is queued to the end of the play, so the ordering both doc pages state is not what runs, and a failed first deploy is never repaired by its retry.** `silo/service/roles/silo/tasks/main.yml:47` (`notify: restart journald`) against `silo/service/roles/silo/handlers/main.yml:8-11`: Ansible flushes handlers after the last task, so the restart that creates `/var/log/journal` happens after `wait for the S3 API to answer` (`tasks/main.yml:114-118`), not at step 2. - `docs/architecture.md:63-65` puts the restart inside ordered step 2 ("with `systemd-journald` restarted through the handler"), and `docs/runbooks/0001-deploy-and-teardown.md:140-143` says the declaration "lands before anything else the run does". The file does. The restart does not. - Driven twice at head. (a) The shipped role rendered on localhost under `--check --diff` (`connection: local`, `become: false`): the directory and the drop-in report `changed` with exactly the declared content, then the run stops at `download the pinned package` (`Destination /var/cache/apt/archives is not writable`) — a real failure after the notify, and the handler never appears in the log. (b) A scratch role carrying the same copy+notify shape, run as a red/green pair: run 1 fails after the notify → drop-in written, handler never ran; run 2 on the same destination succeeds with `changed=0`, because the file is already there, so nothing notifies and the handler still never runs. Inserting `- ansible.builtin.meta: flush_handlers` after the `copy` makes run 1 run the handler before the failing task (marker present), i.e. the retry path is repaired. - Grading: ADVISORY, not a blocker. A clean first deploy converges — the scratch role's clean run printed `RUNNING HANDLER … marker before the play ends: True` at the end of the play — so criterion 1 holds on the path the ticket describes; the gap is the failure path, and a reboot repairs it. - Clearing change, one task: `- ansible.builtin.meta: flush_handlers` straight after the `copy`. Or narrow the two doc sentences to say the restart happens at the end of the play. (`infra-cockpit`'s `semaphore/service/roles/journal` has the same shape; that is context, not a reason.) ## Standards **ADVISORY 2 — six new comment lines restate the documentation this same PR writes.** `AGENTS.md:37-41` §Code comments: "Keep comments to a minimum: code should be expressive enough to explain itself. When something genuinely needs more explanation than the code can carry, propose a docs page under `docs/` instead of writing it as a comment." `silo/service/roles/silo/tasks/main.yml:23-26` (four lines) and `:35-36` (two) carry the same rationale now written out in `docs/architecture.md:63-68` and `docs/runbooks/0001-deploy-and-teardown.md:140-146`, so the explanation lives in three places; `:25` ("150 carries it today") is a point-in-time fact that goes stale on the rebuild it is meant to describe. Read against the file's own practice — at base `d69964a` the file carried 15 comment lines, four of them 2–5-line rationale blocks — so this is not a blocker. Clearing change: drop `:23-26` and `:35-36`, keep the section banner and the task names. **Not a finding (checked):** Duplicated Code against `infra-cockpit`'s journal role is real (the same two tasks, the same handler, the same file content and modes), and the repo's documented shape overrides the smell baseline: `docs/architecture.md:58` ("One role, `silo`, run against the `silo` host") and the ticket asks for the declaration inside it. No secret, no DDNS hostname and no external IP in the diff (`AGENTS.md` §Privacy). No relative link added; the section-banner renumbering is the matching churn of a new step. ## Named, not charged - **No test pins the role's new tasks**, and `make check` never loads the role. That is the repo's documented shape — `docs/agents/workflow.md:196`: "No Suite … They test those four guards and nothing else" — and the body says it was left undone on purpose. A `--list-tasks` assertion over `site.yml` is the credential-free pin if the repo ever wants one. - **The live half could not be verified.** `ssh -o BatchMode=yes root@10.12.0.150 'ls -d /var/log/journal'` answers `Permission denied (publickey,password)`, and `make service`/`make service-check` need `SILO_ROOT_PASSWORD`, which `make env` refuses for an Agent's class. So: whether a rebuilt Guest carries `/var/log/journal`, and whether `systemd-journald` restarts cleanly in its LXC, stay the Operator's read after a deploy. - **The rebase's own files** (README, ADR 0010, runbooks 0003, the mint test, `silo/store/`) are `d69964a`'s, not this branch's; they are not judged here. ## Summary | Axis | Findings | Worst | | --- | --- | --- | | Spec | 1 (ADVISORY) | ADVISORY 1 — the restart lands at the end of the play, and a failed first run is not repaired by its retry (`tasks/main.yml:47`, `handlers/main.yml:8-11`) | | Standards | 1 (ADVISORY) | ADVISORY 2 — new comments restate the docs the same PR adds (`tasks/main.yml:23-26`, `:35-36`; `AGENTS.md:37-41`) | Blockers: 0. Advisories: 2 — below the three that turn the recommendation, so the recommendation is merge and both travel as advice.
pit force-pushed hermes/SL-35-the-store-guest-s-journal-is-persistent from 394556cc0d
All checks were successful
pr-checks / check (pull_request) Successful in 29s
to f2c58688e4
All checks were successful
pr-checks / check (pull_request) Successful in 28s
2026-11-10 21:39:59 +00:00
Compare
pit merged commit 7f205442a9 into main 2026-11-10 21:41:07 +00:00
pit deleted branch hermes/SL-35-the-store-guest-s-journal-is-persistent 2026-11-10 21:41:07 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
olympus/infra-silo!33
No description provided.