Commit Graph
27 Commits
Author SHA1 Message Date
torbenandClaude Sonnet 5.5 4bcb1d6596 Isolate git environment for all tests
Move the _isolated_git fixture to tests/conftest.py so git rebase --exec
cannot leak GIT_DIR into any test; add a test outside tests/evals.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-05 07:15:13 +01:00
torbenandClaude Sonnet 5.5 74574b948c Add baseline report formats and --baseline/--format CLI switches
CI / checks (pull_request) Successful in 1m5s
Text and Markdown comparison reports (regressions first, IDs escaped);
exit code still comes from the current arm only, errors give exit 2.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-04 23:16:48 +01:00
torbenandClaude Sonnet 5.5 8f3844d650 Add load_baseline reading an eval set from a git ref
Archive the set folder at the commit, unpack into a temp dir and read
cases and recorded responses into memory; the working tree stays untouched.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-04 23:16:48 +01:00
torbenandClaude Sonnet 5.5 b0f04d7912 Add baseline comparison of eval sets
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>
2026-12-04 23:14:15 +01:00
torbenandClaude Sonnet 5.5 857a1818d5 Show reference counts per case and per set in the eval report
CI / checks (pull_request) Successful in 1m4s
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>
2026-12-04 23:02:45 +01:00
torbenandClaude Sonnet 5.5 9a7dc6ceb3 Add reference grader with set comparison and text normalisation
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>
2026-12-04 23:02:45 +01:00
torbenandClaude Sonnet 5.5 f761c27d1a Add live test behind the live marker
Plain pytest deselects it; -m live runs it and skips without a key.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-04 22:06:58 +01:00
torbenandClaude Sonnet 5.5 adf8a9b290 Add build_llm factory for the LLM port
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>
2026-12-04 22:06:58 +01:00
torbenandClaude Sonnet 5.5 d759697aeb Add Anthropic provider with total-time deadline
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>
2026-12-04 22:06:58 +01:00
torbenandClaude Sonnet 5.5 276756e4af Add recorded LLM provider replaying answers from files
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>
2026-12-04 22:06:58 +01:00
torbenandClaude Sonnet 5.5 65f0714a3b Add LLM profile router with provider configuration
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>
2026-12-04 22:06:58 +01:00
torbenandClaude Sonnet 5.5 140014f8bb Add StepProfile and LLM port with errors
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>
2026-12-04 22:06:58 +01:00
torbenandClaude Sonnet 5.5 8b55072677 Add SQLite job queue with jobs migration
CI / checks (pull_request) Successful in 1m15s
Atomic claim, terminal transitions and recover() that requeues at the old place.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-04 20:06:04 +01:00
torbenandClaude Sonnet 5.5 499d8a5ae8 Add SQLite database adapter with versioned migrations
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>
2026-12-04 20:06:04 +01:00
torbenandClaude Sonnet 5.5 f0f0f02d90 Add Page and SourcePage with lossless reading and source writing
CI / checks (pull_request) Successful in 53s
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>
2026-12-04 12:58:10 +01:00
torbenandClaude Sonnet 5.5 f5fe9af07a Add fact time intervals with strict point parsing
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>
2026-12-04 12:58:10 +01:00
torbenandClaude Sonnet 5.5 308d68ad8c Add page identity and frontmatter domain types
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>
2026-12-04 12:58:10 +01:00
torbenandClaude Sonnet 5.5 931b1dcc5f Add section splitting and wikilink detection to the domain
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>
2026-12-04 12:58:10 +01:00
torbenandClaude Sonnet 5.5 980328ce2e Replace the architecture stub with the overview and add link tests
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>
2026-12-02 23:11:02 +01:00
torbenandClaude Sonnet 5.5 85f19d79ee Add format test for architecture decision records
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>
2026-12-02 21:53:44 +01:00
torbenandClaude Opus 5.5 f2882511f4 Forbid layer imports in the root package
CI / checks (pull_request) Successful in 45s
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>
2026-12-02 21:49:48 +01:00
torbenandClaude Sonnet 5.5 81e05acd47 Add import-linter layer contract with tests
Enforce inward-only imports between domain, ports, application, adapters and evals; unlisted packages fail.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-02 21:33:00 +01:00
torbenandClaude Sonnet 5.5 c423e1039c Add example eval set and its test
Three recorded cases for an entity-extraction step; threshold 1.0.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-02 18:09:51 +01:00
torbenandClaude Sonnet 5.5 53bed333de Add eval runner, report and chemenu-eval command
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>
2026-12-02 18:09:51 +01:00
torbenandClaude Sonnet 5.5 77097dd81c Add eval set and recorded response loader
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>
2026-12-02 18:09:51 +01:00
torbenandClaude Sonnet 5.5 76f2fbbf06 Add eval types and hard graders
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>
2026-12-02 18:09:51 +01:00
torbenandClaude Opus 5.5 13773f7195 Add Python 3.14 project skeleton with uv lock
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>
2026-12-01 22:47:56 +01:00