Classify model failures and capture execution counts
This commit is contained in:
@@ -436,6 +436,15 @@ partial validation, and recovery detail without any filesystem/report dependency
|
||||
|
||||
## Stage 2 — Classify Model Failures and Return Execution Facts
|
||||
|
||||
**Completed 2026-09-24.** The PromptKit adapter now classifies parent
|
||||
cancellation, setup defects, local deadlines, capacity, transport, provider
|
||||
envelopes/statuses, exhausted invalid output, and domain decode overflow with
|
||||
typed safe failures. It returns terminal attempt/retry/repair/status counts on
|
||||
successful and failed calls, while preserving observation hooks and typed causes.
|
||||
`go test ./internal/framework/llm -count=1`, its race suite, and
|
||||
`git diff --check` passed. Whole-repository compilation remains deferred while
|
||||
the warning consumers are reconnected in later stages.
|
||||
|
||||
**Work:** Implement C in `llm/adapter.go` using the pinned library's public types.
|
||||
Capture terminal counts locally for each call and return them even on failure;
|
||||
forward existing observation hooks without deriving recovery classifications in
|
||||
|
||||
Reference in New Issue
Block a user