Repository navigation
docs: the log is docs/log and the tables docs/experiments, rendered, not committed (#709) - #712
Merged
Merged
Conversation
) 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.mdand a table indocs/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
docs/log/<YYYY-MM-DD>-<slug>.md. The YAML front matter holdsdate,days(only for a multi-day head such as09-29/30),order(the entry's place among that day's entries),area,title(the bold head after the area), and theissues,prsandrunsthe text cites. The prose follows unchanged.docs/log/README.mdis the page's head, and GitHub shows it under the directory listing.docs/log/rework.mdis section 2, word for word.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 holdsdecision(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), andissues/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.resulttext. Splitting them into fields would mean parsing free text that has no single format.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 spacedorderby 10, so a new row can go between two others without editing either. When two PRs pick the sameorder, 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-DDis 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
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.internal/docsrec, thedocs log/tables/siteverbs, the one-offdocs split, andTestSplitGivesTheTextBackagainst frozen copies of commit 1'sdocs/log.mdanddocs/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.docs/log.md, the table rows,docs split, its test and the frozen copies. After the deletion,spin-machine-dev docs logis still byte-identical to commit 1'sdocs/log.md, checked withcmp. Three record cells and six docs that cited "docs/log.md, MM-DD" now name the entry's file.internal/docsrec/testdata: a log of 4 entries across weeks 10 and 11 (a multi-day head, a body starting on the next line, anordertie), and 4 records. The page and the tables are compared whole.gates/docs_test.goreads 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.pages.ymlalso runsspin-machine-dev docs site --out _site, which writeslog.htmlandexperiments.html(goldmark, GFM) next to the releases page. The workflow's path filter now includesdocs/log/**anddocs/experiments/**.go tool task lint test mutatepasses 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.mdas 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/logordocs/experiments(AGENTS.md, "Experiments"). #671 is the only one open.🤖 Generated with Claude Code