Records the operator's decisions on arm, non-comparable cases, states,
git-ref source and report for chemenu-eval --baseline (#26).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
compare() scores recorded responses of a ref against the current cases and
classifies each case (regression, fixed, new, removed, not_comparable, ...).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Each reference check prints precision and recall with counts, missing and
surplus entries; sum_matches adds the counts per label after the summary.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Compares answer lists against a reference as sets with precision and recall minimums; text is casefolded, NFC and whitespace normalised.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Documents form, equality, duplicates, empty lists, minimums and report of the reference grader (#24).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
ADR 0005, 0006, 0009, 0013, 0023, 0024 and 0028 described profiles as
strengths; they now name models or the step profile, and the judge in
ADR 0028 gets its own profile `judge` with #40.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Records profiles by task, hash-keyed recordings, errors, deadline,
live test and library choice.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Builds providers and router from configuration; the caller passes env,
a missing key fails only on call.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Calls stream through the SDK; DeadlineTransport checks the clock before each byte chunk (also pings) so a call ends within its limit.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
Two-stage check, class from signals, questions instead of diffs, partial application; fatigue tuning left open (#29).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Operations, rewriting as the normal case, appending, type spec and writing rule from torben/chemenu#249 § Freigabe.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Embeddings run in a local container behind the OpenAI-compatible
adapter; API providers stay possible; reranker only after evals.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Step profiles, provider adapters, CLI fixed costs, evals as a
precondition, data class and the machine-local configuration rule.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Inventory per source section, disposition per entry, code checks,
skipped entries and integration per target section.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Phase A parallel, phase B serial, re-check including assignment,
structural change events and reservation of planned new pages.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Three roles, job anatomy, wiki-ingest decomposition, confined worker
and the O(1) job-context invariant, from torben/chemenu#249.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Checks frontmatter, template sections, placeholders, source line for
ADR 0003-0025 and issue references under 'Bewusst offen'.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The layers contract does not check chemenu/__init__.py itself, so an import
there would load a layer for every importer without any check failing.
Co-Authored-By: Claude Opus 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>
Record layout, output schema and set format decisions from #4, plus
architecture entry and glossary terms.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A worktree session cannot check out main, and the local main may be stale.
Fetch and use origin/main throughout instead.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
/design turns an issue into a spec with interfaces and slices;
/build runs one implementer agent per slice and opens the PR.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>