Keep progress writes outside model deadlines

This commit is contained in:
2026-11-17 04:17:24 +00:00
parent 1bc54a405c
commit 9192239bfd
6 changed files with 75 additions and 13 deletions

View File

@@ -34,6 +34,8 @@ An opaque exchange in the structured-output contract keeps provider state outsid
modules and validators. The adapter shares request construction, notifications,
observers, and once-only completion between ordinary and coordinated calls.
Completion attaches terminal counts when available and records one logical finish.
Progress uses the adapter's logical call boundaries. Writes to the diagnostic
stream occur outside PromptKit's operation deadline.
Prepared requests and terminal output travel in the returned response for an
optional interaction artifact. Logical call notifications carry metadata.

View File

@@ -197,6 +197,11 @@ reflects the evidence modes, and the CLI paragraph renders normally.
### R6 — Keep Progress Writes Outside Model Operation Deadlines (P2)
**Complete.** Progress is emitted before and after each timed model call,
including coordinated repair turns. An integration regression delays stderr
beyond the model deadline and verifies the same provider calls and correction.
Live progress, reporting modes, and presentation failure tests also passed.
**Affected plan:** Stages 12 and 19.
**Evidence:** [Pipeline wiring](../../internal/cli/process_pipeline.go#L30)