Key is a hash of step, prompt and output schema, so recordings
survive profile changes. Broken recordings raise MissingRecordingError
with the path of the affected file.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A profile resolves to exactly one provider and model; unmapped profiles,
unknown providers and model mismatches fail loudly.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Domain enum for step profiles and the LlmPort protocol with request,
response, usage and the LlmError hierarchy. Step names are validated
because they later become part of file paths.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
Adds port per need, migration path and WAL note to ADR 0012, links
ADR 0030, and adds four glossary terms.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Records sync core with async edge, at-least-once delivery with
three attempts, and UUIDv7 jobs. Linked from architecture.md.
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>
Clarify aliases in ADR 0014, link fields per source in ADR 0015, set date. Add section, head, title and authority form to the glossary.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Fills in ADR 0014 and 0015: lossless reading, title rule, sections,
hash, links, source page fields and fact time.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
ADR 0024 now points to the extension of the LLM judge to fact matching.
Add gold fact, gold inventory, judge, verdict, falsification, bait and
calibration to the glossary.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Define staged matching (code says present, judge the rest), gold fact
against the whole inventory, four verdicts, one judge and calibration.
Extends ADR 0002 and the judge in ADR 0024. Table row in architecture.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes location, licences, size limits, first gold, private sets and
treatment of corpus files as data.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
CI runs ruff format over the whole repository, which includes code blocks in
Markdown. The hook only saw Python files, so a local run passed and CI failed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The operator decides from the chat text without opening the issue and the
ADRs next to it, so the text has to carry background, options with their
price, a reasoned recommendation and the consequences.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Terms that carry the decisions (operation, inventory, disposition,
fact time, authority, plugin, manifest and others) get German-English
pairs with a short meaning taken from the ADRs.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The architecture now lives in docs/architecture.md and docs/decisions/,
so neither file refers to torben/chemenu#249 as authoritative anymore.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
architecture.md now carries the ADR table, both diagrams, scaling, risks
and the table of inputs from the legacy stack. Tests check contiguous ADR
numbers, that every ADR is linked, and that relative links resolve.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Search lives in the service database; QMD is rejected as a backend, its design principle is kept.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
git with LFS is canonical; state classes, cheap and costly derived data, cache rules and the rebuild in six steps.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>