kcode-k1-chat-thread-session-actor 0.2.0

Concrete asynchronous session actor for one durable K1 chat thread
Documentation
1
2
3
4
5
6
7
# K1 chat-thread session actor 0.2.0

`kcode-k1-chat-thread-session-actor` owns the concrete asynchronous actor loop for one durable K1 chat thread. It composes `kcode-k1-chat-thread-actor-channel` 0.4.0 and `kcode-k1-chat-thread-durable-state` 0.4.0, spawns exactly one actor, and returns the established channel `Handle`.

The actor owns FIFO commands, Codex Turn and Steer effects, exact model-input observations, stage acknowledgements, waiters, restart generations, WebSearch tasks and cancellation epochs, and teardown. A provider stage is durably accepted before dispatch; its initial prepared steer commits before the stage acknowledgement, independently running WebSearch tasks may outlive the provider turn, and terminal search results schedule a steer in the active turn or a later turn. Provider failure fences and aborts searches, while successful completion retains live searches.

Durable state exclusively owns canonical Agent Response, Agent Message, Tool Call, Tool Message and Tool Result transitions; persistence; fresh-thread replay; same-thread delta input; authorization; synchronous action dispatch; restart; and success-only prepared frontiers. This package owns no persistence format, authorization policy, native tool implementation, HTTP, migration, daemon composition, deployment, or public facade.