notes

How the project measures its own process

An appendix to nifeos/nife:notes/scripts.md, the front door to script/. It holds the full table rows for the commands that measure how the project itself is working. 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/rule-violations The violation ledger (milestone 118): totals the strikes recorded in notes/rule-violations.md against each documented rule and reports which have reached three. Cannot see a violation happen; it only totals what a table says somebody reported. --check fails (non-zero) when an open rule reaches the threshold, naming what to do (move the rule up the ladder, or mark it resolved) and whose call that is (calef's or the integrator's, never a lane's). A local row of script/ci-build (0.07 seconds), run in CI as a step of the lint job (milestone 341 (give the three instruments nothing runs a caller), §174 (a caller for each of the three uncalled instruments)); it is not part of script/lint itself. A threshold it reports as crossed is not a lane's decision to resolve. Name provisional. See rule-violations.md.
script/audits Is an audit due? Reads design/audit-reports/README.md and counts the tree: milestones built, components, the nifeos/moho_abi constant surface, and the external packages in every committed lockfile. §74's triggers are in the index rather than in the script, so milestone 93 adds documentation sweeps by adding a row. --due is the tripwire and exits non-zero when one is overdue, in its own weekly workflow so a due audit never blocks a merge; --check is the structural half (the index's two tables agree, every report resolves, every finding carries a disposition) and is gated in lint; --baseline prints the counts for a new row; --worklist ranks documents by how much of the code they cite has moved since they were last edited, which is how a documentation sweep picks its scope (milestone 93, a heuristic with no exit status rather than a signal). It never runs an audit: red means run the audit, not "an automation ran it for you". Name provisional. See design/audit-reports/README.md and documentation-audit.md.
script/cadence-check Which scheduled workflows have stopped producing a result? Reports any whose last successful scheduled run is more than 15 days old, two weekly cadences plus a day, so one missed Monday is weather rather than news; a workflow too young to have fired is excused by its own creation date. Built for milestone 238 (two scheduled checks have never once succeeded, and one of them is a fatal risk's refresh) after milestone 232 (audit every check against two questions: does anything run it, and does it block) found mutation testing red four weeks running and the Miri check red three, holding up a fatal risk whose verdict rests on a weekly report that was never published. Deliberately not a scheduled workflow, which is the whole design: a cron that watches crons dies the way its subjects die. Delivery is helpers/trunk-health.sh, which runs under launchd and could not see this on its own, because its trunk check filters runs to main's current tip and a weekly run matches that tip only until the next merge. Not in lint or gates, for script/audits' recorded reason: a dead cadence is not a defect in the commit that trips it. Since milestone 519 (what this project costs, tracked where it cannot rot) it also carries the one cadence that is not a workflow and could not be: whether script/effort has captured the current week, asked of the committed file rather than of a run, because a GitHub runner cannot see the session records that capture reads. Name provisional. See notes/check-inventory.md.
script/redo-rate How often does work handed to a rented model have to be done again? Reads notes/delegation/ledger.tsv, one append-only row per delegated task, and reports the split between clean, defect and redo. It cannot be a gate and that is the point: every row in the ledger passed script/lint, script/citations --ratchet and script/roadmap --check, and the defects are the ones no gate can see, a true sentence deleted or two meanings folded into one string. So the verdict is a reviewer's judgment recorded by hand and this script only counts. Built 2026-09-22 alongside the measurement in notes/what-a-session-carries.md: that one says where the tokens go, this one says whether the cheap ones were worth it, and neither means much alone. First five rows: 40% clean, 40% defect, 20% redo. Name provisional.
script/nanny [--survey] Works the merge queue by delegating it: runs briefs/survey-the-queue.md read-only, then briefs/rebase-onto-main.md in the worktree of every branch GitHub reports as DIRTY. It does not push and it does not enqueue, because a conflict resolution is a judgment and nothing here can check which one happened: taking main's baselines rather than hand-merging them is the difference between a correct rebase and a wrong benchmark floor shipped as housekeeping. Built 2026-09-22 after the maintainer measured its own session at 233M tokens a day against 5M for twenty lanes, wrote the rebase brief, measured a delegated rebase at $0.055 with no redo, and then hand-rebased four branches without reaching for it. Each felt too small to delegate, which is AGENTS.md's ladder exactly: the rule was rung four, a resolution held in a head. A duty that depends on remembering is not a mechanism, so the default path delegates and doing it by hand now takes more effort than not. Refuses to run without the gateway rather than falling back to the expensive session, because a silent fallback restores the habit. Name provisional.
script/effort [--csv|--snapshot|--update|--check] How much machine effort did this project spend, per ISO week? Reads the agent harness's own session records on this machine (~/.claude/projects/), deduplicates a streamed response by its request id, and writes notes/project-metrics/effort.csv: one row per week and model, tokens split four ways because the API prices them between 0.1x and 2x of each other, and an hours figure that sums in-flight time across parallel lanes and says so. Built for milestone 519 (what this project costs, tracked where it cannot rot), whose deadline is the reason it exists: every other column on the metrics deck is computed from a git revision and backfills, and these records are outside the repository and are discarded. The first capture, 2026-09-21, found 2026W34 onward and found nothing for the project's first five weeks; those are recorded as absent, never as zero. --snapshot writes a machine-local cache outside the tree so a week outlives its transcripts and is safe to run from launchd; --update refuses to lower a figure a past week already carries, which is what a pruned transcript looks like. Not in lint: it reads one machine and would fail everywhere else. Name provisional.
script/stranger-test Hand this repository to a process that has never seen it, and record what it could not work out (milestone 117). Clones at a commit inside the stranger's working directory rather than as it, which is the whole isolation: project instructions load from ancestors and never from descendants, so no AGENTS.md arrives at turn zero while the file is still in its tree to be opened. Withholds the answer key, keeps its own artifacts in a sibling directory with no run number in any path element, scopes pkill and killall to this clone's QEMU, probes the isolation rather than assuming it, tells the stranger it is being measured, and debriefs it. --prepare-only builds the tree and stops; --smoke exercises the pipeline with a trivial task and is not a measurement. The run is never in CI and never can be: it spawns a claude process, spends real budget, needs the toolchain and both QEMUs, and ends in a debrief a person scores. What is in CI is the cadence, calef's monthly decision of 2026-08-18 made mechanical: --due exits non-zero when a run is owed and lives in its own weekly workflow so a due run never blocks a merge, and --check (the cadence sentence appears once, any pause is one well-formed line, the run headings are numbered without a gap and in date order) is gated in lint. While the note's pause line stands, --due prints "suspended" and exits 0; the cadence is paused until the kernel leaves nife. Both read the interval and the last run's date out of the note, so the schedule and the record cannot disagree; neither runs the test, and red means run it. Name provisional. See stranger-test.md.

What this file's numbers cite

Glossed here by the per-file rule. Each gloss is the record's own title.