[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C9TSKQMG5DV71E3BCPR6N9":3,"skill-same:01M7C9TSKQMG5DV71E3BCPR6N9":74},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":14,"repositoryHtmlUrl":36,"repositoryHomepageUrl":37,"ownerHtmlUrl":38,"ownerBlogUrl":39,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M7C9TSKQMG5DV71E3BCPR6N9","audit-docs",null,"Audit documentation indexes, frontmatter, and links. Apply safe additive repairs; request confirmation for destructive changes.","bionic-coding\u002Fcrux","bionic-coding","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F301040008?v=4","01M7C9T2NA1V1V0EF1M552HRB3","Bionic Coding","01M7C9T2P72H1AQV5T5PTBFNHN",0,"MIT","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Faudit-docs\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: audit-docs\ndescription: \"Audit documentation indexes, frontmatter, and links. Apply safe additive repairs; request confirmation for destructive changes.\"\ncontext: fork\nmodel: opus\nmetadata:\n  tags: \"audit, integrity, validation, drift-detection\"\n  bundles: \"crux-docs\"\n  risk_level: \"low\"\n  requires_access: \"write-tree\"\n  triggers: \"audit docs | check docs | find drift | verify docs integrity\"\n  routing_note: \"Full vault-walk; mostly read-only.\"\n---\n\n# Audit Docs\n\n> **Execution context:** this skill runs in a forked subagent and returns a summary to the caller. The fork does not see the main-thread conversation, so pass any needed context explicitly at invocation.\n\n\u003C!-- BEGIN GENERATED: runtime-compat -->\n## Runtime compatibility\n\nThis skill is portable across Claude Code, Codex, OpenCode, and OMP (Oh My Pi). This section overrides platform-specific labels below.\n\n- Before running a command that uses `CRUX_PLUGIN_ROOT`, set it to the installed plugin root. In Claude Code, use the value of `CLAUDE_PLUGIN_ROOT`. In Codex, OpenCode, and OMP, derive it from the absolute path of this selected `SKILL.md`: the plugin root is the parent of its `skills\u002F` directory (in OMP `bash`, `skill:\u002F\u002F\u003Cname>` resolves to the skill directory). In a source checkout, use the checkout `crux\u002F` directory.\n- For project-local skills, use `.claude\u002Fskills` in Claude Code, `.agents\u002Fskills` in Codex, `.opencode\u002Fskills` in OpenCode (which also reads the singular `.opencode\u002Fskill`), and `.omp\u002Fskills` in OMP. Set `CRUX_LOCAL_SKILLS_DIR` to that path before following any command below that uses it.\n- Translate Claude Code tool labels such as `Agent`, `Read`, `Write`, `Bash`, `WebSearch`, and `WebFetch` to the matching capability in the current session. Codex names its own capabilities; OpenCode uses the lowercase forms `subagent`, `read`, `edit`, `shell`, `websearch`, and `webfetch`, where `edit` covers both `Edit` and `Write`; OMP uses `task`, `read`, `edit`, `write`, `bash`, `grep`, `glob`, `find`, `todo`, and `web_search` (where `read` also handles URLs and `skill:\u002F\u002F` URIs). Do not attempt to invoke the Claude Code labels as literal commands on another host.\n- Install the generated role agents before delegating: `install-codex-agents` in Codex, `install-opencode-agents` in OpenCode, `install-omp-agents` in OMP. Codex names them `crux_architect`, `crux_brainstormer`, `crux_commander`, `crux_dev_lead`, `crux_developer`, `crux_historian`, `crux_librarian`, `crux_night_gardener`, `crux_reviewer`, and `crux_wayfinder`; OpenCode and OMP use the bare role names `architect`, `brainstormer`, `commander`, `dev-lead`, `developer`, `historian`, `librarian`, `night-gardener`, `reviewer`, and `wayfinder` (in OMP, `scout` may also be used for reconnaissance alongside `wayfinder`). If a required role or capability is unavailable, report that truthfully instead of claiming it ran.\n- Argument placeholders such as `$adr` and `$book` bind only in Claude Code. On a host without argument binding they are unset — take the value from the user's phrase. The \"Fields OpenCode ignores\" section of `OPENCODE_GUIDE.md` names the invocation-control fields OpenCode ignores.\n\u003C!-- END GENERATED: runtime-compat -->\n\n## Current cycle records\n\nValidate new cycle records through `cycle.py show` and the cycle schema. Review\nidentity, phase\u002Fpass state, references, history, and evidence. Legacy CHK-CYCLE and\npromptbook minimum\u002Fmodule checks below apply only to historical promptbooks; never\napply them to new cycle records or repair a cycle into a promptbook.\n\n\n\n## Overview\n\nThe integrity check for the entire `docs\u002F` tree. Mirrors the samples `audit-vault` pattern but spans seven concerns: code, research, ADRs, briefs, journal, promptbooks, and invariants — plus the derived `arch` spine. Detects every form of drift between `docs\u002Findex.md`, the per-concern indexes, the files on disk, and the cross-concern reference graph (ADR ↔ brief, ADR ↔ research, journal ↔ ADR\u002Fpromptbook, promptbook ↔ run-snapshot). For the two other regenerated artifacts (`docs\u002Fcode\u002F`, the skill catalog) it detects drift and recommends the regenerator; for the `arch` spine it regenerates in place (CHK-ARCH-1) — arch's inputs are all committed in-tree, so a regenerate can never capture in-flight uncommitted source.\n\nThe audit is **mostly read-only**. Findings are applied in three phases: DRIFT auto-fixes happen with notification; safe-BROKEN fixes happen with notification; destructive-BROKEN fixes require explicit user confirmation. Never auto-deletes a file. Never auto-rewrites an ADR body, a synthesis page's prose, a run-snapshot body, or a journal entry. Never edits past operations-log entries.\n\nAround 97 checks across eighteen concern groups plus the schema\u002Finbox layer. Run on every ~10 writes per concern; proactively recommend after a `refresh-research-sources` batch updating >5 sources, after a `mix docs`-driving refactor, before any release, and after an `init-docs --force` or schema migration.\n\n## When to use\n\n- User says: \"audit\", \"audit docs\", \"audit the docs\", \"check docs\", \"verify integrity\", \"find drift\", \"is the docs tree clean?\".\n- Proactively after every ~10 writes per concern. Track in the operations log under `docs\u002Flog\u002F` — when the count since the last audit reaches ~10 for a concern, mention it.\n- Immediately after a `refresh-research-sources` batch updating >5 sources.\n- Before any release or external publication.\n- After a tree-schema recovery with the tagged release; audit the upgraded copy with the current version.\n\nDo **not** use this skill for:\n- Routine per-write verification — each writing skill has its own checklist.\n- Regenerating `docs\u002Fcode\u002F` — that's `extract-code-docs`. The audit only calls `extract-code-docs --dry-run` to detect drift.\n- Repairing destructive findings without user confirmation — surface them, don't act.\n\n## Severity tiers\n\n| Tier | Definition | Default action |\n|---|---|---|\n| **BROKEN** | A schema or cross-reference contract is violated. Cannot be ignored. | Block clean-audit. Auto-fix if additive and safe; ask if destructive. |\n| **DRIFT** | Counts, dates, indexes, or rollups out of sync with reality. Recoverable bookkeeping. | Auto-fix with notification. |\n| **WARNING** | Informational. May or may not be a problem. | Report only. |\n\n## The pipeline\n\n### 1. Decide walk strategy\n\nBefore recursive walking or configuration discovery, prune retained demonstration holdings: list the holdings once with `uv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fauthority-view.py\" retained-roots --repo-root \u003Crepo-root>` and skip each listed root during recursive walks; test one path with `uv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fauthority-view.py\" retained --repo-root \u003Crepo-root> \u003Cpath>` (exit 0, `retained` true or false). Apply this exclusion before split-tree detection, record parsing, census and allocation counts. Never inspect held manifests or nested configuration during those checks. A layout refusal stops the walk before repairs. The holding contract is `docs\u002FAGENTS.md` §3; direct concern globs need no recursive scan.\n\nBefore authority-dependent checks or a clean-audit conclusion, run `uv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fauthority-view.py\" state --repo-root \u003Crepo-root>`. Exit 0 reports `original` (no clause migration was ever published, so every ADR clause governs as its record says; this is the normal state) or `published` (a migration publication was proved from full Git history, so the clauses it moved are historical evidence, not current constraints). Exit 1 prints `{\"authority\": \"none\", \"limit\": \"\u003Ccode>\"}`: current authority is unknown. Never fall back to an older ADR body or resolver. The common code is `history-unavailable`, a shallow clone of a tree that published a migration; fetch full history with `git fetch --unshallow`. Exit 2 is an environment error. A refusal stops those checks; report it and preserve files. Do not infer publication from an applied flag, summaries, doctrine or an existing roster. Implementation Decisions preserve reviewed intent; results preserve delivery evidence; neither establishes current source state or enters ADR\u002Fobservation governance through a filename, quotation or mapping. Preserve historical references and surviving architectural clauses within mixed records. Audit may report a genuine architectural conflict; replacing a conforming implementation alone is no revocation finding.\n\nCount total `.md` files under `docs\u002F` after pruning holdings through the shared predicate. An unpruned recursive count includes retained records.\n\n- **Fewer than ~100 files**: walk inline in the main session using Read\u002FGlob\u002FGrep.\n- **100 or more**: spawn an Explore agent with the walk prompt below. The agent returns a structured findings report; the main session applies fixes.\n\nAlso count per-concern files for the rollup numbers used in `docs\u002Findex.md`.\n\n### 2. Walk and collect findings\n\nThe walk produces a categorized findings list across eleven concern groups (plus the 1.A schema\u002Finbox layer). Each check is named so it can be reported individually.\n\n#### Concern 0 — Per-repo configuration (the repo-root `.crux` file, per `docs\u002FAGENTS.md` §14)\n\nRuns FIRST — the resolved `docs_dir` is the docs root every later check walks. This is the repo-root `.crux` *file* (per-project config, designed to be committed so the team shares it — works identically untracked), not the user-home `~\u002F.crux\u002F` *directory*. All `ADR-NNNN-*` \u002F `PB-NNNN-*` filename globs and id regexes throughout this skill accept an optional artifact prefix per docs\u002FAGENTS.md §14.3 (dual-form: `([A-Z][A-Z0-9]{1,9}-)?(PB|ADR)-(\\d{4})`).\n\n- **CHK-CFG-1** Validate the repo-root layout config via the loader semantics: invoke `python3 \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fbionic-config.py\"` (the retained `crux-config.py` is a back-compat delegator to the same entrypoint; either works). Delegate — do NOT re-implement the textual\u002Fcontainment validation or read the YAML ad hoc. Per the `docs\u002FAGENTS.md` §14 config contract, the CLI resolves the precedence `.bionic.yml` > legacy `.crux` > content-validated bare-directory discovery > default, reporting which won via `source` (`\".bionic.yml\" | \".crux\" | \"discovery:\u003Cdir>\"`, with combined forms like `\".bionic.yml+discovery:\u003Cdir>\"` when a keyless config falls through to discovery). Exit 0 → clean; hold the resolved `docs_dir`\u002F`artifact_prefix` for the rest of the walk. Exit 1 → BROKEN, reporting the `{\"error\": ...}` message verbatim (a malformed\u002Finvalid config never falls back to defaults or to the lower-precedence file — per the `docs\u002FAGENTS.md` §14.1 fail-loud rule). Both files absent is clean (discovery resolves the tree; `source: \"discovery:\u003Cdir>\"` when no config exists — `\"defaults\"` is not emitted). A `.bionic.yml` coexisting with a legacy `.crux` is EXPECTED during migration and is NOT a finding (the CLI just reports `source: \".bionic.yml\"`). The invariants concern and the tree relocation both shipped; `docs_dir` names the tree and the check suite lives inside it (see §14\u002F§15).\n- **CHK-CFG-2** Prefix consistency. Dual-form scan of artifact ids across the tree with `([A-Z][A-Z0-9]{1,9}-)?(PB|ADR)-(\\d{4})`; collect the distinct prefix spellings (capture 1, with \"bare\" counting as one). More than one distinct prefix in the tree, OR the dominant prefix ≠ the current `.crux` `artifact_prefix` value → WARNING (mixed trees are valid per `docs\u002FAGENTS.md` §14.3 — ids are immutable history — but one repo SHOULD converge on one prefix; this is where a typo'd prefix like `CRUX-` vs `CRX-` surfaces).\n- **CHK-CFG-3** Split-tree backstop. A crux-shaped docs tree (a directory containing a `manifest.yml` with a readable `schema_version`) exists at any location other than the configured `docs_dir` — **including the default `.\u002Fdocs\u002F` in a repo whose `.crux` relocates the tree** (the silent second tree a pre-`.crux` toolchain creates by ignoring the file) → BROKEN. Surface both paths and recommend consolidation; never auto-delete or auto-merge.\n- **CHK-CFG-4** `(type, NNNN)` uniqueness across spellings (the `docs\u002FAGENTS.md` §14.3 allocation invariant, asserted mechanically). Dual-form scan `([A-Z][A-Z0-9]{1,9}-)?(PB|ADR)-(\\d{4})` over the tree's artifact filenames and ids; group by (capture 2, capture 3); any pair duplicated across bare\u002Fprefixed spellings (e.g. both `PB-0040` and `CRX-PB-0040`, or two different prefixes on the same number) → BROKEN (numbers are never reused, including across prefixes; any max-derivation likewise takes the integer max over capture 3 across bare AND prefixed artifacts).\n\n#### Concern 1 — Master index and log (mostly DRIFT)\n\n- **CHK-MI-1** Every concern enabled in `manifest.yml`'s `concerns_enabled` has a corresponding section in `docs\u002Findex.md`. Missing section → DRIFT (auto-add header + rollup). Section for a concern NOT in `concerns_enabled` → WARNING (concern was probably disabled but section wasn't removed; ask). **`docs\u002Finbox\u002F` is NOT a concern** — it is cross-concern staging (per `docs\u002FAGENTS.md` §11 \"inbox is staging\") and is deliberately absent from `concerns_enabled`, so CHK-MI-1 must NOT demand a `## Inbox` section in `docs\u002Findex.md`. The inbox is excluded from the concern-section walk exactly like `docs\u002FAGENTS.md`\u002F`docs\u002FREADME.md` (see the non-concern excluded-paths list); its only audit coverage is CHK-SCHEMA-1 + CHK-INBOX-1\u002F2\u002F3. **`arch` is a concern but is likewise exempt from this master-section requirement** — it is derived and regenerated (per `docs\u002FAGENTS.md` §4 \"arch\"), its catalog is its own `\u003Cdocs_dir>\u002Farch\u002Findex.md` plus the spine hash, and a dated master-index rollup row would violate arch's no-timestamp rule. So CHK-MI-1 must NOT demand or auto-add an `## Arch` section in `docs\u002Findex.md`; arch's coverage is CHK-ARCH-1\u002F2 (Concern 8).\n- **CHK-MI-2** Each concern section's file count in `docs\u002Findex.md` matches the actual file count for that concern. Mismatch → DRIFT (auto-fix). **The ADRs rollup has a vendored regenerator:** `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fgenerate-index-rollup.py` rebuilds the `## ADRs (N)` section of `docs\u002Findex.md` as a pure function of ADR frontmatter (`--dry-run` is its drift gate, exit 1 on drift). For that one section prefer running the regenerator over hand-fixing, and wire its `--dry-run` into whatever suite this repo gates on. **Every other concern rollup (research, briefs, journal, promptbooks, invariants, code) is prose-checked here only** — a passing ADR-rollup gate says nothing about them.\n- **CHK-MI-3** `docs\u002Findex.md` has a top-of-file `_Last updated: YYYY-MM-DD_` line. Missing or stale (older than today after a fix) → DRIFT (set to today on any audit fix; otherwise leave).\n- **Operations-log checks (CHK-LOG-1 to CHK-LOG-7).** Run `uv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Foperation-log.py\" check --repo-root \u003Crepo-root>` and report its JSON. It exits 0 clean, 1 with findings, 2 on an environment fault. The checks read the op-enum regexes from the tree's own `docs\u002FAGENTS.md` §6, which stays the single source of truth for them — do NOT restate the enum here. The historical-reader form accepts both `cleanup-campsite` and the legacy `cleanup` (frozen history predating the rename).[^log-enum] A legacy `docs\u002Flog.md`, a stray and a staged file are all read, so each check covers every log file.\n- **CHK-LOG-1** Every `## ` heading outside a fence in every detail file `docs\u002Flog\u002FYYYY-MM.md`, legacy `docs\u002Flog.md`, staged file and stray matches the §6 historical-reader regex and carries a real calendar date. It also reports an entry that ends inside an open fence and a detail file whose bytes outside its entries leave a fence open. Malformed → DRIFT-surface (do NOT auto-edit; surface for user review).\n- **CHK-LOG-2** Each detail file's bytes outside its entries are exactly the detail header of §6. Otherwise → DRIFT (never auto-edited; the finding prints the expected header). No check orders heading dates within a file: a file holds entries in write order, so a merged stray block, a backdated write and a release heading dated in another zone each break date order legitimately.\n- **CHK-LOG-3** The log, every log file read together, holds the bootstrap `init` entry from `init-docs`. Missing → BROKEN (ask; never auto-regenerate).\n- **CHK-LOG-4** Every operation logged with `\u003Cop>` outside the enum → BROKEN (typo or unauthorized op; surface). A §6 with no historical-reader block adds a WARNING; one with no op-enum block is BROKEN.\n- **CHK-LOG-5** A legacy `docs\u002Flog.md`, a stray, a staged legacy file, a staged stray, a split transaction file, or no completion record → DRIFT; the auto-fix runs `operation-log.py repair`, which is lossless, and surfaces its refusal. Three states are conflicts with no auto-fix, reported BROKEN: two distinct staged legacy files, a staged legacy file and a staged stray with equal bytes, and a staged legacy file beside the completion record.\n- **CHK-LOG-6** A file in `docs\u002Flog\u002F` whose name §6 does not define, a log file that is a symlink or not a regular file, or a `docs\u002Flog\u002F` that is not a directory → BROKEN. A leftover writer temporary `.write-journal-\u003Chex>` → WARNING.\n- **CHK-LOG-7** `generate-log-summary.py --dry-run` reports a region failure → DRIFT, auto-fixed by running `generate-log-summary.py`; a structure failure → DRIFT with no auto-fix (edit `docs\u002Flog\u002Fsummary.md` by hand, or run `operation-log.py repair`); pending months alone → WARNING, cleared by `cleanup-campsite`.[^log-gate]\n\n#### Concern 1.A — Schema version and inbox (see `docs\u002FAGENTS.md` §7)\n\nThe supported-range predicate is the single-value check `schema_version == \"5\"`. The current plugin operates only on that tree schema. It recognizes `\"2\"`, `\"3\"`, and `\"4\"` only to direct recovery through the pinned `v3.23.2` release. A missing, earlier, newer, or unrecognized value has no promised migration route. Read `manifest.yml` with a real YAML parse. CHK-INBOX-1\u002F2\u002F3 apply only at schema 5.\n\n- **CHK-SCHEMA-1** `manifest.yml` carries `schema_version == \"5\"` with no in-flight `.migrating` marker. Any other value or marker → BROKEN. For `\"2\"`, `\"3\"`, or `\"4\"`, and for a valid partial marker, give the pinned recovery route in [`references\u002Fmigrate-mode.md`](references\u002Fmigrate-mode.md). An invalid marker or ambiguous pair of trees refuses without guessing. For every other schema value, report incompatibility without promising conversion. Never auto-bump the value or change a marker.\n- **CHK-INBOX-1** At schema 5, `docs\u002Finbox\u002F` exists. Missing → BROKEN. Inspect the tree and repair the missing directory without treating it as an older schema; do not auto-create it during a plain audit.\n#### Concern 1.B — Repository instruction files (see `docs\u002FAGENTS.md` §18)\n\n`AGENTS.md` is the canonical file at every managed instruction scope. These rules\nare **report-only in a plain audit**; `--migrate` applies the validated plan. Run\nthe vendored script rather than reimplementing discovery here — it owns the\nscope boundary, the classification, and the set-aside:\n\n```bash\nuv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fmigrate-instructions.py\" --repo-root . --dry-run\n```\n\n**Two sets, and conflating them is the defect these rules exist to prevent.** The\nMUTATION set is the entries and index paths of each touched scope of this one\ncheckout: a directory holding a tracked instruction file. A vendored dependency\ncache and a linked worktree hold no file tracked here, so they are outside it by\nconstruction. The SUPPRESSION set is wider and includes untracked files, because a\nfile crux must not touch can still silence the canonical one.\n\n- **CHK-INSTR-1** No managed scope holds a committed `CLAUDE.md`. One present →\n  DRIFT, remediation `audit-docs --migrate`. Never migrate during a plain audit.\n- **CHK-INSTR-2** No scope holds two names in one case-folded family (`CLAUDE.md`\n  plus `Claude.md`), counted across the directory and the index → BROKEN.\n  `--migrate` refuses the scope rather than guessing which name wins, and the\n  report names both paths and the next step.\n- **CHK-INSTR-3** Every suppressor under the checkout is reported with its remedy:\n  an untracked `CLAUDE.md`, a `.claude\u002FCLAUDE.md`, a `CLAUDE.local.md`, and a\n  tracked legacy `CLAUDE.md` that has not yet migrated. A suppressor **on the chain\n  from the root to the working directory** is WARNING, because under the host's\n  default mode it silences the canonical file outright. One **off** that chain is\n  INFO — it is reported, and it changes nothing about what this host loads now.\n  Never delete a private override; report it.\n- **CHK-INSTR-4** A scope `--migrate` refused, stopped, or migrated without\n  staging, a scope whose index holds a path its directory no longer lists, and every\n  set-aside entry (`\u003Cname>.crux-set-aside-\u003Chash>`) → WARNING.\n  Some set-asides hold content that no longer loads, and the report's\n  `no_longer_loaded` list names them. Other set-asides hold a winner, or a loser the\n  winner imported, and that content still loads. A set-aside row carries no next\n  step. A refused or stopped scope names its blocking entry and a next step. A\n  scope that stages nothing names its reasons in `stages_nothing_because`, and its\n  index-only blobs with a save command. Each blocks its own scope and no other.\n- **CHK-INSTR-5** The host loads what this tree publishes. Run\n  `uv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-claude-compat.py\" --repo-root .`; an\n  unsupported verdict is a WARNING carrying the verdict's own `reasons`. A version\n  number alone never settles this, so never report compatibility from one. Three of\n  the five host causes are repaired by a setting rather than a file; the remaining two\n  route to [`references\u002Flegacy-claude-adapter.md`](references\u002Flegacy-claude-adapter.md),\n  which is opt-in and never part of a normal install. `managed-only` is repaired by\n  configuration alone and never by the adapter. A sixth cause is a missing\n  `AGENTS.md`: no `AGENTS.md` on the chain from the root to the working directory\n  (and, under `claude-md-and-agents-md`, no `CLAUDE.md`) means the host loads none\n  of this tree's instructions. Its remedy is to create an `AGENTS.md` spelled exactly so. `init-docs`\n  creates one only while it initialises a tree in a root that holds no `AGENTS.md` or `CLAUDE.md` in any\n  letter case. A `CLAUDE.local.md` does not block that create. The remedy is never the adapter, which derives from that file.\n\n- **CHK-INBOX-2** At schema 5, `docs\u002Fresearch\u002Fnew\u002F` is absent. Present → DRIFT. Inspect its contents and move pending drops into `docs\u002Finbox\u002F` without overwriting or deleting them; never auto-delete this directory during a plain audit.\n- **CHK-INBOX-3** When `schema_version == \"5\"`: count non-`.gitkeep` entries in `docs\u002Finbox\u002F` **excluding the `_dispatched\u002F` subtree** (a partially-drained `urls.md` legitimately counts). Non-empty → WARNING `\"N items pending in docs\u002Finbox\u002F\"` (NOT BROKEN — pending drops are normal; the user runs `process-inbox` to triage). Empty → no finding.\n\n#### Concern 1.B — Invariants (per `docs\u002FAGENTS.md` §15; conditional on `schema_version == \"5\"` AND `invariants` in `concerns_enabled`)\n\nThe invariants concern has a ledger under `\u003Cdocs_dir>\u002Finvariants\u002F` (a walked concern, gets a `docs\u002Findex.md` section) AND an executable check suite at `\u003Cdocs_dir>\u002Finvariants\u002Fchecks\u002F` reconciled via the `.bionic.yml`-rooted manifest (NOT a docs concern section — the surface the rules below reconcile). All CHK-INV rules read the canonical schema in `docs\u002FAGENTS.md` §15 (do NOT restate it here). When the concern is disabled (or the tree is pre-v4), these rules are silent. Pin-level `last_result` is the §15.4 aggregate (`fail`>`stale`>`pass`>`none`). The rules are reference-implemented and tested in `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fcheck_invariants.py` (exit 0 clean \u002F 1 findings, JSON on stdout) — CHK-INV MAY delegate to it, the same pattern CHK-CFG-1 uses for `crux-config.py` and CHK-CAT-3 for `validate-catalog.py`.\n\n- **CHK-INV-BIJECTION** pin↔ledger-page is 1:1: a ledger page with no parseable `id`, a duplicate `id`, or a reconciliation entry naming a pin with no ledger page → **BROKEN**.\n- **CHK-INV-ORPHAN-CHECK** every check in `\u003Cdocs_dir>\u002Finvariants\u002Fchecks\u002F` resolves via the reconciliation to exactly one existing pin; a check tracing to no\u002Fmissing pin, or a `check_id` absent from the suite → **BROKEN**.\n- **CHK-INV-DECORATION** a `ratified` pin with no resolvable check OR aggregate `last_result: none` → **BROKEN** (a trusted pin nothing proves). An `observed` pin with zero checks is NOT flagged (expected known-unknown).\n- **CHK-INV-FAILING** a `ratified` pin whose aggregate `last_result` is `fail` → **BROKEN**; `stale` → **WARNING**.\n- **CHK-INV-DANGEROUS** an `observed` pin with aggregate `last_result: pass` → **WARNING** (a green check that may be cementing unratified behavior). Plus **survey-debt**: surface the count of `observed` pins (never as a coverage percentage).\n\n#### Concern 1.C — Observations (per `docs\u002FAGENTS.md` §17; conditional on `observations` in `concerns_enabled`)\n\nThe observations concern has a set of records under `\u003Cdocs_dir>\u002Fobservations\u002F` (a walked concern, gets a `docs\u002Findex.md` section) plus `\u003Cdocs_dir>\u002Fobservations\u002Findex.md`, which is **hand-maintained** by `propose-observation` \u002F `transition-observation` — not a regenerated artifact. An index row naming a record with no file, or a file with no index row, is therefore a real finding, never something to silently rewrite. All CHK-OBS rules read the canonical schema in `docs\u002FAGENTS.md` §17.1 (do NOT restate it here) and the lifecycle in §17.2. They are reference-implemented and tested in `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fcheck_observations.py` (exit 0 clean \u002F 1 findings, JSON on stdout) — CHK-OBS MAY delegate to it, the same pattern CHK-INV uses for `check_invariants.py`. When the concern is disabled, these rules are silent, and so is the checker.\n\n> **`\u003Cdocs_dir>\u002Fobservations\u002F_surveys\u002F` is EXCLUDED from every CHK-OBS record walk.** It is the frozen holding area for signed review sheets and their receipts, on the `docs\u002Fpromptbooks\u002Flegacy\u002F` model: present on disk, invisible to the concern walk, and carrying no `docs\u002Findex.md` section. The record walk is `*.md`-scoped and the live sheet is `\u003Cdocs_dir>\u002Fobservations\u002Fsurvey-SVY-NNNN.yml`, so neither the live sheet nor anything under `_surveys\u002F` is a record — a `.yml` beside the records is never a stray-file finding. Do **not** glob `_surveys\u002F` for CHK-OBS-BIJECTION (record↔file), CHK-OBS-ANCHOR, CHK-OBS-EVIDENCE, CHK-OBS-DECIDED, or CHK-OBS-STALE. Its only coverage is the four CHK-OBS-SURVEY-* rules below, which read it as batch state rather than as records.\n\n- **CHK-OBS-BIJECTION** record↔file is 1:1: a file under `\u003Cdocs_dir>\u002Fobservations\u002F` with no parseable `id`, a duplicate `id`, an `id` that disagrees with its filename, an index row naming a record with no file, or a record file whose `id` appears in no index row → **BROKEN**. The last direction is the reverse of the one before it, and both run only when `index.md` exists.\n- **CHK-OBS-ANCHOR** `anchor_id` is present on every record and matches `^[0-9a-f]{16}$` → **BROKEN** when it is absent or malformed. No two records in `observed` or `ratified` status share an `anchor_id` → **BROKEN** on a collision. This is what makes a re-mine recognize a fact already recorded (§17.2); a record missing the field is silently skipped by the re-mine, which then proposes a duplicate.\n- **CHK-OBS-EVIDENCE** every `evidence` entry matches the `path:line-range` grammar, and a `ratified` record resolves every path it cites → **BROKEN** on an unresolvable path, an unparseable entry, or an empty `evidence` list. A cited path must also resolve to a location inside the repository root: an absolute path, a `~`-prefixed path, a `..` traversal, or a path reaching outside the root through a symlink is the same finding.\n- **CHK-OBS-DECIDED** a `decided` record names a `decided_by` ADR that exists → **BROKEN** when it does not. A non-`decided` record carrying a non-null `decided_by`, or a `decided` record carrying `null`, is the same finding.\n- **CHK-OBS-STALE** an `observed` record whose `observed_date` is older than `observation.stale_days` in `manifest.yml` (absent falls back to 90) → **WARNING**. Report survey-debt as the count of `observed` records, never as a coverage percentage: the denominator would be the facts nobody has written down, which nobody knows.\n\nFour more rules read the batch surfaces contracted in `docs\u002FAGENTS.md` §17.5 (do NOT restate that protocol here). Each derives batch state through the one shared function §17.5 names, so a gate never disagrees with the writer.\n\n- **CHK-OBS-SURVEY-STUB** a receipt under `\u003Cdocs_dir>\u002Fobservations\u002F_surveys\u002FSVY-NNNN\u002F` recording no completion → **WARNING** inside `observation.survey_stub_days` in `manifest.yml` (absent falls back to 1), which is what a sign-off still in progress looks like, and **BROKEN** past that window. The remedy is re-running the sign-off, which finishes the publish.\n- **CHK-OBS-SURVEY-VISIBLE** a record visible under `\u003Cdocs_dir>\u002Fobservations\u002F` whose receipt records no completion → **BROKEN** at any age. No healthy in-flight state produces one, because §17.5 lands completion before visibility.\n- **CHK-OBS-SURVEY-DIGEST** a receipt whose recomputed digest no longer matches the sheet archived beside it → **BROKEN**.\n- **CHK-OBS-SURVEY-RECORD** a `ratified` record whose `anchor_id` no receipt covers **and** behind which no `observation` log op stands → **BROKEN**. The rule is a disjunction and stays one: the single-record path writes no receipt, so a conjunction would report BROKEN on every record that path wrote. It detects an unrecorded batch and never a forgery, because an actor with write access can write every surface.\n\n#### Concern 2 — Code (mostly BROKEN if wrong, DRIFT via dispatcher)\n\n- **CHK-CODE-1** If `code` is in `concerns_enabled`, `docs\u002Fcode\u002F_meta\u002Fmanifest.json` exists. Missing → BROKEN (recommend `extract-code-docs`, do not invent).\n- **CHK-CODE-2** Every row in `_meta\u002Fmanifest.json` has an existing `.md` file at `doc_path`. Missing files → BROKEN (likely deleted hand or by a failed write; recommend re-extraction).\n- **CHK-CODE-3** Every `.md` file under `docs\u002Fcode\u002F` (other than `index.md` and `_meta\u002Fmanifest.json`) is listed in the manifest. Orphan files → BROKEN (these are hand-edits that survived a regenerate, OR a stale file from before the prune step landed). Recommend re-run `extract-code-docs` to clean (it will delete them).\n- **CHK-CODE-4** Drift detection: invoke `uv run --no-config \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fextract-code-docs.py\" --dry-run --config docs\u002Fmanifest.yml` from the repo root.[^code-doc-uv] Parse stdout as JSON regardless of exit code, on three lanes, never conflated (the same exit-code semantics as `verify-code-docs`): exit 0 + `drift: false` = clean; exit 1 + `drift: true` = **DRIFT** (byte-level, against actual bytes on disk — surface the `pages` lists and the `index_drift`\u002F`metadata_drift` flags and recommend a real run; a fresh `unowned` count under a `--lang`-scoped tree is reported, not drift); exit 1 + a `validation_errors` payload and no `drift` key = **BROKEN** (tree-content is malformed — regenerating cannot fix it; name the path and cause); non-zero + empty\u002Funparseable stdout = an environment failure (capability mismatch or a `uv` resolution failure before the dispatcher starts), never a document finding. A metadata-only drift immediately after a plugin upgrade is expected and clears after one full `extract-code-docs` run. DO NOT auto-run a real extraction during the audit — that's `extract-code-docs`'s job, and is destructive enough to warrant explicit user invocation.\n- **CHK-CODE-5** `docs\u002Fcode\u002Findex.md` exists and has one section per language namespace under `docs\u002Fcode\u002F`. Missing → DRIFT (will regenerate on next extract; flag).\n\n#### Concern 3 — Research (mirrors samples `audit-vault`)\n\n- **CHK-RES-1** Every `docs\u002Fresearch\u002Fsources\u002F\u003Cslug>.md` has required frontmatter: `title`, `slug`, `type: source`, `source_url`, `source_date`, `author`, `captured_at`, `last_source_check`, `raw_path`, `previous_captures`, `static`, `tags` (the canonical field list — `ingest-research` writes it, this check enforces it). Missing → BROKEN.\n- **CHK-RES-2** `slug` in frontmatter matches the filename. Mismatch → BROKEN.\n- **CHK-RES-3** `raw_path` resolves to an existing directory under `docs\u002Fresearch\u002Fraw\u002F`. Broken path → BROKEN.\n- **CHK-RES-4** Every entry in `previous_captures` resolves to an existing directory. Broken → BROKEN.\n- **CHK-RES-5** Every directory `docs\u002Fresearch\u002Fraw\u002F\u003CYYYY-MM-DD>\u002F\u003Cslug>\u002F` is referenced by exactly one source page via `raw_path` or `previous_captures`. Orphan raws (no reference) → BROKEN. Shared raws (multiple references) → BROKEN.\n- **CHK-RES-6** Every synthesis page under `docs\u002Fresearch\u002F\u003Ccategory>\u002F` has required frontmatter: `title`, `slug`, `type` (matches dir), `tags`, `sources`, `last_reviewed` (the canonical synthesis field list — `ingest-research` writes it, this check enforces it). Missing → BROKEN.\n- **CHK-RES-7** Every slug in any synthesis page's `sources:` list exists in `docs\u002Fresearch\u002Fsources\u002F`. Dangling → BROKEN.\n- **CHK-RES-8** `docs\u002Fresearch\u002Fsources.md` exists at the research root with 9 columns matching samples. Missing → BROKEN (do NOT auto-regenerate; ask). Wrong column set → BROKEN. Per-row column mismatches against frontmatter → DRIFT (auto-fix from frontmatter; frontmatter is source of truth).\n- **CHK-RES-9** `docs\u002Fresearch\u002Fupdates.md` exists. Missing → DRIFT (create stub header only — no entries). Every `## ` heading matches `## \\[\\d{4}-\\d{2}-\\d{2}\\] \u003Cslug>`. Malformed → WARNING (surface, don't edit).\n- **CHK-RES-10** Every `[[research\u002Fsources\u002F\u003Cslug>]]` and `[[research\u002F\u003Ccategory>\u002F\u003Cslug>]]` link resolves. Dangling → BROKEN.\n- **CHK-RES-11** Count `> [contradiction]`, `> [unresolved]`, `> [source updated]`, `> [refresh failed]` markers and `## Capture gaps` sections across research pages. → WARNING (report counts).\n\n#### Concern 4 — ADRs and briefs\n\n- **CHK-ADR-1** Every `docs\u002Fadrs\u002FADR-NNNN-*.md` has the required frontmatter keyset defined canonically in **`docs\u002FAGENTS.md` §11.A \"Canonical ADR frontmatter schema\"** (the single source of truth — do NOT restate the field list here; read §11.A). Any field §11.A marks `required` that is missing → BROKEN. The `amends:` field is `optional` per §11.A (see CHK-ADR-6a for resolution semantics).\n- **CHK-ADR-1a** The frontmatter keyset of `${CRUX_PLUGIN_ROOT}\u002Ftemplates\u002FADR-template.md` MUST equal the canonical keyset in `docs\u002FAGENTS.md` §11.A. Mechanical comparison — **set equality, order-independent** (the template orders fields differently from §11.A; that is fine): (1) extract the backticked tokens from §11.A's first table column — every entry in that column uses backtick markup, so a row whose field is not backticked is itself a §11.A formatting bug and should be flagged; (2) parse the template's YAML frontmatter for its top-level keys (use a real YAML parse via Bash `python3 -c 'import yaml,sys; print(\"\\n\".join(yaml.safe_load(...)))'` rather than a line-grep — a grep would miss a key whose value shares the line, e.g. `amends: [] # ...`); (3) compare the two SETS. Any key in one but not the other → WARNING (\"ADR template and §11.A schema have drifted; reconcile against §11.A\"). This closes the loop so the template itself cannot silently drift from the schema. A stdlib unit test (`${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Ftests\u002Ftest_schema_invariants.py`) enforces the same invariant in CI.\n- **CHK-ADR-2** `id` matches filename prefix. Mismatch → BROKEN.\n- **CHK-ADR-3** `status` ∈ {Proposed, Accepted, Deprecated, Superseded}. Invalid → BROKEN.\n- **CHK-ADR-4** ADR numbering is monotonic and contiguous from 0000 with no gaps and no duplicates. Gap → WARNING; Duplicate → BROKEN, detected by CHK-NUM-1. **The \"ask\" on a gap is concrete — distinguish two dispositions by whether the deleted number is still referenced anywhere:** scan the tree (ADR `supersedes:`\u002F`superseded_by:`\u002F`amends:` frontmatter, any `adrs\u002FADR-NNNN` wiki-link, and the `docs\u002Fadrs\u002Findex.md` rows) for the gap's `ADR-NNNN`. (1) **Gap with NO surviving references** → the number is almost certainly a deleted Proposed ADR that was never cited; it is **renumberable** — recommend the user either reuse the gap by renumbering the next allocation down to close it, or leave it as a permanent hole (numbers are never reused once cited, but an uncited deleted-Proposed hole may be reclaimed). (2) **Gap WITH surviving references** → some artifact still points at the missing `ADR-NNNN`; it is **NOT renumberable** — surface every referencing path and recommend either restoring the ADR or fixing the dangling references; do not propose reusing the number. (This is a generic reference scan — crux has no separate id-validation machinery; do not cite one.)\n- **CHK-ADR-5** State-machine date consistency:\n  - `proposed_date` is non-null for every ADR (every ADR was proposed at some point).\n  - `accepted_date` is non-null iff `status` ∈ {Accepted, Deprecated, Superseded} AND the ADR ever passed through Accepted (Proposed → Deprecated is allowed; an ADR with status=Deprecated and accepted_date=null is the \"abandoned proposal\" case).\n  - `deprecated_date` is non-null iff `status == Deprecated`.\n  - `superseded_date` is non-null iff `status == Superseded`.\n  - Any violation → BROKEN (surface; never auto-set a date).\n- **CHK-ADR-6** Supersession bidirectionality: for every `superseded_by: ADR-X`, `ADR-X.supersedes` contains this ADR. For every entry in any `supersedes: [...]`, the target has `superseded_by` pointing back. Mismatch → BROKEN (auto-fixable via `transition-adr --repair` on user approval; never silent).\n- **CHK-ADR-6a** Optional top-level `amends:` field on an ADR is a YAML list of ADR ids (e.g., `[ADR-NNNN, ADR-MMMM]`). When present: every entry must resolve to an existing ADR file under `docs\u002Fadrs\u002F`. Dangling → BROKEN. Unlike `superseded_by:`\u002F`supersedes:`, `amends:` is **one-way** — the amending ADR records the relationship; the amended ADRs' frontmatter is NOT back-populated and no `amended_by:` field is enforced. It records narrow-scope decision refinements to predecessor ADRs without overwriting their `superseded_by:` chain. Distinct from `supersedes:` (which IS bidirectional and replaces the predecessor's `superseded_by:`).\n- **CHK-ADR-7** `manifest.yml`'s `adr.next_number` > max existing ADR number. Equal-or-less → BROKEN (next allocation would collide). Way greater than max+1 → WARNING (gaps suggest deletions; ask).\n- **CHK-ADR-8** Every entry in `related_briefs:` corresponds to an existing `docs\u002Fbriefs\u002FBRIEF-\u003Cslug>.md`. Dangling → BROKEN.\n- **CHK-ADR-9** Every entry in `related_research:` resolves under `docs\u002Fresearch\u002F`, behind a fail-closed grammar gate (the entry is author-controlled frontmatter that gets path-joined, so it inherits the §14.2 containment posture — reject, never resolve, any entry with `..`, a leading `\u002F`, `~`, or more than one `\u002F`): a **bare** slug matching `^[a-z0-9-]+$` → `docs\u002Fresearch\u002Fsources\u002F\u003Cslug>.md` (backward-compatible); a **single-segment path** matching `^[a-z0-9-]+\u002F[a-z0-9-]+$` → `docs\u002Fresearch\u002F\u003Ccategory>\u002F\u003Cslug>.md` (a synthesis page; the explicit `sources\u002F\u003Cslug>` form falls out for free). Any entry matching **neither** grammar (a traversing entry, or any other shape — trailing slash, uppercase, underscore, etc.) → BROKEN (malformed). No file at the grammar-valid resolved path → BROKEN (dangling). One-way: the target research page is NOT back-populated.\n- **CHK-ADR-10** Brief-side bidirectionality: every brief listed in any ADR's `related_briefs:` has its slug in its own `related_adrs:` frontmatter. Missing back-ref → DRIFT (auto-fix on briefs; briefs are draft material so back-population is safe).\n- **CHK-ADR-11** Briefs cited with `status: draft` → WARNING (\"ADR-X references brief Y still in draft; decision may need a follow-up\").\n- **CHK-ADR-12** `docs\u002Fadrs\u002Findex.md` exists with one row per ADR (columns: id, title, status, date, supersedes, superseded_by). Missing rows → DRIFT (auto-add from frontmatter). Orphan rows → BROKEN (ask).\n- **CHK-ADR-SPEC** The ADR **body content rule** — an ADR body states requirements and postconditions rather than implementation recipe — is defined canonically in **`docs\u002FAGENTS.md` §11.D \"ADR body content rule\"** (the single source of truth — do NOT restate the rule or the budget's value here; read §11.D). This rule REPORTS ONLY. It never repairs, never proposes an edit, and never asks: an ADR body past `Proposed` is frozen, so there is nothing here to fix even when the finding is correct. Severity is **WARNING** on every finding, including a clear one.\n\n  **Cohort gate — evaluate this FIRST and skip the whole rule when it does not pass.** Read `docs\u002Fmanifest.yml` `adr.spec_rule_from` — that key inside the `adr:` block, addressed by a real YAML parse and not by a line-grep, which would also match the same key name under a different block. Absent, `null`, or not an integer ADR number → **the rule is inert: emit no findings and no warnings, and say so in the report's ADR section in one line.** A tree that never adopted the rule must produce silence, not noise. Otherwise the cohort is every ADR whose number is **≥** that value, across both the active and archived tiers; every ADR below it is exempt permanently.\n\n  Two findings, per §11.D:\n\n  1. **Over budget without a declaration.** Measure the span from the body's `## Context` line through the last non-blank line before `## References`, per §11.D's rule 3 (`## References` and any footnote block are outside the span). Over §11.D's stated budget → WARNING, **unless** the body carries §11.D's justification blockquote immediately under `## Context`, in which case it is not a finding. Also not a finding when the ADR is itself a source of truth for a shape (§11.D rule 4's exemption). Report the measured span and the budget, so the reader can see the margin.\n  2. **Body content shaped like a recipe.** Heuristic, and stated as one: a fenced code block outside `## References`; a call signature or function definition in prose (`name(arg=…)`, `def `, `class `); a command recipe with flags; a `| field | type |` shape table restating a schema the body could have named instead. Each hit → WARNING naming the line, phrased as a prompt to look rather than a verdict.\n\n  **State the heuristic's error rate in the report, every run.** This rule reports bodies that are fine and misses bodies that are not. A reader who mistakes a WARNING here for a defect will try to edit a frozen body, which is the one action the rule forbids.\n\n#### Concern 4.A — Objectives (per `docs\u002FAGENTS.md` §5.B)\n\n`\u003Cdocs_dir>\u002Fobjectives.md` is a top-level, hand-authored file: the mission and goals a decision review measures the decision set against. It belongs to no concern and has no `docs\u002Findex.md` section, so no `concerns_enabled` entry gates these rules. They run on every audit of a `schema_version == \"5\"` tree. A missing file is CHK-OBJ-1's own finding, never a skip. All five rules read the canonical contract in `docs\u002FAGENTS.md` §5.B — the frontmatter keyset, the maturity ladder, the body shape, and the Shifts grammar (do NOT restate any of them here). The audit never edits the file. Humans own its content, and `reviewed_at` moves only after a human read.\n\n- **CHK-OBJ-1** the file exists; its frontmatter carries exactly the §5.B keyset; `maturity` is in the §5.B enum; `reviewed_at` is an ISO date not in the future; `review_every_days` is a positive integer → **BROKEN** on any miss.\n- **CHK-OBJ-2** the body carries §5.B's three H2 headings, in §5.B's order, and no other H2 → **BROKEN**.\n- **CHK-OBJ-3** when `maturity` is not `placeholder`: the Mission holds no bracketed template text; at least one goal exists; every goal carries §5.B's four fields with in-enum `kind` and `status`; goal ids are contiguous from 1 and unique → **BROKEN**. Silent at `placeholder` — an untouched template is the `cleanup-campsite` `CLN-OBJ-1` nudge's concern, not this rule's.\n- **CHK-OBJ-4** every Shifts row carries an ISO date and a `shifted` value that is `mission` or an existing `OBJ-N`; every `dropped` goal has a Shifts row naming it → **BROKEN**.\n- **CHK-OBJ-5** `reviewed_at` is older than `review_every_days` → **WARNING**: the file is due for a human read. Report the age in days and the threshold.\n\nAn `OBJ-N` token in a review report, a brief, or an ADR is a reference to this file. Resolve it against the goals here; a dangling one → **BROKEN**.\n\n#### Concern 5 — Promptbooks\n\n> **`docs\u002Fpromptbooks\u002Flegacy\u002F` is EXCLUDED from every CHK-PB-* walk.** It is the preserved-originals holding area populated by earlier migrations — a frozen archive of superseded pre-migration `.md` source files, not part of the live promptbook graph. Treat it like `docs\u002Finbox\u002F` \u002F `docs\u002FAGENTS.md`: present on disk, invisible to the concern walk. Do **not** glob it for CHK-PB-1 (book shape), CHK-PB-5\u002F6 (run-dir walks — its `run-*.md` are NOT orphan run dirs), CHK-PB-9\u002FABANDON\u002FRADIUS\u002FSCHEMA (immutable-history shape), CHK-PB-BIND (binding), or CHK-PB-11 (index rebuild — its books are NOT enumerated). Its only coverage is CHK-PB-LEGACY below.\n\n- **CHK-PB-1** Glob **both** `docs\u002Fpromptbooks\u002Factive\u002FPB-NNNN-*.yaml` and `docs\u002Fpromptbooks\u002F{active,archive}\u002FPB-NNNN-*.md` (format coexistence). **Route by (extension, `format_version`-present)** — the two-key detection table:\n  - **`.yaml` with top-level `format_version`** → **new-format**. The JSON Schema (`${CRUX_PLUGIN_ROOT}\u002Fschemas\u002Fpromptbook.schema.json`) is the SSOT for single-document shape (the same indirection CHK-ADR-1\u002FCHK-PB-SCHEMA already use — reference the schema by name, don't restate it). **Delegate the shape check:** invoke `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fvalidate-promptbook.py --kind promptbook \u003Cpath>`. Same exit-code\u002FJSON contract as CHK-CAT-3 (exit 0 = clean; exit 1 + `{\"errors\":[…]}` on stdout = invalid; non-zero + empty\u002Funparseable stdout = crash, surface stderr). Non-zero exit → **BROKEN**, reporting the validator's JSON `errors` (each carries `instance_path`\u002F`schema_path`).\n  - **`.yaml` lacking `format_version`** → **BROKEN** (a malformed new-format book; do NOT route to the legacy keyset check).\n  - **`.md`** → **legacy-markdown**: keep the existing required-frontmatter-keyset check (the keyset stated here is canonical): `id`, `title`, `status`, `created_at`, `total_prompts`, `current_run`, `current_prompt`, `forked_from`, `tags`. Missing → BROKEN. (The new-format top-level keys are a superset of this keyset, so the schema enforces the same requirement on the `.yaml` side.)\n  - Canonical valid example: `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Ftests\u002Ffixtures\u002Fpromptbook-valid.yaml` (round-trips clean through the validator).\n- **CHK-PB-2** `id` matches filename prefix. Mismatch → BROKEN.\n- **CHK-PB-3** `total_prompts` agreement, format-detected:\n  - **New-format `.yaml` book:** `total_prompts == len(prompts)` (the structured array). Mismatch → DRIFT. **Do NOT auto-fix by counting `### Prompt N` headings — a `.yaml` book has none, so the heading-count source does not exist; counting it would auto-corrupt `total_prompts` to 0.** The safe auto-fix is `total_prompts := len(prompts)`.\n  - **Legacy `.md` book (active):** `total_prompts` matches the count of `### Prompt N` headings in the body. Mismatch → DRIFT, report only. Missing `total_prompts` → BROKEN under CHK-PB-1. The current distribution never rewrites a Markdown book, even to repair this counter; preserve its bytes and name the finding.\n- **CHK-PB-4** `current_prompt ≤ total_prompts` when non-null. Violation → BROKEN.\n- **CHK-PB-5** If `current_run` is non-null, the snapshot `docs\u002Fpromptbooks\u002Fruns\u002F\u003Cid>-\u003Cslug>\u002Frun-\u003Ccurrent_run>.{yaml,md}` exists (check BOTH extensions — a `.yaml` book has a `.yaml` run, a `.md` book a `.md` run; format symmetry). Neither present → BROKEN (dangling pointer). A non-null `current_run` whose pointed-to run is TERMINAL (`status: completed` or `status: abandoned`) is EXPECTED — the pointer stays until `archive-promptbook` nulls it, so this is the normal delivered-but-unarchived state, NOT a dangling pointer. The BROKEN condition is unchanged: the pointed-to snapshot file does not exist.\n- **CHK-PB-6** Every `docs\u002Fpromptbooks\u002Fruns\u002F\u003Cid>-\u003Cslug>\u002F` subdir has a parent book in `active\u002F` OR `archive\u002F`. Orphan run dir (no parent) → BROKEN (ask before deleting).\n- **CHK-PB-7** Every run snapshot has the run-level keys `run_id`, `book_id`, `started_at`, `completed_at`, `status`, `current_prompt` — for a `.yaml` run these are top-level YAML keys (a `.yaml` run also carries `format_version` + `book_content_hash`, covered by CHK-PB-SCHEMA\u002FCHK-PB-BIND); for a `.md` run they are frontmatter. `status` ∈ {in_progress, completed, abandoned}. Missing → BROKEN.\n- **CHK-PB-8** For `status: completed` runs: `completed_at` is non-null AND every prompt state is terminal per the state-enum notes in **`docs\u002FAGENTS.md` §11.B \"Run-snapshot per-prompt shape\"** (the single source of truth — do NOT restate the enum here; read §11.B). Violation → BROKEN.\n- **CHK-PB-9** Archived books (`docs\u002Fpromptbooks\u002Farchive\u002F`) have `status: archived` AND their FINAL run is archive-eligible by one of the two paths in `docs\u002FAGENTS.md` §11.B: either `status: completed` with every prompt terminal (`done | skipped | blocked`), or `status: abandoned` with `abandonment.kind: deliberate`. Violation → BROKEN. (Eligibility is a run-level property; there is no per-prompt flag.)\n- **CHK-PB-10** `forked_from: PB-MMMM` references an existing book (active or archive). Dangling → BROKEN. Note that **nothing writes this field any more** — it is an accepted, always-null vestige, and the mid-run fork it recorded is deleted (a plan change mid-run is an abandonment plus a successor book that cites its predecessor in prose). The check is retained for the historical corpus; a non-null value on a newly authored book is itself suspect.\n- **CHK-PB-11** `docs\u002Fpromptbooks\u002Findex.md` exists with active table + recent-runs list + archive section. Stale counts \u002F missing rows → DRIFT (rebuild from directory walk). **One exemption: the `progress` cell of an ACTIVE book whose `current_run` is non-null — whether the pointed-to run is `in_progress` or already terminal.** Advancing a prompt deliberately writes two surfaces and no third — the run snapshot and the book pointer, never this index (see `docs\u002FAGENTS.md` §6 under the `promptbook` op). So the `progress` cell lags its snapshot by design for the whole life of the run, and reporting that lag would emit a DRIFT finding on every audit run during every live run. The advance that COMPLETES a run writes those same two surfaces and no third, and the book's `current_run` survives that completion. So the lag persists through the delivered-but-unarchived window too, exempt there for the same reason rather than a new one. A lagging `progress` cell on any unarchived run is NOT a finding; the next boundary op (archive) rebuilds it. Every other cell, row, and count in the file is checked as stated.\n- **CHK-NUM-1** No two promptbooks and no two ADRs share a number → BROKEN. Delegate it: run `uv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-record-numbers.py\" --repo-root .` (exit 0 clean; exit 1 with JSON `validation_errors`, one per shared number, naming each file holding it; exit 2 crash, surface stderr). Three namespaces are checked apart: books in `active\u002F` and `archive\u002F` (any extension), run directories in `runs\u002F`, and ADRs in `adrs\u002F` and `adrs\u002Farchive\u002F`. A book and its run directory carry one number and are one record. `legacy\u002F` is excluded, as it is from every CHK-PB-* walk. The checker reports the records it scanned per namespace under `checked`; a clean verdict that scanned none is not a pass. Never renumber or delete a file to clear the finding: numbers are never reused, so surface both paths and ask.\n- **CHK-PB-12** `manifest.yml`'s `promptbook.next_number` > max existing PB number. Equal-or-less → BROKEN.\n- **CHK-PB-ABANDON** _(replaces the retired CHK-PB-13, whose whole subject was the per-prompt archive-eligibility flag that `docs\u002FAGENTS.md` §11.B retired.)_ For an **archived** book whose final run has `status: abandoned`: that run MUST carry `abandonment.kind: deliberate`. An archived book whose final run is `abandoned` with `kind: superseded`, or with no `abandonment` mapping at all, → **BROKEN** — it was archived on a signal that confers no eligibility (a `superseded` value marks a stale run that a later run's start rolled over). A `deliberate` abandonment on a run under `active\u002F` is legitimate and unflagged: it means the book is eligible but not yet archived.\n- **CHK-PB-RADIUS** For an **archived** book with `cycle_kind: patch`: `blast_radius` is present and non-empty, every entry passes the declared-path grammar, and the book's final run carries a non-null `base_commit`. **The grammar has one implementation** — `invalid_blast_radius_entry` in `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fvalidate-promptbook.py`, the same function the authoring validator and the archive check call, so all three agree by construction. Its rejections are **not restated here**; read the function. (Restating them produced a partial copy that read as complete and omitted one of them.) Violation → BROKEN. **Audit does NOT re-run the git comparison.** A historical diff is not reproducible from an archived tree — the base commit may be unreachable, and the working tree has moved on — so re-deriving it would produce a verdict the archive already settled. The mechanical containment check is `archive-promptbook`'s precondition (`check-blast-radius.py`), run once at archival against the live tree; this rule audits only that the declaration and its commit boundary are present and well-formed. Immutable-history demotion applies as for CHK-PB-SCHEMA.\n- **CHK-PB-SCHEMA** Run-snapshot per-prompt shape, format-detected. Route by (extension, `format_version`-present), exactly as CHK-PB-1 does:\n  - **New-format `.yaml` run** (`format_version` present) → **delegate to the run validator**: invoke `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fvalidate-promptbook.py --kind run \u003Cpath>` (same engine, second schema `${CRUX_PLUGIN_ROOT}\u002Fschemas\u002Frun.schema.json` — the per-prompt-shape SSOT that `docs\u002FAGENTS.md` §11.B references by name). Exit-code contract: exit 1 → finding(s) from the validator's JSON `errors`; any other non-zero with empty stdout (e.g. the exit-2 YAML-capability error (PyYAML missing; see `docs\u002FAGENTS.md` §10.A)) = crash, surface stderr and NEVER report it as a document finding. The validator covers the per-prompt shape AND the contiguity (`n == index+1`) post-schema pass; the cross-field rules it cannot express stay in audit-docs (see §11.B-referencing rules + CHK-PB-BIND). A `.yaml` run lacking `format_version` → BROKEN (malformed new-format run; do NOT route to the legacy regex path). Canonical valid example: `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Ftests\u002Ffixtures\u002Frun-valid.yaml`.\n  - **Legacy `.md` run** → **keep today's regex-against-§11.B path.** Validate per-prompt blocks against the canonical schema in `docs\u002FAGENTS.md` §11.B (single source of truth — read §11.B for the field list + `State` enum; do NOT restate them here). **Block scope:** only blocks whose heading matches `^## Prompt (\\d+)` are validated; `## Notes` \u002F `## Summary` \u002F `## PR Draft` and any nested `###`\u002F`####` content are ignored, and field-looking lines inside nested subsections are NOT treated as per-prompt fields. **Field parse:** accept both the bulleted `- **Field:**` form and the bare `**Field:**` form. **Findings:** a §11.B-required field (State\u002FStarted\u002FCompleted\u002FResult\u002FArtifacts) missing from a block → DRIFT-surface (do NOT auto-edit a snapshot body); `State` value ∉ the §11.B enum → BROKEN; an unknown `**Field:**` key → WARNING. **`blocked-confirmed` is a RETIRED field (see `docs\u002FAGENTS.md` §11.B) and is IGNORED, not reported.** A frozen `.md` snapshot may carry it; those bodies are immutable and cannot be cleanly retro-fixed, so flagging it as an unknown field would generate a finding nobody may act on.\n  - **Immutable-history demotion (applies to BOTH paths):** for archived (`docs\u002Fpromptbooks\u002Farchive\u002F` parent) OR `status: completed` snapshots, demote every finding to WARNING (frozen history can't be cleanly retro-fixed) — this includes findings the run validator returns on a `.yaml` snapshot. `status` wins over path **in both directions** — `status: completed` under `active\u002F` is demoted; `status: in_progress` under `archive\u002F` keeps full severity. Full severity applies only to active\u002Fin-progress runs. CHK-PB-SCHEMA does NOT own duplicate-`## Prompt N` detection (that's `cleanup-campsite` CLN-PB-4). A stdlib CI test (`test_schema_invariants.py`) guards the §11.B field-token extraction.\n- **CHK-PB-BIND** Run↔book binding integrity for **new-format `.yaml` runs only**. For each `.yaml` run snapshot (`format_version` present, `book_id` resolvable to an active-or-archived `.yaml` book), **recompute the bound book's frozen-plan hash** with the validator's `compute_book_hash` (i.e. `\"sha256:\" + sha256(canonical_json(frozen_plan_subset(book)))` — the canonical serialization of the book's plan-bearing fields only, excluding the mutable run-state fields `current_run`\u002F`current_prompt`\u002F`status`; reuse `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fvalidate-promptbook.py`'s `compute_book_hash` so the bytes match the writer's) and compare to the run's stored `book_content_hash`. **Mismatch → DRIFT, NEVER auto-fixed** — recomputing\u002Foverwriting the stored hash would erase the evidence that the run-freeze invariant broke. Remediation cites the §4 abandon rule in `docs\u002FAGENTS.md`: the plan was edited in place instead of being changed the sanctioned way, which is to abandon the run and author a successor book that cites its predecessor in prose. Surface the mismatch (stored vs. recomputed) and recommend that path. Notes: (1) this is distinct from `CHK-SCHEMA-1` (manifest `schema_version == \"5\"`) — different rule, different concern. (2) An **unresolvable `book_id`** (no active-or-archived book exists) is NOT CHK-PB-BIND — that is the existing CHK-PB-6 \"run dir has a parent book\" graph rule (a missing book, vs. CHK-PB-BIND's found-but-plan-hash-differs). (3) Legacy `.md` runs have no `book_content_hash` and are not subject to this rule. (4) Immutable-history note: a mismatch on an archived\u002F`completed` run still surfaces as evidence (it documents a past in-place edit) — it is never auto-fixed regardless of run status.\n- **CHK-PB-CYCLE** Cycle-coverage invariants for cycle-kind books — the machine-enforced replacement for `dev-cycle`'s formerly prose-only formula\u002Finvariant contract, covering **all three** cycle kinds — `dev-cycle` (adr), `iterate` (verify), and `patch-cycle` (patch). **Format two:** a `format_version \"2\"` book declares its kind (`adr`, `implementation`, `verify` or `patch`); the implementation kind has no ADR modules and follows `4I+4D+3R+2`, the architectural kind follows `4(A+I)+4D+3R+2`, and the validator refuses `cycle_grandfathered` and `grandfather_reason` on such a book. The paragraph below describes format one. **Delegated, not restated:** the invariants live in `validate-promptbook.py`'s `cycle_coverage_pass`, which runs inside the `--kind promptbook` delegation CHK-PB-1 already performs — so for a new-format `.yaml` book, **CHK-PB-1's non-zero exit already surfaces any cycle-coverage finding** (for `adr`\u002F`verify`: the `4N+4M+3K+2` formula ⟷ `modules` ⟷ `module_tag`-count agreement, the per-module prompt-count \"ordinal contract\", `adr`\u002F`verify` mutual exclusion, the degenerate-cycle and `cycle_kind`↔shape cross-checks, and the ≥13 floor — all **unchanged**; for `patch`: the constant count of 5, the fixed `verify, plan, implement, review, summary` phase sequence, the absence of `module_tag`\u002F`modules`, and a non-empty repo-relative `blast_radius`). The `patch` tier is a third branch, not a relaxation of the other two — see `docs\u002FAGENTS.md` §11.C. This rule exists to make that coverage explicit and to pin the two scope rules the validator encodes: **(a) grandfathered books are skipped** — a book with `cycle_grandfathered: true` (+ `grandfather_reason`) is exempt from the pass (it remains schema-validated); grandfather only a book with no run in flight, or abandon the run first. `cycle_grandfathered` and `cycle_kind` are bound at run start: adding or changing either while a run is in flight makes `advance-run.py` refuse every `--outcome` of that run and write nothing, so it is never a silent migration. A book grandfathered before its run starts has every prompt `unclassified`, so none of its gates is checked.[^correct] That refusal holds when the run-start book can be read. When it cannot, `advance-run.py` ignores both fields and module-tagged gate prompts stay gates. **(b) legacy `.md` cycle books are NOT cycle-coverage-checked** — the pass is `.yaml`-only (it runs only on the `--kind promptbook` path); a legacy `.md` cycle book keeps the CHK-PB-1 legacy-keyset path and is out of scope (it predates the structured `modules`\u002F`module_tag` form). **Immutable-history demotion (consistent with CHK-PB-SCHEMA):** a cycle-coverage finding on an archived (`docs\u002Fpromptbooks\u002Farchive\u002F` parent) or `status: completed` book demotes to WARNING (`status` wins over path in both directions); full severity (BROKEN, via CHK-PB-1's exit) applies only to active\u002Fin-progress cycle books. No separate test fixture is needed here — the invariants are covered by `test_validate_promptbook.py`'s cycle-coverage cases (the `CycleCoveragePassTests` class); this rule is the audit-side pointer to that engine.\n- **CHK-PB-LEGACY** Preservation integrity for the migration holding area. When `docs\u002Fpromptbooks\u002Flegacy\u002F` exists: every preserved original under it SHOULD correspond to a live migrated `.yaml` — i.e. for `legacy\u002Farchive\u002F\u003Cid>-\u003Cslug>.md` there is `docs\u002Fpromptbooks\u002Farchive\u002F\u003Cid>-\u003Cslug>.yaml`, and for `legacy\u002Fruns\u002F\u003Cid>-\u003Cslug>\u002Frun-\u003CRUN-NNN>.md` there is a `docs\u002Fpromptbooks\u002Fruns\u002F\u003Cid>-\u003Cslug>\u002Frun-RUN-NNN.yaml`. A preserved original with **no** corresponding live `.yaml` → WARNING (a half-migration; the live `.yaml` was reverted or never written — surface, do not auto-fix). The converse (a live `.yaml` whose `.md` original is missing from `legacy\u002F`) is also WARNING. This is the ONLY rule that reads under `legacy\u002F`; it never validates the preserved `.md` against any schema (they are frozen pre-migration artifacts).\n\n#### Concern 6 — Journal\n\n- **CHK-JR-1** Every entry in `docs\u002Fjournal\u002FYYYY-MM.md` files has a heading matching `## \\[\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}\\] (decision|implementation|bug|learning|blocker|refactor|meeting|review|misc|release) \\| `. Malformed → WARNING (surface; never auto-edit).\n- **CHK-JR-2** Entry dates inside a `YYYY-MM.md` fall within that month. Outside-of-month → WARNING (likely a file-naming mistake; ask).\n- **CHK-JR-3** `docs\u002Fjournal\u002Findex.md` exists with one row per month file (newest first) listing entry count and the top three category names. Invoke `generate-journal-index.py --dry-run` and report its verdict — exit 0 with no drift payload is clean; exit 1 with a drift payload is DRIFT (recommend `generate-journal-index.py`, do not rebuild by hand); a non-empty `validation_errors` payload is BROKEN.\n- **CHK-JR-4** Every wiki-link in any journal entry (`adrs\u002FADR-NNNN`, `promptbooks\u002F...`, `research\u002F...` targets) resolves. **Promptbook _book_-links resolve lifecycle-agnostically** per the resolver defined in `docs\u002FAGENTS.md` §11: the `PB-NNNN` id (§14.3 dual-form regex) is the **sole authoritative match key** — the slug AND the `active\u002F`|`archive\u002F` path segment are non-authoritative hints — so `[[promptbooks\u002F(active|archive)\u002FPB-NNNN-\u003Cslug>]]`, `[[promptbooks\u002FPB-NNNN-\u003Cslug>]]`, and `[[promptbooks\u002FPB-NNNN]]` all resolve iff a book with that id exists under `docs\u002Fpromptbooks\u002Factive\u002F` OR `archive\u002F` (`legacy\u002F` excluded). **Run**-links (`promptbooks\u002Fruns\u002F\u003Cbook>\u002Frun-RUN-NNN`) keep exact-path resolution (`runs\u002F` never moves). Dangling → WARNING (journal references are historical; user decides whether to update or leave).\n- **CHK-JR-5** Entries are reverse-chronological within each `YYYY-MM.md` file. Out-of-order → WARNING.\n\n#### Concern 7 — Catalog\n\n- **CHK-CAT-1** Catalog inventory, in two limbs. An inventory alone is strictly weaker than the rule it replaces — a check that walks whatever is present cannot notice that something expected is absent — so the required-file floor rides with it.\n  - **Limb (a) — inventory.** Every entry in `${CRUX_PLUGIN_ROOT}\u002Fcatalog\u002F` parses, **by extension**: `json.load` for `.json`, the shared minimal-YAML loader's strict catalog path for `.yml`. Malformed → BROKEN (recommend re-installing the plugin via the marketplace flow; do not auto-regenerate from inside the audit).\n  - **Limb (b) — floor.** Every *required* catalog file exists. Absent → BROKEN. The floor is **derived, not a third hand-maintained list**, and both enumerations ship inside the plugin: the `.json` files are named by `validate-catalog.py`'s module-level `REQUIRED_CATALOG_JSON` constant, and the `.yml` files by its `CATALOG_TARGETS` constant. Both exist for other reasons and are separately gated, so adding a fifth catalog file costs no edit here — it costs the validator target or roster entry it was always going to need. **Both sources must travel with the plugin.** An earlier version of this rule derived the `.json` half from the crux source repo's own regenerative-outputs roster — then in the repo-root `CLAUDE.md`, now in the repo-root `AGENTS.md` — which is that repo's roster and not the installed tree's, whatever the file is called: downstream the list resolved EMPTY and the floor silently checked nothing. A rule whose input is absent must not degrade to a pass — if neither constant can be read, report BROKEN rather than an empty floor.\n  - **Disposition of every other entry.** `${CRUX_PLUGIN_ROOT}\u002Fcatalog\u002F` holds regular files with suffix `.json` or `.yml`, and nothing else. A directory, a symlink, an extensionless file, or any other suffix is **BROKEN under limb (a)** — reported as a misfiled entry, never parsed and never followed.\n  - **Parser-safety mitigations.** This rule points a parser at a directory listing rather than at named files, so the widening is bounded explicitly. **Trust boundary first:** `catalog\u002F` is a repo-controlled directory whose every change arrives through code review; it is not an upload target and takes no runtime input, so the bounds below are defense-in-depth against a hostile pull request and against accident, not a perimeter around untrusted data.\n    - **No unsafe construction.** YAML is read only through the shared loader, whose real-parser path is pinned to safe loading. Arbitrary-object construction is out of contract on both parse paths, and neither path may be swapped for a loader that permits it.\n    - **Forbidden constructs are refused, not merely unused.** Safe loading means no arbitrary object construction; it does not mean no expansion, and a real parser expands an anchor happily. So the loader **rejects** five constructs before accepting a document: a leading `&anchor`, a `*alias` reference, a `\u003C\u003C:` merge key, an explicit `!tag` or `%TAG` directive, and a second document in one file. That is what puts quadratic expansion out of reach — a grammar the loader enforces, not a convention the authors observe. The list is **six**, not five: a flow collection (`{...}` \u002F `[...]`) is refused at the start of any key or value token as well. It was originally left out on the theory that it \"fails loudly on the fallback path\" — it does not. `a: {b: &x 1, c: *x}` was accepted by both paths, and the two then disagreed silently: the real parser expanded the alias, the fallback kept the literal string. So the flow form was simultaneously an expansion bypass around the other five refusals and a two-path divergence. The two EMPTY forms `{}` and `[]` remain legal, because the hazard is a flow collection's contents and an empty one has none — and block YAML has no other spelling for an empty list.\n    - **Regular files only; symlinks refused.** The walk is non-recursive and tests `is_symlink()` **before** `is_file()`. A symlinked entry is BROKEN and is never followed, so the rule cannot be turned into an arbitrary-file read by adding a link to the directory.\n    - **Size caps before read — two of them, at two different scopes.** This rule's own ceiling is **1 MiB per entry**, and it covers EVERY entry in `catalog\u002F`, the `.json` files included: an entry over 1 MiB is BROKEN at `stat`, without being parsed. The shared YAML loader enforces a second, tighter ceiling of **64 KiB** (`CATALOG_MAX_BYTES` in `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002F_yaml_min.py`), checked before the construct scan and before any parse — but only on the `.yml` read path, because the `.json` files never reach that loader. The two are not a contradiction and neither is redundant: 64 KiB is the binding limit for a hand-authored `.yml`, and 1 MiB is what stops a 200 MiB `skills.json` from being handed to `json.load`. Today's largest entry is `skills.json` at roughly 44 KiB and the largest `.yml` is `models.yml` at roughly 6 KiB, so both caps sit well clear of live growth. Both bound the **source** bytes only; neither bounds an expanded object graph, which is why the construct refusal above — not either cap — answers expansion attacks.\n- **CHK-CAT-2** Every skill listed in `${CRUX_PLUGIN_ROOT}\u002Fplugin.json` `skills[]` has a corresponding entry in `catalog\u002Fskills.json` (matched by directory-name `id`), and vice versa. Orphans in either direction → BROKEN.\n- **CHK-CAT-3** Drift detection: invoke `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fvalidate-catalog.py --dry-run` from the repo root. Parse stdout as JSON regardless of exit code (same exit-code semantics as `verify-code-docs` and CHK-CODE-4: exit 0 + JSON = clean, exit 1 + JSON = drift, non-zero + empty\u002Funparseable stdout = crash). **A `\"surface_absent\": true` payload is N\u002FA, never clean** — the catalog is the plugin's OWN derived output, so a run outside the plugin's authoring checkout validated the plugin against itself and established nothing about this project. Report it N\u002FA with the payload's `reason`, and recommend no regenerator: there is no output here for one to write. Exit 1 with non-empty `added\u002Fchanged\u002Fremoved` → DRIFT (surface counts; recommend running `validate-catalog.py` without `--dry-run` to regenerate). Validation errors (non-empty `validation_errors`) → BROKEN. **Read the `warnings` key too:** it is a separate top-level list of findings that deliberately do NOT affect the exit code (the `models.yml` `verified:` staleness clock is the current member, kept non-failing so a passing tree cannot turn red on the passage of time alone). Non-empty `warnings` → WARNING, surfaced with its findings; a run with exit 0 and non-empty `warnings` is a pass worth reporting, not a clean run. DO NOT auto-run a real regeneration during the audit — `validate-catalog.py` is destructive enough (it overwrites `skills.json`) to warrant explicit user invocation.\n- **CHK-CAT-4** Every entry in `${CRUX_PLUGIN_ROOT}\u002Fcatalog\u002Fbundles.yml`'s `skills:` list resolves to an existing `id` in `catalog\u002Fskills.json`. Dangling skill references → BROKEN.\n- **CHK-CAT-5** Total skill count under `${CRUX_PLUGIN_ROOT}\u002Fskills\u002F*\u002FSKILL.md` equals the length of `catalog\u002Fskills.json`. Mismatch → DRIFT (recommend `validate-catalog.py` to reconcile).\n- **CHK-CAT-6** Reverse bundle membership. For every entry in `catalog\u002Fskills.json`, each value in its `bundles[]` array names a bundle `id` present in `catalog\u002Fbundles.yml`, AND that bundle's `skills[]` contains the skill's `id`. Dangling bundle id or missing membership → BROKEN. This is the mirror of CHK-CAT-4: every skill declares its bundle membership twice, once in `metadata.bundles` and once in the bundle's list, and CHK-CAT-4 checks only the bundle→skill direction. **Scoped to skills:** all ten agents in `catalog\u002Fagents.json` declare `bundles: [\"crux-agents\"]` and no `crux-agents` bundle object exists, so extending the reverse check to agents would need either a new bundle object or an `agents[]` key in the bundle schema — a schema change no decision has made.\n\n#### Concern 8 — Arch (derived — drift + auto-regenerate)\n\nRuns only when `arch` ∈ `manifest.yml`'s `concerns_enabled` (which requires `schema_version == \"5\"`); otherwise silent. The `arch` tree is the derived architecture spine (per `docs\u002FAGENTS.md` §4 \"arch\"): four spine files (`data-model.md`, `api-surface.md`, `module-graph.md`, `decision-index.md`) plus a synthesized `overview.md`, an `index.md`, and `_meta\u002Fmanifest.json`, all regenerated wholesale by `derive-arch.py`. **Unlike CHK-CODE-4 and CHK-CAT-3 — which flag drift and recommend the regenerator — CHK-ARCH-1 auto-regenerates in place.** The divergence is deliberate: arch's every input (JSON Schemas, ADR frontmatter, the skill catalog, `crux` package imports) is already committed in the tree, so a regenerate cannot capture in-flight uncommitted source the way a code-doc extraction can; the output is deterministic and byte-stable; and hand-edits under `arch\u002F` are defined as disposable. This makes an arch regenerate a DRIFT-tier auto-fix, not a destructive act.\n\n- **CHK-ARCH-1** Drift detection + auto-regenerate. Invoke `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fderive-arch.py --dry-run --docs-dir \u003Cdocs_dir>` from the repo root (`\u003Cdocs_dir>` is the CHK-CFG-1 resolved tree). Parse stdout as JSON regardless of exit code (sibling exit-code semantics of CHK-CODE-4 \u002F CHK-CAT-3). **Exit 1 means findings, and the payload names which of TWO channels found them** — `drift` and `strict_failures` are independent, a run may carry both, and they take different remedies. `clean` answers the drift question alone, so `{\"clean\": true, \"drift\": []}` at exit 1 is a legitimate shape and not a contradiction.\n  - **exit 0** + `{\"clean\": true, \"drift\": [], \"strict_failures\": []}` = clean, no finding.\n  - **exit 1 with `drift` non-empty** = drift (`clean` is `false`). **Auto-regenerate** — run `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fderive-arch.py --docs-dir \u003Cdocs_dir>` (no `--dry-run`, `{\"written\": [...]}`) to rewrite the spine + `overview.md` + `_meta\u002Fmanifest.json`, then report **DRIFT (auto-fixed)** listing the drifted paths from the dry-run `drift` array. Re-run `--dry-run` once to confirm. **Convergence is judged on the `drift` array, never on the exit code** — a tree with a live `arch.require` still exits 1 through the other channel after a successful regenerate. A still-non-empty `drift` → BROKEN (the regenerator did not converge — surface the residual `drift` + any stderr, do not loop).\n  - **exit 1 with `strict_failures` non-empty** = a requirement finding, NOT drift, and NOT a failed regeneration. Each entry names a concern that `\u003Cdocs_dir>\u002Fmanifest.yml`'s `arch.require` declares this tree needs and whose recorded verdict is not `populated`, with its `stub_reason`, `expected` and `found` (the strict gate, per `docs\u002FAGENTS.md` §4 \"arch\"). → **BROKEN**, reported as `\u003Cconcern> is required by \u003Crequired_by> and its recorded verdict is \u003Cverdict>`. **Do NOT auto-regenerate for this channel and never prescribe one:** the committed tree already is what a regeneration produces, so re-deriving writes an identical tree and clears nothing. The two remedies are to establish the precondition the verdict names in the repository, or to amend `arch.require`. Both are user decisions — recommend, never apply.\n  - **exit 2, or any non-zero with empty\u002Funparseable stdout, or exit 1 reporting findings in NEITHER channel** = no verdict — surface stderr and NEVER report it as a document finding. Two lanes share exit 2, and stderr says which. A **crash** is an environment\u002Fextractor capability error. A **deliberate refusal** (`StaleProjectionInput` on stderr) means a spine file that projects a gated artifact declined because that artifact is not what its own regenerator produces; nothing was written. On the refusal lane, **do NOT auto-regenerate arch** — regenerating the spine cannot fix a stale ADR index or catalog, and a re-derive reads the same stale input and refuses again. Report the capability failure, name the input from stderr, and recommend that input's own regenerator (`generate-adr-index.py`, `validate-catalog.py`) followed by a re-derive.\n\n  **Do NOT auto-regenerate under `--migrate`** — a migration owns its own step ordering; the arch auto-fix belongs to a plain audit \u002F explicit \"audit docs\".\n- **CHK-ARCH-2** Enablement recognition. When `arch` ∈ `concerns_enabled`, the tree at `\u003Cdocs_dir>\u002Farch\u002F` is present with the four spine files + `overview.md` + `index.md` + `_meta\u002Fmanifest.json`; a missing tree or file is drift that CHK-ARCH-1's regenerate produces (`derive-arch.py` writes all of them) — route it through CHK-ARCH-1, do not raise a separate BROKEN. When `\u003Cdocs_dir>\u002Farch\u002F` exists but `arch` is **NOT** in `concerns_enabled` → WARNING (a stale derived tree from a disabled concern; recommend re-enabling the concern or removing the tree — never auto-delete). Arch carries no timestamps and gets no master-index section (see CHK-MI-1); its catalog is `\u003Cdocs_dir>\u002Farch\u002Findex.md` + the spine hash.\n\n#### Concern 9 — Regenerated-output drift and doctrine reconciliation\n\nThe repo-root `AGENTS.md` \"regenerative outputs\" table is the enrollment roster: every derived artifact owes a vendored regenerator and a `--dry-run` drift gate. Concerns 2, 7, 8, and 9 already run four of those gates individually — CHK-CODE-4 (`uv run --no-config extract-code-docs.py --dry-run`), CHK-CAT-3 (`validate-catalog.py --dry-run`, covering **both** `skills.json` and `agents.json`), CHK-ARCH-1 (`derive-arch.py --dry-run`), and CHK-ROUTE-1 (`generate-routing-table.py --dry-run`). CHK-DRIFT-1 covers the roster's remaining sixteen outputs. **The split is explicit so no gate runs twice.**\n\n- **CHK-ROUTE-1** §10 routing-table drift (recommend-only, same form as CHK-CAT-3). Invoke `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fgenerate-routing-table.py --dry-run` from the repo root. Parse stdout as JSON regardless of exit code (the shared CHK-CODE-4 \u002F CHK-CAT-3 semantics): exit 0 + `{\"drift\": false}` = clean; **exit 0 with `\"surface_absent\": true` = N\u002FA, never clean** — the routing table projects the plugin's own skill catalog into a marked region, and a tree carrying neither owns nothing that could have drifted; report the payload's `reason` and recommend no regenerator. Exit 1 + `{\"drift\": true, \"paths\": [...]}` → **DRIFT** (surface the drifted target and **recommend** running `generate-routing-table.py` to regenerate; do NOT run it); exit 1 + `{\"error\": ...}` (a missing\u002Fduplicated\u002Fmisordered marker or an unreadable `skills.json`) → **BROKEN**; non-zero + empty\u002Funparseable stdout → surface stderr, **never a document finding**. The payload's `no_trigger_skills` array is informational — skills whose `description` carries no quoted trigger phrase before its first period; report it as a WARNING when non-empty so a routing gap is visible, never as drift.\n- **CHK-DRIFT-1** Regenerated-output drift for the sixteen roster outputs the four individual gates do not cover. Invoke the `check-drift` skill (its whole-tree contract runs every enrolled gate; inside the audit, skip the four already run — `validate-catalog.py`, `extract-code-docs.py`, `derive-arch.py`, `generate-routing-table.py` — so none runs twice). The sixteen CHK-DRIFT-1 covers: **`agents.json`** (already checked by the SAME CHK-CAT-3 `validate-catalog.py --dry-run` run — reported here, NOT re-invoked), the **summaries projection** (`summarize-adrs.py --dry-run`), the **doctrine projection** (`compile-doctrine.py --dry-run`), **`opencode\u002Fagents\u002F`** (`generate-opencode-agents.py --dry-run`), **`adrs\u002Flineage.md`** (`generate-lineage.py --dry-run`), **`adrs\u002Findex.md`** (`generate-adr-index.py --dry-run`), the **`docs\u002Findex.md` `## ADRs` rollup** (`generate-index-rollup.py --dry-run`), the **`README.md` version footer** (`generate-readme-footer.py --dry-run`), the **writing-rules block** (`generate-writing-rules.py --dry-run`), the **runtime-compatibility block** across 52 skills (`generate-runtime-compat.py --dry-run`), the **reviews index** (`generate-reviews-index.py --dry-run`, whose `\"surface_absent\": true` payload is verdict **N\u002FA** and never a clean pass — a tree that has run no decision review has no derived index to drift), the **journal index** (`generate-journal-index.py --dry-run`, whose `\"surface_absent\": true` payload is likewise **N\u002FA**, the same treatment the reviews index gets), the **operations-log summary** (`generate-log-summary.py --dry-run`, whose `\"surface_absent\": true` payload on a tree with no `log\u002F` is **N\u002FA**, and whose `pending_months` beside exit 0 is a clean verdict that names `cleanup-campsite` as the remedy), the **shipped-rules catalog** (`generate-rules-catalog.py --dry-run`), the **crux-mods reach tables** (`generate-mods-reach-tables.py --dry-run`), and the **micro-crux guide** (`generate-micro-crux.py --dry-run`). The last three are plugin-authoring gates: outside the plugin's own checkout each reports `\"surface_absent\": true`, which is **N\u002FA**, never a clean pass. Parse each stdout as JSON regardless of exit code (the shared CHK-CODE-4 \u002F CHK-CAT-3 semantics): exit 1 + a drift payload → **DRIFT** (surface the drifted paths and **recommend** the named regenerator; do NOT run it); a non-empty `validation_errors` payload → **BROKEN** (the named input must be repaired — regenerating cannot fix a validation error); non-zero + empty\u002Funparseable stdout → surface stderr, **never a document finding**. A top-level `warnings` key (e.g. `validate-catalog.py`'s `models.yml` staleness clock) → **WARNING** beside the verdict, exit unchanged. **Recommend-only, never auto-regenerate:** unlike CHK-ARCH-1 (which auto-regenerates the arch spine in place), CHK-DRIFT-1 recommends the regenerator and stops — the arch spine is the ONE derived artifact this audit rewrites. **One roster gate shares `derive-arch`'s two-lane exit 2** only for arch itself; the CHK-DRIFT-1 gates each return the plain 0\u002F1\u002Fcrash contract.\n- **CHK-DOCTRINE-1** Doctrine reconciliation backlog. Runs only when `\u003Cdocs_dir>\u002Fadrs\u002Fdoctrine\u002F` exists. Count the **pending** reconciliation pairings — either by reading `\u003Cdocs_dir>\u002Fadrs\u002Fdoctrine\u002Findex.md` for domains whose heading ends `— BROKEN` and, under their `_Reconciliation against ratified invariants:_` table, rows whose status is `un-adjudicated`, `digest-stale`, or `collision`; or by running the consistency gate `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-doctrine-reconciliation.py` (exit 1 + `broken_domains` names them; exit 0 = none pending; its `warnings` key names any ratified invariant seeding no pairing). Non-zero pending → **WARNING**: `N doctrine pairing(s) awaiting reconciliation — run reconcile-signoff`. Surface the S1 `warnings` as WARNING too. **NEVER auto-sign a reconciliation from the audit** — `reconcile-signoff` is a human gate that reads the two texts and takes the verdict from the user; the audit only reports the backlog.\n\nTotal: ~97 checks.\n\n### 3. Walk prompt (when spawning Explore agent)\n\nWhen `docs\u002F` has 100+ markdown files, spawn an Explore agent with this prompt verbatim. The agent returns a findings report; the main session categorizes and applies fixes.\n\n> **MAINTENANCE — two copies of the check list, keep in sync.** The numbered items below are a verbatim restatement of the §2 `CHK-*` checks, reworded for an Explore agent that cannot apply fixes. **They duplicate §2 by design** (the inline walker uses §2; the spawned walker uses this prompt). **When adding, removing, or renumbering a check in §2, make the matching edit here in the same change** — a check that exists in only one of the two paths is silently skipped on the other walk strategy. Each item below carries its `(CHK-…)` id precisely so this correspondence is mechanical to verify.\n\n> Walk the entire `docs\u002F` tree at the current working directory. The layout is described in `docs\u002FAGENTS.md` (read it first). For each of the following eleven concern groups, list specific violations (file path + one-line description). Do not propose fixes — just report findings.\n>\n> Before walking, prune retained holdings: list the holdings once with `uv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fauthority-view.py\" retained-roots --repo-root \u003Crepo-root>` and skip each listed root during recursive walks; test one path with `uv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fauthority-view.py\" retained --repo-root \u003Crepo-root> \u003Cpath>` (exit 0, `retained` true or false). Prune before nested configuration discovery, token matching, record parsing, split-tree detection, census or allocation counts. Never read held manifests or import held code. A layout refusal stops the walk. The holding contract is `docs\u002FAGENTS.md` §3.\n>\n> **Concern 0 — per-repo configuration (the repo-root `.crux` file, per `docs\u002FAGENTS.md` §14; do this FIRST):**\n> 0a. (CHK-CFG-1) Run `python3 \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fbionic-config.py\"` from the repo root (the retained `crux-config.py` delegates to it; either works). It resolves the precedence `.bionic.yml` > legacy `.crux` > content-validated bare-directory discovery > default (per `docs\u002FAGENTS.md` §14), reporting `source` (`\".bionic.yml\" | \".crux\" | \"discovery:\u003Cdir>\"`, with combined forms for a keyless config). Exit 1 → report the JSON `error` message verbatim. Exit 0 → note the resolved `docs_dir` and `artifact_prefix` and use that `docs_dir` as the docs root for every following item. A `.bionic.yml` coexisting with a legacy `.crux` is expected during migration (not a finding). Do not read the config YAML directly.\n> 0b. (CHK-CFG-2) Scan artifact filenames\u002Fids with `([A-Z][A-Z0-9]{1,9}-)?(PB|ADR)-(\\d{4})` and list the distinct prefix spellings in use (bare counts as one). Report when more than one exists, or when the dominant prefix differs from the resolved `artifact_prefix`.\n> 0c. (CHK-CFG-3) List any directory other than the configured `docs_dir` that looks like a crux docs tree (contains a `manifest.yml` with a readable `schema_version`) — including a stray default `.\u002Fdocs\u002F` when `.crux` relocates the tree.\n> 0d. (CHK-CFG-4) Group the dual-form scan's matches by (type token, 4-digit number); list any `(type, NNNN)` pair that appears under more than one spelling (bare and prefixed, or two different prefixes).\n>\n> **Concern 1 — master index and log:**\n> 1. List concerns in `manifest.yml`'s `concerns_enabled` that have no section in `docs\u002Findex.md`, and vice versa.\n> 2. For each concern section in `docs\u002Findex.md`, compare its declared count against the actual file count for that concern. List mismatches.\n> 3. Check that `docs\u002Findex.md` has a `_Last updated: YYYY-MM-DD_` line near the top.\n> 4. Run `uv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Foperation-log.py\" check --repo-root \u003Crepo-root>` and report each CHK-LOG-1 to CHK-LOG-7 finding from its JSON with its severity. The checks read the historical-reader op-enum regex from `docs\u002FAGENTS.md` §6 (single source of truth — read §6 for the exact pattern; it accepts both `cleanup-campsite` and the legacy `cleanup` for frozen history), across every detail file under `docs\u002Flog\u002F`, a legacy `docs\u002Flog.md`, staged files and strays. List malformed entries, out-of-enum ops, a missing `init` entry, unsplit or stray log files, undefined files under `docs\u002Flog\u002F`, and summary-gate failures or pending months.\n> 5. Do not order heading dates within a detail file: entries sit in write order, so date order is no finding.\n>\n> **Concern 1.A — schema version and inbox (read `docs\u002FAGENTS.md` §7 + §11 \"inbox is staging\"):**\n> 5a. (CHK-SCHEMA-1) Read `manifest.yml`'s `schema_version` with a real YAML parse. Report whether it equals `\"5\"`. If it is `\"4\"`, `\"3\"`, or `\"2\"`, name the pinned `v3.23.2` recovery route. Otherwise report incompatible tree schema without promising conversion.\n> 5b. (CHK-INBOX-1) Only when `schema_version == \"5\"`: confirm `docs\u002Finbox\u002F` exists. List it as missing if absent.\n> 5c. (CHK-INBOX-2) Only when `schema_version == \"5\"`: confirm `docs\u002Fresearch\u002Fnew\u002F` is ABSENT. List it if present (do not delete it).\n> 5d. (CHK-INBOX-3) Only when `schema_version == \"5\"`: count non-`.gitkeep` entries in `docs\u002Finbox\u002F` excluding the `_dispatched\u002F` subtree. Report the count (a partially-drained `urls.md` counts). Do NOT treat `docs\u002Finbox\u002F` as a concern — it gets no `docs\u002Findex.md` section; exclude it from the per-concern walk like `AGENTS.md`\u002F`README.md`.\n>\n> **Concern 1.B — invariants (only when `schema_version == \"5\"` AND `invariants` in `concerns_enabled`; see `docs\u002FAGENTS.md` §15):**\n> 5e. (CHK-INV-BIJECTION) Every ledger page under `\u003Cdocs_dir>\u002Finvariants\u002F` has a parseable unique `id`; every reconciliation entry names a pin with a ledger page. List pinless pages, duplicate ids, and reconciliation entries with no ledger page.\n> 5f. (CHK-INV-ORPHAN-CHECK) Every check in `\u003Cdocs_dir>\u002Finvariants\u002Fchecks\u002F` resolves via the reconciliation to exactly one existing pin. List orphan checks (no\u002Fmissing pin, or `check_id` absent from the suite).\n> 5g. (CHK-INV-DECORATION) List `ratified` pins with no resolvable check OR aggregate `last_result: none` (BROKEN). Do NOT flag `observed` pins with zero checks.\n> 5h. (CHK-INV-FAILING) List `ratified` pins whose aggregate `last_result` is `fail` (BROKEN) or `stale` (WARNING). Aggregate per `docs\u002FAGENTS.md` §15.4 (`fail`>`stale`>`pass`>`none`).\n> 5i. (CHK-INV-DANGEROUS) List `observed` pins with aggregate `last_result: pass` (WARNING). Report survey-debt: the count of `observed` pins (not a percentage).\n>\n> **Concern 1.C — observations (only when `observations` in `concerns_enabled`; see `docs\u002FAGENTS.md` §17):**\n> 5j. (CHK-OBS-BIJECTION) Every record under `\u003Cdocs_dir>\u002Fobservations\u002F` has a parseable unique `id` matching its filename; when `index.md` exists, every index row names a record with a file AND every record's `id` appears in a row. List parse failures, duplicate ids, filename mismatches, index rows with no file, and records with no row.\n> 5ja. (CHK-OBS-ANCHOR) Every record's `anchor_id` is 16 lowercase hex digits, and no two records in `observed` or `ratified` share one. List absent or malformed values and every anchor claimed by more than one live record.\n> 5k. (CHK-OBS-EVIDENCE) Every `evidence` entry matches the `path:line-range` grammar; a `ratified` record's paths all resolve to a file inside the repository root, symlinks followed. List unparseable entries, unresolvable or escaping paths, and empty `evidence` lists.\n> 5l. (CHK-OBS-DECIDED) A `decided` record's `decided_by` names an existing ADR; `decided_by` is non-null iff `status` is `decided`. List violations.\n> 5m. (CHK-OBS-STALE) List `observed` records whose `observed_date` is older than `observation.stale_days` in `manifest.yml` (absent falls back to 90) (WARNING). Report survey-debt: the count of `observed` records (not a percentage).\n> 5n. (CHK-OBS-SURVEY-STUB) List receipts under `\u003Cdocs_dir>\u002Fobservations\u002F_surveys\u002F` recording no completion: WARNING inside `observation.survey_stub_days` in `manifest.yml` (absent falls back to 1), BROKEN past that window.\n> 5o. (CHK-OBS-SURVEY-VISIBLE) List records visible under `\u003Cdocs_dir>\u002Fobservations\u002F` whose receipt records no completion (BROKEN at any age).\n> 5p. (CHK-OBS-SURVEY-DIGEST) List receipts whose recomputed digest no longer matches the sheet archived beside them (BROKEN).\n> 5q. (CHK-OBS-SURVEY-RECORD) List `ratified` records whose `anchor_id` no receipt covers AND behind which no `observation` log op stands (BROKEN).\n>\n> **Concern 2 — code:**\n> 6. If `docs\u002Fcode\u002F` exists, confirm `docs\u002Fcode\u002F_meta\u002Fmanifest.json` exists and is valid JSON.\n> 7. For every row in `_meta\u002Fmanifest.json`, confirm the `doc_path` file exists. List missing files.\n> 8. For every `.md` file under `docs\u002Fcode\u002F` (excluding `index.md` and `_meta\u002F`), confirm it's listed in the manifest. List orphans.\n> 9. Confirm `docs\u002Fcode\u002Findex.md` exists. (Do not run any extractor — that's destructive and outside the audit's scope.)\n>\n> **Concern 3 — research:**\n> 10. Every `docs\u002Fresearch\u002Fsources\u002F\u003Cslug>.md` has required frontmatter (title, slug, type=source, source_url, source_date, author, captured_at, last_source_check, raw_path, previous_captures, static, tags). List pages with missing keys.\n> 11. Every source page's `slug` matches its filename. List mismatches.\n> 12. Every source page's `raw_path` and every entry in `previous_captures` resolves to an existing directory under `docs\u002Fresearch\u002Fraw\u002F`. List broken paths.\n> 13. Every directory `docs\u002Fresearch\u002Fraw\u002F\u003CYYYY-MM-DD>\u002F\u003Cslug>\u002F` is referenced by exactly one source page. List orphan and shared raws.\n> 14. Every synthesis page under `docs\u002Fresearch\u002F\u003Ccategory>\u002F` has required frontmatter (title, slug, type matching dir, tags, sources, last_reviewed). List pages with missing keys.\n> 15. Every slug in any synthesis `sources:` list exists in `docs\u002Fresearch\u002Fsources\u002F`. List dangling slugs.\n> 16. Confirm `docs\u002Fresearch\u002Fsources.md` exists with the 9 documented columns. Parse the table; for each row, list any column that disagrees with the corresponding source page's frontmatter. List orphan rows (slug has no source page) and missing rows (source page has no row).\n> 17. Confirm `docs\u002Fresearch\u002Fupdates.md` exists; list malformed `## ` headings.\n> 18. Every `[[research\u002Fsources\u002F\u003Cslug>]]` and `[[research\u002F\u003Ccategory>\u002F\u003Cslug>]]` wiki-link across `docs\u002F` resolves. List dangling.\n> 19. Count `[contradiction]`, `[unresolved]`, `[source updated]`, `[refresh failed]` markers and `## Capture gaps` sections.\n>\n> **Concern 4 — ADRs and briefs:**\n> 20. Every `docs\u002Fadrs\u002FADR-NNNN-*.md` has the required frontmatter keyset defined canonically in `docs\u002FAGENTS.md` §11.A (single source of truth — read §11.A for the field list; `amends:` is optional). List pages missing any §11.A-required key.\n> 20a. (CHK-ADR-1a) Compare `${CRUX_PLUGIN_ROOT}\u002Ftemplates\u002FADR-template.md`'s frontmatter keyset against the backticked col-1 tokens in `docs\u002FAGENTS.md` §11.A. WARN on any divergence (template and schema drifted).\n> 21. Every ADR's `id` matches its filename prefix. List mismatches.\n> 22. ADR numbering is contiguous from 0000. List gaps. List duplicates through CHK-NUM-1 (item 40e), which reads the same filenames.\n> 23. State-machine consistency: for each ADR, check that `accepted_date`\u002F`deprecated_date`\u002F`superseded_date` are non-null iff status implies them. List violations.\n> 24. Supersession bidirectionality: for every `superseded_by: ADR-X`, confirm `ADR-X.supersedes` contains this ADR; and for every entry in any `supersedes`, confirm `superseded_by` points back. List one-sided links. Separately, for every ADR with a top-level `amends:` list, confirm each entry resolves to an existing `docs\u002Fadrs\u002FADR-*.md`. List dangling. The `amends:` relationship is one-way — do NOT report missing `amended_by:` back-refs on the amended ADRs.\n> 25. `manifest.yml`'s `adr.next_number` must be strictly greater than the max existing ADR number. Report the values.\n> 26. Every `related_briefs:` entry resolves to an existing `docs\u002Fbriefs\u002FBRIEF-\u003Cslug>.md`. List dangling.\n> 27. Every `related_research:` entry resolves under `docs\u002Fresearch\u002F`: a bare `^[a-z0-9-]+$` slug → `sources\u002F\u003Cslug>.md`; a `^[a-z0-9-]+\u002F[a-z0-9-]+$` path → `docs\u002Fresearch\u002F\u003Ccategory>\u002F\u003Cslug>.md` (or `sources\u002F\u003Cslug>`). Reject any `..`\u002Fleading-`\u002F`\u002F`~`\u002Fmulti-slash entry as malformed (containment). List dangling + malformed.\n> 28. For every brief in any ADR's `related_briefs:`, confirm the brief's own `related_adrs:` lists the ADR back. List missing back-refs.\n> 29. List ADRs that reference a brief with `status: draft`.\n> 30. Confirm `docs\u002Fadrs\u002Findex.md` exists with one row per ADR. List orphan rows and missing rows.\n> 30a. (CHK-ADR-SPEC) Read `docs\u002Fmanifest.yml` `adr.spec_rule_from`. Absent\u002Fnull\u002Funparsable → report \"body content rule not adopted in this tree\" and DO NOTHING ELSE for this item. Otherwise, for every ADR numbered ≥ that value in either tier: measure the body span from `## Context` through the last non-blank line before `## References` and compare it against `docs\u002FAGENTS.md` §11.D's stated budget, and scan the same span for recipe-shaped content (fenced block, call signature or `def`\u002F`class`, flagged command, `| field | type |` shape table). WARN only — never a repair, never a proposed body edit; the body is frozen. An over-budget body carrying §11.D's justification blockquote under `## Context`, and an ADR that is itself a shape's source of truth, are both NOT findings. Report the measured span beside the budget, and state that the recipe scan is a heuristic that both over- and under-reports.\n>\n> **Concern 4.A — objectives (per `docs\u002FAGENTS.md` §5.B; no `concerns_enabled` entry gates these — run them on every `schema_version == \"5\"` tree):**\n> 4Aa. (CHK-OBJ-1) Confirm `\u003Cdocs_dir>\u002Fobjectives.md` exists and its frontmatter carries exactly the §5.B keyset, with `maturity` in the §5.B enum, `reviewed_at` an ISO date not in the future, and `review_every_days` a positive integer. Read §5.B for the keyset and the enum; do not restate either. A missing file is this item's own finding, never a skip. List every miss.\n> 4Ab. (CHK-OBJ-2) Confirm the body carries §5.B's three H2 headings, in §5.B's order, and no other H2. List violations.\n> 4Ac. (CHK-OBJ-3) Only when `maturity` is not `placeholder`: list bracketed template text left in the Mission, an empty goal list, any goal missing one of §5.B's four fields or carrying an out-of-enum `kind` or `status`, and goal ids that are not contiguous from 1 and unique. At `placeholder` report nothing for this item.\n> 4Ad. (CHK-OBJ-4) List Shifts rows whose date is not an ISO date or whose `shifted` value is neither `mission` nor an existing `OBJ-N`, and every goal with `status: dropped` that no Shifts row names.\n> 4Ae. (CHK-OBJ-5) Report a `reviewed_at` older than `review_every_days` as a WARNING, naming the age in days and the threshold. Do NOT edit the file — `reviewed_at` moves only after a human read.\n> 4Af. Find every `OBJ-N` token in the review reports, briefs, and ADRs under `docs\u002F`. Resolve each against the goals in `\u003Cdocs_dir>\u002Fobjectives.md`. List every dangling token as BROKEN.\n>\n> **Concern 5 — promptbooks (format coexistence — glob both `.yaml` and `.md`; route by extension + `format_version`):**\n> 31. (CHK-PB-1) Glob both `docs\u002Fpromptbooks\u002Factive\u002FPB-NNNN-*.yaml` and `docs\u002Fpromptbooks\u002F{active,archive}\u002FPB-NNNN-*.md`. For each **`.yaml` book with top-level `format_version`**: validate shape by invoking `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fvalidate-promptbook.py --kind promptbook \u003Cpath>` (exit 0 = clean; exit 1 + JSON `errors` = invalid → list them as BROKEN); other non-zero with empty stdout = crash — surface stderr, e.g. the exit-2 YAML-capability error (PyYAML missing; see `docs\u002FAGENTS.md` §10.A)). A `.yaml` book LACKING `format_version` → BROKEN (malformed). For each **`.md` book**: check the legacy required frontmatter keyset (id, title, status, created_at, total_prompts, current_run, current_prompt, forked_from, tags). List violations.\n> 32. Every book's `id` matches its filename prefix. List mismatches.\n> 33. (CHK-PB-3) For each book, format-detected: **`.yaml` book** → confirm `total_prompts == len(prompts)` (the structured array; do NOT count `### Prompt N` headings — there are none, and counting would corrupt to 0). **`.md` book (active)** → count `### Prompt N` headings in the body; list mismatches against `total_prompts`. Either way, confirm `current_prompt ≤ total_prompts` when non-null.\n> 34. For every book with `current_run: RUN-NNN`, confirm `docs\u002Fpromptbooks\u002Fruns\u002F\u003Cid>-\u003Cslug>\u002Frun-\u003CRUN-NNN>.md` exists. List dangling pointers. A `current_run` pointing at a TERMINAL run (`completed` or `abandoned`) is EXPECTED — the pointer stays until archival — and is not a dangling pointer; only a missing snapshot file is.\n> 35. List `docs\u002Fpromptbooks\u002Fruns\u002F\u003Cid>-\u003Cslug>\u002F` directories with no parent book in `active\u002F` or `archive\u002F` (orphan run dirs).\n> 36. Every run snapshot (glob both `run-*.yaml` and `run-*.md` under `docs\u002Fpromptbooks\u002Fruns\u002F\u003Cbook>\u002F`) has the required top-level keys (run_id, book_id, started_at, completed_at, status, current_prompt) with status ∈ {in_progress, completed, abandoned}. For `.yaml` runs the run validator (item 40b) covers this shape; for `.md` runs check the legacy frontmatter. List violations.\n> 37. For `status: completed` runs, confirm `completed_at` is non-null and every prompt's `**State:**` is terminal per the state-enum notes in `docs\u002FAGENTS.md` §11.B (single source of truth — read §11.B for the terminal definition). List violations.\n> 38. (CHK-PB-9) For archived books, confirm the FINAL run is archive-eligible by one of the two paths in `docs\u002FAGENTS.md` §11.B: `status: completed` with every prompt terminal (`done | skipped | blocked`), OR `status: abandoned` with `abandonment.kind: deliberate`. List violations. Eligibility is a run-level property — there is no per-prompt flag.\n> 39. Every `forked_from: PB-MMMM` references an existing book. List dangling references. Nothing writes this field any more (it is an always-null vestige); the check is retained for the historical corpus.\n> 40. `manifest.yml`'s `promptbook.next_number` must be strictly greater than the max existing PB number. Report values.\n> 40a. (CHK-PB-ABANDON) For each ARCHIVED book whose final run has `status: abandoned`: confirm it carries `abandonment.kind: deliberate`. `kind: superseded`, or no `abandonment` mapping at all, → BROKEN (archived on a signal that confers no eligibility). A `deliberate` abandonment on a run under `active\u002F` is legitimate — ignore it (do NOT flag).\n> 40a-bis. (CHK-PB-RADIUS) For each ARCHIVED book with `cycle_kind: patch`: confirm `blast_radius` is present and non-empty, every entry passes the declared-path grammar `invalid_blast_radius_entry` in `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fvalidate-promptbook.py` (the single implementation — call it or read it; do NOT restate its rejections), and the final run has a non-null `base_commit`. Violation → BROKEN. Do NOT re-run the git comparison — a historical diff is not reproducible from an archived tree; containment was checked once at archival by `archive-promptbook`. Demote to WARNING per the immutable-history rule.\n> 40b. (CHK-PB-SCHEMA) Format-detected per-prompt shape. **`.yaml` run with `format_version`** → invoke `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fvalidate-promptbook.py --kind run \u003Cpath>` (exit 0 = clean; exit 1 + JSON `errors` = list them) — other non-zero with empty stdout = crash (surface stderr, e.g. the exit-2 YAML-capability error (PyYAML missing; see `docs\u002FAGENTS.md` §10.A)); a `.yaml` run lacking `format_version` → BROKEN (malformed). **`.md` run** → validate each `^## Prompt N` block against `docs\u002FAGENTS.md` §11.B (read §11.B for fields + enum). Ignore `## Notes`\u002F`## Summary`\u002F`## PR Draft` and nested `###`\u002F`####` content. Accept bulleted `- **Field:**` and bare `**Field:**`. Findings: missing §11.B-required field → DRIFT-surface; `State` ∉ enum → BROKEN; unknown `**Field:**` → WARNING. `blocked-confirmed` is a RETIRED field — IGNORE it entirely (do NOT report it as unknown; those `.md` bodies are frozen). Demote ALL findings to WARNING (both paths) for archived or `status: completed` snapshots (status wins over path).\n> 40c. (CHK-PB-BIND) For each **`.yaml` run** whose `book_id` resolves to an active-or-archived `.yaml` book: recompute the book's frozen-plan hash via `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fvalidate-promptbook.py`'s `compute_book_hash` (canonical-JSON of the plan-bearing fields, excluding run-state `current_run`\u002F`current_prompt`\u002F`status`) and compare to the run's stored `book_content_hash`. List any mismatch (stored vs. recomputed) as DRIFT — NEVER auto-fix (recomputing erases the evidence; remediation is the §4 abandon rule — abandon the run, author a successor book). An unresolvable `book_id` is NOT this rule — that's the orphan-run-dir \u002F parent-book check (item 35).\n> 40d. (CHK-PB-11) `docs\u002Fpromptbooks\u002Findex.md` completeness. **Delegate it:** invoke `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-promptbook-index.py --root \u003Crepo root>` (exit 0 = clean; exit 1 + JSON `validation_errors` = list them; other non-zero with empty stdout = crash, surface stderr). It reports a book on disk with no index row, a duplicate row, a row naming a book that is not there, a heading whose count disagrees with the rows below it, and the tree index's promptbook rollup disagreeing with the directories. Membership is the DIRECTORY WALK (`active\u002F` and `archive\u002F`, extension-agnostic, `legacy\u002F` excluded) — never a `status` frontmatter filter, which yields a different set and would call an incomplete index consistent. **This item exists because its absence was the defect.** The inline rule list carried CHK-PB-11; this delegated enumeration did not. On a tree large enough to route the audit here, the index went uninspected, which is how 107 rows sat against 109 books. Missing rows → DRIFT (additive, auto-fixable); an orphan row → confirm before removing, per the destructive-repair rule.\n>\n> 40e. (CHK-NUM-1) Duplicate record numbers. **Delegate it:** invoke `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-record-numbers.py --repo-root \u003Crepo root>` (exit 0 = clean; exit 1 + JSON `validation_errors` = list them, each naming the files that hold the shared number; other non-zero with empty stdout = crash, surface stderr). It covers promptbooks, promptbook run directories and ADRs across both lifecycle tiers, and excludes `legacy\u002F`. A shared number is BROKEN; report it and never renumber.\n>\n> **Concern 6 — journal:**\n> 41. Every `## ` heading in `docs\u002Fjournal\u002FYYYY-MM.md` must match `## \\[\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}\\] (decision|implementation|bug|learning|blocker|refactor|meeting|review|misc|release) \\| `. List malformed.\n> 42. List entries whose date is outside the file's `YYYY-MM` scope.\n> 43. (CHK-JR-3) Run `generate-journal-index.py --dry-run`. Parse stdout as JSON regardless of exit code and report its verdict — do not walk `docs\u002Fjournal\u002F` and compare counts by hand.\n> 44. List dangling wiki-links inside journal entries (`adrs\u002F`, `promptbooks\u002F`, `research\u002F` targets). Promptbook **book**-links are lifecycle-agnostic (per `docs\u002FAGENTS.md` §11): `[[promptbooks\u002F(active|archive)\u002FPB-NNNN-\u003Cslug>]]`, `[[promptbooks\u002FPB-NNNN-\u003Cslug>]]`, `[[promptbooks\u002FPB-NNNN]]` resolve iff a book with that id exists under `active\u002F` OR `archive\u002F` (the `PB-NNNN` id is authoritative; ignore the segment; `legacy\u002F` excluded). `runs\u002F` links resolve by exact path.\n> 45. Confirm entries are reverse-chronological within each month file.\n>\n> **Concern 7 — catalog:**\n> 46. Catalog integrity: (CHK-CAT-1) list every entry in `${CRUX_PLUGIN_ROOT}\u002Fcatalog\u002F` and confirm each is a regular file with suffix `.json` or `.yml` that parses by extension — report a directory, a symlink, or any other suffix as a misfiled entry and do NOT follow or parse it; report an entry over 1 MiB — this rule's per-entry ceiling, applied to `.json` and `.yml` alike — as misfiled without parsing it (a `.yml` also faces the loader's tighter 64 KiB `CATALOG_MAX_BYTES` refusal, which fires first and is the loader's to report, not yours). Confirm the required files exist: the `.json` files named in `validate-catalog.py`'s `REQUIRED_CATALOG_JSON` constant, and the `.yml` files named in its `CATALOG_TARGETS` constant (both ship inside the plugin — do NOT derive either from the repo-root `AGENTS.md`, which an installed tree may well have and which is NOT this plugin's roster; if a constant cannot be read, report BROKEN rather than an empty floor). (CHK-CAT-2) List skill ids present in `plugin.json` but missing from `catalog\u002Fskills.json`, and vice versa. (CHK-CAT-4) List bundle `skills:` entries in `catalog\u002Fbundles.yml` that don't resolve to a `catalog\u002Fskills.json` id. (CHK-CAT-6) List the reverse: skills whose `bundles[]` names a bundle absent from `bundles.yml`, and skills absent from the `skills[]` of a bundle they declare. (CHK-CAT-5) Compare the count of `skills\u002F*\u002FSKILL.md` directories against the length of `catalog\u002Fskills.json`. Do not run `validate-catalog.py` — just compare on-disk state.\n>\n> **Concern 8 — arch (only when `arch` is in `manifest.yml`'s `concerns_enabled`; read `docs\u002FAGENTS.md` §4 \"arch\"):**\n> 47. (CHK-ARCH-1) Run `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fderive-arch.py --dry-run --docs-dir \u003Cdocs_dir>` from the repo root. Parse stdout as JSON regardless of exit code. Exit 1 means findings, and the payload names which of TWO independent channels found them; a run may carry both. exit 0 + `{\"clean\": true, \"drift\": [], \"strict_failures\": []}` = clean. exit 1 with `drift` non-empty = drift — report the drifted paths from the `drift` array as \"arch spine drifted (main session will regenerate)\". exit 1 with `strict_failures` non-empty = a requirement finding, NOT drift and NOT a failed regeneration: each entry names a concern `arch.require` declares this tree needs whose recorded verdict is not `populated` — report it as \"arch requirement not met: `\u003Cconcern>` is `\u003Cverdict>` (`\u003Cstub_reason>`)\" and say that regenerating arch does not fix it, because the committed tree already is what a regeneration produces. `clean` answers the drift question alone, so `{\"clean\": true, \"drift\": []}` at exit 1 is that second channel and not a contradiction. exit 2, non-zero with empty\u002Funparseable stdout, or exit 1 reporting findings in neither channel = no verdict — report the stderr, NOT a document finding. Two lanes share exit 2: a crash (an environment error) and a deliberate refusal (`StaleProjectionInput` on stderr, meaning a projected input is not what its own regenerator produces). Report which lane stderr names; on the refusal lane name the stale input and its own regenerator, and say that regenerating arch does not fix it. Do NOT regenerate — the main session runs `derive-arch.py` (no `--dry-run`) to auto-fix, and only on the drift lane.\n> 48. (CHK-ARCH-2) Confirm `\u003Cdocs_dir>\u002Farch\u002F` has the four spine files (`data-model.md`, `api-surface.md`, `module-graph.md`, `decision-index.md`) plus `overview.md`, `index.md`, and `_meta\u002Fmanifest.json`; list any missing (the main session's regenerate produces them). Separately, if `\u003Cdocs_dir>\u002Farch\u002F` exists but `arch` is NOT in `concerns_enabled`, report it as a stale derived tree (WARNING). Do NOT expect an `## Arch` section in `docs\u002Findex.md` — arch is derived and carries no master-index rollup.\n>\n>\n> **Concern 9 — regenerated-output drift and doctrine reconciliation (read `docs\u002FAGENTS.md` §4 \"doctrine\" + the repo-root `AGENTS.md` regenerative-outputs roster):**\n> 49. (CHK-DRIFT-1) Run each remaining enrolled `--dry-run` drift gate that Concerns 2\u002F7\u002F8 did NOT already run (they ran `extract-code-docs.py`, `validate-catalog.py`, `derive-arch.py`, `generate-routing-table.py` — do not re-run those). For the sixteen remaining roster outputs run: `summarize-adrs.py --dry-run`, `compile-doctrine.py --dry-run`, `generate-opencode-agents.py --dry-run`, `generate-lineage.py --dry-run`, `generate-adr-index.py --dry-run`, `generate-index-rollup.py --dry-run`, `generate-readme-footer.py --dry-run`, `generate-writing-rules.py --dry-run`, `generate-runtime-compat.py --dry-run`, `generate-reviews-index.py --dry-run`, `generate-journal-index.py --dry-run`, `generate-log-summary.py --dry-run`, `generate-rules-catalog.py --dry-run`, `generate-mods-reach-tables.py --dry-run`, `generate-micro-crux.py --dry-run` (agents.json is covered by the Concern-7 `validate-catalog.py` run — do not re-invoke it; a `\"surface_absent\": true` payload is N\u002FA, not clean — the reviews index, the journal index and the operations-log summary carry this payload on a tree that has not populated that surface yet, and the rules catalog, the reach tables and the micro-crux guide carry it outside the plugin's own checkout). Parse each stdout as JSON regardless of exit code: exit 1 + a drift payload → report DRIFT with the drifted paths and the regenerator that fixes it (main session recommends, never regenerates); a `validation_errors` payload → BROKEN (name the input to repair); non-zero + empty stdout → report the stderr, not a document finding; a `warnings` key → WARNING beside the verdict. Do NOT regenerate anything.\n> 50. (CHK-DOCTRINE-1) Only when `\u003Cdocs_dir>\u002Fadrs\u002Fdoctrine\u002F` exists: count pending reconciliation pairings by reading `\u003Cdocs_dir>\u002Fadrs\u002Fdoctrine\u002Findex.md` for domains marked `— BROKEN` with reconciliation-table rows whose status is `un-adjudicated`, `digest-stale`, or `collision` (or run `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-doctrine-reconciliation.py`: exit 1 + `broken_domains`). Report the count as WARNING \"N doctrine pairing(s) awaiting reconciliation — run reconcile-signoff\", plus any S1 `warnings` (a ratified invariant seeding no pairing). Do NOT auto-sign — reconcile-signoff is a human gate.\n>\n> Return a report grouped by concern with specific file paths and one-line descriptions. Keep findings terse — one line per violation.\n\n### 4. Apply fixes\n\nCategorize findings into BROKEN \u002F DRIFT \u002F WARNING.\n\n**Apply DRIFT auto-fixes** in the main session, with notification:\n- Update concern-section counts in `docs\u002Findex.md`.\n- Refresh `_Last updated:_` on `docs\u002Findex.md`.\n- Rebuild `docs\u002Fadrs\u002Findex.md`, `docs\u002Fpromptbooks\u002Findex.md` rollups from directory walks; for `docs\u002Fjournal\u002Findex.md`, recommend `generate-journal-index.py`.\n- Add missing `total_prompts` on active books (from `### Prompt N` count).\n- Set missing `last_reviewed` on synthesis pages where the value can be inferred from the operations log (use the `## [YYYY-MM-DD] ingest | \u003Ctouching slug>` entry with the latest heading date in any detail file under `docs\u002Flog\u002F`).\n- Fix `docs\u002Fresearch\u002Fsources.md` per-row column drift from frontmatter (frontmatter wins).\n- Create missing `docs\u002Fresearch\u002Fupdates.md` stub (header only).\n- Back-populate brief `related_adrs:` from ADR `related_briefs:`.\n- Regenerate a drifted `arch` spine (CHK-ARCH-1): run `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fderive-arch.py --docs-dir \u003Cdocs_dir>`, then confirm clean with one `--dry-run`. This is the one regenerated artifact the audit rewrites in place — `docs\u002Fcode\u002F` and the skill catalog are recommend-only (see the destructive-BROKEN list). Skip under `--migrate`.\n\n**Safe-to-fix-automatically BROKEN findings, with notification**:\n- Add missing optional frontmatter keys with sensible defaults (`previous_captures: []`, `static: false`).\n\n**Requires user confirmation (destructive BROKEN)**:\n- Removing orphan index rows.\n- Deleting orphan raw folders.\n- Deleting orphan run directories.\n- Removing dangling slugs from any `sources:` \u002F `related_briefs:` \u002F `related_research:` \u002F `supersedes:` list.\n- Fixing supersession bidirectionality (the missing-link side might be the wrong side; ask).\n- Regenerating `docs\u002Fresearch\u002Fsources.md` from scratch when missing.\n- Re-extracting `docs\u002Fcode\u002F` to clear orphan pages (recommend running `extract-code-docs` separately).\n\n**WARNINGS**: report only. Offer to address in a follow-up session.\n\n### 5. Record the `audit` operation\n\nWrite the entry through the log writer, as `docs\u002FAGENTS.md` §6 states: write the body to a file outside the tree, then run\n\n```\nuv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Foperation-log.py\" append --repo-root \u003Crepo-root> \\\n  --op audit --subject '\u003CB broken \u002F D drift fixed \u002F W warnings>' --date \u003CYYYY-MM-DD> --body-file \u003Cpath>\n```\n\nIt writes this heading at the top of the current month's detail file:\n\n```\n## [YYYY-MM-DD] audit | \u003CB broken \u002F D drift fixed \u002F W warnings>\n```\n\nA refused append keeps the audit's other writes; fix the cause it names and rerun the append alone. Then run the commit step of §6 over the result's `commit_paths` and `restore_paths`.\n\nBody, in three short sections:\n- **Fixed (drift + safe-broken)**: bulleted list per concern of what changed.\n- **Pending broken**: list with file paths and the action the user needs to decide.\n- **Warnings**: counts grouped by check id and concern.\n\n### 6. Hand-off\n\nReport to the user in this order:\n1. Summary line: `Audit complete: B broken, D drift, W warnings. Q auto-fixes applied. R pending your decision.`\n2. Pending BROKEN items requiring decisions, one per line with a recommended action.\n3. Notable warnings (e.g., \"8 contradiction markers across 5 research pages — schedule `refresh-research-synthesis`\").\n4. Cross-concern observations: ADR drift > 2 → recommend a `transition-adr --repair` pass; code drift detected → recommend `extract-code-docs`; arch spine drifted → note it was regenerated in place (name the drifted files); promptbook progress stalled → mention it.\n5. If applicable: \"It's been N writes since the last audit per concern — consider audits more\u002Fless often.\"\n\n## The `--migrate` mode\n\nIn the current release, `audit-docs --migrate` handles only repository\ninstruction files behind CHK-INSTR-1\u002F2\u002F4. It has no tree-schema ladder. A\nschema-5 tree can still owe this instruction migration. When CHK-SCHEMA-1 finds\nan older supported schema or a partial `.migrating` marker, use the pinned\nrecovery release first; [`references\u002Fmigrate-mode.md`](references\u002Fmigrate-mode.md)\ncontains the route and the independent instruction procedure.\n\nRun the current instruction migrator through its vendored script:\n\n```bash\nuv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fmigrate-instructions.py\" --repo-root . --migrate\n```\n\nExit `0` clean, `1` with findings JSON when a scope is refused, stopped, or\nmigrated without staging, `2` on a capability error. Where a scope holds both a\n`CLAUDE.md` and an `AGENTS.md`, `CLAUDE.md` wins: its bytes become `AGENTS.md`,\nwith each line that imports the other file replaced by that file's bytes. A losing\n`AGENTS.md` whose bytes differ is set aside under a reported name in its own\ndirectory, never overwritten. Show the user every set-aside, refusal and next step\nthe report names. The migration plans every scope before it mutates anything, and a\nrerun reaches the state an uninterrupted run reaches — it claims **no multi-file\nfilesystem atomicity**, and the receipt says so in as many words.\n\n## Red flags — STOP and reconsider\n\n- About to delete a raw folder, run-snapshot directory, or any file under `docs\u002F` without explicit user confirmation. **NEVER.** Always ask.\n- About to rewrite ADR body content \"to fix the alternatives section\". The audit never touches ADR body — only status frontmatter and only via `transition-adr`.\n- About to rewrite a research synthesis page during the audit. NEVER. That's `refresh-research-synthesis`.\n- About to edit a past operations-log entry, in a detail file under `docs\u002Flog\u002F` or a legacy `docs\u002Flog.md`, to \"fix the format\". The log is append-only history. Mistakes are evidence; surface them, don't rewrite.\n- About to edit a past journal entry. Same rule — append-only.\n- About to edit a past run snapshot's prompt body. Run snapshots' prompt bodies are immutable.\n- About to merge two ADRs or two source pages to resolve a duplicate. Never auto-merge; ask which is canonical.\n- About to \"fix\" supersession bidirectionality by editing both ends without user consent. The missing back-link might be the wrong direction — the user has to confirm which ADR really supersedes which.\n- About to regenerate `docs\u002Fresearch\u002Fsources.md` from scratch because it's missing. Stop. Reconstructing from frontmatter loses any hand-edits. Ask first.\n- About to auto-run `extract-code-docs` to fix code drift. The audit only runs `--dry-run`. The real extraction is the user's explicit call.\n- About to apply >20 auto-fixes silently. Show the user the list first — could be a systematic issue.\n- About to invoke this skill recursively from inside another skill. The audit is end-of-cycle, not a hook.\n\n## Rationalization table and common mistakes\n\nThe Red flags list above is the primary stop-list. For the fuller\nexcuse→reality mapping and the recurring-mistake catalog (log-vs-journal\nconfusion, hidden-file counting, naive frontmatter parsing, orphan-vs-abandoned\nruns), read [`references\u002Fpitfalls.md`](references\u002Fpitfalls.md).\n\n## Output format example\n\nFor a worked example of the end-of-audit DRIFT \u002F BROKEN \u002F WARNINGS report the\nhand-off produces, see [`references\u002Foutput-format.md`](references\u002Foutput-format.md).\n\n## CHK-ADR-ARCHIVE (SP-4)\n\nTier invariant: active `adrs\u002F` holds {Proposed, Accepted}; cold `adrs\u002Farchive\u002F` holds {Superseded, Deprecated}. `CHK-ADR-ARCHIVE` flags every violation — a Proposed\u002FAccepted ADR in `archive\u002F`, a Superseded\u002FDeprecated ADR still active, an unknown status, a duplicate id across tiers — and **auto-repairs the one legitimate crash window** (a terminal-status ADR still in `adrs\u002F` → complete the move). An active-status ADR found in `archive\u002F` is corruption: flagged BROKEN, never moved back. A **raw-path guard** flags any non-wiki-link ADR path reference (`bionic\u002Fadrs\u002F…`, `adrs\u002F…`, `.\u002F…`, `…\u002Farchive\u002F…`) in prose\u002Fprompts, with an allowlist for the ADR machinery (`propose-adr`, `transition-adr`, `generate-index-rollup.py`, `generate-lineage.py`, `generate-adr-index.py`, `summarize-adrs.py`). The counter-contiguity and supersedes\u002Fsuperseded_by bidirectional checks walk both tiers.\n\nThe summaries projection declares `_meta.json` schema `\"6\"`; doctrine declares schema `\"5\"`. These are projection versions, independent of tree-layout schema `\"5\"`, plugin schema `\"4\"` and book\u002Frun formats. Historical slug\u002Fhandle and clause rosters resolve preserved evidence, not governing rows; current live replacements remain separate from original historical displacer provenance. A malformed historical map or failed activation is a refusal, never a reason to restore the old rule. Mutable governing references must resolve surviving architecture through `lint-governs-references.py`; excluded dated or frozen evidence retains historical retrieval semantics. Human-signed doctrine pairings require separate human disposition before a migration affects them. Report the dependency; never edit or sign the ledger, rewrite frozen bodies or repair a historical citation into current authority.\n\n**`\u003Cdocs_dir>\u002Fadrs\u002Fsummaries\u002F` is a REGENERATED artifact directory** — the summaries rule table, resolver, and ADR↔run implementation map plus `_meta.json`, projected deterministically from ADR `governs` blocks (a regenerative output). It is NOT part of the ADR document graph: exclude it from every CHK-ADR-* walk (its files are not ADRs and carry no ADR frontmatter) and from the raw-path guard's prose scan (its `ADR-NNNN` references are machine-emitted data, not authored prose), exactly as `promptbooks\u002Flegacy\u002F` is excluded from every CHK-PB-* walk. Its drift is owned by `summarize-adrs.py --dry-run` (the regenerative-outputs roster gate + CI) and is now DETECTED by audit-docs through **CHK-DRIFT-1** (which runs that same gate) — but audit-docs only **recommends** `summarize-adrs.py`; it does **not** regenerate the summaries projection here. The same recommend-only rule holds for the **doctrine projection** (`\u003Cdocs_dir>\u002Fadrs\u002Fdoctrine\u002F`), a separate REGENERATED artifact directory (index + `_meta.json`, compiled from the summaries projection and reconciled against the ratified invariants): exclude it from every CHK-ADR-* walk and the raw-path guard's prose scan exactly like `summaries\u002F`; its drift is detected by CHK-DRIFT-1's `compile-doctrine.py --dry-run` and recommended via `compile-doctrine`, never regenerated in the audit. `\u003Cdocs_dir>\u002Fadrs\u002Fdoctrine\u002Freconciliations.yml` is likewise machine-owned (only `reconcile-signoff` writes it) — the audit reads it and never edits it.\n\n**`\u003Cdocs_dir>\u002Fadrs\u002Freviews\u002F` is excluded on a different ground** (rule:reviews-surface-excluded-from-adr-walks). It holds the dated reports of the periodic decision review, one `YYYY-MM-DD.md` per pass, plus a derived index. Exclude it from every CHK-ADR-* walk and from the raw-path guard's prose scan, exactly as `summaries\u002F` and `doctrine\u002F` are excluded. The reason differs from that precedent's: `summaries\u002F` and `doctrine\u002F` are regenerated wholesale, while a review report is hand-kept and never regenerated. The only gate over the surface is the reviews index's own regenerator and its drift gate. Without the exclusion a dated report reads as a malformed ADR to every CHK-ADR-* rule — no ADR id, no §11.A frontmatter — and the ADR ids a report cites inline by contract would trip the raw-path guard. The audit neither reads a report as a record nor edits one. The index's drift belongs to CHK-DRIFT-1, whose regenerator is enrolled in the regenerative-outputs roster; the audit recommends that regenerator and never runs it.\n\n[^code-doc-uv]: rule:code-doc-callers-invoke-through-uv\n[^correct]: rule:existing-books-are-corrected-at-execution\n[^log-enum]: rule:op-enum-applies-to-every-detail-file, rule:log-readers-read-every-log-file\n[^log-gate]: rule:pending-month-is-not-drift, rule:summary-gate-fails-on-a-changed-region\n","# Audit Docs\n\n> **Execution context:** this skill runs in a forked subagent and returns a summary to the caller. The fork does not see the main-thread conversation, so pass any needed context explicitly at invocation.\n\n\u003C!-- BEGIN GENERATED: runtime-compat -->\n## Runtime compatibility\n\nThis skill is portable across Claude Code, Codex, OpenCode, and OMP (Oh My Pi). This section overrides platform-specific labels below.\n\n- Before running a command that uses `CRUX_PLUGIN_ROOT`, set it to the installed plugin root. In Claude Code, use the value of `CLAUDE_PLUGIN_ROOT`. In Codex, OpenCode, and OMP, derive it from the absolute path of this selected `SKILL.md`: the plugin root is the parent of its `skills\u002F` directory (in OMP `bash`, `skill:\u002F\u002F\u003Cname>` resolves to the skill directory). In a source checkout, use the checkout `crux\u002F` directory.\n- For project-local skills, use `.claude\u002Fskills` in Claude Code, `.agents\u002Fskills` in Codex, `.opencode\u002Fskills` in OpenCode (which also reads the singular `.opencode\u002Fskill`), and `.omp\u002Fskills` in OMP. Set `CRUX_LOCAL_SKILLS_DIR` to that path before following any command below that uses it.\n- Translate Claude Code tool labels such as `Agent`, `Read`, `Write`, `Bash`, `WebSearch`, and `WebFetch` to the matching capability in the current session. Codex names its own capabilities; OpenCode uses the lowercase forms `subagent`, `read`, `edit`, `shell`, `websearch`, and `webfetch`, where `edit` covers both `Edit` and `Write`; OMP uses `task`, `read`, `edit`, `write`, `bash`, `grep`, `glob`, `find`, `todo`, and `web_search` (where `read` also handles URLs and `skill:\u002F\u002F` URIs). Do not attempt to invoke the Claude Code labels as literal commands on another host.\n- Install the generated role agents before delegating: `install-codex-agents` in Codex, `install-opencode-agents` in OpenCode, `install-omp-agents` in OMP. Codex names them `crux_architect`, `crux_brainstormer`, `crux_commander`, `crux_dev_lead`, `crux_developer`, `crux_historian`, `crux_librarian`, `crux_night_gardener`, `crux_reviewer`, and `crux_wayfinder`; OpenCode and OMP use the bare role names `architect`, `brainstormer`, `commander`, `dev-lead`, `developer`, `historian`, `librarian`, `night-gardener`, `reviewer`, and `wayfinder` (in OMP, `scout` may also be used for reconnaissance alongside `wayfinder`). If a required role or capability is unavailable, report that truthfully instead of claiming it ran.\n- Argument placeholders such as `$adr` and `$book` bind only in Claude Code. On a host without argument binding they are unset — take the value from the user's phrase. The \"Fields OpenCode ignores\" section of `OPENCODE_GUIDE.md` names the invocation-control fields OpenCode ignores.\n\u003C!-- END GENERATED: runtime-compat -->\n\n## Current cycle records\n\nValidate new cycle records through `cycle.py show` and the cycle schema. Review\nidentity, phase\u002Fpass state, references, history, and evidence. Legacy CHK-CYCLE and\npromptbook minimum\u002Fmodule checks below apply only to historical promptbooks; never\napply them to new cycle records or repair a cycle into a promptbook.\n\n\n\n## Overview\n\nThe integrity check for the entire `docs\u002F` tree. Mirrors the samples `audit-vault` pattern but spans seven concerns: code, research, ADRs, briefs, journal, promptbooks, and invariants — plus the derived `arch` spine. Detects every form of drift between `docs\u002Findex.md`, the per-concern indexes, the files on disk, and the cross-concern reference graph (ADR ↔ brief, ADR ↔ research, journal ↔ ADR\u002Fpromptbook, promptbook ↔ run-snapshot). For the two other regenerated artifacts (`docs\u002Fcode\u002F`, the skill catalog) it detects drift and recommends the regenerator; for the `arch` spine it regenerates in place (CHK-ARCH-1) — arch's inputs are all committed in-tree, so a regenerate can never capture in-flight uncommitted source.\n\nThe audit is **mostly read-only**. Findings are applied in three phases: DRIFT auto-fixes happen with notification; safe-BROKEN fixes happen with notification; destructive-BROKEN fixes require explicit user confirmation. Never auto-deletes a file. Never auto-rewrites an ADR body, a synthesis page's prose, a run-snapshot body, or a journal entry. Never edits past operations-log entries.\n\nAround 97 checks across eighteen concern groups plus the schema\u002Finbox layer. Run on every ~10 writes per concern; proactively recommend after a `refresh-research-sources` batch updating >5 sources, after a `mix docs`-driving refactor, before any release, and after an `init-docs --force` or schema migration.\n\n## When to use\n\n- User says: \"audit\", \"audit docs\", \"audit the docs\", \"check docs\", \"verify integrity\", \"find drift\", \"is the docs tree clean?\".\n- Proactively after every ~10 writes per concern. Track in the operations log under `docs\u002Flog\u002F` — when the count since the last audit reaches ~10 for a concern, mention it.\n- Immediately after a `refresh-research-sources` batch updating >5 sources.\n- Before any release or external publication.\n- After a tree-schema recovery with the tagged release; audit the upgraded copy with the current version.\n\nDo **not** use this skill for:\n- Routine per-write verification — each writing skill has its own checklist.\n- Regenerating `docs\u002Fcode\u002F` — that's `extract-code-docs`. The audit only calls `extract-code-docs --dry-run` to detect drift.\n- Repairing destructive findings without user confirmation — surface them, don't act.\n\n## Severity tiers\n\n| Tier | Definition | Default action |\n|---|---|---|\n| **BROKEN** | A schema or cross-reference contract is violated. Cannot be ignored. | Block clean-audit. Auto-fix if additive and safe; ask if destructive. |\n| **DRIFT** | Counts, dates, indexes, or rollups out of sync with reality. Recoverable bookkeeping. | Auto-fix with notification. |\n| **WARNING** | Informational. May or may not be a problem. | Report only. |\n\n## The pipeline\n\n### 1. Decide walk strategy\n\nBefore recursive walking or configuration discovery, prune retained demonstration holdings: list the holdings once with `uv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fauthority-view.py\" retained-roots --repo-root \u003Crepo-root>` and skip each listed root during recursive walks; test one path with `uv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fauthority-view.py\" retained --repo-root \u003Crepo-root> \u003Cpath>` (exit 0, `retained` true or false). Apply this exclusion before split-tree detection, record parsing, census and allocation counts. Never inspect held manifests or nested configuration during those checks. A layout refusal stops the walk before repairs. The holding contract is `docs\u002FAGENTS.md` §3; direct concern globs need no recursive scan.\n\nBefore authority-dependent checks or a clean-audit conclusion, run `uv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fauthority-view.py\" state --repo-root \u003Crepo-root>`. Exit 0 reports `original` (no clause migration was ever published, so every ADR clause governs as its record says; this is the normal state) or `published` (a migration publication was proved from full Git history, so the clauses it moved are historical evidence, not current constraints). Exit 1 prints `{\"authority\": \"none\", \"limit\": \"\u003Ccode>\"}`: current authority is unknown. Never fall back to an older ADR body or resolver. The common code is `history-unavailable`, a shallow clone of a tree that published a migration; fetch full history with `git fetch --unshallow`. Exit 2 is an environment error. A refusal stops those checks; report it and preserve files. Do not infer publication from an applied flag, summaries, doctrine or an existing roster. Implementation Decisions preserve reviewed intent; results preserve delivery evidence; neither establishes current source state or enters ADR\u002Fobservation governance through a filename, quotation or mapping. Preserve historical references and surviving architectural clauses within mixed records. Audit may report a genuine architectural conflict; replacing a conforming implementation alone is no revocation finding.\n\nCount total `.md` files under `docs\u002F` after pruning holdings through the shared predicate. An unpruned recursive count includes retained records.\n\n- **Fewer than ~100 files**: walk inline in the main session using Read\u002FGlob\u002FGrep.\n- **100 or more**: spawn an Explore agent with the walk prompt below. The agent returns a structured findings report; the main session applies fixes.\n\nAlso count per-concern files for the rollup numbers used in `docs\u002Findex.md`.\n\n### 2. Walk and collect findings\n\nThe walk produces a categorized findings list across eleven concern groups (plus the 1.A schema\u002Finbox layer). Each check is named so it can be reported individually.\n\n#### Concern 0 — Per-repo configuration (the repo-root `.crux` file, per `docs\u002FAGENTS.md` §14)\n\nRuns FIRST — the resolved `docs_dir` is the docs root every later check walks. This is the repo-root `.crux` *file* (per-project config, designed to be committed so the team shares it — works identically untracked), not the user-home `~\u002F.crux\u002F` *directory*. All `ADR-NNNN-*` \u002F `PB-NNNN-*` filename globs and id regexes throughout this skill accept an optional artifact prefix per docs\u002FAGENTS.md §14.3 (dual-form: `([A-Z][A-Z0-9]{1,9}-)?(PB|ADR)-(\\d{4})`).\n\n- **CHK-CFG-1** Validate the repo-root layout config via the loader semantics: invoke `python3 \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fbionic-config.py\"` (the retained `crux-config.py` is a back-compat delegator to the same entrypoint; either works). Delegate — do NOT re-implement the textual\u002Fcontainment validation or read the YAML ad hoc. Per the `docs\u002FAGENTS.md` §14 config contract, the CLI resolves the precedence `.bionic.yml` > legacy `.crux` > content-validated bare-directory discovery > default, reporting which won via `source` (`\".bionic.yml\" | \".crux\" | \"discovery:\u003Cdir>\"`, with combined forms like `\".bionic.yml+discovery:\u003Cdir>\"` when a keyless config falls through to discovery). Exit 0 → clean; hold the resolved `docs_dir`\u002F`artifact_prefix` for the rest of the walk. Exit 1 → BROKEN, reporting the `{\"error\": ...}` message verbatim (a malformed\u002Finvalid config never falls back to defaults or to the lower-precedence file — per the `docs\u002FAGENTS.md` §14.1 fail-loud rule). Both files absent is clean (discovery resolves the tree; `source: \"discovery:\u003Cdir>\"` when no config exists — `\"defaults\"` is not emitted). A `.bionic.yml` coexisting with a legacy `.crux` is EXPECTED during migration and is NOT a finding (the CLI just reports `source: \".bionic.yml\"`). The invariants concern and the tree relocation both shipped; `docs_dir` names the tree and the check suite lives inside it (see §14\u002F§15).\n- **CHK-CFG-2** Prefix consistency. Dual-form scan of artifact ids across the tree with `([A-Z][A-Z0-9]{1,9}-)?(PB|ADR)-(\\d{4})`; collect the distinct prefix spellings (capture 1, with \"bare\" counting as one). More than one distinct prefix in the tree, OR the dominant prefix ≠ the current `.crux` `artifact_prefix` value → WARNING (mixed trees are valid per `docs\u002FAGENTS.md` §14.3 — ids are immutable history — but one repo SHOULD converge on one prefix; this is where a typo'd prefix like `CRUX-` vs `CRX-` surfaces).\n- **CHK-CFG-3** Split-tree backstop. A crux-shaped docs tree (a directory containing a `manifest.yml` with a readable `schema_version`) exists at any location other than the configured `docs_dir` — **including the default `.\u002Fdocs\u002F` in a repo whose `.crux` relocates the tree** (the silent second tree a pre-`.crux` toolchain creates by ignoring the file) → BROKEN. Surface both paths and recommend consolidation; never auto-delete or auto-merge.\n- **CHK-CFG-4** `(type, NNNN)` uniqueness across spellings (the `docs\u002FAGENTS.md` §14.3 allocation invariant, asserted mechanically). Dual-form scan `([A-Z][A-Z0-9]{1,9}-)?(PB|ADR)-(\\d{4})` over the tree's artifact filenames and ids; group by (capture 2, capture 3); any pair duplicated across bare\u002Fprefixed spellings (e.g. both `PB-0040` and `CRX-PB-0040`, or two different prefixes on the same number) → BROKEN (numbers are never reused, including across prefixes; any max-derivation likewise takes the integer max over capture 3 across bare AND prefixed artifacts).\n\n#### Concern 1 — Master index and log (mostly DRIFT)\n\n- **CHK-MI-1** Every concern enabled in `manifest.yml`'s `concerns_enabled` has a corresponding section in `docs\u002Findex.md`. Missing section → DRIFT (auto-add header + rollup). Section for a concern NOT in `concerns_enabled` → WARNING (concern was probably disabled but section wasn't removed; ask). **`docs\u002Finbox\u002F` is NOT a concern** — it is cross-concern staging (per `docs\u002FAGENTS.md` §11 \"inbox is staging\") and is deliberately absent from `concerns_enabled`, so CHK-MI-1 must NOT demand a `## Inbox` section in `docs\u002Findex.md`. The inbox is excluded from the concern-section walk exactly like `docs\u002FAGENTS.md`\u002F`docs\u002FREADME.md` (see the non-concern excluded-paths list); its only audit coverage is CHK-SCHEMA-1 + CHK-INBOX-1\u002F2\u002F3. **`arch` is a concern but is likewise exempt from this master-section requirement** — it is derived and regenerated (per `docs\u002FAGENTS.md` §4 \"arch\"), its catalog is its own `\u003Cdocs_dir>\u002Farch\u002Findex.md` plus the spine hash, and a dated master-index rollup row would violate arch's no-timestamp rule. So CHK-MI-1 must NOT demand or auto-add an `## Arch` section in `docs\u002Findex.md`; arch's coverage is CHK-ARCH-1\u002F2 (Concern 8).\n- **CHK-MI-2** Each concern section's file count in `docs\u002Findex.md` matches the actual file count for that concern. Mismatch → DRIFT (auto-fix). **The ADRs rollup has a vendored regenerator:** `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fgenerate-index-rollup.py` rebuilds the `## ADRs (N)` section of `docs\u002Findex.md` as a pure function of ADR frontmatter (`--dry-run` is its drift gate, exit 1 on drift). For that one section prefer running the regenerator over hand-fixing, and wire its `--dry-run` into whatever suite this repo gates on. **Every other concern rollup (research, briefs, journal, promptbooks, invariants, code) is prose-checked here only** — a passing ADR-rollup gate says nothing about them.\n- **CHK-MI-3** `docs\u002Findex.md` has a top-of-file `_Last updated: YYYY-MM-DD_` line. Missing or stale (older than today after a fix) → DRIFT (set to today on any audit fix; otherwise leave).\n- **Operations-log checks (CHK-LOG-1 to CHK-LOG-7).** Run `uv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Foperation-log.py\" check --repo-root \u003Crepo-root>` and report its JSON. It exits 0 clean, 1 with findings, 2 on an environment fault. The checks read the op-enum regexes from the tree's own `docs\u002FAGENTS.md` §6, which stays the single source of truth for them — do NOT restate the enum here. The historical-reader form accepts both `cleanup-campsite` and the legacy `cleanup` (frozen history predating the rename).[^log-enum] A legacy `docs\u002Flog.md`, a stray and a staged file are all read, so each check covers every log file.\n- **CHK-LOG-1** Every `## ` heading outside a fence in every detail file `docs\u002Flog\u002FYYYY-MM.md`, legacy `docs\u002Flog.md`, staged file and stray matches the §6 historical-reader regex and carries a real calendar date. It also reports an entry that ends inside an open fence and a detail file whose bytes outside its entries leave a fence open. Malformed → DRIFT-surface (do NOT auto-edit; surface for user review).\n- **CHK-LOG-2** Each detail file's bytes outside its entries are exactly the detail header of §6. Otherwise → DRIFT (never auto-edited; the finding prints the expected header). No check orders heading dates within a file: a file holds entries in write order, so a merged stray block, a backdated write and a release heading dated in another zone each break date order legitimately.\n- **CHK-LOG-3** The log, every log file read together, holds the bootstrap `init` entry from `init-docs`. Missing → BROKEN (ask; never auto-regenerate).\n- **CHK-LOG-4** Every operation logged with `\u003Cop>` outside the enum → BROKEN (typo or unauthorized op; surface). A §6 with no historical-reader block adds a WARNING; one with no op-enum block is BROKEN.\n- **CHK-LOG-5** A legacy `docs\u002Flog.md`, a stray, a staged legacy file, a staged stray, a split transaction file, or no completion record → DRIFT; the auto-fix runs `operation-log.py repair`, which is lossless, and surfaces its refusal. Three states are conflicts with no auto-fix, reported BROKEN: two distinct staged legacy files, a staged legacy file and a staged stray with equal bytes, and a staged legacy file beside the completion record.\n- **CHK-LOG-6** A file in `docs\u002Flog\u002F` whose name §6 does not define, a log file that is a symlink or not a regular file, or a `docs\u002Flog\u002F` that is not a directory → BROKEN. A leftover writer temporary `.write-journal-\u003Chex>` → WARNING.\n- **CHK-LOG-7** `generate-log-summary.py --dry-run` reports a region failure → DRIFT, auto-fixed by running `generate-log-summary.py`; a structure failure → DRIFT with no auto-fix (edit `docs\u002Flog\u002Fsummary.md` by hand, or run `operation-log.py repair`); pending months alone → WARNING, cleared by `cleanup-campsite`.[^log-gate]\n\n#### Concern 1.A — Schema version and inbox (see `docs\u002FAGENTS.md` §7)\n\nThe supported-range predicate is the single-value check `schema_version == \"5\"`. The current plugin operates only on that tree schema. It recognizes `\"2\"`, `\"3\"`, and `\"4\"` only to direct recovery through the pinned `v3.23.2` release. A missing, earlier, newer, or unrecognized value has no promised migration route. Read `manifest.yml` with a real YAML parse. CHK-INBOX-1\u002F2\u002F3 apply only at schema 5.\n\n- **CHK-SCHEMA-1** `manifest.yml` carries `schema_version == \"5\"` with no in-flight `.migrating` marker. Any other value or marker → BROKEN. For `\"2\"`, `\"3\"`, or `\"4\"`, and for a valid partial marker, give the pinned recovery route in [`references\u002Fmigrate-mode.md`](references\u002Fmigrate-mode.md). An invalid marker or ambiguous pair of trees refuses without guessing. For every other schema value, report incompatibility without promising conversion. Never auto-bump the value or change a marker.\n- **CHK-INBOX-1** At schema 5, `docs\u002Finbox\u002F` exists. Missing → BROKEN. Inspect the tree and repair the missing directory without treating it as an older schema; do not auto-create it during a plain audit.\n#### Concern 1.B — Repository instruction files (see `docs\u002FAGENTS.md` §18)\n\n`AGENTS.md` is the canonical file at every managed instruction scope. These rules\nare **report-only in a plain audit**; `--migrate` applies the validated plan. Run\nthe vendored script rather than reimplementing discovery here — it owns the\nscope boundary, the classification, and the set-aside:\n\n```bash\nuv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fmigrate-instructions.py\" --repo-root . --dry-run\n```\n\n**Two sets, and conflating them is the defect these rules exist to prevent.** The\nMUTATION set is the entries and index paths of each touched scope of this one\ncheckout: a directory holding a tracked instruction file. A vendored dependency\ncache and a linked worktree hold no file tracked here, so they are outside it by\nconstruction. The SUPPRESSION set is wider and includes untracked files, because a\nfile crux must not touch can still silence the canonical one.\n\n- **CHK-INSTR-1** No managed scope holds a committed `CLAUDE.md`. One present →\n  DRIFT, remediation `audit-docs --migrate`. Never migrate during a plain audit.\n- **CHK-INSTR-2** No scope holds two names in one case-folded family (`CLAUDE.md`\n  plus `Claude.md`), counted across the directory and the index → BROKEN.\n  `--migrate` refuses the scope rather than guessing which name wins, and the\n  report names both paths and the next step.\n- **CHK-INSTR-3** Every suppressor under the checkout is reported with its remedy:\n  an untracked `CLAUDE.md`, a `.claude\u002FCLAUDE.md`, a `CLAUDE.local.md`, and a\n  tracked legacy `CLAUDE.md` that has not yet migrated. A suppressor **on the chain\n  from the root to the working directory** is WARNING, because under the host's\n  default mode it silences the canonical file outright. One **off** that chain is\n  INFO — it is reported, and it changes nothing about what this host loads now.\n  Never delete a private override; report it.\n- **CHK-INSTR-4** A scope `--migrate` refused, stopped, or migrated without\n  staging, a scope whose index holds a path its directory no longer lists, and every\n  set-aside entry (`\u003Cname>.crux-set-aside-\u003Chash>`) → WARNING.\n  Some set-asides hold content that no longer loads, and the report's\n  `no_longer_loaded` list names them. Other set-asides hold a winner, or a loser the\n  winner imported, and that content still loads. A set-aside row carries no next\n  step. A refused or stopped scope names its blocking entry and a next step. A\n  scope that stages nothing names its reasons in `stages_nothing_because`, and its\n  index-only blobs with a save command. Each blocks its own scope and no other.\n- **CHK-INSTR-5** The host loads what this tree publishes. Run\n  `uv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-claude-compat.py\" --repo-root .`; an\n  unsupported verdict is a WARNING carrying the verdict's own `reasons`. A version\n  number alone never settles this, so never report compatibility from one. Three of\n  the five host causes are repaired by a setting rather than a file; the remaining two\n  route to [`references\u002Flegacy-claude-adapter.md`](references\u002Flegacy-claude-adapter.md),\n  which is opt-in and never part of a normal install. `managed-only` is repaired by\n  configuration alone and never by the adapter. A sixth cause is a missing\n  `AGENTS.md`: no `AGENTS.md` on the chain from the root to the working directory\n  (and, under `claude-md-and-agents-md`, no `CLAUDE.md`) means the host loads none\n  of this tree's instructions. Its remedy is to create an `AGENTS.md` spelled exactly so. `init-docs`\n  creates one only while it initialises a tree in a root that holds no `AGENTS.md` or `CLAUDE.md` in any\n  letter case. A `CLAUDE.local.md` does not block that create. The remedy is never the adapter, which derives from that file.\n\n- **CHK-INBOX-2** At schema 5, `docs\u002Fresearch\u002Fnew\u002F` is absent. Present → DRIFT. Inspect its contents and move pending drops into `docs\u002Finbox\u002F` without overwriting or deleting them; never auto-delete this directory during a plain audit.\n- **CHK-INBOX-3** When `schema_version == \"5\"`: count non-`.gitkeep` entries in `docs\u002Finbox\u002F` **excluding the `_dispatched\u002F` subtree** (a partially-drained `urls.md` legitimately counts). Non-empty → WARNING `\"N items pending in docs\u002Finbox\u002F\"` (NOT BROKEN — pending drops are normal; the user runs `process-inbox` to triage). Empty → no finding.\n\n#### Concern 1.B — Invariants (per `docs\u002FAGENTS.md` §15; conditional on `schema_version == \"5\"` AND `invariants` in `concerns_enabled`)\n\nThe invariants concern has a ledger under `\u003Cdocs_dir>\u002Finvariants\u002F` (a walked concern, gets a `docs\u002Findex.md` section) AND an executable check suite at `\u003Cdocs_dir>\u002Finvariants\u002Fchecks\u002F` reconciled via the `.bionic.yml`-rooted manifest (NOT a docs concern section — the surface the rules below reconcile). All CHK-INV rules read the canonical schema in `docs\u002FAGENTS.md` §15 (do NOT restate it here). When the concern is disabled (or the tree is pre-v4), these rules are silent. Pin-level `last_result` is the §15.4 aggregate (`fail`>`stale`>`pass`>`none`). The rules are reference-implemented and tested in `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fcheck_invariants.py` (exit 0 clean \u002F 1 findings, JSON on stdout) — CHK-INV MAY delegate to it, the same pattern CHK-CFG-1 uses for `crux-config.py` and CHK-CAT-3 for `validate-catalog.py`.\n\n- **CHK-INV-BIJECTION** pin↔ledger-page is 1:1: a ledger page with no parseable `id`, a duplicate `id`, or a reconciliation entry naming a pin with no ledger page → **BROKEN**.\n- **CHK-INV-ORPHAN-CHECK** every check in `\u003Cdocs_dir>\u002Finvariants\u002Fchecks\u002F` resolves via the reconciliation to exactly one existing pin; a check tracing to no\u002Fmissing pin, or a `check_id` absent from the suite → **BROKEN**.\n- **CHK-INV-DECORATION** a `ratified` pin with no resolvable check OR aggregate `last_result: none` → **BROKEN** (a trusted pin nothing proves). An `observed` pin with zero checks is NOT flagged (expected known-unknown).\n- **CHK-INV-FAILING** a `ratified` pin whose aggregate `last_result` is `fail` → **BROKEN**; `stale` → **WARNING**.\n- **CHK-INV-DANGEROUS** an `observed` pin with aggregate `last_result: pass` → **WARNING** (a green check that may be cementing unratified behavior). Plus **survey-debt**: surface the count of `observed` pins (never as a coverage percentage).\n\n#### Concern 1.C — Observations (per `docs\u002FAGENTS.md` §17; conditional on `observations` in `concerns_enabled`)\n\nThe observations concern has a set of records under `\u003Cdocs_dir>\u002Fobservations\u002F` (a walked concern, gets a `docs\u002Findex.md` section) plus `\u003Cdocs_dir>\u002Fobservations\u002Findex.md`, which is **hand-maintained** by `propose-observation` \u002F `transition-observation` — not a regenerated artifact. An index row naming a record with no file, or a file with no index row, is therefore a real finding, never something to silently rewrite. All CHK-OBS rules read the canonical schema in `docs\u002FAGENTS.md` §17.1 (do NOT restate it here) and the lifecycle in §17.2. They are reference-implemented and tested in `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fcheck_observations.py` (exit 0 clean \u002F 1 findings, JSON on stdout) — CHK-OBS MAY delegate to it, the same pattern CHK-INV uses for `check_invariants.py`. When the concern is disabled, these rules are silent, and so is the checker.\n\n> **`\u003Cdocs_dir>\u002Fobservations\u002F_surveys\u002F` is EXCLUDED from every CHK-OBS record walk.** It is the frozen holding area for signed review sheets and their receipts, on the `docs\u002Fpromptbooks\u002Flegacy\u002F` model: present on disk, invisible to the concern walk, and carrying no `docs\u002Findex.md` section. The record walk is `*.md`-scoped and the live sheet is `\u003Cdocs_dir>\u002Fobservations\u002Fsurvey-SVY-NNNN.yml`, so neither the live sheet nor anything under `_surveys\u002F` is a record — a `.yml` beside the records is never a stray-file finding. Do **not** glob `_surveys\u002F` for CHK-OBS-BIJECTION (record↔file), CHK-OBS-ANCHOR, CHK-OBS-EVIDENCE, CHK-OBS-DECIDED, or CHK-OBS-STALE. Its only coverage is the four CHK-OBS-SURVEY-* rules below, which read it as batch state rather than as records.\n\n- **CHK-OBS-BIJECTION** record↔file is 1:1: a file under `\u003Cdocs_dir>\u002Fobservations\u002F` with no parseable `id`, a duplicate `id`, an `id` that disagrees with its filename, an index row naming a record with no file, or a record file whose `id` appears in no index row → **BROKEN**. The last direction is the reverse of the one before it, and both run only when `index.md` exists.\n- **CHK-OBS-ANCHOR** `anchor_id` is present on every record and matches `^[0-9a-f]{16}$` → **BROKEN** when it is absent or malformed. No two records in `observed` or `ratified` status share an `anchor_id` → **BROKEN** on a collision. This is what makes a re-mine recognize a fact already recorded (§17.2); a record missing the field is silently skipped by the re-mine, which then proposes a duplicate.\n- **CHK-OBS-EVIDENCE** every `evidence` entry matches the `path:line-range` grammar, and a `ratified` record resolves every path it cites → **BROKEN** on an unresolvable path, an unparseable entry, or an empty `evidence` list. A cited path must also resolve to a location inside the repository root: an absolute path, a `~`-prefixed path, a `..` traversal, or a path reaching outside the root through a symlink is the same finding.\n- **CHK-OBS-DECIDED** a `decided` record names a `decided_by` ADR that exists → **BROKEN** when it does not. A non-`decided` record carrying a non-null `decided_by`, or a `decided` record carrying `null`, is the same finding.\n- **CHK-OBS-STALE** an `observed` record whose `observed_date` is older than `observation.stale_days` in `manifest.yml` (absent falls back to 90) → **WARNING**. Report survey-debt as the count of `observed` records, never as a coverage percentage: the denominator would be the facts nobody has written down, which nobody knows.\n\nFour more rules read the batch surfaces contracted in `docs\u002FAGENTS.md` §17.5 (do NOT restate that protocol here). Each derives batch state through the one shared function §17.5 names, so a gate never disagrees with the writer.\n\n- **CHK-OBS-SURVEY-STUB** a receipt under `\u003Cdocs_dir>\u002Fobservations\u002F_surveys\u002FSVY-NNNN\u002F` recording no completion → **WARNING** inside `observation.survey_stub_days` in `manifest.yml` (absent falls back to 1), which is what a sign-off still in progress looks like, and **BROKEN** past that window. The remedy is re-running the sign-off, which finishes the publish.\n- **CHK-OBS-SURVEY-VISIBLE** a record visible under `\u003Cdocs_dir>\u002Fobservations\u002F` whose receipt records no completion → **BROKEN** at any age. No healthy in-flight state produces one, because §17.5 lands completion before visibility.\n- **CHK-OBS-SURVEY-DIGEST** a receipt whose recomputed digest no longer matches the sheet archived beside it → **BROKEN**.\n- **CHK-OBS-SURVEY-RECORD** a `ratified` record whose `anchor_id` no receipt covers **and** behind which no `observation` log op stands → **BROKEN**. The rule is a disjunction and stays one: the single-record path writes no receipt, so a conjunction would report BROKEN on every record that path wrote. It detects an unrecorded batch and never a forgery, because an actor with write access can write every surface.\n\n#### Concern 2 — Code (mostly BROKEN if wrong, DRIFT via dispatcher)\n\n- **CHK-CODE-1** If `code` is in `concerns_enabled`, `docs\u002Fcode\u002F_meta\u002Fmanifest.json` exists. Missing → BROKEN (recommend `extract-code-docs`, do not invent).\n- **CHK-CODE-2** Every row in `_meta\u002Fmanifest.json` has an existing `.md` file at `doc_path`. Missing files → BROKEN (likely deleted hand or by a failed write; recommend re-extraction).\n- **CHK-CODE-3** Every `.md` file under `docs\u002Fcode\u002F` (other than `index.md` and `_meta\u002Fmanifest.json`) is listed in the manifest. Orphan files → BROKEN (these are hand-edits that survived a regenerate, OR a stale file from before the prune step landed). Recommend re-run `extract-code-docs` to clean (it will delete them).\n- **CHK-CODE-4** Drift detection: invoke `uv run --no-config \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fextract-code-docs.py\" --dry-run --config docs\u002Fmanifest.yml` from the repo root.[^code-doc-uv] Parse stdout as JSON regardless of exit code, on three lanes, never conflated (the same exit-code semantics as `verify-code-docs`): exit 0 + `drift: false` = clean; exit 1 + `drift: true` = **DRIFT** (byte-level, against actual bytes on disk — surface the `pages` lists and the `index_drift`\u002F`metadata_drift` flags and recommend a real run; a fresh `unowned` count under a `--lang`-scoped tree is reported, not drift); exit 1 + a `validation_errors` payload and no `drift` key = **BROKEN** (tree-content is malformed — regenerating cannot fix it; name the path and cause); non-zero + empty\u002Funparseable stdout = an environment failure (capability mismatch or a `uv` resolution failure before the dispatcher starts), never a document finding. A metadata-only drift immediately after a plugin upgrade is expected and clears after one full `extract-code-docs` run. DO NOT auto-run a real extraction during the audit — that's `extract-code-docs`'s job, and is destructive enough to warrant explicit user invocation.\n- **CHK-CODE-5** `docs\u002Fcode\u002Findex.md` exists and has one section per language namespace under `docs\u002Fcode\u002F`. Missing → DRIFT (will regenerate on next extract; flag).\n\n#### Concern 3 — Research (mirrors samples `audit-vault`)\n\n- **CHK-RES-1** Every `docs\u002Fresearch\u002Fsources\u002F\u003Cslug>.md` has required frontmatter: `title`, `slug`, `type: source`, `source_url`, `source_date`, `author`, `captured_at`, `last_source_check`, `raw_path`, `previous_captures`, `static`, `tags` (the canonical field list — `ingest-research` writes it, this check enforces it). Missing → BROKEN.\n- **CHK-RES-2** `slug` in frontmatter matches the filename. Mismatch → BROKEN.\n- **CHK-RES-3** `raw_path` resolves to an existing directory under `docs\u002Fresearch\u002Fraw\u002F`. Broken path → BROKEN.\n- **CHK-RES-4** Every entry in `previous_captures` resolves to an existing directory. Broken → BROKEN.\n- **CHK-RES-5** Every directory `docs\u002Fresearch\u002Fraw\u002F\u003CYYYY-MM-DD>\u002F\u003Cslug>\u002F` is referenced by exactly one source page via `raw_path` or `previous_captures`. Orphan raws (no reference) → BROKEN. Shared raws (multiple references) → BROKEN.\n- **CHK-RES-6** Every synthesis page under `docs\u002Fresearch\u002F\u003Ccategory>\u002F` has required frontmatter: `title`, `slug`, `type` (matches dir), `tags`, `sources`, `last_reviewed` (the canonical synthesis field list — `ingest-research` writes it, this check enforces it). Missing → BROKEN.\n- **CHK-RES-7** Every slug in any synthesis page's `sources:` list exists in `docs\u002Fresearch\u002Fsources\u002F`. Dangling → BROKEN.\n- **CHK-RES-8** `docs\u002Fresearch\u002Fsources.md` exists at the research root with 9 columns matching samples. Missing → BROKEN (do NOT auto-regenerate; ask). Wrong column set → BROKEN. Per-row column mismatches against frontmatter → DRIFT (auto-fix from frontmatter; frontmatter is source of truth).\n- **CHK-RES-9** `docs\u002Fresearch\u002Fupdates.md` exists. Missing → DRIFT (create stub header only — no entries). Every `## ` heading matches `## \\[\\d{4}-\\d{2}-\\d{2}\\] \u003Cslug>`. Malformed → WARNING (surface, don't edit).\n- **CHK-RES-10** Every `[[research\u002Fsources\u002F\u003Cslug>]]` and `[[research\u002F\u003Ccategory>\u002F\u003Cslug>]]` link resolves. Dangling → BROKEN.\n- **CHK-RES-11** Count `> [contradiction]`, `> [unresolved]`, `> [source updated]`, `> [refresh failed]` markers and `## Capture gaps` sections across research pages. → WARNING (report counts).\n\n#### Concern 4 — ADRs and briefs\n\n- **CHK-ADR-1** Every `docs\u002Fadrs\u002FADR-NNNN-*.md` has the required frontmatter keyset defined canonically in **`docs\u002FAGENTS.md` §11.A \"Canonical ADR frontmatter schema\"** (the single source of truth — do NOT restate the field list here; read §11.A). Any field §11.A marks `required` that is missing → BROKEN. The `amends:` field is `optional` per §11.A (see CHK-ADR-6a for resolution semantics).\n- **CHK-ADR-1a** The frontmatter keyset of `${CRUX_PLUGIN_ROOT}\u002Ftemplates\u002FADR-template.md` MUST equal the canonical keyset in `docs\u002FAGENTS.md` §11.A. Mechanical comparison — **set equality, order-independent** (the template orders fields differently from §11.A; that is fine): (1) extract the backticked tokens from §11.A's first table column — every entry in that column uses backtick markup, so a row whose field is not backticked is itself a §11.A formatting bug and should be flagged; (2) parse the template's YAML frontmatter for its top-level keys (use a real YAML parse via Bash `python3 -c 'import yaml,sys; print(\"\\n\".join(yaml.safe_load(...)))'` rather than a line-grep — a grep would miss a key whose value shares the line, e.g. `amends: [] # ...`); (3) compare the two SETS. Any key in one but not the other → WARNING (\"ADR template and §11.A schema have drifted; reconcile against §11.A\"). This closes the loop so the template itself cannot silently drift from the schema. A stdlib unit test (`${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Ftests\u002Ftest_schema_invariants.py`) enforces the same invariant in CI.\n- **CHK-ADR-2** `id` matches filename prefix. Mismatch → BROKEN.\n- **CHK-ADR-3** `status` ∈ {Proposed, Accepted, Deprecated, Superseded}. Invalid → BROKEN.\n- **CHK-ADR-4** ADR numbering is monotonic and contiguous from 0000 with no gaps and no duplicates. Gap → WARNING; Duplicate → BROKEN, detected by CHK-NUM-1. **The \"ask\" on a gap is concrete — distinguish two dispositions by whether the deleted number is still referenced anywhere:** scan the tree (ADR `supersedes:`\u002F`superseded_by:`\u002F`amends:` frontmatter, any `adrs\u002FADR-NNNN` wiki-link, and the `docs\u002Fadrs\u002Findex.md` rows) for the gap's `ADR-NNNN`. (1) **Gap with NO surviving references** → the number is almost certainly a deleted Proposed ADR that was never cited; it is **renumberable** — recommend the user either reuse the gap by renumbering the next allocation down to close it, or leave it as a permanent hole (numbers are never reused once cited, but an uncited deleted-Proposed hole may be reclaimed). (2) **Gap WITH surviving references** → some artifact still points at the missing `ADR-NNNN`; it is **NOT renumberable** — surface every referencing path and recommend either restoring the ADR or fixing the dangling references; do not propose reusing the number. (This is a generic reference scan — crux has no separate id-validation machinery; do not cite one.)\n- **CHK-ADR-5** State-machine date consistency:\n  - `proposed_date` is non-null for every ADR (every ADR was proposed at some point).\n  - `accepted_date` is non-null iff `status` ∈ {Accepted, Deprecated, Superseded} AND the ADR ever passed through Accepted (Proposed → Deprecated is allowed; an ADR with status=Deprecated and accepted_date=null is the \"abandoned proposal\" case).\n  - `deprecated_date` is non-null iff `status == Deprecated`.\n  - `superseded_date` is non-null iff `status == Superseded`.\n  - Any violation → BROKEN (surface; never auto-set a date).\n- **CHK-ADR-6** Supersession bidirectionality: for every `superseded_by: ADR-X`, `ADR-X.supersedes` contains this ADR. For every entry in any `supersedes: [...]`, the target has `superseded_by` pointing back. Mismatch → BROKEN (auto-fixable via `transition-adr --repair` on user approval; never silent).\n- **CHK-ADR-6a** Optional top-level `amends:` field on an ADR is a YAML list of ADR ids (e.g., `[ADR-NNNN, ADR-MMMM]`). When present: every entry must resolve to an existing ADR file under `docs\u002Fadrs\u002F`. Dangling → BROKEN. Unlike `superseded_by:`\u002F`supersedes:`, `amends:` is **one-way** — the amending ADR records the relationship; the amended ADRs' frontmatter is NOT back-populated and no `amended_by:` field is enforced. It records narrow-scope decision refinements to predecessor ADRs without overwriting their `superseded_by:` chain. Distinct from `supersedes:` (which IS bidirectional and replaces the predecessor's `superseded_by:`).\n- **CHK-ADR-7** `manifest.yml`'s `adr.next_number` > max existing ADR number. Equal-or-less → BROKEN (next allocation would collide). Way greater than max+1 → WARNING (gaps suggest deletions; ask).\n- **CHK-ADR-8** Every entry in `related_briefs:` corresponds to an existing `docs\u002Fbriefs\u002FBRIEF-\u003Cslug>.md`. Dangling → BROKEN.\n- **CHK-ADR-9** Every entry in `related_research:` resolves under `docs\u002Fresearch\u002F`, behind a fail-closed grammar gate (the entry is author-controlled frontmatter that gets path-joined, so it inherits the §14.2 containment posture — reject, never resolve, any entry with `..`, a leading `\u002F`, `~`, or more than one `\u002F`): a **bare** slug matching `^[a-z0-9-]+$` → `docs\u002Fresearch\u002Fsources\u002F\u003Cslug>.md` (backward-compatible); a **single-segment path** matching `^[a-z0-9-]+\u002F[a-z0-9-]+$` → `docs\u002Fresearch\u002F\u003Ccategory>\u002F\u003Cslug>.md` (a synthesis page; the explicit `sources\u002F\u003Cslug>` form falls out for free). Any entry matching **neither** grammar (a traversing entry, or any other shape — trailing slash, uppercase, underscore, etc.) → BROKEN (malformed). No file at the grammar-valid resolved path → BROKEN (dangling). One-way: the target research page is NOT back-populated.\n- **CHK-ADR-10** Brief-side bidirectionality: every brief listed in any ADR's `related_briefs:` has its slug in its own `related_adrs:` frontmatter. Missing back-ref → DRIFT (auto-fix on briefs; briefs are draft material so back-population is safe).\n- **CHK-ADR-11** Briefs cited with `status: draft` → WARNING (\"ADR-X references brief Y still in draft; decision may need a follow-up\").\n- **CHK-ADR-12** `docs\u002Fadrs\u002Findex.md` exists with one row per ADR (columns: id, title, status, date, supersedes, superseded_by). Missing rows → DRIFT (auto-add from frontmatter). Orphan rows → BROKEN (ask).\n- **CHK-ADR-SPEC** The ADR **body content rule** — an ADR body states requirements and postconditions rather than implementation recipe — is defined canonically in **`docs\u002FAGENTS.md` §11.D \"ADR body content rule\"** (the single source of truth — do NOT restate the rule or the budget's value here; read §11.D). This rule REPORTS ONLY. It never repairs, never proposes an edit, and never asks: an ADR body past `Proposed` is frozen, so there is nothing here to fix even when the finding is correct. Severity is **WARNING** on every finding, including a clear one.\n\n  **Cohort gate — evaluate this FIRST and skip the whole rule when it does not pass.** Read `docs\u002Fmanifest.yml` `adr.spec_rule_from` — that key inside the `adr:` block, addressed by a real YAML parse and not by a line-grep, which would also match the same key name under a different block. Absent, `null`, or not an integer ADR number → **the rule is inert: emit no findings and no warnings, and say so in the report's ADR section in one line.** A tree that never adopted the rule must produce silence, not noise. Otherwise the cohort is every ADR whose number is **≥** that value, across both the active and archived tiers; every ADR below it is exempt permanently.\n\n  Two findings, per §11.D:\n\n  1. **Over budget without a declaration.** Measure the span from the body's `## Context` line through the last non-blank line before `## References`, per §11.D's rule 3 (`## References` and any footnote block are outside the span). Over §11.D's stated budget → WARNING, **unless** the body carries §11.D's justification blockquote immediately under `## Context`, in which case it is not a finding. Also not a finding when the ADR is itself a source of truth for a shape (§11.D rule 4's exemption). Report the measured span and the budget, so the reader can see the margin.\n  2. **Body content shaped like a recipe.** Heuristic, and stated as one: a fenced code block outside `## References`; a call signature or function definition in prose (`name(arg=…)`, `def `, `class `); a command recipe with flags; a `| field | type |` shape table restating a schema the body could have named instead. Each hit → WARNING naming the line, phrased as a prompt to look rather than a verdict.\n\n  **State the heuristic's error rate in the report, every run.** This rule reports bodies that are fine and misses bodies that are not. A reader who mistakes a WARNING here for a defect will try to edit a frozen body, which is the one action the rule forbids.\n\n#### Concern 4.A — Objectives (per `docs\u002FAGENTS.md` §5.B)\n\n`\u003Cdocs_dir>\u002Fobjectives.md` is a top-level, hand-authored file: the mission and goals a decision review measures the decision set against. It belongs to no concern and has no `docs\u002Findex.md` section, so no `concerns_enabled` entry gates these rules. They run on every audit of a `schema_version == \"5\"` tree. A missing file is CHK-OBJ-1's own finding, never a skip. All five rules read the canonical contract in `docs\u002FAGENTS.md` §5.B — the frontmatter keyset, the maturity ladder, the body shape, and the Shifts grammar (do NOT restate any of them here). The audit never edits the file. Humans own its content, and `reviewed_at` moves only after a human read.\n\n- **CHK-OBJ-1** the file exists; its frontmatter carries exactly the §5.B keyset; `maturity` is in the §5.B enum; `reviewed_at` is an ISO date not in the future; `review_every_days` is a positive integer → **BROKEN** on any miss.\n- **CHK-OBJ-2** the body carries §5.B's three H2 headings, in §5.B's order, and no other H2 → **BROKEN**.\n- **CHK-OBJ-3** when `maturity` is not `placeholder`: the Mission holds no bracketed template text; at least one goal exists; every goal carries §5.B's four fields with in-enum `kind` and `status`; goal ids are contiguous from 1 and unique → **BROKEN**. Silent at `placeholder` — an untouched template is the `cleanup-campsite` `CLN-OBJ-1` nudge's concern, not this rule's.\n- **CHK-OBJ-4** every Shifts row carries an ISO date and a `shifted` value that is `mission` or an existing `OBJ-N`; every `dropped` goal has a Shifts row naming it → **BROKEN**.\n- **CHK-OBJ-5** `reviewed_at` is older than `review_every_days` → **WARNING**: the file is due for a human read. Report the age in days and the threshold.\n\nAn `OBJ-N` token in a review report, a brief, or an ADR is a reference to this file. Resolve it against the goals here; a dangling one → **BROKEN**.\n\n#### Concern 5 — Promptbooks\n\n> **`docs\u002Fpromptbooks\u002Flegacy\u002F` is EXCLUDED from every CHK-PB-* walk.** It is the preserved-originals holding area populated by earlier migrations — a frozen archive of superseded pre-migration `.md` source files, not part of the live promptbook graph. Treat it like `docs\u002Finbox\u002F` \u002F `docs\u002FAGENTS.md`: present on disk, invisible to the concern walk. Do **not** glob it for CHK-PB-1 (book shape), CHK-PB-5\u002F6 (run-dir walks — its `run-*.md` are NOT orphan run dirs), CHK-PB-9\u002FABANDON\u002FRADIUS\u002FSCHEMA (immutable-history shape), CHK-PB-BIND (binding), or CHK-PB-11 (index rebuild — its books are NOT enumerated). Its only coverage is CHK-PB-LEGACY below.\n\n- **CHK-PB-1** Glob **both** `docs\u002Fpromptbooks\u002Factive\u002FPB-NNNN-*.yaml` and `docs\u002Fpromptbooks\u002F{active,archive}\u002FPB-NNNN-*.md` (format coexistence). **Route by (extension, `format_version`-present)** — the two-key detection table:\n  - **`.yaml` with top-level `format_version`** → **new-format**. The JSON Schema (`${CRUX_PLUGIN_ROOT}\u002Fschemas\u002Fpromptbook.schema.json`) is the SSOT for single-document shape (the same indirection CHK-ADR-1\u002FCHK-PB-SCHEMA already use — reference the schema by name, don't restate it). **Delegate the shape check:** invoke `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fvalidate-promptbook.py --kind promptbook \u003Cpath>`. Same exit-code\u002FJSON contract as CHK-CAT-3 (exit 0 = clean; exit 1 + `{\"errors\":[…]}` on stdout = invalid; non-zero + empty\u002Funparseable stdout = crash, surface stderr). Non-zero exit → **BROKEN**, reporting the validator's JSON `errors` (each carries `instance_path`\u002F`schema_path`).\n  - **`.yaml` lacking `format_version`** → **BROKEN** (a malformed new-format book; do NOT route to the legacy keyset check).\n  - **`.md`** → **legacy-markdown**: keep the existing required-frontmatter-keyset check (the keyset stated here is canonical): `id`, `title`, `status`, `created_at`, `total_prompts`, `current_run`, `current_prompt`, `forked_from`, `tags`. Missing → BROKEN. (The new-format top-level keys are a superset of this keyset, so the schema enforces the same requirement on the `.yaml` side.)\n  - Canonical valid example: `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Ftests\u002Ffixtures\u002Fpromptbook-valid.yaml` (round-trips clean through the validator).\n- **CHK-PB-2** `id` matches filename prefix. Mismatch → BROKEN.\n- **CHK-PB-3** `total_prompts` agreement, format-detected:\n  - **New-format `.yaml` book:** `total_prompts == len(prompts)` (the structured array). Mismatch → DRIFT. **Do NOT auto-fix by counting `### Prompt N` headings — a `.yaml` book has none, so the heading-count source does not exist; counting it would auto-corrupt `total_prompts` to 0.** The safe auto-fix is `total_prompts := len(prompts)`.\n  - **Legacy `.md` book (active):** `total_prompts` matches the count of `### Prompt N` headings in the body. Mismatch → DRIFT, report only. Missing `total_prompts` → BROKEN under CHK-PB-1. The current distribution never rewrites a Markdown book, even to repair this counter; preserve its bytes and name the finding.\n- **CHK-PB-4** `current_prompt ≤ total_prompts` when non-null. Violation → BROKEN.\n- **CHK-PB-5** If `current_run` is non-null, the snapshot `docs\u002Fpromptbooks\u002Fruns\u002F\u003Cid>-\u003Cslug>\u002Frun-\u003Ccurrent_run>.{yaml,md}` exists (check BOTH extensions — a `.yaml` book has a `.yaml` run, a `.md` book a `.md` run; format symmetry). Neither present → BROKEN (dangling pointer). A non-null `current_run` whose pointed-to run is TERMINAL (`status: completed` or `status: abandoned`) is EXPECTED — the pointer stays until `archive-promptbook` nulls it, so this is the normal delivered-but-unarchived state, NOT a dangling pointer. The BROKEN condition is unchanged: the pointed-to snapshot file does not exist.\n- **CHK-PB-6** Every `docs\u002Fpromptbooks\u002Fruns\u002F\u003Cid>-\u003Cslug>\u002F` subdir has a parent book in `active\u002F` OR `archive\u002F`. Orphan run dir (no parent) → BROKEN (ask before deleting).\n- **CHK-PB-7** Every run snapshot has the run-level keys `run_id`, `book_id`, `started_at`, `completed_at`, `status`, `current_prompt` — for a `.yaml` run these are top-level YAML keys (a `.yaml` run also carries `format_version` + `book_content_hash`, covered by CHK-PB-SCHEMA\u002FCHK-PB-BIND); for a `.md` run they are frontmatter. `status` ∈ {in_progress, completed, abandoned}. Missing → BROKEN.\n- **CHK-PB-8** For `status: completed` runs: `completed_at` is non-null AND every prompt state is terminal per the state-enum notes in **`docs\u002FAGENTS.md` §11.B \"Run-snapshot per-prompt shape\"** (the single source of truth — do NOT restate the enum here; read §11.B). Violation → BROKEN.\n- **CHK-PB-9** Archived books (`docs\u002Fpromptbooks\u002Farchive\u002F`) have `status: archived` AND their FINAL run is archive-eligible by one of the two paths in `docs\u002FAGENTS.md` §11.B: either `status: completed` with every prompt terminal (`done | skipped | blocked`), or `status: abandoned` with `abandonment.kind: deliberate`. Violation → BROKEN. (Eligibility is a run-level property; there is no per-prompt flag.)\n- **CHK-PB-10** `forked_from: PB-MMMM` references an existing book (active or archive). Dangling → BROKEN. Note that **nothing writes this field any more** — it is an accepted, always-null vestige, and the mid-run fork it recorded is deleted (a plan change mid-run is an abandonment plus a successor book that cites its predecessor in prose). The check is retained for the historical corpus; a non-null value on a newly authored book is itself suspect.\n- **CHK-PB-11** `docs\u002Fpromptbooks\u002Findex.md` exists with active table + recent-runs list + archive section. Stale counts \u002F missing rows → DRIFT (rebuild from directory walk). **One exemption: the `progress` cell of an ACTIVE book whose `current_run` is non-null — whether the pointed-to run is `in_progress` or already terminal.** Advancing a prompt deliberately writes two surfaces and no third — the run snapshot and the book pointer, never this index (see `docs\u002FAGENTS.md` §6 under the `promptbook` op). So the `progress` cell lags its snapshot by design for the whole life of the run, and reporting that lag would emit a DRIFT finding on every audit run during every live run. The advance that COMPLETES a run writes those same two surfaces and no third, and the book's `current_run` survives that completion. So the lag persists through the delivered-but-unarchived window too, exempt there for the same reason rather than a new one. A lagging `progress` cell on any unarchived run is NOT a finding; the next boundary op (archive) rebuilds it. Every other cell, row, and count in the file is checked as stated.\n- **CHK-NUM-1** No two promptbooks and no two ADRs share a number → BROKEN. Delegate it: run `uv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-record-numbers.py\" --repo-root .` (exit 0 clean; exit 1 with JSON `validation_errors`, one per shared number, naming each file holding it; exit 2 crash, surface stderr). Three namespaces are checked apart: books in `active\u002F` and `archive\u002F` (any extension), run directories in `runs\u002F`, and ADRs in `adrs\u002F` and `adrs\u002Farchive\u002F`. A book and its run directory carry one number and are one record. `legacy\u002F` is excluded, as it is from every CHK-PB-* walk. The checker reports the records it scanned per namespace under `checked`; a clean verdict that scanned none is not a pass. Never renumber or delete a file to clear the finding: numbers are never reused, so surface both paths and ask.\n- **CHK-PB-12** `manifest.yml`'s `promptbook.next_number` > max existing PB number. Equal-or-less → BROKEN.\n- **CHK-PB-ABANDON** _(replaces the retired CHK-PB-13, whose whole subject was the per-prompt archive-eligibility flag that `docs\u002FAGENTS.md` §11.B retired.)_ For an **archived** book whose final run has `status: abandoned`: that run MUST carry `abandonment.kind: deliberate`. An archived book whose final run is `abandoned` with `kind: superseded`, or with no `abandonment` mapping at all, → **BROKEN** — it was archived on a signal that confers no eligibility (a `superseded` value marks a stale run that a later run's start rolled over). A `deliberate` abandonment on a run under `active\u002F` is legitimate and unflagged: it means the book is eligible but not yet archived.\n- **CHK-PB-RADIUS** For an **archived** book with `cycle_kind: patch`: `blast_radius` is present and non-empty, every entry passes the declared-path grammar, and the book's final run carries a non-null `base_commit`. **The grammar has one implementation** — `invalid_blast_radius_entry` in `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fvalidate-promptbook.py`, the same function the authoring validator and the archive check call, so all three agree by construction. Its rejections are **not restated here**; read the function. (Restating them produced a partial copy that read as complete and omitted one of them.) Violation → BROKEN. **Audit does NOT re-run the git comparison.** A historical diff is not reproducible from an archived tree — the base commit may be unreachable, and the working tree has moved on — so re-deriving it would produce a verdict the archive already settled. The mechanical containment check is `archive-promptbook`'s precondition (`check-blast-radius.py`), run once at archival against the live tree; this rule audits only that the declaration and its commit boundary are present and well-formed. Immutable-history demotion applies as for CHK-PB-SCHEMA.\n- **CHK-PB-SCHEMA** Run-snapshot per-prompt shape, format-detected. Route by (extension, `format_version`-present), exactly as CHK-PB-1 does:\n  - **New-format `.yaml` run** (`format_version` present) → **delegate to the run validator**: invoke `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fvalidate-promptbook.py --kind run \u003Cpath>` (same engine, second schema `${CRUX_PLUGIN_ROOT}\u002Fschemas\u002Frun.schema.json` — the per-prompt-shape SSOT that `docs\u002FAGENTS.md` §11.B references by name). Exit-code contract: exit 1 → finding(s) from the validator's JSON `errors`; any other non-zero with empty stdout (e.g. the exit-2 YAML-capability error (PyYAML missing; see `docs\u002FAGENTS.md` §10.A)) = crash, surface stderr and NEVER report it as a document finding. The validator covers the per-prompt shape AND the contiguity (`n == index+1`) post-schema pass; the cross-field rules it cannot express stay in audit-docs (see §11.B-referencing rules + CHK-PB-BIND). A `.yaml` run lacking `format_version` → BROKEN (malformed new-format run; do NOT route to the legacy regex path). Canonical valid example: `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Ftests\u002Ffixtures\u002Frun-valid.yaml`.\n  - **Legacy `.md` run** → **keep today's regex-against-§11.B path.** Validate per-prompt blocks against the canonical schema in `docs\u002FAGENTS.md` §11.B (single source of truth — read §11.B for the field list + `State` enum; do NOT restate them here). **Block scope:** only blocks whose heading matches `^## Prompt (\\d+)` are validated; `## Notes` \u002F `## Summary` \u002F `## PR Draft` and any nested `###`\u002F`####` content are ignored, and field-looking lines inside nested subsections are NOT treated as per-prompt fields. **Field parse:** accept both the bulleted `- **Field:**` form and the bare `**Field:**` form. **Findings:** a §11.B-required field (State\u002FStarted\u002FCompleted\u002FResult\u002FArtifacts) missing from a block → DRIFT-surface (do NOT auto-edit a snapshot body); `State` value ∉ the §11.B enum → BROKEN; an unknown `**Field:**` key → WARNING. **`blocked-confirmed` is a RETIRED field (see `docs\u002FAGENTS.md` §11.B) and is IGNORED, not reported.** A frozen `.md` snapshot may carry it; those bodies are immutable and cannot be cleanly retro-fixed, so flagging it as an unknown field would generate a finding nobody may act on.\n  - **Immutable-history demotion (applies to BOTH paths):** for archived (`docs\u002Fpromptbooks\u002Farchive\u002F` parent) OR `status: completed` snapshots, demote every finding to WARNING (frozen history can't be cleanly retro-fixed) — this includes findings the run validator returns on a `.yaml` snapshot. `status` wins over path **in both directions** — `status: completed` under `active\u002F` is demoted; `status: in_progress` under `archive\u002F` keeps full severity. Full severity applies only to active\u002Fin-progress runs. CHK-PB-SCHEMA does NOT own duplicate-`## Prompt N` detection (that's `cleanup-campsite` CLN-PB-4). A stdlib CI test (`test_schema_invariants.py`) guards the §11.B field-token extraction.\n- **CHK-PB-BIND** Run↔book binding integrity for **new-format `.yaml` runs only**. For each `.yaml` run snapshot (`format_version` present, `book_id` resolvable to an active-or-archived `.yaml` book), **recompute the bound book's frozen-plan hash** with the validator's `compute_book_hash` (i.e. `\"sha256:\" + sha256(canonical_json(frozen_plan_subset(book)))` — the canonical serialization of the book's plan-bearing fields only, excluding the mutable run-state fields `current_run`\u002F`current_prompt`\u002F`status`; reuse `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fvalidate-promptbook.py`'s `compute_book_hash` so the bytes match the writer's) and compare to the run's stored `book_content_hash`. **Mismatch → DRIFT, NEVER auto-fixed** — recomputing\u002Foverwriting the stored hash would erase the evidence that the run-freeze invariant broke. Remediation cites the §4 abandon rule in `docs\u002FAGENTS.md`: the plan was edited in place instead of being changed the sanctioned way, which is to abandon the run and author a successor book that cites its predecessor in prose. Surface the mismatch (stored vs. recomputed) and recommend that path. Notes: (1) this is distinct from `CHK-SCHEMA-1` (manifest `schema_version == \"5\"`) — different rule, different concern. (2) An **unresolvable `book_id`** (no active-or-archived book exists) is NOT CHK-PB-BIND — that is the existing CHK-PB-6 \"run dir has a parent book\" graph rule (a missing book, vs. CHK-PB-BIND's found-but-plan-hash-differs). (3) Legacy `.md` runs have no `book_content_hash` and are not subject to this rule. (4) Immutable-history note: a mismatch on an archived\u002F`completed` run still surfaces as evidence (it documents a past in-place edit) — it is never auto-fixed regardless of run status.\n- **CHK-PB-CYCLE** Cycle-coverage invariants for cycle-kind books — the machine-enforced replacement for `dev-cycle`'s formerly prose-only formula\u002Finvariant contract, covering **all three** cycle kinds — `dev-cycle` (adr), `iterate` (verify), and `patch-cycle` (patch). **Format two:** a `format_version \"2\"` book declares its kind (`adr`, `implementation`, `verify` or `patch`); the implementation kind has no ADR modules and follows `4I+4D+3R+2`, the architectural kind follows `4(A+I)+4D+3R+2`, and the validator refuses `cycle_grandfathered` and `grandfather_reason` on such a book. The paragraph below describes format one. **Delegated, not restated:** the invariants live in `validate-promptbook.py`'s `cycle_coverage_pass`, which runs inside the `--kind promptbook` delegation CHK-PB-1 already performs — so for a new-format `.yaml` book, **CHK-PB-1's non-zero exit already surfaces any cycle-coverage finding** (for `adr`\u002F`verify`: the `4N+4M+3K+2` formula ⟷ `modules` ⟷ `module_tag`-count agreement, the per-module prompt-count \"ordinal contract\", `adr`\u002F`verify` mutual exclusion, the degenerate-cycle and `cycle_kind`↔shape cross-checks, and the ≥13 floor — all **unchanged**; for `patch`: the constant count of 5, the fixed `verify, plan, implement, review, summary` phase sequence, the absence of `module_tag`\u002F`modules`, and a non-empty repo-relative `blast_radius`). The `patch` tier is a third branch, not a relaxation of the other two — see `docs\u002FAGENTS.md` §11.C. This rule exists to make that coverage explicit and to pin the two scope rules the validator encodes: **(a) grandfathered books are skipped** — a book with `cycle_grandfathered: true` (+ `grandfather_reason`) is exempt from the pass (it remains schema-validated); grandfather only a book with no run in flight, or abandon the run first. `cycle_grandfathered` and `cycle_kind` are bound at run start: adding or changing either while a run is in flight makes `advance-run.py` refuse every `--outcome` of that run and write nothing, so it is never a silent migration. A book grandfathered before its run starts has every prompt `unclassified`, so none of its gates is checked.[^correct] That refusal holds when the run-start book can be read. When it cannot, `advance-run.py` ignores both fields and module-tagged gate prompts stay gates. **(b) legacy `.md` cycle books are NOT cycle-coverage-checked** — the pass is `.yaml`-only (it runs only on the `--kind promptbook` path); a legacy `.md` cycle book keeps the CHK-PB-1 legacy-keyset path and is out of scope (it predates the structured `modules`\u002F`module_tag` form). **Immutable-history demotion (consistent with CHK-PB-SCHEMA):** a cycle-coverage finding on an archived (`docs\u002Fpromptbooks\u002Farchive\u002F` parent) or `status: completed` book demotes to WARNING (`status` wins over path in both directions); full severity (BROKEN, via CHK-PB-1's exit) applies only to active\u002Fin-progress cycle books. No separate test fixture is needed here — the invariants are covered by `test_validate_promptbook.py`'s cycle-coverage cases (the `CycleCoveragePassTests` class); this rule is the audit-side pointer to that engine.\n- **CHK-PB-LEGACY** Preservation integrity for the migration holding area. When `docs\u002Fpromptbooks\u002Flegacy\u002F` exists: every preserved original under it SHOULD correspond to a live migrated `.yaml` — i.e. for `legacy\u002Farchive\u002F\u003Cid>-\u003Cslug>.md` there is `docs\u002Fpromptbooks\u002Farchive\u002F\u003Cid>-\u003Cslug>.yaml`, and for `legacy\u002Fruns\u002F\u003Cid>-\u003Cslug>\u002Frun-\u003CRUN-NNN>.md` there is a `docs\u002Fpromptbooks\u002Fruns\u002F\u003Cid>-\u003Cslug>\u002Frun-RUN-NNN.yaml`. A preserved original with **no** corresponding live `.yaml` → WARNING (a half-migration; the live `.yaml` was reverted or never written — surface, do not auto-fix). The converse (a live `.yaml` whose `.md` original is missing from `legacy\u002F`) is also WARNING. This is the ONLY rule that reads under `legacy\u002F`; it never validates the preserved `.md` against any schema (they are frozen pre-migration artifacts).\n\n#### Concern 6 — Journal\n\n- **CHK-JR-1** Every entry in `docs\u002Fjournal\u002FYYYY-MM.md` files has a heading matching `## \\[\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}\\] (decision|implementation|bug|learning|blocker|refactor|meeting|review|misc|release) \\| `. Malformed → WARNING (surface; never auto-edit).\n- **CHK-JR-2** Entry dates inside a `YYYY-MM.md` fall within that month. Outside-of-month → WARNING (likely a file-naming mistake; ask).\n- **CHK-JR-3** `docs\u002Fjournal\u002Findex.md` exists with one row per month file (newest first) listing entry count and the top three category names. Invoke `generate-journal-index.py --dry-run` and report its verdict — exit 0 with no drift payload is clean; exit 1 with a drift payload is DRIFT (recommend `generate-journal-index.py`, do not rebuild by hand); a non-empty `validation_errors` payload is BROKEN.\n- **CHK-JR-4** Every wiki-link in any journal entry (`adrs\u002FADR-NNNN`, `promptbooks\u002F...`, `research\u002F...` targets) resolves. **Promptbook _book_-links resolve lifecycle-agnostically** per the resolver defined in `docs\u002FAGENTS.md` §11: the `PB-NNNN` id (§14.3 dual-form regex) is the **sole authoritative match key** — the slug AND the `active\u002F`|`archive\u002F` path segment are non-authoritative hints — so `[[promptbooks\u002F(active|archive)\u002FPB-NNNN-\u003Cslug>]]`, `[[promptbooks\u002FPB-NNNN-\u003Cslug>]]`, and `[[promptbooks\u002FPB-NNNN]]` all resolve iff a book with that id exists under `docs\u002Fpromptbooks\u002Factive\u002F` OR `archive\u002F` (`legacy\u002F` excluded). **Run**-links (`promptbooks\u002Fruns\u002F\u003Cbook>\u002Frun-RUN-NNN`) keep exact-path resolution (`runs\u002F` never moves). Dangling → WARNING (journal references are historical; user decides whether to update or leave).\n- **CHK-JR-5** Entries are reverse-chronological within each `YYYY-MM.md` file. Out-of-order → WARNING.\n\n#### Concern 7 — Catalog\n\n- **CHK-CAT-1** Catalog inventory, in two limbs. An inventory alone is strictly weaker than the rule it replaces — a check that walks whatever is present cannot notice that something expected is absent — so the required-file floor rides with it.\n  - **Limb (a) — inventory.** Every entry in `${CRUX_PLUGIN_ROOT}\u002Fcatalog\u002F` parses, **by extension**: `json.load` for `.json`, the shared minimal-YAML loader's strict catalog path for `.yml`. Malformed → BROKEN (recommend re-installing the plugin via the marketplace flow; do not auto-regenerate from inside the audit).\n  - **Limb (b) — floor.** Every *required* catalog file exists. Absent → BROKEN. The floor is **derived, not a third hand-maintained list**, and both enumerations ship inside the plugin: the `.json` files are named by `validate-catalog.py`'s module-level `REQUIRED_CATALOG_JSON` constant, and the `.yml` files by its `CATALOG_TARGETS` constant. Both exist for other reasons and are separately gated, so adding a fifth catalog file costs no edit here — it costs the validator target or roster entry it was always going to need. **Both sources must travel with the plugin.** An earlier version of this rule derived the `.json` half from the crux source repo's own regenerative-outputs roster — then in the repo-root `CLAUDE.md`, now in the repo-root `AGENTS.md` — which is that repo's roster and not the installed tree's, whatever the file is called: downstream the list resolved EMPTY and the floor silently checked nothing. A rule whose input is absent must not degrade to a pass — if neither constant can be read, report BROKEN rather than an empty floor.\n  - **Disposition of every other entry.** `${CRUX_PLUGIN_ROOT}\u002Fcatalog\u002F` holds regular files with suffix `.json` or `.yml`, and nothing else. A directory, a symlink, an extensionless file, or any other suffix is **BROKEN under limb (a)** — reported as a misfiled entry, never parsed and never followed.\n  - **Parser-safety mitigations.** This rule points a parser at a directory listing rather than at named files, so the widening is bounded explicitly. **Trust boundary first:** `catalog\u002F` is a repo-controlled directory whose every change arrives through code review; it is not an upload target and takes no runtime input, so the bounds below are defense-in-depth against a hostile pull request and against accident, not a perimeter around untrusted data.\n    - **No unsafe construction.** YAML is read only through the shared loader, whose real-parser path is pinned to safe loading. Arbitrary-object construction is out of contract on both parse paths, and neither path may be swapped for a loader that permits it.\n    - **Forbidden constructs are refused, not merely unused.** Safe loading means no arbitrary object construction; it does not mean no expansion, and a real parser expands an anchor happily. So the loader **rejects** five constructs before accepting a document: a leading `&anchor`, a `*alias` reference, a `\u003C\u003C:` merge key, an explicit `!tag` or `%TAG` directive, and a second document in one file. That is what puts quadratic expansion out of reach — a grammar the loader enforces, not a convention the authors observe. The list is **six**, not five: a flow collection (`{...}` \u002F `[...]`) is refused at the start of any key or value token as well. It was originally left out on the theory that it \"fails loudly on the fallback path\" — it does not. `a: {b: &x 1, c: *x}` was accepted by both paths, and the two then disagreed silently: the real parser expanded the alias, the fallback kept the literal string. So the flow form was simultaneously an expansion bypass around the other five refusals and a two-path divergence. The two EMPTY forms `{}` and `[]` remain legal, because the hazard is a flow collection's contents and an empty one has none — and block YAML has no other spelling for an empty list.\n    - **Regular files only; symlinks refused.** The walk is non-recursive and tests `is_symlink()` **before** `is_file()`. A symlinked entry is BROKEN and is never followed, so the rule cannot be turned into an arbitrary-file read by adding a link to the directory.\n    - **Size caps before read — two of them, at two different scopes.** This rule's own ceiling is **1 MiB per entry**, and it covers EVERY entry in `catalog\u002F`, the `.json` files included: an entry over 1 MiB is BROKEN at `stat`, without being parsed. The shared YAML loader enforces a second, tighter ceiling of **64 KiB** (`CATALOG_MAX_BYTES` in `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002F_yaml_min.py`), checked before the construct scan and before any parse — but only on the `.yml` read path, because the `.json` files never reach that loader. The two are not a contradiction and neither is redundant: 64 KiB is the binding limit for a hand-authored `.yml`, and 1 MiB is what stops a 200 MiB `skills.json` from being handed to `json.load`. Today's largest entry is `skills.json` at roughly 44 KiB and the largest `.yml` is `models.yml` at roughly 6 KiB, so both caps sit well clear of live growth. Both bound the **source** bytes only; neither bounds an expanded object graph, which is why the construct refusal above — not either cap — answers expansion attacks.\n- **CHK-CAT-2** Every skill listed in `${CRUX_PLUGIN_ROOT}\u002Fplugin.json` `skills[]` has a corresponding entry in `catalog\u002Fskills.json` (matched by directory-name `id`), and vice versa. Orphans in either direction → BROKEN.\n- **CHK-CAT-3** Drift detection: invoke `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fvalidate-catalog.py --dry-run` from the repo root. Parse stdout as JSON regardless of exit code (same exit-code semantics as `verify-code-docs` and CHK-CODE-4: exit 0 + JSON = clean, exit 1 + JSON = drift, non-zero + empty\u002Funparseable stdout = crash). **A `\"surface_absent\": true` payload is N\u002FA, never clean** — the catalog is the plugin's OWN derived output, so a run outside the plugin's authoring checkout validated the plugin against itself and established nothing about this project. Report it N\u002FA with the payload's `reason`, and recommend no regenerator: there is no output here for one to write. Exit 1 with non-empty `added\u002Fchanged\u002Fremoved` → DRIFT (surface counts; recommend running `validate-catalog.py` without `--dry-run` to regenerate). Validation errors (non-empty `validation_errors`) → BROKEN. **Read the `warnings` key too:** it is a separate top-level list of findings that deliberately do NOT affect the exit code (the `models.yml` `verified:` staleness clock is the current member, kept non-failing so a passing tree cannot turn red on the passage of time alone). Non-empty `warnings` → WARNING, surfaced with its findings; a run with exit 0 and non-empty `warnings` is a pass worth reporting, not a clean run. DO NOT auto-run a real regeneration during the audit — `validate-catalog.py` is destructive enough (it overwrites `skills.json`) to warrant explicit user invocation.\n- **CHK-CAT-4** Every entry in `${CRUX_PLUGIN_ROOT}\u002Fcatalog\u002Fbundles.yml`'s `skills:` list resolves to an existing `id` in `catalog\u002Fskills.json`. Dangling skill references → BROKEN.\n- **CHK-CAT-5** Total skill count under `${CRUX_PLUGIN_ROOT}\u002Fskills\u002F*\u002FSKILL.md` equals the length of `catalog\u002Fskills.json`. Mismatch → DRIFT (recommend `validate-catalog.py` to reconcile).\n- **CHK-CAT-6** Reverse bundle membership. For every entry in `catalog\u002Fskills.json`, each value in its `bundles[]` array names a bundle `id` present in `catalog\u002Fbundles.yml`, AND that bundle's `skills[]` contains the skill's `id`. Dangling bundle id or missing membership → BROKEN. This is the mirror of CHK-CAT-4: every skill declares its bundle membership twice, once in `metadata.bundles` and once in the bundle's list, and CHK-CAT-4 checks only the bundle→skill direction. **Scoped to skills:** all ten agents in `catalog\u002Fagents.json` declare `bundles: [\"crux-agents\"]` and no `crux-agents` bundle object exists, so extending the reverse check to agents would need either a new bundle object or an `agents[]` key in the bundle schema — a schema change no decision has made.\n\n#### Concern 8 — Arch (derived — drift + auto-regenerate)\n\nRuns only when `arch` ∈ `manifest.yml`'s `concerns_enabled` (which requires `schema_version == \"5\"`); otherwise silent. The `arch` tree is the derived architecture spine (per `docs\u002FAGENTS.md` §4 \"arch\"): four spine files (`data-model.md`, `api-surface.md`, `module-graph.md`, `decision-index.md`) plus a synthesized `overview.md`, an `index.md`, and `_meta\u002Fmanifest.json`, all regenerated wholesale by `derive-arch.py`. **Unlike CHK-CODE-4 and CHK-CAT-3 — which flag drift and recommend the regenerator — CHK-ARCH-1 auto-regenerates in place.** The divergence is deliberate: arch's every input (JSON Schemas, ADR frontmatter, the skill catalog, `crux` package imports) is already committed in the tree, so a regenerate cannot capture in-flight uncommitted source the way a code-doc extraction can; the output is deterministic and byte-stable; and hand-edits under `arch\u002F` are defined as disposable. This makes an arch regenerate a DRIFT-tier auto-fix, not a destructive act.\n\n- **CHK-ARCH-1** Drift detection + auto-regenerate. Invoke `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fderive-arch.py --dry-run --docs-dir \u003Cdocs_dir>` from the repo root (`\u003Cdocs_dir>` is the CHK-CFG-1 resolved tree). Parse stdout as JSON regardless of exit code (sibling exit-code semantics of CHK-CODE-4 \u002F CHK-CAT-3). **Exit 1 means findings, and the payload names which of TWO channels found them** — `drift` and `strict_failures` are independent, a run may carry both, and they take different remedies. `clean` answers the drift question alone, so `{\"clean\": true, \"drift\": []}` at exit 1 is a legitimate shape and not a contradiction.\n  - **exit 0** + `{\"clean\": true, \"drift\": [], \"strict_failures\": []}` = clean, no finding.\n  - **exit 1 with `drift` non-empty** = drift (`clean` is `false`). **Auto-regenerate** — run `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fderive-arch.py --docs-dir \u003Cdocs_dir>` (no `--dry-run`, `{\"written\": [...]}`) to rewrite the spine + `overview.md` + `_meta\u002Fmanifest.json`, then report **DRIFT (auto-fixed)** listing the drifted paths from the dry-run `drift` array. Re-run `--dry-run` once to confirm. **Convergence is judged on the `drift` array, never on the exit code** — a tree with a live `arch.require` still exits 1 through the other channel after a successful regenerate. A still-non-empty `drift` → BROKEN (the regenerator did not converge — surface the residual `drift` + any stderr, do not loop).\n  - **exit 1 with `strict_failures` non-empty** = a requirement finding, NOT drift, and NOT a failed regeneration. Each entry names a concern that `\u003Cdocs_dir>\u002Fmanifest.yml`'s `arch.require` declares this tree needs and whose recorded verdict is not `populated`, with its `stub_reason`, `expected` and `found` (the strict gate, per `docs\u002FAGENTS.md` §4 \"arch\"). → **BROKEN**, reported as `\u003Cconcern> is required by \u003Crequired_by> and its recorded verdict is \u003Cverdict>`. **Do NOT auto-regenerate for this channel and never prescribe one:** the committed tree already is what a regeneration produces, so re-deriving writes an identical tree and clears nothing. The two remedies are to establish the precondition the verdict names in the repository, or to amend `arch.require`. Both are user decisions — recommend, never apply.\n  - **exit 2, or any non-zero with empty\u002Funparseable stdout, or exit 1 reporting findings in NEITHER channel** = no verdict — surface stderr and NEVER report it as a document finding. Two lanes share exit 2, and stderr says which. A **crash** is an environment\u002Fextractor capability error. A **deliberate refusal** (`StaleProjectionInput` on stderr) means a spine file that projects a gated artifact declined because that artifact is not what its own regenerator produces; nothing was written. On the refusal lane, **do NOT auto-regenerate arch** — regenerating the spine cannot fix a stale ADR index or catalog, and a re-derive reads the same stale input and refuses again. Report the capability failure, name the input from stderr, and recommend that input's own regenerator (`generate-adr-index.py`, `validate-catalog.py`) followed by a re-derive.\n\n  **Do NOT auto-regenerate under `--migrate`** — a migration owns its own step ordering; the arch auto-fix belongs to a plain audit \u002F explicit \"audit docs\".\n- **CHK-ARCH-2** Enablement recognition. When `arch` ∈ `concerns_enabled`, the tree at `\u003Cdocs_dir>\u002Farch\u002F` is present with the four spine files + `overview.md` + `index.md` + `_meta\u002Fmanifest.json`; a missing tree or file is drift that CHK-ARCH-1's regenerate produces (`derive-arch.py` writes all of them) — route it through CHK-ARCH-1, do not raise a separate BROKEN. When `\u003Cdocs_dir>\u002Farch\u002F` exists but `arch` is **NOT** in `concerns_enabled` → WARNING (a stale derived tree from a disabled concern; recommend re-enabling the concern or removing the tree — never auto-delete). Arch carries no timestamps and gets no master-index section (see CHK-MI-1); its catalog is `\u003Cdocs_dir>\u002Farch\u002Findex.md` + the spine hash.\n\n#### Concern 9 — Regenerated-output drift and doctrine reconciliation\n\nThe repo-root `AGENTS.md` \"regenerative outputs\" table is the enrollment roster: every derived artifact owes a vendored regenerator and a `--dry-run` drift gate. Concerns 2, 7, 8, and 9 already run four of those gates individually — CHK-CODE-4 (`uv run --no-config extract-code-docs.py --dry-run`), CHK-CAT-3 (`validate-catalog.py --dry-run`, covering **both** `skills.json` and `agents.json`), CHK-ARCH-1 (`derive-arch.py --dry-run`), and CHK-ROUTE-1 (`generate-routing-table.py --dry-run`). CHK-DRIFT-1 covers the roster's remaining sixteen outputs. **The split is explicit so no gate runs twice.**\n\n- **CHK-ROUTE-1** §10 routing-table drift (recommend-only, same form as CHK-CAT-3). Invoke `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fgenerate-routing-table.py --dry-run` from the repo root. Parse stdout as JSON regardless of exit code (the shared CHK-CODE-4 \u002F CHK-CAT-3 semantics): exit 0 + `{\"drift\": false}` = clean; **exit 0 with `\"surface_absent\": true` = N\u002FA, never clean** — the routing table projects the plugin's own skill catalog into a marked region, and a tree carrying neither owns nothing that could have drifted; report the payload's `reason` and recommend no regenerator. Exit 1 + `{\"drift\": true, \"paths\": [...]}` → **DRIFT** (surface the drifted target and **recommend** running `generate-routing-table.py` to regenerate; do NOT run it); exit 1 + `{\"error\": ...}` (a missing\u002Fduplicated\u002Fmisordered marker or an unreadable `skills.json`) → **BROKEN**; non-zero + empty\u002Funparseable stdout → surface stderr, **never a document finding**. The payload's `no_trigger_skills` array is informational — skills whose `description` carries no quoted trigger phrase before its first period; report it as a WARNING when non-empty so a routing gap is visible, never as drift.\n- **CHK-DRIFT-1** Regenerated-output drift for the sixteen roster outputs the four individual gates do not cover. Invoke the `check-drift` skill (its whole-tree contract runs every enrolled gate; inside the audit, skip the four already run — `validate-catalog.py`, `extract-code-docs.py`, `derive-arch.py`, `generate-routing-table.py` — so none runs twice). The sixteen CHK-DRIFT-1 covers: **`agents.json`** (already checked by the SAME CHK-CAT-3 `validate-catalog.py --dry-run` run — reported here, NOT re-invoked), the **summaries projection** (`summarize-adrs.py --dry-run`), the **doctrine projection** (`compile-doctrine.py --dry-run`), **`opencode\u002Fagents\u002F`** (`generate-opencode-agents.py --dry-run`), **`adrs\u002Flineage.md`** (`generate-lineage.py --dry-run`), **`adrs\u002Findex.md`** (`generate-adr-index.py --dry-run`), the **`docs\u002Findex.md` `## ADRs` rollup** (`generate-index-rollup.py --dry-run`), the **`README.md` version footer** (`generate-readme-footer.py --dry-run`), the **writing-rules block** (`generate-writing-rules.py --dry-run`), the **runtime-compatibility block** across 52 skills (`generate-runtime-compat.py --dry-run`), the **reviews index** (`generate-reviews-index.py --dry-run`, whose `\"surface_absent\": true` payload is verdict **N\u002FA** and never a clean pass — a tree that has run no decision review has no derived index to drift), the **journal index** (`generate-journal-index.py --dry-run`, whose `\"surface_absent\": true` payload is likewise **N\u002FA**, the same treatment the reviews index gets), the **operations-log summary** (`generate-log-summary.py --dry-run`, whose `\"surface_absent\": true` payload on a tree with no `log\u002F` is **N\u002FA**, and whose `pending_months` beside exit 0 is a clean verdict that names `cleanup-campsite` as the remedy), the **shipped-rules catalog** (`generate-rules-catalog.py --dry-run`), the **crux-mods reach tables** (`generate-mods-reach-tables.py --dry-run`), and the **micro-crux guide** (`generate-micro-crux.py --dry-run`). The last three are plugin-authoring gates: outside the plugin's own checkout each reports `\"surface_absent\": true`, which is **N\u002FA**, never a clean pass. Parse each stdout as JSON regardless of exit code (the shared CHK-CODE-4 \u002F CHK-CAT-3 semantics): exit 1 + a drift payload → **DRIFT** (surface the drifted paths and **recommend** the named regenerator; do NOT run it); a non-empty `validation_errors` payload → **BROKEN** (the named input must be repaired — regenerating cannot fix a validation error); non-zero + empty\u002Funparseable stdout → surface stderr, **never a document finding**. A top-level `warnings` key (e.g. `validate-catalog.py`'s `models.yml` staleness clock) → **WARNING** beside the verdict, exit unchanged. **Recommend-only, never auto-regenerate:** unlike CHK-ARCH-1 (which auto-regenerates the arch spine in place), CHK-DRIFT-1 recommends the regenerator and stops — the arch spine is the ONE derived artifact this audit rewrites. **One roster gate shares `derive-arch`'s two-lane exit 2** only for arch itself; the CHK-DRIFT-1 gates each return the plain 0\u002F1\u002Fcrash contract.\n- **CHK-DOCTRINE-1** Doctrine reconciliation backlog. Runs only when `\u003Cdocs_dir>\u002Fadrs\u002Fdoctrine\u002F` exists. Count the **pending** reconciliation pairings — either by reading `\u003Cdocs_dir>\u002Fadrs\u002Fdoctrine\u002Findex.md` for domains whose heading ends `— BROKEN` and, under their `_Reconciliation against ratified invariants:_` table, rows whose status is `un-adjudicated`, `digest-stale`, or `collision`; or by running the consistency gate `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-doctrine-reconciliation.py` (exit 1 + `broken_domains` names them; exit 0 = none pending; its `warnings` key names any ratified invariant seeding no pairing). Non-zero pending → **WARNING**: `N doctrine pairing(s) awaiting reconciliation — run reconcile-signoff`. Surface the S1 `warnings` as WARNING too. **NEVER auto-sign a reconciliation from the audit** — `reconcile-signoff` is a human gate that reads the two texts and takes the verdict from the user; the audit only reports the backlog.\n\nTotal: ~97 checks.\n\n### 3. Walk prompt (when spawning Explore agent)\n\nWhen `docs\u002F` has 100+ markdown files, spawn an Explore agent with this prompt verbatim. The agent returns a findings report; the main session categorizes and applies fixes.\n\n> **MAINTENANCE — two copies of the check list, keep in sync.** The numbered items below are a verbatim restatement of the §2 `CHK-*` checks, reworded for an Explore agent that cannot apply fixes. **They duplicate §2 by design** (the inline walker uses §2; the spawned walker uses this prompt). **When adding, removing, or renumbering a check in §2, make the matching edit here in the same change** — a check that exists in only one of the two paths is silently skipped on the other walk strategy. Each item below carries its `(CHK-…)` id precisely so this correspondence is mechanical to verify.\n\n> Walk the entire `docs\u002F` tree at the current working directory. The layout is described in `docs\u002FAGENTS.md` (read it first). For each of the following eleven concern groups, list specific violations (file path + one-line description). Do not propose fixes — just report findings.\n>\n> Before walking, prune retained holdings: list the holdings once with `uv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fauthority-view.py\" retained-roots --repo-root \u003Crepo-root>` and skip each listed root during recursive walks; test one path with `uv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fauthority-view.py\" retained --repo-root \u003Crepo-root> \u003Cpath>` (exit 0, `retained` true or false). Prune before nested configuration discovery, token matching, record parsing, split-tree detection, census or allocation counts. Never read held manifests or import held code. A layout refusal stops the walk. The holding contract is `docs\u002FAGENTS.md` §3.\n>\n> **Concern 0 — per-repo configuration (the repo-root `.crux` file, per `docs\u002FAGENTS.md` §14; do this FIRST):**\n> 0a. (CHK-CFG-1) Run `python3 \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fbionic-config.py\"` from the repo root (the retained `crux-config.py` delegates to it; either works). It resolves the precedence `.bionic.yml` > legacy `.crux` > content-validated bare-directory discovery > default (per `docs\u002FAGENTS.md` §14), reporting `source` (`\".bionic.yml\" | \".crux\" | \"discovery:\u003Cdir>\"`, with combined forms for a keyless config). Exit 1 → report the JSON `error` message verbatim. Exit 0 → note the resolved `docs_dir` and `artifact_prefix` and use that `docs_dir` as the docs root for every following item. A `.bionic.yml` coexisting with a legacy `.crux` is expected during migration (not a finding). Do not read the config YAML directly.\n> 0b. (CHK-CFG-2) Scan artifact filenames\u002Fids with `([A-Z][A-Z0-9]{1,9}-)?(PB|ADR)-(\\d{4})` and list the distinct prefix spellings in use (bare counts as one). Report when more than one exists, or when the dominant prefix differs from the resolved `artifact_prefix`.\n> 0c. (CHK-CFG-3) List any directory other than the configured `docs_dir` that looks like a crux docs tree (contains a `manifest.yml` with a readable `schema_version`) — including a stray default `.\u002Fdocs\u002F` when `.crux` relocates the tree.\n> 0d. (CHK-CFG-4) Group the dual-form scan's matches by (type token, 4-digit number); list any `(type, NNNN)` pair that appears under more than one spelling (bare and prefixed, or two different prefixes).\n>\n> **Concern 1 — master index and log:**\n> 1. List concerns in `manifest.yml`'s `concerns_enabled` that have no section in `docs\u002Findex.md`, and vice versa.\n> 2. For each concern section in `docs\u002Findex.md`, compare its declared count against the actual file count for that concern. List mismatches.\n> 3. Check that `docs\u002Findex.md` has a `_Last updated: YYYY-MM-DD_` line near the top.\n> 4. Run `uv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Foperation-log.py\" check --repo-root \u003Crepo-root>` and report each CHK-LOG-1 to CHK-LOG-7 finding from its JSON with its severity. The checks read the historical-reader op-enum regex from `docs\u002FAGENTS.md` §6 (single source of truth — read §6 for the exact pattern; it accepts both `cleanup-campsite` and the legacy `cleanup` for frozen history), across every detail file under `docs\u002Flog\u002F`, a legacy `docs\u002Flog.md`, staged files and strays. List malformed entries, out-of-enum ops, a missing `init` entry, unsplit or stray log files, undefined files under `docs\u002Flog\u002F`, and summary-gate failures or pending months.\n> 5. Do not order heading dates within a detail file: entries sit in write order, so date order is no finding.\n>\n> **Concern 1.A — schema version and inbox (read `docs\u002FAGENTS.md` §7 + §11 \"inbox is staging\"):**\n> 5a. (CHK-SCHEMA-1) Read `manifest.yml`'s `schema_version` with a real YAML parse. Report whether it equals `\"5\"`. If it is `\"4\"`, `\"3\"`, or `\"2\"`, name the pinned `v3.23.2` recovery route. Otherwise report incompatible tree schema without promising conversion.\n> 5b. (CHK-INBOX-1) Only when `schema_version == \"5\"`: confirm `docs\u002Finbox\u002F` exists. List it as missing if absent.\n> 5c. (CHK-INBOX-2) Only when `schema_version == \"5\"`: confirm `docs\u002Fresearch\u002Fnew\u002F` is ABSENT. List it if present (do not delete it).\n> 5d. (CHK-INBOX-3) Only when `schema_version == \"5\"`: count non-`.gitkeep` entries in `docs\u002Finbox\u002F` excluding the `_dispatched\u002F` subtree. Report the count (a partially-drained `urls.md` counts). Do NOT treat `docs\u002Finbox\u002F` as a concern — it gets no `docs\u002Findex.md` section; exclude it from the per-concern walk like `AGENTS.md`\u002F`README.md`.\n>\n> **Concern 1.B — invariants (only when `schema_version == \"5\"` AND `invariants` in `concerns_enabled`; see `docs\u002FAGENTS.md` §15):**\n> 5e. (CHK-INV-BIJECTION) Every ledger page under `\u003Cdocs_dir>\u002Finvariants\u002F` has a parseable unique `id`; every reconciliation entry names a pin with a ledger page. List pinless pages, duplicate ids, and reconciliation entries with no ledger page.\n> 5f. (CHK-INV-ORPHAN-CHECK) Every check in `\u003Cdocs_dir>\u002Finvariants\u002Fchecks\u002F` resolves via the reconciliation to exactly one existing pin. List orphan checks (no\u002Fmissing pin, or `check_id` absent from the suite).\n> 5g. (CHK-INV-DECORATION) List `ratified` pins with no resolvable check OR aggregate `last_result: none` (BROKEN). Do NOT flag `observed` pins with zero checks.\n> 5h. (CHK-INV-FAILING) List `ratified` pins whose aggregate `last_result` is `fail` (BROKEN) or `stale` (WARNING). Aggregate per `docs\u002FAGENTS.md` §15.4 (`fail`>`stale`>`pass`>`none`).\n> 5i. (CHK-INV-DANGEROUS) List `observed` pins with aggregate `last_result: pass` (WARNING). Report survey-debt: the count of `observed` pins (not a percentage).\n>\n> **Concern 1.C — observations (only when `observations` in `concerns_enabled`; see `docs\u002FAGENTS.md` §17):**\n> 5j. (CHK-OBS-BIJECTION) Every record under `\u003Cdocs_dir>\u002Fobservations\u002F` has a parseable unique `id` matching its filename; when `index.md` exists, every index row names a record with a file AND every record's `id` appears in a row. List parse failures, duplicate ids, filename mismatches, index rows with no file, and records with no row.\n> 5ja. (CHK-OBS-ANCHOR) Every record's `anchor_id` is 16 lowercase hex digits, and no two records in `observed` or `ratified` share one. List absent or malformed values and every anchor claimed by more than one live record.\n> 5k. (CHK-OBS-EVIDENCE) Every `evidence` entry matches the `path:line-range` grammar; a `ratified` record's paths all resolve to a file inside the repository root, symlinks followed. List unparseable entries, unresolvable or escaping paths, and empty `evidence` lists.\n> 5l. (CHK-OBS-DECIDED) A `decided` record's `decided_by` names an existing ADR; `decided_by` is non-null iff `status` is `decided`. List violations.\n> 5m. (CHK-OBS-STALE) List `observed` records whose `observed_date` is older than `observation.stale_days` in `manifest.yml` (absent falls back to 90) (WARNING). Report survey-debt: the count of `observed` records (not a percentage).\n> 5n. (CHK-OBS-SURVEY-STUB) List receipts under `\u003Cdocs_dir>\u002Fobservations\u002F_surveys\u002F` recording no completion: WARNING inside `observation.survey_stub_days` in `manifest.yml` (absent falls back to 1), BROKEN past that window.\n> 5o. (CHK-OBS-SURVEY-VISIBLE) List records visible under `\u003Cdocs_dir>\u002Fobservations\u002F` whose receipt records no completion (BROKEN at any age).\n> 5p. (CHK-OBS-SURVEY-DIGEST) List receipts whose recomputed digest no longer matches the sheet archived beside them (BROKEN).\n> 5q. (CHK-OBS-SURVEY-RECORD) List `ratified` records whose `anchor_id` no receipt covers AND behind which no `observation` log op stands (BROKEN).\n>\n> **Concern 2 — code:**\n> 6. If `docs\u002Fcode\u002F` exists, confirm `docs\u002Fcode\u002F_meta\u002Fmanifest.json` exists and is valid JSON.\n> 7. For every row in `_meta\u002Fmanifest.json`, confirm the `doc_path` file exists. List missing files.\n> 8. For every `.md` file under `docs\u002Fcode\u002F` (excluding `index.md` and `_meta\u002F`), confirm it's listed in the manifest. List orphans.\n> 9. Confirm `docs\u002Fcode\u002Findex.md` exists. (Do not run any extractor — that's destructive and outside the audit's scope.)\n>\n> **Concern 3 — research:**\n> 10. Every `docs\u002Fresearch\u002Fsources\u002F\u003Cslug>.md` has required frontmatter (title, slug, type=source, source_url, source_date, author, captured_at, last_source_check, raw_path, previous_captures, static, tags). List pages with missing keys.\n> 11. Every source page's `slug` matches its filename. List mismatches.\n> 12. Every source page's `raw_path` and every entry in `previous_captures` resolves to an existing directory under `docs\u002Fresearch\u002Fraw\u002F`. List broken paths.\n> 13. Every directory `docs\u002Fresearch\u002Fraw\u002F\u003CYYYY-MM-DD>\u002F\u003Cslug>\u002F` is referenced by exactly one source page. List orphan and shared raws.\n> 14. Every synthesis page under `docs\u002Fresearch\u002F\u003Ccategory>\u002F` has required frontmatter (title, slug, type matching dir, tags, sources, last_reviewed). List pages with missing keys.\n> 15. Every slug in any synthesis `sources:` list exists in `docs\u002Fresearch\u002Fsources\u002F`. List dangling slugs.\n> 16. Confirm `docs\u002Fresearch\u002Fsources.md` exists with the 9 documented columns. Parse the table; for each row, list any column that disagrees with the corresponding source page's frontmatter. List orphan rows (slug has no source page) and missing rows (source page has no row).\n> 17. Confirm `docs\u002Fresearch\u002Fupdates.md` exists; list malformed `## ` headings.\n> 18. Every `[[research\u002Fsources\u002F\u003Cslug>]]` and `[[research\u002F\u003Ccategory>\u002F\u003Cslug>]]` wiki-link across `docs\u002F` resolves. List dangling.\n> 19. Count `[contradiction]`, `[unresolved]`, `[source updated]`, `[refresh failed]` markers and `## Capture gaps` sections.\n>\n> **Concern 4 — ADRs and briefs:**\n> 20. Every `docs\u002Fadrs\u002FADR-NNNN-*.md` has the required frontmatter keyset defined canonically in `docs\u002FAGENTS.md` §11.A (single source of truth — read §11.A for the field list; `amends:` is optional). List pages missing any §11.A-required key.\n> 20a. (CHK-ADR-1a) Compare `${CRUX_PLUGIN_ROOT}\u002Ftemplates\u002FADR-template.md`'s frontmatter keyset against the backticked col-1 tokens in `docs\u002FAGENTS.md` §11.A. WARN on any divergence (template and schema drifted).\n> 21. Every ADR's `id` matches its filename prefix. List mismatches.\n> 22. ADR numbering is contiguous from 0000. List gaps. List duplicates through CHK-NUM-1 (item 40e), which reads the same filenames.\n> 23. State-machine consistency: for each ADR, check that `accepted_date`\u002F`deprecated_date`\u002F`superseded_date` are non-null iff status implies them. List violations.\n> 24. Supersession bidirectionality: for every `superseded_by: ADR-X`, confirm `ADR-X.supersedes` contains this ADR; and for every entry in any `supersedes`, confirm `superseded_by` points back. List one-sided links. Separately, for every ADR with a top-level `amends:` list, confirm each entry resolves to an existing `docs\u002Fadrs\u002FADR-*.md`. List dangling. The `amends:` relationship is one-way — do NOT report missing `amended_by:` back-refs on the amended ADRs.\n> 25. `manifest.yml`'s `adr.next_number` must be strictly greater than the max existing ADR number. Report the values.\n> 26. Every `related_briefs:` entry resolves to an existing `docs\u002Fbriefs\u002FBRIEF-\u003Cslug>.md`. List dangling.\n> 27. Every `related_research:` entry resolves under `docs\u002Fresearch\u002F`: a bare `^[a-z0-9-]+$` slug → `sources\u002F\u003Cslug>.md`; a `^[a-z0-9-]+\u002F[a-z0-9-]+$` path → `docs\u002Fresearch\u002F\u003Ccategory>\u002F\u003Cslug>.md` (or `sources\u002F\u003Cslug>`). Reject any `..`\u002Fleading-`\u002F`\u002F`~`\u002Fmulti-slash entry as malformed (containment). List dangling + malformed.\n> 28. For every brief in any ADR's `related_briefs:`, confirm the brief's own `related_adrs:` lists the ADR back. List missing back-refs.\n> 29. List ADRs that reference a brief with `status: draft`.\n> 30. Confirm `docs\u002Fadrs\u002Findex.md` exists with one row per ADR. List orphan rows and missing rows.\n> 30a. (CHK-ADR-SPEC) Read `docs\u002Fmanifest.yml` `adr.spec_rule_from`. Absent\u002Fnull\u002Funparsable → report \"body content rule not adopted in this tree\" and DO NOTHING ELSE for this item. Otherwise, for every ADR numbered ≥ that value in either tier: measure the body span from `## Context` through the last non-blank line before `## References` and compare it against `docs\u002FAGENTS.md` §11.D's stated budget, and scan the same span for recipe-shaped content (fenced block, call signature or `def`\u002F`class`, flagged command, `| field | type |` shape table). WARN only — never a repair, never a proposed body edit; the body is frozen. An over-budget body carrying §11.D's justification blockquote under `## Context`, and an ADR that is itself a shape's source of truth, are both NOT findings. Report the measured span beside the budget, and state that the recipe scan is a heuristic that both over- and under-reports.\n>\n> **Concern 4.A — objectives (per `docs\u002FAGENTS.md` §5.B; no `concerns_enabled` entry gates these — run them on every `schema_version == \"5\"` tree):**\n> 4Aa. (CHK-OBJ-1) Confirm `\u003Cdocs_dir>\u002Fobjectives.md` exists and its frontmatter carries exactly the §5.B keyset, with `maturity` in the §5.B enum, `reviewed_at` an ISO date not in the future, and `review_every_days` a positive integer. Read §5.B for the keyset and the enum; do not restate either. A missing file is this item's own finding, never a skip. List every miss.\n> 4Ab. (CHK-OBJ-2) Confirm the body carries §5.B's three H2 headings, in §5.B's order, and no other H2. List violations.\n> 4Ac. (CHK-OBJ-3) Only when `maturity` is not `placeholder`: list bracketed template text left in the Mission, an empty goal list, any goal missing one of §5.B's four fields or carrying an out-of-enum `kind` or `status`, and goal ids that are not contiguous from 1 and unique. At `placeholder` report nothing for this item.\n> 4Ad. (CHK-OBJ-4) List Shifts rows whose date is not an ISO date or whose `shifted` value is neither `mission` nor an existing `OBJ-N`, and every goal with `status: dropped` that no Shifts row names.\n> 4Ae. (CHK-OBJ-5) Report a `reviewed_at` older than `review_every_days` as a WARNING, naming the age in days and the threshold. Do NOT edit the file — `reviewed_at` moves only after a human read.\n> 4Af. Find every `OBJ-N` token in the review reports, briefs, and ADRs under `docs\u002F`. Resolve each against the goals in `\u003Cdocs_dir>\u002Fobjectives.md`. List every dangling token as BROKEN.\n>\n> **Concern 5 — promptbooks (format coexistence — glob both `.yaml` and `.md`; route by extension + `format_version`):**\n> 31. (CHK-PB-1) Glob both `docs\u002Fpromptbooks\u002Factive\u002FPB-NNNN-*.yaml` and `docs\u002Fpromptbooks\u002F{active,archive}\u002FPB-NNNN-*.md`. For each **`.yaml` book with top-level `format_version`**: validate shape by invoking `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fvalidate-promptbook.py --kind promptbook \u003Cpath>` (exit 0 = clean; exit 1 + JSON `errors` = invalid → list them as BROKEN); other non-zero with empty stdout = crash — surface stderr, e.g. the exit-2 YAML-capability error (PyYAML missing; see `docs\u002FAGENTS.md` §10.A)). A `.yaml` book LACKING `format_version` → BROKEN (malformed). For each **`.md` book**: check the legacy required frontmatter keyset (id, title, status, created_at, total_prompts, current_run, current_prompt, forked_from, tags). List violations.\n> 32. Every book's `id` matches its filename prefix. List mismatches.\n> 33. (CHK-PB-3) For each book, format-detected: **`.yaml` book** → confirm `total_prompts == len(prompts)` (the structured array; do NOT count `### Prompt N` headings — there are none, and counting would corrupt to 0). **`.md` book (active)** → count `### Prompt N` headings in the body; list mismatches against `total_prompts`. Either way, confirm `current_prompt ≤ total_prompts` when non-null.\n> 34. For every book with `current_run: RUN-NNN`, confirm `docs\u002Fpromptbooks\u002Fruns\u002F\u003Cid>-\u003Cslug>\u002Frun-\u003CRUN-NNN>.md` exists. List dangling pointers. A `current_run` pointing at a TERMINAL run (`completed` or `abandoned`) is EXPECTED — the pointer stays until archival — and is not a dangling pointer; only a missing snapshot file is.\n> 35. List `docs\u002Fpromptbooks\u002Fruns\u002F\u003Cid>-\u003Cslug>\u002F` directories with no parent book in `active\u002F` or `archive\u002F` (orphan run dirs).\n> 36. Every run snapshot (glob both `run-*.yaml` and `run-*.md` under `docs\u002Fpromptbooks\u002Fruns\u002F\u003Cbook>\u002F`) has the required top-level keys (run_id, book_id, started_at, completed_at, status, current_prompt) with status ∈ {in_progress, completed, abandoned}. For `.yaml` runs the run validator (item 40b) covers this shape; for `.md` runs check the legacy frontmatter. List violations.\n> 37. For `status: completed` runs, confirm `completed_at` is non-null and every prompt's `**State:**` is terminal per the state-enum notes in `docs\u002FAGENTS.md` §11.B (single source of truth — read §11.B for the terminal definition). List violations.\n> 38. (CHK-PB-9) For archived books, confirm the FINAL run is archive-eligible by one of the two paths in `docs\u002FAGENTS.md` §11.B: `status: completed` with every prompt terminal (`done | skipped | blocked`), OR `status: abandoned` with `abandonment.kind: deliberate`. List violations. Eligibility is a run-level property — there is no per-prompt flag.\n> 39. Every `forked_from: PB-MMMM` references an existing book. List dangling references. Nothing writes this field any more (it is an always-null vestige); the check is retained for the historical corpus.\n> 40. `manifest.yml`'s `promptbook.next_number` must be strictly greater than the max existing PB number. Report values.\n> 40a. (CHK-PB-ABANDON) For each ARCHIVED book whose final run has `status: abandoned`: confirm it carries `abandonment.kind: deliberate`. `kind: superseded`, or no `abandonment` mapping at all, → BROKEN (archived on a signal that confers no eligibility). A `deliberate` abandonment on a run under `active\u002F` is legitimate — ignore it (do NOT flag).\n> 40a-bis. (CHK-PB-RADIUS) For each ARCHIVED book with `cycle_kind: patch`: confirm `blast_radius` is present and non-empty, every entry passes the declared-path grammar `invalid_blast_radius_entry` in `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fvalidate-promptbook.py` (the single implementation — call it or read it; do NOT restate its rejections), and the final run has a non-null `base_commit`. Violation → BROKEN. Do NOT re-run the git comparison — a historical diff is not reproducible from an archived tree; containment was checked once at archival by `archive-promptbook`. Demote to WARNING per the immutable-history rule.\n> 40b. (CHK-PB-SCHEMA) Format-detected per-prompt shape. **`.yaml` run with `format_version`** → invoke `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fvalidate-promptbook.py --kind run \u003Cpath>` (exit 0 = clean; exit 1 + JSON `errors` = list them) — other non-zero with empty stdout = crash (surface stderr, e.g. the exit-2 YAML-capability error (PyYAML missing; see `docs\u002FAGENTS.md` §10.A)); a `.yaml` run lacking `format_version` → BROKEN (malformed). **`.md` run** → validate each `^## Prompt N` block against `docs\u002FAGENTS.md` §11.B (read §11.B for fields + enum). Ignore `## Notes`\u002F`## Summary`\u002F`## PR Draft` and nested `###`\u002F`####` content. Accept bulleted `- **Field:**` and bare `**Field:**`. Findings: missing §11.B-required field → DRIFT-surface; `State` ∉ enum → BROKEN; unknown `**Field:**` → WARNING. `blocked-confirmed` is a RETIRED field — IGNORE it entirely (do NOT report it as unknown; those `.md` bodies are frozen). Demote ALL findings to WARNING (both paths) for archived or `status: completed` snapshots (status wins over path).\n> 40c. (CHK-PB-BIND) For each **`.yaml` run** whose `book_id` resolves to an active-or-archived `.yaml` book: recompute the book's frozen-plan hash via `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fvalidate-promptbook.py`'s `compute_book_hash` (canonical-JSON of the plan-bearing fields, excluding run-state `current_run`\u002F`current_prompt`\u002F`status`) and compare to the run's stored `book_content_hash`. List any mismatch (stored vs. recomputed) as DRIFT — NEVER auto-fix (recomputing erases the evidence; remediation is the §4 abandon rule — abandon the run, author a successor book). An unresolvable `book_id` is NOT this rule — that's the orphan-run-dir \u002F parent-book check (item 35).\n> 40d. (CHK-PB-11) `docs\u002Fpromptbooks\u002Findex.md` completeness. **Delegate it:** invoke `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-promptbook-index.py --root \u003Crepo root>` (exit 0 = clean; exit 1 + JSON `validation_errors` = list them; other non-zero with empty stdout = crash, surface stderr). It reports a book on disk with no index row, a duplicate row, a row naming a book that is not there, a heading whose count disagrees with the rows below it, and the tree index's promptbook rollup disagreeing with the directories. Membership is the DIRECTORY WALK (`active\u002F` and `archive\u002F`, extension-agnostic, `legacy\u002F` excluded) — never a `status` frontmatter filter, which yields a different set and would call an incomplete index consistent. **This item exists because its absence was the defect.** The inline rule list carried CHK-PB-11; this delegated enumeration did not. On a tree large enough to route the audit here, the index went uninspected, which is how 107 rows sat against 109 books. Missing rows → DRIFT (additive, auto-fixable); an orphan row → confirm before removing, per the destructive-repair rule.\n>\n> 40e. (CHK-NUM-1) Duplicate record numbers. **Delegate it:** invoke `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-record-numbers.py --repo-root \u003Crepo root>` (exit 0 = clean; exit 1 + JSON `validation_errors` = list them, each naming the files that hold the shared number; other non-zero with empty stdout = crash, surface stderr). It covers promptbooks, promptbook run directories and ADRs across both lifecycle tiers, and excludes `legacy\u002F`. A shared number is BROKEN; report it and never renumber.\n>\n> **Concern 6 — journal:**\n> 41. Every `## ` heading in `docs\u002Fjournal\u002FYYYY-MM.md` must match `## \\[\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}\\] (decision|implementation|bug|learning|blocker|refactor|meeting|review|misc|release) \\| `. List malformed.\n> 42. List entries whose date is outside the file's `YYYY-MM` scope.\n> 43. (CHK-JR-3) Run `generate-journal-index.py --dry-run`. Parse stdout as JSON regardless of exit code and report its verdict — do not walk `docs\u002Fjournal\u002F` and compare counts by hand.\n> 44. List dangling wiki-links inside journal entries (`adrs\u002F`, `promptbooks\u002F`, `research\u002F` targets). Promptbook **book**-links are lifecycle-agnostic (per `docs\u002FAGENTS.md` §11): `[[promptbooks\u002F(active|archive)\u002FPB-NNNN-\u003Cslug>]]`, `[[promptbooks\u002FPB-NNNN-\u003Cslug>]]`, `[[promptbooks\u002FPB-NNNN]]` resolve iff a book with that id exists under `active\u002F` OR `archive\u002F` (the `PB-NNNN` id is authoritative; ignore the segment; `legacy\u002F` excluded). `runs\u002F` links resolve by exact path.\n> 45. Confirm entries are reverse-chronological within each month file.\n>\n> **Concern 7 — catalog:**\n> 46. Catalog integrity: (CHK-CAT-1) list every entry in `${CRUX_PLUGIN_ROOT}\u002Fcatalog\u002F` and confirm each is a regular file with suffix `.json` or `.yml` that parses by extension — report a directory, a symlink, or any other suffix as a misfiled entry and do NOT follow or parse it; report an entry over 1 MiB — this rule's per-entry ceiling, applied to `.json` and `.yml` alike — as misfiled without parsing it (a `.yml` also faces the loader's tighter 64 KiB `CATALOG_MAX_BYTES` refusal, which fires first and is the loader's to report, not yours). Confirm the required files exist: the `.json` files named in `validate-catalog.py`'s `REQUIRED_CATALOG_JSON` constant, and the `.yml` files named in its `CATALOG_TARGETS` constant (both ship inside the plugin — do NOT derive either from the repo-root `AGENTS.md`, which an installed tree may well have and which is NOT this plugin's roster; if a constant cannot be read, report BROKEN rather than an empty floor). (CHK-CAT-2) List skill ids present in `plugin.json` but missing from `catalog\u002Fskills.json`, and vice versa. (CHK-CAT-4) List bundle `skills:` entries in `catalog\u002Fbundles.yml` that don't resolve to a `catalog\u002Fskills.json` id. (CHK-CAT-6) List the reverse: skills whose `bundles[]` names a bundle absent from `bundles.yml`, and skills absent from the `skills[]` of a bundle they declare. (CHK-CAT-5) Compare the count of `skills\u002F*\u002FSKILL.md` directories against the length of `catalog\u002Fskills.json`. Do not run `validate-catalog.py` — just compare on-disk state.\n>\n> **Concern 8 — arch (only when `arch` is in `manifest.yml`'s `concerns_enabled`; read `docs\u002FAGENTS.md` §4 \"arch\"):**\n> 47. (CHK-ARCH-1) Run `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fderive-arch.py --dry-run --docs-dir \u003Cdocs_dir>` from the repo root. Parse stdout as JSON regardless of exit code. Exit 1 means findings, and the payload names which of TWO independent channels found them; a run may carry both. exit 0 + `{\"clean\": true, \"drift\": [], \"strict_failures\": []}` = clean. exit 1 with `drift` non-empty = drift — report the drifted paths from the `drift` array as \"arch spine drifted (main session will regenerate)\". exit 1 with `strict_failures` non-empty = a requirement finding, NOT drift and NOT a failed regeneration: each entry names a concern `arch.require` declares this tree needs whose recorded verdict is not `populated` — report it as \"arch requirement not met: `\u003Cconcern>` is `\u003Cverdict>` (`\u003Cstub_reason>`)\" and say that regenerating arch does not fix it, because the committed tree already is what a regeneration produces. `clean` answers the drift question alone, so `{\"clean\": true, \"drift\": []}` at exit 1 is that second channel and not a contradiction. exit 2, non-zero with empty\u002Funparseable stdout, or exit 1 reporting findings in neither channel = no verdict — report the stderr, NOT a document finding. Two lanes share exit 2: a crash (an environment error) and a deliberate refusal (`StaleProjectionInput` on stderr, meaning a projected input is not what its own regenerator produces). Report which lane stderr names; on the refusal lane name the stale input and its own regenerator, and say that regenerating arch does not fix it. Do NOT regenerate — the main session runs `derive-arch.py` (no `--dry-run`) to auto-fix, and only on the drift lane.\n> 48. (CHK-ARCH-2) Confirm `\u003Cdocs_dir>\u002Farch\u002F` has the four spine files (`data-model.md`, `api-surface.md`, `module-graph.md`, `decision-index.md`) plus `overview.md`, `index.md`, and `_meta\u002Fmanifest.json`; list any missing (the main session's regenerate produces them). Separately, if `\u003Cdocs_dir>\u002Farch\u002F` exists but `arch` is NOT in `concerns_enabled`, report it as a stale derived tree (WARNING). Do NOT expect an `## Arch` section in `docs\u002Findex.md` — arch is derived and carries no master-index rollup.\n>\n>\n> **Concern 9 — regenerated-output drift and doctrine reconciliation (read `docs\u002FAGENTS.md` §4 \"doctrine\" + the repo-root `AGENTS.md` regenerative-outputs roster):**\n> 49. (CHK-DRIFT-1) Run each remaining enrolled `--dry-run` drift gate that Concerns 2\u002F7\u002F8 did NOT already run (they ran `extract-code-docs.py`, `validate-catalog.py`, `derive-arch.py`, `generate-routing-table.py` — do not re-run those). For the sixteen remaining roster outputs run: `summarize-adrs.py --dry-run`, `compile-doctrine.py --dry-run`, `generate-opencode-agents.py --dry-run`, `generate-lineage.py --dry-run`, `generate-adr-index.py --dry-run`, `generate-index-rollup.py --dry-run`, `generate-readme-footer.py --dry-run`, `generate-writing-rules.py --dry-run`, `generate-runtime-compat.py --dry-run`, `generate-reviews-index.py --dry-run`, `generate-journal-index.py --dry-run`, `generate-log-summary.py --dry-run`, `generate-rules-catalog.py --dry-run`, `generate-mods-reach-tables.py --dry-run`, `generate-micro-crux.py --dry-run` (agents.json is covered by the Concern-7 `validate-catalog.py` run — do not re-invoke it; a `\"surface_absent\": true` payload is N\u002FA, not clean — the reviews index, the journal index and the operations-log summary carry this payload on a tree that has not populated that surface yet, and the rules catalog, the reach tables and the micro-crux guide carry it outside the plugin's own checkout). Parse each stdout as JSON regardless of exit code: exit 1 + a drift payload → report DRIFT with the drifted paths and the regenerator that fixes it (main session recommends, never regenerates); a `validation_errors` payload → BROKEN (name the input to repair); non-zero + empty stdout → report the stderr, not a document finding; a `warnings` key → WARNING beside the verdict. Do NOT regenerate anything.\n> 50. (CHK-DOCTRINE-1) Only when `\u003Cdocs_dir>\u002Fadrs\u002Fdoctrine\u002F` exists: count pending reconciliation pairings by reading `\u003Cdocs_dir>\u002Fadrs\u002Fdoctrine\u002Findex.md` for domains marked `— BROKEN` with reconciliation-table rows whose status is `un-adjudicated`, `digest-stale`, or `collision` (or run `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fcheck-doctrine-reconciliation.py`: exit 1 + `broken_domains`). Report the count as WARNING \"N doctrine pairing(s) awaiting reconciliation — run reconcile-signoff\", plus any S1 `warnings` (a ratified invariant seeding no pairing). Do NOT auto-sign — reconcile-signoff is a human gate.\n>\n> Return a report grouped by concern with specific file paths and one-line descriptions. Keep findings terse — one line per violation.\n\n### 4. Apply fixes\n\nCategorize findings into BROKEN \u002F DRIFT \u002F WARNING.\n\n**Apply DRIFT auto-fixes** in the main session, with notification:\n- Update concern-section counts in `docs\u002Findex.md`.\n- Refresh `_Last updated:_` on `docs\u002Findex.md`.\n- Rebuild `docs\u002Fadrs\u002Findex.md`, `docs\u002Fpromptbooks\u002Findex.md` rollups from directory walks; for `docs\u002Fjournal\u002Findex.md`, recommend `generate-journal-index.py`.\n- Add missing `total_prompts` on active books (from `### Prompt N` count).\n- Set missing `last_reviewed` on synthesis pages where the value can be inferred from the operations log (use the `## [YYYY-MM-DD] ingest | \u003Ctouching slug>` entry with the latest heading date in any detail file under `docs\u002Flog\u002F`).\n- Fix `docs\u002Fresearch\u002Fsources.md` per-row column drift from frontmatter (frontmatter wins).\n- Create missing `docs\u002Fresearch\u002Fupdates.md` stub (header only).\n- Back-populate brief `related_adrs:` from ADR `related_briefs:`.\n- Regenerate a drifted `arch` spine (CHK-ARCH-1): run `${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fderive-arch.py --docs-dir \u003Cdocs_dir>`, then confirm clean with one `--dry-run`. This is the one regenerated artifact the audit rewrites in place — `docs\u002Fcode\u002F` and the skill catalog are recommend-only (see the destructive-BROKEN list). Skip under `--migrate`.\n\n**Safe-to-fix-automatically BROKEN findings, with notification**:\n- Add missing optional frontmatter keys with sensible defaults (`previous_captures: []`, `static: false`).\n\n**Requires user confirmation (destructive BROKEN)**:\n- Removing orphan index rows.\n- Deleting orphan raw folders.\n- Deleting orphan run directories.\n- Removing dangling slugs from any `sources:` \u002F `related_briefs:` \u002F `related_research:` \u002F `supersedes:` list.\n- Fixing supersession bidirectionality (the missing-link side might be the wrong side; ask).\n- Regenerating `docs\u002Fresearch\u002Fsources.md` from scratch when missing.\n- Re-extracting `docs\u002Fcode\u002F` to clear orphan pages (recommend running `extract-code-docs` separately).\n\n**WARNINGS**: report only. Offer to address in a follow-up session.\n\n### 5. Record the `audit` operation\n\nWrite the entry through the log writer, as `docs\u002FAGENTS.md` §6 states: write the body to a file outside the tree, then run\n\n```\nuv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Foperation-log.py\" append --repo-root \u003Crepo-root> \\\n  --op audit --subject '\u003CB broken \u002F D drift fixed \u002F W warnings>' --date \u003CYYYY-MM-DD> --body-file \u003Cpath>\n```\n\nIt writes this heading at the top of the current month's detail file:\n\n```\n## [YYYY-MM-DD] audit | \u003CB broken \u002F D drift fixed \u002F W warnings>\n```\n\nA refused append keeps the audit's other writes; fix the cause it names and rerun the append alone. Then run the commit step of §6 over the result's `commit_paths` and `restore_paths`.\n\nBody, in three short sections:\n- **Fixed (drift + safe-broken)**: bulleted list per concern of what changed.\n- **Pending broken**: list with file paths and the action the user needs to decide.\n- **Warnings**: counts grouped by check id and concern.\n\n### 6. Hand-off\n\nReport to the user in this order:\n1. Summary line: `Audit complete: B broken, D drift, W warnings. Q auto-fixes applied. R pending your decision.`\n2. Pending BROKEN items requiring decisions, one per line with a recommended action.\n3. Notable warnings (e.g., \"8 contradiction markers across 5 research pages — schedule `refresh-research-synthesis`\").\n4. Cross-concern observations: ADR drift > 2 → recommend a `transition-adr --repair` pass; code drift detected → recommend `extract-code-docs`; arch spine drifted → note it was regenerated in place (name the drifted files); promptbook progress stalled → mention it.\n5. If applicable: \"It's been N writes since the last audit per concern — consider audits more\u002Fless often.\"\n\n## The `--migrate` mode\n\nIn the current release, `audit-docs --migrate` handles only repository\ninstruction files behind CHK-INSTR-1\u002F2\u002F4. It has no tree-schema ladder. A\nschema-5 tree can still owe this instruction migration. When CHK-SCHEMA-1 finds\nan older supported schema or a partial `.migrating` marker, use the pinned\nrecovery release first; [`references\u002Fmigrate-mode.md`](references\u002Fmigrate-mode.md)\ncontains the route and the independent instruction procedure.\n\nRun the current instruction migrator through its vendored script:\n\n```bash\nuv run \"${CRUX_PLUGIN_ROOT}\u002Fscripts\u002Fmigrate-instructions.py\" --repo-root . --migrate\n```\n\nExit `0` clean, `1` with findings JSON when a scope is refused, stopped, or\nmigrated without staging, `2` on a capability error. Where a scope holds both a\n`CLAUDE.md` and an `AGENTS.md`, `CLAUDE.md` wins: its bytes become `AGENTS.md`,\nwith each line that imports the other file replaced by that file's bytes. A losing\n`AGENTS.md` whose bytes differ is set aside under a reported name in its own\ndirectory, never overwritten. Show the user every set-aside, refusal and next step\nthe report names. The migration plans every scope before it mutates anything, and a\nrerun reaches the state an uninterrupted run reaches — it claims **no multi-file\nfilesystem atomicity**, and the receipt says so in as many words.\n\n## Red flags — STOP and reconsider\n\n- About to delete a raw folder, run-snapshot directory, or any file under `docs\u002F` without explicit user confirmation. **NEVER.** Always ask.\n- About to rewrite ADR body content \"to fix the alternatives section\". The audit never touches ADR body — only status frontmatter and only via `transition-adr`.\n- About to rewrite a research synthesis page during the audit. NEVER. That's `refresh-research-synthesis`.\n- About to edit a past operations-log entry, in a detail file under `docs\u002Flog\u002F` or a legacy `docs\u002Flog.md`, to \"fix the format\". The log is append-only history. Mistakes are evidence; surface them, don't rewrite.\n- About to edit a past journal entry. Same rule — append-only.\n- About to edit a past run snapshot's prompt body. Run snapshots' prompt bodies are immutable.\n- About to merge two ADRs or two source pages to resolve a duplicate. Never auto-merge; ask which is canonical.\n- About to \"fix\" supersession bidirectionality by editing both ends without user consent. The missing back-link might be the wrong direction — the user has to confirm which ADR really supersedes which.\n- About to regenerate `docs\u002Fresearch\u002Fsources.md` from scratch because it's missing. Stop. Reconstructing from frontmatter loses any hand-edits. Ask first.\n- About to auto-run `extract-code-docs` to fix code drift. The audit only runs `--dry-run`. The real extraction is the user's explicit call.\n- About to apply >20 auto-fixes silently. Show the user the list first — could be a systematic issue.\n- About to invoke this skill recursively from inside another skill. The audit is end-of-cycle, not a hook.\n\n## Rationalization table and common mistakes\n\nThe Red flags list above is the primary stop-list. For the fuller\nexcuse→reality mapping and the recurring-mistake catalog (log-vs-journal\nconfusion, hidden-file counting, naive frontmatter parsing, orphan-vs-abandoned\nruns), read [`references\u002Fpitfalls.md`](references\u002Fpitfalls.md).\n\n## Output format example\n\nFor a worked example of the end-of-audit DRIFT \u002F BROKEN \u002F WARNINGS report the\nhand-off produces, see [`references\u002Foutput-format.md`](references\u002Foutput-format.md).\n\n## CHK-ADR-ARCHIVE (SP-4)\n\nTier invariant: active `adrs\u002F` holds {Proposed, Accepted}; cold `adrs\u002Farchive\u002F` holds {Superseded, Deprecated}. `CHK-ADR-ARCHIVE` flags every violation — a Proposed\u002FAccepted ADR in `archive\u002F`, a Superseded\u002FDeprecated ADR still active, an unknown status, a duplicate id across tiers — and **auto-repairs the one legitimate crash window** (a terminal-status ADR still in `adrs\u002F` → complete the move). An active-status ADR found in `archive\u002F` is corruption: flagged BROKEN, never moved back. A **raw-path guard** flags any non-wiki-link ADR path reference (`bionic\u002Fadrs\u002F…`, `adrs\u002F…`, `.\u002F…`, `…\u002Farchive\u002F…`) in prose\u002Fprompts, with an allowlist for the ADR machinery (`propose-adr`, `transition-adr`, `generate-index-rollup.py`, `generate-lineage.py`, `generate-adr-index.py`, `summarize-adrs.py`). The counter-contiguity and supersedes\u002Fsuperseded_by bidirectional checks walk both tiers.\n\nThe summaries projection declares `_meta.json` schema `\"6\"`; doctrine declares schema `\"5\"`. These are projection versions, independent of tree-layout schema `\"5\"`, plugin schema `\"4\"` and book\u002Frun formats. Historical slug\u002Fhandle and clause rosters resolve preserved evidence, not governing rows; current live replacements remain separate from original historical displacer provenance. A malformed historical map or failed activation is a refusal, never a reason to restore the old rule. Mutable governing references must resolve surviving architecture through `lint-governs-references.py`; excluded dated or frozen evidence retains historical retrieval semantics. Human-signed doctrine pairings require separate human disposition before a migration affects them. Report the dependency; never edit or sign the ledger, rewrite frozen bodies or repair a historical citation into current authority.\n\n**`\u003Cdocs_dir>\u002Fadrs\u002Fsummaries\u002F` is a REGENERATED artifact directory** — the summaries rule table, resolver, and ADR↔run implementation map plus `_meta.json`, projected deterministically from ADR `governs` blocks (a regenerative output). It is NOT part of the ADR document graph: exclude it from every CHK-ADR-* walk (its files are not ADRs and carry no ADR frontmatter) and from the raw-path guard's prose scan (its `ADR-NNNN` references are machine-emitted data, not authored prose), exactly as `promptbooks\u002Flegacy\u002F` is excluded from every CHK-PB-* walk. Its drift is owned by `summarize-adrs.py --dry-run` (the regenerative-outputs roster gate + CI) and is now DETECTED by audit-docs through **CHK-DRIFT-1** (which runs that same gate) — but audit-docs only **recommends** `summarize-adrs.py`; it does **not** regenerate the summaries projection here. The same recommend-only rule holds for the **doctrine projection** (`\u003Cdocs_dir>\u002Fadrs\u002Fdoctrine\u002F`), a separate REGENERATED artifact directory (index + `_meta.json`, compiled from the summaries projection and reconciled against the ratified invariants): exclude it from every CHK-ADR-* walk and the raw-path guard's prose scan exactly like `summaries\u002F`; its drift is detected by CHK-DRIFT-1's `compile-doctrine.py --dry-run` and recommended via `compile-doctrine`, never regenerated in the audit. `\u003Cdocs_dir>\u002Fadrs\u002Fdoctrine\u002Freconciliations.yml` is likewise machine-owned (only `reconcile-signoff` writes it) — the audit reads it and never edits it.\n\n**`\u003Cdocs_dir>\u002Fadrs\u002Freviews\u002F` is excluded on a different ground** (rule:reviews-surface-excluded-from-adr-walks). It holds the dated reports of the periodic decision review, one `YYYY-MM-DD.md` per pass, plus a derived index. Exclude it from every CHK-ADR-* walk and from the raw-path guard's prose scan, exactly as `summaries\u002F` and `doctrine\u002F` are excluded. The reason differs from that precedent's: `summaries\u002F` and `doctrine\u002F` are regenerated wholesale, while a review report is hand-kept and never regenerated. The only gate over the surface is the reviews index's own regenerator and its drift gate. Without the exclusion a dated report reads as a malformed ADR to every CHK-ADR-* rule — no ADR id, no §11.A frontmatter — and the ADR ids a report cites inline by contract would trip the raw-path guard. The audit neither reads a report as a record nor edits one. The index's drift belongs to CHK-DRIFT-1, whose regenerator is enrolled in the regenerative-outputs roster; the audit recommends that regenerator and never runs it.\n\n[^code-doc-uv]: rule:code-doc-callers-invoke-through-uv\n[^correct]: rule:existing-books-are-corrected-at-execution\n[^log-enum]: rule:op-enum-applies-to-every-detail-file, rule:log-readers-read-every-log-file\n[^log-gate]: rule:pending-month-is-not-drift, rule:summary-gate-fails-on-a-changed-region\n",{"name":5,"model":24,"context":25,"metadata":26,"description":7},"opus","fork",{"tags":27,"bundles":28,"triggers":29,"risk_level":30,"routing_note":31,"requires_access":32},"audit, integrity, validation, drift-detection","crux-docs","audit docs | check docs | find drift | verify docs integrity","low","Full vault-walk; mostly read-only.","write-tree","main","dd4f16e7ac12ff940790660ec897677284ae4b6d","crux\u002Fskills\u002Faudit-docs","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux","https:\u002F\u002Fbionic-coding.com\u002Fcrux\u002F","https:\u002F\u002Fgithub.com\u002Fbionic-coding","https:\u002F\u002Fbionic-coding.com","Durable intent, disposable code.","2026-11-12 09:36:33",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add bionic-coding\u002Fcrux --skill audit-docs",{"tool":48,"command":49},"bunx","bunx skills add bionic-coding\u002Fcrux --skill audit-docs",{"tool":51,"command":52},"pnpm","pnpm dlx skills add bionic-coding\u002Fcrux --skill audit-docs","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Faudit-docs\u002FSKILL.md",true,[56,62,66,70],{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Flegacy-claude-adapter.md","REFERENCE","参考文档",3781,"https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Faudit-docs\u002Freferences\u002Flegacy-claude-adapter.md",{"path":63,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fmigrate-mode.md",9043,"https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Faudit-docs\u002Freferences\u002Fmigrate-mode.md",{"path":67,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Foutput-format.md",2103,"https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Faudit-docs\u002Freferences\u002Foutput-format.md",{"path":71,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fpitfalls.md",3758,"https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Faudit-docs\u002Freferences\u002Fpitfalls.md",[75,82,89,96,103,110],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7CA5PH4JT2V5WBTA5ZPJNS8","whiteboarding","Explore an idea through docs-informed dialogue before committing to a design. Capture the exploration for later filing as a brief.","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Fwhiteboarding\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7CA5GZPSVNJJZYQMF0JT3EH","verify-code-docs","Check generated code documentation against source and report drift without regenerating it.","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Fverify-code-docs\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7CA5A4HA73VF91N8VY6SDBN","transition-observation","Apply a human disposition to an observation's lifecycle state without changing its claim or body.","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Ftransition-observation\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7CA53X1ESGWKTPCEQ55JWEZ","transition-invariant","Ratify, reject, or retire an invariant on human direction. Update lifecycle metadata without changing the invariant's body.","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Ftransition-invariant\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M7CA4Y2VC25NFZE0XJZ47VSX","transition-decision","Apply a human ratify, reject, or defer verdict to a recovered decision candidate; ratification creates a Proposed ADR or observation.","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Ftransition-decision\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":19},"01M7CA4QD9RFDC379VD9DNK90D","transition-brief","Publish or abandon a draft brief, updating lifecycle metadata and indexes without changing its body.","https:\u002F\u002Fgithub.com\u002Fbionic-coding\u002Fcrux\u002Fblob\u002Fmain\u002Fcrux\u002Fskills\u002Ftransition-brief\u002FSKILL.md",[],[]]