@robota-sdk/agent-cli 3.0.0-beta.97 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +2179 -8
  2. package/dist/node/bin.js +22 -22
  3. package/dist/node/cli-core-Bz_5Fzj0.js +2920 -0
  4. package/dist/node/desktop-host.js +1 -1
  5. package/dist/node/headless.js +2 -2
  6. package/dist/node/host.d.ts +1 -1
  7. package/dist/node/host.js +1 -1
  8. package/dist/node/index.d.ts +1 -1
  9. package/dist/node/index.js +2 -2
  10. package/dist/node/index.js.map +1 -1
  11. package/dist/node/node-BsDZQcvi.js +67 -0
  12. package/dist/node/node-Ct446qHg.js +15 -0
  13. package/dist/node/node-Ct446qHg.js.map +1 -0
  14. package/dist/node/node-DdB-oeq6.js +100 -0
  15. package/dist/node/node-DdB-oeq6.js.map +1 -0
  16. package/dist/node/node-PhNl8kvo.js +15 -0
  17. package/dist/node/node-gdZ0H7su.js +100 -0
  18. package/dist/node/node-oHeP4vDn.js +67 -0
  19. package/dist/node/node-oHeP4vDn.js.map +1 -0
  20. package/dist/node/product-host-BPPyJk9w.js +2954 -0
  21. package/dist/node/product-host-BPPyJk9w.js.map +1 -0
  22. package/dist/node/{product-host-DYR8lHfh.d.ts → product-host-SaMRTzxB.d.ts} +3 -3
  23. package/dist/node/{product-host-DYR8lHfh.d.ts.map → product-host-SaMRTzxB.d.ts.map} +1 -1
  24. package/dist/node/src-B9UMvThT-B-MlnUJH.js +2 -0
  25. package/dist/node/src-B9UMvThT-Cvs0M0_E.js +2 -0
  26. package/dist/node/src-B9UMvThT-Cvs0M0_E.js.map +1 -0
  27. package/dist/node/src-BzaNFPZx-CIKPBZac.js +2 -0
  28. package/dist/node/src-BzaNFPZx-DAgH-EaI.js +2 -0
  29. package/dist/node/src-BzaNFPZx-DAgH-EaI.js.map +1 -0
  30. package/dist/node/src-DwAfU-9z-CalH1ynp.js +2 -0
  31. package/dist/node/{node-DhmX4waZ.js → src-DwAfU-9z-DOErKivb.js} +2 -2
  32. package/dist/node/src-DwAfU-9z-DOErKivb.js.map +1 -0
  33. package/dist/node/src-UPsd6jNY-CUahgEdL.js +2 -0
  34. package/dist/node/src-UPsd6jNY-CgN4wopU.js +2 -0
  35. package/dist/node/src-UPsd6jNY-CgN4wopU.js.map +1 -0
  36. package/package.json +43 -43
  37. package/dist/node/cli-core-DU_nEQWX.js +0 -2920
  38. package/dist/node/node-BRvqhy29.js +0 -165
  39. package/dist/node/node-BRvqhy29.js.map +0 -1
  40. package/dist/node/node-BTKWbzr0.js +0 -15
  41. package/dist/node/node-BZfTvzcV.js +0 -15
  42. package/dist/node/node-BZfTvzcV.js.map +0 -1
  43. package/dist/node/node-Cyp5gJlO.js +0 -2
  44. package/dist/node/node-DhmX4waZ.js.map +0 -1
  45. package/dist/node/node-zABT8WBL.js +0 -165
  46. package/dist/node/product-host-BOEjCDu-.js +0 -2954
  47. package/dist/node/product-host-BOEjCDu-.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,2176 @@
1
1
  # @robota-sdk/agent-cli
2
2
 
3
+ ## 3.0.0
4
+ ### Major Changes
5
+
6
+ - 64ba748: **BREAKING — ARCH-042: project filesystem access is now an explicit, host-issued authority instead of an ambient consequence of `cwd`.**
7
+
8
+ `@robota-sdk/agent-framework` adds `WorkspaceTrustService` and the opaque
9
+ `IWorkspaceProjectAuthority`, plus bounded reader, settings-writer, state-storage, and mutation
10
+ facets. Public session, settings, context, checkpoint, memory, contribution, query, and replay
11
+ contracts consume those facets. A caller that does not supply `projectAccess` is deliberately
12
+ restricted to user-owned host state and receives no project filesystem capability.
13
+
14
+ The framework removes or renames ambient Node/project exports. Migrate `checkSettingsFile` to
15
+ `checkNodeHostSettingsFile`, `readMergedProviderSettingsFromPaths` to
16
+ `readMergedProviderSettingsFromSources`, `resolveProviderSettingsWriteTargetPath` to
17
+ `resolveProviderSettingsWriteTarget`, `FileSystemMemoryStore` / `createFileSystemMemoryStore` to
18
+ `WorkspaceMemoryStore` / `createWorkspaceMemoryStore`, and `PluginSettingsStore` to
19
+ `NodeHostPluginSettingsStore`. Host-only git helpers now carry the `FromNodeHost` suffix.
20
+ `projectPaths`, `resolveSettingsPathForScope`, and `getProviderSettingsPaths` are removed; project
21
+ consumers must use the authority facets rather than recover absolute paths.
22
+
23
+ `@robota-sdk/agent-session` renames the Node filesystem implementation `SessionStore` to
24
+ `NodeSessionStore` and adds explicit session-log/external-payload source and sink ports. Session
25
+ replay no longer resolves external payload files from an ambient directory.
26
+
27
+ `@robota-sdk/agent-interface-transport` changes `ISkillExecutionPort.loadCommands(cwd, home?)` to
28
+ the authority-bound `loadCommands()` and removes the optional absolute-path leak
29
+ `IInteractiveSessionStore.getFilePath`. `@robota-sdk/agent-command` consequently replaces the
30
+ `cwd` option of `createSkillsCommandModule` with required `contributionSources`; default command
31
+ composition accepts explicit contribution sources and discovers no project skills when none are
32
+ provided.
33
+
34
+ `@robota-sdk/agent-cli`, `@robota-sdk/agent-transport`, and
35
+ `@robota-sdk/agent-transport-tui` thread the trusted-or-restricted project decision through every
36
+ session surface. Embedded callers that need project settings, state, context, skills, checkpoints,
37
+ or mutation must mint access through `WorkspaceTrustService` and pass the returned
38
+ `projectAccess` (and a separately approved mutation/settings facet where required). Omitting it is
39
+ still type-compatible but is behaviorally breaking: the surface now fails closed instead of
40
+ reading or writing the current directory.
41
+
42
+ ### Minor Changes
43
+
44
+ - 9c19c50: `/fork [name] [--same-dir]` copies the live conversation into a background session.
45
+
46
+ The session writes a copy of its own record under a fresh id — messages, system prompt, tool schemas
47
+ and full history, and deliberately not the sandbox snapshot, goal, plan or branch — then spawns a
48
+ background job carrying only `resumeSessionId`. The child restores that record itself, so no
49
+ conversation crosses the child-process boundary and the worker start payload's key set is unchanged.
50
+ The background panel gains an `attach` control that switches the terminal onto the forked session; it
51
+ is a view switch, never a merge, and a missing record or a terminal task is refused with the task's
52
+ own status.
53
+
54
+ **`@robota-sdk/agent-framework` is `major` for one reason: `ICommandHostSessionAccess` gains a
55
+ required member.** `forkSession({ name? })` is not optional, so an external implementation of that
56
+ role port stops compiling until it adds the method. Every other change in this set is additive:
57
+
58
+ - `agent-interface-execution` — `TExecutionControl` gains `'attach'`.
59
+ - `agent-interface-command` — `TCommandUiIntent` gains `{ type: 'switch-session'; sessionId }`.
60
+ - `agent-subagent-runner` — `ISubagentWorkerComposition` gains the optional `openSessionStore`, and
61
+ the worker resumes a record when the job names one. A composition that registers no store and
62
+ receives no `resumeSessionId` behaves exactly as before.
63
+ - `agent-framework` also gains the fork-record builder, `SessionTurnMemory`, and
64
+ `IAgentBackgroundTaskRequest.resumeSessionId?`; `loadSessionRecord` now returns
65
+ `restoredSystemPrompt`, which makes a record field that was written and never read take effect on
66
+ restore.
67
+ - `agent-executor`, `agent-command`, `agent-transport-tui`, `agent-cli` — the spawn input, the
68
+ `/fork` module and the attach control that carry it to the surface.
69
+ - 3c81769: A supervised session accepts attach connections on its control socket.
70
+
71
+ - A terminal of the same user sends `{"command":"attach","id","generation","mode":"drive"|"observe","protocol":1}`.
72
+ The session compares the generation with its own. It refuses another generation, an unknown mode or
73
+ protocol, or a fifth concurrent attach. Otherwise it answers `{"status":"attached","driverId":"attach:<n>"}`
74
+ and carries the ordinary session protocol as newline-delimited JSON on the same connection.
75
+ - The driver id is assigned by the session and a client-sent one is ignored. Turns submitted from an
76
+ attached terminal are attributed to it and counted under the new `attach` usage surface.
77
+ - `drive` sends prompts and answers the session's questions under the usual co-drive rules. `observe`
78
+ is read-only and never counts as a surface that can answer, so an unattended session still denies
79
+ its prompts at once.
80
+ - Detaching or crashing ends only that connection: a turn in progress keeps running, a prompt no other
81
+ surface can answer is denied, and the session returns to its unattached posture. A reader that falls
82
+ 1 MiB behind is disconnected, and an oversize frame closes only its own connection. Stopping the
83
+ session ends attached connections with it.
84
+ - Commands from an attached terminal carry the remote origin, so pairing, revoking and reading the
85
+ pairing link stay refused. An attached terminal is never an operator approver; supervised sessions
86
+ keep refusing mesh connections that need one.
87
+ - A client may send its first frames in the same write as the handshake; only the handshake line
88
+ itself is held to the control endpoint's line limit.
89
+ - `agent-framework`: the surface a turn was submitted on now reaches its usage observation. It was
90
+ dropped before, so remote-control turns were counted as `unknown`.
91
+ - The terminal client (`robota session attach`) and the view keys come separately.
92
+ - 617b795: `robota session attach <id> [--observe]` puts this terminal on a live supervised session.
93
+
94
+ - It asks first, on the controlling terminal, naming the session and the role: drive (send prompts,
95
+ answer its questions) or observe (read only). The yes holds only for the process start it named: if
96
+ the session restarted meanwhile, the attach is refused.
97
+ - It needs an interactive terminal. Without one (a script, or an agent running shell commands) it is
98
+ refused and prints the command for the user to run. It is not available as a slash command or a
99
+ model tool.
100
+ - The terminal view shows the conversation so far, then follows the session live: streaming replies,
101
+ tools, other terminals' prompts, queued input and questions. In drive mode it sends prompts and
102
+ `/commands` and answers permission prompts and questions; a question answered on another surface is
103
+ dismissed. Observe mode is labelled read-only and sends nothing but reads.
104
+ - `/exit`, `/quit`, Ctrl-C and Ctrl-] detach. Nothing is sent to the session, so its turn continues and
105
+ it keeps running; stop it with `robota session stop` or from `robota session view`.
106
+ - The attached terminal is the full terminal UI (`renderAttachedApp` in `agent-ui-terminal`).
107
+ - A handshake from a connection that already closed no longer holds one of the session's attach slots.
108
+ - 724fabb: External-event grants are given at start, carried exactly to a background session, listed without their
109
+ principal, and revoked by the owner.
110
+
111
+ - `agent-framework` (breaking) — `openExternalEventSource` and `ExternalEventIngress.open` take only
112
+ `{ grant, audit? }`: the session builds each grant's verifier from `grant.verifier` with the
113
+ `externalEventVerifierFactory` its host passed when the session was built (without one, no grant opens), and an
114
+ open that supplies a verifier or a factory is refused. `IExternalEventSource.revoke()` stops the grant's queued and running turns,
115
+ refuses its later events as `grant-revoked`, and keeps the label from being opened again. A submission the
116
+ session refuses is `shutting-down` only while it shuts down, and `session-unavailable` otherwise. New command
117
+ host adapter `externalEvents` (`ICommandExternalEventsAdapter`).
118
+ - `agent-ui-terminal` — forwards `externalEventVerifierFactory` from the render options to the session.
119
+ - `agent-interface-transport` — `TExternalEventRefusal` gains `session-unavailable`.
120
+ - `agent-command` — `/events` lists the session's grants (label, principal kind, state, counts) and
121
+ `/events revoke <grant-id>` withdraws one. User-only.
122
+ - `agent-cli` — a grant file (`grantId`, `issuer`, `resource` ending in `/events/<grantId>`, exactly one of
123
+ `subject` or `client`, `scopes`, optional `algorithms` and `rate`) is validated before anything starts, with a
124
+ reason that names the grant and no configured value. `robota --external-event-grant <file>` (TUI) and
125
+ `robota session start --background --external-event-grant <file>` open every grant or fail the start; a
126
+ background session receives its grants through a private file, opens them before it reports ready, and the
127
+ launcher refuses a readiness that names other grants. `robota session events list <id> [--json]` and
128
+ `robota session events revoke <id> <grant-id>` work over the generation-bound control socket, and
129
+ `robota session list --format json` shows each grant's counts. The retired `--external-event-allow` now points
130
+ at `--external-event-grant`.
131
+ - d877de2: External events arrive over HTTP: `POST <public-url>/events/<grant-id>`, on a loopback port behind the owner's own
132
+ HTTPS proxy or tunnel.
133
+
134
+ - `agent-transport` — `./node` exports the resource-server gate every token-admitted HTTP carrier shares:
135
+ `createBearerResourceServer` (Host and Origin checked against the public URL, trusted-proxy `X-Forwarded-For`,
136
+ a failure-only throttle per address, coarse address classes), `describeProtectedResource` (RFC 9728 metadata
137
+ path and body, RFC 6750 challenges), `serveProtectedResourceMetadata`, `refuseBearerToken` and
138
+ `parsePublicHttpsUrl`.
139
+ - `agent-transport-mcp` — the remote MCP gate is composed from that shared gate; its answers are unchanged.
140
+ - `agent-cli` — each grant is its own endpoint and audience (its resource is `<public-url>/events/<grant-id>`).
141
+ An admitted event answers `202 {"turnId"}`; refusals have an empty body: 401 with the `invalid_token` or
142
+ missing-token challenge, 403 `insufficient_scope` or a revoked grant, 400 a malformed event, 404 an unknown
143
+ grant, 413 a body over 16 KiB, 429 over the grant's rate or the address's failure budget, 503 when the issuer
144
+ or the session cannot take it. `--external-event-port <port>` (required with grants) and
145
+ `--external-event-trusted-proxy <ip>` work on the TUI and on `robota session start --background`. A background
146
+ session writes an owner-only, bounded JSONL trail of refusals and settlements under its supervised directory;
147
+ the TUI reports them on one line each.
148
+ - 0d78a17: An MCP server is no longer a carrier for external events: a server connection proves nothing about who wrote a
149
+ message, and external events are now admitted only by a verified access token.
150
+
151
+ - `agent-mcp` (breaking) — `MCP_EXTERNAL_EVENT_CAPABILITY`, `MCP_EXTERNAL_EVENT_METHOD`, `IMCPExternalEvent` and
152
+ `TMCPExternalEventListener` are removed, as are `IMCPSession.externalEventsDeclared`,
153
+ `IMCPSession.onExternalEvent`, `IMCPSession.onClose` and `MCPConnectionSupervisor.onExternalEvent`. A server
154
+ that declares `com.<host>.external-event` or sends its notification is served as any other server and the
155
+ notification is ignored. The `zod` dependency is dropped.
156
+ - `agent-cli` (breaking) — `IMcpClientComposition.subscribeExternalEvent` and
157
+ `IMcpServerConnection.onExternalEvent` are removed.
158
+ - bfe8ed5: An external event is admitted only by a bearer access token the session verifies itself, and its sender is the
159
+ grant that token matched, never a name in the event.
160
+
161
+ - `agent-interface-transport` — `IExternalEventGrant` (a label, an access-token verifier configuration that pins
162
+ exactly one subject or client, the `message` kind, optional turn-rate windows), `IExternalEventDelivery` (the
163
+ token and the event as a carrier received them), the closed `TExternalEventRefusal` set, `TExternalEventAdmission`
164
+ and the content-free `TExternalEventAuditRecord`.
165
+ - `agent-framework` (breaking) — `ExternalEventIngress.open` and `InteractiveSession.openExternalEventSource` take
166
+ `{ grant, verifier, audit? }` instead of `{ id, allowedSenders, authenticate }`, and `receive` takes
167
+ `{ token, event }`. A delivery is refused with a stable word when the token is missing or the verifier refuses
168
+ it, when the token was already spent on an event (`jti`), when the event is malformed or oversize, or when the
169
+ grant is over its rate; nothing refused reaches the queue. An admitted event is attributed
170
+ `external:<grant>:<conversation>`, a payload display name appears in the envelope only as `claimed-name`, and the
171
+ receipt (`TExternalEventReceipt`) answers at acceptance with the turn id. Every refusal and settlement is
172
+ reported to the `audit` sink without content, conversation, name or token. `IAuthenticatedExternalEvent` and
173
+ `IExternalEventReceipt` are removed.
174
+ - `agent-cli` (breaking) — `--external-event-allow` is refused with the reason: a sender name relayed by an MCP
175
+ server does not prove who sent an event.
176
+ - 1706d29: `robota session view` attaches to and peeks at sessions.
177
+
178
+ - `a` attaches to the selected session to drive it, and `p` peeks at it read-only. Both are offered, in
179
+ the footer and in help, only on a row that is alive, controllable and verified. The view asks first,
180
+ naming the role. The yes is held to the process start the row showed: if the session restarted or
181
+ lost control meanwhile, the attach is refused. Detaching returns to the view, on the same row and
182
+ grouping, without printing the screen-reader line again.
183
+ - **Breaking:** opening a row's linked PR moves from `p` to `o`.
184
+ - The attached view shows the keys for what is on screen: sending, answering a permission, or
185
+ answering a question. With a screen reader it words every line ("Prompt from attach:2: …",
186
+ "Tool started: …", "Permission needed: …") and uses no symbols.
187
+ - Questions wait their turn: a second permission request or question no longer replaces the one on
188
+ screen, and one settled elsewhere leaves the queue.
189
+ - Line breaks inside pasted text become spaces instead of sending the text. In a masked answer they are
190
+ dropped, so a copied key that ends with a line break is kept exactly.
191
+ - `robota session attach` accepts `--screen-reader` and `--no-screen-reader`.
192
+ - The attach client closes a connection that sends more frames than it can hold before the view reads
193
+ them.
194
+ - 3ac6c48: Remote MCP servers get a client authentication port. OAuth and a dynamic header helper will plug
195
+ into it without the transport changing.
196
+
197
+ - **`IMCPClientAuthenticator`:**
198
+ - A host registers one for one server identity: `authenticatorFor` on the CLI's MCP client
199
+ composition, or `authentication` on `IMCPHttpEndpoint`.
200
+ - The Streamable HTTP transport asks it for headers on every request to that server, after
201
+ admission. Its headers override a static header of the same name.
202
+ - **Failures:**
203
+ - A 401/403 is retried at most once, with fresh authorization, when the authenticator answers
204
+ `retry`.
205
+ - Otherwise the connection is refused with `MCPAuthenticationError`, which is classified as
206
+ `auth`. Neither the credential nor the authenticator's text appears in it.
207
+ - There is never an unauthenticated attempt.
208
+ - **`oauth` and `headersHelper` in a definition** were silently ignored.
209
+ - On a remote server they are now decoded as `unsupportedAuthentication`: the server stays
210
+ listed, and admission refuses it by name (`unsupported-authentication`) instead of connecting
211
+ without the credential.
212
+ - On a stdio server they are a definition problem.
213
+ - 9368d00: Advisor escalation: the main model can consult a second model at the decision points it chooses.
214
+
215
+ With an advisor configured (`--advisor <profile>[:<model>]`, or the `advisorModel` setting that
216
+ `/advisor` saves; the flag wins), the session gets an `Advisor({ question? })` tool. The advisor reads
217
+ the whole conversation — system prompt, messages, tool calls and results — serialized into one prompt
218
+ and sent with `toolChoice: 'none'`, truncated from the front to fit its window with the system prompt
219
+ kept, and declines when even that does not fit. Its answer comes back framed as guidance to verify;
220
+ an empty or refusing answer reads as declined. Calls are limited to two per turn and a fixed number
221
+ per session, parallel calls in one round share those limits, and a repeated question in the same
222
+ turn returns the earlier answer. A request that was sent counts even when the provider failed (the
223
+ decline is reported by class, never by its text); only a call declined before sending gives its slot
224
+ back.
225
+
226
+ Advisor usage, including in-process subagents', is recorded where each turn's usage is recorded —
227
+ the persisted session history, under the advisor's own provider and model — so `/cost`, usage reports
228
+ and resumed sessions include it. `/cost` now totals that history and prices each part on its own
229
+ model, showing "mixed" when more than one model was priced.
230
+
231
+ `/advisor <model>` and `/advisor off` change only where calls go, never the tool list, so the main
232
+ model's prompt cache is not invalidated mid-session; the tool is added only when a session starts
233
+ with an advisor. Sending history to a destination (provider type and endpoint host) the main model
234
+ does not already use needs a one-time consent per destination, kept in the user settings file; a
235
+ refusal is remembered for the session. The organization's `allowedProviders` applies, and
236
+ `PRODUCT_DISABLE_ADVISOR=1` turns it off completely. In-process subagents inherit the advisor, bound
237
+ to their own conversation; child-process subagents do not get it.
238
+
239
+ **`@robota-sdk/agent-framework` is `major` for one reason: `ICommandHostSessionAccess` gains a
240
+ required member,** `getSessionUsage()`, the session's persisted usage records. An external
241
+ implementation of that role port stops compiling until it adds the method. The rest is additive.
242
+
243
+ - `agent-session` — `formatConversationEntries`, the one text rendering of a conversation, now used
244
+ by compaction too. It keeps tool calls and results, marks a user message a peer session sent
245
+ (`user [from "peer:<id>"]`), and JSON-encodes every message onto one line so no content can forge
246
+ another entry; compaction previously flattened all of this. `Session.getProvider()` returns the
247
+ provider the session currently uses.
248
+ - `agent-framework` — `AdvisorController`, `createAdvisorTool`, the advisor spec helpers, provider
249
+ destinations (`describeProviderDestination`, `rememberProviderDestination`), `getSessionUsage` and
250
+ `ISessionUsageRecord`, the `onUsageRecorded` session option, and the optional `advisor` command
251
+ host adapter. Session assembly binds a host-supplied Advisor tool to the session holding it.
252
+ - `agent-command` — the `/advisor` command module; `/cost` reads the session's persisted usage.
253
+ - `agent-cli` — the `--advisor` flag, `advisorModel` setting, per-destination consent store and kill
254
+ switch.
255
+ - `agent-ui-terminal` — a usage line from another source (the advisor, a background task) names that
256
+ source and leaves out the context window it does not have.
257
+ - `agent-session-analytics` — personal usage counts an advisor call's tokens and cost toward its
258
+ turn without counting it as a turn.
259
+ - 0d369ce: Remote MCP servers can take their request headers from a header helper.
260
+
261
+ - **Declaring one:** `"headersHelper": { "command": "/absolute/path", "args": [...] }` on a remote
262
+ server definition.
263
+ - `${}` templates are refused, as they are for stdio.
264
+ - The shell-string form other clients accept is refused, with a message showing the argv form.
265
+ - `headersHelper` is no longer reported as unsupported authentication; only `oauth` is.
266
+ - **Allowing one:** a helper runs only when all of these hold:
267
+ - its exact command and arguments are listed in `mcpHeaderHelpers` in the user's own settings.
268
+ A project, local, managed or plugin source cannot add to that list.
269
+ - the server's activation is approved. The helper is part of the definition fingerprint, and the
270
+ activation endpoint shows it beside the URL, with arguments quoted and control characters
271
+ escaped.
272
+ - for a `project` or `local` definition, the workspace is trusted.
273
+
274
+ Otherwise the server is refused with `headers-helper-not-allowed` or `headers-helper-untrusted`.
275
+ It is never connected with its static headers alone.
276
+
277
+ - **Running it** (`agent-cli`):
278
+ - No shell. It runs in the project directory for a `project`/`local` definition, and in
279
+ `the configured user data directory` otherwise.
280
+ - Its environment is the host's without runtime-loading variables (`NODE_OPTIONS`, `LD_*`,
281
+ `BASH_ENV`, …). A `project`/`local` helper also gets no credential-shaped variables.
282
+ `PRODUCT_MCP_SERVER_NAME` and `PRODUCT_MCP_SERVER_URL` are set. For a `project`/`local` helper
283
+ the URL keeps its `${VAR}` references instead of what the environment expanded them to.
284
+ - Limits: 10 s and 64 KiB of stdout. Stderr is discarded. The process tree is killed on timeout
285
+ or cancel.
286
+ - **Its output** (`agent-mcp`, `parseHeadersHelperOutput`):
287
+ - Exactly one JSON object of string values.
288
+ - Refused: invalid or duplicate names (case-insensitive), more than 32 headers, and headers the
289
+ transport owns (`Host`, `Content-Length`, `Transfer-Encoding`, `Connection`, `Content-Type`,
290
+ `Accept`, `Mcp-Session-Id`, `Mcp-Protocol-Version`, `traceparent`).
291
+ - **When it runs:** once per connection, one run at a time, and once more after a 401/403.
292
+ - Requests refused together cost one new run: the reusable `MCPSingleFlightCache` tags each value
293
+ with a generation and drops it only when the refused request used the current one.
294
+ - `IMCPAuthorizationRejection` now carries `authorization`, the object `authorize` returned for
295
+ the refused request, so an authenticator can tell which credential was refused.
296
+ - A reconnect runs the helper afresh. A helper still running when the CLI exits is killed.
297
+ - Failures are `MCPHeadersHelperError` with a fixed reason. Nothing the helper printed reaches an
298
+ error or a diagnostic.
299
+ - `IMCPHttpEndpoint.authenticationRequired` refuses admission (`authentication-unavailable`) when no
300
+ authenticator is registered.
301
+ - d4189b9: The rest of the per-server MCP OAuth lifecycle: signing in to a server without a local browser,
302
+ signing out of it with token revocation, and each server's sign-in state in `/mcp`.
303
+
304
+ - **`robota mcp login <name> --no-browser`** prints the authorization URL and reads the redirect URL
305
+ the user pastes back (not echoed). `runMCPOAuthLogin` takes `readRedirect` for this; nothing
306
+ listens on the redirect URI then. The pasted URL is held to the loopback listener's rules through
307
+ `createPastedRedirectAcceptor`: it must be the registered redirect URI (same origin and path, no
308
+ user info), carry the sign-in's `state` (compared in constant time), and is accepted once; an
309
+ error redirect is `authorization-denied` without its `error_description`, and the RFC 9207 `iss`
310
+ check applies as before. `openBrowser` now also receives the redirect URI. `readRedirect` gets a
311
+ signal that aborts on cancel or at `callbackTimeoutMs` (5 minutes by default, as for the loopback
312
+ listener); a paste longer than the prompt accepts fails as `redirect-too-long`.
313
+ - **Signing out** (`runMCPOAuthLogout`; `robota mcp logout <name>`; `/mcp logout <serverId>`):
314
+ deletes the stored credential under the refresh lock, then revokes the refresh token and the
315
+ access token (RFC 7009) when the stored issuer advertises `revocation_endpoint`. Revocation is a
316
+ POST through the egress policy that never follows a redirect and is byte-bounded; it authenticates
317
+ the client by `revocation_endpoint_auth_methods_supported` when advertised, otherwise the way its
318
+ refresh does. The local delete always happens. Each token's outcome is reported in `tokens`, and
319
+ overall as `revoked`, `partial`, `unsupported`, `failed` or `not-attempted`, with fixed reasons
320
+ only (new: `revocation-failed`, and `token-type-not-revocable` for RFC 7009
321
+ `unsupported_token_type`). `/mcp logout` also makes the session's authenticator drop the token it
322
+ holds (`IMCPOAuthAuthenticator.forget`).
323
+ - **Sign-in state:** `readMCPOAuthCredentialState` answers `signed-in`, `expired-refreshable`,
324
+ `sign-in-required` or `signed-out` — never anything token-derived. `/mcp` shows it for every
325
+ OAuth server; a server this session was told needs a sign-in reads `sign-in-required`.
326
+ `ICommandMCPActivationAdapter` gains optional `oauthStatus` and `oauthLogout`
327
+ (`ICommandMCPOAuthStatus`, `ICommandMCPOAuthLogoutResult`).
328
+ - **No in-session sign-in:** signing in stays `robota mcp login <server>` in a terminal, since it
329
+ needs the terminal (browser, pasted redirect, hidden secret prompt) a running session owns. `/mcp`
330
+ names that command for a server that needs a sign-in, as does the session's sign-in notice; the
331
+ server name is shown there only when it is safe to paste into any shell — a plain token not
332
+ starting with `-` or `=` — and is otherwise replaced by `<server>` (`shellArgumentForDisplay` in
333
+ `agent-core`; nothing is quoted, since quoting rules differ between shells). Server names in OAuth
334
+ notices have control and format characters escaped.
335
+ - **Refresh hardening:** on `invalid_grant`, the store is read again under the lock; a refresh token
336
+ another holder rotated in meanwhile is kept (and used when still valid) instead of being deleted.
337
+ The expiry skew is capped at half the token's lifetime, so a short-lived token is not refreshed on
338
+ every request; credentials now record `issuedAt` for this.
339
+ - 9edae52: Remote MCP servers can authenticate with OAuth: `robota mcp login <name>` signs in, and sessions
340
+ send the stored token.
341
+
342
+ - **Declaring it:** `"oauth": { "clientId"?, "callbackPort"?, "authServerMetadataUrl"?, "scopes"? }`
343
+ on a remote server definition, decoded into `IMCPOAuthConfig`.
344
+ - `authServerMetadataUrl` must be `https`. `scopes` wins over the server's metadata and a 401's
345
+ `scope`.
346
+ - A `clientId` needs a `callbackPort`: a pre-registered client's redirect URI is fixed.
347
+ - `clientSecret`, unknown keys and `${}` templates are refused; `oauth` beside `headersHelper`,
348
+ or on a stdio server, is refused.
349
+ - `oauth` is no longer reported as unsupported authentication, and it is part of the definition
350
+ fingerprint.
351
+ - **Signing in** (`runMCPOAuthLogin`; `robota mcp login <name> [--client-secret]`):
352
+ - Discovery is done here, not by the SDK's `discoverOAuthServerInfo`: the protected-resource
353
+ metadata `resource` must be the canonical server URL, the authorization server's `issuer` must
354
+ be the server it was fetched for, the server, authorization, token and registration
355
+ endpoints must be `https`, and the authorization server must advertise PKCE `S256`
356
+ (`pkce-unsupported` otherwise). A 401's `resource_metadata` is never followed to another origin,
357
+ and a server without resource metadata is not guessed at.
358
+ `authServerMetadataUrl` skips resource discovery.
359
+ - Dynamic client registration when there is no `clientId`; PKCE, a random `state` and the
360
+ RFC 8707 resource indicator on the authorization request; the RFC 9207 `iss` checked on the
361
+ redirect when sent, and required when the server promises it.
362
+ - The loopback callback listens on `127.0.0.1`, checks `Host`, answers only `GET /callback` with
363
+ the sign-in's `state` (compared in constant time), once, within 5 minutes, and serves a static
364
+ page that never shows `error_description`.
365
+ - The browser opens by argv (`open`, `xdg-open`, `rundll32 url.dll,FileProtocolHandler`) and only
366
+ for an `https` URL. `--client-secret` asks for the secret without echo (or reads stdin's first
367
+ line) and only for a pre-registered client.
368
+ - **Network:** every OAuth request goes through the egress policy and is capped at 256 KiB.
369
+ `agent-core` adds `postWithEgressPolicy`, which refuses a redirect (`redirect_refused`) instead
370
+ of following it; registration, token and refresh requests use it.
371
+ - **Storage:** `IMCPOAuthCredentialStore` (`get`/`set`/`delete`), keyed by the server's security
372
+ identity and canonical URL together. `createFileOAuthCredentialStore` keeps 0600 files in a 0700
373
+ `the configured user data directory`. The issuer, token endpoint and client (with its secret, if any, and
374
+ the client authentication method dynamic registration returned) are stored with the tokens. A
375
+ sign-in stores its credential under the refresh lock, so a refresh in flight cannot overwrite it.
376
+ - **Sessions** (`createOAuthAuthenticator`, wired for every `oauth` definition):
377
+ - Sends the stored token as `Authorization: Bearer`, refreshing it first when expired — including
378
+ a token cached earlier in the session — and only at the stored token endpoint.
379
+ - One refresh at a time per credential: in a process through `MCPSingleFlightCache`, across
380
+ processes under `createFileOAuthRefreshLock`, re-reading the store once the lock is held. A
381
+ stale lock is taken over, and a lock released, only after it is renamed aside and proven to be
382
+ the one judged — never another process's fresh lock.
383
+ - A 401 rediscovers, then refreshes once and retries; an authorization server that changed clears
384
+ the tokens — compared, under the lock, with what is stored then, so a newer sign-in is kept. `invalid_grant`, or nothing stored, asks the user to run `robota mcp login <name>`. A 403
385
+ `insufficient_scope` fails and names the scope.
386
+ - An `oauth` definition is never connected without the authenticator (`oauth-unavailable`).
387
+ - Failures are `MCPOAuthError` with a fixed reason; no code, verifier, token, secret or
388
+ authorization-server text reaches an error, a notice or a log.
389
+ - 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.
390
+ - 3131209: `robota mcp serve` can serve a remote MCP client as an OAuth resource server.
391
+
392
+ `agent-transport-mcp` gains `createMcpRemoteHttpHost`, which admits requests only by an OAuth access
393
+ token checked by an injected `IAccessTokenVerifier`. Its endpoint path and its RFC 9728
394
+ protected-resource metadata path are derived from the `https` public URL, so a proxy prefix works,
395
+ and Host and Origin are checked against that public origin. A refusal has an empty body: `401` with
396
+ `WWW-Authenticate: Bearer resource_metadata="…"` (plus `error="invalid_token"` when a token was
397
+ presented), or `403` with `error="insufficient_scope"`. The token is verified before anything is
398
+ counted, and only failures are counted, per client address, so a valid token is never throttled;
399
+ `X-Forwarded-For` is believed only from a configured trusted proxy. Each refusal goes to an injected
400
+ audit sink as a reason and an address class, never token text. The host stays stateless and issues
401
+ no `Mcp-Session-Id`. The loopback `createMcpHttpHost` is unchanged.
402
+
403
+ `agent-cli` adds `--http-public-url`, `--http-host`, `--oauth-issuer`, `--oauth-scopes`,
404
+ `--oauth-allowed-subjects` and `--trusted-proxy` to `robota mcp serve`. It binds an address other than
405
+ `127.0.0.1` only with the public URL and the OAuth settings, and never with `--http-token-file`.
406
+ Refusals are logged on stderr without token text.
407
+ - af2f2ad: `/cd <directory>` continues the conversation in another directory.
408
+
409
+ - **A move is a new session in the target directory.** In the TUI, the configured CLI saves a copy of the
410
+ conversation where the target's session store will find it, ends the current run through its
411
+ normal end-of-life flow, and starts again in the target directory resuming that copy. The target's
412
+ settings, trust decision, tools, skills and `AGENTS.md` apply, exactly as if the configured CLI had been
413
+ launched there. The process boundary makes the move atomic, so no tool call can straddle it.
414
+ - **The system prompt is kept as recorded**, so a provider's prompt cache survives. One appended
415
+ `<workspace-move>` message tells the model the new directory, and which project instructions now
416
+ apply.
417
+ - **Refused** while a turn is running or a background task is still running, for a missing directory
418
+ or the current one, and for a target a `Cd(...)` deny rule names.
419
+ - **Access never widens:** a restricted session stays restricted after a move, and a trusted session
420
+ takes the target's own trust decision.
421
+ - New contracts: the `workspace-move` host action, `ICommandWorkspaceAdapter` /
422
+ `IWorkspaceMoveRequest`, `InteractiveSession.moveWorkspace`, and the `workspaceMovedFrom` session
423
+ option. The CLI's `--moved-from` and `--restricted-workspace` flags are internal.
424
+ - 267af5f: The execution containment seam states where tools run.
425
+
426
+ - **`ISandboxClient.filesystem`** (`'shared' | 'separate'`, absent means `separate`).
427
+ - With a **separate** filesystem (E2B, in-memory), every file tool goes through the sandbox, and
428
+ `Glob`/`Grep`, which can only read the host, are withheld. Previously a remote sandbox still
429
+ offered host-reading search tools beside sandbox-writing edit tools.
430
+ - With a **shared** filesystem (OS-level confinement over the host's files), file tools stay on
431
+ the host under the path guard, and only commands go through the sandbox.
432
+ - **`describeExecutionContainment` / `routesFilesThroughSandbox`** name the containment (`host`,
433
+ `sandbox-shared`, `sandbox-separate`) instead of inferring it from an absent value.
434
+ - **`robota doctor` reports `execution.containment`.** the agent runtime composes no sandbox today, so the
435
+ doctor says shell commands run unconfined on the host and the permission rules are the only
436
+ boundary. The CLI composition and the doctor read the same value.
437
+ - **The `Agent` and `BackgroundProcess` tools no longer fall back to `process.cwd()`** when they
438
+ were built without an execution root. They report an assembly error instead, as the file tools
439
+ already did (ARCH-010).
440
+ - f336838: One permission evaluation order for every caller. The interactive session, background tasks and
441
+ subagents used to run two different resolvers, so the same call could be decided differently
442
+ depending on who made it. They now share `evaluatePermission`, and a background policy only adds a
443
+ ceiling, an ask-everything flag and the task's own lists to it:
444
+
445
+ deny → caller ceiling → unevaluable deny (ask) → never-auto-approve set (ask) → ask-everything →
446
+ bypassPermissions → allow → mode.
447
+
448
+ - **`ask` rules.** `permissions.ask` patterns always ask, in every mode including
449
+ `bypassPermissions`. They are matched per command like a deny rule, and are validated at
450
+ construction alongside `allow` and `deny`.
451
+ - **Never auto-approved, bypass included:** removing a critical path with `rm`/`rmdir` (the root, a
452
+ top-level directory, home, the working directory or a parent), and a modify-class write into
453
+ `.git`, the configured project-state directory, `.claude`, `.agents`, `.mcp.json`, `.gitconfig`, `.npmrc` or a shell rc file.
454
+ Files inside an isolated worktree (`the configured project-state directory/worktrees/<name>/…`) are ordinary files. With no
455
+ approver attached, an ask is a denial.
456
+ - **A ceiling is checked before bypass and before any ask.** A subagent's `inherit-allowlist` ceiling
457
+ is now the parent's *effective* rules, read live at spawn: settings, preset lists and command
458
+ auto-allows. It used to be the raw settings file. An unevaluable deny under a policy now asks,
459
+ like everywhere else, where it used to deny outright; with no approver it is still a denial.
460
+ - **Settings layers union `permissions.allow`**, as they already did `deny`. A checked-in project
461
+ file no longer silently discards the user's allow list.
462
+ - **Print mode, `createQuery()` and headless sessions default to `default` mode**, not
463
+ `bypassPermissions`. They have no approver, so a call that would ask is denied. Pass
464
+ `--permission-mode` / `permissionMode: 'bypassPermissions'` explicitly for unattended runs.
465
+
466
+ **Breaking:**
467
+ - `@robota-sdk/agent-core` removes `resolvePermissionByPolicy` and `TPermissionPolicyDecision` in
468
+ favour of `projectPermissionPolicy` plus `evaluatePermission`'s new `context` argument.
469
+ - `@robota-sdk/agent-framework` changes the settings merge rule for `permissions.allow`, and the
470
+ default permission mode of `createQuery()` and headless sessions.
471
+ - 34e50f0: A new permission mode, `auto`, lets a model classifier approve or block what would otherwise prompt.
472
+
473
+ - **What it decides:**
474
+ - Reads and in-workspace edits run as in `acceptEdits`.
475
+ - Commands and other calls the mode leaves open go to the classifier, a side call to the
476
+ session's own model. It sees the call, the working directory and the git remotes, never the
477
+ conversation.
478
+ - A block reaches the model with its reason, so it can take another route.
479
+ - **What still reaches a person, or is refused:**
480
+ - Deny rules and background ceilings apply first.
481
+ - `ask` rules, critical removals and protected paths ask a person.
482
+ - After 3 refusals in a row (blocks, or no usable verdict), or 20 blocks in the session, the
483
+ mode asks a person until one approves.
484
+ With no one to ask, the call is denied.
485
+ - **Allow rules:** in `auto` mode, allow rules that approve any command are set aside while the
486
+ mode is on. Examples are `Bash(*)`, an interpreter (`Bash(python *)`), a package runner
487
+ (`Bash(npm run *)`, `Bash(pnpm exec *)`), `Agent`, `ExecuteCommand` or `Computer`. Narrow
488
+ rules still apply.
489
+ - **Retry:** `/permissions` lists classifier blocks. `/permissions retry <n>` lets that exact call
490
+ run once, unjudged, when the model tries it again.
491
+ - **Turning it on and off:**
492
+ - `--permission-mode auto`, `/mode auto` or `/permissions auto`.
493
+ - An organization turns it off with `disableAutoMode` in the org policy.
494
+ - **New contracts:**
495
+ - `TPermissionMode` gains `'auto'`.
496
+ - `allowRulesForAutoMode` and `isBroadExecutionAllowRule`.
497
+ - `IPermissionClassifier` and `AutoModeGate`.
498
+ - The `permissionClassifier` session option.
499
+ - `Session.retryPermissionDenial`, and `retryDenial` on the permission-mode adapter.
500
+ - The `'classifier'` denial reason.
501
+ - `createModelPermissionClassifier`.
502
+ - The `disableAutoMode` option on `createSession` and `IOrgPolicy`.
503
+ - 722e88a: Shell commands can run in an OS-level sandbox: bubblewrap on Linux and WSL2, Seatbelt on macOS.
504
+
505
+ - **Confinement:** covers the command and every process it starts.
506
+ - Writes are limited to the working directory, the temporary directories and
507
+ `sandbox.filesystem.allowWrite`.
508
+ - Agent, git-hook, MCP and shell configuration inside the workspace stays read-only.
509
+ - `sandbox.filesystem.denyRead` hides paths from the command.
510
+ - The network is on or off (`sandbox.network.enabled`).
511
+ - **Modes:** `/sandbox` switches between `auto-allow`, `regular` and `off` for the next command and
512
+ saves the choice.
513
+ - In `auto-allow` (`sandbox.autoAllowBashIfSandboxed`), a confined command runs without a prompt
514
+ in `default` and `acceptEdits`.
515
+ - Deny rules, ask rules, critical removals and plan mode still apply first.
516
+ - **Exclusions:** `sandbox.excludedCommands` run unconfined, through the ordinary permission path.
517
+ - **When the sandbox cannot run:** a missing or unusable backend is reported at startup, in
518
+ `robota doctor` and in `/sandbox`, and commands then run unconfined.
519
+ `sandbox.failIfUnavailable` refuses to start instead.
520
+ - **New contracts:**
521
+ - `OsSandboxClient`, `detectOsSandbox`, `bubblewrapArguments`, `seatbeltProfile`.
522
+ - `ISandboxClient.wrapCommand` and `autoApproves`.
523
+ - `IPermissionEvaluationContext.sandboxAutoApproved`.
524
+ - The `commandSandbox` session option.
525
+ - The `sandbox` settings key and the `sandbox` command host adapter.
526
+ - a5cc36e: `/permissions` shows the rules the session enforces and the calls it refused.
527
+
528
+ - **Rules by source:** each allow, deny and ask rule the gate reads is listed under the settings file
529
+ that declares it. Rules added by a CLI flag, a preset or a command are listed under "this session".
530
+ A rule a settings file declares but the session does not enforce is not shown.
531
+ - **Recent denials:** the latest refused calls, most recent first, with the reason: a rule or the
532
+ mode, the user declining, or no one available to approve.
533
+ - New contracts: `Session.getRecentPermissionDenials()`, `PermissionEnforcer.getRecentDenials()`,
534
+ `IPermissionDenial`, the `permissionRules` host adapter (`createSettingsPermissionRulesAdapter`),
535
+ and `getPermissionRules` / `listRecentDenials` on `ICommandPermissionModeAdapter`. Settings
536
+ provenance now covers `permissions.ask`.
537
+ - b70fa3d: `robota --safe-mode` starts a session with every customization off, to rule one out in one run.
538
+
539
+ - **Off:** project and user instruction files, skills, custom commands, agent definitions, output
540
+ styles, external presets, plugins, hooks from every settings layer, and MCP servers.
541
+ - **Unchanged:** provider, model, built-in tools and permissions work as usual. Nothing on disk
542
+ changes.
543
+ - **Project access:** the project starts Restricted whatever its trust decision, so safe mode also
544
+ runs in print and serve mode.
545
+ - **Notice:** a line at startup says that safe mode is on.
546
+ - **Embedders:** `startCli({ safeMode: true })` does the same as the flag.
547
+ - **New framework option:** `skipConfiguredHooks` on interactive and headless sessions, also
548
+ carried by the TUI and serve session options.
549
+ - 3038eb7: A message from another session is instant messaging: text from an untrusted third party that
550
+ carries no authority. What the model does with it is decided by the session's ordinary permissions —
551
+ rules, permission mode and remembered consent — exactly like the session's own work. The per-origin
552
+ peer policy is gone.
553
+
554
+ **BREAKING**
555
+
556
+ - `agent-core`: `IPermissionEvaluationContext.peerTurn` is now a boolean. It decides only whether a
557
+ `repliesToPeer` tool exists; every other call in a peer turn is decided as in any turn. Removed:
558
+ `isToolAvailableInPeerTurn`, `isSecretPath`, `IPeerTurnAuthority`, `TPeerReach` (now exported by
559
+ `agent-interface-session-mobility`) and `IToolPermissionProfile.workspacePaths`.
560
+ - `agent-tools`: `Read` and `Glob` no longer declare `workspacePaths`.
561
+ - `agent-session`: `ISessionRunOptions.peerReach` is replaced by `peerTurn?: boolean`, and
562
+ `ISessionOptions.allowPeerChanges` is removed. An ask in a peer turn is answered like any other:
563
+ a consent the operator remembered answers it, and an "always allow" given there is remembered.
564
+ - `agent-interface-session`: `IPeerTurnContext` no longer has `reach`; it carries only the reply
565
+ route.
566
+ - `agent-interface-session-mobility`: `peerReachOf` is removed; `TPeerReach` moves here. A delegated
567
+ turn carries no reach.
568
+ - `agent-framework`: the `peers.allowChanges` setting is removed (an existing value is ignored). A
569
+ peer turn is offered the ordinary tools, plus `peer_reply`.
570
+
571
+ **Changes**
572
+
573
+ - `agent-framework`: the per-turn statement tells the model the message is an opinion from an
574
+ untrusted third party, not its owner's instruction, and that it decides for itself whether and how
575
+ to act. A message still expands no `@path` and attaches no context reference, and its requests
576
+ still carry no provider-hosted tool, since no permission step can decide one. The session takes
577
+ at most 6 messages a minute and 30 an hour from each sender for a turn; a message over the limit
578
+ is refused with a reason the sender receives. A prompt answer given in the name of a `peer:` or `external:`
579
+ driver is ignored. External-event turns keep their tool-less baseline.
580
+ - `agent-cli`: incoming peer turns carry only their reply route.
581
+ - 4dd45cc: `/peers` shows how each other local session's workspace relates to this one's: `same worktree`,
582
+ `same repo`, `different repo`, or `workspace unknown`.
583
+
584
+ A session now publishes a workspace claim with its rendezvous entry — the root commits reachable
585
+ from HEAD, a SHA-256 of its normalized `origin` URL (never the URL itself), and the real path of its
586
+ worktree — and re-reads it as it runs, so a first commit or a checkout does not leave it stale. The
587
+ reader does not take the claim as written: it reads git at the claimed path itself, and a claim whose
588
+ contents disagree is shown as `workspace claim mismatched, not believed` and relates to nothing. Those
589
+ git reads are local-only and asynchronous, run only for the view that shows the relation (and for
590
+ the sender of an incoming peer message), and are cached per announcement. The relation also reaches
591
+ the peer-turn origin, computed by the receiver; a relation the sender put on the wire is discarded,
592
+ and the admission never carries it.
593
+
594
+ The relation is display and routing information only and is never an authorization input.
595
+
596
+ Additive: `agent-interface-session-mobility` exports `TWorkspaceRelation` and gains the optional
597
+ `IPeerOrigin.workspaceRelation`; `agent-framework`'s `ILocalPeerSummary` gains the optional
598
+ `workspaceRelation` and `workspaceClaim`, and `ICommandLocalPeersAdapter` the optional
599
+ `listWithWorkspace()`.
600
+ - 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 `the configured user data directory`. 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.
601
+
602
+ The remote-control host identity key moves into the store. The old `the configured user data directory` 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.
603
+ - e15e22b: Two of one user's devices can connect to each other over WebRTC, admitted by the device handshake.
604
+
605
+ - `agent-transport-webrtc` — `DeviceMeshNode` keeps one connection per device pair, in either role: the
606
+ device with the lower id offers and the other answers, so concurrent attempts resolve by rule. Both
607
+ roles bind the handshake to the certificate the DTLS layer verified and take one remote description
608
+ with exactly one fingerprint; before admission only handshake frames cross, and a connection counts
609
+ as admitted only once both sides admitted each other. Each connection gets its own DTLS certificate
610
+ (`createDtlsKeys`). A new attempt never displaces an admitted connection until it is admitted
611
+ itself, and attempts per pair are paced. Lists adopted in a handshake, or handed over through
612
+ `refresh`, apply at once, and a device they revoke loses its connection. Signaling runs through
613
+ `IMeshRelay`: `WsMeshRelayClient` for the self-hosted relay's `presence` / `message` frames
614
+ (topics capped per source and relay-wide), `createInMemoryMeshRelayHub` for tests.
615
+ - `agent-remote-pairing` — the pair's two relay inbox topics, one per direction, come from their
616
+ pairwise secret (`derivePairRendezvous(...).relayInbox()`).
617
+ - `agent-cli` — a device holding the signing key reissues its roster and revocation list before they
618
+ expire while an interactive session runs. The host can open this device's mesh endpoint from the
619
+ identity under `the configured user data directory`, saving newer lists a peer hands over; no command starts it yet.
620
+ - `agent-command` — `/devices add|join` still reports that enrolment is not available yet.
621
+ - 28fa8a7: `/devices add` and `/devices join` enrol a new device into your devices.
622
+
623
+ - On a device that holds the signing key, `/devices add` shows a one-time code on the terminal. It
624
+ works once, for five minutes.
625
+ - On the new device, `/devices join [name]` asks for the code on the terminal, creates the device's
626
+ keys, and meets the other device through the signaling relay in
627
+ `transports.webrtc.options.relayUrl`. Both devices need that setting.
628
+ - The new device proves the code over the WebRTC connection's DTLS fingerprints before anything else
629
+ crosses, so a relay in the middle cannot enrol anyone.
630
+ - Both devices then show the same six digits, and both operators compare them and confirm. Someone
631
+ who saw the code cannot choose the digits: the new device commits to its part before it sees the
632
+ existing device's.
633
+ - Only when both operators say yes does the existing device certify the new one and issue a new
634
+ roster. The new device keeps its identity only once the chain it receives verifies.
635
+ - A wrong, expired or already used code is refused. So is a code after a few failed attempts. When
636
+ either operator declines, nothing is issued or kept.
637
+ - The code appears only on the two terminals. It never reaches history, transcripts or the model. A
638
+ code typed as a command argument is refused. Both commands stay user-only and refuse remote
639
+ surfaces.
640
+ - `agent-remote-pairing`: enrollment codes, the enrollment proof, the signed request with its
641
+ commitment, the short authentication string and the frame decoder.
642
+ - `agent-transport-webrtc`: `dialEnrollment` and `listenForEnrollment` provide a data channel bound to
643
+ the negotiated fingerprints.
644
+ - 44fc732: Add `/devices` for this device's identity among the user's devices: `list`, `init` (creates the identity: a recovery phrase, the master-certified signing key, this device's keys and certificate, the first roster and revocation list), `revoke <device-id>` (signing key only, no phrase; confirmed at the terminal) and `recover` (rotates the signing key from the phrase and revokes the old ones). Enrolling another device (`add` / `join`) comes with the device connection.
645
+
646
+ The recovery phrase never enters the session: it is shown once and read with no echo on the controlling terminal (opened apart from the session's input), on the alternate screen that is cleared afterwards, and never reaches prompt history, conversation history, transcripts, traces or the model. Without an interactive terminal the phrase commands refuse. `/devices` is operator-only: never model-invocable and refused from remote surfaces. Private keys live in the host credential store; certificates, roster, revocation lists and sequence marks are kept in owner-only files under `the configured user data directory`.
647
+
648
+ `agent-remote-pairing` adds `isRecoveryPhraseWord`, so a phrase can be checked one word at a time.
649
+ - 4f49d14: The device mesh can be turned on, and `/peers`, `/handoff` and `/devices` reach the user's other devices.
650
+
651
+ - New user setting `transports.mesh.enabled` (default `false`). When it is `true`, an interactive
652
+ session opens the device mesh at startup and closes it on exit. Only the user settings count; a
653
+ project's settings cannot turn it on. Print and serve runs never open it, and a device without an
654
+ identity is told to run `/devices init`. Only one session of a device opens it at a time; another
655
+ session on the same device says so in `/devices` and links nothing.
656
+ - By default a linked device may send messages, files and sessions. Each file and each session still
657
+ waits for the operator's yes on this machine's terminal; with no terminal the answer is no.
658
+ Delegating, observing and driving stay off unless `transports.mesh.options.capabilities` lists
659
+ them.
660
+ - A message from a linked device arrives like one from a session on this host: a peer turn with no
661
+ authority, attributed to the device the handshake proved, under the same rate limit and
662
+ conversation limits.
663
+ - `/peers` lists linked devices beside the sessions on this host; `/peers send` and
664
+ `/peers send-file` take a device id. `/handoff` lists linked devices and pushes the session to one.
665
+ Files arrive in the usual place aside, and sessions are saved without starting.
666
+ - `/devices` shows whether the mesh is on, how this device finds the others, and which are linked.
667
+ - The mesh uses the relay at `transports.webrtc.options.relayUrl` when one is set. Without one it
668
+ finds devices on the local network and over the public ways in `transports.mesh.options`.
669
+ - `/peers`, `/handoff` and `/devices` stay user-only. Their descriptions tell the model they cover
670
+ linked devices.
671
+ - `agent-framework`: the `/peers` port can list linked devices (`listDevices`, `ILinkedDeviceSummary`).
672
+ - `agent-command`: the `/devices` port can report the mesh (`meshStatus`, `IDevicesMeshStatus`).
673
+ - e15e22b: The Node WebRTC transport runs on `node-datachannel` (libdatachannel, DTLS by OpenSSL). The DTLS stack
674
+ verifies handshake signatures, so a channel binding names the party that holds the certificate's key.
675
+ It is an optional dependency with a prebuilt binary per platform; where it cannot load, the WebRTC
676
+ transport reports itself unavailable instead of falling back to another implementation.
677
+
678
+ - `agent-transport-webrtc` — `RtcPeer` / `RtcChannel` wrap one connection; `loadDataChannel` replaces
679
+ `loadWerift` (and the `loadWerift` option becomes `loadDataChannel`). Every connection has its own DTLS
680
+ certificate, no ICE server is contacted unless configured, and `werift` is no longer a peer dependency.
681
+ A pairing peer that finishes the handshake first and speaks at once no longer has that frame dropped: it
682
+ is held until this side accepts, and discarded if it does not.
683
+ - `agent-cli` — depends on `node-datachannel` (optional) instead of `werift`.
684
+ - 007fd90: Authority per connection: pairing stays with the local operator, and driving needs the operator's yes.
685
+
686
+ - `agent-interface-session-mobility` — `ConnectionAuthority` decides what one connection may do.
687
+ `presence` and `message` are allowed; `delegate` and `handoff` ask the receiving operator for every
688
+ request; `observe` and `drive` ask once per connection. With no `IOperatorApprover` the answer is
689
+ no. `authorizeDelegation` turns an approved task into a peer turn from where admission placed the
690
+ peer, ignoring anything else on the request, so the receiver's policy decides what it may do.
691
+ - `agent-transport-webrtc` — `connectionApproval` asks the operator before a connection reaches the
692
+ session, after every proof has run. Frames the peer sends meanwhile are held (bounded) and delivered
693
+ only after a yes. A channel that closes first withdraws the question (the approval context carries
694
+ an `AbortSignal`), and a later answer admits nothing. A first-pairing device is pinned for
695
+ reconnect only once it is admitted.
696
+ - `agent-command` — `/remote-control enable` and `revoke` from a connected surface are refused, and
697
+ `status` never shows a connected surface the pairing link.
698
+ - `agent-framework` — the `remote-control-enable` host action runs only for the operator's own
699
+ command, whichever command asked for it.
700
+ - `agent-cli` — every remote-control connection, a returning trusted device included, is put to the
701
+ operator on the host terminal; without an interactive terminal it is refused.
702
+ - c7f9203: Connected sessions can send each other files.
703
+
704
+ - `/peers send-file <session-id> <path>` sends a copy of any file the operator can read to another
705
+ live session on this host.
706
+ - The model sends a file only through the `peer_send_file` tool. Every call asks the user, showing
707
+ the path, size, hash and destination; no permission mode, rule or remembered consent answers it.
708
+ The tool reaches only files inside the workspace whose path does not look like it holds secrets
709
+ (`.env*`, `~/.ssh`, keys and credentials), and it does not exist in a turn a peer's message started.
710
+ - The receiving operator approves every file. A received file is kept as an inert copy (mode 0600)
711
+ under `the configured user data directory<sender>/`. It is never run and never placed in the model's context.
712
+ The conversation is told only its name, size and sha256. A name that leaves that directory is
713
+ refused, a symbolic link is never written through, and nothing is overwritten.
714
+ - Transfers travel on a channel of their own (a separate connection on this host, a separate data
715
+ channel between devices), in chunks the receiver paces, up to 32 MiB, and are kept only when the
716
+ whole content matches the offered sha256. A transfer that ends early is discarded; there is no
717
+ resume.
718
+
719
+ **API**
720
+
721
+ - `agent-interface-session-mobility`: the `file` capability, which asks the operator for every
722
+ request; `ConnectionAuthority.authorizeFile`; `IFileOffer` and `IFileFrameChannel`.
723
+ - `agent-transport/node`: `sendFileOverChannel` and `receiveFileOverChannel`, the carrier over any
724
+ `IFileFrameChannel`; `DEFAULT_MAX_FILE_BYTES`.
725
+ - `agent-transport-webrtc`: `IDeviceMeshLink.openFileChannel` and `onFileChannel`.
726
+ - `agent-remote-pairing`: `file` joins `DEVICE_CAPABILITIES`. A device certificate that names it is
727
+ refused as malformed by an earlier version.
728
+ - `agent-core`: `IToolPermissionProfile.notInPeerTurn` withholds a tool from a turn a peer's message
729
+ started.
730
+ - `agent-framework`: `ICommandLocalPeersAdapter.prepareFile`.
731
+ - 004fe7f: `/handoff` moves a session over a real connection.
732
+
733
+ - `/handoff <session-id>` pushes this conversation to another the agent runtime session on this machine. The
734
+ same carrier also runs between two of the user's devices over their mesh connection; no command
735
+ opens that connection yet.
736
+ - A hand-off is push-only: only the operator of the session that holds it starts one. A session or
737
+ device that asks another for its session is refused.
738
+ - The source signs a grant for that one transfer over that one channel with its device key, so a
739
+ hand-off needs the device identity from `/devices init`. The receiving side checks it against the
740
+ sender's certificate, then asks its own operator; without a yes nothing is sent.
741
+ - The session travels on the file-transfer carrier, is kept aside until it matches the manifest, and
742
+ is saved without being started. The operator there resumes it with `robota --resume <id>`.
743
+ - The source gives the session up, and ends, only once the receiving side confirms it saved it.
744
+ Every other outcome leaves the session where it was; if the confirmation is lost, `/handoff` to the
745
+ same session again resends the same transfer, which the receiver settles without saving it twice.
746
+ Peer attribution (`driverId`, `turnSource`)
747
+ travels with it.
748
+ - `/handoff` stays user-only. Its description tells the model to suggest the command to the user.
749
+ - `agent-transport-webrtc`: an admitted mesh link exposes the DTLS fingerprints it is bound to, and
750
+ `judgeHandoffGrant` is exported.
751
+ - `agent-interface-session-mobility`: a hand-off carrier may move the sealed payload whole
752
+ (`sendPayload`), the destination verifies it with `receivePayload`, and the source can report its
753
+ open transfer (`status`) and abandon it for any refusal the destination names.
754
+ - 189c21e: The device mesh can find and signal a peer device beyond the local network, through public
755
+ infrastructure that sees only signed ciphertext.
756
+
757
+ - **Rendezvous records (BEP 44):** each device publishes, per peer, its connection hints and the newest
758
+ device revocation lists it holds as mutable items on the BitTorrent Mainline DHT (`bittorrent-dht`,
759
+ directly over UDP), or through pkarr relays (`createPkarrRelayStore`, for clients that cannot reach
760
+ the DHT). Every record is signed by a one-time key of the pair, direction, epoch and purpose, stored
761
+ under a rotating salt, AEAD-sealed and padded to a fixed size; publish times are jittered per pair.
762
+ Lookups read the peer's records at the current and adjacent epochs and reject anything that does not
763
+ verify or open for the pair. Lists too large for one record are split into fixed-size chunks.
764
+ `MeshDht` is the candidate source and publisher, and its `latestLists` feeds the freshness lookup
765
+ before a remote admission with every list candidate found, newest first.
766
+ - **Nostr signaling:** `NostrMeshRelay` carries live SDP/ICE as ephemeral events on several relays,
767
+ under per-epoch, per-direction keys and kinds, with our own AEAD over the payload and no tags.
768
+ - **Order:** `DiscoveringMeshRelay` tries the address cache, mDNS, then DHT records for candidates,
769
+ and when none answers the signaling carriers in order — Nostr, then the self-hosted relay. A
770
+ carrier that carries no admission in time is set aside for the next one.
771
+ - **Defaults:** `DEFAULT_NOSTR_RELAYS` and `DEFAULT_PKARR_RELAYS` list well-known relays of several
772
+ operators; `transports.mesh.options` (`dht`, `pkarrRelays`, `nostrRelays`) replaces them, parsed by
773
+ the CLI's `parseMeshInternetSettings`, and `openDeviceMesh` takes them as `internet`. No command
774
+ starts the mesh yet.
775
+ - `agent-remote-pairing`: `signingSeed`, `sealRecord` and `openRecord` take a record purpose
776
+ (`hints`, the default and unchanged; `revocation`; `signal`), and two tag purposes are added. The
777
+ device handshake's `fetchLatestLists` may return several candidates per list kind; each is verified
778
+ and the newest that verifies counts, so a forged "newer" list cannot hide a real one.
779
+ - `agent-cli` declares the mesh's runtime dependencies (`bittorrent-dht`, `nostr-tools`,
780
+ `multicast-dns`), which its bundle leaves external.
781
+
782
+ **Breaking (pre-release, hence minor):** `IDiscoveringMeshRelayOptions.advertiser` becomes
783
+ `advertisers` (a list).
784
+ - 963a4e0: Where no direct path joins two of one user's devices, a TURN relay on one of the user's own devices carries the
785
+ connection.
786
+
787
+ - `agent-transport-webrtc` — `TurnServer`, a pure-JavaScript TURN server over UDP (Allocate, Refresh,
788
+ CreatePermission, ChannelBind, Send/Data indications, ChannelData, long-term credentials) with quotas for
789
+ allocations per owner and in all, relayed bytes per second per owner, and allocation lifetime, and an optional
790
+ relayed-port range for a relay behind a NAT. Only what MESSAGE-INTEGRITY covers is read. Requests nobody has
791
+ authenticated are answered at a limited rate (per source and in all) and never with more bytes than they
792
+ carried, and forwarding into private ranges can be turned off (`allowPrivatePeers`). `MeshTurnRelay` runs it
793
+ for the devices of the roster: each pair derives a short-lived credential of its own (`meshRelayCredential`), a
794
+ device the lists drop or revoke can no longer allocate and loses its allocations. `DeviceMeshNode` takes
795
+ `relays` (the relays paired devices advertise, then configured TURN servers, and `relayOnly`) and
796
+ `relayServer`; a connection that needs a relay and has none is refused with `MeshRelayNeededError`, which says
797
+ why a relay was needed and carries the direct attempt's failure. `MeshDht` publishes this device's relay
798
+ endpoints in the sealed hints records (`relayEndpoints`) and reads the peers' (`relayAdverts`). DTLS stays end
799
+ to end; the relay only forwards it.
800
+ - `agent-remote-pairing` — the pair rendezvous derives a `relay-user` tag and `relayPassword`, the relay
801
+ credential's password for one direction and username.
802
+ - `agent-cli` — `transports.mesh.options` takes `relay` (`serve`, `port`, `host`, `publicAddress`, `relayPorts`,
803
+ `allowPrivatePeers`), `turnServers` and `relayOnly`. When the mesh is on, the session's mesh runs the relay,
804
+ advertises it to paired devices only, and uses the fallback order; `/devices` names the relays, and a device
805
+ that needs a relay is reported once with why. Running a relay, or relay-only without TURN servers, needs the
806
+ DHT or pkarr relays, which carry a relay's address to the other devices; a setting that could not work is
807
+ refused, naming it.
808
+ - 5e924ee: Two of one user's devices can find each other on the local network before the relay.
809
+
810
+ - `agent-remote-pairing` — `derivePairRendezvous` derives every place a device pair meets from their
811
+ pairwise secret, separated by direction: rotating tags (hourly epochs, looked up one epoch either
812
+ way), the seed of each epoch's one-time signing key, sealed connection-hint records, and the relay
813
+ inbox topics. It takes the lists in force and refuses a device they do not name with the same
814
+ key-agreement key, or revoke, so a rotated or revoked key stops deriving.
815
+ - `agent-transport-webrtc` — `startLanMeshRelay` / `DiscoveringMeshRelay` look for a peer in the
816
+ address cache, then with mDNS (`MeshMdns`, over `multicast-dns`), then on the self-hosted relay, and
817
+ carry signals to the peer's direct endpoint (`startMeshLanListener`) on rotating pairwise topics,
818
+ sent only as hashes. An endpoint must prove it holds the pair's topic before it carries signals,
819
+ and is set aside when no admission follows. The mDNS announcement names no product, device or
820
+ host, pads its instance count with names that hold for the epoch, and answers queries at a bounded
821
+ rate. Discovery yields candidates only: admission is still the device handshake, and an address is
822
+ remembered only after an admission it carried.
823
+ - `agent-cli` — the device mesh endpoint can look on the local network (`lan` option), remembering
824
+ the addresses that worked in an owner-only `the configured user data directory`; no command starts
825
+ it yet.
826
+ - 18b52cc: Built-in commands are offered to the model deliberately, each described for the model, and never
827
+ with a trust, credential or permission-widening action.
828
+
829
+ - `agent-interface-command` — `ICommand` gains `modelDescription?` (what the model is told, beside the
830
+ short `/help` line), and `modelInvocable` on a subcommand entry now narrows what the model may run.
831
+ - `agent-framework` — `ISystemCommand` gains `modelDescription?` and `modelRequiresPermission?`.
832
+ Once any subcommand of a model-invocable command declares `modelInvocable`, the model may run only
833
+ the bare command and the subcommands declared `true`; everything else, including an alias or an
834
+ undeclared subcommand, is refused before the command runs. The model-facing descriptor lists only
835
+ that subset. A model-requested monitor's command is now decided by the shell tool's gate (its
836
+ Bash/Shell rules, the mode and the prompt) and a refusal rejects with the new
837
+ `MonitorCommandRefusedError`. The `scriptedSession` test harness accepts `permissions` patterns.
838
+ - `agent-session` — `Session.checkToolPermission(toolName, toolArgs)` decides an action that has a
839
+ tool's effect by another route: that tool's PreToolUse hooks, then the gate's rules, mode,
840
+ remembered consent and prompt — never the command sandbox's auto-approval, since the action does
841
+ not run inside the sandbox.
842
+ - `agent-framework` also: `ICommandMCPActivationAdapter.userActionSurface?` tells `/mcp` whether the
843
+ user can type a session command, so the model's status names the terminal sign-in otherwise.
844
+ - `agent-command` — `/context` (bare and `list`), `/cost` (the report, not `budget`) and `/mcp`
845
+ (`status` only, without a prompt) are now model-invocable; `/memory approve` and `/memory reject`
846
+ are now user-only; the model's `/monitor` is decided by the shell gate rather than by consent to
847
+ the command's name. Every model-invocable command carries a model-facing description. The model's
848
+ `/mcp status` shows only safe names, states and the command to suggest, and a caller that does not
849
+ identify itself gets that view. `/context list` accounts only for turns still in context. New
850
+ `mcpUserActionNotice`, `mcpUserActionCommand` and `mcpUnavailableServersNotice` build the fixed
851
+ notices.
852
+ - `agent-command-workflows` — `/workflows` carries a model-facing description.
853
+ - `agent-mcp` — `createDiscoveredTool` accepts `authFailureNotice`: a call the server refuses for
854
+ authentication returns that host text instead of the generic failure.
855
+ - `agent-cli` — an MCP server that did not start because the user must approve it, trust the
856
+ workspace or sign in is named to the model at the start of an interactive session with the
857
+ command to suggest, and a
858
+ signed-in OAuth server that refuses a call tells the model to suggest `/mcp login <server>` — or, in print and serve runs, the terminal
859
+ `robota mcp login <server>`.
860
+
861
+ A command whose bare form is a complete action declares `runsBare`, so choosing `/cost` or `/mcp`
862
+ from the autocomplete menu still runs it even though they now declare subcommands.
863
+ - 9843fe6: Sign in to a remote MCP server from inside a session, and use its tools without restarting.
864
+
865
+ - **`/mcp login <server> [--no-browser]`** runs the same per-server OAuth sign-in as
866
+ `robota mcp login` (discovery checks, PKCE, `state`, RFC 9207 `iss`, RFC 8707 resource, the
867
+ loopback listener, the lock-guarded store). It opens the browser through the argv opener; with
868
+ `--no-browser`, or when no browser can be opened, it shows the authorization URL and asks for the
869
+ redirect URL in the session's own prompt (masked), held to the same rules as a pasted redirect in
870
+ the terminal. A failed, refused, timed-out or cancelled sign-in changes nothing and is reported by
871
+ a fixed reason only. `/mcp login <server> --client-secret` is refused: a secret is never typed into
872
+ a session, and `robota mcp login <server> --client-secret` is named instead (also after a failed
873
+ token exchange for a pre-registered client). `/mcp` stays user-only (`modelInvocable: false`).
874
+ - **Connected in the same session:** after a sign-in, a server that could not connect for want of
875
+ one goes through the normal admission (approval, fingerprint, trust) and connects, and its tools
876
+ are offered from the next message; a server that was already connected is admitted again and
877
+ reconnects, and its authenticator drops what it held and reads the new credential. A tool left out
878
+ because the session already has its name is reported, and only tools actually added get
879
+ provenance. In browser mode the authorization URL is shown in the session prompt before the
880
+ browser opens, where the user can also choose to paste the redirect instead or cancel.
881
+ - **`runMCPOAuthLogin`** takes `readRedirectWhenBrowserFails`: when `openBrowser` rejects, the
882
+ loopback listener stops and the pasted redirect is read instead, for the same redirect URI. The
883
+ loopback listener's time limit now runs from its first `wait()` — once the authorization page is
884
+ handed over — so time spent at a prompt before the browser opens does not count against it.
885
+ - **`Session.addTools`** (and `ICommandSessionTools.addTools`) offers tools that became usable
886
+ mid-session, through the same permission gate and — via `ISessionOptions.wrapAddedTools`, which
887
+ `createSession` sets — the same edit-checkpoint and reversible-execution wraps as the assembled
888
+ tools. A name the session already has is left out, never replaced. Calls are serialized, and tools
889
+ added while a turn runs are applied when the next turn starts, so a turn's rounds all see one
890
+ tool list and the prompt cache misses once, at that boundary.
891
+ - **Breaking (`agent-framework`, major):** `addTools` is a new required member of the
892
+ `ICommandSessionTools` role port (and so of `ICommandSessionRuntime`). A host that implements the
893
+ port itself must add it; one that passes an `agent-session` `Session` already has it.
894
+ - **`ICommandMCPActivationAdapter.oauthLogin`** (`ICommandMCPOAuthLoginRequest`,
895
+ `ICommandMCPOAuthLoginResult`, `ICommandMCPOAuthRedirectPrompt`) is the port behind it.
896
+ - The sign-in notice and `/mcp status` now suggest `/mcp login <server>` in a session and
897
+ `robota mcp login <server>` in a terminal; the server's name is shown only when it is safe to paste
898
+ into any shell, otherwise `<server>`.
899
+ - 7b72344: Every client can offer the session's commands and skills and show its status. The GUI uses them as a
900
+ desktop-style composer.
901
+
902
+ - `agent-interface-session` is **`major` because `IInteractiveSession` gains required members**:
903
+ `ISessionCommands.listSkills()` and a `statusRead` capability, `getStatusSnapshot()`. The snapshot
904
+ holds session, model, permission mode, effort, context and goal. An external implementation stops
905
+ compiling until it adds both.
906
+ - `agent-transport` is **`major` for the same reason on `IProtocolSession`**. It also gains the wire
907
+ messages `get-commands` → `commands` and `get-status` → `session_status`. Both are reads that the
908
+ observe role may send.
909
+ - `agent-interface-command` gains `ICommandSkillListEntry`, moved from `agent-framework`, which
910
+ re-exports it unchanged.
911
+ - `agent-ui-web` is **`major` because its state changes shape**:
912
+ - A command's outcome and a finished turn's tool calls are now conversation entries: `messages` is
913
+ `TConversationEntry[]`.
914
+ - The `uiIntentNotices` list, `dismissUiIntentNotice`, `applyUiIntentEvent`,
915
+ `removeUiIntentNotice` and `IUiIntentNotice` are removed. An intent now answers with an info
916
+ line in the conversation.
917
+ - Session notices keep only `session-error` and `protocol-error`.
918
+ - The state gains `commandCatalog` and `sessionStatus`.
919
+ - `agent-command` registers `/theme` and `/keybindings` even without a terminal. They then answer
920
+ that they belong to the configured CLI terminal, instead of being unknown.
921
+ - `agent-framework`:
922
+ - `InteractiveSession.getStatusSnapshot()`.
923
+ - The main-thread row previews the last chat message instead of the last record's type.
924
+ - `agent-cli` serves the full GUI web app, renamed from `agent-cli-web` to `agent-gui-web`, on
925
+ `robota --serve --open`.
926
+ - 9ecffed: `robota daemon start | status | stop | unlock` runs one long-lived runtime per workspace for clients to attach to.
927
+
928
+ - **What a daemon is.** A supervised session marked as the workspace's daemon.
929
+ - Its control socket answers `connect` with the loopback WebSocket address, and only to a caller that names the daemon's current start.
930
+ - The token never touches disk or argv. The daemon removes it from its own environment, so its tools do not inherit it.
931
+ - **Starting.** `daemon start --json` prints one line, `{"id","url"}`, for a client host to read.
932
+ - Starts in one workspace take turns through a lock.
933
+ - A lock left behind by a start that is gone is never removed automatically. The start refuses and names `robota daemon unlock`.
934
+ - A daemon that cannot hand over its address fails its start and is not left running.
935
+ - **The desktop app attaches** to the workspace daemon and starts one only when none is running.
936
+ - Closing the window leaves the daemon running.
937
+ - If the daemon stops while the window is open, the window says so and offers Reconnect.
938
+ - **`agent-ui-web`.** The WebSocket session client reports when its retries are exhausted (`onGiveUp`, and `onConnectionLost` in `useWsSession`).
939
+ - 6ae3f28: A served runtime can list its workspace's sessions, start a new one and switch to another without the
940
+ process or any client connection restarting. The GUI shows them in a sessions sidebar.
941
+
942
+ - `agent-interface-session` is **`major`** for two reasons:
943
+ - It adds `ISessionListing`, `ISessionDirectory` and `ISessionSwitchedEvent`.
944
+ - `IInteractiveSessionEvents` gains a required `session_switched` event. An exhaustive map over the
945
+ event names stops compiling until it classifies the new event.
946
+ - `agent-transport` is **`major`** for the same kind of reason:
947
+ - It adds the wire messages `list-sessions` → `sessions`/`sessions_error`, `new-session`,
948
+ `switch-session`, and the broadcast `session_switched`.
949
+ - It adds a `sessionDirectory` handler option. A refusal to switch comes back as a
950
+ `protocol_error` carrying the reason.
951
+ - An exhaustive map over message types must add the new variants.
952
+ - `agent-transport-ws` passes a configured `sessionDirectory` to every connection.
953
+ - `agent-framework` is **`major` because `IRuntimeHostHandle.session` is now a `SessionSlot`**, not the
954
+ `InteractiveSession`, and `bindTransports` receives the slot.
955
+ - The slot is an `IInteractiveSession` that forwards to the current session. Members outside that
956
+ interface are read through `host.session.current`, which changes on a switch.
957
+ - Adds `InteractiveSession.whenInitialized()`.
958
+ - Exports `listUnreadableSessions`.
959
+ - `agent-ui-web` is **`major`**:
960
+ - `IWsSessionState` gains session listing state and actions.
961
+ - It adds a `SessionSidebar`.
962
+ - `/resume` opens the sidebar.
963
+ - `agent-cli`: `robota --serve` provides the session directory, and refuses a switch that would lose
964
+ work in progress. External-event grants belong to the run: a switch reopens them on the new session,
965
+ as the TUI already does.
966
+ - External-event grant history (spent tokens, rate windows, revocations) belongs to the run. The new
967
+ option `externalEventGrantHistory` (from `createExternalEventGrantHistory()`) is shared by every
968
+ session that a served runtime or the TUI builds. A session switch therefore replays no spent token
969
+ and resets no rate limit. The TUI previously had this gap when it switched sessions.
970
+ - 57f57f5: A daemon keeps several sessions live, and each client is bound to its own: one client's switch moves
971
+ only that client.
972
+
973
+ - `agent-interface-session`: `ISessionBinder`/`ISessionBinding`, the session-change refusal codes with
974
+ `isSessionChangeRefusal`, and listing rows that may say `live` and `clients`.
975
+ - `agent-framework`: `SessionPool` and `SessionChangeRefusal`.
976
+ - `agent-transport` (**major**): a new server frame, `session_change_failed`, which an exhaustive
977
+ consumer must handle. A refused `new-session` or `switch-session` now answers with it, carrying a
978
+ `code`, instead of `protocol_error`; both requests take an optional `requestId` that it echoes.
979
+ - `agent-transport-ws`: the `sessionBinder` option binds each connection to its own session and
980
+ releases the binding when the connection closes.
981
+ - `agent-cli`: `robota --serve` and the daemon keep up to four sessions live. Each WebSocket client and
982
+ attached terminal is bound to its own session; leaving a busy session is no longer refused, and only
983
+ the last driver of a session with a pending prompt is kept from leaving it. Grants and the supervised
984
+ name stay on the runtime's first session, and its reported activity covers every live session.
985
+ - `agent-ui-web`: a refused new or switch shows the host's reason as a notice (an older host's
986
+ `protocol_error` still does); the session sidebar marks live sessions and counts the other clients
987
+ on each; after a reconnect to a host that keeps sessions live, the GUI returns to the session it was on.
988
+ - `agent-ui-terminal`: an attached terminal shows why a switch was refused, and the picker's switch
989
+ stays pending until the host answers; the session picker marks live sessions and their clients.
990
+ - ba822c1: An attached client reads a workspace entry's detail, stops a waiting self-paced loop, completes
991
+ subcommands, and sees status changes another client made.
992
+
993
+ - `agent-interface-session` (major): `IInteractiveSession` gains the required roles
994
+ `ISessionExecutionDetail` and `ISessionSelfPacedLoopControl` (`TWaitingLoopStopOutcome`), and the
995
+ exhaustively mapped event map gains `status_changed`.
996
+ - `agent-transport` (major): `IProtocolSession` gains both roles; the wire unions gain
997
+ `read-execution-detail`, `stop-waiting-loop`, `execution_detail`, `execution_detail_error` and
998
+ `waiting_loop_stop`; `status_changed` is pushed as `session_status`; `isObserverMessageType` is
999
+ exported from the root and `./client`.
1000
+ - `agent-interface-command` (minor): `ICommandListEntry` gains optional `argumentHint` and
1001
+ `subcommands` (`ICommandSubcommandEntry`).
1002
+ - `agent-cli` (minor):
1003
+ - `robota session attach` and an attach from `robota session view` open the full terminal UI,
1004
+ the one `robota --attach` opens, in drive mode or, with `--observe`, read-only. The reduced
1005
+ attached view is gone.
1006
+ - A served runtime names each of its sessions after the session's first real turn.
1007
+ - `agent-framework` (minor):
1008
+ - `InteractiveSession` gains `stopWaitingSelfPacedLoop(reason?)`: it stops the one waiting loop,
1009
+ or stops none and names `/loop stop` when several wait. `SessionSlot` forwards it and
1010
+ `readExecutionWorkspaceDetail`.
1011
+ - The session emits `status_changed` when its mode, model, effort, goal or name changes, after a
1012
+ command, a turn, a rename or a goal or plan transition.
1013
+ - A new option `autoName: true` makes the session name itself once, after its first turn, with its
1014
+ current provider; it keeps a name it already has and lets a rename made meanwhile win. Off by
1015
+ default.
1016
+ - The command catalog carries each command's `argumentHint` and `subcommands`.
1017
+ - `agent-ui-terminal` (major):
1018
+ - The full terminal UI attached to a host's session reads a workspace entry's detail, sends input
1019
+ to a background task, stops a waiting self-paced loop on Esc, and completes subcommands.
1020
+ - `renderAttachedApp` takes `mode: 'drive' | 'observe'` (default `'drive'`) and `announce`. In
1021
+ observe mode the terminal sends only what an observer may send, refuses prompts, host commands,
1022
+ abort and loop stop with a read-only notice, still runs `/exit` and its own commands, and its
1023
+ status bar says it is observing. `ITuiChannelSnapshot` gains `readOnly`.
1024
+ - The in-process terminal no longer names sessions; it builds its session with `autoName: true`.
1025
+ `ITuiInteractionChannelOptions.onAutoNamed` is removed.
1026
+ - 6e6b06b: `robota --attach` puts the full terminal UI on this workspace's running daemon.
1027
+
1028
+ - **`agent-ui-terminal`:**
1029
+ - `renderAttachedApp` renders the same App over a wire connection, through `WireTuiChannel`, a second implementation of the TUI's channel port.
1030
+ - Leaving detaches; the daemon keeps running.
1031
+ - The session picker lists and switches the daemon's sessions. It opens on the daemon's answer to `/resume`; a daemon that cannot list its sessions says why instead.
1032
+ - With no saved sessions to resume, `/resume` says so and keeps the prompt, instead of opening an empty picker that blocks input. This applies to the in-process TUI too.
1033
+ - The session picker lists an unnamed session by the part of its id that differs, not by the `session_` prefix every id shares. This applies to the in-process TUI too.
1034
+ - The status bar names the daemon's current session: its name, or else its short id.
1035
+ - A question already open when the terminal attaches is shown, and a long session's history reaches the terminal without the daemon cutting it off.
1036
+ - Features that belong to the runtime process say they are unavailable while attached: the plugin manager, background task details and sending to an agent job.
1037
+ - **`agent-cli`:**
1038
+ - `robota --attach` finds the workspace daemon and asks the user to confirm on the terminal, as `robota session attach` does, then attaches.
1039
+ - Options that shape a session are refused, because the daemon shapes its session.
1040
+ - A terminal attached over the supervised socket can now list, start and switch sessions.
1041
+ - A client's command no longer stops or restarts the workspace daemon. `/language`, `/reset`, `/exit` and provider setup or switch keep their saved change, and the client is told to run `robota daemon stop`, then `robota daemon start`.
1042
+ - `robota --attach` installs the plain TUI's process guards, so an error the plain TUI survives no longer ends the attached terminal.
1043
+ - A client's command no longer stops or restarts any supervised session either; the client is told to run `robota session stop <id>`, and the saved change applies to a new session from `robota session start --background`.
1044
+ - db35dcd: MCP approvals now outlive the process, and an approval takes effect at once. The configured CLI keeps
1045
+ activation decisions in `the configured user data directory` (owner-only) unless the host passes its own
1046
+ `mcpApprovalStore`, so an approved server connects at later starts until its definition changes.
1047
+ `/mcp approve <server>` now also connects the server in the running session, the way `/mcp reload`
1048
+ does, instead of waiting for a restart. A remote server without OAuth therefore connects once
1049
+ approved; stdio servers still need a host-supplied authority.
1050
+ - e8d70ac: A first run finds a provider, instead of a dead end. `robota --serve` (and the daemon it starts) no
1051
+ longer refuses when no provider is configured: it starts in setup mode, and the GUI's conversation area
1052
+ shows a "Connect a model provider to start" panel with a "Set up provider" button in place of the
1053
+ composer. Answering it configures and swaps in the first provider live, with no restart. A startup
1054
+ failure now says why — `robota daemon start --json` and the desktop app's fatal screen report the
1055
+ child's own reason instead of a generic "readiness channel closed", and the fatal screen gets a Try
1056
+ again button. `trust status --json` and the desktop trust dialog list only sources whose state trust
1057
+ would actually change, instead of naming one this platform could not determine; the dialog shows one
1058
+ sentence and a collapsed Details section. `robota --serve --open` in an untrusted folder now asks at
1059
+ the terminal (trust it, start Restricted, or quit) when someone is there to ask, instead of refusing
1060
+ outright.
1061
+ - b96b81a: `--serve --http-port <port>` also serves the agent HTTP API on `127.0.0.1:<port>`, so other
1062
+ applications and services can submit a prompt and stream its result over SSE, run a slash command,
1063
+ abort and read the conversation without a Robota client library. Requests are admitted by the
1064
+ bearer in `PRODUCT_HTTP_TOKEN` (at least 32 characters), which the runtime removes from its
1065
+ environment before any command runs; the API binds loopback only and is reached from elsewhere
1066
+ through the operator's own proxy. `--http-port` keeps its `mcp serve` meaning.
1067
+ - 3427887: `--serve --http-port` can serve the agent HTTP API as an OAuth resource server: with `--http-public-url`, `--oauth-issuer`, `--oauth-scopes` and `--oauth-allowed-subjects` (plus optional `--http-host` and `--trusted-proxy`) it may bind a non-loopback address and admits access tokens through the same shared resource-server gate as `mcp serve`. Without them it stays loopback with the `PRODUCT_HTTP_TOKEN` bearer.
1068
+
1069
+ The refusal answer shared by both resource-server carriers (503 for unavailable issuer keys, uncounted; counted challenge otherwise) is now `refuseAccessToken` in `@robota-sdk/agent-transport/node`.
1070
+ - 7116367: Credentials the runtime holds for itself no longer reach the commands it runs.
1071
+
1072
+ - `agent-cli` — once a workspace's settings are admitted, every variable a provider profile or
1073
+ definition names as its credential (`$ENV:` references, and defaults such as `OPENAI_API_KEY`)
1074
+ leaves the process environment, so tools, hooks, background shells, a skill's `!` commands and
1075
+ the environment an MCP header helper inherits no longer carry it, a hosted worker's broker token
1076
+ included (a variable an MCP definition references explicitly still resolves); the provider keeps
1077
+ authenticating from the startup snapshot. A user or managed settings layer can let
1078
+ commands see one with `"commandEnvAllow": ["NAME"]`; project settings cannot. With the OS sandbox
1079
+ on, confined commands can no longer read `settings.json`, `credentials/`, `mcp-credentials/` or
1080
+ `remote-host-identity.json` under the user state directory. **Behavior change:** a command that
1081
+ relied on inheriting a provider key now needs the opt-in, and a host embedding `startCli` finds
1082
+ those variables gone from its own `process.env` afterwards — a later in-process call must pass them
1083
+ in its `environment`.
1084
+ - `agent-framework` — the settings schema gains `commandEnvAllow`; `checkSettingsDocument` and
1085
+ `buildProviderProfilesSnapshot` take an optional environment map to resolve `$ENV:` references
1086
+ against instead of the live process environment.
1087
+ - `agent-command` — provider startup checks credentials against the host's environment snapshot.
1088
+ - `agent-tools` — `OsSandboxClient` takes `hiddenPaths`, always hidden from confined commands and
1089
+ not changeable by sandbox settings.
1090
+ - `agent-subagent-runner` — a child-process subagent removes its provider credential variable from
1091
+ its own environment once its provider is built, unless the start payload says the owner opted it in
1092
+ (`keepProviderCredential`).
1093
+ - `dag-node-instant-node` — prompt nodes accept an env resolver (`createPromptBackedNodeDefinition`'s
1094
+ third argument, `rehydrateInstantNode`'s `resolveEnv`) for their `$ENV:` credential default.
1095
+ - `agent-command-workflows` — `/workflows create` and `/workflows run` resolve prompt-node credentials
1096
+ from the host's environment snapshot.
1097
+ - c967c57: `robota acp` runs the agent as an Agent Client Protocol (v1) agent over stdio, so an editor that launches it (Zed, JetBrains and other ACP clients) can create a session, send prompts, see streamed replies and tool calls, approve or reject permission requests, and cancel a turn. Workspace trust, permission rules and the sandbox behave as in the terminal: the editor answers prompts and widens nothing. A folder that is not trusted yet is refused at `session/new` with the `trust` command to run, a working directory other than the one the agent was started in and any editor-supplied MCP servers or extra roots are refused, and a prompt that starts with `/` runs that command.
1098
+
1099
+ New package `@robota-sdk/agent-transport-acp` provides `createAcpTransport`, the ACP `ITransportAdapter` the command uses.
1100
+
1101
+ `@robota-sdk/agent-transport/node` gains `attachStdioCarrier`, the process-input bridge and close observation a stdio protocol carrier shares. `agent-transport-mcp` now uses it for its stdio carrier; its behavior is unchanged.
1102
+ - e706b43: Live telemetry can name its spans with the OpenTelemetry GenAI semantic conventions. Set
1103
+ `PRODUCT_TELEMETRY_SEMCONV` to `gen_ai` to export `invoke_agent`, `chat {model}` (client) and
1104
+ `execute_tool {tool}` spans with `gen_ai.*` attributes, keeping Robota-only facts as `agent.*`; or to
1105
+ `gen_ai/dup` to emit both attribute sets while dashboards move. The default, `agent`, exports exactly
1106
+ the spans it did before. An unknown value, or the setting while neither traces nor metrics are exported,
1107
+ refuses startup. Console traces under a GenAI mode print the same projected spans.
1108
+
1109
+ The live prompt trace now carries each tool body's name (the session's tool-body observation includes it
1110
+ and the framework's live projection passes a label-safe name through); it reaches spans only under a
1111
+ GenAI mode and is never written to session history.
1112
+ - ccff111: Live telemetry can name its metrics with the OpenTelemetry GenAI semantic conventions. With
1113
+ `PRODUCT_TELEMETRY_SEMCONV` set to `gen_ai`, the metrics export the `gen_ai.client.inference.*`
1114
+ duration, token-usage and per-call token histograms, `gen_ai.execute_tool.duration` and
1115
+ `gen_ai.invoke_agent.*` duration and call counts, and drop only `agent.provider.input_tokens` and
1116
+ `agent.provider.output_tokens`, which the GenAI usage counters replace exactly. `gen_ai/dup` exports
1117
+ every `agent.*` metric and the GenAI ones. The default, `agent`, exports exactly the metrics it did
1118
+ before. Provider- and tool-derived GenAI metrics are exported only when no such child was omitted, and
1119
+ usage that was not received is recorded as 0 under the `unknown` modality, as the conventions specify.
1120
+ The GenAI metrics carry the requested model as those conventions require, and their inference points
1121
+ also take the `agent.provider.id` and `agent.model.id` labels under the same
1122
+ `PRODUCT_TELEMETRY_METRIC_ATTRIBUTES` opt-ins as the `agent.*` metrics (the model only in `gen_ai/dup`),
1123
+ so a provider split of token totals survives the dropped counters. `PRODUCT_TELEMETRY_SEMCONV` now applies to
1124
+ traces and metrics, and is refused only when neither is exported over otlp or console. Console metrics
1125
+ print the same projection.
1126
+
1127
+ `@robota-sdk/agent-telemetry-otel` adds `projectLivePromptMetricSamples`, which maps a live prompt trace
1128
+ batch onto those GenAI metrics as plain, SDK-free samples with the recommended bucket boundaries, so
1129
+ every host names and measures the same facts the same way. Its inference samples keep the label-safe
1130
+ `agent.provider.id`, and `agent.model.id` in `gen_ai/dup`, as the provider span does.
1131
+ - 0d43f37: **An editor can reopen an earlier conversation over ACP and offer the agent's slash commands.**
1132
+
1133
+ `@robota-sdk/agent-transport-acp` sends `available_commands_update` once the editor holds the session
1134
+ id — the runtime's commands and the user-invocable skills, each with its argument hint — and again
1135
+ after a prompt that changed the list (a plugin reload, a preset). A host can supply `loadSession`;
1136
+ the agent then offers `session/load`, checks it exactly like `session/new` (the served directory, no
1137
+ editor MCP servers or extra roots, workspace trust), refuses it while a prompt runs, and replays the
1138
+ loaded conversation — what was typed, what the agent answered, and each finished tool call, a reused
1139
+ call id getting a row of its own — before it answers. The port makes the stored session current in
1140
+ the object the transport was attached to, so a host attaches a forwarder such as a session slot.
1141
+ The published narrow `IAcpTransportSession` contract remains supported: command listing and history
1142
+ display reads are optional capabilities. Loading is offered only with both the host port and the
1143
+ history read, so a session cannot be replaced without replaying its conversation.
1144
+
1145
+ `robota acp` supplies the load: the editor may load a stored session of the folder it serves that
1146
+ this version can read, and the agent replaces its session with it and shuts the old one down. A load
1147
+ is refused while the current session has work in progress, and for a stored session with an active
1148
+ goal, a live loop or a schedule that restore would re-arm to fire, which would otherwise run unseen
1149
+ by the editor. With `--no-session-persistence` nothing is stored, so loading is not offered.
1150
+ - 04a6de4: **Reasoning text a provider streams now reaches the editor as an ACP `agent_thought_chunk`, through a new `thinking_delta` session event.**
1151
+
1152
+ `IChatOptions.onThinkingDelta`, `IRunOptions.onThinkingDelta` and `IResumeExecutionOptions.onThinkingDelta`
1153
+ (typed `TThinkingDeltaCallback`) carry reasoning text from a provider through the run, and the session
1154
+ options (`ISessionOptions.onThinkingDelta`, `ICreateSessionOptions.onThinkingDelta`) hand it to the
1155
+ session's owner. `InteractiveSession` emits it as `thinking_delta(delta)`, beside `text_delta`. The
1156
+ text is never part of the reply: it is not appended to the conversation, not streamed through
1157
+ `onTextDelta`, and the core adds no record of its own for it (no text-delta log entry, no
1158
+ `provider_stream_raw_delta`); a provider's own native payload capture and response metadata keep
1159
+ what the provider sent, as before. A reasoning delta counts as provider activity for the idle
1160
+ timeout whether or not anyone listens to it, so a model that is only thinking is not cut off. The
1161
+ existing `thinking(isThinking)` event is unchanged and remains the busy indicator. Where a provider
1162
+ sends no reasoning text, nothing is emitted and nothing new is switched on.
1163
+
1164
+ `@robota-sdk/agent-interface-session` is a major change because a new session event name makes an
1165
+ exhaustive map over the event names stop compiling until it classifies the event.
1166
+
1167
+ `@robota-sdk/agent-transport-acp` sends each non-empty `thinking_delta` to the editor as an
1168
+ `agent_thought_chunk`, in order with the message chunks, so `robota acp` shows the model's reasoning
1169
+ in the editor. A turn that streamed only thoughts still shows its result text, because only reply
1170
+ text marks a turn as streamed. The WebSocket wire, the HTTP stream, headless stream-json, `query()`
1171
+ and the terminal UI do not carry the new event in this change (`@robota-sdk/agent-transport` and
1172
+ `@robota-sdk/agent-ui-terminal` classify it as non-surface). A forked skill and an in-process subagent
1173
+ pass their reply text up but not their reasoning.
1174
+
1175
+ Two providers already receive reasoning text and now report it. `@robota-sdk/agent-provider-openai`
1176
+ passes `response.reasoning_summary_text.delta` events of a streamed Responses call to
1177
+ `onThinkingDelta`; the API sends them only when the provider profile asks for a reasoning summary, and
1178
+ no request option changed; a summary streamed in several parts, and the summary of a later reasoning
1179
+ item, each start on a new paragraph (`\n\n`) so the parts do not run together.
1180
+ `@robota-sdk/agent-provider-openai-compatible` reports the text of Gemma's thought channel, which the
1181
+ provider already removed from the reply, as it streams across chunk boundaries, with each later
1182
+ channel of one reply on a new paragraph; the reply text is unchanged. No other provider reports
1183
+ reasoning, and Anthropic thinking is not enabled. A model fallback chain still moves to the next model when only reasoning had streamed.
1184
+
1185
+ The scripted test provider (`@robota-sdk/agent-core/testing`) accepts an optional `thinking` string on
1186
+ a turn and delivers it through `onThinkingDelta` before the turn's text; the scripted session harness
1187
+ collects `thinking_delta` and now keeps a scripted tool-call turn's `usage`, which it used to drop.
1188
+ - 68dda38: MCP Apps: a tool's declared view can ride its result to a surface that can host it.
1189
+
1190
+ `agent-mcp` declares the `io.modelcontextprotocol/ui` extension only when the host opts in
1191
+ (`IMCPOpenSessionOptions.apps`), on both protocol eras. A tool's `_meta.ui` reference (a `ui://`
1192
+ resource and its audience) is kept in discovery and the catalog only when the server declared the
1193
+ extension and resources too; a malformed declaration is reported by a fixed reason and the tool is
1194
+ still offered without a view, and a tool the server hides from the model is rejected with a reason
1195
+ rather than offered. `IMCPSession` gains `readResource` (a general `resources/read`, also on
1196
+ `MCPConnectionSupervisor`) and `apps`; a custom `IMCPSession` implementation must add `readResource`.
1197
+ After a successful call, `DiscoveredMCPTool` reads the declared resource and, when it is one
1198
+ `text/html;profile=mcp-app` document within the size bound, attaches `IToolResult.view`; otherwise the
1199
+ text result is unchanged and the omission is reported. The view never enters model context.
1200
+
1201
+ `agent-cli` opts in only for the plain `--serve` host that the desktop app and web GUI drive, not the
1202
+ TUI, print runs, `mcp serve` or the ACP agent.
1203
+ - 4c5148e: ARCH-005 Stage S2 — `configured CLI` is now expressed as an `IProductProfile` and assembled by `assembleProduct`;
1204
+ the hand-wired composition root in `agent-cli` is gone.
1205
+
1206
+ - **`@robota-sdk/agent-product`** — provider construction returns IN-KERNEL. `assembleProduct` builds the
1207
+ provider from `providerDefinitions` + the shell's already-resolved `providerSettings` vian agent-core's
1208
+ pure `createProviderFromConfig`; `provider` is now an OPTIONAL injected override. Both are optional, so a
1209
+ Mode A profile can carry only `providerDefinitions`. The fold stays pure and IO-free — every
1210
+ settings/env/file read still happens in the shell. Adds `IAssembledProduct.buildRuntimeOptions`, the pure
1211
+ overlay `buildRuntime` delegates through, and `IAssembledProduct.providerDefinitions`.
1212
+ **Breaking for pre-release consumers:** `IProductProfile.providerDefinitions` is now required and
1213
+ `IProductProfile.provider` / `IAssembledProduct.provider` are now optional.
1214
+ - **`@robota-sdk/agent-framework`** — a scoped, additive session seam: `agentDefinitions` on
1215
+ `TInteractiveSessionOptions` / `ICreateSessionOptions`, composed into the built-in agent tier ahead of
1216
+ `BUILT_IN_AGENTS`, so capability-pack subagents actually reach the runtime. Precedence: discovered
1217
+ project/user definitions > injected > built-in. `AgentDefinitionLoader` now dedupes within that tier
1218
+ (first wins). Absent ⇒ unchanged behavior.
1219
+ - **`@robota-sdk/agent-transport` / `@robota-sdk/agent-transport-tui`** — forward the optional
1220
+ `agentDefinitions` through the headless and TUI channels so every product surface carries the seam.
1221
+ - **`@robota-sdk/agent-cli`** — `configured CLI`'s identity (branding, provider surface, presets,
1222
+ `packs: [codingPack]`, base command modules, injected transports/runners/subagent factory) is declared as
1223
+ data in a product profile and folded by `assembleProduct`. The coding command modules (`/shell`,
1224
+ `/editor`) now come from `pack-coding` rather than the base set, so the pack is load-bearing. What remains
1225
+ in the CLI is product-shell only: arg parsing, settings/file IO, terminal notices, first-run/init/
1226
+ `--configure`, memory + session-resume UX, and print/serve/TUI mode dispatch.
1227
+
1228
+ End-user `configured CLI` behavior is unchanged in substance — the assembled command-module set, provider surface,
1229
+ tool set, subagent roster, and preset resolution all match the pre-change assembly — with one accepted
1230
+ cosmetic delta: `/shell` and `/editor` now appear at the END of `/help` output and of the slash-command
1231
+ autocomplete popup rather than mid-list, because they arrive from `pack-coding` and both surfaces render in
1232
+ module-insertion order. Same commands, same behavior, different position.
1233
+ - 37af5dc: ARCH-006 + ARCH-007 — the capability-pack TOOL axis reaches parity with the command and subagent axes,
1234
+ and `configured CLI` consumes the composition kernel's RUNTIME SEAM instead of only its materials.
1235
+
1236
+ - **`@robota-sdk/agent-framework` (ARCH-006)** — the default tool set is no longer hard-coded.
1237
+ `createSession` accepts `defaultTools`, which REPLACES the `createDefaultTools()` tier (`[]` suppresses
1238
+ it entirely) — the tool-axis mirror of NEUT-003's `builtInAgents` seam for subagents. The assembled
1239
+ list `defaultTools ⊕ additionalTools ⊕ goalTool` is now **deduplicated by tool name, first occurrence
1240
+ wins**, the same rule `AgentDefinitionLoader` applies within the subagent built-in tier. So a
1241
+ contributed tool with a NEW name is additive, a contributed tool that mirrors a framework default is
1242
+ deduped rather than listed twice, and a product can hand its whole tool surface to its capability
1243
+ packs. A name collision keeps the framework default and drops the contribution: the default tier is
1244
+ built WITH the session context (`cwd` supplies `agent-tools`' working-directory path guard, plus the
1245
+ sandbox client and retrieval adapter) and an already-constructed contribution carries none of it, so
1246
+ replacement is expressible only through the explicit `defaultTools` seam — never as a side effect of a
1247
+ collision. The edit-checkpoint wrap now covers the assembled set, so a pack-contributed `Write`/`Edit`
1248
+ is checkpointed too. Option threaded through `ICreateSessionOptions` / `IInitOptions` /
1249
+ `IInteractiveSessionStandardOptions`. Absent `defaultTools` and absent a duplicate name, every existing
1250
+ path is byte-identical.
1251
+ - **`@robota-sdk/agent-product` (ARCH-007)** — `buildRuntimeOptions` no longer overwrites a
1252
+ caller-supplied `commandModules`. A shell that has already narrowed the merged `base ⊕ packs` superset
1253
+ (as `configured CLI` does with its preset's enabled/disabled delta) keeps that selection; the assembled set is
1254
+ overlaid only when the caller left it unset — the same rule `permissionMode` already followed.
1255
+ - **`@robota-sdk/agent-cli` (ARCH-007)** — `startCli` now routes through
1256
+ `product.buildRuntimeOptions(...)`. The shell resolves its own session inputs and the kernel lays the
1257
+ product-owned materials on top: the packs' tools (`additionalTools`), the packs' subagents
1258
+ (`agentDefinitions`), and the default preset's permission posture when `--permission-mode` left it
1259
+ unset. The hand-threaded `product.subagents` path and the three per-surface
1260
+ `args.permissionMode ?? resolvedPreset.permissionMode` expressions are gone — every surface binds to
1261
+ the one kernel result.
1262
+
1263
+ End-user `configured CLI` behavior is unchanged: the assembled command-module set, provider surface, tool set,
1264
+ subagent roster, preset resolution, and permission posture all match the pre-change assembly.
1265
+ - 0116a29: ARCH-006 completion — the configured product's capability packs now OWN its tool surface, and `pack-coding` is built by a
1266
+ context-bound factory.
1267
+
1268
+ - **`@robota-sdk/pack-coding` (BREAKING)** — the module-level `codingPack` constant is **removed** and
1269
+ replaced by `createCodingPack({ cwd, sandboxClient })`, with `cwd` **required**. This is a safety change,
1270
+ not a style one: `agent-tools` disarms its working-directory path guard when `cwd` is `undefined`, so a
1271
+ pack whose file tools are built with no options contributes an **unsandboxed** `Read`/`Write`/`Edit`.
1272
+ That was inert while `agent-framework` always supplied its own context-bound default tier, but ARCH-006
1273
+ lets a product hand the whole tool surface to its packs (`defaultTools: []`) — and a context-free pack in
1274
+ that position is a real hole. Keeping a zero-option export beside that seam would be a loaded gun, so it
1275
+ is gone rather than deprecated. Each call returns fresh instances bound to the supplied context, so two
1276
+ products in one process get independently-scoped file tools. Migration: replace `codingPack` with
1277
+ `createCodingPack({ cwd: process.cwd() })`.
1278
+ - **`@robota-sdk/agent-cli`** — `configured CLI`'s packs are built from the shell's resolved `cwd`
1279
+ (`createProductCapabilityPacks({ cwd })`) before command setup, and the runtime seam passes
1280
+ `PRODUCT_PACKS_OWN_TOOL_SURFACE` (an empty `defaultTools`) so the framework's `createDefaultTools()` tier
1281
+ is REPLACED. Every tool the configured CLI runs now arrives from a capability pack: dropping a pack drops its tools,
1282
+ exactly as it already dropped its command modules and subagents.
1283
+ - **`@robota-sdk/agent-transport` / `@robota-sdk/agent-transport-tui`** — forward the optional
1284
+ `additionalTools` and `defaultTools` through the headless and TUI channels, mirroring the existing
1285
+ `agentDefinitions` pass-through, so print, serve and TUI carry an identical tool surface.
1286
+
1287
+ End-user `configured CLI` behavior is unchanged, including the security property: the real binary still answers a
1288
+ read outside the working directory with `Access denied: "…" is outside the working directory`.
1289
+ - 7937c19: Split the `@robota-sdk/agent-provider` monolith into SDK-aligned leaf packages (ARCH-PROVIDER-002 Stage A). The single package that hard-bundled all three vendor SDKs (`@anthropic-ai/sdk`, `openai`, `@google/genai`) is **removed** and replaced by per-vendor leaves, each depending only on `@robota-sdk/agent-core` + its one SDK: `@robota-sdk/agent-provider-anthropic`, `@robota-sdk/agent-provider-openai`, `@robota-sdk/agent-provider-openai-compatible` (DeepSeek/Qwen/Gemma over the shared OpenAI-compatible base), `@robota-sdk/agent-provider-gemini` (+ a `./google` entry), and `@robota-sdk/agent-provider-bytedance` (media/video `IVideoGenerationProvider`). The aggregated `createDefaultProviderDefinitions()` now lives in the new `@robota-sdk/agent-builtin-providers` leaf.
1290
+
1291
+ Migration: replace `@robota-sdk/agent-provider/<vendor>` imports with the corresponding `@robota-sdk/agent-provider-<vendor>` package (`/deepseek`, `/qwen`, `/gemma` → `@robota-sdk/agent-provider-openai-compatible`; `/google` → `@robota-sdk/agent-provider-gemini/google`), and import `createDefaultProviderDefinitions` from `@robota-sdk/agent-builtin-providers`. Consumers now pull only the vendor SDK(s) they actually use.
1292
+ - 1e3f91a: CMD-004 Phase 2 Stage E (breaking, beta line): the legacy `TCommandEffect` union and
1293
+ `ICommandResult.effects` are DELETED. Commands emit the split contract directly —
1294
+ `hostActions` (session-executed via `ICommandHostAdapters`; works headless and remote) and
1295
+ `uiIntents` (requester-routed `ui_intent` session events with UI-neutral `show-*` names).
1296
+ Final carriers for the former notification effects: `session_renamed` and the new
1297
+ `history_cleared` are BROADCAST session events (forwarded to every WS surface, folded by the
1298
+ TUI transcript/title and the GUI reducer's new `sessionName`/transcript-reset state);
1299
+ `session-execution-started` rides `result.data.sessionExecution`; the plugin-registry refresh
1300
+ rides `result.data.pluginRegistryReloaded`. A mechanical grep floor
1301
+ (`command-effect-grep-floor.test.ts`) keeps `tui-requested`/`TCommandEffect`/`effects:` out of
1302
+ every `packages/*/src` production tree.
1303
+ - 7d9cc66: Preserve an explicitly supplied host tool scheduling policy through session assembly and CLI presentation modes, retaining permission admission and conservative handling of undeclared resources.
1304
+ - c402d98: Expose a separate product-bound CLI entry and desktop/native host helpers for npm-only consumer applications. Publish the product configuration and browser client contracts needed by those applications.
1305
+ - 44393be: Add the `/remote-control` enable path (REMOTE-008 Stage B4-2b) — turn on P2P remote control locally, get
1306
+ a QR + link, and a paired device co-drives the SAME live session over pairing-gated WebRTC. The command
1307
+ is a declarative trigger returning `remote-control-enable-requested`/`-stop-requested` effects (SSOT
1308
+ agent-interface-transport) and reads state via a new `ICommandHostAdapters.remoteControl.getStatus()`;
1309
+ the TUI dispatches the effects to injected callbacks; all transport construction lives at the agent-cli
1310
+ composition root (`WsSignalingClient` + pairing-gated `WebRtcTransport`, relay URL from
1311
+ `transports.webrtc.options.relayUrl`, QR/link rendered into history). Fail-closed: no relay configured ⇒
1312
+ does nothing; pairing mismatch/timeout ⇒ the session is never exposed. Consumes REMOTE-007 so a paired
1313
+ remote owner answers their own permission/ask prompts over the WebRTC channel.
1314
+ - 9f602df: Add user-supplied TURN fallback for remote control (REMOTE-010 / Stage E1) so P2P works behind symmetric
1315
+ NAT / restrictive firewalls. The host reads + validates `transports.webrtc.options.iceServers`/`forceTurn`
1316
+ at the agent-cli composition root (a fail-closed validator narrowing the untyped value → `IIceServer[]`;
1317
+ `IWebRtcTransportOptions.iceServers` widened to carry TURN `username`/`credential`), and the browser reads a
1318
+ validated `ice`/`forceTurn` pairing-URL query param (fail-closed decoder for the attacker-influenceable value;
1319
+ `forceTurn` → `iceTransportPolicy: 'relay'`) — both threaded into their `RTCPeerConnection`. `forceTurn` without
1320
+ a TURN server fails closed (else ICE gathers no candidates and silently never connects). Absent ICE config ⇒
1321
+ host-candidate-only, unchanged.
1322
+
1323
+ (Bump target corrected during REL-023 triage: `@robota-sdk/agent-web-ui` was dissolved by GUI-006 (#1141, 2026-07-12) before this work was ever published; the browser-side ICE/`forceTurn` handling described here now lives in `@robota-sdk/agent-transport-webrtc-web`.)
1324
+ - 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 }`.
1325
+
1326
+ ### Patch Changes
1327
+
1328
+ - d61e159: The session protocol gains a read-only `observe` role.
1329
+
1330
+ - `createSessionMessageHandler({ role: 'observe' })` follows the session's conversation, streaming,
1331
+ tool, background, usage and workspace events and answers reads of this session. The default role
1332
+ stays `drive`, which is unchanged.
1333
+ - An observer never subscribes to `permission_request` or `ask_request`. A session with only observers
1334
+ attached therefore still denies a permission and cancels a question at once instead of waiting for a
1335
+ surface that may not answer. Observers still see `prompt_resolved`.
1336
+ - An observer cannot submit, run commands, abort, cancel the queue, control background tasks, answer
1337
+ prompts, or read personal or other sessions' usage reports. Each such message is answered with a
1338
+ `protocol_error` and changes nothing. Only an explicit list of reads is accepted, so a message type
1339
+ added later is refused to observers until it is classified.
1340
+ - `ATTACHED_SURFACE_MAX_PENDING_BYTES` (1 MiB) is the backpressure budget a carrier passes to
1341
+ `createOutboundDelivery` for a terminal attached on the same host. A reader that falls that far
1342
+ behind is cut off and reported to the carrier, and other surfaces keep streaming. No carrier uses it
1343
+ yet.
1344
+ - `agent-cli`: a supervised session's control endpoint no longer includes its generation in a
1345
+ refusal to a caller that did not present it.
1346
+ - 8625a14: Supervised session control is bound to one process start.
1347
+
1348
+ - Each supervised session start writes a fresh random generation into its private registration. Its
1349
+ control endpoint echoes that generation in every reply and refuses any request that carries a
1350
+ different one, or none.
1351
+ - `session view` keeps the generation each row was verified with. Stop and linked-PR opening send it,
1352
+ so a session that restarted under the same id since the row was shown is refused instead of acted
1353
+ on. A stop confirmation also refuses when the row's generation changed while it was open.
1354
+ - `session stop`, `rename`, `link-pr` and `unlink-pr` read the generation at request time and the
1355
+ session itself checks it, closing the window between the liveness check and the action.
1356
+ - A registration without a generation (written by an earlier version) is listed but never
1357
+ controllable; restart that session to control it again.
1358
+ - The generation is never printed by `session list` in text or JSON.
1359
+ - 997f2fb: A revoked or closed external-event grant checks the token before it answers, so only a caller holding a valid
1360
+ token for that grant learns it was revoked; anyone else gets exactly the refusal a live grant gives. The TUI keeps
1361
+ revoked grants open-and-revoked on each session it binds so their tokens are still checked. The per-grant counters
1362
+ now also count the refusals the HTTP endpoint decides itself (a missing token, an oversize body).
1363
+ - 1698be4: A child-process subagent can no longer send the parent's provider credential to a different
1364
+ endpoint.
1365
+
1366
+ - **Before spawning a child**, the parent compares every environment variable that decides where
1367
+ the provider connects or which credential it sends. If the child's environment differs, the job
1368
+ is refused before the credential leaves the parent. The error names the variable, never its
1369
+ value. The variables compared are:
1370
+ - the proxy and TLS variables;
1371
+ - the variables the provider's SDK reads, such as `OPENAI_BASE_URL`, `ANTHROPIC_AUTH_TOKEN` and
1372
+ the Vertex settings;
1373
+ - the credential's own variable.
1374
+ - **The child** repeats the check before it builds its provider. It builds that provider from the
1375
+ parent's effective connection exactly: it no longer fills in a base URL, options or a default
1376
+ credential from its own registry, and a credential reference that resolves to nothing is refused.
1377
+ - **Where the effective connection comes from:** the parent applies its own definition defaults
1378
+ (base URL, options). `profileName` is sent only when it names the connection actually sent.
1379
+ - **New contracts:**
1380
+ - `IProviderDefinition.destinationEnvironment`, declared by every built-in provider.
1381
+ - `createProviderFromExactProfile`, `connectionEnvironmentNames`,
1382
+ `findConnectionEnvironmentDivergence`, `sealConnectionEnvironment`,
1383
+ `verifyConnectionEnvironment` and `TRANSPORT_ENVIRONMENT`.
1384
+ - The start payload's `connectionCheck`.
1385
+ - The child-process runner's `providerDefinitions` option, now required: a provider with no
1386
+ definition there is refused, because its connection cannot be checked.
1387
+ - 2711ec6: One broken skill or agent file no longer stops the session.
1388
+
1389
+ Skill, command and agent definitions are shared with other hosts through `.claude`, and those hosts
1390
+ define fields of their own. The frontmatter decoder now validates only the fields the configured CLI owns and
1391
+ ignores the rest (nested `metadata` entries included); a malformed value of an owned field is still
1392
+ refused. A refused file is skipped with a single warning and still claims its name, so a
1393
+ lower-priority definition cannot stand in for it. An empty `argument-hint` reads as no hint. When
1394
+ initialization does fail, the session reports the cause to readiness probes instead of "not
1395
+ initialized", so the terminal shows the reason at once rather than a 15-second timeout.
1396
+
1397
+ The terminal also stops printing type names for message-less telemetry records, keeps its own notices
1398
+ in place across a history sync so the following answer is not skipped, and CLI diagnostics print
1399
+ their context instead of `[object Object]`, through the console so Ink renders them above the frame.
1400
+ - 02b7452: A reply to a peer session is decided by the permission system like any call that sends something
1401
+ off this machine, and it goes only to the sender that was admitted.
1402
+
1403
+ - `agent-core` — a tool declaring `repliesToPeer` is still refused outside a peer turn; inside one it
1404
+ is decided by the ordinary steps: deny, ask and allow rules, then the mode. It declares no risk
1405
+ class, so it asks by default, is refused in plan mode and proceeds under bypass. `IPeerTurnAuthority`
1406
+ no longer has `toolUsed`.
1407
+ - `agent-session` — an "always allow" answer to the reply is remembered and answers later replies,
1408
+ as for any tool; other asks in a peer turn still need a fresh approval each time.
1409
+ - `agent-framework` — `peer_reply` asks the operator by default, showing the full text and the peer
1410
+ it goes to; `permissions.allow`/`deny` rules naming `peer_reply` apply. `PeerMessageIngress`
1411
+ refuses a message whose origin names a sender other than the admitted one, or whose admission names
1412
+ no sender, and submits the turn with the admitted identity.
1413
+ - `agent-cli` — a local peer message is taken as coming from the session it names only when that
1414
+ session confirms, at its own socket, that it is sending exactly that message to this receiver.
1415
+ The reply target, the driver id and the operator's notices come from the confirmed sender. A
1416
+ session on an earlier version cannot confirm, so its messages are refused; both sessions need this
1417
+ version to message each other.
1418
+ - e689c8e: Follow-ups to connection approval and `/handoff`.
1419
+
1420
+ - `agent-transport-webrtc-web` — the browser remote client says `Waiting for the host to approve this connection…`
1421
+ (`awaiting-approval`) after pairing, and `Connected` only once the host's session answers. A host that closes the
1422
+ channel instead is shown as `refused` and is not retried, since a retry would only ask the operator again; a
1423
+ first connection lost before the host answered is `failed`. Reconnect attempts count until the host admits a
1424
+ connection, so a link that keeps dropping while approval is pending gives up instead of asking again and again.
1425
+ - `agent-core`, `agent-session`, `agent-framework` — a turn that did not come from the operator stores its
1426
+ `turnSource` (`peer`, `external`, `agent-wakeup`) beside `driverId` on the user message and in the display
1427
+ history (`IRunOptions.turnSource`), so a session handed off keeps where each turn came from.
1428
+ - `agent-cli` — a `/handoff` resent after a lost confirmation reports what stays behind as it is now, not as it was
1429
+ at the first attempt, and after refusing to resend a session that changed, the hand-off status shows that refusal
1430
+ instead of the earlier lost confirmation.
1431
+ - 6e4c6ee: Device mesh discovery holds up better against endpoints and peers that misbehave.
1432
+
1433
+ - A direct path's admission deadline starts only from a `hello`, `offer` or `answer`, so ICE candidates
1434
+ that trail an admitted connection no longer set a working path aside.
1435
+ - An endpoint or signaling carrier that keeps failing is set aside for longer each time it fails
1436
+ again, until a connection over it is admitted.
1437
+ - An mDNS lookup keeps listening briefly after the first matching answer, so a faster answer from
1438
+ another host cannot hide the peer's own.
1439
+ - The device lists read from public records are bounded per paired device, each device's newest
1440
+ before any device's next, and the chunks of one list carry a shared version, so a read that finds
1441
+ chunks of two versions yields no list. Records written before this change are not read as lists.
1442
+ - CLI processes that share `the configured user data directory` apply each change to the file as it
1443
+ is on disk, so one process no longer overwrites what another learned.
1444
+ - 4241fc5: Device mesh follow-ups.
1445
+
1446
+ - A device with no identity is pointed to `/devices add` on one of the user's devices and `/devices join`
1447
+ here, as well as to `/devices init`. The message says that `init` is for the first device only,
1448
+ because it creates a separate identity that can never link to the user's other devices. The `/devices`
1449
+ description and the `init` subcommand say the same.
1450
+ - An identity created mid-session (`/devices init`, or a successful `/devices join`) opens the mesh
1451
+ without a restart when `transports.mesh.enabled` is on.
1452
+ - If a session stalls for longer than the mesh lock's stale window (for example while the machine
1453
+ sleeps), another session can take the mesh over. The stalled session now notices this on its next
1454
+ lock refresh, closes its own mesh, and says why. Two sessions no longer run it together.
1455
+ `holdExclusiveFileLock` has a new `onLost` option for this.
1456
+ - `/peers` and `/handoff` still list and reach linked mesh devices when local same-host peer discovery
1457
+ fails. `/peers` says why sessions on this host are not listed. `ICommandLocalPeersAdapter` has a new
1458
+ optional `localDiscoveryOff` field for this.
1459
+ - `agent-transport-webrtc`: when lists become newer on a node (reissued, revoked, or adopted from a
1460
+ peer), the node sends them over every admitted connection instead of waiting for the next handshake.
1461
+ Reissues, revocations and enrolments in the CLI take effect this way at once. A receiver adopts a
1462
+ pushed list only if it is newer, issued by this user's signing key, and verifies. The push does not
1463
+ depend on the peer's capabilities, and it never reaches the application's message handlers.
1464
+ - 05d5391: The embedded TURN relay says why it cannot listen — the port is taken, the host is not an address of
1465
+ this machine, or the port needs privileges — and keeps the bind error as `cause`; the CLI names the
1466
+ relay setting that cause asks you to change. Mesh options are no longer checked while
1467
+ `transports.mesh.enabled` is off, so a mistake in them does not report that the mesh could not start.
1468
+ - bbe9689: On a host that cannot prove a project write stays inside the project (every platform but Linux), a
1469
+ trusted workspace no longer composes project memory, whose every save would be refused there. Memory
1470
+ is shared through the repository, so it is not moved to a per-user store: turning it on prints once
1471
+ that it stays off and why, and the run continues instead of failing on the first capture. Linux is
1472
+ unchanged.
1473
+ - 9721162: A trusted workspace saves its sessions on macOS and other hosts without Linux's project-write guarantee.
1474
+
1475
+ - **`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.
1476
+ - **`agent-cli`:**
1477
+ - Where project writes cannot be proven safe, a trusted workspace keeps its sessions in the user session store (`the configured user data directory`). 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.
1478
+ - Before this, every save in a trusted git workspace on macOS was refused, and those surfaces listed nothing.
1479
+ - Linux keeps trusted sessions in the project, as before.
1480
+ - `robota session list`, `robota usage` and `robota session analyze` report such sessions as user sessions, never as project sessions.
1481
+ - 57280bf: Every published package now declares `"engines": { "node": ">=22.12.0" }`. Before, 27 of the 38
1482
+ packages declared no floor (`agent-core`, `agent-tools` and every provider among them),
1483
+ `agent-session` and `agent-file-authority` declared `>=20.19.0`, and the other nine declared
1484
+ `>=22.0.0`, so a consumer on Node 20 saw at most a warning from a transitive dependency.
1485
+
1486
+ Why 22.12: `agent-cli` and `agent-ui-terminal` need Node 22 through `ink` 7, and the CommonJS entries
1487
+ of `agent-tools` and its dependents, `agent-transport`/`node` and its dependents, and
1488
+ `agent-ui-terminal` `require()` ESM-only dependencies (`p-limit`, `jose`, `chalk`), which Node 22
1489
+ supports unflagged only from 22.12. `engines` is advisory unless the consumer enables `engine-strict`.
1490
+
1491
+ No code changes: `tsdown` now reads `node22.12.0` as its build target from the field.
1492
+ - 1efb124: `@robota-sdk/agent-cli` and `@robota-sdk/agent-ui-terminal` are now ESM-only. Their CommonJS entry
1493
+ could never load: it pulls in Ink, whose `yoga-layout` dependency starts with a top-level `await`, so
1494
+ `require()` failed on every Node version with `ERR_REQUIRE_ASYNC_MODULE`. The packages no longer
1495
+ declare a `require` condition or ship `index.cjs`/`index.d.cts`, so `require()` now fails at resolution
1496
+ with `ERR_PACKAGE_PATH_NOT_EXPORTED`. Load them with `import` or `import()`, which is unchanged. The
1497
+ configured CLI executable is unaffected.
1498
+ - 18c0d5c: Every published package now exports `./package.json`, so `require('<package>/package.json')` and
1499
+ `import('<package>/package.json', { with: { type: 'json' } })` work instead of failing with
1500
+ `ERR_PACKAGE_PATH_NOT_EXPORTED`, and each tarball now ships the package's `CHANGELOG.md`.
1501
+ - caaab20: `/rewind` works again. Every session the CLI builds for a trusted workspace captures edit
1502
+ checkpoints; before, none did, and `/rewind` failed everywhere with "Edit checkpoints require
1503
+ project authority."
1504
+
1505
+ - `agent-cli` (patch): a trusted workspace composes an edit checkpoint store for the terminal UI, a
1506
+ print run, a served runtime and each session a daemon keeps live. Every session gets its own
1507
+ 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
1508
+ stays inside the project (every platform but Linux), none is composed: a checkpoint could be
1509
+ neither saved nor restored there.
1510
+ - `agent-command` (patch): where a session has no checkpoints, `/rewind` says why: a restricted
1511
+ workspace is told to run `robota trust --yes` and restart the configured CLI, and a host that cannot write
1512
+ the project safely says so. `/rewind list` reports this as a failed command instead of throwing.
1513
+ - `agent-framework` (minor): a checkpoint operation on a session without a store throws
1514
+ `EditCheckpointsUnavailableError`, whose `reason` is `host-cannot-write-project`,
1515
+ `restricted-workspace` or `no-checkpoint-store`. It is a `WorkspaceAuthorityRequiredError`, as
1516
+ before, named `EditCheckpointsUnavailableError`. `HeadlessInteractionChannel` takes an
1517
+ `editCheckpointStore` option.
1518
+ - `agent-ui-terminal` (minor): `renderApp` takes `createEditCheckpointStore` in place of
1519
+ `editCheckpointStore`, and builds each session its own store, since a session switch can build the
1520
+ next session before the old one's turn ends. `TuiInteractionChannel` keeps `editCheckpointStore`:
1521
+ a channel runs one session.
1522
+ - 227ff3a: The GUI session surface (desktop app, `robota --serve --open`) is redesigned as a calm desktop app: readable
1523
+ type in a bundled Pretendard, monospace only for code and paths, surfaces separated by tone instead of
1524
+ outlines, and light and dark themes that follow the system. Agent replies read as prose, your messages sit
1525
+ in bubbles, tool calls are single quiet lines, and the composer carries the model, mode and effort. The
1526
+ permission prompt now shows what the tool was asked to run, and the title bar names the current session.
1527
+ - f01868f: `sandbox.autoAllowBashIfSandboxed` takes effect. The CLI confined shell commands in the OS sandbox,
1528
+ but no session learned about the sandbox, so a confined command still asked for approval in the
1529
+ terminal UI, a served runtime and MCP serve, and a print run with no one to approve it refused it.
1530
+
1531
+ - `agent-cli` (patch): a served session, and each session a daemon keeps live, receives the sandbox
1532
+ the shell tools run under.
1533
+ - `agent-framework` (minor): `HeadlessInteractionChannel` takes a `sandboxClient` option and hands it
1534
+ to the session.
1535
+ - `agent-ui-terminal` (minor): `renderApp` and `TuiInteractionChannel` take a `sandboxClient` option
1536
+ and hand it to each session they build.
1537
+ - e8779c9: A subagent consults the sandbox its shell tools run under, as its parent does. With
1538
+ `autoAllowBashIfSandboxed` on, a confined command the subagent's gate leaves to the mode now runs
1539
+ without a prompt. Before, a `context: fork` skill asked for approval, and a print run refused it.
1540
+ An Agent-tool subagent in `auto` mode sent a command allowed by a broad rule like `Bash(npm *)` to
1541
+ its classifier instead. A background policy's ceiling is still checked first: nothing outside it
1542
+ runs.
1543
+
1544
+ - `agent-framework` (minor): `createSubagentSession` takes a `commandSandbox` option. The fork and the
1545
+ in-process runner derive it from the parent's sandbox, the instance their inherited tools run
1546
+ under. `sandboxApprovalFor` is exported.
1547
+ - `agent-subagent-runner` (minor): `ISubagentWorkerComposition` takes an optional `createSandbox`. The
1548
+ worker builds that sandbox once and hands the same instance to `createTools` and to the session.
1549
+ - `agent-cli` (patch): the configured product's worker composition builds the OS sandbox through `createSandbox`, so
1550
+ a child-process subagent approves what its parent approves.
1551
+ - f8a8a4d: The GUI surface's design now applies inside an `agent-ui` scope that each of its root components opens,
1552
+ so an app with design tokens of its own can embed the surface without either overriding the other. Such
1553
+ an app imports `@robota-sdk/agent-ui-web/styles/surface.css` into its Tailwind entry; a page that is only
1554
+ the surface keeps importing `styles/theme.css` and puts `agent-ui` on its `<html>`. `ProductMark` and
1555
+ `ProductWordmark` are exported. The browser remote client (`RemoteClient`) follows the same design, with
1556
+ its pairing states centred on the page.
1557
+ - 122e82b: A child-process subagent confines and approves commands with its parent's sandbox settings as they
1558
+ stand when it starts. Before, it read its root's settings files, so a `/sandbox` change made in the
1559
+ session did not reach it. `/sandbox` changes the live sandbox and only the user settings file, which
1560
+ project settings outrank. A worktree child also missed the parent's untracked local settings.
1561
+
1562
+ - `agent-subagent-runner` (minor): the runner factory takes `parentSandboxSettings`, read at each
1563
+ spawn. The start payload carries it, the IPC guard checks it is a record, and the worker hands it to
1564
+ `createSandbox` as `parentSettings`.
1565
+ - `agent-cli` (patch): the configured CLI sends its live sandbox's settings, and a child builds its sandbox from
1566
+ them. It refuses settings it cannot read rather than falling back to the files.
1567
+ - 0368058: A running child-process subagent follows a `/sandbox` change made in its parent session. Before, it
1568
+ kept the settings it started with until it ended, so a long-running `auto`-mode subagent went on
1569
+ auto-approving confined commands after the user turned auto-allow off.
1570
+
1571
+ - `agent-tools` (minor): `OsSandboxClient.watchSettings(watcher)` reports each `configure`, until
1572
+ its returned function is called.
1573
+ - `agent-subagent-runner` (minor): the runner factory takes `watchParentSandboxSettings`, and
1574
+ forwards each change to every running child as a `sandbox_settings` message. It watches before
1575
+ reading the start payload, so no change is lost while a child starts, and stops when the child
1576
+ exits or fails to start. A composed sandbox may define `applyParentSettings`. The worker applies
1577
+ each change through it. On settings it cannot take, it aborts the run, lets a running command
1578
+ finish, and ends the run with that error.
1579
+ - `agent-cli` (patch): the configured CLI watches its live sandbox, and a child applies each change to the
1580
+ instance its tools and approval read.
1581
+ - 5a0ee96: Workspace trust no longer drops on its own. A grant was keyed by the repository config file and the
1582
+ volume's device number, so `git push -u`, a branch rename or delete, `git remote add`, or macOS
1583
+ renumbering a volume left a trusted workspace untrusted. Where the filesystem records a birth time
1584
+ (APFS, ext4, NTFS, …), the key is now the git directory's own inode and birth time, which hold through
1585
+ all of these while a repository recreated at the same path still does not inherit the grant; elsewhere
1586
+ the stricter config-based key stays. Granting or revoking also retires a trusted record left for the
1587
+ same worktree under an earlier key, so it no longer counts as a second trusted repository; it is
1588
+ marked revoked rather than deleted, so a repository that returns to that path never regains a
1589
+ generation an approval (such as a project MCP server's) was recorded against.
1590
+
1591
+ Grants made before this change are keyed the old way: run `robota trust --yes` once more in each
1592
+ workspace. A workspace revoked before shows as untrusted until it is trusted or revoked again.
1593
+ - 7e87bb2: A front end with a person in front can ask about an untrusted folder instead of being refused.
1594
+ `robota trust status --json` reports the folder's trust state, whether a person can be asked, and
1595
+ what trust would load. `robota daemon start --restricted-workspace` starts the daemon Restricted in a
1596
+ folder that is not trusted yet, the choice that person made. A daemon reports whether it runs
1597
+ Restricted: a Restricted start never reuses one with the project's configuration, and a plain start
1598
+ in a folder trusted since never reuses a Restricted one; both refuse and name `robota daemon stop`. `pnpm gui:dev` asks at its terminal: trust the folder, start
1599
+ Restricted, or quit.
1600
+ - 4f35721: Starting a session from `robota session view` in a folder that is not trusted asks what to do
1601
+ instead of failing. The question names the folder and lists what trust would load. The choices are
1602
+ `y` to trust the folder and start, `r` to start it Restricted, and `n` to cancel. A Restricted answer
1603
+ holds even if the folder was trusted meanwhile. Before, the view showed only "Start failed".
1604
+
1605
+ - `agent-cli` (patch):
1606
+ - A background session started Restricted runs with `--restricted-workspace`.
1607
+ - A headless start that asked to run Restricted is no longer refused for want of trust, the same
1608
+ as `--safe-mode`.
1609
+ - `agent-ui-terminal` (minor): the session view takes `startTrustQuestion`, which returns the
1610
+ folder and what trust would load (`ISupervisedStartTrustQuestion`). `onStart` receives the person's
1611
+ choice (`TSupervisedStartTrustChoice`).
1612
+ - 4ee9596: Starting a new TUI session in an untrusted repository asks whether to trust the folder. Before, the
1613
+ TUI started Restricted without saying so, and the project's settings, hooks, skills and MCP servers
1614
+ were silently missing. The question comes before anything from the project is loaded and lists what
1615
+ trust would load. A yes records the grant and starts normally. A no starts Restricted and asks again
1616
+ next time. If the grant cannot be recorded, it says so and starts Restricted.
1617
+
1618
+ It is not asked:
1619
+
1620
+ - when resuming or continuing a session, which stays in the store it was saved in;
1621
+ - for setup commands (`init`, `--configure`, `--configure-provider`, `--set-current`);
1622
+ - with `--safe-mode`, or after a `/cd` into a Restricted folder;
1623
+ - without a terminal;
1624
+ - in a directory outside Git.
1625
+ - 193a0bc: `${CLAUDE_SKILL_DIR}` in a skill expands to the absolute folder its `SKILL.md` is in; it used to expand to an empty string. A skill's `` !`command` `` gets `CLAUDE_SKILL_DIR` and `CLAUDE_SESSION_ID` in its environment, so the shell expands them there too (`TShellExecFn` takes an optional `env`). Skills from host folders and a trusted project carry the folder, and bundle-plugin skills and commands record theirs. `ICommand` gains `skillDirectory`, and `IContributionSource` an optional `locate()` that names the absolute path of a root-relative one.
1626
+ - 12a5b15: CLI fixes from the docs-refresh findings (#3275):
1627
+
1628
+ - `robota trust revoke` exits 0 when the revoke succeeds.
1629
+ - `robota <subcommand> --help` prints that subcommand's help instead of running it, refusing an unknown option, or starting the terminal UI; commands with fuller help of their own (`usage`, `session list|view|attach`) keep printing it, and `robota mcp serve --help` prints to stdout.
1630
+ - `robota --help` lists every option the parser accepts (`--goal`, `--goal-max-iterations`, `--provider`, `--set-current`, `--type`, `--base-url`, `--api-key`, `--api-key-env`, `--settings-scope`, `--session-log`, `--serve`, `--restricted-workspace`, `--disable-update-check`), `--effort` lists `none` and `minimal`, and `--bare` is described as what it does: print mode without instruction files or plugins.
1631
+ - `robota session start --background --restricted-workspace` starts a background session Restricted, as the headless trust refusal already suggested.
1632
+ - `robota "prompt"` opens the terminal UI with the prompt typed in, not yet sent.
1633
+ - 3cfd5b9: Words after `--` are the prompt, never a subcommand or a flag. `robota -p -- init` used to run `robota init` (and `eval`, `user-local` or `mcp` likewise ran or refused as those commands), and a prompt spelling `--attach`, `--safe-mode` or `--restricted-workspace` acted as that flag; now each is sent to the model as text. A subcommand or flag given before `--` works as before.
1634
+ - 4cee6fb: Report unsupported MCP transports at startup and reload instead of silently skipping them,
1635
+ and distinguish plugin MCP declaration inspection from a runtime connection.
1636
+ - 3ab2eca: - External presets accept every permission mode a session does, `auto` included; `auto` used to fail validation.
1637
+ - `createDagFramework({ ports: { costMeta } })` wires cost-metadata management; without it cost operations still report that they are unsupported.
1638
+ - `startCli()` runs the subagent worker when a subagent starts the embedder's entry script again, as the product executable already did; an embedded CLI used to start a second CLI there.
1639
+ - The provider `executor` option docs no longer import a `RemoteExecutor` that does not exist, and `IRemoteExecutorConfig` is marked deprecated: nothing implements a remote executor.
1640
+ - 29486da: A lost connection no longer drops a typed message or takes the person out of their session. While the
1641
+ transport is not `connected`, the composer keeps its draft and Send explains why it cannot submit
1642
+ ("Not connected"). A banner above the conversation — never a full-screen replacement — says "Connection
1643
+ lost. Reconnecting…" while retries continue, and once they give up either offers a working Reconnect
1644
+ (a host that can restart the runtime) or says how to reopen the page (a browser served by
1645
+ `robota --serve --open`). A desktop Reconnect remembers the session the person was in and returns to it
1646
+ once the restart's reload reconnects.
1647
+ - 66af868: Restore portable default startup for generated Robota artifacts while preserving explicit product selection and immutable identity. Keep shared product configuration internal because existing SDK and CLI artifacts bundle its implementation and types.
1648
+ - 2c612ba: Release the migrated Robota product with its public SDK namespace, robota command, compatible SDK exports, internal product configuration, and verified CLI startup and delivery corrections.
1649
+ - ca44ac6: HTTP clients can now receive and answer permission and ask prompts. `POST /submit` with `receivePrompts: true` streams `permission_request`, `ask_request` and `prompt_resolved`. `GET /prompts` lists the prompts still open, so a client that attaches later can see them, and `POST /prompts/:id` answers one; an id that is not open returns 404, and an answer the session did not take returns 409. Clients that omit `receivePrompts` see no change. `IHttpTransportSession` now also requires `resolvePermission` and `resolveAsk`, which `InteractiveSession` already implements. The `--serve --http-port` API gains these routes as well.
1650
+ - 5bb675a: Provider commands check a profile's `$ENV:` or default credential against the host's environment snapshot, so `/provider switch`, `/provider test`, `/provider add`, `/provider edit` and a cross-profile `/model` keep working while the runtime withholds its own credentials from `process.env`.
1651
+
1652
+ - `IProviderCommandModuleOptions` takes an optional `env`, and `createDefaultCommandModules` takes `providerEnvironment`. The CLI passes its startup snapshot.
1653
+ - The git that isolated subagents run, and so the repository's hooks, now get the command environment instead of the full snapshot.
1654
+ - 09e7e21: **An MCP server's form-mode elicitation during a tool call becomes a Robota ask prompt.**
1655
+
1656
+ `@robota-sdk/agent-mcp` opens a session with `elicitation: true` to declare form-mode elicitation and
1657
+ answer it: a request the server raises while a tool call is in flight (a server→client
1658
+ `elicitation/create` on the legacy era, an `input_required` round on 2026-07-28) is put to a person
1659
+ through that call's ask port (`IMCPToolCallOptions.ask`, which the discovered tool fills from
1660
+ `IToolExecutionContext.ask`) as one question titled with the configured server id and carrying the
1661
+ server's message as one bounded line, with Respond and Decline, then one question per field
1662
+ (choices, multi-select, yes/no, or free text validated against the field and re-asked once). The
1663
+ answer continues the same call; the re-sent `tools/call` that carries it is the protocol's
1664
+ continuation, not a replay, and a prompt is withdrawn when its call ends (an abort, or the call's
1665
+ own timeout) — when the last in-flight call to that server ends, if there are several, since a
1666
+ request names none of them. A request outside an in-flight call, or during a call that has no ask port, is
1667
+ declined; a dismissal, a failing port or a second rejected answer cancels; a field named like a
1668
+ credential is shown unmasked with a warning. URL mode is not offered. Without the opt-in nothing
1669
+ changes: no capability is declared and an `input_required` result still closes the carrier. An
1670
+ embedded request of another kind (sampling, roots) or more rounds than the client allows closes the
1671
+ carrier as `input_required` does; an embedded elicitation the client refuses on its face (URL mode,
1672
+ a malformed form) fails the call and leaves the carrier open.
1673
+
1674
+ `@robota-sdk/agent-cli` turns the opt-in on for the interactive terminal and the serve host driven by
1675
+ the desktop app or the web GUI, which show the prompt, and leaves it off for print mode and for the
1676
+ two serve-runtime hosts with no prompt surface, `mcp serve` and the ACP editor agent.
1677
+
1678
+ `@robota-sdk/agent-ui-web` renders an ask with `maxSelect` above 1 as a multi-select: options toggle
1679
+ (click or 1–9), Submit answers with the ticked values once `minSelect` is met, and a toggle beyond
1680
+ `maxSelect` is ignored, as in the terminal.
1681
+ - 60f3965: **`robota mcp serve --ask-client` puts a caller's permission and ask prompts to the calling MCP client through elicitation instead of failing them.**
1682
+
1683
+ `@robota-sdk/agent-transport-mcp`: `createMcpTransport`, `createMcpHttpHost`,
1684
+ `createMcpRemoteHttpHost` and `createAgentMcpServer` take `askClient`. Off by default, every prompt
1685
+ is a tool error as before. On, and when the client declared form-mode elicitation, a permission or
1686
+ ask prompt raised by that client's own call is put to it: a permission offers allow once or deny
1687
+ only, never a remembered grant; an ask becomes a form (choice, multiple choice, free text); a masked
1688
+ ask is never sent; deny, decline, cancel, a client error or an answer naming nothing offered keeps
1689
+ today's outcome. stdio asks during the call. The HTTP hosts keep no session state, so they ask only
1690
+ a client on the 2026-07-28 revision, through input-required rounds whose `requestState` is a
1691
+ single-use random token naming one parked call; a 2025-era HTTP client keeps the tool error.
1692
+ A call listens for prompts only while its own work drives the session, so a submission waiting
1693
+ in the queue never holds another caller's prompt that it cannot answer.
1694
+ Breaking for hand-written sessions: `IMcpTransportSession` now also requires `ISessionEvents`
1695
+ (`on`/`off`), `ISessionPromptResolution` (`resolvePermission`/`resolveAsk`) and
1696
+ `ISessionDriverAttribution` (`getActiveDriverId`), which `InteractiveSession` and the published
1697
+ test double already implement.
1698
+
1699
+ `@robota-sdk/agent-interface-session` / `@robota-sdk/agent-session` / `@robota-sdk/agent-framework`:
1700
+ `ISessionRuntimeTools.invokeRuntimeTool` (and `Session.invokeRuntimeTool`) accept
1701
+ `options.permissionInteraction` and `options.driverId`. A direct call still denies a decision that
1702
+ would need a person, and finds no one to ask a question, unless its caller passes
1703
+ `permissionInteraction: 'interactive'`; then it asks the session's permission handler and its
1704
+ tools get the session's ask port. `InteractiveSession` makes `driverId` the active driver while
1705
+ the direct call runs, so a prompt the call raises carries it as `requesterDriverId`. With
1706
+ `askClient` on, an MCP call runs under its own `mcp:<n>` driver id; a submission made that way is
1707
+ attributed to it rather than to the owner.
1708
+
1709
+ `@robota-sdk/agent-transport`: exports `permissionSummaryArgument`, the argument a person recognises
1710
+ a tool call by (`filePath` for the built-in file tools), for every transport that puts a permission
1711
+ request to a person in its own wire form.
1712
+
1713
+ `@robota-sdk/agent-cli`: `mcp serve --ask-client` turns this on for whichever carrier the run serves.
1714
+ - 8ee9265: Publish the generic organization canonical JSON and resource budget contracts. Move the operator-owned authority implementation behind a private host package; the CLI continues to bundle its hosted behavior.
1715
+ - 80cc46a: The E2B hosted executor passes `--` before the mode when it sets private permissions on restored conversation files and their directory, so the commands also run on BSD/macOS `chmod`.
1716
+ - 26baaa9: **`@robota-sdk/agent-mcp` opens every MCP session through one `@modelcontextprotocol/client` 2.x client, for both protocol eras.**
1717
+
1718
+ Legacy negotiation stays the default; `protocolVersion: '2026-07-28'` pins the same client to the
1719
+ modern era and never falls back to the legacy handshake. The hand-written stateless framing is gone,
1720
+ and so is the package's dependency on the `@modelcontextprotocol/sdk` 1.x runtime: the client and its
1721
+ schema package (`@modelcontextprotocol/client`, `@modelcontextprotocol/core`) are now the package's
1722
+ dependencies, and the 1.x SDK remains only as a test dependency for legacy-era fixture servers. The
1723
+ guarantees are unchanged and still tested: an unsupported result (`input_required`, an unknown result
1724
+ type) closes the carrier and is never replayed (no client input is offered, so the SDK's automatic
1725
+ input round stays off), and the receive bound, redirect refusal, pinned sockets, authenticated retry,
1726
+ trace propagation and stdio authority live in the package's own transport and fetch wrappers as before.
1727
+
1728
+ Two behaviors change on the pinned 2026-07-28 era, both following the official client:
1729
+
1730
+ - A result that omits `resultType` is refused (`invalid-tool-result` for a tool call) instead of being
1731
+ treated as complete. The tolerance served peers that predate the discriminator, which legacy
1732
+ negotiation serves.
1733
+ - An invalid freshness hint on `server/discover` (`ttlMs` negative or fractional, `cacheScope` unknown)
1734
+ is read as the safest value (`ttlMs` 0, `cacheScope` private) instead of rejecting the server. List
1735
+ pages and resource reads with an invalid hint are still refused.
1736
+ - An `input_required` result that carries neither `inputRequests` nor `requestState` is refused as
1737
+ `invalid-tool-result` rather than reported as `input_required`; either way the carrier closes and
1738
+ nothing is replayed.
1739
+
1740
+ Against a real 2026-07-28 host the pinned path now also sends the body-derived request headers the
1741
+ revision requires (`Mcp-Method`, `Mcp-Name`), which the hand-written framing did not; a headers helper
1742
+ may no longer set either, as it already could not set the other headers the transport owns. A pinned
1743
+ server that answers the discovery probe with a non-protocol HTTP error (a 404 page) is reported as a
1744
+ failed startup carrying that status, not as a server lacking the revision. On the legacy era
1745
+ `structuredContent` is still checked against the tool's declared `outputSchema`: the schema the latest
1746
+ discovery saw travels with each call, since the SDK's own source for it is the aggregating `listTools`
1747
+ cache that per-page discovery never fills.
1748
+
1749
+ `@robota-sdk/agent-cli` adds `@modelcontextprotocol/client` and `@modelcontextprotocol/core` to its
1750
+ external `dependencies`, and with them `@modelcontextprotocol/server` and `@modelcontextprotocol/node`,
1751
+ which its bundled MCP serve path already imported but the bundle inlined: with `core` external, the
1752
+ server must resolve the one `core` it pins. It keeps the 1.x SDK, which
1753
+ `@robota-sdk/agent-transport-mcp`'s stdio server still uses, and its import-boundary test now names
1754
+ every `@modelcontextprotocol` package.
1755
+ - b4c2572: **`@robota-sdk/agent-transport-mcp` serves stdio from `@modelcontextprotocol/server` 2.x, and the 1.x `@modelcontextprotocol/sdk` leaves the repository's runtime dependencies.**
1756
+
1757
+ The stdio server (`createAgentMcpServer`, `createMcpTransport`) now builds on the same v2 server
1758
+ package the HTTP hosts already use, through its `/stdio` carrier; the catalog is validated with the
1759
+ SDK's own `Tool` validator, so the HTTP hosts no longer re-serialize it at the SDK boundary. Client-
1760
+ visible behavior is unchanged: the same tools, submission extension, admission, turn correlation and
1761
+ error results, negotiated through the legacy `initialize` handshake as before. `createAgentMcpServer`
1762
+ returns the v2 `Server` type; a consumer wiring its own carrier imports `StdioServerTransport` from
1763
+ `@modelcontextprotocol/server/stdio`. The stdio connection is stateful, so the server can send
1764
+ server-to-client requests such as `elicitInput` to a client that declares the capability (tested).
1765
+ Two carrier details follow the v2 stdio transport: a single frame over 10 MiB now fails the stdio
1766
+ carrier instead of being buffered without bound (the HTTP carriers already cap a body at 1 MiB), and
1767
+ a line that is not JSON is skipped instead of failing the carrier. A malformed `tools/call` request
1768
+ or result is answered with the SDK's invalid-params error, and an invalid catalog entry is reported
1769
+ as `Invalid MCP tool: <path>: <reason>` instead of the 1.x validator's own text.
1770
+
1771
+ `@robota-sdk/agent-cli` drops `@modelcontextprotocol/sdk` from its external `dependencies`; nothing
1772
+ in its bundle imports it any more. The 1.x SDK remains only as a test dependency of
1773
+ `@robota-sdk/agent-mcp`, for its legacy-era fixture host.
1774
+ - 115e104: **A command's caller can cancel what a skill command starts, including while the skill is prepared.**
1775
+
1776
+ `ISessionCommands.executeCommand` takes an optional trailing `{ signal }`. For a skill command it
1777
+ reaches the turn the skill submits or the fork it runs, and the work before them: a cancel stops the
1778
+ skill's activation before or after its shell expressions (once they start, all of them run to the
1779
+ end), refuses a turn not yet started and interrupts one that is, and stops a fork. A command cancelled this way
1780
+ rejects with the signal's reason whichever step the cancel reached, and a cancelled fork is not
1781
+ recorded as an error. Before, a cancel that landed before the skill submitted its turn found nothing
1782
+ for `abort()` to stop, and the turn then ran; a fork skill run as a command ignored the cancel. A
1783
+ command that starts neither a turn nor a fork ignores the signal; every existing call keeps its shape.
1784
+
1785
+ A fork skill now receives the signal of whatever runs it, so a fork the model starts inside a turn
1786
+ stops when that turn is aborted instead of running on.
1787
+
1788
+ `robota acp` hands each `/command` prompt's signal to the command, so `session/cancel` stops a skill
1789
+ command's turn or fork even when it lands before the turn has started.
1790
+ - e5a4254: **An editor that offers its file system carries the file tools' reads and writes.**
1791
+
1792
+ `Read`, `Write` and `Edit` take an optional `editorFiles` port (`IEditorFileAccess`), asked at each
1793
+ call. On the host, after the tool's containment check (the permission gate has already decided),
1794
+ `Read` returns the editor's text, unsaved changes included, and `Write` hands the content to the
1795
+ editor; `Edit` reads where `Read` reads and writes where `Write` writes. The editor's text keeps
1796
+ `Read`'s byte budget, binary refusal, formatting and cancellation, and an editor failure becomes the
1797
+ tool's error result. `Glob` and `Grep` still search the disk and end their result with a note saying
1798
+ so while an editor is attached. A sandbox with its own filesystem still carries every file tool, and
1799
+ commands never use the editor. `createDefaultTools` and `createCodingPack` pass `editorFiles` through
1800
+ to those tools only.
1801
+
1802
+ The ACP agent transport records the editor's `clientCapabilities.fs` and, once `session/new` binds the
1803
+ session, hands the host an access through the new `onEditorFileAccess` option that sends
1804
+ `fs/read_text_file` and `fs/write_text_file` for that session, for what the editor offered; stopping
1805
+ the transport withdraws it. `robota acp` connects the two, so Read, Write and Edit go through the
1806
+ editor in an editor that offers `fs`; `terminal/*` is not used.
1807
+ - fbb287d: Show a finished MCP tool call's app in an opaque frame with a source-bound JSON-RPC bridge. App callbacks use the session's view authority and permission prompt. Session changes and frame disposal reject pending local requests.
1808
+
1809
+ Hosts can provide a sandbox URL through `SessionSurface`. The web GUI serves a separate sandbox document with content restrictions and `Connection-Allowlist` enforcement. App execution requires Chromium 158 or newer and native network isolation; other browsers and hosts without the response policy show an unavailable message and retain the text result. A surface without a sandbox URL never reads the app document.
1810
+ - 08e3f80: Keep E2B out of the base Node installation and defer SDK loading until stock hosted execution is selected. Install `e2b@2.51.0` alongside the CLI in the same project or global prefix to enable that capability. A missing SDK produces installation guidance before admission requests and never falls back to host execution. Public E2B exports and injected executors remain compatible; stock native binaries retain the embedded SDK, and consumer native builds require it as explicit build tooling.
1811
+ - f78fe5f: Publish a release candidate whose packed artifacts were rebuilt before external-consumer verification.
1812
+ - d157f4b: ARCH-008 — `configured CLI` resolves presets through the composition kernel's per-call registry, so there is one
1813
+ preset resolution path instead of two.
1814
+
1815
+ - **`@robota-sdk/agent-product`** — `IProductProfile` gains two optional fields. `presetRegistry` lets a
1816
+ consumer hand in an `IPresetRegistry` it already built (`createPresetRegistry`); when present the
1817
+ assembler ADOPTS that instance instead of building a second, equivalent one, so `product.presets` is
1818
+ that very object. This is the seam for a shell that must resolve a preset BEFORE it can build its
1819
+ profile — a preset can carry the `model` and `agentName` the profile is itself constructed from, so
1820
+ "resolve, then assemble" is a real ordering constraint. `presetContext` carries the override layers
1821
+ (`cliOverrides` / `explicit`) used when resolving `defaultPresetId`, so `product.defaultPreset` is the
1822
+ caller's full resolution rather than a variant missing its overrides. R8 is unaffected: the registry is
1823
+ still instance-scoped and no module-level state is read or mutated. Both fields are optional and the
1824
+ existing `presets` + `defaultPresetId` shape behaves exactly as before.
1825
+ - **`@robota-sdk/agent-cli`** — `resolveCliPreset` is replaced by `resolveShellPreset(externalPresets,
1826
+ args, settingsPreset)`, which builds the per-call registry, resolves over it, and returns
1827
+ `{ registry, presetId, context, options }` as one value. `createSelectedProductProfile` takes that whole value,
1828
+ so the shell cannot hand the kernel a registry, id, or override context other than the ones it actually
1829
+ resolved with. `configured CLI`'s startup path no longer reads `agent-preset`'s module-global resolver; that
1830
+ registry remains only as the in-session `/preset` DISCOVERY surface, which is executed inside the
1831
+ session and has no handle on the assembled product. Both surfaces are fed by the one
1832
+ `loadExternalPresets()` call, so they cannot disagree.
1833
+
1834
+ End-user `configured CLI` behavior is unchanged: the same preset resolves to the same options, external presets
1835
+ in `the configured user data directory*.json` remain visible to both `--preset <id>` and `/preset`, and the assembled
1836
+ command-module set, provider surface, tool set, subagent roster, and permission posture are untouched.
1837
+ - e82215f: **ARCH-011: replace the ambiguous transport lifecycle stub with executable conformance.**
1838
+
1839
+ `ITransportAdapter` now requires a frozen `service | runner` lifecycle descriptor. `start()` resolves
1840
+ at the concrete transport's documented readiness boundary; start before attach and repeated active
1841
+ start reject a stable lifecycle error, repeated stop is safe, and stopped adapters can reattach and
1842
+ restart.
1843
+
1844
+ Runner adapters launch separately and expose a typed terminal outcome through
1845
+ `waitForCompletion()`. The registry accepts base adapters, rejects duplicate names, keeps
1846
+ configuration as an optional capability, returns complete ordered records whose pending slots become
1847
+ registry-owned `abandoned` outcomes on stop/rollback, and exposes a real-runner-only first-failure
1848
+ wait. It serializes startup/stop, rejects active restart before mutation, and reverses partial startup
1849
+ from the currently failing adapter with typed safe rollback details. Runtime host and serve mode
1850
+ propagate real nonzero runner results without treating normal shutdown abandonment as failure.
1851
+
1852
+ HTTP, MCP, both WebSocket adapters, WebRTC, and headless invoke one shared public conformance kit.
1853
+ The former `TuiTransport` export is removed because it ignored the attached session; use `renderApp`
1854
+ or `TuiInteractionChannel`, which honestly own their session lifecycle.
1855
+ - 0c07176: **BREAKING — ARCH-021: child-process subagents compose the PRODUCT's surface, not imported defaults.**
1856
+
1857
+ The child-process worker built its surface from `createDefaultProviderDefinitions()` and `createDefaultTools()` — a fixed six-vendor registry and the framework's default tool tier — while the composition root had already handed the runner the fully composed surface and the runner dropped it. So a product's custom providers and pack-contributed tools reached an **in-process** subagent and not a **child-process** one, and ARCH-006's landed invariant "every tool the configured CLI runs comes from a pack" was **false in the child**: dropping a pack did not drop its tools.
1858
+
1859
+ This is the second finding at that line. ARCH-010 — judged BLOCKER, a subagent `Read` returning `/etc/hostname` — patched one argument there and left the reconstruction standing.
1860
+
1861
+ ```ts
1862
+ // the port: what the product composes, stated by the composition root
1863
+ export interface ISubagentWorkerComposition {
1864
+ createTools(context: { readonly cwd: string }): IToolWithEventService[];
1865
+ readonly providerDefinitions: readonly IProviderDefinition[];
1866
+ }
1867
+
1868
+ export function runSubagentWorkerMain(composition: ISubagentWorkerComposition): void;
1869
+ ```
1870
+
1871
+ **Why a recipe and not a broker.** A composition cannot be projected across a process boundary because it is _code_: `createProvider` is a function and a tool carries `execute`. The two sound answers are to proxy the instances or to stop expressing the contract as instances. Proxying loses on containment — a proxied tool executes in the **parent**, bound to the parent's checkout, while a worktree-isolated child's execution root is a different directory — and a prior-art sweep found **no specification that defines a per-call working root for a proxied tool invocation** (MCP roots are session-scoped and pull-based). So the recipe crosses and the child builds an equivalent surface at its own root, which is what every comparable product does.
1872
+
1873
+ **Per package, classified against each barrel:**
1874
+
1875
+ - **`agent-subagent-runner` (major)** — `runSubagentWorkerMain` gains a **required** parameter; `ISubagentWorkerComposition` is added to the barrel; `ISubagentWorkerReadyMessage` gains `composedToolNames?`; and the `@robota-sdk/agent-provider-defaults` **dependency edge is removed**.
1876
+ - **`agent-cli` (patch)** — composition-root wiring plus one new internal `product/` module; no barrel change.
1877
+
1878
+ **The structural guarantee reaches one axis, and the document says so.** Deleting the manifest edge makes the **provider** axis a compile error, because that package solely owns `createDefaultProviderDefinitions`. The **tool** axis cannot be cut the same way: `createDefaultTools` is barrel-exported by `agent-framework`, which this package must keep for `createSubagentSession`. That axis is held by a new `harness:scan` check instead — and it is the axis with the failure history, so claiming compile-time enforcement across both would have been an overclaim exactly where it matters. The cause (no defaults-aggregator leaf for the tool surface) is tracked as ARCH-035.
1879
+
1880
+ **Fail closed on what a recipe cannot reproduce.** A recipe carries anything that is a pure function of (execution root, serialized payload, ambient durable state) — not a live, unrepeatable handle. Today that is `sandboxClient`, and it is reachable with public code (`E2BSandboxClient` and `InMemorySandboxClient` are both on `agent-tools`' barrel). The composition root now **refuses** to select the child-process runner in that case, naming the capability, rather than yielding a sandboxed parent with a host-tool child. Projection is tracked as ARCH-033.
1881
+
1882
+ **Verified per run, not by construction.** The child declares its composed tool names in `ready`, so the built binary can be asked what it actually composed. Measured on the real artifact: `["Shell","Bash","Read","Write","Edit","Glob","Grep","WebFetch","WebSearch","AskUserQuestion"]` — `pack-coding`'s surface, from the product's own packs.
1883
+
1884
+ **Also filed rather than folded in:** ARCH-034 (in-process and child-process subagents get different tool surfaces), ARCH-036 (`deps.builtInAgents` is dropped by the child-process path), SEC-009 (`apiKey` rides in the IPC start payload; comparable products use the child's environment).
1885
+ - 4772067: **BREAKING — ARCH-031: the subagent seam is derived from its transport SSOT instead of copied.**
1886
+
1887
+ One field family — what a subagent job IS — was declared three times as independent shapes and carried
1888
+ between them by six hand-written object literals that nothing checked for totality. A field added to
1889
+ either side had to be hand-copied at every hop, and a miss compiled clean as a silent no-op. TYPE-003
1890
+ named this cause and derived one hop; the next two changes each dropped a field at a hop it had skipped
1891
+ (CORE-025's permission policy, and ANALYTICS-001's `usage`, dropped in the very commit that added it).
1892
+
1893
+ ```ts
1894
+ // now, in @robota-sdk/agent-interface-transport
1895
+ export type ISubagentSpawnRequest = Omit<IAgentBackgroundTaskRequest, 'kind'>;
1896
+ export type ISubagentJobResult = Omit<IBackgroundTaskResult, 'kind' | 'exitCode' | 'signalCode'>;
1897
+ ```
1898
+
1899
+ All four projections collapse to spreads. `parentTaskId` and `providerProfile` now reach the runner
1900
+ because they exist on the source, not because someone remembered them.
1901
+
1902
+ **Per package, classified against each barrel:**
1903
+
1904
+ - **`agent-executor` (major)** — the barrel loses `ISubagentSpawnRequest` and `ISubagentJobResult` (they
1905
+ moved to their owner; re-publishing them here would be a pass-through re-export). `ISubagentJobStart`
1906
+ and `ISubagentJobHandle` rename `jobId` → `taskId`, `ISubagentJobStart` gains `worktree?`, and
1907
+ `ISubagentWorktreePrepareRequest` renames `jobId` → `taskId`.
1908
+ - **`agent-framework` (major)** — the barrel loses eleven type-only re-exports of `agent-executor`-owned
1909
+ types. They carried zero runtime values, so they bought none of the assembly convenience a runtime
1910
+ facade exists for, while making one field family look like it had three owners. Separately,
1911
+ `ISpawnAgentTaskRequest.permissionPolicy` goes optional → **required**.
1912
+ - **`agent-subagent-runner` (major)** — `ISubagentWorkerStartPayload` renames `jobId` → `taskId` and gains
1913
+ `worktree?`. This package is not in the item's declared `area:`; the audit that caught it is the reason
1914
+ it is here.
1915
+ - **`agent-interface-transport` (minor)** — two new barrel exports; nothing removed or renamed.
1916
+ - **`agent-core` (minor)** — **two** new barrel exports. `DEFAULT_BACKGROUND_PERMISSION_POLICY` is the
1917
+ intended one; collapsing the hand-listed permissions block to `export *` also surfaced
1918
+ `clearRegisteredToolArgumentKeys`, which the old list had omitted. It is documented as public rather
1919
+ than re-narrowed — a barrel that cannot fall out of step with its owner is the point of the collapse.
1920
+ Nothing was removed: all nine previously-listed permission types remain on the barrel.
1921
+ - **`agent-cli` (patch)** — migrated as the only in-repo implementer of `ISubagentWorktreeAdapter`; no
1922
+ barrel change.
1923
+
1924
+ **`permissionPolicy` is now required at the spawn boundary**, and its default is one exported constant
1925
+ owned by the permission SSOT. It was previously applied as `?? 'inherit-allowlist'` in the middle of a
1926
+ projection, in **two** packages independently, with nothing keeping them equal — a security-relevant value
1927
+ whose default was declared twice. Every spawn site now states its own policy.
1928
+
1929
+ **The worktree identity moved to the runner envelope.** It is runner-produced — the worktree does not
1930
+ exist when a caller builds a request — so it rides on `ISubagentJobStart.worktree` and crosses the IPC
1931
+ boundary there. The runner no longer also rewrites `request.cwd`, which had given ARCH-010's execution-root
1932
+ rule two carriers that could disagree. `branchName` **relocated rather than being deleted**: it has no
1933
+ reader in this repository today, and for a library that is not a reason to drop a legitimate contract.
1934
+
1935
+ **Renames are consistent across the SPI** (`type` → `agentType`, `jobId` → `taskId`) rather than applied to
1936
+ one shape, which would have left two names for one identifier in a single file. The IPC validator's
1937
+ string-literal keys are now typed against the contract, so the next rename is a compile error instead of a
1938
+ runtime rejection of every start payload.
1939
+ - 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).
1940
+ - 7d9cc66: Expose declarative contribution descriptors for installed bundles and resolved MCP sources,
1941
+ including source generations, host capability requirements and compatibility diagnostics.
1942
+ Revalidate MCP approval, source identity and workspace trust before new dispatch, preserving
1943
+ outcomes of calls already started and refusing retained tools after shutdown.
1944
+ - 7d9cc66: Resume hosted conversations in freshly provisioned workers using verified checkpoint records while rebuilding current prompts, policy and execution state.
1945
+ - 7d9cc66: Load declared JSON and inline bundle MCP configurations with selected-source containment, ordered whole-server replacement and file provenance. Route packaged servers through normal CLI/app MCP startup with namespaced identities, existing trust/approval/authority gates, disable overlays and value-free compatibility diagnostics.
1946
+ - 6fab98f: **BREAKING — DIST-006: the built `configured CLI` binary could not spawn a subagent at all.**
1947
+
1948
+ `/agent run` failed on every distributed build with `Subagent worker exited before result: exit code 1`. The child's real stderr was `Cannot find module '…/agent-cli/dist/node/child-process-subagent-worker.js'`. `getDefaultSubagentWorkerPath()` resolved the worker relative to its own `import.meta.url`; INFRA-028 bundles every workspace package into `agent-cli/dist/node/bin.js`, so at runtime that directory is **agent-cli's** dist, where the worker was never emitted. It worked from source, which is why nothing caught it.
1949
+
1950
+ **Second occurrence of one cause.** `agent-subagent-runner/tsdown.config.ts` already carried a comment naming this exact failure: _"Without this entry the file never existed, so the child-process subagent silently failed from any dist build."_ That fix put the worker next to its OWN package's bundle; bundling then moved the resolver's notion of "next to me" one package along.
1951
+
1952
+ **The defect was the function, not the missing file.** `getDefaultSubagentWorkerPath()` answered _"where is my worker file on disk?"_ from a library that cannot know — the answer is a property of the packaging step. Emitting the file where the resolver looks would have fixed **one of three shipped artifacts**: the npm bundle, but not the Bun single-file binaries published on every tag, nor the Electron desktop sidecar that embeds them. A compiled single-file executable has no sibling directory to emit into.
1953
+
1954
+ ```ts
1955
+ // removed — a question no library can answer
1956
+ export function getDefaultSubagentWorkerPath(): string;
1957
+
1958
+ // now: the composition root states how to start a copy of ITSELF
1959
+ export interface ISubagentWorkerEntry {
1960
+ readonly execPath: string;
1961
+ readonly args: readonly string[];
1962
+ readonly execArgv?: readonly string[];
1963
+ }
1964
+ ```
1965
+
1966
+ `IChildProcessSubagentRunnerOptions.workerPath` → **`workerEntry`**, and the runner `spawn`s `execPath args… --__agent-subagent-worker` instead of forking a module path. `configured CLI`'s own entry enters worker mode through the new `runSubagentWorkerMain()`, so **there is no second artifact and no path to get wrong**. The one seam satisfies all three shapes: a bundled Node build names the file it is executing, a `tsx` source run names the same and adds `--import tsx`, and a compiled binary names _nothing_ — `process.execPath` is the binary, and re-executing it re-enters its embedded entry.
1967
+
1968
+ **Per package, classified against each barrel:**
1969
+
1970
+ - **`agent-subagent-runner` (major)** — the barrel loses `getDefaultSubagentWorkerPath` (deleted, not renamed) and gains `SUBAGENT_WORKER_MODE_FLAG`, `isSubagentWorkerModeArgv`, `runSubagentWorkerMain`, `ISubagentWorkerEntry`. `IChildProcessSubagentRunnerOptions` renames `workerPath` → `workerEntry` and drops `execArgv` — it now has exactly one owner, on the entry descriptor. The separate `child-process-subagent-worker` bundle entry is gone.
1971
+ - **`agent-cli` (patch)** — composition-root wiring only; no barrel change.
1972
+
1973
+ **Two things this also repairs, both found in review:**
1974
+
1975
+ - **The child's stderr was discarded** (`stdio: [..., 'ignore', 'ipc']`), so a worker that died before its first IPC message reported only an exit code. That is why occurrence #2 had to be diagnosed by hand. It is now captured, bounded, and appended to the error, making the next occurrence self-reporting.
1976
+ - **A source run executed the BUILT worker, not the source worker**, because package `exports` resolve to `dist`. `resolveExecArgv`'s `--import tsx` branch was therefore dead code. Self-fork names the entry actually running, so source runs finally run source.
1977
+
1978
+ **Verified against the artifacts, not from source:** the built `dist/node/bin.js` and a real `bun --compile` single-file binary each complete the worker IPC handshake (`{type:'ready'}`), each refuse a hand-typed flag with no IPC channel (exit 2, "Silence is not success" — measured on both), and the shipped bundle no longer contains the string `child-process-subagent-worker.js` — there is nothing left to look for.
1979
+ - 7d9cc66: Add owner-side clean E2B worker provisioning and verified filesystem recovery with fresh identity and epoch, explicit failure reconciliation, and no paused-memory execution fallback.
1980
+ - dfde075: Generated products can select a CLI package binary, version and build label, native host entry and artifact name, and desktop identity. Artifact metadata records the source version and provenance. Clean-tree generation copies only the committed source tree, while the built-in desktop remains packageable without generation.
1981
+ - cf4fff8: Generated products can declare home-relative operational defaults and choose shared user/project settings sources. Installed artifacts scope ambient canonical variables to their product identity before file selection and child execution. Use matching PRODUCT_ID with canonical overrides or product-prefixed aliases.
1982
+
1983
+ The public startCliEntry function installs the complete CLI diagnostics and crash policy while preserving startCli worker dispatch. Diagnostics use the configured CLI name; headless Restricted runs report ignored project settings and trust refusals name the full product command.
1984
+ - 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.
1985
+ - f3fe3db: The terminal renderer no longer reads `PRODUCT_SCREEN_READER_STARTUP_QUIET_MS` or
1986
+ `PRODUCT_SCREEN_READER_PREPARK_MS` from the process environment. SDK hosts calling `renderApp`
1987
+ directly should pass raw timing choices and diagnostic labels through the new optional
1988
+ `screenReaderPacing` render option. Without it, the renderer uses its existing 900 ms startup
1989
+ quiet period and 50 ms pre-write park when screen-reader mode is enabled. The configured CLI still
1990
+ reads the same environment variables and preserves their validation, bounds, and warnings.
1991
+ - 724d5b6: The terminal renderer no longer reads `PRODUCT_IME_CURSOR` or `PRODUCT_TURN_MARKS` from the process environment. SDK hosts calling `renderApp` directly should pass cursor and turn-mark choices through the optional `terminalCapabilities` render option. Without a host choice, the renderer keeps its terminal and TTY defaults. The configured CLI still reads both environment variables and preserves its exact `1` and `0` overrides.
1992
+ - 7d9cc66: Add owner-hosted organization control and OpenAI-wire gateway composition with anchored authority, mandatory verified audit, durable effect reservations, provider inventory cleanup and private content receipts. OpenAI profiles can opt into operation identities preserved across SDK retries.
1993
+ - c6c56a6: Move the concrete `GitWorktreeIsolationAdapter` (git CLI + filesystem I/O) out of the reusable
1994
+ `@robota-sdk/agent-executor` runtime-primitives package into the `@robota-sdk/agent-cli` composition
1995
+ root, restoring the executor's "creates no Git worktrees" boundary (ARL-02 / ARCH-FIX-024, INFRA-031).
1996
+
1997
+ **Breaking (`@robota-sdk/agent-subagent-runner`):** `worktreeAdapter` is now a **required** option on
1998
+ `createChildProcessSubagentRunnerFactory` / `IChildProcessSubagentRunnerOptions`. The concrete git
1999
+ default (`createGitWorktreeIsolationAdapter()`) has been removed — inject the adapter at the composition
2000
+ root. `@robota-sdk/agent-executor` no longer exports `GitWorktreeIsolationAdapter`,
2001
+ `createGitWorktreeIsolationAdapter`, or `IGitWorktreeIsolationAdapterOptions` (the
2002
+ `ISubagentWorktreeAdapter` port and `WorktreeSubagentRunner` remain). CLI runtime behavior is unchanged.
2003
+ - bad976f: Persist turn and tool intent before effects, restore interrupted calls with unknown outcomes, reap owned foreground shell groups after owner death, and prune proven dead peer announcements.
2004
+ - 7d9cc66: Load external name-only plugin manifests without inventing optional metadata. Select the recorded
2005
+ installed source instead of the lexically last cached directory, refusing invalid, missing or
2006
+ ambiguous revisions. Check the installed identity as well as the manifest name for disablement.
2007
+ - 7d9cc66: Pass the child execution root and restored sandbox to hook composition. The stock CLI explicitly refuses command and HTTP hooks for separate task workers whose hook capabilities are unavailable, instead of executing those hooks on the host.
2008
+ - df02568: Local OpenAI-compatible servers can be set up without saving a placeholder API key. Explicit credentials and environment references remain effective for authenticated servers and connection tests. Optional credentials are managed through the user-only provider edit command.
2009
+ - 7d9cc66: Connect explicitly selected stateless MCP servers through product startup. Preserve and expose the selected protocol, bind activation approval to it, refuse unsupported selections, and report unavailable protocol capabilities without widening process or network authority.
2010
+ - 7d9cc66: Add explicit MCP Skills selection, bounded supervisor access and persistent host content consent.
2011
+ Users can inspect verified instructions, approve the exact content fingerprint and withdraw consent;
2012
+ models can discover metadata only. Consent stays separate from server admission and model-turn activation.
2013
+ - 7d9cc66: Route discovered MCP Skills through the shared skill command runtime with lazy verified content, source-bound invocation names, current user consent and execution-owned activation cleanup. Keep remote shell expressions inert and defer queued user skill reads until their own turn executes.
2014
+ - 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:
2015
+
2016
+ - `agent-session`: `ISessionOptions.contextCapacityHint` is forwarded into the ConversationAgent config (`buildConversationAgent`), making the core seam reachable from the consuming layer.
2017
+ - `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.
2018
+ - `agent-cli`: the default command set registers `/compact`, so end users regain the actionable hint.
2019
+ - `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.
2020
+ - 796ddb4: Use a neutral default MCP client name and let hosts supply their own protocol identity. configured CLI startup now explicitly supplies its prior `host-configured MCP client name` name, preserving its initialize handshake; embedders relying on that implicit name can set `clientInfo` explicitly.
2021
+ - e13c30c: MCP servers now publish a neutral submission tool by default. Hosts that need the previous
2022
+ `<configured-submit-tool>` tool must pass `submitTool: { name: '<configured-submit-tool>', description: '...' }` to
2023
+ `createAgentMcpServer`, `createMcpTransport`, or `createMcpHttpHost`. The configured CLI supplies its
2024
+ existing name and description for both stdio and HTTP carriers.
2025
+ - 90e7a10: The default background observer warning code and exported `OBSERVER_FAILURE_WARNING_CODE` value
2026
+ change from `PRODUCT_BACKGROUND_OBSERVER_FAILURE` to `BACKGROUND_OBSERVER_FAILURE`. Hosts matching
2027
+ the old warning code should match the new neutral code or provide `observerFailureWarningCode` in
2028
+ their background manager or session options. The configured CLI supplies its existing code explicitly
2029
+ across print, goal, serve, MCP, and TUI sessions.
2030
+ - 3ad60a4: Accept public packed manifests with the private field omitted when publishing retained release artifacts.
2031
+ - 2db1b97: Remote-control pairing binds to the negotiated DTLS certificate.
2032
+
2033
+ - The Node host reads the remote fingerprint from the certificate the DTLS layer verified, not from the answer's
2034
+ SDP text, and builds the pairing gate once the DTLS handshake completes.
2035
+ - An SDP must advertise exactly one DTLS fingerprint. `extractDtlsFingerprint` now throws when two different
2036
+ fingerprints are present, and `extractDtlsFingerprintAttribute` returns the algorithm with the value.
2037
+ - A start takes one answer (host) and a connection takes one offer (browser client); a later description is
2038
+ ignored.
2039
+ - fcb0da3: PAYLOAD-2153: make external-payload replay stable across Linux, macOS, and Windows.
2040
+
2041
+ - 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.
2042
+ - Route session replay and framework project reads through the shared authority while preserving their existing domain-specific budgets, integrity checks, and error mappings.
2043
+ - Expose the canonical safe session-id predicate through the framework facade so CLI exact-session lookup stays within the SDK package boundary.
2044
+ - 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.
2045
+ - 07b627f: A local peer can now be answered, and what its turn may do depends on where it runs.
2046
+
2047
+ - `agent-core`: the permission evaluator takes a peer turn's authority as one more input
2048
+ (`IPermissionEvaluationContext.peerTurn`), decided after the deny list and ceiling and before
2049
+ bypass and allow rules. A peer on another host uses no tool. A peer on the same host may use an
2050
+ inspect-class tool that declares `workspacePaths`, only when every named location resolves inside
2051
+ the workspace and is not a credential (`isSecretPath`); write and execute tools are refused unless
2052
+ enabled, and then every use asks. A tool declaring `repliesToPeer` exists only in a peer turn and
2053
+ asks once the turn used another tool. New: `isToolAvailableInPeerTurn`, `TPeerReach`,
2054
+ `IPeerTurnAuthority`. `IRunOptions.withholdHostedTools` leaves a provider's hosted tools out of a
2055
+ run's requests (`nativeWebTools` with `false` withholds a hosted tool for one call).
2056
+ - `agent-tools`: `Read` and `Glob` declare the arguments that say where they look. `Grep` does not:
2057
+ it reads files it was never named, so a peer turn does not get it.
2058
+ - `agent-session`: `ISessionRunOptions.peerReach` makes a run a peer turn for the permission policy;
2059
+ every ask in it needs a fresh approval, and its requests carry no provider-hosted tool. `ISessionOptions.allowPeerChanges` enables write and execute
2060
+ tools for same-host peer turns.
2061
+ - `agent-interface-session`: `ISubmitOptions.peer` (`IPeerTurnContext`) carries a peer turn's reach,
2062
+ the message it answers and the session a reply goes to.
2063
+ - `agent-interface-session-mobility`: `IPeerMessage.inReplyTo` threads a conversation;
2064
+ `peerReachOf(admission)` maps admission to a reach.
2065
+ - `agent-framework`: a peer turn is offered what its origin allows, and a new `peer_reply` tool
2066
+ answers the peer that sent the message, threaded to it. The setting `peers.allowChanges` enables
2067
+ write and execute tools for same-host peer turns.
2068
+ - `agent-ui-terminal`: a permission prompt in a peer turn names the requesting peer.
2069
+ - `agent-cli`: incoming peer turns carry their reach and reply route; a conversation is limited in
2070
+ depth and in how often this session answers it, and a reply over a limit is not sent and the
2071
+ operator is told.
2072
+ - `agent-provider-anthropic`, `agent-provider-openai-compatible` (Qwen): a request whose
2073
+ `nativeWebTools` sets a hosted tool to `false` is sent without it.
2074
+ - 853e585: Print mode (`-p`, `--goal`) waits for stdout and stderr to flush before exiting, so a result larger than the pipe buffer is no longer cut off when stdout is a pipe on macOS (for example `-p /help --output-format json`).
2075
+ - 44bd221: Allow the desktop CLI to start and reconnect to its workspace daemon on Windows using private storage and a native local control pipe that verifies process ownership.
2076
+ - 253c261: Publish the exact preverified package artifacts and start dependent release jobs only after their prerequisites succeed.
2077
+ - 5ccd1e9: Add the browser remote client (REMOTE-009 Stage D) — the P2P peer that opens the pairing URL and
2078
+ co-drives a live session over WebRTC. `agent-web-ui` gains a native-`WebSocket` signaling client, a
2079
+ fail-closed responder pairing gate (session exposed only after the DTLS-fingerprint-bound handshake
2080
+ accepts), an RTC data-channel session client with the same contract as the WS client, a
2081
+ fragment-injected `spa/remote.html` static entry, and the REMOTE-007 permission/ask render+answer
2082
+ (the paired owner answers its own prompts — local == remote) shared by both the WS and RTC clients. It
2083
+ reuses the isomorphic `@robota-sdk/agent-remote-pairing` leaf and takes no node/werift dependency.
2084
+ `agent-cli` removes the fabricated client-URL default and fails closed when
2085
+ `transports.webrtc.options.clientUrl` is unset (no dead link).
2086
+
2087
+ (Bump targets corrected during REL-023 triage: `@robota-sdk/agent-web-ui` was dissolved by GUI-006 (#1141, 2026-07-12) before this work was ever published; the browser client described here now lives in `@robota-sdk/agent-transport-webrtc-web`.)
2088
+ - c7fa299: REMOTE-003 + REMOTE-006 (merged — net behavior; the interim deny-by-default gate never appeared in a
2089
+ published version): commands now carry an invocation source. A `'remote'` value is added to the command
2090
+ invocation source (SSOT relocated to `@robota-sdk/agent-interface-transport`, re-exported by
2091
+ `agent-framework`) and an optional `source` is threaded into
2092
+ `IInteractiveSession.executeCommand(name, args, source?)` (defaults to `'user'`, so all local callers are
2093
+ unchanged). The shared `createWsHandler` tags transport-origin commands `'remote'`. Policy: local == remote
2094
+ (owner principle) — pairing is the sole trust boundary, so a transport-origin command runs exactly as a
2095
+ locally-typed one under the universal permission system (permission modes + PermissionEnforcer + the
2096
+ ask/approval handler); `createDefaultRemoteCommandPolicy()` allows by default. The `IRemoteCommandPolicy`
2097
+ seam remains as an OPTIONAL, user-configured restriction, and the genuinely-remote WebRTC path stays
2098
+ pairing-gated.
2099
+ - 7d9cc66: Connect the desktop to an owner-bound remote task through scoped TLS credentials, durable replay protection, current company authority and a separate native operator approval channel. Keep remote credentials and local filesystem capabilities outside the renderer's remote task connection.
2100
+ - 7d9cc66: Reconstruct visible session history from verified hosted conversation checkpoints without importing old system messages or execution events.
2101
+ - 7d9cc66: Retain an owner shutdown signal received while a served runtime initializes, and release its signal handlers when the run settles.
2102
+ - 837caee: Release the verified runtime through retained publication artifacts and parallel delivery workflows.
2103
+ - 7d9cc66: Require hosted admission protocol v2 with signed root-task ownership. Add a pinned E2B SDK connector that checks admitted worker ownership and network configuration before connecting, keeps management credentials outside task operations, and retains provider teardown failures.
2104
+ - d19feda: Build a separate verified headless Bun artifact for the Electron desktop app. The full CLI binary and npm entry remain available; the desktop resource now copies the smaller presentation-free artifact while preserving the `--serve` wire and launch contract.
2105
+ - 0f15760: Withhold runtime transport credentials and telemetry exporter settings from commands started with a captured environment, including skill preprocessing. Preserve runtime authentication, telemetry export, product identity and explicit provider credential opt-ins.
2106
+ - 833afe1: Remove the remaining polynomial-ReDoS backtracking (SEC-003, CodeQL `js/polynomial-redos`) and stop the DTLS fingerprint binding to SDP free text.
2107
+
2108
+ **`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.
2109
+
2110
+ **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.
2111
+
2112
+ **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.
2113
+
2114
+ **`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.
2115
+
2116
+ 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.
2117
+ - 5783499: Harden file, HTTP, relay, hosted-runtime, editor, and native path boundaries against resource exhaustion, short writes, path races, and integer narrowing.
2118
+
2119
+ Editor integrations now carry `Read`, `Write`, and `Edit` only when their `IEditorFileAccess` adapter declares `pathAuthority: 'stable-root'`; pathname-only adapters continue to receive disk-search notices, while file operations use the tools' stable disk authority. Existing adapters that can prove stable rooted access should add the marker to retain editor-buffer reads and writes.
2120
+
2121
+ `HttpDagRuntimeProvider` accepts a `token` option and applies it to every orchestration and event-stream request so it interoperates with the authenticated native DAG runtime server.
2122
+ - 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.
2123
+ - 7d9cc66: Expose verified skill supporting resources only within their owning turn or fork, using the current host consent and manifest.
2124
+ - 62663ae: Harden local file writes, permission denials, monitor access, and one-time external event admission.
2125
+ - 7d9cc66: Run the stock hosted CLI inside an admitted E2B task worker with broker-signed scoped access, pinned worker artifacts, runtime-owned input/output and provider cleanup.
2126
+ - 7d9cc66: Observe scheduler queue intervals separately from pre-dispatch admission, permission and tool work.
2127
+ Preserve valid duration totals when live trace detail is bounded, reporting invalid evidence explicitly
2128
+ through content-free console and OTLP traces without altering dispatch, recovery or settlement.
2129
+ - 7d9cc66: Require version-3 hosted admission with broker-signed cumulative usage and owner-selected runtime ceilings. Collect accounting before dispatch, on refresh and at completion; stop and release owned execution when accounting or limits fail. Operator deployments and issuers must migrate from version 2.
2130
+
2131
+ Connect authenticated runtime loopback clients to the stock hosted worker daemon through owned provider command streams. Hosted serve requires a private owner-selected ingress configuration and uses a separate worker launch token; stop closes clients and the listener before cleanup settles.
2132
+ - ce8c499: Consume the separately maintained workflow runtime in the self-contained CLI bundle while preserving existing workflows.
2133
+ - 560758b: Update the bundled workflow runtime to preserve saved workflow node identities.
2134
+
2135
+ ## 3.0.0-beta.106
2136
+ ### Patch Changes
2137
+
2138
+ - Accept public packed manifests with the private field omitted when publishing retained release artifacts.
2139
+
2140
+ ## 3.0.0-beta.105
2141
+ ### Patch Changes
2142
+
2143
+ - Release the verified runtime through retained publication artifacts and parallel delivery workflows.
2144
+
2145
+ ## 3.0.0-beta.104
2146
+ ### Patch Changes
2147
+
2148
+ - f78fe5f: Publish a release candidate whose packed artifacts were rebuilt before external-consumer verification.
2149
+ - ce8c499: Consume the separately maintained workflow runtime in the self-contained CLI bundle while preserving existing workflows.
2150
+
2151
+ ## 3.0.0-beta.103
2152
+
2153
+ ## 3.0.0-beta.102
2154
+ ### Patch Changes
2155
+
2156
+ - 253c261: Publish the exact preverified package artifacts and start dependent release jobs only after their prerequisites succeed.
2157
+
2158
+ ## 3.0.0-beta.101
2159
+ ### Patch Changes
2160
+
2161
+ - 5783499: Harden file, HTTP, relay, hosted-runtime, editor, and native path boundaries against resource exhaustion, short writes, path races, and integer narrowing.
2162
+
2163
+ Editor integrations now carry `Read`, `Write`, and `Edit` only when their `IEditorFileAccess` adapter declares `pathAuthority: 'stable-root'`; pathname-only adapters continue to receive disk-search notices, while file operations use the tools' stable disk authority. Existing adapters that can prove stable rooted access should add the marker to retain editor-buffer reads and writes.
2164
+
2165
+ `HttpDagRuntimeProvider` accepts a `token` option and applies it to every orchestration and event-stream request so it interoperates with the authenticated native DAG runtime server.
2166
+ - 62663ae: Harden local file writes, permission denials, monitor access, and one-time external event admission.
2167
+
2168
+ ## 3.0.0-beta.100
2169
+
2170
+ ## 3.0.0-beta.99
2171
+
2172
+ ## 3.0.0-beta.98
2173
+
3
2174
  ## 3.0.0-beta.97
4
2175
  ### Minor Changes
5
2176
 
@@ -47,7 +2218,7 @@
47
2218
  ### Minor Changes
48
2219
 
49
2220
  - 68dda38: MCP Apps: a tool's declared view can ride its result to a surface that can host it.
50
-
2221
+
51
2222
  `agent-mcp` declares the `io.modelcontextprotocol/ui` extension only when the host opts in
52
2223
  (`IMCPOpenSessionOptions.apps`), on both protocol eras. A tool's `_meta.ui` reference (a `ui://`
53
2224
  resource and its audience) is kept in discovery and the catalog only when the server declared the
@@ -58,14 +2229,14 @@
58
2229
  After a successful call, `DiscoveredMCPTool` reads the declared resource and, when it is one
59
2230
  `text/html;profile=mcp-app` document within the size bound, attaches `IToolResult.view`; otherwise the
60
2231
  text result is unchanged and the omission is reported. The view never enters model context.
61
-
2232
+
62
2233
  `agent-cli` opts in only for the plain `--serve` host that the desktop app and web GUI drive, not the
63
2234
  TUI, print runs, `mcp serve` or the ACP agent.
64
2235
 
65
2236
  ### Patch Changes
66
2237
 
67
2238
  - fbb287d: Show a finished MCP tool call's app in an opaque frame with a source-bound JSON-RPC bridge. App callbacks use the session's view authority and permission prompt. Session changes and frame disposal reject pending local requests.
68
-
2239
+
69
2240
  Hosts can provide a sandbox URL through `SessionSurface`. The web GUI serves a separate sandbox document with content restrictions and `Connection-Allowlist` enforcement. App execution requires Chromium 158 or newer and native network isolation; other browsers and hosts without the response policy show an unavailable message and retain the text result. A surface without a sandbox URL never reads the app document.
70
2241
  - Keep E2B out of the base Node installation and defer SDK loading until stock hosted execution is selected. Install `e2b@2.51.0` alongside the CLI in the same project or global prefix to enable that capability. A missing SDK produces installation guidance before admission requests and never falls back to host execution. Public E2B exports and injected executors remain compatible; stock native binaries retain the embedded SDK, and consumer native builds require it as explicit build tooling.
71
2242
 
@@ -262,7 +2433,7 @@
262
2433
  `gen_ai/dup` to emit both attribute sets while dashboards move. The default, `agent`, exports exactly
263
2434
  the spans it did before. An unknown value, or the setting while neither traces nor metrics are exported,
264
2435
  refuses startup. Console traces under a GenAI mode print the same projected spans.
265
-
2436
+
266
2437
  The live prompt trace now carries each tool body's name (the session's tool-body observation includes it
267
2438
  and the framework's live projection passes a label-safe name through); it reaches spans only under a
268
2439
  GenAI mode and is never written to session history.
@@ -280,7 +2451,7 @@
280
2451
  so a provider split of token totals survives the dropped counters. `PRODUCT_TELEMETRY_SEMCONV` now applies to
281
2452
  traces and metrics, and is refused only when neither is exported over otlp or console. Console metrics
282
2453
  print the same projection.
283
-
2454
+
284
2455
  `@robota-sdk/agent-telemetry-otel` adds `projectLivePromptMetricSamples`, which maps a live prompt trace
285
2456
  batch onto those GenAI metrics as plain, SDK-free samples with the recommended bucket boundaries, so
286
2457
  every host names and measures the same facts the same way. Its inference samples keep the label-safe
@@ -318,7 +2489,7 @@
318
2489
  ### Minor Changes
319
2490
 
320
2491
  - 7116367: Credentials the runtime holds for itself no longer reach the commands it runs.
321
-
2492
+
322
2493
  - `agent-cli` — once a workspace's settings are admitted, every variable a provider profile or
323
2494
  definition names as its credential (`$ENV:` references, and defaults such as `OPENAI_API_KEY`)
324
2495
  leaves the process environment, so tools, hooks, background shells, a skill's `!` commands and
@@ -348,7 +2519,7 @@
348
2519
  ### Patch Changes
349
2520
 
350
2521
  - 5bb675a: Provider commands check a profile's `$ENV:` or default credential against the host's environment snapshot, so `/provider switch`, `/provider test`, `/provider add`, `/provider edit` and a cross-profile `/model` keep working while the runtime withholds its own credentials from `process.env`.
351
-
2522
+
352
2523
  - `IProviderCommandModuleOptions` takes an optional `env`, and `createDefaultCommandModules` takes `providerEnvironment`. The CLI passes its startup snapshot.
353
2524
  - The git that isolated subagents run, and so the repository's hooks, now get the command environment instead of the full snapshot.
354
2525
 
@@ -356,7 +2527,7 @@
356
2527
  ### Minor Changes
357
2528
 
358
2529
  - 3427887: `--serve --http-port` can serve the agent HTTP API as an OAuth resource server: with `--http-public-url`, `--oauth-issuer`, `--oauth-scopes` and `--oauth-allowed-subjects` (plus optional `--http-host` and `--trusted-proxy`) it may bind a non-loopback address and admits access tokens through the same shared resource-server gate as `mcp serve`. Without them it stays loopback with the `PRODUCT_HTTP_TOKEN` bearer.
359
-
2530
+
360
2531
  The refusal answer shared by both resource-server carriers (503 for unavailable issuer keys, uncounted; counted challenge otherwise) is now `refuseAccessToken` in `@robota-sdk/agent-transport/node`.
361
2532
 
362
2533
  ### Patch Changes