Commit graph

3 commits

Author SHA1 Message Date
aab4b9e5e2 Template 2.0.3: Windows encoding, line endings, BOM, paths, hooks
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>
2026-11-11 15:32:26 +01:00
b6b592d5d7 Template 2.0.2: share and capture hardening, Crux without Sources
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>
2026-11-11 14:38:18 +01:00
8dc3445b27 Template 1.28.0: share module — mailboxes in a git channel (D-0018)
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>
2026-11-11 13:31:51 +01:00