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 a SPEC.md — the kits, installer/ and companion/), 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-fresh byte-gates it).
  • The value rollup — docs/value.md is 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-fresh byte-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.md holds the nav slot, while docs/enforcement.md and docs/footprint.md are 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-fresh byte-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.md is the class registry’s projection, moved by a class-registry change rather than by a content edit. check-enforcement-fresh byte-compares it (bash gate-sdk/bin/run-gates.sh --emit enforcement-map > docs/enforcement.md). Its sibling docs/footprint.md is 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 and templates/ markdown and no SPEC body or script. It reads the worktree rather than the index, so no staging order binds its regen. Both are docs/value.md’s inputs, so a red in either implies a rollup regen.
  • The trajectory projection — docs/evidence-data.md is the published evidence extractor’s output (bash gate-sdk/bin/run-gates.sh --emit trajectory > docs/evidence-data.md, check-trajectory-fresh byte-gates it). The gate is declared by scripts/check-trajectory-fresh.gate, whose # graph: manifest couples the page to the harvested state files; since the harvest reads real git history, its good/+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-fresh and the trajectory arm govern this generated page, never the hand-authored TRAJECTORY.md ruling record, which no gate byte-checks.
  • The install-evidence projection — docs/install-evidence.md is the install-evidence arm’s output (bash gate-sdk/bin/run-gates.sh --emit install-evidence > docs/install-evidence.md, check-install-evidence-fresh byte-gates it); scripts/gates.list is 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 its good/+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.md is a root projection of the queue’s curated [roadmap:] tags (bash gate-sdk/bin/run-gates.sh --emit roadmap --write, check-roadmap-fresh byte-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.conf is the one statement of what Checkwright is and the words it is found by. bash gate-sdk/bin/run-gates.sh --emit product-statement --write renders it into six sites. README.md’s and docs/index.md’s product-statement blocks take the markdown rendering. The plain rendering goes to the description field of docs/_config.yml (every page’s default meta description), of installer/package.json (npm’s listing, at the next release), of reserve/crates/Cargo.toml and of native/Cargo.toml. The three manifests also carry the keywords. check-product-statement-fresh holds 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 in OPS.local.md. The site-health workflow’s About arm compares the About text daily with installer/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 in category or summary is refused, so the plain rendering loses nothing. keywords takes 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 .json or .toml site’s keywords field. A site’s extension selects its renderings. --write rewrites 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 agent index — docs/llms.txt and docs/llms-full.txt, served at the site root for a coding agent evaluating the tool. Both are projected from the nav model check-docs-nav-reachable reads, so a page joins them by taking a menu slot: llms.txt lists every menu page by section with a page’s description: as its note, and llms-full.txt carries the home page and every page outside its ## Optional section 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 --write writes both, and check-llms-fresh byte-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 in companion/fixtures/ or listed in companion/native.list, one column per companion/toolkits.list line: bash gate-sdk/bin/run-gates.sh --emit support-table --write (check-support-table-fresh byte-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-fresh byte-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-fresh byte-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’s couples= because a knob edit moves the graph artifact’s triggers (gate-sdk/SPEC.md §check-graph). Regenerate it with bash gate-sdk/bin/run-gates.sh --emit graph > docs/check-graph.html. The git hooks are no projection: --install-hooks places them untracked in the clone (gate-sdk/SPEC.md §install-hooks).
  • The agent-definition tiers — each .claude/agents/*.md model: line, and its effort: line where the class binds one, is generated from its tier: and DELEGATION_KIT_TIER_MODEL: bash gate-sdk/bin/run-gates.sh --emit agent-tiers --write (check-agent-tier-explicit assertion B byte-gates it).