All eight frontmatter readers close at a `---` line, including one at
end of file (consolidate, dedup, OKF and share missed it; retrieve,
Starlight and mcp stopped at any line starting with `---`).
tests/unit/test_frontmatter_contract.py (T9) and
tests/unit/test_lint_dirty.py (T2: one planted fault per lint check).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes F20-F24 from the 2.0.0 script review: zero-indent routine lists,
escaped --do values, --remove continuation lines; <private> redaction
across content blocks; OKF scalar quoting and code-fence titles; Unicode
tokens in retrieve and consolidate; bad workload dates, frontmatter at
EOF, `wiki/` refs without a slash, Starlight route collisions, labelled
wikilinks, string source_files, real splash sections, <private> dropped
from both exports.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes F7-F11 from the 2.0.0 script review:
- UTF-8 stdout/stderr in every script; UTF-8 decoding of git/rg/yt-dlp
output and of hook stdin
- utf-8-sig reads, so BOM files keep their frontmatter
- fingerprints match LF or CRLF checkouts (lint, lint_quick.sh,
consolidate); prefix match on the full digest; short ones reported
- POSIX paths in lint output; rg --path-separator /
- hook installers default to the running interpreter, quote paths,
--check reports a missing interpreter, odd settings are an error
New tests/unit/test_windows.py.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes F1-F5 from the 2.0.0 script review:
- removeprefix/removesuffix (3.9+) replaced; lint, retrieve and
consolidate crashed on Python 3.8 with any graph edges
- routines.py --mark wrote `last_run:DATE` (invalid YAML) and swallowed
trailing comments into the value
- export_okf.py --out must be inside outputs/ (it is rmtree'd);
export_starlight.py image copies confined to wiki/assets/
- script counts in AGENTS.md, READMEs and manuals
New tests/unit/ (stdlib unittest, run from smoke.sh): 3.8 API guard,
routines round-trips, exporter containment, AGENTS.md consistency.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- F13 new skill ckb-consolidate with consolidate.py: a proposals-only
report in outputs/reports/ (topic clusters and their state, merge
candidates, missing links, stale pages, old log entries by month);
never edits a page, never rewrites the log
- F15 topic pages (type: topic) in the new wiki/topics/, built only on
approval, with member-page digests as ## Sources so lint flags drift;
ckb-retrieve routes "overall" questions to wiki/topics/index.md first
- Schema 1.7 (D-0016): ckb-upgrade b4, ckb-init and ckb-reset know
wiki/topics/; ckb-routine suggests a fortnightly Consolidate --confirm
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>