A running workflow previously could only be abandoned by interrupting the whole run. A new subagent.stop command flows through the durable command path: the decider validates the subagent is active and carries a native task ref, records the user's intent as a Stop requested activity on the subagent row, and queues a process-bound subagent.stop effect. The effect worker resolves the session and calls the adapter's task stop — for Claude, the SDK runtime's undocumented stopTask, read behind the same single-cast convention as workflow_progress. The provider's own task_notification remains the only terminalizer; the command records intent, it does not fake a terminal state. A released session is treated as already stopped (nothing can still be running under it), while a runtime without task-level stop fails the effect loudly. Stop effects are process-bound, so recovery cancels them after process loss like the other session-scoped effects. The web run card shows Stop only while the coordinator is active, wired through thread environment commands as thread:stop-subagent. Co-Authored-By: Claude Fable 5 <[email protected]>
Client Runtime
Shared client behavior for web and mobile. Public APIs are organized by package subpath. The package intentionally has no root export.
Public subpaths
| Subpath | Responsibility |
|---|---|
authorization |
Bearer and DPoP authorization plus token persistence contracts |
connection |
Targets, catalog, supervision, retries, registry, and onboarding |
environment |
Environment identity, descriptors, endpoints, and scoped keys |
errors |
Shared client error inspection |
operations |
Multi-step application workflows |
operations/projects |
Multi-step project creation workflows |
platform |
Platform capability and persistence service contracts |
relay |
Managed relay API and environment discovery |
rpc |
HTTP/RPC clients, protocol, sessions, and subscriptions |
state/<domain> |
Focused shared state, retention, reducers, and Atom constructors |
Dependency direction
Platform applications provide platform services. connection composes those
capabilities with authorization, relay, and rpc to supervise environment
sessions. Independent state modules consume the connection registry and expose
focused state or Atom constructors to application-owned runtimes.
Applications should import the narrowest relevant subpath. There is no broad
state export: use domain paths such as state/shell, state/threads,
state/terminal, or state/vcs. Subpath indices and explicitly exported domain
files are public API boundaries; all other files remain implementation details.