Repository navigation
Description
The problem. Two files take an edit in almost every PR. Counted on main, 2026-11-23:
| file | lines | commits in the last 7 days |
|---|---|---|
docs/log.md |
799 (239 dated entries) | 177 of 568 |
docs/boot-time.md |
514 | 80 |
- Every decided experiment appends to
docs/log.md's section 1, at its end, and adds or moves a row indocs/boot-time.md's tables. - So any two PRs in flight conflict as soon as one merges. A rebase merge is the only way in, and force-push is denied, so each conflict this week became a replacement PR: kernel: boot the vmlinux through PVH, randomizing itself (#645) #664→kernel: boot the vmlinux through PVH, randomizing itself (#645) #675→kernel: boot the vmlinux through PVH, randomizing itself (#645) #682, lab: the ledger's kernel_zero on the kernel's sched clock (#644) #681→lab: the ledger's kernel_zero on the kernel's sched clock (#644) #696, fuzz: once a day on main, not on every pull request #688→fuzz: once a day on main, not on every pull request #692, lab: the traceable kernel is a vmlinux entered through PVH, as the release's (#697) #700→lab: the traceable kernel is a vmlinux entered through PVH, as the release's (#697) #704→lab: the traceable kernel is a vmlinux entered through PVH, as the release's (#697) #708.
- Some rebases resolved cleanly and still had to be read line by line for a dropped or duplicated entry.
What the repository already does right. docs/releases.md is generated from one JSON record per release (docs/releases/*.json, spin-machine-dev releases doc). A test fails when the page is not what the records say. Two releases never touch the same record.
Proposal: the same for the log and the experiments.
- One file per log entry,
docs/log/<date>-<slug>.md. Front matter (YAML) carries the date, the area (kernel, qemu, image, lab, machine, release), the issues, the runs and the PR. The body is the prose entry as today. A new file never conflicts. - One record per decided experiment,
docs/experiments/<issue>.jsonor front matter on its log entry. It carries the change, the phase, the shape, the numbers (Δp50, interval, runs), the decision (kept, rejected, open, carried) and the date. The tables indocs/boot-time.md("What the machine carries", "Measured and rejected" and its sections, "Open experiments") are generated from them. The hand-written prose sections of boot-time.md stay hand-written. - The generated pages are not committed, or are committed and never hand-edited. Two options; decide on what a conflict costs:
- Not committed. The pages site and the release render them, and
docs/links to the directory. That costs readers of the raw tree an index. - Committed. The gate fails when they differ from the records, as
releases.mddoes, and a conflict in them is resolved by re-running the generator. That needs.gitattributes merge=unionor a regenerate step after a rebase.
- Not committed. The pages site and the release render them, and
- A format that exists. Markdown with YAML front matter (Hugo/Jekyll style) for entries, so prose stays prose and the metadata is machine-read. JSON, like
docs/releases/*.json, for the experiment records, whose fields are numbers and a decision. No XML: nothing here reads it. - References keep working. A doc citing "docs/log.md, 11-23" cites the entry's file. The
refslint (task lint) checks they resolve. Section 2, "Rework cycles", stays one hand-written file: it is read as a narrative and changes rarely.
Migration. A one-off spin-machine-dev docs split turns today's 239 entries and the tables' rows into files. Generating the pages from them must give today's text back byte for byte; that is the check that nothing was lost. AGENTS.md's rules that name docs/log.md and boot-time's tables ("Remove an experiment once its question is answered…") then name the directories.
When. After the batch in flight (#698, #660, #627, #708) and the next release: it touches every open PR's docs, so it goes in with nothing else open.
Activity
aledbf commentedon Nov 23, 2026
Decided: the aggregates are not committed. Committing generated pages, as releases.md does, would not end the conflicts. Every PR would still regenerate the same committed
docs/log.md, and two PRs in flight would still touch one file. Only files that each PR adds and no other PR edits make the conflict go away.docs/log/<YYYY-MM-DD>-<slug>.md, one file per entry, front matter plus prose. GitHub's listing of the directory, sorted by name, is the chronological index. Section 2, "Rework cycles", stays one hand-written file,docs/log/rework.md, because it is a narrative and rarely changes.docs/experiments/<issue>-<slug>.json, one record per decided or open experiment. Its fields are the change, the phase, its section (kernel, firmware, systemd/image, login, restore, QMP/vsock, memory), the shape, the numbers (Δp50, interval, runs), the decision (carried, rejected, open) and the date. The fields are what boot-time.md's tables hold today.spin-machine-dev docs logandspin-machine-dev docs tablesrender them, to stdout or to a file. The pages site (pages.yml,releases site) publishes both.docs/boot-time.mdkeeps its prose and links each table to the site and to the verb.spin-machine-dev docs splitturns today's 239 entries and the tables' rows into files, once. Rendering them back must give today's text, byte for byte. That is the test that nothing was lost, and the verb is deleted after.refslint resolvesdocs/log/...paths. AGENTS.md's rules that namedocs/log.mdand the tables then name the directories.docs: the log's entries in date order, one blank line between them (#709
docs: internal/docsrec and spin-machine-dev docs, the log and the tab…
aledbf commentedon Nov 23, 2026
Done in #712: the log is one file per entry (docs/log/), boot-time.md's tables one record per row (docs/experiments/), neither page committed;
spin-machine-dev docs log|tablesand the site render them. Proven byte for byte against the old files before they were deleted. AGENTS.md says how to add an entry and a record.docs: the log is docs/log and the tables docs/experiments, rendered, …