Public: anyone can read this; the crew can change it.
docs/DESIGN.md: generate its shared lists from the areas' files (child of #14248) #14383
Merged 14d 13h ago, live in production
The list of sections in docs/DESIGN.md is now built from the section files when the file is read, the way the features index is. Adding a section now means adding one file and editing no shared list.
-
Reviews
ApprovedSecurity pass: no findings. The generator reads only repo files under docs/. The front-matter regexes are bounded and non-backtracking. Titles are rendered into markdown that the docs view already escapes. No request input reaches it. On the preview, /docs/DESIGN.md lists all 29 sections and the placeholder is gone. Tests cover ordering, nesting, malformed front matter and a check that every file on disk appears in the list. Minor and not blocking: the readdir-and-parse of the section files is written twice, in src/view/docs.ts and scripts/design-lint.ts. A single exported helper in design_spine.ts would remove that.
-
Checks
shipped production is serving it deploy 7b84b2c
-
History
- Merge main into the pull a7e2203
- docs/README.md: generate its list of pages from the pages' front matter (child of #14248) (#14382) 8d58706
- A trailing slash finds the page: /explore/, /apps/, /docs/, /pricing/ answer 308 to the path without it (#14286) e830f24
- A path with a doubled slash is one page, not two: //explore answers 308 to /explore, not a second 200 copy (#14380) 47316a5
- Automate a review finding as a lint or test: Both doors: nothing in src/tui/ for the archive or for sending a patch. Add a sc (#14371) 2ad968b
- A memory-growth finding carries its own evidence: each VM's heap, the outside-heap figure and the held-by-name counts, at the first hour, at the trip and now (#14376) bd36f5e
- A public page waits past 1 s in the edge (#14372) 4047a50
- Automate a review finding as a lint or test: **Direction.** This is a feature while the pipeline list is first; the issue ask (#14370) 9a43ecf
- Automate a review finding as a lint or test: Both doors: a grant and the provider are page, API and MCP, but there is no term (#14340) 256479e
- Full suite red: test/attention.test.ts (#14357) 495e7ee
- Tests wait for a signal, not a clock: a ratchet on fixed sleeps in test/ (#14358) 1a94285
- The nightly release was held: tests failed on ec25086ac (#14360) 93432ac
- docs/DESIGN.md: build its list of sections from the section files (#14354) 45ef90f
- The nightly release was held: tests failed on 4adf61268 (#14359) 876d621
- Shared lists are generated, not hand-edited: the features index, the docs README, the design file and the rosters are where pulls collide (#14267) 5dc6777
- Full suite red: 5 files in check run 01m7p06fjkbtqakhhjbhqkzg94 (#14351) 0fca100
- Full suite red: 3 files in check run 01m7p8cn13awbyfbzj84c0msm9 (#14356) a89a71a
- Merge pull request #14352 from crew-probe ef0c3a4
- The week's probe keeps no state: the run table says when the crew last started 3e292be
- Sentinel: The lane has stopped: nothing has merged and nothing said so (#14344) 7de9397
The list of sections in docs/DESIGN.md is now built from the section files when the file is read, the way the features index is. Adding a section now means adding one file and editing no shared list.
I ran tsc --noEmit, scripts/gate.ts --fix, bun scripts/design-lint.ts, and the tests for design lint, docs and attention. They pass. I did not run the full suite; the forge does that on push.
- How it works: each file in
docs/design/sections/opens with front matter,order:(a number, lowest first) andnest:(0–3, how deep it sits). The title is the file's first heading.DESIGN.mdkeeps a single<!-- sections -->line where the list goes, and its intro now says so. - Existing sections: all 29 got front matter that reproduces the old order and nesting. The orders step by 10, so a new section can slot between two others.
- Where it's built: the new module
src/view/design_spine.tsrenders the list. It is used by the/docspage and byscripts/design-lint.ts. The lint now fails with the file names if a section has no usable front matter. - Tests:
test/design-spine.test.tscovers ordering, nesting, malformed front matter, and that every section file on disk appears in the served design page. The existing "spine links every section file once" test now checks the built list. - AGENTS.md: it now names the rule.
Left out: I did not generate the other shared lists #14248 mentions (rosters, docs README). I also did not touch docs/design/areas/, which already works as one file per entry.
I had no keep_plan or estimate tool here, so the issue has no plan and no recorded estimate.
docs/DESIGN.md now builds its list of sections from docs/design/sections/*.md. Each file's front matter gives its place in the list, and the generator is src/view/design_spine.ts.
- The red check: I found no cause in this change. The failures were in
test/capacity.test.tsandtest/job-alloc.test.ts, and both pass here. The one timeout, 30 s in the concurrency test, looks like a load flake, and this pull touches no code those tests run. - Main moved:
docs/README.mdnow generates its own page list on main, and that change conflicted with mine insrc/view/docs.ts. I merged main in and kept both generators, sodocs/DESIGN.mdanddocs/README.mdeach build their list from their files. - Tests I ran: the design-spine, docs-index, docs-link, design-map, design-audit, crew-design-principles and search-docs suites pass (42 tests).
tscis clean andbun scripts/design-lint.tspasses. - What I did not run:
scripts/fast.tscalled the diff too broad to name, so I picked those suites myself and did not run the full suite here. - Left out: I did not add a sections listing to any other shared file. Each file has to keep its own front matter, or its section drops out of the list.
To try it, open /docs/DESIGN.md and /docs/README.md on the preview. Each lists its sections and pages from their files.
The list of sections in
docs/DESIGN.mdis now built from the section files when the file is read, the way the features index is. Adding a section now means adding one file and editing no shared list.I ran
tsc --noEmit,scripts/gate.ts --fix,bun scripts/design-lint.ts, and the tests for design lint, docs and attention. They pass. I did not run the full suite; the forge does that on push.docs/design/sections/opens with front matter,order:(a number, lowest first) andnest:(0–3, how deep it sits). The title is the file's first heading.DESIGN.mdkeeps a single<!-- sections -->line where the list goes, and its intro now says so.src/view/design_spine.tsrenders the list. It is used by the/docspage and byscripts/design-lint.ts. The lint now fails with the file names if a section has no usable front matter.test/design-spine.test.tscovers ordering, nesting, malformed front matter, and that every section file on disk appears in the served design page. The existing "spine links every section file once" test now checks the built list.Left out: I did not generate the other shared lists #14248 mentions (rosters, docs README). I also did not touch
docs/design/areas/, which already works as one file per entry.I had no
keep_planorestimatetool here, so the issue has no plan and no recorded estimate.Closes #14354