Use PromptKit prepared execution for structured model calls

This commit is contained in:
2026-09-24 01:57:25 +00:00
parent 96d3d03bee
commit c8a78bf024
17 changed files with 560 additions and 1366 deletions

View File

@@ -264,7 +264,15 @@ secret absence and overlay/CLI provenance, including inherited validation select
## Stage 5: Implement the Final PromptKit Structured-Call Adapter
**Status:** Pending. **Depends on:** Stages 3–4.
**Status:** Complete (2026-09-24). Added role-bound prepared execution with
target verification, validated-only decoding, typed safe failures, protected
prepared/final-content snapshots, and logical-call and execution-event hooks.
Removed the old direct HTTP client and role resolver; updated LLM integration
documentation. `go test ./internal/framework/llm` and
`go test ./internal/framework/structuredoutput` passed, including controlled
HTTP repair/retry, target-drift, transport/protocol, and cancellation cases;
`git diff --check` passed. Caller integration remains for Stages 6–8.
**Depends on:** Stages 3–4.
**Owns:** `internal/framework/llm`, the typed failure boundary in
`internal/framework/structuredoutput`, and adapter tests.