Generated projections and their freshness gates
This page holds the roster of docs surfaces that are generated and byte-gated for freshness, each with its trigger and its gate.
Several docs surfaces are generated and byte-gated for freshness; each gate’s red output names its own regen command, so the command need not stay resident to be recoverable. A projection’s trigger is its gate’s trigger= (else couples=) and never a row’s prose. bash gate-sdk/bin/run-gates.sh --for <path> answers it for any path; --projection-witness, the projection_witness validate suite, holds it to what the gate reads.
- The on-site SPEC mirror (
docs/<dir>/SPEC.md,docs/<dir>/README.md,docs/doctrine-kit/DOCTRINE.md, for every top-level directory holding aSPEC.md— the kits,installer/andcompanion/), with every resolvable section citation in a SPEC or the doctrine rendered as a link (canon-kit/SPEC.md §The reference-link grammar):bash gate-sdk/bin/run-gates.sh --emit docs-mirror --write(check-docs-mirror-freshbyte-gates it). - The value rollup —
docs/value.mdis hand-framed prose around one generated marker block that joins the enforcement-map’s per-kit class counts to the footprint’s per-kit token cost:bash gate-sdk/bin/run-gates.sh --emit value-rollup --write(check-value-rollup-freshbyte-gates the block, the byte-fresh projection of the same arm without--write). The join reads the two emitters live, never the committed detail pages, so a stale page cannot poison the rollup; it reads them as structured values rather than rendered markdown, so the class taxonomy and the per-kit figures arrive as data and no heading or table row is ever re-parsed. The enforcement page owns the taxonomy. Its section order is the hardest-to-softest column order; the cost columns are the footprint’s per-kit token figure alone, its~<t>t, and an absent tier an em dash; the totals row reuses the footprint’s pre-summed totals rather than re-summing them; the kit axis follows the footprint roster, then any enforcement-only label (a surface under no kit) groups as(consumer). This is a consumer docs ruling. The join axis and column choice live here, never in a kit.docs/value.mdholds the nav slot, whiledocs/enforcement.mdanddocs/footprint.mdare its nav children, its drill-down pages. - The hook-arm knob tables — each page under
docs/hooks/is hand-written prose around one generated marker block, its member’s knob table:bash gate-sdk/bin/run-gates.sh --emit hook-knobs --write(check-hook-knobs-freshbyte-gates the blocks; its other reds are gate-sdk/SPEC.md §check-hook-knobs-fresh). A change in the crate moves the block, never a page edit. - The enforcement map —
docs/enforcement.mdis the class registry’s projection, moved by a class-registry change rather than by a content edit.check-enforcement-freshbyte-compares it (bash gate-sdk/bin/run-gates.sh --emit enforcement-map > docs/enforcement.md). Its siblingdocs/footprint.mdis the per-kit token cost (bash gate-sdk/bin/run-gates.sh --emit footprint > docs/footprint.md). Its measured set is narrower than “any kit file”, and that misreading is the standing mistake here: context-kit/SPEC.md §bin/footprint owns the set, which holds injected blocks andtemplates/markdown and no SPEC body or script. It reads the worktree rather than the index, so no staging order binds its regen. Both aredocs/value.md’s inputs, so a red in either implies a rollup regen. - The trajectory projection —
docs/evidence-data.mdis the published evidence extractor’s output (bash gate-sdk/bin/run-gates.sh --emit trajectory > docs/evidence-data.md,check-trajectory-freshbyte-gates it). The gate is declared byscripts/check-trajectory-fresh.gate, whose# graph:manifest couples the page to the harvested state files; since the harvest reads real git history, itsgood/+bad/pair supplies a synthetic emission as a second argument. Regen commit: drift-kit/SPEC.md §The published-evidence extractor. The name collides and the two surfaces are unrelated:check-trajectory-freshand thetrajectoryarm govern this generated page, never the hand-authoredTRAJECTORY.mdruling record, which no gate byte-checks. - The install-evidence projection —
docs/install-evidence.mdis the install-evidence arm’s output (bash gate-sdk/bin/run-gates.sh --emit install-evidence > docs/install-evidence.md,check-install-evidence-freshbyte-gates it);scripts/gates.listis the classifier the per-gate block sorts a red’s gate name against (drift-kit/SPEC.md §The install-evidence projection). Its gate is inert everywhere but the observing machine, by construction: the record is gitignored, so in CI, in a fresh clone and in an adopter’s tree there is nothing to re-emit from and the gate reports a counted zero. For the same reason itsgood/+bad/pair supplies a synthetic emission as a second argument, the trajectory gate’s shape. The page is committed carrying published zeros from the first build rather than held back until an install exists, so the freshness gate has a target and the roster row above it names a file that is there. - The roadmap projection —
ROADMAP.mdis a root projection of the queue’s curated[roadmap:]tags (bash gate-sdk/bin/run-gates.sh --emit roadmap --write,check-roadmap-freshbyte-gates its marker block). Never hand-edited, and never regenerated by the whole-file redirect the trajectory projection takes: the arm emits only the block, so a redirect destroys the prose above it. - The product statement —
scripts/product-statement.confis the one statement of what Checkwright is and the words it is found by.bash gate-sdk/bin/run-gates.sh --emit product-statement --writerenders it into six sites. README.md’s and docs/index.md’sproduct-statementblocks take the markdown rendering. The plain rendering goes to thedescriptionfield ofdocs/_config.yml(every page’s default meta description), ofinstaller/package.json(npm’s listing, at the next release), ofreserve/crates/Cargo.tomland ofnative/Cargo.toml. The three manifests also carry the keywords.check-product-statement-freshholds all six. The repository’s GitHub About and its topics are out of a gate’s reach. They are set by hand, after the account-selection step inOPS.local.md. Thesite-healthworkflow’s About arm compares the About text daily withinstaller/package.json’s description and reds its run on a difference.- The source holds three keys in the
key value…grammar, each exactly once and no other. The statement’s two keys may carry*…*emphasis and no other markdown: a backtick, a bracket, an angle bracket, a pipe or a control character incategoryorsummaryis refused, so the plain rendering loses nothing.keywordstakes one to five words matching[A-Za-z][A-Za-z0-9_-]{0,19}, crates.io’s grammar and the narrower of the two registries’. - The renderings. Markdown is
**<category>** <summary>, written between the<!-- product-statement:begin -->and<!-- product-statement:end -->lines with a blank line inside each marker. Plain is<category> <summary>with every*dropped, written as the field’s double-quoted string with"and\escaped. The keywords are one line, an array of quoted words in source order separated by,, written as a.jsonor.tomlsite’skeywordsfield. A site’s extension selects its renderings.--writerewrites each site’s block or fields and touches nothing else. It inserts no field, and it writes no site until every site has placed its own. - The gate compares in process with the arm’s renderings, one finding per stale slot. It exits 2 on an unreadable source or site, on a missing, repeated or unknown key, on a refused character or keyword. It also exits 2 when a site’s block or field is absent or occurs twice. Its positional form is
check-product-statement-fresh [source site…]. - Out of reach. npm’s listing trails the tree until the next publish, and crates.io carries the reservation’s until it is republished, so no arm compares either.
- The source holds three keys in the
- The agent index —
docs/llms.txtanddocs/llms-full.txt, served at the site root for a coding agent evaluating the tool. Both are projected from the nav modelcheck-docs-nav-reachablereads, so a page joins them by taking a menu slot:llms.txtlists every menu page by section with a page’sdescription:as its note, andllms-full.txtcarries the home page and every page outside its## Optionalsection in full, so an edit to any such page stales it. The summary is the product statement’s plain rendering.bash gate-sdk/bin/run-gates.sh --emit llms --writewrites both, andcheck-llms-freshbyte-gates them. Both files’ contract is The agent index. - The toolkit support table —
docs/spec-toolkits.md’s marker block, one row per check proven incompanion/fixtures/or listed incompanion/native.list, one column percompanion/toolkits.listline:bash gate-sdk/bin/run-gates.sh --emit support-table --write(check-support-table-freshbyte-gates it; companion/SPEC.md §The support table owns the rows). - The releases table —
docs/releases.md’s marker block, one row per release note:bash gate-sdk/bin/run-gates.sh --emit release-table --write(check-release-table-freshbyte-gates it; installer/SPEC.md §The releases table owns the rows). A note-authoring commit stales it, so the close that composes a note regenerates it in the same commit. - The install-size figure —
docs/requirements.md’s marker block, a profile table and a kit table of what the packer packs:bash gate-sdk/bin/run-gates.sh --emit install-size --write(check-install-size-freshbyte-gates it; installer/SPEC.md §The install size owns the rows). A commit moving a kit’s tracked set past the rounding stales it. It reads the index, so stage before its regen. - The graph artifact —
docs/check-graph.html, held fresh by one gate. Kit config sits in that gate’scouples=because a knob edit moves the graph artifact’s triggers (gate-sdk/SPEC.md §check-graph). Regenerate it withbash gate-sdk/bin/run-gates.sh --emit graph > docs/check-graph.html. The git hooks are no projection:--install-hooksplaces them untracked in the clone (gate-sdk/SPEC.md §install-hooks). - The agent-definition tiers — each
.claude/agents/*.mdmodel:line, and itseffort:line where the class binds one, is generated from itstier:andDELEGATION_KIT_TIER_MODEL:bash gate-sdk/bin/run-gates.sh --emit agent-tiers --write(check-agent-tier-explicitassertion B byte-gates it).