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 F6, F12-F16 from the 2.0.0 script review:
- share: plain file/mailbox names and mailbox-bound share_id/version, or
the message is ignored (no ckb.yaml injection, no writes outside
raw/inbox/); ledger rejects whitespace/control characters; every
commit on a message must be by an owner; duplicate members.yaml
entries unown a mailbox; only verified retractions hide mail; branch,
url and name validated before git; received copy always untrusted;
<private> stripped from title/tldr and unclosed tags; no send without
the secret scan
- capture: frontmatter values quoted unless plainly safe; one-line title
- lint check 13: chat-attributed Crux needs no Sources
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New opt-in `share` module with skill `ckb-share` and stdlib `share.py`
(join/send/unshare/list/receive/status). KBs exchange documents through a
git channel with one append-only mailbox per KB; sends are packed
self-contained, secret-scanned and confirmed; received documents land in
raw/inbox/ (untrusted), retractions in raw/retractions/; the git author
must own the mailbox. dedup_inbox.py reports SAME SHARE; ckb-ingest and
ckb-retract know share files. Smoke test covers two KBs end to end.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>