docs: postmortems — the guide, the template, and the n8n disk-full report #40
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/workshop!40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/postmortems"
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?
No ticket carries this change. The Operator asked for it directly: a postmortem guide adapted from Atlassian's template, and the first report written with it.
Summary
The guide maps Atlassian's postmortem process onto the tools this homelab has. The first report covers the n8n outage of 5 November.
docs/postmortems/<date>-<slug>.md, copied fromtemplate.mdChoices in here that are yours to accept or overrule:
Evidence
Every figure in the report was read during the incident or while drafting it. Here is where each one comes from:
/root/.npm1.3 GBdf -h /,ls,duon the Guestfreelist_count0, soVACUUMwould reclaim nothingrelated_tasks4,836 KB of 5.8 MBsolve-disk-fullat 10:50:06pct listsnapshot 128review/merge-readyat 11:12startedAt13:00:00Z, and the trigger's own timestamp08:00-05:00; Hermes gateway log,vikunja-notifyat 14:00The recovery section's ceiling is arithmetic on those figures, not a new reading: 576 runs a day at 1.05 MB is 600 MB a day, and the 14-day age limit alone would keep 8,064 of dispatch's runs, about 8.5 GB.
Not read: Forgejo's delivery history for org hook 6, and Vikunja's webhook delivery history, so the number of events dropped in the window is not counted; the report says so, and corrective action 6 covers it. The n8n instance's timezone setting was not read either: the zone in the report is taken from an execution's own timestamp, which is what decides when the cron fired.
The prose went through a humanizer pass. None of the three new pages contains an em dash or a word from its AI-vocabulary list.
Merge Danger
Door: two-way. Documentation only. A merged report is a record, but it can still be corrected by a later pull request.
Blast radius: none. Nothing runs these files. The repo is public. The report names Guest 128,
duku, and paths on the Guest, and no internal address or public IP.The prose in this PR and its three pages was written by an Agent (Hermes) and is for the Operator to review.
Review started (round 1/5) on
ddfe789853— reading the diff now.olympus/workshop #40 · reviewed head
ddfe789853338020788d54e2c35dd8fd4c4af5a0· round 1/5 (thread count: 0 earlier reviews + 1; the dispatch also said 1/5) · verdict: no blocker, advisory count trips the volume ruleRecommendation: fix
The recommendation turns on the count of advisories (6, threshold 3), not on their weight. There is no blocker. Every finding below is ADVISORY, and the review state is APPROVED because the state follows blockers only. One polishing round clears all six.
Spec source: the PR body. It says plainly that no ticket carries the change (the Operator asked for it directly), so the body's own description is the contract: a postmortem guide adapted from Atlassian's template, a template, and the first report. Wiring:
docs/index.mdrow. Standards source:AGENTS.md,docs/agents/domain.mdandGLOSSARY.md(_Avoid_lines),docs/index.md(table form), and the guide's own rules indocs/postmortems/index.md.docs/adr/has nothing that bears on a docs-only change.Standards
standards: the repo has no rule that a finding below breaks; the five-line
docs/index.mdshape, the glossary andmake docs-checkall hold. Finding S1 is judged against the guide this same change adds.docs/postmortems/index.md:95-96(§Drafting it, for an Agent)origin/mainb99dacd: the repo documents the n8n Guest only by address (docs/automations/pr-review-loop.md:33).git grepfinds noGuest 128, no/.n8n/database.sqlite, no/root/.npm.dukuis documented, but ininfra-secrets(docs/store-layout.md:129, d25da62), not here. The justification is false for the paths and the Guest id, so a later author reads a licence that was never granted. Clearing change: drop the "because" clause, or say what is allowed and why (a Guest id and a path are low-sensitivity in a public repo; an address is not).Spec
Every finding is one of the guide's own rules turned on the report ("Every number in the report comes from something the Agent read... Never fill a gap with an estimate that looks like a measurement"), or the report disagreeing with itself.
2026-11-05-n8n-disk-full.md:17,:35,:166-167,:213vs:39,:46,:196awk), while the same report says "about 600 MB a day" (:46,:196; 3.3 GB over 5.4 days is 626 MB/day). One of the two numbers is a point reading and one an average; the report never says so. Clearing change: say "1.35 MB on the day it was read, 1.05 MB average since creation", or use the average throughout.2026-11-05-n8n-disk-full.md:126-127:38-41already sums to 3,151 + 3,939 + 3,005 = 10,095 runs, i.e. at the cap, so "the same mix" gives about the present 3.7 GB, not 5.1 GB. 5.1 GB only follows if dispatch's share of kept runs rises (the other two age out at 14 days), and no arithmetic is shown. It is the figure that sizes the remaining headroom (1.7 GB) and the urgency of actions 2 and 3. Clearing change: show the derivation in one sentence (rates per day, age limit, cap) or label it a rough bound.2026-11-05-n8n-disk-full.md:43-44,:46-47,:68:39-41has two others (54 + 6 MB); the third (the errors workflow) is not in the table.:68says "Four workflows did not run" but the Systems row (:9) lists three, and the errors workflow only runs on a failure. Clearing change: "other two", reconcile 120 KB, and either list four workflows consistently or say three.2026-11-05-n8n-disk-full.md:166-167vs:26-272026-11-05-n8n-disk-full.md:93-96,:143:133) and then puts the heartbeat at08:00, while the same row says the cron0 8 * * *runs in "n8n's default timezone".ticket-dispatch/workflows/vikunja-ticket-dispatch.jsonhas notimezonesetting (settings areexecutionOrder,availableInMCP,errorWorkflow); the review loop's workflow setsEurope/Madrid(pr-review-loop/workflows/forgejo-pr-review-loop.json:797). The report's own Leadup says the unit sets no environment, and n8n's default timezone is not Madrid. The instance's timezone was never read, so 08:00 Madrid is an assumption written as a timeline fact, and "the heartbeat didn't run either" is untested: at a different timezone the heartbeat is not due before recovery at 10:52. The report half-concedes this at:94-95. Clearing change: read the instance timezone (or the heartbeat's last execution time) and fix the row, or move the row out of the timeline into the Detection prose as "due at 08:00 in an unread timezone".Not a finding (checked, holds)
make docs-checkpasses, 3 assertionsmise exec -- make docs-checkin a worktree at the head: 25 links, floor page, floor rules, rc 0grep -P '\x{2014}|\x{2013}' docs/postmortemsprinted nothinggrep -Efor dotted quads overdocs/postmortemsanddocs/index.mdprinted nothing*/5, sweep2-59/5, heartbeat0 8 * * *, 576 runs a dayticket-dispatch/workflows/vikunja-ticket-dispatch.json;Get queuesandGet sweep queuesexist;per_page=200at:323curlanswered 200WR,SLWRindocs/agents/issue-tracker.md:4;SL-5ininfra-siloorigin/main_Avoid_words (VM, box, server, instance, Prod, live, ...):114), a non-environment sensegit ls-remote origin refs/pull/40/head=ddfe789...before and at postingNot verified
make docs-checkcovers links only.Summary
Total: 6 advisories, 0 blockers. State APPROVED because no blocker stands. Recommendation
fixand labelreview/needs-fixbecause three or more counted advisories earn them; one batched edit clears all six, and the structure, the guide, the template and the wiring need nothing.Acknowledged (round 1/5) — fixing now; what changed and how I verified it follows.
New commits pushed, approval review dismissed automatically according to repository settings
Fix round 1/5 — no blocker stood, and all six advisories are taken. Head
ddfe789→e4fd9c3.Six commits carry the fixes, one per finding, plus four that tighten wording in the same sentences. The guide's structure, the template, the index row and the report's shape are untouched.
758b25ae205eefcb61b437edb14db164492f4be8c3P5, how the time was read. The workflow sets no timezone, so its crons run in the instance's:
Counting that workflow's executions hour by hour on 2, 3 and 4 November puts one extra run in the 13:00 hour and none in any other, so that is the daily heartbeat. The deliveries agree, at 14:00 host time (the log is UTC+1):
So "whether the heartbeat arrives on a normal day is unknown" is answered: it does, at 14:00. Its 5 November run is due at 14:00 today, after this round, so the report does not claim it.
S1, the base grep re-run:
Verification, at the head pushed.
olympus/workshophas nomake test; its check ismake docs-check, run through the manager asAGENTS.mdand the README say:The three pages still carry no em dash (
grep -P '\x{2014}|\x{2013}' docs/postmortemsprints nothing) and no address, so the body's own claims stand.The body moved with the report, since it is the spec here. That is a body edit, not a commit: one row in the evidence table for the heartbeat's time and delivery, a line saying the recovery ceiling is arithmetic on the figures already listed rather than a new reading, and the instance's timezone setting added to Not read. Read back byte for byte afterwards.
Not taken, and not verified. Nothing is declined; all six are in. Two things I could not check from here, so the report does not claim them: the incident's own measurements (disk size, database sizes, run counts) are carried unchanged from this PR, because the Guest is not reachable from this environment; and the instance's timezone setting was not read, only what an execution's timestamp says.
Review started (round 2/5) on
e4fd9c3cc8— reading the diff now.olympus/workshop #40 · reviewed head
e4fd9c3cc8b441fd0f13bbf1a8f14c4d5af4af00· round 2/5 (thread count: 1 earlier review + 1; the dispatch also said 2/5) · verdict: no blocker, one advisoryRecommendation: merge
No blocker stands. The six round-1 advisories are all addressed, and one of the fixes introduced a new advisory (N1 below). The state is APPROVED because the state follows blockers only; the recommendation is
mergebecause the counted advisories are 1, under the threshold of 3. N1 is the finding I would fix before merging, and I say why it is not a blocker further down.Spec source: the PR body. It says no ticket carries the change (the Operator asked for it directly), so the body's description is the contract: a postmortem guide adapted from Atlassian's template, a template, the first report, and one row in
docs/index.md. Standards source:AGENTS.md,GLOSSARY.md(_Avoid_lines),docs/agents/domain.md, and the guide's own rule this PR adds (docs/postmortems/index.md:86-89, "Every number in the report comes from something the Agent read").docs/adr/has nothing that bears on a docs-only change. One reviewer held both axes; the sections are kept apart.Fixed point:
ddfe789(round 1's head) is an ancestor ofe4fd9c3(git merge-base --is-ancestortrue). The round's delta isgit diff ddfe789 e4fd9c3: 10 commits by Efesto, 2 files (docs/postmortems/2026-11-05-n8n-disk-full.md,docs/postmortems/index.md), +31 -26. No merge ofmainis in it (mainis stillb99dacd, equal to the PR's merge base).Round 1, closed out
Round 1 had no blocker, only six advisories, so the round owed each one's clearing change.
758b25a;docs/postmortems/index.md:95-97e205eef,1163796; report:17,:35-36,:40,:130,:170,:217cb61b43; report:129-1347edb14d; report:9,:45,:48,:69,:76b164492; report:170-171,:218grep -n 08:00finds only the cron expression at:94)f4be8c3,9836883,7fcef15,e4fd9c3; report:94-100Standards
standards: no repo rule is broken by the delta.
make docs-checkholds; the three pages carry no em dash or en dash, no dotted-quad address, and no_Avoid_word in a Guest sense. The one_Avoid_word the delta adds is "instance" in "the n8n instance's timezone" (report:95); it names the n8n application, not a Guest (GLOSSARY.md:62), so it is not a finding. Nothing to report on this axis.Spec
docs/postmortems/2026-11-05-n8n-disk-full.md:129-134(Still degraded after recovery), introduced bycb61b43; the PR body's sentence that the ceiling "is arithmetic on those figures" rests on the same premise:40-42) sums to 3,151 + 3,939 + 3,005 = 10,095 runs, already at the cap. (2) n8n's count cap is global, not per workflow. On Guest 128 (n8n 2.42.6),execution.repository.js:393-404takesskip(pruneDataMaxCount)overexecution.id DESCwith no workflow filter, and the defaults are 336 h and 10,000 (executions.config.js:113-114). (3) Read live, read-only: 10,014 live rows inexecution_entity, and the oldest live run started 2026-10-25 19:20, which is 10.7 days ago, younger than the 14-day limit. So the count cap is the bound doing the pruning now, and the age limit is not. (4) Dispatch's 576 runs a day sit beside the other two workflows' live rate of about 640 a day (3,896 and 2,949 runs over 10.7 days), so about 1,216 runs a day share the 10,000. The kept window settles near 8.2 days, which keeps about 4,740 dispatch runs, about 5.0 GB at 1.05 MB, so the database plateaus near 5.1 GB. SQLite does not return freed pages, so the file sits near that peak. That is the original draft's "about 5.1 GB, leaving about 1.7 GB free", which was right; the 8.5 GB figure and the "five days" are not. The paragraph also contradicts five-whys 4 (:170-171), which correctly says the count was the limit that applied. Clearing change: say the 10,000-run cap counts runs across all workflows and is already binding, give the one-line plateau (about 5 GB, about 1.7 GB free before any growth in run size), and drop "binds before the 10,000-run cap" and "lasts about five days". The closing clause (the rate rises with every ticket on the six boards) stays true and stays.Round 1's P2 was partly my error, and I am saying so. Its premise ("the same mix at the cap gives about the present 3.7 GB") assumed the mix of workflows stays fixed. It does not: as the cap trims the older runs of all three workflows, dispatch's share of the 10,000 grows, which is why the original 5.1 GB was reachable. The author asked for a derivation and wrote one in good faith; the premise it leaned on (the cap as a per-workflow, never-reached bound) is what is wrong, and I should have asked for the derivation without implying the number was wrong.
Why N1 is an ADVISORY and the recommendation is still
merge. The round-2 bar is that a new BLOCKER must be a correctness or security defect introduced or exposed by the fix. N1 is a factual error in documentation prose that the fix introduced; under that bar a documentation inaccuracy lands as an ADVISORY, and the recommendation follows the count (1, against a threshold of 3). It is not a taste call. It sits in the one paragraph that sizes how much headroom is left, so I would fix it before the report becomes the record; the fix is one paragraph, and the call is the Operator's.Verified, and how
git ls-remote origin refs/pull/40/head=e4fd9c3cc8b441fd0f13bbf1a8f14c4d5af4af00, and the forced fetch of the pull ref resolves to the same SHA;git status --porcelainin the head worktree is empty after the checksmake docs-checkmise exec -- make docs-checkin a detached worktree at the head: 25 links, floor page, floor rules, "all 3 assertions hold", rc 0get_commit_statuses:pr-checks / loop-decideandpr-checks / protect-mainbothsuccessgrep -P '\x{2014}|\x{2013}'overdocs/postmortems/*.mdfinds nothing (the hits indocs/index.mdare rows this PR did not write);grep -Efor dotted quads prints nothingindex.mdgit cat-file -e HEAD:docs/postmortems/<target>for both:template.mdand the report existawkover the report's own inputs: 1.052 MB average; 606 MB a day; 3.3 GB / 5.4 days = 611; 3.1 GB / 606 = 5.1 days; 14 x 576 = 8,064 runs = 8,484 MB; 10,000 / 576 = 17.4 days; 5,800 - 4,836 - 748 = 216 KB; 567 min = 9 h 27; created 30 Oct 15:51 to 5 Nov 01:25 = 5.4 days. All hold as arithmetic; N1 is about the premise, not the sumsstartedAt2026-11-04 13:00:00.052 (UTC), so 13:00 UTC and 14:00 here;/opt/n8n.envdefines no variables (names listed: none), so n8n runs at its default timezone, America/New_York, and the unit sets no timezone. The report's UTC-5 holds for 1 to 5 November (US daylight saving ended 1 November)gateway.logon this host:route=vikunja-notifyat 14:00:00 on 2026-11-01, 02, 03 and 04,msg_len=86each:25)EnvironmentFile=/opt/n8n.env, but the file defines no variables, so the sentence holds in effect; unchanged by this deltaNot verified
make docs-checkcovers links only.Summary
Total: 1 advisory, 0 blockers. State APPROVED because no blocker stands. Recommendation
mergeand labelreview/merge-readybecause the counted advisories (1) are under the threshold of 3; the count decided this, not the weight. The merge-time currency gate is not in play:mainhas not moved since the merge baseb99dacd.