Commit graph

4 commits

Author SHA1 Message Date
51aaeadcdb Phase 1: honest failure, folded names, safer exports
- OKF export: a bare [[X]] becomes a bundle-root link when it resolves
  (path, file name or title; `&`, spaces and brackets percent-encoded)
  instead of degrading to plain text.
- N2 "degraded, not empty": retrieve reports DEGRADED for unread pages,
  graph or exact search ("no candidates among what could be read");
  lint reports Crux quotes and secret scans it could not do, and no
  longer skips an unreadable file as binary in the secrets scan.
  AGENTS.md rule; test_silent_reads guards new swallowed reads
  (`# ok-silent: <reason>` for the deliberate ones).
- N17: case- and accent-insensitive fold in retrieve's tldr and scope
  matching; lint check 20 flags page names that collide after folding.
- N7: one publish filter in both exporters drops HTML comments outside
  code (unclosed to the end of the page), `--drop-section NAME` leaves out
  sections, and a page whose frontmatter never closes is refused (exit 1).
- Test that an interrupted routine stays due until --mark.
- Docs: lint, retrieve and exporter skills, both manuals; goldens updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 23:52:39 +01:00
9d5148ccec Template 2.0.9: golden file lists and reports for both exporters (T5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 18:22:44 +01:00
45d2830aed Template 2.0.5: routines, redaction, OKF quoting, Unicode search, low-severity fixes
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>
2026-11-11 17:19:48 +01:00
6427567a0b Template 2.0.1: 3.8 compatibility, routines --mark, exporter containment
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>
2026-11-11 14:26:10 +01:00