Skip to content

docs: the log is docs/log and the tables docs/experiments, rendered, not committed (#709) - #712

Merged
aledbf merged 3 commits into
mainfrom
docs/709-split-log
Nov 23, 2026
Merged

aledbf merged 3 commits into
mainfrom
docs/709-split-log

Conversation

@aledbf

@aledbf aledbf commented Nov 23, 2026

Copy link
Copy Markdown
Member

Why

The goal is a cold first login under 100 ms, and the work toward it lands as many small PRs. Almost every one of them edits docs/log.md and a table in docs/boot-time.md, so any two PRs in flight conflict once one merges. Each conflict this week became a replacement PR. #709 decided the fix: one file per log entry and one record per table row, with the pages rendered and never committed. This PR implements that decision. It changes no boot path and no measured number.

The shapes

  • A log entry is docs/log/<YYYY-MM-DD>-<slug>.md. The YAML front matter holds date, days (only for a multi-day head such as 09-29/30), order (the entry's place among that day's entries), area, title (the bold head after the area), and the issues, prs and runs the text cites. The prose follows unchanged. docs/log/README.md is the page's head, and GitHub shows it under the directory listing. docs/log/rework.md is section 2, word for word.
  • An experiment record is docs/experiments/[<issue>-]<slug>.json, one per row of the nine tables: "What the machine carries", the seven "Measured and rejected" sections and "Open experiments". It holds decision (carried, rejected or open), section (rejected only: kernel, firmware, image, login, restore, qmp, memory), order (its place in its table), date (rejected only), the cells its table shows (change, where, result, evidence, shape, source, number, phase, decided_by, state), and issues/prs/runs. The prefix is the first issue or PR the row's change cites. A row that cites none is named by its slug alone.
  • These stay prose in boot-time.md: "Where the two numbers stand", the phase budgets, "How the groups were decided" (one run's arms) and "Open questions". Each records table is replaced by one line that points to the records, the verb and the site.
  • Δp50 and its interval stay in the result text. Splitting them into fields would mean parsing free text that has no single format.
  • Why order: the tables are not in date order, and the carried and open tables have no dates. Some entries say "the entry above", and some rows say "the same" about the row before. The split spaced order by 10, so a new row can go between two others without editing either. When two PRs pick the same order, the file names break the tie, and neither PR conflicts with the other.

How the year was derived

Entries carry only month and day. Each entry takes its year from the week heading it sat under ("Week 1: 2026-09-07 to 09-13"). An entry whose month came before the heading's month would get the next year, but none did, so every entry is 2026. A rejected row's MM-DD is 2026 too, because the tables began with the repository on 2026-09-07. Week headings are not stored. The renderer computes them: Monday to Sunday from 09-07, week 10 cut short at 11-13 (the day the log was first written), then Saturday to Friday from 11-14. That rule reproduces all 12 existing headings.

Proof

  • Commit 1 (docs: the log's entries in date order…) only moves lines. Eight entries were out of date order, and four lacked the blank line before the next entry. The non-blank lines are the same multiset and the headings are unchanged. The script that made it checks this.
  • Commit 2 adds internal/docsrec, the docs log/tables/site verbs, the one-off docs split, and TestSplitGivesTheTextBack against frozen copies of commit 1's docs/log.md and docs/boot-time.md. The split's 248 entries and 186 records render the whole log and all nine tables byte for byte. The test passes at that commit.
  • Commit 3 runs the split, then deletes docs/log.md, the table rows, docs split, its test and the frozen copies. After the deletion, spin-machine-dev docs log is still byte-identical to commit 1's docs/log.md, checked with cmp. Three record cells and six docs that cited "docs/log.md, MM-DD" now name the entry's file.
  • The smaller round-trip test that stays is internal/docsrec/testdata: a log of 4 entries across weeks 10 and 11 (a multi-day head, a body starting on the next line, an order tie), and 4 records. The page and the tables are compared whole.
  • gates/docs_test.go reads every entry and record in the tree. It refuses a missing field, a decision or section that does not exist, an invalid date, a non-numeric run, an issue or PR listed but not cited, and a cited run id (11 digits) that is not listed.
  • The pages site: pages.yml also runs spin-machine-dev docs site --out _site, which writes log.html and experiments.html (goldmark, GFM) next to the releases page. The workflow's path filter now includes docs/log/** and docs/experiments/**.
  • go tool task lint test mutate passes locally: refs resolve, coverage is 93.08% of what CI runs (floor 93%), docsrec is at 98.0%, and mutate reports 0 survivors.

What moved

AGENTS.md (CLAUDE.md is a symlink to it) now says how to add an entry and a record, in place of "add its row to docs/boot-time.md's tables and its entry to docs/log.md". Also updated: docs/measuring.md steps 3 and 5 and rule 1, docs/boot-time.md, README.md's doc table, docs/cli.md (a new "The log and the experiments" section and the pages.yml line), and the citations in docs/memory-and-disk.md, docs/machine.md, docs/image.md and docs/releasing.md. The withdraw issue text in cmd/spin-machine-dev/withdraw.go changed too. Entries that mention docs/log.md as history keep their text.

For open PRs

A PR that adds a log entry or a table row moves it into a file under docs/log or docs/experiments (AGENTS.md, "Experiments"). #671 is the only one open.

🤖 Generated with Claude Code

aledbf and others added 3 commits November 23, 2026 18:52
)

The split into one file an entry (#709) renders the log in date order with a
blank line between entries. Eight entries sat out of date order (two 11-20
entries among the 11-19s, six 11-21 entries before the last 11-20s, under
week 11's heading) and four had no blank line before the next. This commit
only moves lines: the non-blank lines are the same multiset, and the week
headings are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…les from files (#709)

docsrec reads the log's entries (docs/log/<date>-<slug>.md, YAML front
matter and the prose) and the experiments' records (docs/experiments/*.json,
one a table row) and renders the log and docs/boot-time.md's tables.
spin-machine-dev docs log, docs tables and docs site render them; docs split
is the migration, run once in the next commit and deleted there.

TestSplitGivesTheTextBack is the migration's proof, against frozen copies of
docs/log.md (the previous commit's) and docs/boot-time.md: the split's files
render the whole log and every one of the nine tables byte for byte.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…not committed (#709)

docs split, run once on the previous commit, wrote 248 entries
(docs/log/<date>-<slug>.md), docs/log/README.md (the page's head),
docs/log/rework.md (section 2, unchanged) and 186 records
(docs/experiments/[<issue>-]<slug>.json, one row of a table each). The
previous commit's test showed they render the log and the nine tables byte
for byte; the verb, its test and the frozen copies go with this commit, as
does docs/log.md and the rows of boot-time.md's tables, which now point to
the records, the verb and the site.

An entry's year is the year of the week heading it sat under ("Week 1:
2026-09-07 to 09-13"), a year later had its month come before the
heading's; every entry is 2026. A rejected row's MM-DD date is 2026: the
tables began with the repository on 2026-09-07.

gates/docs_test.go refuses an entry or record that does not parse, lacks a
field, names a decision or section that does not exist, has an invalid date,
or lists a run, issue or pull request its text does not cite; every run id
its text cites must be listed. pages.yml publishes log.html and
experiments.html beside the releases' page. AGENTS.md, measuring.md and
cli.md say how to add an entry and a record; every docs/log.md citation
names the entry's file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aledbf
aledbf merged commit 765558c into main Nov 23, 2026
12 checks passed
@aledbf
aledbf deleted the docs/709-split-log branch November 23, 2026 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant