Open, create, migrate or reject a file by user_version; reject newer files
before switching to WAL. transaction() gives one BEGIN IMMEDIATE per operation.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Pages keep their original bytes; fields and sections are views. Source
pages are read strictly and written in a fixed field order.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
FactTime validates and compares intervals in UTC; dates cover the
whole UTC day. parse_point/format_point accept only strict forms.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
PageId (UUIDv7) and PageTitle validate on construction; frontmatter is
split losslessly, read as text-only YAML without anchors or duplicate
keys, and written canonically. All page errors live in domain/errors.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sections are split at level 1 and 2 headings outside code and comments,
each with a content hash. Wikilinks are found outside code and comments.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Scores each case against its recorded response, prints one line per case plus a summary, and exits 0, 1 or 2 (load error).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
load_eval_set turns a set directory into an EvalSet; every load
failure becomes an EvalSetError naming the file. RecordedResponses
returns raw response text or None.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Pure grading of recorded responses: equals and contains checks over
JSON Pointers, strict output-model validation, score per case.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Establish the src layout, the four Ports & Adapters layers and a smoke
test. Dependencies are locked with hashes and a relative 7 day cooldown.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>