@robota-sdk/agent-framework 3.0.0-beta.82 → 3.0.0-beta.84

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/CHANGELOG.md ADDED
@@ -0,0 +1,2309 @@
1
+ # @robota-sdk/agent-framework
2
+
3
+ ## 3.0.0-beta.84
4
+
5
+ ### Minor Changes
6
+
7
+ - e8d70ac: A first run finds a provider, instead of a dead end. `robota --serve` (and the daemon it starts) no
8
+ longer refuses when no provider is configured: it starts in setup mode, and the GUI's conversation area
9
+ shows a "Connect a model provider to start" panel with a "Set up provider" button in place of the
10
+ composer. Answering it configures and swaps in the first provider live, with no restart. A startup
11
+ failure now says why — `robota daemon start --json` and the desktop app's fatal screen report the
12
+ child's own reason instead of a generic "readiness channel closed", and the fatal screen gets a Try
13
+ again button. `trust status --json` and the desktop trust dialog list only sources whose state trust
14
+ would actually change, instead of naming one this platform could not determine; the dialog shows one
15
+ sentence and a collapsed Details section. `robota --serve --open` in an untrusted folder now asks at
16
+ the terminal (trust it, start Restricted, or quit) when someone is there to ask, instead of refusing
17
+ outright.
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [c7f213c]
22
+ - Updated dependencies [9f46375]
23
+ - Updated dependencies [9f46375]
24
+ - Updated dependencies [e8d70ac]
25
+ - Updated dependencies [9c6a8db]
26
+ - Updated dependencies [9c6a8db]
27
+ - Updated dependencies [9c6a8db]
28
+ - Updated dependencies [9c6a8db]
29
+ - Updated dependencies [9c6a8db]
30
+ - @robota-sdk/agent-tool-defaults@3.0.0-beta.84
31
+ - @robota-sdk/agent-core@3.0.0-beta.84
32
+ - @robota-sdk/agent-session@3.0.0-beta.84
33
+ - @robota-sdk/agent-interface-session@3.0.0-beta.84
34
+ - @robota-sdk/agent-interface-analytics@3.0.0-beta.84
35
+ - @robota-sdk/agent-tools@3.0.0-beta.84
36
+ - @robota-sdk/agent-interface-execution@3.0.0-beta.84
37
+ - @robota-sdk/agent-interface-command@3.0.0-beta.84
38
+ - @robota-sdk/agent-executor@3.0.0-beta.84
39
+ - @robota-sdk/agent-interface-session-mobility@3.0.0-beta.84
40
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.84
41
+ - @robota-sdk/agent-file-authority@3.0.0-beta.84
42
+
43
+ ## 3.0.0-beta.83
44
+
45
+ ### Major Changes
46
+
47
+ - 6ae3f28: A served runtime can list its workspace's sessions, start a new one and switch to another without the
48
+ process or any client connection restarting. The GUI shows them in a sessions sidebar.
49
+
50
+ - `agent-interface-session` is **`major`** for two reasons:
51
+ - It adds `ISessionListing`, `ISessionDirectory` and `ISessionSwitchedEvent`.
52
+ - `IInteractiveSessionEvents` gains a required `session_switched` event. An exhaustive map over the
53
+ event names stops compiling until it classifies the new event.
54
+ - `agent-transport` is **`major`** for the same kind of reason:
55
+ - It adds the wire messages `list-sessions` → `sessions`/`sessions_error`, `new-session`,
56
+ `switch-session`, and the broadcast `session_switched`.
57
+ - It adds a `sessionDirectory` handler option. A refusal to switch comes back as a
58
+ `protocol_error` carrying the reason.
59
+ - An exhaustive map over message types must add the new variants.
60
+ - `agent-transport-ws` passes a configured `sessionDirectory` to every connection.
61
+ - `agent-framework` is **`major` because `IRuntimeHostHandle.session` is now a `SessionSlot`**, not the
62
+ `InteractiveSession`, and `bindTransports` receives the slot.
63
+ - The slot is an `IInteractiveSession` that forwards to the current session. Members outside that
64
+ interface are read through `host.session.current`, which changes on a switch.
65
+ - Adds `InteractiveSession.whenInitialized()`.
66
+ - Exports `listUnreadableSessions`.
67
+ - `agent-ui-web` is **`major`**:
68
+ - `IWsSessionState` gains session listing state and actions.
69
+ - It adds a `SessionSidebar`.
70
+ - `/resume` opens the sidebar.
71
+ - `agent-cli`: `robota --serve` provides the session directory, and refuses a switch that would lose
72
+ work in progress. External-event grants belong to the run: a switch reopens them on the new session,
73
+ as the TUI already does.
74
+ - External-event grant history (spent tokens, rate windows, revocations) belongs to the run. The new
75
+ option `externalEventGrantHistory` (from `createExternalEventGrantHistory()`) is shared by every
76
+ session that a served runtime or the TUI builds. A session switch therefore replays no spent token
77
+ and resets no rate limit. The TUI previously had this gap when it switched sessions.
78
+
79
+ ### Minor Changes
80
+
81
+ - 724fabb: External-event grants are given at start, carried exactly to a background session, listed without their
82
+ principal, and revoked by the owner.
83
+
84
+ - `agent-framework` (breaking) — `openExternalEventSource` and `ExternalEventIngress.open` take only
85
+ `{ grant, audit? }`: the session builds each grant's verifier from `grant.verifier` with the
86
+ `externalEventVerifierFactory` its host passed when the session was built (without one, no grant opens), and an
87
+ open that supplies a verifier or a factory is refused. `IExternalEventSource.revoke()` stops the grant's queued and running turns,
88
+ refuses its later events as `grant-revoked`, and keeps the label from being opened again. A submission the
89
+ session refuses is `shutting-down` only while it shuts down, and `session-unavailable` otherwise. New command
90
+ host adapter `externalEvents` (`ICommandExternalEventsAdapter`).
91
+ - `agent-ui-terminal` — forwards `externalEventVerifierFactory` from the render options to the session.
92
+ - `agent-interface-transport` — `TExternalEventRefusal` gains `session-unavailable`.
93
+ - `agent-command` — `/events` lists the session's grants (label, principal kind, state, counts) and
94
+ `/events revoke <grant-id>` withdraws one. User-only.
95
+ - `agent-cli` — a grant file (`grantId`, `issuer`, `resource` ending in `/events/<grantId>`, exactly one of
96
+ `subject` or `client`, `scopes`, optional `algorithms` and `rate`) is validated before anything starts, with a
97
+ reason that names the grant and no configured value. `robota --external-event-grant <file>` (TUI) and
98
+ `robota session start --background --external-event-grant <file>` open every grant or fail the start; a
99
+ background session receives its grants through a private file, opens them before it reports ready, and the
100
+ launcher refuses a readiness that names other grants. `robota session events list <id> [--json]` and
101
+ `robota session events revoke <id> <grant-id>` work over the generation-bound control socket, and
102
+ `robota session list --format json` shows each grant's counts. The retired `--external-event-allow` now points
103
+ at `--external-event-grant`.
104
+
105
+ - bfe8ed5: An external event is admitted only by a bearer access token the session verifies itself, and its sender is the
106
+ grant that token matched, never a name in the event.
107
+
108
+ - `agent-interface-transport` — `IExternalEventGrant` (a label, an access-token verifier configuration that pins
109
+ exactly one subject or client, the `message` kind, optional turn-rate windows), `IExternalEventDelivery` (the
110
+ token and the event as a carrier received them), the closed `TExternalEventRefusal` set, `TExternalEventAdmission`
111
+ and the content-free `TExternalEventAuditRecord`.
112
+ - `agent-framework` (breaking) — `ExternalEventIngress.open` and `InteractiveSession.openExternalEventSource` take
113
+ `{ grant, verifier, audit? }` instead of `{ id, allowedSenders, authenticate }`, and `receive` takes
114
+ `{ token, event }`. A delivery is refused with a stable word when the token is missing or the verifier refuses
115
+ it, when the token was already spent on an event (`jti`), when the event is malformed or oversize, or when the
116
+ grant is over its rate; nothing refused reaches the queue. An admitted event is attributed
117
+ `external:<grant>:<conversation>`, a payload display name appears in the envelope only as `claimed-name`, and the
118
+ receipt (`TExternalEventReceipt`) answers at acceptance with the turn id. Every refusal and settlement is
119
+ reported to the `audit` sink without content, conversation, name or token. `IAuthenticatedExternalEvent` and
120
+ `IExternalEventReceipt` are removed.
121
+ - `agent-cli` (breaking) — `--external-event-allow` is refused with the reason: a sender name relayed by an MCP
122
+ server does not prove who sent an event.
123
+
124
+ - 4f49d14: The device mesh can be turned on, and `/peers`, `/handoff` and `/devices` reach the user's other devices.
125
+
126
+ - New user setting `transports.mesh.enabled` (default `false`). When it is `true`, an interactive
127
+ session opens the device mesh at startup and closes it on exit. Only the user settings count; a
128
+ project's settings cannot turn it on. Print and serve runs never open it, and a device without an
129
+ identity is told to run `/devices init`. Only one session of a device opens it at a time; another
130
+ session on the same device says so in `/devices` and links nothing.
131
+ - By default a linked device may send messages, files and sessions. Each file and each session still
132
+ waits for the operator's yes on this machine's terminal; with no terminal the answer is no.
133
+ Delegating, observing and driving stay off unless `transports.mesh.options.capabilities` lists
134
+ them.
135
+ - A message from a linked device arrives like one from a session on this host: a peer turn with no
136
+ authority, attributed to the device the handshake proved, under the same rate limit and
137
+ conversation limits.
138
+ - `/peers` lists linked devices beside the sessions on this host; `/peers send` and
139
+ `/peers send-file` take a device id. `/handoff` lists linked devices and pushes the session to one.
140
+ Files arrive in the usual place aside, and sessions are saved without starting.
141
+ - `/devices` shows whether the mesh is on, how this device finds the others, and which are linked.
142
+ - The mesh uses the relay at `transports.webrtc.options.relayUrl` when one is set. Without one it
143
+ finds devices on the local network and over the public ways in `transports.mesh.options`.
144
+ - `/peers`, `/handoff` and `/devices` stay user-only. Their descriptions tell the model they cover
145
+ linked devices.
146
+ - `agent-framework`: the `/peers` port can list linked devices (`listDevices`, `ILinkedDeviceSummary`).
147
+ - `agent-command`: the `/devices` port can report the mesh (`meshStatus`, `IDevicesMeshStatus`).
148
+
149
+ - 7b72344: Every client can offer the session's commands and skills and show its status. The GUI uses them as a
150
+ desktop-style composer.
151
+
152
+ - `agent-interface-session` is **`major` because `IInteractiveSession` gains required members**:
153
+ `ISessionCommands.listSkills()` and a `statusRead` capability, `getStatusSnapshot()`. The snapshot
154
+ holds session, model, permission mode, effort, context and goal. An external implementation stops
155
+ compiling until it adds both.
156
+ - `agent-transport` is **`major` for the same reason on `IProtocolSession`**. It also gains the wire
157
+ messages `get-commands` → `commands` and `get-status` → `session_status`. Both are reads that the
158
+ observe role may send.
159
+ - `agent-interface-command` gains `ICommandSkillListEntry`, moved from `agent-framework`, which
160
+ re-exports it unchanged.
161
+ - `agent-ui-web` is **`major` because its state changes shape**:
162
+ - A command's outcome and a finished turn's tool calls are now conversation entries: `messages` is
163
+ `TConversationEntry[]`.
164
+ - The `uiIntentNotices` list, `dismissUiIntentNotice`, `applyUiIntentEvent`,
165
+ `removeUiIntentNotice` and `IUiIntentNotice` are removed. An intent now answers with an info
166
+ line in the conversation.
167
+ - Session notices keep only `session-error` and `protocol-error`.
168
+ - The state gains `commandCatalog` and `sessionStatus`.
169
+ - `agent-command` registers `/theme` and `/keybindings` even without a terminal. They then answer
170
+ that they belong to the robota terminal, instead of being unknown.
171
+ - `agent-framework`:
172
+ - `InteractiveSession.getStatusSnapshot()`.
173
+ - The main-thread row previews the last chat message instead of the last record's type.
174
+ - `agent-cli` serves the full GUI web app, renamed from `agent-cli-web` to `agent-gui-web`, on
175
+ `robota --serve --open`.
176
+
177
+ - 9721162: A trusted workspace saves its sessions on macOS and other hosts without Linux's project-write guarantee.
178
+
179
+ - **`agent-framework`:** `supportsWorkspaceProjectMutation(platform?)` tells a host in advance whether project writes can be proven to stay under the trusted root. The project writer uses the same answer, so the two cannot disagree.
180
+ - **`agent-cli`:**
181
+ - Where project writes cannot be proven safe, a trusted workspace keeps its sessions in the user session store (`~/.robota/sessions`). They are listed for that workspace by their working directory, so `/resume`, the sessions sidebar, `--continue` and `robota session list` find them. Nothing is written under the project root.
182
+ - Before this, every save in a trusted git workspace on macOS was refused, and those surfaces listed nothing.
183
+ - Linux keeps trusted sessions in the project, as before.
184
+ - `robota session list`, `robota usage` and `robota session analyze` report such sessions as user sessions, never as project sessions.
185
+
186
+ - 57f57f5: A daemon keeps several sessions live, and each client is bound to its own: one client's switch moves
187
+ only that client.
188
+
189
+ - `agent-interface-session`: `ISessionBinder`/`ISessionBinding`, the session-change refusal codes with
190
+ `isSessionChangeRefusal`, and listing rows that may say `live` and `clients`.
191
+ - `agent-framework`: `SessionPool` and `SessionChangeRefusal`.
192
+ - `agent-transport` (**major**): a new server frame, `session_change_failed`, which an exhaustive
193
+ consumer must handle. A refused `new-session` or `switch-session` now answers with it, carrying a
194
+ `code`, instead of `protocol_error`; both requests take an optional `requestId` that it echoes.
195
+ - `agent-transport-ws`: the `sessionBinder` option binds each connection to its own session and
196
+ releases the binding when the connection closes.
197
+ - `agent-cli`: `robota --serve` and the daemon keep up to four sessions live. Each WebSocket client and
198
+ attached terminal is bound to its own session; leaving a busy session is no longer refused, and only
199
+ the last driver of a session with a pending prompt is kept from leaving it. Grants and the supervised
200
+ name stay on the runtime's first session, and its reported activity covers every live session.
201
+ - `agent-ui-web`: a refused new or switch shows the host's reason as a notice (an older host's
202
+ `protocol_error` still does); the session sidebar marks live sessions and counts the other clients
203
+ on each; after a reconnect to a host that keeps sessions live, the GUI returns to the session it was on.
204
+ - `agent-ui-terminal`: an attached terminal shows why a switch was refused, and the picker's switch
205
+ stays pending until the host answers; the session picker marks live sessions and their clients.
206
+
207
+ - ba822c1: An attached client reads a workspace entry's detail, stops a waiting self-paced loop, completes
208
+ subcommands, and sees status changes another client made.
209
+
210
+ - `agent-interface-session` (major): `IInteractiveSession` gains the required roles
211
+ `ISessionExecutionDetail` and `ISessionSelfPacedLoopControl` (`TWaitingLoopStopOutcome`), and the
212
+ exhaustively mapped event map gains `status_changed`.
213
+ - `agent-transport` (major): `IProtocolSession` gains both roles; the wire unions gain
214
+ `read-execution-detail`, `stop-waiting-loop`, `execution_detail`, `execution_detail_error` and
215
+ `waiting_loop_stop`; `status_changed` is pushed as `session_status`; `isObserverMessageType` is
216
+ exported from the root and `./client`.
217
+ - `agent-interface-command` (minor): `ICommandListEntry` gains optional `argumentHint` and
218
+ `subcommands` (`ICommandSubcommandEntry`).
219
+ - `agent-cli` (minor):
220
+ - `robota session attach` and an attach from `robota session view` open the full terminal UI,
221
+ the one `robota --attach` opens, in drive mode or, with `--observe`, read-only. The reduced
222
+ attached view is gone.
223
+ - A served runtime names each of its sessions after the session's first real turn.
224
+ - `agent-framework` (minor):
225
+ - `InteractiveSession` gains `stopWaitingSelfPacedLoop(reason?)`: it stops the one waiting loop,
226
+ or stops none and names `/loop stop` when several wait. `SessionSlot` forwards it and
227
+ `readExecutionWorkspaceDetail`.
228
+ - The session emits `status_changed` when its mode, model, effort, goal or name changes, after a
229
+ command, a turn, a rename or a goal or plan transition.
230
+ - A new option `autoName: true` makes the session name itself once, after its first turn, with its
231
+ current provider; it keeps a name it already has and lets a rename made meanwhile win. Off by
232
+ default.
233
+ - The command catalog carries each command's `argumentHint` and `subcommands`.
234
+ - `agent-ui-terminal` (major):
235
+ - The full terminal UI attached to a host's session reads a workspace entry's detail, sends input
236
+ to a background task, stops a waiting self-paced loop on Esc, and completes subcommands.
237
+ - `renderAttachedApp` takes `mode: 'drive' | 'observe'` (default `'drive'`) and `announce`. In
238
+ observe mode the terminal sends only what an observer may send, refuses prompts, host commands,
239
+ abort and loop stop with a read-only notice, still runs `/exit` and its own commands, and its
240
+ status bar says it is observing. `ITuiChannelSnapshot` gains `readOnly`.
241
+ - The in-process terminal no longer names sessions; it builds its session with `autoName: true`.
242
+ `ITuiInteractionChannelOptions.onAutoNamed` is removed.
243
+
244
+ - 9721162: The command catalog says who runs a command, and which surfaces can run it.
245
+
246
+ - **`agent-interface-command` (major).**
247
+ - Adds `TCommandRunner` (`'runtime' | 'client'`) and `TCommandSurface` (`'terminal' | 'gui'`).
248
+ - `ICommand` gains optional `runner` and `surfaces`.
249
+ - `ICommandListEntry` gains optional `surfaces` and a **required** `runner`. An implementation of `listCommands()`, or any code that constructs an `ICommandListEntry`, must now emit `runner`; a command that declares none gets `'runtime'`.
250
+ - **`agent-framework` (minor).**
251
+ - `ISystemCommand` gains optional `runner` and `surfaces`, and the command listing carries both.
252
+ - An undeclared runner resolves to `'runtime'`.
253
+ - `SessionTerminalHandoffGate` is exported for a terminal client that hands its own terminal to a command.
254
+ - **`agent-command` (minor).**
255
+ - `/shell`, `/editor`, `/theme` and `/keybindings` declare `runner: 'client'` and `surfaces: ['terminal']`.
256
+ - `createTerminalClientCommands()` builds the same four commands, from the same execute functions, for a terminal client to run itself. The set follows the preset's module selection.
257
+ - **`agent-ui-web` (minor).** The `/` menu marks a command that runs in the terminal with a "terminal" badge.
258
+
259
+ - 6e6b06b: A wire client can now render the whole session the way the in-process terminal UI does: the full
260
+ history, the context window as it changes, when the history changes, and where each turn came from.
261
+
262
+ - `agent-interface-session` is **`major`**: `ISessionConversationRead` gains a required
263
+ `getFullHistory()`. Any implementation of it, or of `IInteractiveSession`, must add it.
264
+ - `agent-transport` is **`major`**:
265
+ - It adds `get-history { fromIndex? }` → `history { startIndex, total, entries }`. The history
266
+ crosses one bounded page at a time (at most 256 KiB of entries; a single larger entry is sent
267
+ alone), from `fromIndex` (default 0), so no reply grows with the session. The client asks for
268
+ the next page after the previous one arrived. Entries are `IWireHistoryEntry`: a history entry
269
+ with an ISO 8601 `timestamp`. An observer may send it.
270
+ - `complete` and `interrupted` carry the turn's result without the session's history
271
+ (`TWireExecutionResult`); a client reads the history with `get-history`.
272
+ - It adds `get-prompts`: the host sends the permission and ask prompts still open as the
273
+ `permission_request` / `ask_request` frames that asked them, for a client that attached later.
274
+ An observer may not send it.
275
+ - `pending` gains an optional `pendingCount`: a host sends it when it knows how many prompts are
276
+ queued, and a client that gets none counts the prompt it shows. The host sends `pending` in
277
+ reply to a `submit` once it has taken the prompt, so a prompt queued behind a running turn shows
278
+ as queued.
279
+ - `command` takes an optional `requestId`, which the host echoes on the command's
280
+ `command_result` or `protocol_error`.
281
+ - The session's `context_update` is pushed as the `context` frame that `get-context` answers with.
282
+ - `compact`, `skill_activation` and `memory_event` push the new `history_changed`; the client
283
+ reads the history again.
284
+ - `turn_source` is pushed as the new `turn_source` frame.
285
+ - An exhaustive map over `TClientMessage` or `TServerMessage` types must add the new variants,
286
+ and `IProtocolSession` now requires `getFullHistory()`.
287
+ - `agent-transport-http` is **`major`** only because `IHttpTransportSession` includes the conversation
288
+ read role, so a session handed to it must now provide `getFullHistory()`.
289
+ - `agent-framework`: `SessionSlot` forwards `getFullHistory()` to the current session.
290
+ - `agent-ui-web` receives the new frames and does not render them.
291
+
292
+ - caaab20: `/rewind` works again. Every session the CLI builds for a trusted workspace captures edit
293
+ checkpoints; before, none did, and `/rewind` failed everywhere with "Edit checkpoints require
294
+ project authority."
295
+
296
+ - `agent-cli` (patch): a trusted workspace composes an edit checkpoint store for the terminal UI, a
297
+ print run, a served runtime and each session a daemon keeps live. Every session gets its own
298
+ store, pooled or switched to in the terminal UI, since two can run turns at the same time. On a host that cannot prove a project write
299
+ stays inside the project (every platform but Linux), none is composed: a checkpoint could be
300
+ neither saved nor restored there.
301
+ - `agent-command` (patch): where a session has no checkpoints, `/rewind` says why: a restricted
302
+ workspace is told to run `robota trust --yes` and restart robota, and a host that cannot write
303
+ the project safely says so. `/rewind list` reports this as a failed command instead of throwing.
304
+ - `agent-framework` (minor): a checkpoint operation on a session without a store throws
305
+ `EditCheckpointsUnavailableError`, whose `reason` is `host-cannot-write-project`,
306
+ `restricted-workspace` or `no-checkpoint-store`. It is a `WorkspaceAuthorityRequiredError`, as
307
+ before, named `EditCheckpointsUnavailableError`. `HeadlessInteractionChannel` takes an
308
+ `editCheckpointStore` option.
309
+ - `agent-ui-terminal` (minor): `renderApp` takes `createEditCheckpointStore` in place of
310
+ `editCheckpointStore`, and builds each session its own store, since a session switch can build the
311
+ next session before the old one's turn ends. `TuiInteractionChannel` keeps `editCheckpointStore`:
312
+ a channel runs one session.
313
+
314
+ - f01868f: `sandbox.autoAllowBashIfSandboxed` takes effect. The CLI confined shell commands in the OS sandbox,
315
+ but no session learned about the sandbox, so a confined command still asked for approval in the
316
+ terminal UI, a served runtime and MCP serve, and a print run with no one to approve it refused it.
317
+
318
+ - `agent-cli` (patch): a served session, and each session a daemon keeps live, receives the sandbox
319
+ the shell tools run under.
320
+ - `agent-framework` (minor): `HeadlessInteractionChannel` takes a `sandboxClient` option and hands it
321
+ to the session.
322
+ - `agent-ui-terminal` (minor): `renderApp` and `TuiInteractionChannel` take a `sandboxClient` option
323
+ and hand it to each session they build.
324
+
325
+ - e8779c9: A subagent consults the sandbox its shell tools run under, as its parent does. With
326
+ `autoAllowBashIfSandboxed` on, a confined command the subagent's gate leaves to the mode now runs
327
+ without a prompt. Before, a `context: fork` skill asked for approval, and a print run refused it.
328
+ An Agent-tool subagent in `auto` mode sent a command allowed by a broad rule like `Bash(npm *)` to
329
+ its classifier instead. A background policy's ceiling is still checked first: nothing outside it
330
+ runs.
331
+
332
+ - `agent-framework` (minor): `createSubagentSession` takes a `commandSandbox` option. The fork and the
333
+ in-process runner derive it from the parent's sandbox, the instance their inherited tools run
334
+ under. `sandboxApprovalFor` is exported.
335
+ - `agent-subagent-runner` (minor): `ISubagentWorkerComposition` takes an optional `createSandbox`. The
336
+ worker builds that sandbox once and hands the same instance to `createTools` and to the session.
337
+ - `agent-cli` (patch): robota's worker composition builds the OS sandbox through `createSandbox`, so
338
+ a child-process subagent approves what its parent approves.
339
+
340
+ ### Patch Changes
341
+
342
+ - 3c81769: A supervised session accepts attach connections on its control socket.
343
+
344
+ - A terminal of the same user sends `{"command":"attach","id","generation","mode":"drive"|"observe","protocol":1}`.
345
+ The session compares the generation with its own. It refuses another generation, an unknown mode or
346
+ protocol, or a fifth concurrent attach. Otherwise it answers `{"status":"attached","driverId":"attach:<n>"}`
347
+ and carries the ordinary session protocol as newline-delimited JSON on the same connection.
348
+ - The driver id is assigned by the session and a client-sent one is ignored. Turns submitted from an
349
+ attached terminal are attributed to it and counted under the new `attach` usage surface.
350
+ - `drive` sends prompts and answers the session's questions under the usual co-drive rules. `observe`
351
+ is read-only and never counts as a surface that can answer, so an unattended session still denies
352
+ its prompts at once.
353
+ - Detaching or crashing ends only that connection: a turn in progress keeps running, a prompt no other
354
+ surface can answer is denied, and the session returns to its unattached posture. A reader that falls
355
+ 1 MiB behind is disconnected, and an oversize frame closes only its own connection. Stopping the
356
+ session ends attached connections with it.
357
+ - Commands from an attached terminal carry the remote origin, so pairing, revoking and reading the
358
+ pairing link stay refused. An attached terminal is never an operator approver; supervised sessions
359
+ keep refusing mesh connections that need one.
360
+ - A client may send its first frames in the same write as the handshake; only the handshake line
361
+ itself is held to the control endpoint's line limit.
362
+ - `agent-framework`: the surface a turn was submitted on now reaches its usage observation. It was
363
+ dropped before, so remote-control turns were counted as `unknown`.
364
+ - The terminal client (`robota session attach`) and the view keys come separately.
365
+
366
+ - 997f2fb: A revoked or closed external-event grant checks the token before it answers, so only a caller holding a valid
367
+ token for that grant learns it was revoked; anyone else gets exactly the refusal a live grant gives. The TUI keeps
368
+ revoked grants open-and-revoked on each session it binds so their tokens are still checked. The per-grant counters
369
+ now also count the refusals the HTTP endpoint decides itself (a missing token, an oversize body).
370
+ - e689c8e: Follow-ups to connection approval and `/handoff`.
371
+
372
+ - `agent-transport-webrtc-web` — the browser remote client says `Waiting for the host to approve this connection…`
373
+ (`awaiting-approval`) after pairing, and `Connected` only once the host's session answers. A host that closes the
374
+ channel instead is shown as `refused` and is not retried, since a retry would only ask the operator again; a
375
+ first connection lost before the host answered is `failed`. Reconnect attempts count until the host admits a
376
+ connection, so a link that keeps dropping while approval is pending gives up instead of asking again and again.
377
+ - `agent-core`, `agent-session`, `agent-framework` — a turn that did not come from the operator stores its
378
+ `turnSource` (`peer`, `external`, `agent-wakeup`) beside `driverId` on the user message and in the display
379
+ history (`IRunOptions.turnSource`), so a session handed off keeps where each turn came from.
380
+ - `agent-cli` — a `/handoff` resent after a lost confirmation reports what stays behind as it is now, not as it was
381
+ at the first attempt, and after refusing to resend a session that changed, the hand-off status shows that refusal
382
+ instead of the earlier lost confirmation.
383
+
384
+ - 4241fc5: Device mesh follow-ups.
385
+
386
+ - A device with no identity is pointed to `/devices add` on one of the user's devices and `/devices join`
387
+ here, as well as to `/devices init`. The message says that `init` is for the first device only,
388
+ because it creates a separate identity that can never link to the user's other devices. The `/devices`
389
+ description and the `init` subcommand say the same.
390
+ - An identity created mid-session (`/devices init`, or a successful `/devices join`) opens the mesh
391
+ without a restart when `transports.mesh.enabled` is on.
392
+ - If a session stalls for longer than the mesh lock's stale window (for example while the machine
393
+ sleeps), another session can take the mesh over. The stalled session now notices this on its next
394
+ lock refresh, closes its own mesh, and says why. Two sessions no longer run it together.
395
+ `holdExclusiveFileLock` has a new `onLost` option for this.
396
+ - `/peers` and `/handoff` still list and reach linked mesh devices when local same-host peer discovery
397
+ fails. `/peers` says why sessions on this host are not listed. `ICommandLocalPeersAdapter` has a new
398
+ optional `localDiscoveryOff` field for this.
399
+ - `agent-transport-webrtc`: when lists become newer on a node (reissued, revoked, or adopted from a
400
+ peer), the node sends them over every admitted connection instead of waiting for the next handshake.
401
+ Reissues, revocations and enrolments in the CLI take effect this way at once. A receiver adopts a
402
+ pushed list only if it is newer, issued by this user's signing key, and verifies. The push does not
403
+ depend on the peer's capabilities, and it never reaches the application's message handlers.
404
+
405
+ - 7d77ce4: `/goal` turns no longer show the goal loop's instruction to the model as a user message. Each surface
406
+ shows `Goal: <objective> (iteration n of max)`, and the session's auto-generated name comes from that
407
+ line. The goal's `report_goal_status` and the self-paced loop's `report_loop_decision` are
408
+ classified as inspections, so they neither ask for permission every turn in `default` mode nor get
409
+ refused in `plan` mode, where a goal could never finish.
410
+ - 57280bf: Every published package now declares `"engines": { "node": ">=22.12.0" }`. Before, 27 of the 38
411
+ packages declared no floor (`agent-core`, `agent-tools` and every provider among them),
412
+ `agent-session` and `agent-file-authority` declared `>=20.19.0`, and the other nine declared
413
+ `>=22.0.0`, so a consumer on Node 20 saw at most a warning from a transitive dependency.
414
+
415
+ Why 22.12: `agent-cli` and `agent-ui-terminal` need Node 22 through `ink` 7, and the CommonJS entries
416
+ of `agent-tools` and its dependents, `agent-transport`/`node` and its dependents, and
417
+ `agent-ui-terminal` `require()` ESM-only dependencies (`p-limit`, `jose`, `chalk`), which Node 22
418
+ supports unflagged only from 22.12. `engines` is advisory unless the consumer enables `engine-strict`.
419
+
420
+ No code changes: `tsdown` now reads `node22.12.0` as its build target from the field.
421
+
422
+ - 18c0d5c: Every published package now exports `./package.json`, so `require('<package>/package.json')` and
423
+ `import('<package>/package.json', { with: { type: 'json' } })` work instead of failing with
424
+ `ERR_PACKAGE_PATH_NOT_EXPORTED`, and each tarball now ships the package's `CHANGELOG.md`.
425
+ - 5a0ee96: Workspace trust no longer drops on its own. A grant was keyed by the repository config file and the
426
+ volume's device number, so `git push -u`, a branch rename or delete, `git remote add`, or macOS
427
+ renumbering a volume left a trusted workspace untrusted. Where the filesystem records a birth time
428
+ (APFS, ext4, NTFS, …), the key is now the git directory's own inode and birth time, which hold through
429
+ all of these while a repository recreated at the same path still does not inherit the grant; elsewhere
430
+ the stricter config-based key stays. Granting or revoking also retires a trusted record left for the
431
+ same worktree under an earlier key, so it no longer counts as a second trusted repository; it is
432
+ marked revoked rather than deleted, so a repository that returns to that path never regains a
433
+ generation an approval (such as a project MCP server's) was recorded against.
434
+
435
+ Grants made before this change are keyed the old way: run `robota trust --yes` once more in each
436
+ workspace. A workspace revoked before shows as untrusted until it is trusted or revoked again.
437
+
438
+ - Updated dependencies [3c81769]
439
+ - Updated dependencies [724fabb]
440
+ - Updated dependencies [bfe8ed5]
441
+ - Updated dependencies [e689c8e]
442
+ - Updated dependencies [7b72344]
443
+ - Updated dependencies [6ae3f28]
444
+ - Updated dependencies [be0e53c]
445
+ - Updated dependencies [57f57f5]
446
+ - Updated dependencies [ba822c1]
447
+ - Updated dependencies [9721162]
448
+ - Updated dependencies [6e6b06b]
449
+ - Updated dependencies [8bd5fac]
450
+ - Updated dependencies [57280bf]
451
+ - Updated dependencies [5033dd9]
452
+ - Updated dependencies [18c0d5c]
453
+ - Updated dependencies [dbd888d]
454
+ - Updated dependencies [1887e54]
455
+ - Updated dependencies [0368058]
456
+ - @robota-sdk/agent-interface-analytics@3.0.0-beta.83
457
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.83
458
+ - @robota-sdk/agent-core@3.0.0-beta.83
459
+ - @robota-sdk/agent-session@3.0.0-beta.83
460
+ - @robota-sdk/agent-interface-session@3.0.0-beta.83
461
+ - @robota-sdk/agent-interface-command@3.0.0-beta.83
462
+ - @robota-sdk/agent-executor@3.0.0-beta.83
463
+ - @robota-sdk/agent-file-authority@3.0.0-beta.83
464
+ - @robota-sdk/agent-interface-execution@3.0.0-beta.83
465
+ - @robota-sdk/agent-interface-session-mobility@3.0.0-beta.83
466
+ - @robota-sdk/agent-tool-defaults@3.0.0-beta.83
467
+ - @robota-sdk/agent-tools@3.0.0-beta.83
468
+
469
+ ## 3.0.0-beta.82
470
+
471
+ ### Minor Changes
472
+
473
+ - c7f9203: Connected sessions can send each other files.
474
+
475
+ - `/peers send-file <session-id> <path>` sends a copy of any file the operator can read to another
476
+ live session on this host.
477
+ - The model sends a file only through the `peer_send_file` tool. Every call asks the user, showing
478
+ the path, size, hash and destination; no permission mode, rule or remembered consent answers it.
479
+ The tool reaches only files inside the workspace whose path does not look like it holds secrets
480
+ (`.env*`, `~/.ssh`, keys and credentials), and it does not exist in a turn a peer's message started.
481
+ - The receiving operator approves every file. A received file is kept as an inert copy (mode 0600)
482
+ under `~/.robota/peer-files/<sender>/`. It is never run and never placed in the model's context.
483
+ The conversation is told only its name, size and sha256. A name that leaves that directory is
484
+ refused, a symbolic link is never written through, and nothing is overwritten.
485
+ - Transfers travel on a channel of their own (a separate connection on this host, a separate data
486
+ channel between devices), in chunks the receiver paces, up to 32 MiB, and are kept only when the
487
+ whole content matches the offered sha256. A transfer that ends early is discarded; there is no
488
+ resume.
489
+
490
+ **API**
491
+
492
+ - `agent-interface-session-mobility`: the `file` capability, which asks the operator for every
493
+ request; `ConnectionAuthority.authorizeFile`; `IFileOffer` and `IFileFrameChannel`.
494
+ - `agent-transport/node`: `sendFileOverChannel` and `receiveFileOverChannel`, the carrier over any
495
+ `IFileFrameChannel`; `DEFAULT_MAX_FILE_BYTES`.
496
+ - `agent-transport-webrtc`: `IDeviceMeshLink.openFileChannel` and `onFileChannel`.
497
+ - `agent-remote-pairing`: `file` joins `DEVICE_CAPABILITIES`. A device certificate that names it is
498
+ refused as malformed by an earlier version.
499
+ - `agent-core`: `IToolPermissionProfile.notInPeerTurn` withholds a tool from a turn a peer's message
500
+ started.
501
+ - `agent-framework`: `ICommandLocalPeersAdapter.prepareFile`.
502
+
503
+ ### Patch Changes
504
+
505
+ - Updated dependencies [c7f9203]
506
+ - Updated dependencies [004fe7f]
507
+ - @robota-sdk/agent-interface-session-mobility@3.0.0-beta.82
508
+ - @robota-sdk/agent-core@3.0.0-beta.82
509
+ - @robota-sdk/agent-session@3.0.0-beta.82
510
+ - @robota-sdk/agent-executor@3.0.0-beta.82
511
+ - @robota-sdk/agent-interface-command@3.0.0-beta.82
512
+ - @robota-sdk/agent-interface-execution@3.0.0-beta.82
513
+ - @robota-sdk/agent-interface-session@3.0.0-beta.82
514
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.82
515
+ - @robota-sdk/agent-tool-defaults@3.0.0-beta.82
516
+ - @robota-sdk/agent-tools@3.0.0-beta.82
517
+ - @robota-sdk/agent-file-authority@3.0.0-beta.82
518
+ - @robota-sdk/agent-interface-analytics@3.0.0-beta.82
519
+
520
+ ## 3.0.0-beta.81
521
+
522
+ ### Major Changes
523
+
524
+ - 9843fe6: Sign in to a remote MCP server from inside a session, and use its tools without restarting.
525
+
526
+ - **`/mcp login <server> [--no-browser]`** runs the same per-server OAuth sign-in as
527
+ `robota mcp login` (discovery checks, PKCE, `state`, RFC 9207 `iss`, RFC 8707 resource, the
528
+ loopback listener, the lock-guarded store). It opens the browser through the argv opener; with
529
+ `--no-browser`, or when no browser can be opened, it shows the authorization URL and asks for the
530
+ redirect URL in the session's own prompt (masked), held to the same rules as a pasted redirect in
531
+ the terminal. A failed, refused, timed-out or cancelled sign-in changes nothing and is reported by
532
+ a fixed reason only. `/mcp login <server> --client-secret` is refused: a secret is never typed into
533
+ a session, and `robota mcp login <server> --client-secret` is named instead (also after a failed
534
+ token exchange for a pre-registered client). `/mcp` stays user-only (`modelInvocable: false`).
535
+ - **Connected in the same session:** after a sign-in, a server that could not connect for want of
536
+ one goes through the normal admission (approval, fingerprint, trust) and connects, and its tools
537
+ are offered from the next message; a server that was already connected is admitted again and
538
+ reconnects, and its authenticator drops what it held and reads the new credential. A tool left out
539
+ because the session already has its name is reported, and only tools actually added get
540
+ provenance. In browser mode the authorization URL is shown in the session prompt before the
541
+ browser opens, where the user can also choose to paste the redirect instead or cancel.
542
+ - **`runMCPOAuthLogin`** takes `readRedirectWhenBrowserFails`: when `openBrowser` rejects, the
543
+ loopback listener stops and the pasted redirect is read instead, for the same redirect URI. The
544
+ loopback listener's time limit now runs from its first `wait()` — once the authorization page is
545
+ handed over — so time spent at a prompt before the browser opens does not count against it.
546
+ - **`Session.addTools`** (and `ICommandSessionTools.addTools`) offers tools that became usable
547
+ mid-session, through the same permission gate and — via `ISessionOptions.wrapAddedTools`, which
548
+ `createSession` sets — the same edit-checkpoint and reversible-execution wraps as the assembled
549
+ tools. A name the session already has is left out, never replaced. Calls are serialized, and tools
550
+ added while a turn runs are applied when the next turn starts, so a turn's rounds all see one
551
+ tool list and the prompt cache misses once, at that boundary.
552
+ - **Breaking (`agent-framework`, major):** `addTools` is a new required member of the
553
+ `ICommandSessionTools` role port (and so of `ICommandSessionRuntime`). A host that implements the
554
+ port itself must add it; one that passes an `agent-session` `Session` already has it.
555
+ - **`ICommandMCPActivationAdapter.oauthLogin`** (`ICommandMCPOAuthLoginRequest`,
556
+ `ICommandMCPOAuthLoginResult`, `ICommandMCPOAuthRedirectPrompt`) is the port behind it.
557
+ - The sign-in notice and `/mcp status` now suggest `/mcp login <server>` in a session and
558
+ `robota mcp login <server>` in a terminal; the server's name is shown only when it is safe to paste
559
+ into any shell, otherwise `<server>`.
560
+
561
+ ### Minor Changes
562
+
563
+ - 3038eb7: A message from another session is instant messaging: text from an untrusted third party that
564
+ carries no authority. What the model does with it is decided by the session's ordinary permissions —
565
+ rules, permission mode and remembered consent — exactly like the session's own work. The per-origin
566
+ peer policy is gone.
567
+
568
+ **BREAKING**
569
+
570
+ - `agent-core`: `IPermissionEvaluationContext.peerTurn` is now a boolean. It decides only whether a
571
+ `repliesToPeer` tool exists; every other call in a peer turn is decided as in any turn. Removed:
572
+ `isToolAvailableInPeerTurn`, `isSecretPath`, `IPeerTurnAuthority`, `TPeerReach` (now exported by
573
+ `agent-interface-session-mobility`) and `IToolPermissionProfile.workspacePaths`.
574
+ - `agent-tools`: `Read` and `Glob` no longer declare `workspacePaths`.
575
+ - `agent-session`: `ISessionRunOptions.peerReach` is replaced by `peerTurn?: boolean`, and
576
+ `ISessionOptions.allowPeerChanges` is removed. An ask in a peer turn is answered like any other:
577
+ a consent the operator remembered answers it, and an "always allow" given there is remembered.
578
+ - `agent-interface-session`: `IPeerTurnContext` no longer has `reach`; it carries only the reply
579
+ route.
580
+ - `agent-interface-session-mobility`: `peerReachOf` is removed; `TPeerReach` moves here. A delegated
581
+ turn carries no reach.
582
+ - `agent-framework`: the `peers.allowChanges` setting is removed (an existing value is ignored). A
583
+ peer turn is offered the ordinary tools, plus `peer_reply`.
584
+
585
+ **Changes**
586
+
587
+ - `agent-framework`: the per-turn statement tells the model the message is an opinion from an
588
+ untrusted third party, not its owner's instruction, and that it decides for itself whether and how
589
+ to act. A message still expands no `@path` and attaches no context reference, and its requests
590
+ still carry no provider-hosted tool, since no permission step can decide one. The session takes
591
+ at most 6 messages a minute and 30 an hour from each sender for a turn; a message over the limit
592
+ is refused with a reason the sender receives. A prompt answer given in the name of a `peer:` or `external:`
593
+ driver is ignored. External-event turns keep their tool-less baseline.
594
+ - `agent-cli`: incoming peer turns carry only their reply route.
595
+
596
+ - 02b7452: A reply to a peer session is decided by the permission system like any call that sends something
597
+ off this machine, and it goes only to the sender that was admitted.
598
+
599
+ - `agent-core` — a tool declaring `repliesToPeer` is still refused outside a peer turn; inside one it
600
+ is decided by the ordinary steps: deny, ask and allow rules, then the mode. It declares no risk
601
+ class, so it asks by default, is refused in plan mode and proceeds under bypass. `IPeerTurnAuthority`
602
+ no longer has `toolUsed`.
603
+ - `agent-session` — an "always allow" answer to the reply is remembered and answers later replies,
604
+ as for any tool; other asks in a peer turn still need a fresh approval each time.
605
+ - `agent-framework` — `peer_reply` asks the operator by default, showing the full text and the peer
606
+ it goes to; `permissions.allow`/`deny` rules naming `peer_reply` apply. `PeerMessageIngress`
607
+ refuses a message whose origin names a sender other than the admitted one, or whose admission names
608
+ no sender, and submits the turn with the admitted identity.
609
+ - `agent-cli` — a local peer message is taken as coming from the session it names only when that
610
+ session confirms, at its own socket, that it is sending exactly that message to this receiver.
611
+ The reply target, the driver id and the operator's notices come from the confirmed sender. A
612
+ session on an earlier version cannot confirm, so its messages are refused; both sessions need this
613
+ version to message each other.
614
+
615
+ - ec5e477: Add a credential store port (`ICredentialStore` in `agent-core`) and keep the CLI's secrets behind it: the OS keychain through the optional `@napi-rs/keyring` binding (macOS Keychain, Windows Credential Manager, Linux Secret Service), else an owner-only file under `~/.robota/credentials`. The backend is chosen at first use, recorded, and named by `/remote-control status`; a recorded keychain that stops working fails closed instead of degrading to the file.
616
+
617
+ The remote-control host identity key moves into the store. The old `~/.robota/remote-host-identity.json` may have been copied by backups or dotfile sync, so it is not carried over: on the first run after upgrading a new host key is generated, the old file is removed, and the operator is told once that trusted devices must pair again.
618
+
619
+ - 18b52cc: Built-in commands are offered to the model deliberately, each described for the model, and never
620
+ with a trust, credential or permission-widening action.
621
+
622
+ - `agent-interface-command` — `ICommand` gains `modelDescription?` (what the model is told, beside the
623
+ short `/help` line), and `modelInvocable` on a subcommand entry now narrows what the model may run.
624
+ - `agent-framework` — `ISystemCommand` gains `modelDescription?` and `modelRequiresPermission?`.
625
+ Once any subcommand of a model-invocable command declares `modelInvocable`, the model may run only
626
+ the bare command and the subcommands declared `true`; everything else, including an alias or an
627
+ undeclared subcommand, is refused before the command runs. The model-facing descriptor lists only
628
+ that subset. A model-requested monitor's command is now decided by the shell tool's gate (its
629
+ Bash/Shell rules, the mode and the prompt) and a refusal rejects with the new
630
+ `MonitorCommandRefusedError`. The `scriptedSession` test harness accepts `permissions` patterns.
631
+ - `agent-session` — `Session.checkToolPermission(toolName, toolArgs)` decides an action that has a
632
+ tool's effect by another route: that tool's PreToolUse hooks, then the gate's rules, mode,
633
+ remembered consent and prompt — never the command sandbox's auto-approval, since the action does
634
+ not run inside the sandbox.
635
+ - `agent-framework` also: `ICommandMCPActivationAdapter.userActionSurface?` tells `/mcp` whether the
636
+ user can type a session command, so the model's status names the terminal sign-in otherwise.
637
+ - `agent-command` — `/context` (bare and `list`), `/cost` (the report, not `budget`) and `/mcp`
638
+ (`status` only, without a prompt) are now model-invocable; `/memory approve` and `/memory reject`
639
+ are now user-only; the model's `/monitor` is decided by the shell gate rather than by consent to
640
+ the command's name. Every model-invocable command carries a model-facing description. The model's
641
+ `/mcp status` shows only safe names, states and the command to suggest, and a caller that does not
642
+ identify itself gets that view. `/context list` accounts only for turns still in context. New
643
+ `mcpUserActionNotice`, `mcpUserActionCommand` and `mcpUnavailableServersNotice` build the fixed
644
+ notices.
645
+ - `agent-command-workflows` — `/workflows` carries a model-facing description.
646
+ - `agent-mcp` — `createDiscoveredTool` accepts `authFailureNotice`: a call the server refuses for
647
+ authentication returns that host text instead of the generic failure.
648
+ - `agent-cli` — an MCP server that did not start because the user must approve it, trust the
649
+ workspace or sign in is named to the model at the start of an interactive session with the
650
+ command to suggest, and a
651
+ signed-in OAuth server that refuses a call tells the model to suggest `/mcp login <server>` — or, in print and serve runs, the terminal
652
+ `robota mcp login <server>`.
653
+
654
+ A command whose bare form is a complete action declares `runsBare`, so choosing `/cost` or `/mcp`
655
+ from the autocomplete menu still runs it even though they now declare subcommands.
656
+
657
+ ### Patch Changes
658
+
659
+ - 007fd90: Authority per connection: pairing stays with the local operator, and driving needs the operator's yes.
660
+
661
+ - `agent-interface-session-mobility` — `ConnectionAuthority` decides what one connection may do.
662
+ `presence` and `message` are allowed; `delegate` and `handoff` ask the receiving operator for every
663
+ request; `observe` and `drive` ask once per connection. With no `IOperatorApprover` the answer is
664
+ no. `authorizeDelegation` turns an approved task into a peer turn from where admission placed the
665
+ peer, ignoring anything else on the request, so the receiver's policy decides what it may do.
666
+ - `agent-transport-webrtc` — `connectionApproval` asks the operator before a connection reaches the
667
+ session, after every proof has run. Frames the peer sends meanwhile are held (bounded) and delivered
668
+ only after a yes. A channel that closes first withdraws the question (the approval context carries
669
+ an `AbortSignal`), and a later answer admits nothing. A first-pairing device is pinned for
670
+ reconnect only once it is admitted.
671
+ - `agent-command` — `/remote-control enable` and `revoke` from a connected surface are refused, and
672
+ `status` never shows a connected surface the pairing link.
673
+ - `agent-framework` — the `remote-control-enable` host action runs only for the operator's own
674
+ command, whichever command asked for it.
675
+ - `agent-cli` — every remote-control connection, a returning trusted device included, is put to the
676
+ operator on the host terminal; without an interactive terminal it is refused.
677
+
678
+ - Updated dependencies [3038eb7]
679
+ - Updated dependencies [02b7452]
680
+ - Updated dependencies [ec5e477]
681
+ - Updated dependencies [b2e0afe]
682
+ - Updated dependencies [007fd90]
683
+ - Updated dependencies [18b52cc]
684
+ - Updated dependencies [9843fe6]
685
+ - @robota-sdk/agent-core@3.0.0-beta.81
686
+ - @robota-sdk/agent-tools@3.0.0-beta.81
687
+ - @robota-sdk/agent-session@3.0.0-beta.81
688
+ - @robota-sdk/agent-interface-session@3.0.0-beta.81
689
+ - @robota-sdk/agent-interface-session-mobility@3.0.0-beta.81
690
+ - @robota-sdk/agent-interface-command@3.0.0-beta.81
691
+ - @robota-sdk/agent-executor@3.0.0-beta.81
692
+ - @robota-sdk/agent-interface-execution@3.0.0-beta.81
693
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.81
694
+ - @robota-sdk/agent-tool-defaults@3.0.0-beta.81
695
+ - @robota-sdk/agent-file-authority@3.0.0-beta.81
696
+ - @robota-sdk/agent-interface-analytics@3.0.0-beta.81
697
+
698
+ ## 3.0.0-beta.80
699
+
700
+ ### Major Changes
701
+
702
+ - 9c19c50: `/fork [name] [--same-dir]` copies the live conversation into a background session.
703
+
704
+ The session writes a copy of its own record under a fresh id — messages, system prompt, tool schemas
705
+ and full history, and deliberately not the sandbox snapshot, goal, plan or branch — then spawns a
706
+ background job carrying only `resumeSessionId`. The child restores that record itself, so no
707
+ conversation crosses the child-process boundary and the worker start payload's key set is unchanged.
708
+ The background panel gains an `attach` control that switches the terminal onto the forked session; it
709
+ is a view switch, never a merge, and a missing record or a terminal task is refused with the task's
710
+ own status.
711
+
712
+ **`@robota-sdk/agent-framework` is `major` for one reason: `ICommandHostSessionAccess` gains a
713
+ required member.** `forkSession({ name? })` is not optional, so an external implementation of that
714
+ role port stops compiling until it adds the method. Every other change in this set is additive:
715
+
716
+ - `agent-interface-execution` — `TExecutionControl` gains `'attach'`.
717
+ - `agent-interface-command` — `TCommandUiIntent` gains `{ type: 'switch-session'; sessionId }`.
718
+ - `agent-subagent-runner` — `ISubagentWorkerComposition` gains the optional `openSessionStore`, and
719
+ the worker resumes a record when the job names one. A composition that registers no store and
720
+ receives no `resumeSessionId` behaves exactly as before.
721
+ - `agent-framework` also gains the fork-record builder, `SessionTurnMemory`, and
722
+ `IAgentBackgroundTaskRequest.resumeSessionId?`; `loadSessionRecord` now returns
723
+ `restoredSystemPrompt`, which makes a record field that was written and never read take effect on
724
+ restore.
725
+ - `agent-executor`, `agent-command`, `agent-transport-tui`, `agent-cli` — the spawn input, the
726
+ `/fork` module and the attach control that carry it to the surface.
727
+
728
+ - 818f0c8: `createSession` and `ICreateSessionResult` are no longer exported from the package root.
729
+
730
+ **Migration — `createSession`.** Use `InteractiveSession`, or `createAgentRuntime().createSession(IHeadlessSessionOptions)`, or `createQuery()`. It was the low-level assembly seam, not the intended session entry point; the session-creation route is unchanged for consumers already using one of those three.
731
+
732
+ **Migration — `ICreateSessionResult`: there is none, and that is stated rather than glossed.** The package's `exports` map exposes only `.` and `./testing`, so the assembly barrel that still declares the type is unreachable from outside the package. A released consumer importing this type has no replacement path and must stop referring to it. What it _named_ is largely still reachable — its `session` field is a `Session`, which `@robota-sdk/agent-session` exports and which `InteractiveSession.getSession()` returns — so the loss is the aggregate type itself, not the things it described. This is the break the `major` bump declares.
733
+
734
+ **Impact on published consumers differs between the two symbols, and the earlier draft of this note got it wrong.** Resolved against the published `3.0.0-beta.79` `dist/node/index.d.ts` (466 exported names), not against the source barrel:
735
+
736
+ - `createSession` is **absent** from the published surface. It was root-exported on 2026-08-16, after the 2026-07-06 release, so no released consumer can be calling it.
737
+ - `ICreateSessionResult` **is published** — root-exported since 2026-06-14 and present at the release commit. Removing it is a genuine break to the published type surface, which is what the `major` bump declares.
738
+
739
+ Neither fact is the reason for the removal. `.agents/project-structure.md` § Forward-Provisioned Surface Rule bans consumer-count reasoning about a public surface at any count. The reason is that the surface does not fit the design — `ICreateSessionOptions` is a 60-field internal projection target, and the 2026-03-26 SDK scope redesign already decided this factory is internal. The published-surface facts are recorded so a consumer can tell which removal can affect them, not to justify either.
740
+
741
+ `ICreateSessionOptions` remains exported: four packages read indexed-access types off it as the option SSOT, and it is this package's own type.
742
+
743
+ Closes issue #2270's export half. Its no-opt-out half stays open against issue #2238 — this change does **not** make the unconditional executor seeding safe, and the SPEC deliberately declines to reinstate that argument even though the un-export makes it literally true again.
744
+
745
+ - 9368d00: Advisor escalation: the main model can consult a second model at the decision points it chooses.
746
+
747
+ With an advisor configured (`--advisor <profile>[:<model>]`, or the `advisorModel` setting that
748
+ `/advisor` saves; the flag wins), the session gets an `Advisor({ question? })` tool. The advisor reads
749
+ the whole conversation — system prompt, messages, tool calls and results — serialized into one prompt
750
+ and sent with `toolChoice: 'none'`, truncated from the front to fit its window with the system prompt
751
+ kept, and declines when even that does not fit. Its answer comes back framed as guidance to verify;
752
+ an empty or refusing answer reads as declined. Calls are limited to two per turn and a fixed number
753
+ per session, parallel calls in one round share those limits, and a repeated question in the same
754
+ turn returns the earlier answer. A request that was sent counts even when the provider failed (the
755
+ decline is reported by class, never by its text); only a call declined before sending gives its slot
756
+ back.
757
+
758
+ Advisor usage, including in-process subagents', is recorded where each turn's usage is recorded —
759
+ the persisted session history, under the advisor's own provider and model — so `/cost`, usage reports
760
+ and resumed sessions include it. `/cost` now totals that history and prices each part on its own
761
+ model, showing "mixed" when more than one model was priced.
762
+
763
+ `/advisor <model>` and `/advisor off` change only where calls go, never the tool list, so the main
764
+ model's prompt cache is not invalidated mid-session; the tool is added only when a session starts
765
+ with an advisor. Sending history to a destination (provider type and endpoint host) the main model
766
+ does not already use needs a one-time consent per destination, kept in the user settings file; a
767
+ refusal is remembered for the session. The organization's `allowedProviders` applies, and
768
+ `ROBOTA_DISABLE_ADVISOR=1` turns it off completely. In-process subagents inherit the advisor, bound
769
+ to their own conversation; child-process subagents do not get it.
770
+
771
+ **`@robota-sdk/agent-framework` is `major` for one reason: `ICommandHostSessionAccess` gains a
772
+ required member,** `getSessionUsage()`, the session's persisted usage records. An external
773
+ implementation of that role port stops compiling until it adds the method. The rest is additive.
774
+
775
+ - `agent-session` — `formatConversationEntries`, the one text rendering of a conversation, now used
776
+ by compaction too. It keeps tool calls and results, marks a user message a peer session sent
777
+ (`user [from "peer:<id>"]`), and JSON-encodes every message onto one line so no content can forge
778
+ another entry; compaction previously flattened all of this. `Session.getProvider()` returns the
779
+ provider the session currently uses.
780
+ - `agent-framework` — `AdvisorController`, `createAdvisorTool`, the advisor spec helpers, provider
781
+ destinations (`describeProviderDestination`, `rememberProviderDestination`), `getSessionUsage` and
782
+ `ISessionUsageRecord`, the `onUsageRecorded` session option, and the optional `advisor` command
783
+ host adapter. Session assembly binds a host-supplied Advisor tool to the session holding it.
784
+ - `agent-command` — the `/advisor` command module; `/cost` reads the session's persisted usage.
785
+ - `agent-cli` — the `--advisor` flag, `advisorModel` setting, per-destination consent store and kill
786
+ switch.
787
+ - `agent-ui-terminal` — a usage line from another source (the advisor, a background task) names that
788
+ source and leaves out the context window it does not have.
789
+ - `agent-session-analytics` — personal usage counts an advisor call's tokens and cost toward its
790
+ turn without counting it as a turn.
791
+
792
+ - f336838: One permission evaluation order for every caller. The interactive session, background tasks and
793
+ subagents used to run two different resolvers, so the same call could be decided differently
794
+ depending on who made it. They now share `evaluatePermission`, and a background policy only adds a
795
+ ceiling, an ask-everything flag and the task's own lists to it:
796
+
797
+ deny → caller ceiling → unevaluable deny (ask) → never-auto-approve set (ask) → ask-everything →
798
+ bypassPermissions → allow → mode.
799
+
800
+ - **`ask` rules.** `permissions.ask` patterns always ask, in every mode including
801
+ `bypassPermissions`. They are matched per command like a deny rule, and are validated at
802
+ construction alongside `allow` and `deny`.
803
+ - **Never auto-approved, bypass included:** removing a critical path with `rm`/`rmdir` (the root, a
804
+ top-level directory, home, the working directory or a parent), and a modify-class write into
805
+ `.git`, `.robota`, `.claude`, `.agents`, `.mcp.json`, `.gitconfig`, `.npmrc` or a shell rc file.
806
+ Files inside an isolated worktree (`.robota/worktrees/<name>/…`) are ordinary files. With no
807
+ approver attached, an ask is a denial.
808
+ - **A ceiling is checked before bypass and before any ask.** A subagent's `inherit-allowlist` ceiling
809
+ is now the parent's _effective_ rules, read live at spawn: settings, preset lists and command
810
+ auto-allows. It used to be the raw settings file. An unevaluable deny under a policy now asks,
811
+ like everywhere else, where it used to deny outright; with no approver it is still a denial.
812
+ - **Settings layers union `permissions.allow`**, as they already did `deny`. A checked-in project
813
+ file no longer silently discards the user's allow list.
814
+ - **Print mode, `createQuery()` and headless sessions default to `default` mode**, not
815
+ `bypassPermissions`. They have no approver, so a call that would ask is denied. Pass
816
+ `--permission-mode` / `permissionMode: 'bypassPermissions'` explicitly for unattended runs.
817
+
818
+ **Breaking:**
819
+ - `@robota-sdk/agent-core` removes `resolvePermissionByPolicy` and `TPermissionPolicyDecision` in
820
+ favour of `projectPermissionPolicy` plus `evaluatePermission`'s new `context` argument.
821
+ - `@robota-sdk/agent-framework` changes the settings merge rule for `permissions.allow`, and the
822
+ default permission mode of `createQuery()` and headless sessions.
823
+
824
+ - 807d161: **BREAKING — ARCH-010: the execution root is a required contract field, and the containment guard now fails closed.**
825
+
826
+ The file-tool containment guard was fail-open: with no root configured it answered "allowed". A tool
827
+ built with no `cwd` therefore had no boundary — measured, a `Read` constructed that way returned the
828
+ contents of `/etc/hostname` — and the child-process subagent worker called `createDefaultTools()` with
829
+ no argument at all, so subagents got exactly that. Three independent auditors found three different
830
+ symptoms of this one missing field.
831
+
832
+ **Removed — seven context-free tool singletons.** `readTool`, `writeTool`, `editTool`, `globTool`,
833
+ `grepTool`, `shellTool`, `bashTool` are gone from `@robota-sdk/agent-tools`. A module-level instance is
834
+ bound at import time and can carry no containment root, so after the guard was inverted they could only
835
+ refuse everything.
836
+
837
+ Migrate to the factory of the same name, passing the directory the tool is allowed to work in:
838
+
839
+ ```ts
840
+ // before
841
+ import { readTool, globTool } from '@robota-sdk/agent-tools';
842
+ const tools = [readTool, globTool];
843
+
844
+ // after
845
+ import { createReadTool, createGlobTool } from '@robota-sdk/agent-tools';
846
+ const cwd = process.cwd(); // or the workspace this agent is scoped to
847
+ const tools = [createReadTool({ cwd }), createGlobTool({ cwd })];
848
+ ```
849
+
850
+ `webFetchTool`, `webSearchTool` and `askUserQuestionTool` are unchanged — they touch no filesystem, so
851
+ there is no root to contain them by.
852
+
853
+ **`cwd` is now REQUIRED** on `ISandboxToolOptions`, `IContainedBuiltinToolOptions` (and everything
854
+ extending them), `ICreateDefaultToolsOptions`, `ISessionOptions` and `ISubagentOptions`. The `= {}`
855
+ default parameter was removed from every builtin factory — that default was the mechanism by which
856
+ "forgot the root" was legal. `new Session({...})` without `cwd` no longer compiles, and also throws at
857
+ construction, because a required field is only required to a TypeScript caller.
858
+
859
+ **`Session` no longer reads `process.cwd()`.** It uses the root it was given, and `getCwd()` exposes it
860
+ so a fork or subagent asks the session instead of re-deriving a root that can disagree with it.
861
+
862
+ **Behavioural change even for callers that already passed a root**: a tool that somehow reaches the
863
+ guard with no root now REFUSES with an explicit error ("no containment root is configured … this is an
864
+ assembly bug, not a path problem") instead of allowing the access.
865
+
866
+ - e82215f: **ARCH-011: replace the ambiguous transport lifecycle stub with executable conformance.**
867
+
868
+ `ITransportAdapter` now requires a frozen `service | runner` lifecycle descriptor. `start()` resolves
869
+ at the concrete transport's documented readiness boundary; start before attach and repeated active
870
+ start reject a stable lifecycle error, repeated stop is safe, and stopped adapters can reattach and
871
+ restart.
872
+
873
+ Runner adapters launch separately and expose a typed terminal outcome through
874
+ `waitForCompletion()`. The registry accepts base adapters, rejects duplicate names, keeps
875
+ configuration as an optional capability, returns complete ordered records whose pending slots become
876
+ registry-owned `abandoned` outcomes on stop/rollback, and exposes a real-runner-only first-failure
877
+ wait. It serializes startup/stop, rejects active restart before mutation, and reverses partial startup
878
+ from the currently failing adapter with typed safe rollback details. Runtime host and serve mode
879
+ propagate real nonzero runner results without treating normal shutdown abandonment as failure.
880
+
881
+ HTTP, MCP, both WebSocket adapters, WebRTC, and headless invoke one shared public conformance kit.
882
+ The former `TuiTransport` export is removed because it ignored the attached session; use `renderApp`
883
+ or `TuiInteractionChannel`, which honestly own their session lifecycle.
884
+
885
+ - 52b7346: **BREAKING — ARCH-012: three `IInteractiveSession` members become required, and the conformant test double moves.**
886
+
887
+ `isInitialized`, `getPendingCount` and `getActiveDriverId` were OPTIONAL. A consumer reading
888
+ `session.getActiveDriverId?.() ?? undefined` received the same `undefined` for two unrelated
889
+ situations — the host attributes turns and none is active, and the host cannot attribute turns at all
890
+ — with no error, no log, and nothing to tell them apart. The second loses every co-drive attribution
891
+ silently.
892
+
893
+ **Any implementation of `IInteractiveSession` must now provide all three.** `null` from
894
+ `getActiveDriverId()` means exactly one thing: nobody is driving.
895
+
896
+ ```ts
897
+ // before — a host could simply omit these
898
+ class MySession implements IInteractiveSession {
899
+ submit(/* … */) {
900
+ /* … */
901
+ }
902
+ }
903
+
904
+ // after
905
+ class MySession implements IInteractiveSession {
906
+ readonly isInitialized = true;
907
+ getPendingCount(): number {
908
+ return this.queue.length;
909
+ }
910
+ getActiveDriverId(): TDriverId | null {
911
+ return this.activeDriver ?? null;
912
+ }
913
+ submit(/* … */) {
914
+ /* … */
915
+ }
916
+ }
917
+ ```
918
+
919
+ **`createTestInteractiveSession` moved** from `@robota-sdk/agent-framework` (its `./testing` subpath)
920
+ to `@robota-sdk/agent-interface-transport/testing`, beside the contract it doubles. It is **not**
921
+ re-exported from the old location: pass-through re-exports of another package's symbols are banned in
922
+ this repo, and the old export had no in-repo consumers — every transport package sits below
923
+ `agent-framework` and could never import it, which is why 41 hand-rolled partials existed instead.
924
+
925
+ ```ts
926
+ // before
927
+ import { createTestInteractiveSession } from '@robota-sdk/agent-framework/testing';
928
+ // after
929
+ import { createTestInteractiveSession } from '@robota-sdk/agent-interface-transport/testing';
930
+ ```
931
+
932
+ - 2ebff01: Remove the obsolete session-level permission and ask callback options and the stale
933
+ `permission-resolved` display event. Prompt requests now settle exclusively through the canonical
934
+ request events and session resolution methods, while leaf adapters fail closed when callbacks reject.
935
+ - 2d3b2c0: Remove pass-through exports for agent-core environment-reference helpers and agent-session session-id
936
+ guards. Import `formatEnvReference`, `hasUsableSecretReference`, `isEnvReference`, and
937
+ `resolveEnvReference` from `@robota-sdk/agent-core`, and import `assertSafeSessionId` and
938
+ `isSafeSessionId` from `@robota-sdk/agent-session`.
939
+ - 2d3b2c0: ARCH-024 replaces framework knowledge of command-owner ids with optional, owner-declared semantic
940
+ roles. `ISystemCommand` can declare `skillActivation`, `contextReduction`, or `subagentSpawn`;
941
+ `SystemCommandExecutor` exposes the selected role projection and rejects duplicate owners with the
942
+ typed `DuplicateSystemCommandSemanticRoleError`, atomically across construction, registration, and
943
+ replacement.
944
+
945
+ This is a beta-line breaking contract correction: unannotated commands named `skills`, `compact`, or
946
+ `agent` no longer receive special framework behavior. `@robota-sdk/agent-command` now declares the
947
+ roles on its shipped skills, compact, and agent commands.
948
+
949
+ - 3a8876b: ARCH-029: decompose the command host into role ports
950
+
951
+ `ICommandHostContext`, `ICommandSessionRuntime` and `IAgentJobHostContext` are now empty `extends`
952
+ aggregates over 26 named role ports, so a command declares only the capability it uses. A role port
953
+ is a supertype of the aggregate, so narrowing a declared parameter still satisfies
954
+ `ISystemCommand.execute` by contravariance.
955
+
956
+ All 79 members are preserved (46 + 18 + 15) with the declaration kind unchanged, so implementors and
957
+ callers stay source-compatible.
958
+
959
+ **Breaking:** every role-port member is now required except the adapter bag, whose contents are
960
+ genuinely variational. 38 members went from optional to required. A host that previously omitted a
961
+ member must now provide one — including `validateCurrentSessionReplayLog`, which was an override
962
+ with a framework-computed default and no implementor. `createTestCommandHost`,
963
+ `createTestAgentJobHost` and `createTestSessionRuntime` are published from
964
+ `@robota-sdk/agent-framework/testing` as conformant, cast-free doubles for exactly this.
965
+
966
+ Also removed: the `clearConversationHistory` fallback that reached past the host into
967
+ `getSession().clearHistory()`. Those were never the same operation — the host path also broadcasts
968
+ `history_cleared` to every attached surface, so a fallback clear left other surfaces still showing
969
+ the transcript.
970
+
971
+ - 4772067: **BREAKING — ARCH-031: the subagent seam is derived from its transport SSOT instead of copied.**
972
+
973
+ One field family — what a subagent job IS — was declared three times as independent shapes and carried
974
+ between them by six hand-written object literals that nothing checked for totality. A field added to
975
+ either side had to be hand-copied at every hop, and a miss compiled clean as a silent no-op. TYPE-003
976
+ named this cause and derived one hop; the next two changes each dropped a field at a hop it had skipped
977
+ (CORE-025's permission policy, and ANALYTICS-001's `usage`, dropped in the very commit that added it).
978
+
979
+ ```ts
980
+ // now, in @robota-sdk/agent-interface-transport
981
+ export type ISubagentSpawnRequest = Omit<IAgentBackgroundTaskRequest, 'kind'>;
982
+ export type ISubagentJobResult = Omit<IBackgroundTaskResult, 'kind' | 'exitCode' | 'signalCode'>;
983
+ ```
984
+
985
+ All four projections collapse to spreads. `parentTaskId` and `providerProfile` now reach the runner
986
+ because they exist on the source, not because someone remembered them.
987
+
988
+ **Per package, classified against each barrel:**
989
+
990
+ - **`agent-executor` (major)** — the barrel loses `ISubagentSpawnRequest` and `ISubagentJobResult` (they
991
+ moved to their owner; re-publishing them here would be a pass-through re-export). `ISubagentJobStart`
992
+ and `ISubagentJobHandle` rename `jobId` → `taskId`, `ISubagentJobStart` gains `worktree?`, and
993
+ `ISubagentWorktreePrepareRequest` renames `jobId` → `taskId`.
994
+ - **`agent-framework` (major)** — the barrel loses eleven type-only re-exports of `agent-executor`-owned
995
+ types. They carried zero runtime values, so they bought none of the assembly convenience a runtime
996
+ facade exists for, while making one field family look like it had three owners. Separately,
997
+ `ISpawnAgentTaskRequest.permissionPolicy` goes optional → **required**.
998
+ - **`agent-subagent-runner` (major)** — `ISubagentWorkerStartPayload` renames `jobId` → `taskId` and gains
999
+ `worktree?`. This package is not in the item's declared `area:`; the audit that caught it is the reason
1000
+ it is here.
1001
+ - **`agent-interface-transport` (minor)** — two new barrel exports; nothing removed or renamed.
1002
+ - **`agent-core` (minor)** — **two** new barrel exports. `DEFAULT_BACKGROUND_PERMISSION_POLICY` is the
1003
+ intended one; collapsing the hand-listed permissions block to `export *` also surfaced
1004
+ `clearRegisteredToolArgumentKeys`, which the old list had omitted. It is documented as public rather
1005
+ than re-narrowed — a barrel that cannot fall out of step with its owner is the point of the collapse.
1006
+ Nothing was removed: all nine previously-listed permission types remain on the barrel.
1007
+ - **`agent-cli` (patch)** — migrated as the only in-repo implementer of `ISubagentWorktreeAdapter`; no
1008
+ barrel change.
1009
+
1010
+ **`permissionPolicy` is now required at the spawn boundary**, and its default is one exported constant
1011
+ owned by the permission SSOT. It was previously applied as `?? 'inherit-allowlist'` in the middle of a
1012
+ projection, in **two** packages independently, with nothing keeping them equal — a security-relevant value
1013
+ whose default was declared twice. Every spawn site now states its own policy.
1014
+
1015
+ **The worktree identity moved to the runner envelope.** It is runner-produced — the worktree does not
1016
+ exist when a caller builds a request — so it rides on `ISubagentJobStart.worktree` and crosses the IPC
1017
+ boundary there. The runner no longer also rewrites `request.cwd`, which had given ARCH-010's execution-root
1018
+ rule two carriers that could disagree. `branchName` **relocated rather than being deleted**: it has no
1019
+ reader in this repository today, and for a library that is not a reason to drop a legitimate contract.
1020
+
1021
+ **Renames are consistent across the SPI** (`type` → `agentType`, `jobId` → `taskId`) rather than applied to
1022
+ one shape, which would have left two names for one identifier in a single file. The IPC validator's
1023
+ string-literal keys are now typed against the contract, so the next rename is a compile error instead of a
1024
+ runtime rejection of every start payload.
1025
+
1026
+ - 7b85767: ARCH-035 — the default tool set becomes a composition leaf.
1027
+
1028
+ **New package: `@robota-sdk/agent-tool-defaults`.** It owns `createDefaultTools` and
1029
+ `ICreateDefaultToolsOptions`, including the adapter gating that adds `CodebaseRetrieval` when a
1030
+ `retrievalAdapter` is supplied and the Computer tools when a `computerDriver` is.
1031
+
1032
+ **Breaking for `@robota-sdk/agent-framework`:** `createDefaultTools` and `ICreateDefaultToolsOptions`
1033
+ are no longer exported from it. Import them from `@robota-sdk/agent-tool-defaults`. The packages are
1034
+ pre-release and this repo keeps no compatibility shims, so they are moved rather than deprecated.
1035
+
1036
+ **Also breaking:** the internal `createSession` assembly factory is now `async`. This does NOT affect
1037
+ `IAgentRuntime.createSession`, which stays synchronous — it does not call that factory, and a
1038
+ verification scenario now asserts that explicitly, because propagating async through it would break
1039
+ every consumer that builds a session without supplying `defaultTools`.
1040
+
1041
+ **Zero-config behaviour is unchanged**, deliberately. `createQuery` and the headless runtime have no
1042
+ `defaultTools` seam, so a session built without one still receives the built-in tool tier —
1043
+ `agent-framework` reaches the new leaf through a dynamic `import()`. An earlier revision of this work
1044
+ proposed deleting the tier outright and was rejected on measurement: two published surfaces cannot
1045
+ express the alternative, and the failure mode was a silently toolless agent behind a green typecheck.
1046
+
1047
+ **Why the move matters.** `agent-subagent-runner` legitimately depends on `agent-framework`, so while
1048
+ the aggregator sat on that barrel a neutral runner could compose the product's tool surface with only
1049
+ a scan in the way. It has no manifest edge to the new leaf, so that import does not resolve there at
1050
+ all — the guarantee is carried by the type system now, mirroring what `@robota-sdk/agent-provider-defaults`
1051
+ already does on the provider axis.
1052
+
1053
+ `@robota-sdk/pack-coding` is a patch: it consumes the leaf instead of rebuilding the same list by
1054
+ hand. Its contributed tool surface is unchanged — verified from the published tarballs.
1055
+
1056
+ - 64ba748: **BREAKING — ARCH-042: project filesystem access is now an explicit, host-issued authority instead of an ambient consequence of `cwd`.**
1057
+
1058
+ `@robota-sdk/agent-framework` adds `WorkspaceTrustService` and the opaque
1059
+ `IWorkspaceProjectAuthority`, plus bounded reader, settings-writer, state-storage, and mutation
1060
+ facets. Public session, settings, context, checkpoint, memory, contribution, query, and replay
1061
+ contracts consume those facets. A caller that does not supply `projectAccess` is deliberately
1062
+ restricted to user-owned host state and receives no project filesystem capability.
1063
+
1064
+ The framework removes or renames ambient Node/project exports. Migrate `checkSettingsFile` to
1065
+ `checkNodeHostSettingsFile`, `readMergedProviderSettingsFromPaths` to
1066
+ `readMergedProviderSettingsFromSources`, `resolveProviderSettingsWriteTargetPath` to
1067
+ `resolveProviderSettingsWriteTarget`, `FileSystemMemoryStore` / `createFileSystemMemoryStore` to
1068
+ `WorkspaceMemoryStore` / `createWorkspaceMemoryStore`, and `PluginSettingsStore` to
1069
+ `NodeHostPluginSettingsStore`. Host-only git helpers now carry the `FromNodeHost` suffix.
1070
+ `projectPaths`, `resolveSettingsPathForScope`, and `getProviderSettingsPaths` are removed; project
1071
+ consumers must use the authority facets rather than recover absolute paths.
1072
+
1073
+ `@robota-sdk/agent-session` renames the Node filesystem implementation `SessionStore` to
1074
+ `NodeSessionStore` and adds explicit session-log/external-payload source and sink ports. Session
1075
+ replay no longer resolves external payload files from an ambient directory.
1076
+
1077
+ `@robota-sdk/agent-interface-transport` changes `ISkillExecutionPort.loadCommands(cwd, home?)` to
1078
+ the authority-bound `loadCommands()` and removes the optional absolute-path leak
1079
+ `IInteractiveSessionStore.getFilePath`. `@robota-sdk/agent-command` consequently replaces the
1080
+ `cwd` option of `createSkillsCommandModule` with required `contributionSources`; default command
1081
+ composition accepts explicit contribution sources and discovers no project skills when none are
1082
+ provided.
1083
+
1084
+ `@robota-sdk/agent-cli`, `@robota-sdk/agent-transport`, and
1085
+ `@robota-sdk/agent-transport-tui` thread the trusted-or-restricted project decision through every
1086
+ session surface. Embedded callers that need project settings, state, context, skills, checkpoints,
1087
+ or mutation must mint access through `WorkspaceTrustService` and pass the returned
1088
+ `projectAccess` (and a separately approved mutation/settings facet where required). Omitting it is
1089
+ still type-compatible but is behaviorally breaking: the surface now fails closed instead of
1090
+ reading or writing the current directory.
1091
+
1092
+ - fe48835: Honor skill model selection in forked child sessions. Skill metadata that specifies a model now requires `context: fork` instead of silently ignoring the model during ordinary execution. Startup errors for configured hooks without executors now identify their settings and enabled plugin sources.
1093
+ - 1e40b5b: Move handoff source/destination orchestration and its contract from agent-framework to the session-mobility owner. Import `HandoffSource`, `HandoffDestination`, and their option types from `@robota-sdk/agent-interface-session-mobility`. Mobility now applies offer and authority decisions directly, while the CLI supplies wire effects and the session-record decoder. A successful offer no longer returns a mutable authority transaction.
1094
+ - 8865acf: The framework now defaults to neutral model-facing identifiers: projected command tools use
1095
+ `command_` and attached file content uses `<file_references>`. This changes the default output of
1096
+ `MODEL_COMMAND_TOOL_PREFIX`, `createProviderSafeModelCommandToolName`,
1097
+ `createModelCommandToolProjection`, and `buildPromptWithFileReferences` for SDK consumers.
1098
+
1099
+ To preserve the previous identifiers, pass `modelCommandToolPrefix: 'robota_command_'` and
1100
+ `promptFileReferenceTag: 'robota_file_references'` in session options, or pass those values to
1101
+ the projection and prompt-format helpers. The Robota product profile supplies both values, so
1102
+ the Robota CLI keeps its existing model tool names and prompt enclosure.
1103
+
1104
+ - 5134b3b: **BREAKING — RUNTIME-003 P2: `submit` hands back the submission's identity, so an answer belongs to
1105
+ the caller who asked for it.**
1106
+
1107
+ `submit` returned nothing, so a caller that needed to know when ITS turn ended had only the
1108
+ session-global `complete` / `interrupted` / `error` events — which say that A turn ended and never
1109
+ which one. The MCP adapter did exactly that, and the result was measurable: a session runs one turn
1110
+ at a time and queues the rest, so two concurrent `submit` calls did not run concurrently. The second
1111
+ waited and then took the RUNNING turn's response as its own answer. Both callers were told about one
1112
+ turn; neither was told which.
1113
+
1114
+ `submit` now returns an `ITurnHandle` — `{ turnId, completed }`. The id is minted when the submission
1115
+ is ACCEPTED and kept if it waits in the queue, so one submission is one identity from end to end.
1116
+
1117
+ `completed` always settles, and that is the part that took the work. A queued submission is not
1118
+ promised a turn: the co-drive queue coalesces a same-driver input into the one behind it, drops at
1119
+ capacity, and discards everything when cleared. A handle that settled only for submissions that ran
1120
+ would leave the rest waiting forever — a worse failure than the ambiguity it replaces — so each of
1121
+ those rejects with a typed `TurnNotRunError` naming which happened (`coalesced`, `dropped`,
1122
+ `cancelled` — shutdown clears the queue through the same path, so it reports as cancelled).
1123
+
1124
+ **Migration.** A caller that ignores the return value is unaffected: `await session.submit(...)`
1125
+ still means what it did, and the direct path still resolves only when the turn is over. An
1126
+ IMPLEMENTER of `IInteractiveSession` must now return a handle:
1127
+
1128
+ ```ts
1129
+ // before
1130
+ async submit(input: string): Promise<void> {
1131
+ await runTurn(input);
1132
+ }
1133
+
1134
+ // after
1135
+ async submit(input: string): Promise<ITurnHandle> {
1136
+ const turnId = crypto.randomUUID();
1137
+ return { turnId, completed: runTurn(input) };
1138
+ }
1139
+ ```
1140
+
1141
+ `createTestInteractiveSession` already returns a conforming handle, so a double built on it needs no
1142
+ change.
1143
+
1144
+ One thing this deliberately does NOT do: DAG run advancement (P3) stays with DAG-001.
1145
+
1146
+ An earlier draft of this note claimed the HTTP route's documented TOCTOU had been measured and was
1147
+ not reachable. That was wrong, and it is corrected here rather than left for a reader to trip over.
1148
+ The probe behind it used a `submit` stub with no suspension point, so it could not exhibit the race
1149
+ it was written to rule out; the real `submit` opens with `await ensureInitialized()`. The race is
1150
+ real and is fixed in its own change (#1656), where the route CLAIMS the turn instead of asking
1151
+ whether one is running.
1152
+
1153
+ - 1f57e7f: **BREAKING — RUNTIME-006: align the exported concrete `InteractiveSession.submit` options with the
1154
+ transport-owned `IInteractiveSession` contract.**
1155
+
1156
+ The concrete class no longer exposes framework-internal turn metadata through its fourth argument;
1157
+ public callers may pass only `ISubmitOptions` (`driverId`). New public and internal submissions
1158
+ always mint a fresh turn identity. An already accepted queued submission now resumes through a
1159
+ private required-identity path instead of re-entering public `submit`, so runtime extra properties
1160
+ cannot select or reuse another turn's identity.
1161
+
1162
+ Queued entries, execution, and every settle/fail/refuse operation now require `turnId`. The former
1163
+ undefined no-op guards and the alternate settler lookup seam are removed, preserving the contract
1164
+ that every accepted handle settles for its own turn or typed refusal.
1165
+
1166
+ - db5c439: Framework query, runtime, interactive, and headless session creation now pass through one validated `SessionRecipe` constructor seam. Standard interactive options require provider and working directory; wrapping a host-owned session remains an explicit recipe mode, and test doubles use the package's `/testing` entry.
1167
+ - 4a01a87: Use the shared strict frontmatter decoder for skill, command, bundle plugin, and agent discovery. Reject malformed authority metadata with source diagnostics, preserve plugin invocation restrictions, and reject invalid agent limits before registration.
1168
+
1169
+ Remove the permissive public `parseFrontmatter` export as a breaking API change. Discovery sources now own validation; no compatibility parser is retained. The test-session harness accepts explicit project authority for trusted contribution fixtures.
1170
+
1171
+ - 242a644: Require versioned, event-decoded session replay logs. Reject unknown, malformed, and unsupported
1172
+ entries instead of dropping them or inventing message fields. Replay-only session loads and lists
1173
+ report damaged logs explicitly. Legacy unversioned JSONL is not accepted; snapshot encoding remains
1174
+ unchanged. Persisted logs now use schema version 1, and all replay entry points share the session-owned
1175
+ decoder and preserve sidecar integrity failures.
1176
+
1177
+ ### Minor Changes
1178
+
1179
+ - d4189b9: The rest of the per-server MCP OAuth lifecycle: signing in to a server without a local browser,
1180
+ signing out of it with token revocation, and each server's sign-in state in `/mcp`.
1181
+
1182
+ - **`robota mcp login <name> --no-browser`** prints the authorization URL and reads the redirect URL
1183
+ the user pastes back (not echoed). `runMCPOAuthLogin` takes `readRedirect` for this; nothing
1184
+ listens on the redirect URI then. The pasted URL is held to the loopback listener's rules through
1185
+ `createPastedRedirectAcceptor`: it must be the registered redirect URI (same origin and path, no
1186
+ user info), carry the sign-in's `state` (compared in constant time), and is accepted once; an
1187
+ error redirect is `authorization-denied` without its `error_description`, and the RFC 9207 `iss`
1188
+ check applies as before. `openBrowser` now also receives the redirect URI. `readRedirect` gets a
1189
+ signal that aborts on cancel or at `callbackTimeoutMs` (5 minutes by default, as for the loopback
1190
+ listener); a paste longer than the prompt accepts fails as `redirect-too-long`.
1191
+ - **Signing out** (`runMCPOAuthLogout`; `robota mcp logout <name>`; `/mcp logout <serverId>`):
1192
+ deletes the stored credential under the refresh lock, then revokes the refresh token and the
1193
+ access token (RFC 7009) when the stored issuer advertises `revocation_endpoint`. Revocation is a
1194
+ POST through the egress policy that never follows a redirect and is byte-bounded; it authenticates
1195
+ the client by `revocation_endpoint_auth_methods_supported` when advertised, otherwise the way its
1196
+ refresh does. The local delete always happens. Each token's outcome is reported in `tokens`, and
1197
+ overall as `revoked`, `partial`, `unsupported`, `failed` or `not-attempted`, with fixed reasons
1198
+ only (new: `revocation-failed`, and `token-type-not-revocable` for RFC 7009
1199
+ `unsupported_token_type`). `/mcp logout` also makes the session's authenticator drop the token it
1200
+ holds (`IMCPOAuthAuthenticator.forget`).
1201
+ - **Sign-in state:** `readMCPOAuthCredentialState` answers `signed-in`, `expired-refreshable`,
1202
+ `sign-in-required` or `signed-out` — never anything token-derived. `/mcp` shows it for every
1203
+ OAuth server; a server this session was told needs a sign-in reads `sign-in-required`.
1204
+ `ICommandMCPActivationAdapter` gains optional `oauthStatus` and `oauthLogout`
1205
+ (`ICommandMCPOAuthStatus`, `ICommandMCPOAuthLogoutResult`).
1206
+ - **No in-session sign-in:** signing in stays `robota mcp login <server>` in a terminal, since it
1207
+ needs the terminal (browser, pasted redirect, hidden secret prompt) a running session owns. `/mcp`
1208
+ names that command for a server that needs a sign-in, as does the session's sign-in notice; the
1209
+ server name is shown there only when it is safe to paste into any shell — a plain token not
1210
+ starting with `-` or `=` — and is otherwise replaced by `<server>` (`shellArgumentForDisplay` in
1211
+ `agent-core`; nothing is quoted, since quoting rules differ between shells). Server names in OAuth
1212
+ notices have control and format characters escaped.
1213
+ - **Refresh hardening:** on `invalid_grant`, the store is read again under the lock; a refresh token
1214
+ another holder rotated in meanwhile is kept (and used when still valid) instead of being deleted.
1215
+ The expiry skew is capped at half the token's lifetime, so a short-lived token is not refreshed on
1216
+ every request; credentials now record `issuedAt` for this.
1217
+
1218
+ - 4078a72: Model fallback chain. `--fallback-model a,b` (or the `fallbackModel` settings array; the flag wins) names up to three models a turn moves to when its model is overloaded, unavailable or failing on the server. An entry is a provider profile, `profile:model`, a bare model on the primary's provider, or `default`. The move happens only before any output has streamed, lasts for the current turn, and is shown as a system note; entries that cannot be built are passed over and entries outside the organization's `allowedProviders` are dropped with a notice. `FallbackProvider` in agent-framework implements it over the session's provider; `IChatOptions` gains `executionId`, `onModelFallback` and `preserveContextWindow`, `IAIProvider` gains optional `resolveModelRoute`, and the execution loop emits a `provider_fallback` event and attributes requests, call observations, committed replies, the response cache and usage to the model that answered. A turn that ran on more than one model records per-model `modelShares` on its usage observation, which personal usage reports split by model and provider. A `/provider` switch keeps the chain, read again for the new primary.
1219
+ - af2f2ad: `/cd <directory>` continues the conversation in another directory.
1220
+
1221
+ - **A move is a new session in the target directory.** In the TUI, robota saves a copy of the
1222
+ conversation where the target's session store will find it, ends the current run through its
1223
+ normal end-of-life flow, and starts again in the target directory resuming that copy. The target's
1224
+ settings, trust decision, tools, skills and `AGENTS.md` apply, exactly as if robota had been
1225
+ launched there. The process boundary makes the move atomic, so no tool call can straddle it.
1226
+ - **The system prompt is kept as recorded**, so a provider's prompt cache survives. One appended
1227
+ `<workspace-move>` message tells the model the new directory, and which project instructions now
1228
+ apply.
1229
+ - **Refused** while a turn is running or a background task is still running, for a missing directory
1230
+ or the current one, and for a target a `Cd(...)` deny rule names.
1231
+ - **Access never widens:** a restricted session stays restricted after a move, and a trusted session
1232
+ takes the target's own trust decision.
1233
+ - New contracts: the `workspace-move` host action, `ICommandWorkspaceAdapter` /
1234
+ `IWorkspaceMoveRequest`, `InteractiveSession.moveWorkspace`, and the `workspaceMovedFrom` session
1235
+ option. The CLI's `--moved-from` and `--restricted-workspace` flags are internal.
1236
+
1237
+ - 34e50f0: A new permission mode, `auto`, lets a model classifier approve or block what would otherwise prompt.
1238
+
1239
+ - **What it decides:**
1240
+ - Reads and in-workspace edits run as in `acceptEdits`.
1241
+ - Commands and other calls the mode leaves open go to the classifier, a side call to the
1242
+ session's own model. It sees the call, the working directory and the git remotes, never the
1243
+ conversation.
1244
+ - A block reaches the model with its reason, so it can take another route.
1245
+ - **What still reaches a person, or is refused:**
1246
+ - Deny rules and background ceilings apply first.
1247
+ - `ask` rules, critical removals and protected paths ask a person.
1248
+ - After 3 refusals in a row (blocks, or no usable verdict), or 20 blocks in the session, the
1249
+ mode asks a person until one approves.
1250
+ With no one to ask, the call is denied.
1251
+ - **Allow rules:** in `auto` mode, allow rules that approve any command are set aside while the
1252
+ mode is on. Examples are `Bash(*)`, an interpreter (`Bash(python *)`), a package runner
1253
+ (`Bash(npm run *)`, `Bash(pnpm exec *)`), `Agent`, `ExecuteCommand` or `Computer`. Narrow
1254
+ rules still apply.
1255
+ - **Retry:** `/permissions` lists classifier blocks. `/permissions retry <n>` lets that exact call
1256
+ run once, unjudged, when the model tries it again.
1257
+ - **Turning it on and off:**
1258
+ - `--permission-mode auto`, `/mode auto` or `/permissions auto`.
1259
+ - An organization turns it off with `disableAutoMode` in the org policy.
1260
+ - **New contracts:**
1261
+ - `TPermissionMode` gains `'auto'`.
1262
+ - `allowRulesForAutoMode` and `isBroadExecutionAllowRule`.
1263
+ - `IPermissionClassifier` and `AutoModeGate`.
1264
+ - The `permissionClassifier` session option.
1265
+ - `Session.retryPermissionDenial`, and `retryDenial` on the permission-mode adapter.
1266
+ - The `'classifier'` denial reason.
1267
+ - `createModelPermissionClassifier`.
1268
+ - The `disableAutoMode` option on `createSession` and `IOrgPolicy`.
1269
+
1270
+ - 722e88a: Shell commands can run in an OS-level sandbox: bubblewrap on Linux and WSL2, Seatbelt on macOS.
1271
+
1272
+ - **Confinement:** covers the command and every process it starts.
1273
+ - Writes are limited to the working directory, the temporary directories and
1274
+ `sandbox.filesystem.allowWrite`.
1275
+ - Agent, git-hook, MCP and shell configuration inside the workspace stays read-only.
1276
+ - `sandbox.filesystem.denyRead` hides paths from the command.
1277
+ - The network is on or off (`sandbox.network.enabled`).
1278
+ - **Modes:** `/sandbox` switches between `auto-allow`, `regular` and `off` for the next command and
1279
+ saves the choice.
1280
+ - In `auto-allow` (`sandbox.autoAllowBashIfSandboxed`), a confined command runs without a prompt
1281
+ in `default` and `acceptEdits`.
1282
+ - Deny rules, ask rules, critical removals and plan mode still apply first.
1283
+ - **Exclusions:** `sandbox.excludedCommands` run unconfined, through the ordinary permission path.
1284
+ - **When the sandbox cannot run:** a missing or unusable backend is reported at startup, in
1285
+ `robota doctor` and in `/sandbox`, and commands then run unconfined.
1286
+ `sandbox.failIfUnavailable` refuses to start instead.
1287
+ - **New contracts:**
1288
+ - `OsSandboxClient`, `detectOsSandbox`, `bubblewrapArguments`, `seatbeltProfile`.
1289
+ - `ISandboxClient.wrapCommand` and `autoApproves`.
1290
+ - `IPermissionEvaluationContext.sandboxAutoApproved`.
1291
+ - The `commandSandbox` session option.
1292
+ - The `sandbox` settings key and the `sandbox` command host adapter.
1293
+
1294
+ - a5cc36e: `/permissions` shows the rules the session enforces and the calls it refused.
1295
+
1296
+ - **Rules by source:** each allow, deny and ask rule the gate reads is listed under the settings file
1297
+ that declares it. Rules added by a CLI flag, a preset or a command are listed under "this session".
1298
+ A rule a settings file declares but the session does not enforce is not shown.
1299
+ - **Recent denials:** the latest refused calls, most recent first, with the reason: a rule or the
1300
+ mode, the user declining, or no one available to approve.
1301
+ - New contracts: `Session.getRecentPermissionDenials()`, `PermissionEnforcer.getRecentDenials()`,
1302
+ `IPermissionDenial`, the `permissionRules` host adapter (`createSettingsPermissionRulesAdapter`),
1303
+ and `getPermissionRules` / `listRecentDenials` on `ICommandPermissionModeAdapter`. Settings
1304
+ provenance now covers `permissions.ask`.
1305
+
1306
+ - b70fa3d: `robota --safe-mode` starts a session with every customization off, to rule one out in one run.
1307
+
1308
+ - **Off:** project and user instruction files, skills, custom commands, agent definitions, output
1309
+ styles, external presets, plugins, hooks from every settings layer, and MCP servers.
1310
+ - **Unchanged:** provider, model, built-in tools and permissions work as usual. Nothing on disk
1311
+ changes.
1312
+ - **Project access:** the project starts Restricted whatever its trust decision, so safe mode also
1313
+ runs in print and serve mode.
1314
+ - **Notice:** a line at startup says that safe mode is on.
1315
+ - **Embedders:** `startCli({ safeMode: true })` does the same as the flag.
1316
+ - **New framework option:** `skipConfiguredHooks` on interactive and headless sessions, also
1317
+ carried by the TUI and serve session options.
1318
+
1319
+ - 2711ec6: One broken skill or agent file no longer stops the session.
1320
+
1321
+ Skill, command and agent definitions are shared with other hosts through `.claude`, and those hosts
1322
+ define fields of their own. The frontmatter decoder now validates only the fields robota owns and
1323
+ ignores the rest (nested `metadata` entries included); a malformed value of an owned field is still
1324
+ refused. A refused file is skipped with a single warning and still claims its name, so a
1325
+ lower-priority definition cannot stand in for it. An empty `argument-hint` reads as no hint. When
1326
+ initialization does fail, the session reports the cause to readiness probes instead of "not
1327
+ initialized", so the terminal shows the reason at once rather than a 15-second timeout.
1328
+
1329
+ The terminal also stops printing type names for message-less telemetry records, keeps its own notices
1330
+ in place across a history sync so the following answer is not skipped, and CLI diagnostics print
1331
+ their context instead of `[object Object]`, through the console so Ink renders them above the frame.
1332
+
1333
+ - 4dd45cc: `/peers` shows how each other local session's workspace relates to this one's: `same worktree`,
1334
+ `same repo`, `different repo`, or `workspace unknown`.
1335
+
1336
+ A session now publishes a workspace claim with its rendezvous entry — the root commits reachable
1337
+ from HEAD, a SHA-256 of its normalized `origin` URL (never the URL itself), and the real path of its
1338
+ worktree — and re-reads it as it runs, so a first commit or a checkout does not leave it stale. The
1339
+ reader does not take the claim as written: it reads git at the claimed path itself, and a claim whose
1340
+ contents disagree is shown as `workspace claim mismatched, not believed` and relates to nothing. Those
1341
+ git reads are local-only and asynchronous, run only for the view that shows the relation (and for
1342
+ the sender of an incoming peer message), and are cached per announcement. The relation also reaches
1343
+ the peer-turn origin, computed by the receiver; a relation the sender put on the wire is discarded,
1344
+ and the admission never carries it.
1345
+
1346
+ The relation is display and routing information only and is never an authorization input.
1347
+
1348
+ Additive: `agent-interface-session-mobility` exports `TWorkspaceRelation` and gains the optional
1349
+ `IPeerOrigin.workspaceRelation`; `agent-framework`'s `ILocalPeerSummary` gains the optional
1350
+ `workspaceRelation` and `workspaceClaim`, and `ICommandLocalPeersAdapter` the optional
1351
+ `listWithWorkspace()`.
1352
+
1353
+ - 4c5148e: ARCH-005 Stage S2 — `robota` is now expressed as an `IProductProfile` and assembled by `assembleProduct`;
1354
+ the hand-wired composition root in `agent-cli` is gone.
1355
+
1356
+ - **`@robota-sdk/agent-product`** — provider construction returns IN-KERNEL. `assembleProduct` builds the
1357
+ provider from `providerDefinitions` + the shell's already-resolved `providerSettings` via agent-core's
1358
+ pure `createProviderFromConfig`; `provider` is now an OPTIONAL injected override. Both are optional, so a
1359
+ Mode A profile can carry only `providerDefinitions`. The fold stays pure and IO-free — every
1360
+ settings/env/file read still happens in the shell. Adds `IAssembledProduct.buildRuntimeOptions`, the pure
1361
+ overlay `buildRuntime` delegates through, and `IAssembledProduct.providerDefinitions`.
1362
+ **Breaking for pre-release consumers:** `IProductProfile.providerDefinitions` is now required and
1363
+ `IProductProfile.provider` / `IAssembledProduct.provider` are now optional.
1364
+ - **`@robota-sdk/agent-framework`** — a scoped, additive session seam: `agentDefinitions` on
1365
+ `TInteractiveSessionOptions` / `ICreateSessionOptions`, composed into the built-in agent tier ahead of
1366
+ `BUILT_IN_AGENTS`, so capability-pack subagents actually reach the runtime. Precedence: discovered
1367
+ project/user definitions > injected > built-in. `AgentDefinitionLoader` now dedupes within that tier
1368
+ (first wins). Absent ⇒ unchanged behavior.
1369
+ - **`@robota-sdk/agent-transport` / `@robota-sdk/agent-transport-tui`** — forward the optional
1370
+ `agentDefinitions` through the headless and TUI channels so every robota surface carries the seam.
1371
+ - **`@robota-sdk/agent-cli`** — `robota`'s identity (branding, provider surface, presets,
1372
+ `packs: [codingPack]`, base command modules, injected transports/runners/subagent factory) is declared as
1373
+ data in a product profile and folded by `assembleProduct`. The coding command modules (`/shell`,
1374
+ `/editor`) now come from `pack-coding` rather than the base set, so the pack is load-bearing. What remains
1375
+ in the CLI is product-shell only: arg parsing, settings/file IO, terminal notices, first-run/init/
1376
+ `--configure`, memory + session-resume UX, and print/serve/TUI mode dispatch.
1377
+
1378
+ End-user `robota` behavior is unchanged in substance — the assembled command-module set, provider surface,
1379
+ tool set, subagent roster, and preset resolution all match the pre-change assembly — with one accepted
1380
+ cosmetic delta: `/shell` and `/editor` now appear at the END of `/help` output and of the slash-command
1381
+ autocomplete popup rather than mid-list, because they arrive from `pack-coding` and both surfaces render in
1382
+ module-insertion order. Same commands, same behavior, different position.
1383
+
1384
+ - 37af5dc: ARCH-006 + ARCH-007 — the capability-pack TOOL axis reaches parity with the command and subagent axes,
1385
+ and `robota` consumes the composition kernel's RUNTIME SEAM instead of only its materials.
1386
+
1387
+ - **`@robota-sdk/agent-framework` (ARCH-006)** — the default tool set is no longer hard-coded.
1388
+ `createSession` accepts `defaultTools`, which REPLACES the `createDefaultTools()` tier (`[]` suppresses
1389
+ it entirely) — the tool-axis mirror of NEUT-003's `builtInAgents` seam for subagents. The assembled
1390
+ list `defaultTools ⊕ additionalTools ⊕ goalTool` is now **deduplicated by tool name, first occurrence
1391
+ wins**, the same rule `AgentDefinitionLoader` applies within the subagent built-in tier. So a
1392
+ contributed tool with a NEW name is additive, a contributed tool that mirrors a framework default is
1393
+ deduped rather than listed twice, and a product can hand its whole tool surface to its capability
1394
+ packs. A name collision keeps the framework default and drops the contribution: the default tier is
1395
+ built WITH the session context (`cwd` supplies `agent-tools`' working-directory path guard, plus the
1396
+ sandbox client and retrieval adapter) and an already-constructed contribution carries none of it, so
1397
+ replacement is expressible only through the explicit `defaultTools` seam — never as a side effect of a
1398
+ collision. The edit-checkpoint wrap now covers the assembled set, so a pack-contributed `Write`/`Edit`
1399
+ is checkpointed too. Option threaded through `ICreateSessionOptions` / `IInitOptions` /
1400
+ `IInteractiveSessionStandardOptions`. Absent `defaultTools` and absent a duplicate name, every existing
1401
+ path is byte-identical.
1402
+ - **`@robota-sdk/agent-product` (ARCH-007)** — `buildRuntimeOptions` no longer overwrites a
1403
+ caller-supplied `commandModules`. A shell that has already narrowed the merged `base ⊕ packs` superset
1404
+ (as `robota` does with its preset's enabled/disabled delta) keeps that selection; the assembled set is
1405
+ overlaid only when the caller left it unset — the same rule `permissionMode` already followed.
1406
+ - **`@robota-sdk/agent-cli` (ARCH-007)** — `startCli` now routes through
1407
+ `product.buildRuntimeOptions(...)`. The shell resolves its own session inputs and the kernel lays the
1408
+ product-owned materials on top: the packs' tools (`additionalTools`), the packs' subagents
1409
+ (`agentDefinitions`), and the default preset's permission posture when `--permission-mode` left it
1410
+ unset. The hand-threaded `product.subagents` path and the three per-surface
1411
+ `args.permissionMode ?? resolvedPreset.permissionMode` expressions are gone — every surface binds to
1412
+ the one kernel result.
1413
+
1414
+ End-user `robota` behavior is unchanged: the assembled command-module set, provider surface, tool set,
1415
+ subagent roster, preset resolution, and permission posture all match the pre-change assembly.
1416
+
1417
+ - 2ebff01: Emit the complete persisted checkpoint and branch lifecycle, forward plan, context-refresh, and
1418
+ branch events through protocol transports, and render deterministic bounded notices in the TUI.
1419
+ Transport-owned delivery failures now enter the owning carrier cleanup lifecycle without reversing
1420
+ an already-committed session operation.
1421
+ - b078afa: Forward the runtime-owned session store into headless sessions by default while preserving explicit
1422
+ per-session override and disable semantics.
1423
+ - 0f98419: ARCH-037 — published-contract hygiene.
1424
+
1425
+ **Breaking for anyone importing these from `@robota-sdk/agent-interface-transport`** — hence `major`,
1426
+ matching ARCH-031's precedent for a barrel that loses names (a `minor` would file the removal under
1427
+ "Minor Changes" and a beta consumer scanning for breaking changes would meet it as a `TS2305` after
1428
+ upgrading instead). The package is
1429
+ pre-release and the repo keeps no compatibility shims, so the names are removed rather than deprecated;
1430
+ both are re-exports of types `@robota-sdk/agent-core` owns and still exports under the same names.
1431
+
1432
+ - `IActionRequest` — import from `@robota-sdk/agent-core`.
1433
+ - `TBackgroundPermissionPolicy` — import from `@robota-sdk/agent-core`.
1434
+
1435
+ `TActionResponse` deliberately STAYS. It is the one path by which `agent-transport-gui` and
1436
+ `agent-transport-protocol` can name the type: neither may depend on `agent-core`, and `agent-core` is
1437
+ the bottom layer, so the type cannot move down either. It is now a named exception carrying that
1438
+ reasoning in the source.
1439
+
1440
+ **Added** to `@robota-sdk/agent-framework`: `ICreateDefaultToolsOptions`. `createDefaultTools` was
1441
+ exported without it, so a consumer could call the function but could not name what it must pass —
1442
+ they had to reverse-engineer the shape or cast into it. A new `barrel-parameter-types` harness floor
1443
+ now fails on that shape rather than leaving it to review.
1444
+
1445
+ `@robota-sdk/agent-executor` is a patch only: it now sources `TBackgroundPermissionPolicy` from
1446
+ `@robota-sdk/agent-core` (which it already depends on) instead of through the interface package. Its
1447
+ own published surface is unchanged.
1448
+
1449
+ - d312755: Provider DIP Stage D (ARCH-PROVIDER-005): invert the skill node's dependency on the
1450
+ agent-framework assembly. New `ISkillExecutionPort` contract in
1451
+ `@robota-sdk/agent-interface-transport`; `@robota-sdk/agent-framework` exports
1452
+ `createSkillExecutionPort()`; `@robota-sdk/dag-node-skill` now requires an injected
1453
+ `skillPort` (via `ISkillNodeDefinitionOptions.skillPort`) and no longer depends on
1454
+ `agent-framework`. The concrete port is injected at the `dag-nodes-default` composition
1455
+ root. Closes ARL-11 (skill-half).
1456
+
1457
+ BREAKING (@robota-sdk/dag-node-skill): `SkillNodeDefinition`/`SkillResolverRuntime` now
1458
+ require an injected `skillPort`; the no-arg `createSkillNodeDefinition()` factory is removed.
1459
+
1460
+ - 1e3f91a: CMD-004 Phase 2 Stage E (breaking, beta line): the legacy `TCommandEffect` union and
1461
+ `ICommandResult.effects` are DELETED. Commands emit the split contract directly —
1462
+ `hostActions` (session-executed via `ICommandHostAdapters`; works headless and remote) and
1463
+ `uiIntents` (requester-routed `ui_intent` session events with UI-neutral `show-*` names).
1464
+ Final carriers for the former notification effects: `session_renamed` and the new
1465
+ `history_cleared` are BROADCAST session events (forwarded to every WS surface, folded by the
1466
+ TUI transcript/title and the GUI reducer's new `sessionName`/transcript-reset state);
1467
+ `session-execution-started` rides `result.data.sessionExecution`; the plugin-registry refresh
1468
+ rides `result.data.pluginRegistryReloaded`. A mechanical grep floor
1469
+ (`command-effect-grep-floor.test.ts`) keeps `tui-requested`/`TCommandEffect`/`effects:` out of
1470
+ every `packages/*/src` production tree.
1471
+ - 4b76cfa: NEUT-005 (wave 2): restore an actionable context-capacity hint at the surface tier, neutrally. The zero-dependency `agent-core` layer emits a product-neutral hard-capacity notice and exposes the `IAgentConfig.contextCapacityHint` seam (wave 1). This wave wires that seam end-to-end without baking product vocabulary into a neutral library:
1472
+
1473
+ - `agent-session`: `ISessionOptions.contextCapacityHint` is forwarded into the Robota agent config (`buildRobota`), making the core seam reachable from the consuming layer.
1474
+ - `agent-framework`: new `deriveContextCapacityHint(commandModules)` derives the concrete remediation wording from the surface's OWN registered command set (names a registered `compact` command → `"Run /compact and retry."`; `undefined` when none, leaving the neutral core default). It is applied automatically in interactive session assembly across the TUI, print, and `--serve` surfaces.
1475
+ - `agent-cli`: the default command set registers `/compact`, so end users regain the actionable hint.
1476
+ - `agent-interface-transport`: reworded the `'allow-project'` permission comment so it no longer hardcodes a storage path (the location is owned by the consuming layer), matching the `agent-session` twin.
1477
+
1478
+ - d9bd9ec: Framework neutrality batch (NEUT-001/003/004/007): `planSelfHostingVerification` now requires injected
1479
+ command templates (repo-process literals evicted from the library); built-in agent set, subagent prompt
1480
+ suffix, and self-verification content are injectable; `claudeMd` renamed to `projectNotesMd` (breaking,
1481
+ beta line); `.agents/tasks` context injection is now opt-in via `taskContext` settings and the unused
1482
+ `updateTaskFileStatus` write API was removed; memory candidate-extractor trigger/vocabulary policy is
1483
+ constructor-injectable with the previous bilingual/dev set as the documented default; session-name
1484
+ sanitizer is Unicode-aware (non-Latin titles preserved).
1485
+ - 90e7a10: The default background observer warning code and exported `OBSERVER_FAILURE_WARNING_CODE` value
1486
+ change from `ROBOTA_BACKGROUND_OBSERVER_FAILURE` to `BACKGROUND_OBSERVER_FAILURE`. Hosts matching
1487
+ the old warning code should match the new neutral code or provide `observerFailureWarningCode` in
1488
+ their background manager or session options. The Robota CLI supplies its existing code explicitly
1489
+ across print, goal, serve, MCP, and TUI sessions.
1490
+ - fcb0da3: PAYLOAD-2153: make external-payload replay stable across Linux, macOS, and Windows.
1491
+
1492
+ - Add the domain-free `@robota-sdk/agent-file-authority` leaf with bounded, root-relative reads over retained native handles and a typed, path-safe refusal taxonomy.
1493
+ - Route session replay and framework project reads through the shared authority while preserving their existing domain-specific budgets, integrity checks, and error mappings.
1494
+ - Expose the canonical safe session-id predicate through the framework facade so CLI exact-session lookup stays within the SDK package boundary.
1495
+ - Package the pinned native bridge in clean-installed Node CLI archives and exact-host standalone Bun binaries, refusing unsupported or mismatched targets before artifact mutation.
1496
+
1497
+ - 9665c6e: Make the permission and "ask the user" flows transport-neutral (REMOTE-007 / B4-2a). A session now
1498
+ emits `permission_request` / `ask_request` / `prompt_resolved` events and exposes
1499
+ `resolvePermission` / `resolveAsk`, so any attached surface — local TUI, a WS/WebRTC driver, or a web
1500
+ UI — can render and answer the SAME prompt (local == remote). The framework builds event-emitting
1501
+ default handlers bound to the session emitter (id-keyed parking, fail-closed on zero listeners / on
1502
+ detach / backstop, teardown drain on abort/cancelQueue/shutdown), replacing the injected
1503
+ askHandler/permissionHandler at their source. `getUserInteraction()` is gated on the `ask_request`
1504
+ listener count so the headless "no-human ⇒ proceed" contract is preserved. The WS protocol carries the
1505
+ new events + `permission-response` / `ask-response` verbs, and WebRTC gets them for free via the shared
1506
+ handler. No `/remote-control` enable path is added.
1507
+ - 44393be: Add the `/remote-control` enable path (REMOTE-008 Stage B4-2b) — turn on P2P remote control locally, get
1508
+ a QR + link, and a paired device co-drives the SAME live session over pairing-gated WebRTC. The command
1509
+ is a declarative trigger returning `remote-control-enable-requested`/`-stop-requested` effects (SSOT
1510
+ agent-interface-transport) and reads state via a new `ICommandHostAdapters.remoteControl.getStatus()`;
1511
+ the TUI dispatches the effects to injected callbacks; all transport construction lives at the agent-cli
1512
+ composition root (`WsSignalingClient` + pairing-gated `WebRtcTransport`, relay URL from
1513
+ `transports.webrtc.options.relayUrl`, QR/link rendered into history). Fail-closed: no relay configured ⇒
1514
+ does nothing; pairing mismatch/timeout ⇒ the session is never exposed. Consumes REMOTE-007 so a paired
1515
+ remote owner answers their own permission/ask prompts over the WebRTC channel.
1516
+ - c7fa299: REMOTE-003 + REMOTE-006 (merged — net behavior; the interim deny-by-default gate never appeared in a
1517
+ published version): commands now carry an invocation source. A `'remote'` value is added to the command
1518
+ invocation source (SSOT relocated to `@robota-sdk/agent-interface-transport`, re-exported by
1519
+ `agent-framework`) and an optional `source` is threaded into
1520
+ `IInteractiveSession.executeCommand(name, args, source?)` (defaults to `'user'`, so all local callers are
1521
+ unchanged). The shared `createWsHandler` tags transport-origin commands `'remote'`. Policy: local == remote
1522
+ (owner principle) — pairing is the sole trust boundary, so a transport-origin command runs exactly as a
1523
+ locally-typed one under the universal permission system (permission modes + PermissionEnforcer + the
1524
+ ask/approval handler); `createDefaultRemoteCommandPolicy()` allows by default. The `IRemoteCommandPolicy`
1525
+ seam remains as an OPTIONAL, user-configured restriction, and the genuinely-remote WebRTC path stays
1526
+ pairing-gated.
1527
+ - fde558e: Forward organization policy through TUI, print, and goal sessions so blocked commands are enforced consistently. Preserve print/goal preset generation, language, prompt-seed, and structured-response options through the headless channel, and guard declared session-capability projections against silent field loss.
1528
+ - cbee54e: Surface unmatched preset command-module names instead of silently dropping them (INFRA-032). A preset `enabledCommandModules`/`disabledCommandModules` entry that matches no built command module — a short form like `"editor"` instead of `agent-command-editor`, or a typo — is now reported as a non-fatal notice on both the startup `--preset` path (CLI terminal) and the in-session `/preset` path (command result). Detection lives once in agent-framework's new pure `findUnknownModuleNames`, and agent-command's duplicate module filter now delegates to the framework's `selectCommandModules`; `createDefaultCommandModules` returns `{ modules, unknownModuleNames }`.
1529
+
1530
+ ### Patch Changes
1531
+
1532
+ - 5307f8a: Discriminate `IBackgroundTaskResult` by kind, the same way `TBackgroundTaskRequest` already is:
1533
+ `exitCode`/`signalCode` exist only on the `process` member and `usage` only on the `agent` member,
1534
+ instead of being optional-and-unreachable on every kind. `IBackgroundTaskResult<K>` narrows to the
1535
+ kind-specific member; called with no type argument it is still the full union, which is what
1536
+ `IBackgroundTaskState.result` continues to hold (that field stays undiscriminated — a later change).
1537
+ `ISubagentJobResult` is now derived as `Omit<IBackgroundTaskResult<'agent'>, 'kind'>` rather than a
1538
+ hand-maintained `Omit<IBackgroundTaskResult, 'kind' | 'exitCode' | 'signalCode'>`.
1539
+
1540
+ `IBackgroundTaskHandle` gains the same kind parameter as `IBackgroundTaskStart`: a runner declared
1541
+ for kind `K` resolves its handle's `result` to `IBackgroundTaskResult<K>`, so a caller that starts a
1542
+ known-kind runner gets a correctly-narrowed result with no cast, and reading a cross-kind field on it
1543
+ is a compile error. Consumers reading `state.result` through the generic (kind-erased) manager or
1544
+ task-state path are unaffected in behavior, but a `.exitCode`/`.signalCode`/`.usage` read there must
1545
+ now narrow on the result's own `kind` first, since the fallback default keeps `IBackgroundTaskResult`
1546
+ as the full union rather than the previously flat, always-present shape.
1547
+
1548
+ `agent-session`'s session-record decoder now rejects a persisted result carrying a field outside its
1549
+ own kind (e.g. an `'agent'` result with `exitCode`) as corrupt, reported at that field's own path —
1550
+ the same corruption-reporting style the taskId/kind identity check already uses.
1551
+
1552
+ **Breaking for `@robota-sdk/agent-interface-execution` and `@robota-sdk/agent-executor`**: code that
1553
+ read `exitCode`/`signalCode`/`usage` off an unnarrowed `IBackgroundTaskResult`, or that implemented
1554
+ `IBackgroundTaskHandle`/a custom runner without specifying its kind parameter, needs to narrow on
1555
+ `result.kind` (or specify the kind parameter) before those fields are visible again.
1556
+
1557
+ - b462ee7: Discriminate `IBackgroundTaskState` by kind, the same way `TBackgroundTaskRequest` and (as of the
1558
+ prior change) `TBackgroundTaskResult` already are. Fields only one runner ever produces now live
1559
+ only on that kind's member instead of being optional-and-cross-kind-reachable on every kind:
1560
+
1561
+ - `agent`-only: `agentType`, `isolation`, `resumeSessionId`, `promptPreview`, and the
1562
+ worktree-isolation fields (`worktreePath`, `branchName`, `worktreeStatus`, `worktreeNextAction`,
1563
+ `worktreeBaseRevision`, `parentWorktreeStatus`).
1564
+ - `scheduled`-only: `schedule`, `nextFireAt`.
1565
+ - Every kind except `agent`: `commandPreview` (a process command, an MCP tool-invocation summary, or
1566
+ a schedule's shell command / wake instruction).
1567
+ - `state.result` is now `IBackgroundTaskResult<K>` — correlated with `state.kind`, not the free
1568
+ full-result union.
1569
+
1570
+ `pid`, `logPath`, and `transcriptPath` stay on the shared base rather than becoming agent- or
1571
+ process-exclusive: the runner handle SPI already reports them for whichever runner's process
1572
+ happens to produce them, and a subagent run via the worktree/child-process runner carries a `pid`
1573
+ exactly as a `process`-kind task does. `timeoutReason` also stays base — session restore sets
1574
+ `'stale_worker'` on any non-terminal, non-rearmable task regardless of kind, not only agent ones.
1575
+
1576
+ `IBackgroundTaskState<K>` narrows to the kind-specific member; called with no type argument it is
1577
+ still the full union. The session-record decoder (`agent-session`) now rejects a persisted task
1578
+ state carrying a field outside its own kind as corrupt, reported at that field's own path, the same
1579
+ way it already rejects a `state.result` whose kind disagrees with `state.kind`.
1580
+
1581
+ **Breaking for `@robota-sdk/agent-interface-execution` and `@robota-sdk/agent-executor`**: code that
1582
+ read a kind-specific field (e.g. `state.agentType`, `state.schedule`, `state.commandPreview`) off an
1583
+ unnarrowed `IBackgroundTaskState` needs to narrow on `state.kind` first, since the fallback default
1584
+ no longer carries every field on every kind. `agent-session`, `agent-framework`, and `agent-command`
1585
+ land the corresponding narrowing at every read site the type change touched; no runtime behavior
1586
+ changes there beyond the state decoder's new corruption checks.
1587
+
1588
+ - 08a9bd6: The CLI update-check cache is now written owner-only (`0600`) into an owner-only directory (`0700`), instead of inheriting the process umask.
1589
+
1590
+ SEC-020 made every writer into the CLI's own store owner-only and scoped this one file out as "not a session record", which left it the only file the product created there at `0644` under a permissive umask. The store directory is the confidentiality boundary and the file modes are the layer beneath it — an exception in that layer is only invisible while the layer above it holds.
1591
+
1592
+ The write now goes through `writeOwnerOnlyFile`, which creates the parent owner-only and sets the mode at creation rather than tightening afterwards, so the file never exists readable. A cache an older version left at `0644` is repaired at its next write.
1593
+
1594
+ `getUserUpdateCheckCachePath`, `readUpdateCheckCache`, `writeUpdateCheckCache` and `IUpdateCheckCache` moved to an internal `update-check-cache` module. **They are exported from the package root under the same names, so no import changes.**
1595
+
1596
+ - 267af5f: The execution containment seam states where tools run.
1597
+
1598
+ - **`ISandboxClient.filesystem`** (`'shared' | 'separate'`, absent means `separate`).
1599
+ - With a **separate** filesystem (E2B, in-memory), every file tool goes through the sandbox, and
1600
+ `Glob`/`Grep`, which can only read the host, are withheld. Previously a remote sandbox still
1601
+ offered host-reading search tools beside sandbox-writing edit tools.
1602
+ - With a **shared** filesystem (OS-level confinement over the host's files), file tools stay on
1603
+ the host under the path guard, and only commands go through the sandbox.
1604
+ - **`describeExecutionContainment` / `routesFilesThroughSandbox`** name the containment (`host`,
1605
+ `sandbox-shared`, `sandbox-separate`) instead of inferring it from an absent value.
1606
+ - **`robota doctor` reports `execution.containment`.** Robota composes no sandbox today, so the
1607
+ doctor says shell commands run unconfined on the host and the permission rules are the only
1608
+ boundary. The CLI composition and the doctor read the same value.
1609
+ - **The `Agent` and `BackgroundProcess` tools no longer fall back to `process.cwd()`** when they
1610
+ were built without an execution root. They report an assembly error instead, as the file tools
1611
+ already did (ARCH-010).
1612
+
1613
+ - baa6863: **ARCH-025: `SubagentManager.wait()` carries `usage`, and `IScheduleEditPatch` becomes nameable.**
1614
+
1615
+ Two declared contract fields were unreachable by the projections meant to carry them.
1616
+
1617
+ `wait()` returned `{ jobId, output, metadata }` and dropped `usage`, though `ISubagentJobResult.usage` is
1618
+ declared (ANALYTICS-001) and populated end to end. The field was born dropped: the commit that added
1619
+ `usage` to `toBackgroundResult` never touched `wait()` two hundred lines above. It now uses the same
1620
+ conditional spread, so the two directions of the hop read identically.
1621
+
1622
+ This is a **contract repair, not a user-visible one** — worth stating because an earlier draft of this work
1623
+ claimed otherwise. `/cost` is fed by the `background_task_completed` event path and already worked;
1624
+ `wait()` feeds `IOrchestrationStepResult.usage`, which nothing currently reads. Forward-provisioned
1625
+ surfaces carry the same quality bar, which is why it is fixed rather than deferred.
1626
+
1627
+ `IScheduleEditPatch` is the parameter type of the public `IBackgroundTaskManager.editScheduledTask` and
1628
+ `IBackgroundTaskHandle.editSchedule`, but it was on neither barrel, so a consumer of those methods could
1629
+ not name its own parameter type. It is now exported (**new export → minor**), and both structural
1630
+ re-declarations in `agent-framework` are gone — `IAgentJobHostContext.editSchedule`, the interface every
1631
+ command module programs against, and the class method implementing it.
1632
+
1633
+ ```ts
1634
+ // before — the caller could not name the type it had to pass
1635
+ editSchedule(
1636
+ taskId: string,
1637
+ patch: { cronExpression?: string; agentInstruction?: string; command?: string },
1638
+ ): Promise<void>;
1639
+
1640
+ // after
1641
+ import type { IScheduleEditPatch } from '@robota-sdk/agent-executor';
1642
+ editSchedule(taskId: string, patch: IScheduleEditPatch): Promise<void>;
1643
+ ```
1644
+
1645
+ Not a surface change for `agent-framework`: TypeScript is structural, so every existing implementer and
1646
+ caller satisfies the named type unchanged.
1647
+
1648
+ **Deliberately not in this change.** `providerProfile` is a dead contract field whose disposition belongs
1649
+ with the seam, and the seam itself — one field family declared three times and carried by hand-written
1650
+ literals nothing checks for totality — is filed as **ARCH-031** (issue #1747) after a `FOUNDATIONAL`
1651
+ finding-depth verdict. ARCH-031's derivation will subsume the `wait()` repair rather than undo it.
1652
+
1653
+ - 4f3c075: Assemble complete, verified package generations before switching build output; preserve the previous generation on build failure and pack only verified regular-file images. Include copied CLI web assets in affected-build ordering and artifact transfer. Preserve the CLI version in managed build paths. Public runtime contracts remain compatible (patch).
1654
+ - bed26ea: Fix: an in-flight autonomous `goal` is no longer lost on session resume. `fromSessionRecord` was a hand-enumerated field whitelist that omitted `goal` (while the write path persisted it), so the goal silently vanished on load. The read path is now a structural mirror of the write path (`{ ...session }`), so every persisted field — including `goal` — round-trips, and a future field cannot be dropped by omission (ARL-08 / DATA-006). `ISessionRecord` gains an opaque `goal?: unknown` for contract honesty.
1655
+ - 07b627f: A local peer can now be answered, and what its turn may do depends on where it runs.
1656
+
1657
+ - `agent-core`: the permission evaluator takes a peer turn's authority as one more input
1658
+ (`IPermissionEvaluationContext.peerTurn`), decided after the deny list and ceiling and before
1659
+ bypass and allow rules. A peer on another host uses no tool. A peer on the same host may use an
1660
+ inspect-class tool that declares `workspacePaths`, only when every named location resolves inside
1661
+ the workspace and is not a credential (`isSecretPath`); write and execute tools are refused unless
1662
+ enabled, and then every use asks. A tool declaring `repliesToPeer` exists only in a peer turn and
1663
+ asks once the turn used another tool. New: `isToolAvailableInPeerTurn`, `TPeerReach`,
1664
+ `IPeerTurnAuthority`. `IRunOptions.withholdHostedTools` leaves a provider's hosted tools out of a
1665
+ run's requests (`nativeWebTools` with `false` withholds a hosted tool for one call).
1666
+ - `agent-tools`: `Read` and `Glob` declare the arguments that say where they look. `Grep` does not:
1667
+ it reads files it was never named, so a peer turn does not get it.
1668
+ - `agent-session`: `ISessionRunOptions.peerReach` makes a run a peer turn for the permission policy;
1669
+ every ask in it needs a fresh approval, and its requests carry no provider-hosted tool. `ISessionOptions.allowPeerChanges` enables write and execute
1670
+ tools for same-host peer turns.
1671
+ - `agent-interface-session`: `ISubmitOptions.peer` (`IPeerTurnContext`) carries a peer turn's reach,
1672
+ the message it answers and the session a reply goes to.
1673
+ - `agent-interface-session-mobility`: `IPeerMessage.inReplyTo` threads a conversation;
1674
+ `peerReachOf(admission)` maps admission to a reach.
1675
+ - `agent-framework`: a peer turn is offered what its origin allows, and a new `peer_reply` tool
1676
+ answers the peer that sent the message, threaded to it. The setting `peers.allowChanges` enables
1677
+ write and execute tools for same-host peer turns.
1678
+ - `agent-ui-terminal`: a permission prompt in a peer turn names the requesting peer.
1679
+ - `agent-cli`: incoming peer turns carry their reach and reply route; a conversation is limited in
1680
+ depth and in how often this session answers it, and a reply over a limit is not sent and the
1681
+ operator is told.
1682
+ - `agent-provider-anthropic`, `agent-provider-openai-compatible` (Qwen): a request whose
1683
+ `nativeWebTools` sets a hosted tool to `false` is sent without it.
1684
+
1685
+ - d0de5b2: A peer session's message now reaches the model as a peer's, and a peer turn runs on the external
1686
+ baseline.
1687
+
1688
+ - `agent-core` marks every user message whose driver id starts with `peer:` as
1689
+ `<peer_message from="…">…</peer_message>` in the outgoing request — both the round and the forced
1690
+ summary — while the stored history keeps the text as sent. Wrapper-shaped text in user and tool
1691
+ messages is escaped, and an id that is not a plain identifier is printed as `peer:unverified`.
1692
+ New exports: `peerDriverOf`, `printablePeerDriver`.
1693
+ - `agent-session`'s conversation transcript (compaction, advisor) labels a peer message with the same
1694
+ printable id, so no rendering echoes a sender-chosen id that is not a plain identifier.
1695
+ - `agent-framework` runs a `peer` turn like an `external` one — no tools (`toolChoice: 'none'`), no
1696
+ `@path` expansion, no context references — and adds a per-turn system statement that the message
1697
+ came from another session and carries no authority. A `peer` turn must carry a `peer:` driver id.
1698
+
1699
+ - dd444c1: Bind interactive prompt, fork-skill, and foreground-command execution cleanup to an opaque
1700
+ controller-owned claim so stale cleanup cannot release another active operation or drain its queued
1701
+ input.
1702
+ - 833afe1: Remove the remaining polynomial-ReDoS backtracking (SEC-003, CodeQL `js/polynomial-redos`) and stop the DTLS fingerprint binding to SDP free text.
1703
+
1704
+ **`extractDtlsFingerprint` (agent-remote-pairing) — remote-reachable, pre-authentication.** Unlike the rest of this class, the SDP it parses arrives over the signaling relay, which the pairing design treats as untrusted, and it is parsed _before_ the channel-binding confirmation — on the browser peer, before `setRemoteDescription` too. Unanchored, `a=fingerprint:\S+\s+…` restarted from every offset in a non-space run: 5.0 s on a 400 KB SDP. It is now anchored to the start of an SDP line (`/^…/m`), which is linear and also stops the extractor from returning a value smuggled into another line's free text (`s=`, `i=`, an unrelated attribute) — text no DTLS stack reads, and which a relay controls. **Behaviour change:** a mid-line `a=fingerprint:` is no longer recognised. Every SDP a WebRTC stack emits puts the attribute at the start of its own line, so no real SDP is affected. A session-level line can still shadow a media-level one; that residual is recorded in the SEC-003 backlog.
1705
+
1706
+ **Trailing-run trims (agent-framework, agent-cli, agent-tools).** `replace(/-+$/, '')`-shaped regexes have no start anchor, so the engine retried the run from every offset inside it and each retry rescanned to the end — 3.0 s at 100 K characters, ~50 s at 400 K. The memory topic sanitiser, the provider profile-name sanitiser, the model-command tool-name projection, the npm registry URL builder, the git-worktree path-segment sanitiser and the sandbox-root normaliser now use linear index scans (`trimEdgeChars` / `trimTrailingChars` in agent-framework, local helpers elsewhere), proven equivalent to the regexes they replace over every string of the relevant alphabet up to 12 characters.
1707
+
1708
+ **Whitespace-ambiguity parsers (agent-framework).** The skill and agent-definition frontmatter list splitters used `/\s*,\s*/`, whose whitespace run overlapped nothing after it on a failed comma — 12.6 s on a 200 K run. They now split on `','`; the padding was already removed by the `.trim()` that follows, so the parsed lists are unchanged. The `.git` `gitdir:` pointer and the task-file open-item matcher used `\s*(.+)$` / `\s+(.+)$`, where `\s` and `.` both match a space; the capture is now pinned to start non-space, which accepts exactly the same inputs (verified exhaustively) and removes 14.5 s and 15.4 s worst cases.
1709
+
1710
+ **`WebFetch` HTML-to-text (agent-tools) — carried no CodeQL alert.** Found by sweeping for the same shapes rather than the flagged lines, and the only quadratic here whose input is a live response body from an arbitrary URL. `<[^>]+>`, `<script[\s\S]*?</script>` and `<style…>` each restarted from every opener that had no terminator: 12.6 s on 200 KB of `<`, and the 5 MB the fetch allows would have taken hours. All three are now single-pass scans, verified character-for-character identical to the regexes over ~800 K generated inputs.
1711
+
1712
+ Apart from the `extractDtlsFingerprint` anchoring noted above, no behaviour changes: every fix accepts the same inputs and produces the same values, and each ships an equivalence test pinning that.
1713
+
1714
+ - 7863b16: Create settings files owner-only (SEC-003, CodeQL `js/insecure-temporary-file`).
1715
+
1716
+ `writeSettings` persists `provider.apiKey` verbatim when a profile is configured without
1717
+ `--api-key-env` — the CLI even warns that the key is "stored as plain text in settings" — but the
1718
+ file was created with the process umask (measured `0644`/`0664`), leaving that credential readable
1719
+ by every user on the host. It is now created `0600`.
1720
+
1721
+ This is a permissions change only — file locations, names, formats, and APIs are unchanged. `mode`
1722
+ applies at creation, so a settings file that already exists keeps whatever mode it has; only newly
1723
+ created settings files are affected.
1724
+
1725
+ - 9814afc: Type-SSOT convergence (TYPE-003; re-audit CONTRACT-002/003/011/012 + RUNTIME-47 + STRUCT-04). Behavior is unchanged — this is a type-level refactor. `ITokenUsage` (agent-core) is confirmed as the usage-triple SSOT: `ISessionUsageTotals` and `IBackgroundTaskUsage` become aliases, and every inline `{ promptTokens; completionTokens; totalTokens }` copy (service/orchestration/executor/remote-client shapes) now references the SSOT (structurally identical → patch). The subagent-job contracts derive from the background-task SSOT — `TSubagentJobStatus = Exclude<TBackgroundTaskStatus, 'paused'>`, mode alias, and a `Pick`-projection `ISubagentJobState` — with a compile-enforced parity test so a drifting hand copy can no longer exist. `@robota-sdk/agent-session` is minor because the public `ISessionRecord` type is now the typed `IInteractiveSessionRecord` alias (previously a relaxed `unknown[]` mirror): runtime behavior of `SessionStore` is identical, but downstream code that assigned loose payloads to the record's fields may need explicit casts at its own trust boundary (the framework store facade's `as unknown as` cast bridge is deleted). agent-session's duplicate `@robota-sdk/agent-core` deps/devDeps declaration is also removed (STRUCT-04).
1726
+ - Updated dependencies [9c19c50]
1727
+ - Updated dependencies [7b6234c]
1728
+ - Updated dependencies [5307f8a]
1729
+ - Updated dependencies [b462ee7]
1730
+ - Updated dependencies [37b4bd7]
1731
+ - Updated dependencies [4eea54b]
1732
+ - Updated dependencies [30e5e50]
1733
+ - Updated dependencies [bb4696a]
1734
+ - Updated dependencies [2345c0b]
1735
+ - Updated dependencies [118fe0e]
1736
+ - Updated dependencies [240777e]
1737
+ - Updated dependencies [718bdf5]
1738
+ - Updated dependencies [50d2c9f]
1739
+ - Updated dependencies [1698be4]
1740
+ - Updated dependencies [a5961c9]
1741
+ - Updated dependencies [9368d00]
1742
+ - Updated dependencies [d4189b9]
1743
+ - Updated dependencies [9edae52]
1744
+ - Updated dependencies [4078a72]
1745
+ - Updated dependencies [4c73a0b]
1746
+ - Updated dependencies [af2f2ad]
1747
+ - Updated dependencies [267af5f]
1748
+ - Updated dependencies [196a900]
1749
+ - Updated dependencies [f336838]
1750
+ - Updated dependencies [34e50f0]
1751
+ - Updated dependencies [722e88a]
1752
+ - Updated dependencies [a5cc36e]
1753
+ - Updated dependencies [d23c848]
1754
+ - Updated dependencies [4dd45cc]
1755
+ - Updated dependencies [807d161]
1756
+ - Updated dependencies [fec722f]
1757
+ - Updated dependencies [e82215f]
1758
+ - Updated dependencies [52b7346]
1759
+ - Updated dependencies [9db63ee]
1760
+ - Updated dependencies [b078afa]
1761
+ - Updated dependencies [b078afa]
1762
+ - Updated dependencies [2ebff01]
1763
+ - Updated dependencies [2ebff01]
1764
+ - Updated dependencies [9db63ee]
1765
+ - Updated dependencies [2ebff01]
1766
+ - Updated dependencies [baa6863]
1767
+ - Updated dependencies [2d3b2c0]
1768
+ - Updated dependencies [4772067]
1769
+ - Updated dependencies [7b85767]
1770
+ - Updated dependencies [0f98419]
1771
+ - Updated dependencies [64ba748]
1772
+ - Updated dependencies [9fbab1b]
1773
+ - Updated dependencies [d312755]
1774
+ - Updated dependencies [a009f5b]
1775
+ - Updated dependencies [61db70f]
1776
+ - Updated dependencies [db80aba]
1777
+ - Updated dependencies [1e3f91a]
1778
+ - Updated dependencies [4f3c075]
1779
+ - Updated dependencies [475e085]
1780
+ - Updated dependencies [6085cad]
1781
+ - Updated dependencies [e477440]
1782
+ - Updated dependencies [9dcb5da]
1783
+ - Updated dependencies [a95ca85]
1784
+ - Updated dependencies [b6d14ce]
1785
+ - Updated dependencies [0382a51]
1786
+ - Updated dependencies [93d061d]
1787
+ - Updated dependencies [39554a1]
1788
+ - Updated dependencies [d28430a]
1789
+ - Updated dependencies [bed26ea]
1790
+ - Updated dependencies [1e40b5b]
1791
+ - Updated dependencies [7669851]
1792
+ - Updated dependencies [c6c56a6]
1793
+ - Updated dependencies [4b76cfa]
1794
+ - Updated dependencies [90e7a10]
1795
+ - Updated dependencies [fcb0da3]
1796
+ - Updated dependencies [07b627f]
1797
+ - Updated dependencies [d0de5b2]
1798
+ - Updated dependencies [9665c6e]
1799
+ - Updated dependencies [44393be]
1800
+ - Updated dependencies [c7fa299]
1801
+ - Updated dependencies [5134b3b]
1802
+ - Updated dependencies [ebd40a0]
1803
+ - Updated dependencies [833afe1]
1804
+ - Updated dependencies [d6b9404]
1805
+ - Updated dependencies [5c5ff23]
1806
+ - Updated dependencies [9814afc]
1807
+ - Updated dependencies [242a644]
1808
+ - @robota-sdk/agent-interface-execution@3.0.0-beta.80
1809
+ - @robota-sdk/agent-interface-command@3.0.0-beta.80
1810
+ - @robota-sdk/agent-executor@3.0.0-beta.80
1811
+ - @robota-sdk/agent-core@3.0.0-beta.80
1812
+ - @robota-sdk/agent-session@3.0.0-beta.80
1813
+ - @robota-sdk/agent-interface-session@3.0.0-beta.80
1814
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.80
1815
+ - @robota-sdk/agent-tools@3.0.0-beta.80
1816
+ - @robota-sdk/agent-interface-session-mobility@3.0.0-beta.80
1817
+ - @robota-sdk/agent-interface-analytics@3.0.0-beta.80
1818
+ - @robota-sdk/agent-tool-defaults@3.0.0-beta.80
1819
+ - @robota-sdk/agent-file-authority@3.0.0-beta.80
1820
+
1821
+ ## 3.0.0-beta.79
1822
+
1823
+ ### Patch Changes
1824
+
1825
+ - @robota-sdk/agent-core@3.0.0-beta.79
1826
+ - @robota-sdk/agent-executor@3.0.0-beta.79
1827
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.79
1828
+ - @robota-sdk/agent-session@3.0.0-beta.79
1829
+ - @robota-sdk/agent-tools@3.0.0-beta.79
1830
+
1831
+ ## 3.0.0-beta.78
1832
+
1833
+ ### Patch Changes
1834
+
1835
+ - Updated dependencies [6f308d1]
1836
+ - @robota-sdk/agent-core@3.0.0-beta.78
1837
+ - @robota-sdk/agent-executor@3.0.0-beta.78
1838
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.78
1839
+ - @robota-sdk/agent-session@3.0.0-beta.78
1840
+ - @robota-sdk/agent-tools@3.0.0-beta.78
1841
+
1842
+ ## 3.0.0-beta.77
1843
+
1844
+ ### Patch Changes
1845
+
1846
+ - Updated dependencies
1847
+ - @robota-sdk/agent-core@3.0.0-beta.77
1848
+ - @robota-sdk/agent-executor@3.0.0-beta.77
1849
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.77
1850
+ - @robota-sdk/agent-session@3.0.0-beta.77
1851
+ - @robota-sdk/agent-tools@3.0.0-beta.77
1852
+
1853
+ ## 3.0.0-beta.76
1854
+
1855
+ ### Patch Changes
1856
+
1857
+ - c0a6287: Relocate session feature logic out of the CLI shell and the transport (DQ-AUDIT-004):
1858
+
1859
+ - Extract session-log timing analysis into the new `@robota-sdk/agent-session-analytics` package (pure analysis over canonical session records — no duplicate types, no file I/O). `agent-cli`'s `session analyze` command shrinks to thin wiring and loads records via the new `createUserSessionStore()` / existing `createProjectSessionStore()` framework facades.
1860
+ - Move LLM-based session auto-naming (`generateSessionName`) from `agent-transport/tui` into `agent-framework` (session-lifecycle owner); the TUI transport now invokes it through the framework.
1861
+
1862
+ - 9df3a88: Split the consolidated `@robota-sdk/agent-transport` package into per-concern transport packages (DQ-AUDIT-005) so unrelated heavy dependencies (React/Ink, ws, Hono, MCP SDK) no longer share one publishable unit and are not dragged into non-TUI consumers' graphs:
1863
+
1864
+ - `@robota-sdk/agent-transport` — lean core: headless adapter + `TransportRegistry` + scripted-provider testing fixtures (no external runtime deps).
1865
+ - `@robota-sdk/agent-transport-tui` — React + Ink terminal UI.
1866
+ - `@robota-sdk/agent-transport-ws` — WebSocket transport + protocol (`agent-web-ui` now depends only on this for WS types).
1867
+ - `@robota-sdk/agent-transport-http` — Hono HTTP transport.
1868
+ - `@robota-sdk/agent-transport-mcp` — MCP server transport.
1869
+
1870
+ The default transport-registry wiring (pre-registering `WsTransport`) moves to the CLI composition root, removing the core→ws edge.
1871
+
1872
+ - 576af62: Fix `ConfigurationError: Agent must be fully initialized before changing model configuration` when running `/preset` (or any live model re-apply) on a fresh interactive session before the first message. The Robota agent initialized lazily on the first `run()`, but `setModel` requires full initialization. `Session.applyModelOptions` now awaits the new idempotent `Robota.ensureReady()` before `setModel`, and the preset live-switch path (`applyPresetToSession` → `executePresetCommand`) is async end-to-end. Adds a real cold-session regression test (no mocked Robota).
1873
+ - Updated dependencies
1874
+ - Updated dependencies
1875
+ - Updated dependencies
1876
+ - Updated dependencies [576af62]
1877
+ - @robota-sdk/agent-core@3.0.0-beta.76
1878
+ - @robota-sdk/agent-session@3.0.0-beta.76
1879
+ - @robota-sdk/agent-executor@3.0.0-beta.76
1880
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.76
1881
+ - @robota-sdk/agent-tools@3.0.0-beta.76
1882
+
1883
+ ## 3.0.0-beta.75
1884
+
1885
+ ### Patch Changes
1886
+
1887
+ - Agent preset system + live preset switching + context/history correctness fixes.
1888
+
1889
+ - **Preset system (PRESET-001~017):** new `@robota-sdk/agent-preset` package layering framework
1890
+ assembly options into named, selectable profiles (`default`, `autonomous-builder`, `careful-reviewer`,
1891
+ `neutral-executor`) plus user-authored external presets loaded from `~/.robota/presets/*.json`.
1892
+ - **Live preset switching:** `/preset` command (list + active marker + switch) and a TUI active-preset
1893
+ display. Switching live re-applies permission posture, model/effort, persona, command-module
1894
+ selection, parallel-subagents gating, and a self-verification system-prompt section via the single
1895
+ `applyPresetToSession` engine.
1896
+ - **CTX-001:** the TUI Context display + session auto-compact now use the accurate provider-based token
1897
+ estimate (system prompt + tool schemas included) instead of a crude history-only char heuristic.
1898
+ - **HIST-001:** conversation history is now append-only — removed the silent 100-message count cap that
1899
+ could drop early context; context size is managed solely by size-based compaction.
1900
+
1901
+ - Updated dependencies
1902
+ - @robota-sdk/agent-core@3.0.0-beta.75
1903
+ - @robota-sdk/agent-session@3.0.0-beta.75
1904
+ - @robota-sdk/agent-executor@3.0.0-beta.75
1905
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.75
1906
+ - @robota-sdk/agent-tools@3.0.0-beta.75
1907
+
1908
+ ## 3.0.0-beta.74
1909
+
1910
+ ### Patch Changes
1911
+
1912
+ - Architecture conformance release: doc-vs-code audit (INFRA-002), conformance skill system + GATE-CONFORMANCE blocking scan (INFRA-003), canonical-doc drift cleanup (INFRA-004~~011, BEHAVIOR-004), and the interface-type SSOT extraction to `@robota-sdk/agent-interface-transport` with a mechanically-enforced interface-import rule across packages and apps (DATA-001, INFRA-012~~014). Harness process lessons baked into skills (INFRA-015).
1913
+ - @robota-sdk/agent-core@3.0.0-beta.74
1914
+ - @robota-sdk/agent-executor@3.0.0-beta.74
1915
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.74
1916
+ - @robota-sdk/agent-session@3.0.0-beta.74
1917
+ - @robota-sdk/agent-tools@3.0.0-beta.74
1918
+
1919
+ ## 3.0.0-beta.73
1920
+
1921
+ ### Patch Changes
1922
+
1923
+ - @robota-sdk/agent-core@3.0.0-beta.73
1924
+ - @robota-sdk/agent-executor@3.0.0-beta.73
1925
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.73
1926
+ - @robota-sdk/agent-session@3.0.0-beta.73
1927
+ - @robota-sdk/agent-tools@3.0.0-beta.73
1928
+
1929
+ ## 3.0.0-beta.72
1930
+
1931
+ ### Patch Changes
1932
+
1933
+ - Emit context_update event after session restore so TUI status bar reflects correct context usage immediately on /resume.
1934
+ - @robota-sdk/agent-core@3.0.0-beta.72
1935
+ - @robota-sdk/agent-executor@3.0.0-beta.72
1936
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.72
1937
+ - @robota-sdk/agent-session@3.0.0-beta.72
1938
+ - @robota-sdk/agent-tools@3.0.0-beta.72
1939
+
1940
+ ## 3.0.0-beta.71
1941
+
1942
+ ### Patch Changes
1943
+
1944
+ - fix(context): unify token estimation to single SSOT — status bar and /context list now use the same serialized JSON estimate
1945
+ - Updated dependencies
1946
+ - @robota-sdk/agent-core@3.0.0-beta.71
1947
+ - @robota-sdk/agent-executor@3.0.0-beta.71
1948
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.71
1949
+ - @robota-sdk/agent-session@3.0.0-beta.71
1950
+ - @robota-sdk/agent-tools@3.0.0-beta.71
1951
+
1952
+ ## 3.0.0-beta.70
1953
+
1954
+ ### Patch Changes
1955
+
1956
+ - CLI UX fixes: /context list full LLM context breakdown (CLI-B10), logo resize fix (CLI-B03), token estimates in context list (CLI-B04)
1957
+ - @robota-sdk/agent-core@3.0.0-beta.70
1958
+ - @robota-sdk/agent-executor@3.0.0-beta.70
1959
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.70
1960
+ - @robota-sdk/agent-session@3.0.0-beta.70
1961
+ - @robota-sdk/agent-tools@3.0.0-beta.70
1962
+
1963
+ ## 3.0.0-beta.69
1964
+
1965
+ ### Patch Changes
1966
+
1967
+ - Fix /context list showing empty despite non-zero context percentage. System context files (AGENTS.md, CLAUDE.md) loaded at session startup now appear in the list with [system, active] label. Prompt execution no longer re-adds them as manual duplicates.
1968
+ - @robota-sdk/agent-core@3.0.0-beta.69
1969
+ - @robota-sdk/agent-executor@3.0.0-beta.69
1970
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.69
1971
+ - @robota-sdk/agent-session@3.0.0-beta.69
1972
+ - @robota-sdk/agent-tools@3.0.0-beta.69
1973
+
1974
+ ## 3.0.0-beta.68
1975
+
1976
+ ### Patch Changes
1977
+
1978
+ - @robota-sdk/agent-core@3.0.0-beta.68
1979
+ - @robota-sdk/agent-executor@3.0.0-beta.68
1980
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.68
1981
+ - @robota-sdk/agent-session@3.0.0-beta.68
1982
+ - @robota-sdk/agent-tools@3.0.0-beta.68
1983
+
1984
+ ## 3.0.0-beta.67
1985
+
1986
+ ### Patch Changes
1987
+
1988
+ - CLIR: agent-cli layer separation, agent-framework interactive session improvements, subagent runner fix, TUI interface README
1989
+ - @robota-sdk/agent-core@3.0.0-beta.67
1990
+ - @robota-sdk/agent-executor@3.0.0-beta.67
1991
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.67
1992
+ - @robota-sdk/agent-session@3.0.0-beta.67
1993
+ - @robota-sdk/agent-tools@3.0.0-beta.67
1994
+
1995
+ ## 3.0.0-beta.66
1996
+
1997
+ ### Patch Changes
1998
+
1999
+ - refactor: CLI-001/002 — agent-cli layer separation and monorepo-wide readability lint rules
2000
+ - CLI-001: Extract startup phases into focused modules; enforce agent-cli layer separation
2001
+ - CLI-002: Apply import/order, consistent-type-imports, explicit-function-return-type, prefer-const, object-shorthand across all packages
2002
+ - Fix stale child-process-subagent-worker entry in agent-cli tsdown.config.ts (build fix)
2003
+ - @robota-sdk/agent-core@3.0.0-beta.66
2004
+ - @robota-sdk/agent-executor@3.0.0-beta.66
2005
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.66
2006
+ - @robota-sdk/agent-session@3.0.0-beta.66
2007
+ - @robota-sdk/agent-tools@3.0.0-beta.66
2008
+
2009
+ ## 3.0.0-beta.65
2010
+
2011
+ ### Patch Changes
2012
+
2013
+ - @robota-sdk/agent-core@3.0.0-beta.65
2014
+ - @robota-sdk/agent-executor@3.0.0-beta.65
2015
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.65
2016
+ - @robota-sdk/agent-session@3.0.0-beta.65
2017
+ - @robota-sdk/agent-tools@3.0.0-beta.65
2018
+
2019
+ ## 3.0.0-beta.64
2020
+
2021
+ ### Minor Changes
2022
+
2023
+ - feat: add displayName and requiresPermission to command interfaces
2024
+ - `ICommand`, `ISystemCommand`, `ICommandListEntry`: add optional `displayName` field for user-friendly labels
2025
+ - `ISystemCommand`: add optional `requiresPermission` field for per-command permission policy declaration
2026
+ - `SystemCommandExecutor`: add `resolveRequiresPermission()` — derives from `safety` when field is undefined
2027
+ - All 24 built-in commands declare explicit `displayName` and `requiresPermission`
2028
+ - TUI autocomplete renders `displayName ?? name`; Tab completion still inserts the technical command ID
2029
+ - `/help` output shows `Display Name (/command-id)` format
2030
+
2031
+ ### Patch Changes
2032
+
2033
+ - @robota-sdk/agent-core@3.0.0-beta.64
2034
+ - @robota-sdk/agent-executor@3.0.0-beta.64
2035
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.64
2036
+ - @robota-sdk/agent-session@3.0.0-beta.64
2037
+ - @robota-sdk/agent-tools@3.0.0-beta.64
2038
+
2039
+ ## 3.0.0-beta.63
2040
+
2041
+ ### Patch Changes
2042
+
2043
+ - @robota-sdk/agent-core@3.0.0-beta.63
2044
+ - @robota-sdk/agent-session@3.0.0-beta.63
2045
+ - @robota-sdk/agent-tools@3.0.0-beta.63
2046
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.63
2047
+ - @robota-sdk/agent-executor@3.0.0-beta.63
2048
+
2049
+ ## 3.0.0-beta.62
2050
+
2051
+ ### Patch Changes
2052
+
2053
+ - Updated dependencies
2054
+ - @robota-sdk/agent-core@3.0.0-beta.62
2055
+ - @robota-sdk/agent-executor@3.0.0-beta.62
2056
+ - @robota-sdk/agent-session@3.0.0-beta.62
2057
+ - @robota-sdk/agent-tools@3.0.0-beta.62
2058
+
2059
+ ## 3.0.0-beta.61
2060
+
2061
+ ### Minor Changes
2062
+
2063
+ - e243fb0: Add provider-neutral sandbox execution ports, E2B-compatible sandbox adapter, and SDK sandbox injection for Bash and core file tools.
2064
+ - 18fcc5b: Add provider-neutral sandbox snapshot hydration for interactive sessions. Snapshot-capable sandbox clients now persist `sandboxSnapshotId` on shutdown and restore it before saved message replay on non-fork resume, while the E2B structural adapter supports both `createSnapshot()`-style checkpoints and pause/resume sandbox references.
2065
+ - 3bde012: Add provider-neutral sandbox workspace manifests and wire `InteractiveSession` to apply them before session creation.
2066
+
2067
+ ### Patch Changes
2068
+
2069
+ - 36eb7a9: Add provider-owned native replay payload hooks, replay validation coverage, and a session log validation command.
2070
+ - cc0223d: Add SDK-owned provider profile name suggestions, create model-derived profile keys during interactive setup, and show the active provider profile identity in the CLI status area.
2071
+ - d97bdf2: Add provider-owned model catalog metadata, route `/model` suggestions through the active provider, and make `cli:dev` resolve the CLI workspace dependency closure through source export conditions.
2072
+ - Updated dependencies [e243fb0]
2073
+ - Updated dependencies [1c0d44c]
2074
+ - Updated dependencies [36eb7a9]
2075
+ - Updated dependencies [18fcc5b]
2076
+ - Updated dependencies [d97bdf2]
2077
+ - Updated dependencies [3bde012]
2078
+ - @robota-sdk/agent-tools@3.0.0-beta.61
2079
+ - @robota-sdk/agent-core@3.0.0-beta.61
2080
+ - @robota-sdk/agent-session@3.0.0-beta.61
2081
+ - @robota-sdk/agent-executor@3.0.0-beta.61
2082
+
2083
+ ## 3.0.0-beta.60
2084
+
2085
+ ### Minor Changes
2086
+
2087
+ - 7439391: Add provider-neutral native web search/fetch capability contracts, explicit unsupported handling for OpenAI-compatible/LM Studio profiles, and local WebFetch/WebSearch permission/documentation alignment.
2088
+
2089
+ ### Patch Changes
2090
+
2091
+ - 41ae788: Restore the CLI thinking indicator and add structured Agent tool batch provenance/count metadata.
2092
+ - Updated dependencies [7439391]
2093
+ - @robota-sdk/agent-core@3.0.0-beta.60
2094
+ - @robota-sdk/agent-session@3.0.0-beta.60
2095
+ - @robota-sdk/agent-executor@3.0.0-beta.60
2096
+ - @robota-sdk/agent-tools@3.0.0-beta.60
2097
+
2098
+ ## 3.0.0-beta.59
2099
+
2100
+ ### Patch Changes
2101
+
2102
+ - Updated dependencies [95721ff]
2103
+ - @robota-sdk/agent-tools@3.0.0-beta.59
2104
+ - @robota-sdk/agent-core@3.0.0-beta.59
2105
+ - @robota-sdk/agent-session@3.0.0-beta.59
2106
+ - @robota-sdk/agent-executor@3.0.0-beta.59
2107
+
2108
+ ## 3.0.0-beta.58
2109
+
2110
+ ### Patch Changes
2111
+
2112
+ - Refresh package docs and robota.io content for the beta 57 feature set.
2113
+ - Updated dependencies
2114
+ - @robota-sdk/agent-core@3.0.0-beta.58
2115
+ - @robota-sdk/agent-executor@3.0.0-beta.58
2116
+ - @robota-sdk/agent-session@3.0.0-beta.58
2117
+ - @robota-sdk/agent-tools@3.0.0-beta.58
2118
+
2119
+ ## 3.0.0-beta.57
2120
+
2121
+ ### Minor Changes
2122
+
2123
+ - b80e51e: Add SDK-owned automatic project memory capture, approval review, bounded retrieval, and session-log provenance.
2124
+ - 1cfdce9: Add SDK-owned edit checkpointing for Write/Edit tool mutations with `/rewind` list and code restore commands.
2125
+ - f61e2cb: Add Qwen provider-owned Responses API support for built-in web search/fetch tools and pass provider-owned profile options through generic CLI/runtime configuration.
2126
+ - 822a78b: Add self-hosting verification planning and atomic UTF-8 writes for built-in file mutation tools.
2127
+ - 9817f99: Add active task context loading, formatting, and status update helpers for `.agents/tasks/*.md`.
2128
+
2129
+ ### Patch Changes
2130
+
2131
+ - 16c3b6f: Persist and render provider-neutral per-turn usage summaries with pre-send context updates in CLI sessions.
2132
+ - 4eca470: Render command tool output as bounded transcript previews and persist tool result metadata in SDK tool summaries.
2133
+ - 90a2802: Render Edit tool summaries as context-aware diff hunks with structured truncation metadata.
2134
+ - 26a1718: Preserve and render Edit tool diff metadata in persisted CLI tool summaries.
2135
+ - e504d30: Route project memory through the model-visible `/memory` command descriptor instead of hidden automatic prompt injection.
2136
+ - 0e0e533: Remove obsolete automatic memory policy configuration and top-level automatic memory orchestration exports from the SDK public surface.
2137
+ - Updated dependencies [16c3b6f]
2138
+ - Updated dependencies [b80e51e]
2139
+ - Updated dependencies [26a1718]
2140
+ - Updated dependencies [f61e2cb]
2141
+ - Updated dependencies [822a78b]
2142
+ - @robota-sdk/agent-core@3.0.0-beta.57
2143
+ - @robota-sdk/agent-session@3.0.0-beta.57
2144
+ - @robota-sdk/agent-executor@3.0.0-beta.57
2145
+ - @robota-sdk/agent-tools@3.0.0-beta.57
2146
+
2147
+ ## 3.0.0-beta.56
2148
+
2149
+ ### Patch Changes
2150
+
2151
+ - Updated dependencies
2152
+ - @robota-sdk/agent-core@3.0.0-beta.56
2153
+ - @robota-sdk/agent-executor@3.0.0-beta.56
2154
+ - @robota-sdk/agent-session@3.0.0-beta.56
2155
+ - @robota-sdk/agent-tools@3.0.0-beta.56
2156
+
2157
+ ## 3.0.0-beta.55
2158
+
2159
+ ### Patch Changes
2160
+
2161
+ - 38a72bf: fix: resolve ESLint tsconfig parsing errors and improve pnpm CI reliability
2162
+ - Add tsconfig.eslint.json to all packages for per-package ESLint runs
2163
+ - Migrate typecheck from pnpm -r exec tsc to per-package typecheck scripts
2164
+ - Add --if-present to all recursive pnpm run scripts
2165
+ - Fix React type imports, dynamic imports in tests, Express.Multer types
2166
+
2167
+ - Updated dependencies [38a72bf]
2168
+ - @robota-sdk/agent-core@3.0.0-beta.55
2169
+ - @robota-sdk/agent-session@3.0.0-beta.55
2170
+ - @robota-sdk/agent-tools@3.0.0-beta.55
2171
+
2172
+ ## 3.0.0-beta.54
2173
+
2174
+ ### Patch Changes
2175
+
2176
+ - fix: resolve all typecheck errors across packages
2177
+ - Updated dependencies
2178
+ - @robota-sdk/agent-session@3.0.0-beta.54
2179
+ - @robota-sdk/agent-core@3.0.0-beta.54
2180
+ - @robota-sdk/agent-tools@3.0.0-beta.54
2181
+
2182
+ ## 3.0.0-beta.53
2183
+
2184
+ ### Patch Changes
2185
+
2186
+ - refactor: monolith decomposition — all agent-\* files under 300 lines
2187
+ - fix: PR #69 code review — session resume tool messages, type SSOT, fork isolation, settings crash, Notification removal, chat validation
2188
+ - Updated dependencies
2189
+ - Updated dependencies
2190
+ - @robota-sdk/agent-core@3.0.0-beta.53
2191
+ - @robota-sdk/agent-session@3.0.0-beta.53
2192
+ - @robota-sdk/agent-tools@3.0.0-beta.53
2193
+
2194
+ ## 3.0.0-beta.52
2195
+
2196
+ ### Patch Changes
2197
+
2198
+ - @robota-sdk/agent-core@3.0.0-beta.52
2199
+ - @robota-sdk/agent-session@3.0.0-beta.52
2200
+ - @robota-sdk/agent-tools@3.0.0-beta.52
2201
+
2202
+ ## 3.0.0-beta.51
2203
+
2204
+ ### Patch Changes
2205
+
2206
+ - @robota-sdk/agent-core@3.0.0-beta.51
2207
+ - @robota-sdk/agent-session@3.0.0-beta.51
2208
+ - @robota-sdk/agent-tools@3.0.0-beta.51
2209
+
2210
+ ## 3.0.0-beta.50
2211
+
2212
+ ### Patch Changes
2213
+
2214
+ - fix: reinsert repository/homepage/bugs in correct field order
2215
+ - Updated dependencies
2216
+ - @robota-sdk/agent-tools@3.0.0-beta.50
2217
+ - @robota-sdk/agent-core@3.0.0-beta.50
2218
+ - @robota-sdk/agent-session@3.0.0-beta.50
2219
+
2220
+ ## 3.0.0-beta.49
2221
+
2222
+ ### Patch Changes
2223
+
2224
+ - fix: add repository, homepage, bugs metadata to all publishable packages
2225
+ - Updated dependencies
2226
+ - @robota-sdk/agent-tools@3.0.0-beta.49
2227
+ - @robota-sdk/agent-core@3.0.0-beta.49
2228
+ - @robota-sdk/agent-session@3.0.0-beta.49
2229
+
2230
+ ## 3.0.0-beta.48
2231
+
2232
+ ### Patch Changes
2233
+
2234
+ - fix: record individual tool-start/tool-end in history + fix streaming tool display
2235
+ - Individual tool-start/tool-end events recorded as IHistoryEntry for persistence
2236
+ - TuiStateManager.onToolEnd uses findIndex (first match only, not all with same name)
2237
+ - MessageList hides tool-start/tool-end entries (not rendered as System:)
2238
+ - @robota-sdk/agent-core@3.0.0-beta.48
2239
+ - @robota-sdk/agent-session@3.0.0-beta.48
2240
+ - @robota-sdk/agent-tools@3.0.0-beta.48
2241
+
2242
+ ## 3.0.0-beta.47
2243
+
2244
+ ### Minor Changes
2245
+
2246
+ - feat: ITransportAdapter unified interface + headless transport + CLI adapter pattern
2247
+ - ITransportAdapter interface in agent-sdk (name, attach, start, stop)
2248
+ - InteractiveSession.attachTransport(transport) method
2249
+ - createHttpTransport, createWsTransport, createMcpTransport, createHeadlessTransport factories
2250
+ - CLI print mode uses adapter pattern: session.attachTransport(transport)
2251
+ - agent-transport-headless: text/json/stream-json output, stdin pipe, exit codes
2252
+ - --output-format, --system-prompt, --append-system-prompt CLI flags
2253
+
2254
+ ### Patch Changes
2255
+
2256
+ - @robota-sdk/agent-core@3.0.0-beta.47
2257
+ - @robota-sdk/agent-session@3.0.0-beta.47
2258
+ - @robota-sdk/agent-tools@3.0.0-beta.47
2259
+
2260
+ ## 3.0.0-beta.46
2261
+
2262
+ ### Minor Changes
2263
+
2264
+ - feat: session continue/resume — persist, restore, and switch sessions
2265
+ - ISessionRecord.history field (required) for UI timeline restoration
2266
+ - Session.injectMessage() for AI context restoration on resume
2267
+ - InteractiveSession: sessionStore, resumeSessionId, forkSession, getName/setName
2268
+ - CLI: --continue, --resume, --fork-session, --name flags
2269
+ - TUI: /resume (session picker), /rename (session naming)
2270
+ - ListPicker generic component with viewport scrolling
2271
+ - Session name display: input border title, terminal title, StatusBar
2272
+ - Session picker: cwd filtering, date+time, response preview
2273
+ - React key remount for instant session switching
2274
+
2275
+ ### Patch Changes
2276
+
2277
+ - Updated dependencies
2278
+ - @robota-sdk/agent-session@3.0.0-beta.46
2279
+ - @robota-sdk/agent-core@3.0.0-beta.46
2280
+ - @robota-sdk/agent-tools@3.0.0-beta.46
2281
+
2282
+ ## 3.0.0-beta.45
2283
+
2284
+ ### Patch Changes
2285
+
2286
+ - refactor: transports consume InteractiveSession only — commandExecutor param removed
2287
+ - Add InteractiveSession.listCommands() for transport tool discovery
2288
+ - All transports use session.executeCommand() instead of separate commandExecutor
2289
+ - Simplified factory signatures: only InteractiveSession required
2290
+ - @robota-sdk/agent-core@3.0.0-beta.45
2291
+ - @robota-sdk/agent-session@3.0.0-beta.45
2292
+ - @robota-sdk/agent-tools@3.0.0-beta.45
2293
+
2294
+ ## 3.0.0-beta.44
2295
+
2296
+ ### Patch Changes
2297
+
2298
+ - feat: IHistoryEntry universal history architecture + test quality cleanup
2299
+ - IHistoryEntry as universal history type across all 4 packages (core → sessions → sdk → cli)
2300
+ - Tool summary stored as event entry in history (category: 'event', type: 'tool-summary')
2301
+ - TuiStateManager pure TypeScript class for CLI rendering state
2302
+ - MessageList renders IHistoryEntry[] with Tool:/System:/You:/Robota: labels
2303
+ - Display order fixed: Tool → Robota (both streaming and abort)
2304
+ - Remove 25 tautological, duplicate, and hardcoded tests
2305
+
2306
+ - Updated dependencies
2307
+ - @robota-sdk/agent-core@3.0.0-beta.44
2308
+ - @robota-sdk/agent-session@3.0.0-beta.44
2309
+ - @robota-sdk/agent-tools@3.0.0-beta.44