The tree's records and indexes
An appendix to nifeos/nife:notes/scripts.md, the front door to script/. It holds the full
table rows for the commands that index and check the tree's own records. A reader who only needs to
run a command should not have to open it. The directory notes/scripts/ and this file's stem are
provisional names; naming is calef's.
| script | what it does |
|---|---|
script/decisions |
The index of design/decisions/, printed from each file's frontmatter and grouped by status; there is no committed table. --check enforces the numbering, the frontmatter schema, and that every §N cited anywhere in the tree resolves. Gated in script/lint. |
script/roadmap |
Index the milestones; --check validates the status vocabulary and catches a block with no row, or a milestone cited in prose the table does not carry. Also gates milestone 247's ## Follow-on section on every finished block, so the work a milestone named on its way out cannot go nowhere. --ready lists what a lane could start today; --unclaimed lists follow-on work nobody took; --outstanding lists what each PARTIAL milestone still says is left (milestone 252); --proposed lists the unnumbered proposals in design/roadmap/proposals/, oldest first, which anybody may add to without coordinating. Gated in lint. |
script/journeys |
A third instance of script/roadmap/script/decisions's pattern, one level up: reports progress against the end-to-end user journeys in design/journeys/, computed fresh every run from the milestone blocks and the decision files rather than hand-maintained (design/journeys/README.md explains why). No arguments lists every journey with a one-line rollup; a journey's slug prints its full step-by-step detail; --check validates the frontmatter schema, that the H1 number agrees with the filename, that every cited milestone and decision resolves, and that the status agrees with the milestones the steps cite. Gated in script/lint. The progress report itself stays a report: a step is a human's editorial claim about what a story needs, so the rollup may regress without being a defect, while the schema is a record the gate can read. |
script/citations |
The third citation gate, and the only one that reads the target: a §N (gloss) or milestone N (gloss) must match that record's own title or quote its body, and an attributed block quote must still exist in the file it names. The other two prove a citation resolves to some entry; this proves it resolves to the right one. --check gates it in lint, and --ratchet gates the lines a branch adds: a citation on one of them has to say what it cites, once per number per file. --census counts the backlog neither of those sees, which is every citation carrying no gloss at all. --moved is the one mode that cannot fail: when this branch flips a milestone's status it prints the notes and design pages citing that milestone, so the lane that knows what the milestone now makes true is the one asked to look (milestone 385 (when a milestone's status flips, tell the lane which notes cite it)). It reports and never gates, because it cannot tell a stale sentence from a current one. See notes/citations.md. |
script/fatal-risks |
Does design/fatal-risks/README.md still agree with the records it cites? The falsification list is prose ABOUT milestones and decisions, and until milestone 275 (a gate that diffs fatal risks against the roadmap) nothing read the two together: its own BUGS said so, and a 2026-09-10 review found the warning firing four ways at once. Compares a risk's stated verdict, the running order's struck rows, and any status word it spells out against script/roadmap's and script/decisions' own output, and reports a risk entry last dated before a milestone it cites turned BUILT. --check gates it in lint, on the ground that drift here is always caused by an in-tree edit, which is the test script/cadence-check fails and this passes; --selftest drives all eight checks against fixtures built to trip them and three near-misses that must stay quiet, and lint runs that too, because a green check and a dead one print the same line. Cannot see a premise going stale, which is the larger half and stays a person's job. Name provisional. |
script/catch-up [<since>] |
What changed since you last looked: milestone status transitions, milestones newly minted, decisions landed or revised, what is waiting on calef, what is ready to start, and the notes that carry the why. <since> is a date (2026-08-01) or any git rev; the default is seven days, which is a trip. A derived view, never a maintained one, for the reason notes/session-handoff.md demonstrates: a hand-written "current state" document rots, and this one is recomputed from the roadmap, the decisions and git every time it runs. Reports what it could not read and why, since the structures it reads are young enough that an old window genuinely cannot be answered in full. |
script/apropos <word> |
Search every document in this repository and say where each one lives (milestone 40): 512 pages and five megabytes, every note, decision, roadmap block and repository-root document, plus every crate's and program's own module header. It is the guest's apropos builtin pointed at a checkout instead of at the six pages the filesystem image installs, and it is deliberately the same index and the same reader (documentation::index::build, documentation::index::search), so a defect in the layout shows up in both places. What differs is what a result names: at the nife prompt it names a page in the store you can open there, and here it names a path in this repository. It exists because of milestone 117's finding rather than for tidiness: three strangers reached neither notes/net.md nor notes/capabilities.md nor any design/decisions/ file by following the tree, and none found crates/moho_abi/src/lib.rs. Whole words only, no stemming, sixteen results, ranked by occurrence count; the header of the script carries the rest of its BUGS. The name is provisional. See nifeos/nife:notes/documentation.md. |
script/site [--install] |
Build the design record as a static website and report what the build found, milestone 1018 (the design record moves to nifeos/record and is published as a website) step 3. Eleventy renders every tracked Markdown file under design/, notes/ and briefs/, with AGENTS.md and ARCHITECTS.md, each numbered record at an address made of its kind and number alone (/roadmap/1018/), with each milestone N, §N and bare #N linked; Pagefind indexes it for search; a link check reads every internal link and fragment. Output in target/site/build/site/, the report in target/site/build/summary.md. Report-only: a break is counted and never fatal. It runs from a copy of site/ under target/site/builder/, with the packages installed there, so no node_modules lands in the tree; --install reinstalls them with npm ci --ignore-scripts. Node is pinned in site/.node-version, the packages in site/package-lock.json. .github/workflows/record-site.yml runs it on a pull request that touches the record and uploads the site as an artifact. Name provisional. |
script/names |
Who named this, when, and what was refused. Reads the Name: block every crate, program, script/ entry point and Cargo package carries in its own header (a package's lives in its Cargo.toml, the one file every package must have), so the table is computed rather than maintained. The first three kinds are directory listings; package is discovered by walking for Cargo.toml outside crates/, so one arriving tomorrow is covered without editing the script. helpers/ helpers are out of scope on purpose and design/naming.md's BUGS section prices the refusal. Each block is one of four words: ratified (calef ruled), recorded (the tree argues the name and cites where, but nobody put it to him), provisional (whoever chose it expects it to change; §89 (provisional becomes the fourth provenance state), 2026-08-16) or unrecorded (nothing says why). --unratified is the worklist, the last two states ordered by exposure: programs, then crates, then packages, then script/, and within a tier the unrecorded first. --refused lists every refused name and what holds the refusal, which is the query a proposer makes; --unrecorded is the narrower slice where research is still owed; <name> answers for one name, from the refusals as well as from the tree; --check fails the build on a name with no block and never on a name that is merely unratified, and is gated in lint. The name of this script is provisional, as is --unratified. See naming.md. |
script/review-status |
The crates' outside reviews, read from the record. Each crate review milestone's ## Finding status section holds one line per finding in the review's own order, each in one closed set of states: Done with its pull request, Open, Waiting on <what>, At the move, At the release, or Will not fix with its ruling date. No arguments prints one row per review with the count in each state and the open P0 findings; --open lists every finding that is not Done, with its milestone and severity; --check, gated in lint, refuses a line outside the set and a review whose status: disagrees with its findings. The totals are printed and never written into a document. Selftest in lint. Name provisional. |
script/architect-queue |
The architect's queue, oldest first, one item per two lines: number, how long the ask has waited, title, then the ask's first line and a link to it. An item is listed when it carries needs-architect or has an open question, a ## What I need from you comment (or body section) with no ruling recorded after it. helpers/open-question.jq decides "open", and the drain's hold-no-ask and ask-no-hold causes read the same file. Where label and question disagree the line says [unlabeled] or [no open question]. An empty queue says how many items it read. Reads the newest 100 open pull requests, 50 open issues and 30 comments on each. BUGS: a question asked only in a chat cannot appear, which is why the decisions skill requires it on GitHub, and a non-blocking ask on a pull request that merged leaves the queue unanswered. Name provisional. |
script/record-ruling <n> |
Record calef's ruling on pull request or issue <n> (--text, --file, or --link to where it is already recorded). Posts a ## Ruling comment carrying <!-- architect-ruling -->, then in one edit removes needs-architect and adds architect-ruled, plus held-by-lane with --held-by-lane for a send-back. --partial rules on some asks only and changes no label. Exits 1 if the labels did not swap; the drain's hold-no-ask cause catches the same state without anyone reading that. --dry-run prints the comment. Selftest: helpers/record-ruling-selftest.sh, run by script/lint. Provisional name (lane/architect-queue, 2026-10-06 UTC). |
script/metrics |
What moved, week by week. One CSV per measure under notes/project-metrics/, one row per ISO week in each, and the committed SVGs notes/project-metrics.md renders, which is the half of register-of-measures.md that changes. Milestones and decisions by status, code against comment lines with kernel/src split out, BUGS sections, Kani harnesses and what can falsify them, unsafe density, how many fatal risks have been put to an experiment, and how far the tree's prose runs over its own 3,000-word prose cap. --backfill walks history and --update recomputes the current week; both are idempotent, because every file is rewritten from a dictionary keyed by week rather than appended to, and --check is exactly that comparison. Milestone 581 (one metrics file per measure) split the data, so a new measure is a new file rather than two more columns on a 58-column line every other metrics branch was also editing; a measure's series begins at the week it was first measured rather than carrying blank cells back to 2026W29. Nothing here builds or boots, which is why the whole history costs seconds and why coverage is the one column left blank historically: it needs an instrumented build at every checkout, so it is filled going forward from an lcov file (--coverage-from), with the per-file minimum alongside it from script/coverage's own floor summary (--coverage-min-from). Deliberately not gated in lint, since any commit moves HEAD and would fail every pull request; the weekly workflow is the mechanism. Every row is a restatement under today's definitions, not what was reported at the time, and the page says so on its face. Name provisional. See project-metrics.md. |
What this file's numbers cite
Glossed here by the per-file rule. Each gloss is the record's own title.
- milestone 40 (Documentation as a system service: searchable, rendered, and installed by packages)
- milestone 117 (The stranger test: could someone build this and understand it without asking)
- milestone 247 (Follow-on work named by a finished milestone goes nowhere, and this is the third time)
- milestone 252 (A
PARTIALblock claims work is remaining and nobody re-reads it) - milestone 275 (A gate that diffs fatal risks against the roadmap it cites)