The tracker's journal is persistent by declaration (TR-67) #48

Merged
pit merged 2 commits from hermes/TR-67-the-tracker-s-journal-is-persistent-by-d into main 2026-11-11 11:56:40 +00:00
Member

Implements TR-67

Summary

A journal role beside the Service's, applied first in the playbook, declares
journald's storage instead of leaving it to whatever the image shipped — the
shape infra-cockpit already carries on 143 and 145.

 vikunja/service/
 ├── roles/
-│   └── vikunja/
+│   ├── journal/                # new — the declaration
+│   │   ├── tasks/main.yml      # the drop-in, and the directory journald reads
+│   │   └── handlers/main.yml   # restart journald, only when it changed
+│   └── vikunja/
 ├── site.yml                    # roles: journal, vikunja
-└── verify.yml                  # Ring B — the install contract
+└── verify.yml                  # Ring B — + the journal's two claims

Two readings the ticket left to the change:

  • A role of its own, not tasks inside roles/vikunja. The ticket says "in the
    vikunja role … the way the cockpit's journal role does", and the cockpit's way
    is a journal role applied ahead of the Service's. Folding it in would have made
    the Guest's boot log the Service's property, which it is not.
  • What the Assert asserts. journalctl --disk-usage is the only route to
    journald that needs no privilege and no JSON, so the Assert reads it, and it
    reads the drop-in rather than only the directory: /var/log/journal existing is
    a property of the image, and the point of this change is that the answer stops
    depending on the image.

Evidence

mise exec -- make check, exit 0, on this head:

env-test: every assertion holds.
Success! The configuration is valid.      (guest)
Success! The configuration is valid.      (test/guest)
Success! The configuration is valid.      (edge)
pool.tftest.hcl... pass  run "the_test_guest_is_created_in_the_pre_pool"... pass
edge.tftest.hcl... pass  run "no_certificate_fails_the_plan"... pass
Success! 1 passed, 0 failed.  ×2

ansible-playbook --syntax-check on both plays against the prod Inventory:
playbook: site.yml, playbook: verify.yml, rc 0.

The assertions, run for real. The three expressions the new Assert rests on
were run in a throwaway play against this host's journald (systemd 257, Debian
13's major) and ansible-core 2.21.5 — ok=4 changed=0 failed=0:

case result
journalctl --disk-usage answers Archived and active journals take up 51.3M in the file system. passes rc == 0 and search('take up')
a drop-in carrying Storage=persistent on its own line passes search('(?m)^Storage=persistent$')
a drop-in carrying #Storage=persistent fails the same search — the anchored form is what stops a commented-out line passing
a drop-in carrying Storage=auto fails it too

Not verified here. The Suite. This host has no docker
(docker: command not found), so make test — the local leg that Converges a
container Target and runs this Assert — could not run, and make test-ci needs
the pre Proxmox token and a CI SSH key an agent identity does not hold. The
execute job on this pull request is the leg that proves it, on a Test Guest
created from this Stack. The container Target is debian:13-slim, which carries
no /var/log/journal of its own, so a green Suite is the stronger reading of
"rebuilt from this role" — the directory arrives from the drop-in.

Merge Danger

Door: two-way. A revert drops the role and the assertion; the directory and
the journal files stay where they are, because removing a drop-in deletes no
journal.

Blast Radius: the Service layer of one Guest

On the first Converge after the merge the drop-in is new, so the handler restarts
systemd-journald on 142 once. Nothing about where the logs land moves — the
Guest already carries /var/log/journal, so journald's auto already resolved to
persistent — and a restart loses no journal line already written. What changes is
that a rebuilt Guest keeps the boot before the one being read without depending on
what the image shipped.

Implements [TR-67](https://vikunja.thepit.space/tasks/353) ## Summary A `journal` role beside the Service's, applied first in the playbook, declares journald's storage instead of leaving it to whatever the image shipped — the shape `infra-cockpit` already carries on 143 and 145. ```diff vikunja/service/ ├── roles/ -│ └── vikunja/ +│ ├── journal/ # new — the declaration +│ │ ├── tasks/main.yml # the drop-in, and the directory journald reads +│ │ └── handlers/main.yml # restart journald, only when it changed +│ └── vikunja/ ├── site.yml # roles: journal, vikunja -└── verify.yml # Ring B — the install contract +└── verify.yml # Ring B — + the journal's two claims ``` Two readings the ticket left to the change: - **A role of its own, not tasks inside `roles/vikunja`.** The ticket says "in the `vikunja` role … the way the cockpit's journal role does", and the cockpit's way is a `journal` role applied ahead of the Service's. Folding it in would have made the Guest's boot log the Service's property, which it is not. - **What the Assert asserts.** `journalctl --disk-usage` is the only route to journald that needs no privilege and no JSON, so the Assert reads it, and it reads the drop-in rather than only the directory: `/var/log/journal` existing is a property of the image, and the point of this change is that the answer stops depending on the image. ## Evidence `mise exec -- make check`, exit 0, on this head: ``` env-test: every assertion holds. Success! The configuration is valid. (guest) Success! The configuration is valid. (test/guest) Success! The configuration is valid. (edge) pool.tftest.hcl... pass run "the_test_guest_is_created_in_the_pre_pool"... pass edge.tftest.hcl... pass run "no_certificate_fails_the_plan"... pass Success! 1 passed, 0 failed. ×2 ``` `ansible-playbook --syntax-check` on both plays against the prod Inventory: `playbook: site.yml`, `playbook: verify.yml`, rc 0. **The assertions, run for real.** The three expressions the new Assert rests on were run in a throwaway play against this host's journald (systemd 257, Debian 13's major) and `ansible-core 2.21.5` — `ok=4 changed=0 failed=0`: | case | result | | --- | --- | | `journalctl --disk-usage` answers `Archived and active journals take up 51.3M in the file system.` | passes `rc == 0` and `search('take up')` | | a drop-in carrying `Storage=persistent` on its own line | passes `search('(?m)^Storage=persistent$')` | | a drop-in carrying `#Storage=persistent` | **fails** the same search — the anchored form is what stops a commented-out line passing | | a drop-in carrying `Storage=auto` | fails it too | **Not verified here.** The Suite. This host has no docker (`docker: command not found`), so `make test` — the local leg that Converges a container Target and runs this Assert — could not run, and `make test-ci` needs the `pre` Proxmox token and a CI SSH key an agent identity does not hold. The `execute` job on this pull request is the leg that proves it, on a Test Guest created from this Stack. The container Target is `debian:13-slim`, which carries no `/var/log/journal` of its own, so a green Suite is the stronger reading of "rebuilt from this role" — the directory arrives from the drop-in. ## Merge Danger **Door:** two-way. A revert drops the role and the assertion; the directory and the journal files stay where they are, because removing a drop-in deletes no journal. **Blast Radius:** the Service layer of one Guest On the first Converge after the merge the drop-in is new, so the handler restarts `systemd-journald` on 142 once. Nothing about where the logs land moves — the Guest already carries `/var/log/journal`, so journald's `auto` already resolved to persistent — and a restart loses no journal line already written. What changes is that a rebuilt Guest keeps the boot before the one being read without depending on what the image shipped.
ticket-dispatch: the Guest's journal is persistent by declaration (TR-67)
All checks were successful
checks / static (pull_request) Successful in 10s
checks / edge (pull_request) Has been skipped
checks / guest (pull_request) Has been skipped
checks / execute (pull_request) Successful in 2m56s
55bab3495d
The Service writes to the journal, and on today's Guest the journal is on
disk only because the image happens to carry /var/log/journal: journald's
`auto` resolves to persistent exactly where that directory exists, so a
rebuilt Guest could lose the boot a later Converge is read against.

A `journal` role beside the Service's — the shape infra-cockpit carries on
143 and 145 — writes /etc/systemd/journald.conf.d/persistent.conf with
Storage=persistent, and restarts journald when the drop-in changes. The
Assert play reads the drop-in, stats the directory and asks journalctl for
its usage, so "rebuilt from this playbook" is what the Contract says rather
than what the image happened to ship.
Member

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

**Review started** (round 1/5) on 55bab3495d511f81a94b1d04fdec932fbef2059d — reading the diff now.
bot-minos approved these changes 2026-11-10 23:20:29 +00:00
bot-minos left a comment

olympus/infra-tracker#48 · head 55bab34 · review round 1/5 · verdict merge — 0 blockers, 1 advisory.

Recommendation: merge

What this change promises

TR-67 (Vikunja task 353, project 3, fetched live: task http=200, identifier TR-67, index 67) asks for a persistent journal declared by this repository — in the Service layer, the way infra-cockpit's journal role does on 143 and 145 — with two acceptance criteria: a Guest rebuilt from the role carries /var/log/journal and a journalctl --disk-usage answer after its first deploy, and mise exec -- make check exits 0.

Spec source: the ticket's own acceptance criteria. The PR body says Implements TR-67 and did not change between my first read and this post (updated_at moved only by my own sign-on comment).

Standards

ADVISORY — vikunja/service/verify.yml:115-117. The sentence splices two clauses with a where that reads as a relative pronoun: "…is named there, where the config slurp further down can rely on the file the role has just installed." The intended word is whereas — this slurp tolerates absence, the config slurp does not — but as written "the file the role has just installed" can be taken for the journal drop-in the assert above is about, which the config slurp never reads (verify.yml:168-171 reads /etc/vikunja/config.yml). Smallest fix: …is named there, whereas the config slurp further down may rely on its own file having been installed. — or cut the clause; the first half carries the reason.

No other standards finding. I read the repo's rules at head — AGENTS.md, GLOSSARY.md, docs/adr/0001–0005, .agents/skills/pr/SKILL.md, and the org records in olympus/workshop docs/adr pulled from the forge at main (0002 protected main, 0009 deploy through a merge, 0011 a deploy never destroys or replaces, 0012 the deploy key reads the record) — and:

  • the body carries ## Summary, ## Evidence, ## Merge Danger with Door and Blast Radius, as AGENTS.md §Pull requests and the pr skill require;
  • no added line carries a glossary _Avoid_ term (deploy, app, instance, snapshot: 0 occurrences in the diff's added lines), and the section uses Guest, Service, Converge, Assert as GLOSSARY.md defines them;
  • prose wraps as the page already does: the only added line past 80 characters is the pre-existing single-line boundary string (container/suite.sh:24), joined by a table row and YAML expressions, all matching shapes the base already carries (21 lines over 80 on docs/reference/service.md at e8f22ac too);
  • the role reproduces the cockpit's: handlers byte-identical, tasks differing only in the comment block and the Managed by line — so site.yml:2-8 and docs/reference/service.md:51-52 say exactly what the cockpit does.

Spec

No findings. Both criteria hold, and I reproduced the second by hand:

  • mise exec -- make check → exit 0 at 55bab34: 31 ok lines in the run (env-check's two beside env-test's 29), env-test: every assertion holds., tofu validate clean on all three Stacks, pool.tftest.hcl 1 passed, edge.tftest.hcl 1 passed. The body's "31 ok" is the count a full make check prints — I first counted env-test alone (29) and the full run reconciled it.
  • "A Guest rebuilt from this role carries /var/log/journal and a journalctl --disk-usage answer" — proved after the body was written, by CI: run #416 (execute, job 3) finished success in 2m56s on this same SHA, converged a Test Guest from this Stack, and logged both new asserts as All assertions passed — the journal is declared persistent and the journal is on disk, and journalctl answers for it. Converges 2 and 3 came back changed=0 with no handler. That closes the gap the body names as "Not verified here".

Scope: six files, every hunk mapping to the role, its place in site.yml, its Assert, the page that documents it, or the Suite's parity boundary. No scope creep, no requirement missing.

Verified, and how

Claim Probe Result
the role writes the drop-in copied the role to scratch, redirected the two paths, applied against localhost changed=2, file written with exactly # Managed by infra-tracker (vikunja/service/roles/journal). / [Journal] / Storage=persistent, mode 644
it is idempotent the same role run three times, and once under --check --diff runs 2 and 3 changed=0, no handler; check mode rc 0
the Assert's expression discriminates the that: list as written, driven against the generated file and four mutants real file passes; #Storage=persistent, Storage=auto, Storage= persistent, Storage=persistent-extra all fail; a register with no content fails and is named by the first assertion
journalctl --disk-usage says what the body quotes this host, systemd 257 Archived and active journals take up 51.3M in the file system. — verbatim; and on an empty journal root it still prints … take up 0B … with rc 0, so search('take up') does not depend on there being data
every journald sentence the change adds is true journald.conf(5) auto "behaves like persistent if the /var/log/journal directory exists, and volatile otherwise"; persistent stores "below the /var/log/journal hierarchy (which is created if needed)"; the size limits default to 10% "capped to 4G"
the cockpit comparison infra-cockpit at a fresh origin/main (e07323d) semaphore/service/roles/journal exists, applied first in both plays, hosts 143 and 145
both plays parse --syntax-check playbook: site.yml, playbook: verify.yml, rc 0; no duplicate task names, no register collisions

Every file in the diff is passed: container/suite.sh (boundary clause matches what verify.yml now asserts), docs/reference/service.md (Logs row and the new section, each journald claim checked against the man page), roles/journal/tasks/main.yml (driven), roles/journal/handlers/main.yml (identical to the cockpit's), vikunja/service/site.yml (role first, as the cockpit does), vikunja/service/verify.yml (asserts driven green and red).

Could not verify

  • The container leg. docker: command not found here, so make test — the only leg that would drive the parity boundary's new journal clause on debian:13-slim — did not run. CI's execute job is the Guest leg; the boundary sentence remains a claim about a leg neither I nor CI drove for this change.
  • Prod 142's /var/log/journal today (docs/reference/service.md:60). That is the ticket's statement, and 142 is not reachable from this session.
  • The first Converge on 142 after the merge, where the handler restarts systemd-journald once. That happens on a human's make service; the restart itself is exercised in CI on the Test Guest.

Named, not charged

  • The ticket handoff comment (Vikunja, not the PR) says the standards pass left "nine sites now read 'Converge'". The diff adds four occurrences of Converge, and the changed files carry zero deploy at either revision (repo-wide: 4 lines at e8f22ac, the same 4 at 55bab34, all outside this change). The number does not reproduce — but it is in the tracker comment, not in the change, so it is not charged; it just should not be quoted as this PR's evidence.
  • The ticket says "in the vikunja role"; the change makes a sibling journal role. The same sentence says "the way the cockpit's journal role does", and the cockpit's way is exactly that (verified above), so the reading stands and no criterion depends on where the declaration lives.
  • Pre-existing and untouched: the four surviving deploy occurrences (GLOSSARY.md:89 is the _Avoid_ line itself, bao/recipients/README.md:4,10, docs/agents/issue-tracker.md:123).

Closing

  • Standards: 1 finding, 0 blockers — worst: the verify.yml:115-117 comment splice (advisory, prose only).
  • Spec: 0 findings, 0 blockers — both acceptance criteria met, the first on CI evidence, the second re-run here.

The single advisory is advice: it does not move the verdict, and nothing in this review blocks the merge.

<!-- minos review-loop: repo=olympus/infra-tracker pr=48 head=55bab3495d511f81a94b1d04fdec932fbef2059d round=1/5 axes=standards,spec --> **olympus/infra-tracker#48** · head `55bab34` · review round **1/5** · verdict **merge** — 0 blockers, 1 advisory. Recommendation: merge ## What this change promises TR-67 (Vikunja task 353, project 3, fetched live: `task http=200`, `identifier TR-67`, `index 67`) asks for a persistent journal **declared by this repository** — in the Service layer, the way `infra-cockpit`'s journal role does on 143 and 145 — with two acceptance criteria: a Guest rebuilt from the role carries `/var/log/journal` and a `journalctl --disk-usage` answer after its first deploy, and `mise exec -- make check` exits 0. Spec source: the ticket's own acceptance criteria. The PR body says `Implements TR-67` and did not change between my first read and this post (`updated_at` moved only by my own sign-on comment). ## Standards **ADVISORY — `vikunja/service/verify.yml:115-117`.** The sentence splices two clauses with a `where` that reads as a relative pronoun: *"…is named there, where the config slurp further down can rely on the file the role has just installed."* The intended word is *whereas* — this slurp tolerates absence, the config slurp does not — but as written "the file the role has just installed" can be taken for the journal drop-in the assert above is about, which the config slurp never reads (`verify.yml:168-171` reads `/etc/vikunja/config.yml`). Smallest fix: `…is named there, whereas the config slurp further down may rely on its own file having been installed.` — or cut the clause; the first half carries the reason. No other standards finding. I read the repo's rules at head — `AGENTS.md`, `GLOSSARY.md`, `docs/adr/0001`–`0005`, `.agents/skills/pr/SKILL.md`, and the org records in `olympus/workshop` `docs/adr` pulled from the forge at `main` (0002 protected `main`, 0009 deploy through a merge, 0011 a deploy never destroys or replaces, 0012 the deploy key reads the record) — and: - the body carries `## Summary`, `## Evidence`, `## Merge Danger` with **Door** and **Blast Radius**, as `AGENTS.md` §Pull requests and the `pr` skill require; - no added line carries a glossary `_Avoid_` term (`deploy`, `app`, `instance`, `snapshot`: 0 occurrences in the diff's added lines), and the section uses **Guest**, **Service**, **Converge**, **Assert** as `GLOSSARY.md` defines them; - prose wraps as the page already does: the only added line past 80 characters is the pre-existing single-line `boundary` string (`container/suite.sh:24`), joined by a table row and YAML expressions, all matching shapes the base already carries (21 lines over 80 on `docs/reference/service.md` at `e8f22ac` too); - the role reproduces the cockpit's: handlers byte-identical, tasks differing only in the comment block and the `Managed by` line — so `site.yml:2-8` and `docs/reference/service.md:51-52` say exactly what the cockpit does. ## Spec No findings. Both criteria hold, and I reproduced the second by hand: - **`mise exec -- make check` → exit 0** at `55bab34`: 31 `ok` lines in the run (env-check's two beside env-test's 29), `env-test: every assertion holds.`, `tofu validate` clean on all three Stacks, `pool.tftest.hcl` 1 passed, `edge.tftest.hcl` 1 passed. The body's "31 ok" is the count a full `make check` prints — I first counted env-test alone (29) and the full run reconciled it. - **"A Guest rebuilt from this role carries `/var/log/journal` and a `journalctl --disk-usage` answer"** — proved after the body was written, by CI: run #416 (`execute`, job 3) finished **success** in 2m56s on this same SHA, converged a Test Guest from this Stack, and logged both new asserts as `All assertions passed` — `the journal is declared persistent` and `the journal is on disk, and journalctl answers for it`. Converges 2 and 3 came back `changed=0` with no handler. That closes the gap the body names as "Not verified here". Scope: six files, every hunk mapping to the role, its place in `site.yml`, its Assert, the page that documents it, or the Suite's parity boundary. No scope creep, no requirement missing. ## Verified, and how | Claim | Probe | Result | | --- | --- | --- | | the role writes the drop-in | copied the role to scratch, redirected the two paths, applied against `localhost` | `changed=2`, file written with exactly `# Managed by infra-tracker (vikunja/service/roles/journal).` / `[Journal]` / `Storage=persistent`, mode 644 | | it is idempotent | the same role run three times, and once under `--check --diff` | runs 2 and 3 `changed=0`, no handler; check mode rc 0 | | the Assert's expression discriminates | the `that:` list as written, driven against the generated file and four mutants | real file passes; `#Storage=persistent`, `Storage=auto`, `Storage= persistent`, `Storage=persistent-extra` all fail; a register with no `content` fails and is named by the first assertion | | `journalctl --disk-usage` says what the body quotes | this host, systemd 257 | `Archived and active journals take up 51.3M in the file system.` — verbatim; and on an empty journal root it still prints `… take up 0B …` with rc 0, so `search('take up')` does not depend on there being data | | every journald sentence the change adds is true | `journald.conf(5)` | `auto` "behaves like persistent if the /var/log/journal directory exists, and volatile otherwise"; `persistent` stores "below the /var/log/journal hierarchy (which is created if needed)"; the size limits default to 10% "capped to 4G" | | the cockpit comparison | `infra-cockpit` at a fresh `origin/main` (`e07323d`) | `semaphore/service/roles/journal` exists, applied first in both plays, hosts 143 and 145 | | both plays parse | `--syntax-check` | `playbook: site.yml`, `playbook: verify.yml`, rc 0; no duplicate task names, no register collisions | Every file in the diff is passed: `container/suite.sh` (boundary clause matches what `verify.yml` now asserts), `docs/reference/service.md` (Logs row and the new section, each journald claim checked against the man page), `roles/journal/tasks/main.yml` (driven), `roles/journal/handlers/main.yml` (identical to the cockpit's), `vikunja/service/site.yml` (role first, as the cockpit does), `vikunja/service/verify.yml` (asserts driven green and red). ## Could not verify - **The container leg.** `docker: command not found` here, so `make test` — the only leg that would drive the parity boundary's new journal clause on `debian:13-slim` — did not run. CI's `execute` job is the Guest leg; the boundary sentence remains a claim about a leg neither I nor CI drove for this change. - **Prod 142's `/var/log/journal` today** (`docs/reference/service.md:60`). That is the ticket's statement, and 142 is not reachable from this session. - **The first Converge on 142 after the merge**, where the handler restarts `systemd-journald` once. That happens on a human's `make service`; the restart itself is exercised in CI on the Test Guest. ## Named, not charged - The **ticket handoff comment** (Vikunja, not the PR) says the standards pass left "nine sites now read 'Converge'". The diff adds **four** occurrences of `Converge`, and the changed files carry **zero** `deploy` at either revision (repo-wide: 4 lines at `e8f22ac`, the same 4 at `55bab34`, all outside this change). The number does not reproduce — but it is in the tracker comment, not in the change, so it is not charged; it just should not be quoted as this PR's evidence. - The ticket says "in the `vikunja` role"; the change makes a **sibling** `journal` role. The same sentence says "the way the cockpit's journal role does", and the cockpit's way is exactly that (verified above), so the reading stands and no criterion depends on where the declaration lives. - Pre-existing and untouched: the four surviving `deploy` occurrences (`GLOSSARY.md:89` is the `_Avoid_` line itself, `bao/recipients/README.md:4,10`, `docs/agents/issue-tracker.md:123`). ## Closing - **Standards:** 1 finding, 0 blockers — worst: the `verify.yml:115-117` comment splice (advisory, prose only). - **Spec:** 0 findings, 0 blockers — both acceptance criteria met, the first on CI evidence, the second re-run here. The single advisory is advice: it does not move the verdict, and nothing in this review blocks the merge.
Merge branch 'main' into hermes/TR-67-the-tracker-s-journal-is-persistent-by-d
All checks were successful
checks / static (pull_request) Successful in 10s
checks / edge (pull_request) Has been skipped
checks / guest (pull_request) Has been skipped
checks / execute (pull_request) Successful in 2m59s
dcafdf784b
pit merged commit f0ca352510 into main 2026-11-11 11:56:40 +00:00
pit deleted branch hermes/TR-67-the-tracker-s-journal-is-persistent-by-d 2026-11-11 11:56:40 +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-tracker!48
No description provided.