LLM-Port mit Schritt-Profilen #47

Merged
torben merged 10 commits from 17-llm-port into main 2026-12-04 21:54:44 +00:00
10 Commits
Author SHA1 Message Date
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