fix(api): preserve scoped writes, streaming readiness and audit contracts

This commit is contained in:
huanghuoguoguo
2026-10-29 15:48:15 +08:00
parent 82486225a6
commit 23f4abb65b
17 changed files with 468 additions and 112 deletions
+4 -1
View File
@@ -71,7 +71,10 @@ that execution failed or was rolled back.
Streaming scopes live in isolated producer tasks with bounded queues. Closing
an Agent debug stream cancels its execution. Management-assistant streaming
retains its existing detached-run behavior; use the explicit stop operation to
cancel an assistant run. Consumers should close partially consumed iterators
cancel an assistant run. `assistant.stream` first emits
`{"kind": "started", "data": {"conversation_id": "..."}}` after admission and
before resolving a model. HTTP consumes this frame internally, returns headers
immediately, and keeps its existing business frames and 15-second heartbeats. Consumers should close partially consumed iterators
with `contextlib.aclosing`.
## Execution-context operations