Commit Graph
97 Commits
Author SHA1 Message Date
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
torbenandClaude Opus 5.5 fad6dfd2db Explain decisions in detail in /design
CI / checks (pull_request) Successful in 48s
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>
2026-12-02 23:31:44 +01:00
torben 068233eedf Merge pull request 'torben/chemenu#249 in ADRs 0003–0025 zerlegt' (#35) from 11-adr-decomposition into main
Reviewed-on: #35
2026-12-02 22:26:24 +00:00
torbenandClaude Sonnet 5.5 076aa75e3a Add terms from the ADRs to the glossary
CI / checks (pull_request) Successful in 46s
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>
2026-12-02 23:11:02 +01:00
torbenandClaude Sonnet 5.5 8489ce7b49 Point CLAUDE.md and README.md at the architecture overview
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>
2026-12-02 23:11:02 +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 5ca64b177e Add ADR 0025: processor plugins
Decompose torben/chemenu#249 § Geparkt und offen (c) into its own decision record.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-02 23:11:02 +01:00
torbenandClaude Sonnet 5.5 ddff438640 Add ADR 0024: step building blocks and evals
Decompose torben/chemenu#249 § Geparkt und offen (b) into its own decision record.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-02 23:11:02 +01:00
torbenandClaude Sonnet 5.5 2bf45b75b2 Add ADR 0023: migration by big bang
Decompose torben/chemenu#249 § Geparkt und offen (a) into its own decision record.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-02 23:11:02 +01:00
torbenandClaude Sonnet 5.5 ced34485a4 Add ADR 0022: budgets and kill switch
Decompose torben/chemenu#249 § Gegenprüfung 6 into its own decision record.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-02 23:11:02 +01:00
torbenandClaude Sonnet 5.5 c7da84ef06 Add ADR 0021: chat with the knowledge base
Decompose torben/chemenu#249 § Gegenprüfung 5 into its own decision record.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-02 23:11:02 +01:00
torbenandClaude Sonnet 5.5 be0a99fb72 Add ADR 0020: input channel for humans
Decompose torben/chemenu#249 § Gegenprüfung 4 into its own decision record.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-02 23:11:02 +01:00
torbenandClaude Sonnet 5.5 f995135587 Add ADR 0019: security boundaries
Egress, sandbox worker, rendering, OIDC, secrets and Python rules.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-02 23:11:02 +01:00
torbenandClaude Sonnet 5.5 382c97e90e Add ADR 0018: backend and clients
Python with ports and adapters, explicit context, API-first, client ladder.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-02 23:11:02 +01:00