Commit Graph
110 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
torben ecf4ec4e8a Merge pull request 'Baseline-Arm und Veränderung je Satz' (#49) from 26-baseline-arm into main
Reviewed-on: #49
2026-12-04 22:26:24 +00: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 e9c5913025 Make loader read_yaml public
The baseline reader needs the same YAML dialect for old case files.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-04 23:16:48 +01:00
torbenandClaude Sonnet 5.5 42f8be0aea Link ADR 0033 and use --baseline in eval-runner
Adds glossary terms and the command to CLAUDE.md; eval-runner reports
the baseline Markdown per set instead of building a worktree.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-04 23:16:48 +01:00
torbenandClaude Sonnet 5.5 897c2d9e06 Add ADR 0033 for the eval baseline arm
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>
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
torben c782a9b039 Merge pull request 'Bewerter gegen Referenz' (#48) from 24-reference-grader into main
Reviewed-on: #48
2026-12-04 22:10:45 +00: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 a124734966 Link ADR 0032 from ADR 0002 and add glossary terms
Marks the reference grader as decided; adds precision, reference and recall.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-04 23:02:45 +01:00
torbenandClaude Sonnet 5.5 8b12bba890 Add ADR 0032 for the reference grader
Documents form, equality, duplicates, empty lists, minimums and report of the reference grader (#24).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-04 23:02:45 +01:00
torben 83f661965b Merge pull request 'LLM-Port mit Schritt-Profilen' (#47) from 17-llm-port into main
Reviewed-on: #47
2026-12-04 21:54:43 +00:00
torbenandClaude Opus 5.5 9700ccaa49 Align older ADRs with task-based step profiles
CI / checks (pull_request) Successful in 1m5s
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>
2026-12-04 22:29:17 +01:00
torbenandClaude Sonnet 5.5 c24b327467 Update glossary for step profile, deadline and live test
CI / checks (pull_request) Successful in 1m3s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-04 22:07:17 +01:00
torbenandClaude Sonnet 5.5 fd609340c9 Add ADR 0031 on the LLM port
Records profiles by task, hash-keyed recordings, errors, deadline,
live test and library choice.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-04 22:07:17 +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 64ad1334ca Add anthropic and httpx2 dependencies
Needed for the Anthropic provider adapter and its deadline transport.

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
torben d4416e4e74 Merge pull request 'Datenbank-Port mit SQLite und Job-Queue' (#44) from 16-sqlite-database-port into main
Reviewed-on: #44
2026-12-04 21:05:25 +00: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 3e001e5ae4 Add Job domain type and JobQueue port
Job lifecycle states, JSON types and the queue protocol with its errors.

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 71d2befb4f Extend ADR 0012 and glossary for the database port
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>
2026-12-04 20:06:04 +01:00
torbenandClaude Sonnet 5.5 fb83fbf562 Add ADR 0030: synchronous core and job queue
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>
2026-12-04 20:05:53 +01:00
torben edaefdb5d9 Merge pull request 'Domänenkern Seite und Quelle' (#46) from 14-page-domain-core into main
Reviewed-on: #46
2026-12-04 17:41:34 +00: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 e0fc4653a9 Link page format ADR from ADR 0014 and 0015, extend glossary
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>
2026-12-04 12:58:10 +01:00
torbenandClaude Sonnet 5.5 7bde0bd1e6 Add ADR for page format and source page fields
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>
2026-12-04 12:58:00 +01:00
torben 8e1a63c1f3 Merge pull request 'ADR 0028: Fakten-Abgleich gegen Gold' (#45) from 23-gold-fact-matching into main
Reviewed-on: #45
2026-12-04 11:56:31 +00:00
torbenandClaude Sonnet 5.5 6375325f6f Link ADR 0028 from ADR 0024 and add glossary terms
CI / checks (pull_request) Successful in 46s
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>
2026-12-04 11:52:14 +01:00
torbenandClaude Sonnet 5.5 325fb68c1b Add ADR 0028: fact matching against gold
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>
2026-12-04 11:52:14 +01:00
torben bb6e5d7b0f Merge pull request 'ADR 0027: Öffentlicher Testkorpus' (#43) from 21-public-test-corpus into main
Reviewed-on: #43
2026-12-04 10:48:11 +00:00
torbenandClaude Sonnet 5.5 6c0d7f2f1e Link ADR 0027 and close the open point in ADR 0024
CI / checks (pull_request) Successful in 43s
Update architecture table, glossary entry and rule 6 in CLAUDE.md
for private eval reports.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-03 23:30:00 +01:00
torbenandClaude Sonnet 5.5 2580b55bfa Add ADR 0027 on the public test corpus
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>
2026-12-03 23:30:00 +01:00
torben 587067381d Merge pull request 'Format-Hook prüft Codeblöcke in Markdown' (#42) from 41-format-hook-markdown into main
Reviewed-on: #42
2026-12-03 21:43:49 +00:00
torben 0763faa71d Merge branch 'main' into 41-format-hook-markdown
CI / checks (pull_request) Successful in 45s
2026-12-03 21:42:37 +00:00
torben 4a52a1abdd Merge pull request 'ADR 0026: Lage der Schritt-Bausteine' (#38) from 12-step-block-location into main
Reviewed-on: #38
2026-12-03 21:42:16 +00:00
torbenandClaude Opus 5.5 0ecd780f59 Format Python code blocks in Markdown via pre-commit
CI / checks (pull_request) Successful in 53s
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>
2026-12-03 21:09:42 +01:00
torbenandClaude Sonnet 5.5 c63d4a1c1f Link ADR 0026 and close the open point in ADR 0011 and 0024
CI / checks (pull_request) Successful in 45s
Add glossary terms producer id and fingerprint; update the architecture table.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-02 23:49:58 +01:00
torbenandClaude Sonnet 5.5 2f50c3925d Add ADR 0026 on the location of step building blocks
Decides location, import rule, layout, templates, version and names.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-02 23:49:58 +01:00
torben b4087cdf6e Merge pull request '/design erläutert Entscheidungen ausführlich' (#37) from 36-design-explain-decisions into main
Reviewed-on: #37
2026-12-02 22:37:12 +00:00