- D-0003: <python> interpreter resolution, per-OS install guide, lint_quick.sh/.ps1 session-start fallback, manual lint checklist, no-script retrieval path, exporters declare Python a hard requirement - Lint check 13 pairs each Crux quote block with the attribution under it, so a multi-source Crux no longer cross-fails; fixture KB gains a second source - Session summaries for 2026-09-29 and 2026-10-01 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
25 lines
2.7 KiB
Markdown
25 lines
2.7 KiB
Markdown
# Manual lint checklist (no-Python path)
|
||
|
||
Use only when no Python interpreter is available (see "Scripts and the
|
||
Python Runtime" in `AGENTS.md`). This reproduces the *detection* that
|
||
`scripts/lint_report.py` does mechanically; the numbered checks in
|
||
`SKILL.md` still say what each finding means and what to do about it.
|
||
Work `wiki/` first, then each connector-backed `libs/<name>/` (has
|
||
`source.yaml`). Skip `index.md` and `log.md` everywhere. Scope the run and
|
||
say what was skipped — by hand, this costs tokens.
|
||
|
||
| # | Check | How to detect by hand |
|
||
|---|---|---|
|
||
| 1 | Conformance | `rg -L --files-without-match '^---$' wiki -g '*.md' -g '!index.md' -g '!log.md'` lists pages with no frontmatter. For the rest, open the frontmatter: must be flat `key: value` lines, closed by `---`, with a non-empty `type`. `lint_quick.sh`/`.ps1` counts these. |
|
||
| 2 | Freshness | `rg -n '^(last_updated|freshness_window_days):' wiki` and compare: today − `last_updated` > `freshness_window_days` ⇒ stale. `lint_quick.sh`/`.ps1` counts these. |
|
||
| 3 | Confidence | `rg -n '^confidence:' wiki` — flag values outside 0.0–1.0 or non-numeric; then apply the decay rule from check 3 to pages older than their window. |
|
||
| 4 | Retention | `rg -n '^retention: low' wiki` and check each page's age against check 4's archive threshold. |
|
||
| 5 | Decisions | For each `wiki/decisions/NNNN-*.md`: `status` ∈ proposed/accepted/rejected/superseded/reversed; `decided_on` and `decided_by` present; every `supersedes` has a matching `superseded_by` on the target (`rg -n '^(supersedes|superseded_by):' wiki/decisions`). |
|
||
| 6 | Orphans | For each page, `rg -l '<page-slug>' wiki` — a page nothing links to (outside its own directory index) is an orphan. Do this only for pages touched since the last lint unless asked for a full pass. |
|
||
| 7 | Graph | `rg -o '"(from|to)": *"[^"]+"' wiki/graph/edges.json` — every endpoint must exist as a file. Verbs must be in the edge vocabulary listed in `docs/CHANGELOG.md`. |
|
||
| 8 | Index / log | Every page appears in its directory `index.md`; every file in `git log --since=<last lint> --name-only -- wiki` has a matching `wiki/log.md` (or `wiki/decisions/log.md` + POINTER) entry. |
|
||
| 12 | Source fingerprints | For each `## Sources` bullet with `sha256:<prefix>`: `sha256sum <file>` (or `Get-FileHash`) must start with the prefix. `lint_quick.sh`/`.ps1` counts these. |
|
||
| 13 | Crux verbatimness | For each `## Crux` quote, `rg -F '<first ~40 chars>' <cited source>` — a miss means the evidence moved. Only practical for a few pages; list candidates and ask which to verify. |
|
||
|
||
Checks 9–11 (error book, supersession judgment, auto-fix vs. report) are
|
||
the model's job in every mode and are unchanged here.
|