Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions CONTEXT.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,22 @@ reasons as completed steps, and mapping thrown errors to known terminal
provider errors. The agent **runtime** layer starts streams and the **hosted**
layer finishes them; both consult this module rather than re-deriving the
interpretation, so provider behavior changes land in one file.

## Stream Lifecycle

The single owner of one provider stream attempt, from the first provider read
until completion, tool handoff, cancellation, or failure:
`src/agent/streaming/lifecycle/`. It decodes provider parts through a Provider
Adapter, reduces them into validated **semantic**, **telemetry**, and
**diagnostic** frames, owns monotonic provider-wait deadlines and status
cadence, and settles exactly one typed Stream Outcome per attempt. Telemetry
observes execution but never extends a semantic deadline. One agent run may
contain several provider attempts separated by local tool execution.

## Stream Delivery

The separate agent-loop fan-out boundary that will route lifecycle frames to
live, durable, diagnostic, and usage Adapters (Phase 5, separately designed).
Through Gate 4, hosted durable and AG-UI production projections still consume
compatibility UI chunks, and production runs stay on stream protocol
version 1.
29 changes: 12 additions & 17 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading