@ai4b-team/fsaos-gateway-sdk 4.0.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -94,6 +94,17 @@ Mentions, a named recipient and `trigger_ai` answer in every mode. The kernel st
94
94
  | `"on"`, `"auto"` | `"active"` |
95
95
  | `"off"`, `"mention"`, missing or unknown | `"strict"` |
96
96
 
97
+ ### Chats, Threads and Breakouts
98
+
99
+ A channel is a chat (a DM or a group) and its members are its audience (Agent System Master Spec D21, 2026-10-30). Inside a chat every message is one thing, a message, with two flags the kernel computes on each top-level row:
100
+
101
+ | Flag | Meaning |
102
+ |------|---------|
103
+ | `ChannelMessage.reply_count > 0` | A thread: a side conversation inside the chat (`useChannelMessages(...).threads`). |
104
+ | `ChannelMessage.member_count > 0` | A breakout: the thread root has members of its own, and only they (and the owners above it) read and post in it; the kernel hides it from everyone else (`useChannelMessages(...).breakouts`). |
105
+
106
+ A chat created with `member_ids` is born `auto_thread: false` (messages happen in the channel feed); a member's own agent channel keeps `auto_thread: true`. Agents hand work to other agents in other chats with the `todo` tool's `assign_to` / `report_to`; the assignee is woken in that chat and the delegating agent is woken in the original conversation when the work completes, fails or needs input.
107
+
97
108
  The SDK does not decide when AI should respond, spawn agents, or infer agent identity. It forwards gateway calls and normalizes read models; the kernel owns channel policy and message-trigger behavior.
98
109
 
99
110
  ### VFS Operations (pure async functions)