@robota-sdk/agent-core 3.0.0-beta.99 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,955 @@
1
1
  # @robota-sdk/agent-core
2
2
 
3
+ ## 3.0.1
4
+
5
+ ## 3.0.0
6
+ ### Major Changes
7
+
8
+ - 4eea54b: **`@robota-sdk/agent-core` removes `IMCPToolConfig` and `IToolFactory.createMCPTool()` with no compatibility facade.**
9
+
10
+ Both were exported with no producer and no consumer. `IToolFactory` had no implementation anywhere in
11
+ this repository — `grep -rn 'IToolFactory' packages/*/src apps/*/src` returned only the declaration
12
+ and its export line — and nothing constructed an `IMCPToolConfig`. An MCP server definition is now
13
+ owned by `@robota-sdk/agent-mcp` (MCP-001), which also absorbs the raw/validated/resolved
14
+ forms, source provenance and shadow metadata, strict foreign `mcpServers` decoding, environment
15
+ templates, whole-entry precedence, reversible disable overlays, redacted management projections and
16
+ activation identity.
17
+
18
+ `major` because an exported type and an interface member are gone. An external implementer of
19
+ `IToolFactory` — there is none in this repository — stops compiling until it removes its
20
+ `createMCPTool` member; a caller of the removed type must take the `agent-mcp` definition contract
21
+ instead. No facade is retained deliberately: keeping a deprecated alias would re-create the state
22
+ this change exists to end, two MCP contracts with one of them dead.
23
+
24
+ `@robota-sdk/agent-mcp` is the same workspace package previously named `@robota-sdk/agent-tool-mcp`,
25
+ renamed in place. It stays `private`, so the rename publishes nothing; MCP-002 owns its publication
26
+ together with the official MCP TypeScript SDK client and the first product-reachable slice.
27
+ - f336838: One permission evaluation order for every caller. The interactive session, background tasks and
28
+ subagents used to run two different resolvers, so the same call could be decided differently
29
+ depending on who made it. They now share `evaluatePermission`, and a background policy only adds a
30
+ ceiling, an ask-everything flag and the task's own lists to it:
31
+
32
+ deny → caller ceiling → unevaluable deny (ask) → never-auto-approve set (ask) → ask-everything →
33
+ bypassPermissions → allow → mode.
34
+
35
+ - **`ask` rules.** `permissions.ask` patterns always ask, in every mode including
36
+ `bypassPermissions`. They are matched per command like a deny rule, and are validated at
37
+ construction alongside `allow` and `deny`.
38
+ - **Never auto-approved, bypass included:** removing a critical path with `rm`/`rmdir` (the root, a
39
+ top-level directory, home, the working directory or a parent), and a modify-class write into
40
+ `.git`, the configured project-state directory, `.claude`, `.agents`, `.mcp.json`, `.gitconfig`, `.npmrc` or a shell rc file.
41
+ Files inside an isolated worktree (`the configured project-state directory/worktrees/<name>/…`) are ordinary files. With no
42
+ approver attached, an ask is a denial.
43
+ - **A ceiling is checked before bypass and before any ask.** A subagent's `inherit-allowlist` ceiling
44
+ is now the parent's *effective* rules, read live at spawn: settings, preset lists and command
45
+ auto-allows. It used to be the raw settings file. An unevaluable deny under a policy now asks,
46
+ like everywhere else, where it used to deny outright; with no approver it is still a denial.
47
+ - **Settings layers union `permissions.allow`**, as they already did `deny`. A checked-in project
48
+ file no longer silently discards the user's allow list.
49
+ - **Print mode, `createQuery()` and headless sessions default to `default` mode**, not
50
+ `bypassPermissions`. They have no approver, so a call that would ask is denied. Pass
51
+ `--permission-mode` / `permissionMode: 'bypassPermissions'` explicitly for unattended runs.
52
+
53
+ **Breaking:**
54
+ - `@robota-sdk/agent-core` removes `resolvePermissionByPolicy` and `TPermissionPolicyDecision` in
55
+ favour of `projectPermissionPolicy` plus `evaluatePermission`'s new `context` argument.
56
+ - `@robota-sdk/agent-framework` changes the settings merge rule for `permissions.allow`, and the
57
+ default permission mode of `createQuery()` and headless sessions.
58
+ - 475e085: **BREAKING — CORE-028: the Node-only surface moves from the main barrel to `@robota-sdk/agent-core/node`.**
59
+
60
+ `canonicalizePath`, `isPathInside`, `CommandExecutor` and `HttpExecutor` were exported from the main
61
+ barrel. Each one needs `node:fs`, `node:path` or `node:child_process`, so the package's `browser`
62
+ build had those three builtins in its static import graph — a package declaring a `browser` export
63
+ condition while statically importing Node builtins. A bundler resolves that one of two ways: it
64
+ errors, or it aliases the builtin to an empty object and the code fails later at a call site with no
65
+ useful trace. Neither is a build you want to ship.
66
+
67
+ The four now live at the `./node` subpath, which makes the dependency legible at the import site
68
+ instead of hiding it inside a barrel. The main barrel's static graph imports zero Node builtins,
69
+ which a test now holds at zero rather than at a list of known remainders.
70
+
71
+ **Migration** — change the import path; no signature changed:
72
+
73
+ ```ts
74
+ // before
75
+ import {
76
+ canonicalizePath,
77
+ isPathInside,
78
+ CommandExecutor,
79
+ HttpExecutor,
80
+ } from '@robota-sdk/agent-core';
81
+
82
+ // after
83
+ import {
84
+ canonicalizePath,
85
+ isPathInside,
86
+ CommandExecutor,
87
+ HttpExecutor,
88
+ } from '@robota-sdk/agent-core/node';
89
+ ```
90
+
91
+ `./node` carries `"browser": null`, declaring that the subpath has no browser implementation, so a
92
+ resolver that honours a null target refuses it by name instead of quietly serving the Node build.
93
+
94
+ That declaration is worth stating precisely, because it was measured rather than assumed. Bundling
95
+ `import '@robota-sdk/agent-core/node'` under `['browser', 'import', 'default']` with the repo's own
96
+ bundler does NOT stop at the null: through a workspace link it resolves the `source` entry and then
97
+ fails on `node:fs`, `node:path` and `node:child_process`. The build still breaks, and the message
98
+ still names the Node dependency, so the failure is visible either way — but by a different mechanism
99
+ than the null, and only spec-compliant resolvers give the cleaner error. The claim here is the
100
+ declaration, not a guarantee about every bundler.
101
+
102
+ ### Minor Changes
103
+
104
+ - 1698be4: A child-process subagent can no longer send the parent's provider credential to a different
105
+ endpoint.
106
+
107
+ - **Before spawning a child**, the parent compares every environment variable that decides where
108
+ the provider connects or which credential it sends. If the child's environment differs, the job
109
+ is refused before the credential leaves the parent. The error names the variable, never its
110
+ value. The variables compared are:
111
+ - the proxy and TLS variables;
112
+ - the variables the provider's SDK reads, such as `OPENAI_BASE_URL`, `ANTHROPIC_AUTH_TOKEN` and
113
+ the Vertex settings;
114
+ - the credential's own variable.
115
+ - **The child** repeats the check before it builds its provider. It builds that provider from the
116
+ parent's effective connection exactly: it no longer fills in a base URL, options or a default
117
+ credential from its own registry, and a credential reference that resolves to nothing is refused.
118
+ - **Where the effective connection comes from:** the parent applies its own definition defaults
119
+ (base URL, options). `profileName` is sent only when it names the connection actually sent.
120
+ - **New contracts:**
121
+ - `IProviderDefinition.destinationEnvironment`, declared by every built-in provider.
122
+ - `createProviderFromExactProfile`, `connectionEnvironmentNames`,
123
+ `findConnectionEnvironmentDivergence`, `sealConnectionEnvironment`,
124
+ `verifyConnectionEnvironment` and `TRANSPORT_ENVIRONMENT`.
125
+ - The start payload's `connectionCheck`.
126
+ - The child-process runner's `providerDefinitions` option, now required: a provider with no
127
+ definition there is refused, because its connection cannot be checked.
128
+ - d4189b9: The rest of the per-server MCP OAuth lifecycle: signing in to a server without a local browser,
129
+ signing out of it with token revocation, and each server's sign-in state in `/mcp`.
130
+
131
+ - **`robota mcp login <name> --no-browser`** prints the authorization URL and reads the redirect URL
132
+ the user pastes back (not echoed). `runMCPOAuthLogin` takes `readRedirect` for this; nothing
133
+ listens on the redirect URI then. The pasted URL is held to the loopback listener's rules through
134
+ `createPastedRedirectAcceptor`: it must be the registered redirect URI (same origin and path, no
135
+ user info), carry the sign-in's `state` (compared in constant time), and is accepted once; an
136
+ error redirect is `authorization-denied` without its `error_description`, and the RFC 9207 `iss`
137
+ check applies as before. `openBrowser` now also receives the redirect URI. `readRedirect` gets a
138
+ signal that aborts on cancel or at `callbackTimeoutMs` (5 minutes by default, as for the loopback
139
+ listener); a paste longer than the prompt accepts fails as `redirect-too-long`.
140
+ - **Signing out** (`runMCPOAuthLogout`; `robota mcp logout <name>`; `/mcp logout <serverId>`):
141
+ deletes the stored credential under the refresh lock, then revokes the refresh token and the
142
+ access token (RFC 7009) when the stored issuer advertises `revocation_endpoint`. Revocation is a
143
+ POST through the egress policy that never follows a redirect and is byte-bounded; it authenticates
144
+ the client by `revocation_endpoint_auth_methods_supported` when advertised, otherwise the way its
145
+ refresh does. The local delete always happens. Each token's outcome is reported in `tokens`, and
146
+ overall as `revoked`, `partial`, `unsupported`, `failed` or `not-attempted`, with fixed reasons
147
+ only (new: `revocation-failed`, and `token-type-not-revocable` for RFC 7009
148
+ `unsupported_token_type`). `/mcp logout` also makes the session's authenticator drop the token it
149
+ holds (`IMCPOAuthAuthenticator.forget`).
150
+ - **Sign-in state:** `readMCPOAuthCredentialState` answers `signed-in`, `expired-refreshable`,
151
+ `sign-in-required` or `signed-out` — never anything token-derived. `/mcp` shows it for every
152
+ OAuth server; a server this session was told needs a sign-in reads `sign-in-required`.
153
+ `ICommandMCPActivationAdapter` gains optional `oauthStatus` and `oauthLogout`
154
+ (`ICommandMCPOAuthStatus`, `ICommandMCPOAuthLogoutResult`).
155
+ - **No in-session sign-in:** signing in stays `robota mcp login <server>` in a terminal, since it
156
+ needs the terminal (browser, pasted redirect, hidden secret prompt) a running session owns. `/mcp`
157
+ names that command for a server that needs a sign-in, as does the session's sign-in notice; the
158
+ server name is shown there only when it is safe to paste into any shell — a plain token not
159
+ starting with `-` or `=` — and is otherwise replaced by `<server>` (`shellArgumentForDisplay` in
160
+ `agent-core`; nothing is quoted, since quoting rules differ between shells). Server names in OAuth
161
+ notices have control and format characters escaped.
162
+ - **Refresh hardening:** on `invalid_grant`, the store is read again under the lock; a refresh token
163
+ another holder rotated in meanwhile is kept (and used when still valid) instead of being deleted.
164
+ The expiry skew is capped at half the token's lifetime, so a short-lived token is not refreshed on
165
+ every request; credentials now record `issuedAt` for this.
166
+ - 9edae52: Remote MCP servers can authenticate with OAuth: `robota mcp login <name>` signs in, and sessions
167
+ send the stored token.
168
+
169
+ - **Declaring it:** `"oauth": { "clientId"?, "callbackPort"?, "authServerMetadataUrl"?, "scopes"? }`
170
+ on a remote server definition, decoded into `IMCPOAuthConfig`.
171
+ - `authServerMetadataUrl` must be `https`. `scopes` wins over the server's metadata and a 401's
172
+ `scope`.
173
+ - A `clientId` needs a `callbackPort`: a pre-registered client's redirect URI is fixed.
174
+ - `clientSecret`, unknown keys and `${}` templates are refused; `oauth` beside `headersHelper`,
175
+ or on a stdio server, is refused.
176
+ - `oauth` is no longer reported as unsupported authentication, and it is part of the definition
177
+ fingerprint.
178
+ - **Signing in** (`runMCPOAuthLogin`; `robota mcp login <name> [--client-secret]`):
179
+ - Discovery is done here, not by the SDK's `discoverOAuthServerInfo`: the protected-resource
180
+ metadata `resource` must be the canonical server URL, the authorization server's `issuer` must
181
+ be the server it was fetched for, the server, authorization, token and registration
182
+ endpoints must be `https`, and the authorization server must advertise PKCE `S256`
183
+ (`pkce-unsupported` otherwise). A 401's `resource_metadata` is never followed to another origin,
184
+ and a server without resource metadata is not guessed at.
185
+ `authServerMetadataUrl` skips resource discovery.
186
+ - Dynamic client registration when there is no `clientId`; PKCE, a random `state` and the
187
+ RFC 8707 resource indicator on the authorization request; the RFC 9207 `iss` checked on the
188
+ redirect when sent, and required when the server promises it.
189
+ - The loopback callback listens on `127.0.0.1`, checks `Host`, answers only `GET /callback` with
190
+ the sign-in's `state` (compared in constant time), once, within 5 minutes, and serves a static
191
+ page that never shows `error_description`.
192
+ - The browser opens by argv (`open`, `xdg-open`, `rundll32 url.dll,FileProtocolHandler`) and only
193
+ for an `https` URL. `--client-secret` asks for the secret without echo (or reads stdin's first
194
+ line) and only for a pre-registered client.
195
+ - **Network:** every OAuth request goes through the egress policy and is capped at 256 KiB.
196
+ `agent-core` adds `postWithEgressPolicy`, which refuses a redirect (`redirect_refused`) instead
197
+ of following it; registration, token and refresh requests use it.
198
+ - **Storage:** `IMCPOAuthCredentialStore` (`get`/`set`/`delete`), keyed by the server's security
199
+ identity and canonical URL together. `createFileOAuthCredentialStore` keeps 0600 files in a 0700
200
+ `the configured user data directory`. The issuer, token endpoint and client (with its secret, if any, and
201
+ the client authentication method dynamic registration returned) are stored with the tokens. A
202
+ sign-in stores its credential under the refresh lock, so a refresh in flight cannot overwrite it.
203
+ - **Sessions** (`createOAuthAuthenticator`, wired for every `oauth` definition):
204
+ - Sends the stored token as `Authorization: Bearer`, refreshing it first when expired — including
205
+ a token cached earlier in the session — and only at the stored token endpoint.
206
+ - One refresh at a time per credential: in a process through `MCPSingleFlightCache`, across
207
+ processes under `createFileOAuthRefreshLock`, re-reading the store once the lock is held. A
208
+ stale lock is taken over, and a lock released, only after it is renamed aside and proven to be
209
+ the one judged — never another process's fresh lock.
210
+ - A 401 rediscovers, then refreshes once and retries; an authorization server that changed clears
211
+ 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
212
+ `insufficient_scope` fails and names the scope.
213
+ - An `oauth` definition is never connected without the authenticator (`oauth-unavailable`).
214
+ - Failures are `MCPOAuthError` with a fixed reason; no code, verifier, token, secret or
215
+ authorization-server text reaches an error, a notice or a log.
216
+ - 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.
217
+ - 4c73a0b: Provider failures keep the vendor's HTTP status and error type. `ProviderError` gains `status` and `type`, adapters throw `ProviderError` (or `RateLimitError` for a rate limit) instead of a bare `Error`, an Anthropic mid-stream `overloaded_error` event surfaces as a `ProviderError` with that type, and media errors carry `status`. New `classifyProviderFailure` says whether a failure is worth retrying on another model, and `toProviderError` is the shared adapter mapping.
218
+ - 196a900: Permission rules can say more than one argument per tool.
219
+
220
+ - **`Tool(name:value)` in deny and ask rules** matches a named top-level parameter, with `*` in the
221
+ value (`Bash(run_in_background:true)`, `Agent(model:opus*)`, `github__create_issue(repo:acme/*)`).
222
+ It is a parameter rule only when `name` is one of the tool's parameters, so
223
+ `WebFetch(https://…)` keeps its meaning. A parameter the call omits never matches, and a
224
+ non-scalar value is unevaluable, so the call asks. Allow rules may not use the form.
225
+ - **A rule on the primary field** (`Bash(command:rm *)`) is reported at startup and asks on every
226
+ call, instead of being silently ignored.
227
+ - **Tool-name globs.** Deny and ask rules may glob the tool name (`github__*`). Allow rules may do so
228
+ only after a literal `<server>__` prefix; an unanchored allow glob is refused at construction.
229
+ - **A bare-name deny removes the tool from the model's context.** `Tool`, `Tool(*)` or a name glob
230
+ withholds it from the offered set and the deferred-tool catalogue, live, instead of offering it
231
+ and refusing every call. `IAgentConfig.isToolVisible` is the new seam.
232
+ - **MCP canonical names keep the whole `<server>__` prefix when truncated**, so a server glob still
233
+ names every tool of that server.
234
+ - 34e50f0: A new permission mode, `auto`, lets a model classifier approve or block what would otherwise prompt.
235
+
236
+ - **What it decides:**
237
+ - Reads and in-workspace edits run as in `acceptEdits`.
238
+ - Commands and other calls the mode leaves open go to the classifier, a side call to the
239
+ session's own model. It sees the call, the working directory and the git remotes, never the
240
+ conversation.
241
+ - A block reaches the model with its reason, so it can take another route.
242
+ - **What still reaches a person, or is refused:**
243
+ - Deny rules and background ceilings apply first.
244
+ - `ask` rules, critical removals and protected paths ask a person.
245
+ - After 3 refusals in a row (blocks, or no usable verdict), or 20 blocks in the session, the
246
+ mode asks a person until one approves.
247
+ With no one to ask, the call is denied.
248
+ - **Allow rules:** in `auto` mode, allow rules that approve any command are set aside while the
249
+ mode is on. Examples are `Bash(*)`, an interpreter (`Bash(python *)`), a package runner
250
+ (`Bash(npm run *)`, `Bash(pnpm exec *)`), `Agent`, `ExecuteCommand` or `Computer`. Narrow
251
+ rules still apply.
252
+ - **Retry:** `/permissions` lists classifier blocks. `/permissions retry <n>` lets that exact call
253
+ run once, unjudged, when the model tries it again.
254
+ - **Turning it on and off:**
255
+ - `--permission-mode auto`, `/mode auto` or `/permissions auto`.
256
+ - An organization turns it off with `disableAutoMode` in the org policy.
257
+ - **New contracts:**
258
+ - `TPermissionMode` gains `'auto'`.
259
+ - `allowRulesForAutoMode` and `isBroadExecutionAllowRule`.
260
+ - `IPermissionClassifier` and `AutoModeGate`.
261
+ - The `permissionClassifier` session option.
262
+ - `Session.retryPermissionDenial`, and `retryDenial` on the permission-mode adapter.
263
+ - The `'classifier'` denial reason.
264
+ - `createModelPermissionClassifier`.
265
+ - The `disableAutoMode` option on `createSession` and `IOrgPolicy`.
266
+ - 722e88a: Shell commands can run in an OS-level sandbox: bubblewrap on Linux and WSL2, Seatbelt on macOS.
267
+
268
+ - **Confinement:** covers the command and every process it starts.
269
+ - Writes are limited to the working directory, the temporary directories and
270
+ `sandbox.filesystem.allowWrite`.
271
+ - Agent, git-hook, MCP and shell configuration inside the workspace stays read-only.
272
+ - `sandbox.filesystem.denyRead` hides paths from the command.
273
+ - The network is on or off (`sandbox.network.enabled`).
274
+ - **Modes:** `/sandbox` switches between `auto-allow`, `regular` and `off` for the next command and
275
+ saves the choice.
276
+ - In `auto-allow` (`sandbox.autoAllowBashIfSandboxed`), a confined command runs without a prompt
277
+ in `default` and `acceptEdits`.
278
+ - Deny rules, ask rules, critical removals and plan mode still apply first.
279
+ - **Exclusions:** `sandbox.excludedCommands` run unconfined, through the ordinary permission path.
280
+ - **When the sandbox cannot run:** a missing or unusable backend is reported at startup, in
281
+ `robota doctor` and in `/sandbox`, and commands then run unconfined.
282
+ `sandbox.failIfUnavailable` refuses to start instead.
283
+ - **New contracts:**
284
+ - `OsSandboxClient`, `detectOsSandbox`, `bubblewrapArguments`, `seatbeltProfile`.
285
+ - `ISandboxClient.wrapCommand` and `autoApproves`.
286
+ - `IPermissionEvaluationContext.sandboxAutoApproved`.
287
+ - The `commandSandbox` session option.
288
+ - The `sandbox` settings key and the `sandbox` command host adapter.
289
+ - d23c848: Built-in read-only shell commands run without a prompt.
290
+
291
+ A Bash call is decided like a read, and runs without a prompt in every mode (`plan` included), when
292
+ every command in it comes from the fixed read-only set (`ls`, `cat`, `grep`, `find` without actions,
293
+ `git status`/`log`/`diff`/`show` and similar) and it also:
294
+
295
+ - stays inside the workspace: every path operand resolves inside once symlinks are followed, as
296
+ `Read` requires;
297
+ - uses only printable ASCII syntax that bash, zsh, fish and PowerShell all read the same way.
298
+
299
+ Deny and ask rules still apply first. A command that writes through a redirect, expands or
300
+ substitutes anything, or runs git outside the session's repository takes the ordinary path.
301
+
302
+ New exports: `isReadOnlyCommandLine` and `TResolveInWorkspace`. `IPermissionEvaluationContext`
303
+ gains `resolveInWorkspace`, which `PermissionEnforcer` supplies.
304
+ - 3038eb7: A message from another session is instant messaging: text from an untrusted third party that
305
+ carries no authority. What the model does with it is decided by the session's ordinary permissions —
306
+ rules, permission mode and remembered consent — exactly like the session's own work. The per-origin
307
+ peer policy is gone.
308
+
309
+ **BREAKING**
310
+
311
+ - `agent-core`: `IPermissionEvaluationContext.peerTurn` is now a boolean. It decides only whether a
312
+ `repliesToPeer` tool exists; every other call in a peer turn is decided as in any turn. Removed:
313
+ `isToolAvailableInPeerTurn`, `isSecretPath`, `IPeerTurnAuthority`, `TPeerReach` (now exported by
314
+ `agent-interface-session-mobility`) and `IToolPermissionProfile.workspacePaths`.
315
+ - `agent-tools`: `Read` and `Glob` no longer declare `workspacePaths`.
316
+ - `agent-session`: `ISessionRunOptions.peerReach` is replaced by `peerTurn?: boolean`, and
317
+ `ISessionOptions.allowPeerChanges` is removed. An ask in a peer turn is answered like any other:
318
+ a consent the operator remembered answers it, and an "always allow" given there is remembered.
319
+ - `agent-interface-session`: `IPeerTurnContext` no longer has `reach`; it carries only the reply
320
+ route.
321
+ - `agent-interface-session-mobility`: `peerReachOf` is removed; `TPeerReach` moves here. A delegated
322
+ turn carries no reach.
323
+ - `agent-framework`: the `peers.allowChanges` setting is removed (an existing value is ignored). A
324
+ peer turn is offered the ordinary tools, plus `peer_reply`.
325
+
326
+ **Changes**
327
+
328
+ - `agent-framework`: the per-turn statement tells the model the message is an opinion from an
329
+ untrusted third party, not its owner's instruction, and that it decides for itself whether and how
330
+ to act. A message still expands no `@path` and attaches no context reference, and its requests
331
+ still carry no provider-hosted tool, since no permission step can decide one. The session takes
332
+ at most 6 messages a minute and 30 an hour from each sender for a turn; a message over the limit
333
+ is refused with a reason the sender receives. A prompt answer given in the name of a `peer:` or `external:`
334
+ driver is ignored. External-event turns keep their tool-less baseline.
335
+ - `agent-cli`: incoming peer turns carry only their reply route.
336
+ - 02b7452: A reply to a peer session is decided by the permission system like any call that sends something
337
+ off this machine, and it goes only to the sender that was admitted.
338
+
339
+ - `agent-core` — a tool declaring `repliesToPeer` is still refused outside a peer turn; inside one it
340
+ is decided by the ordinary steps: deny, ask and allow rules, then the mode. It declares no risk
341
+ class, so it asks by default, is refused in plan mode and proceeds under bypass. `IPeerTurnAuthority`
342
+ no longer has `toolUsed`.
343
+ - `agent-session` — an "always allow" answer to the reply is remembered and answers later replies,
344
+ as for any tool; other asks in a peer turn still need a fresh approval each time.
345
+ - `agent-framework` — `peer_reply` asks the operator by default, showing the full text and the peer
346
+ it goes to; `permissions.allow`/`deny` rules naming `peer_reply` apply. `PeerMessageIngress`
347
+ refuses a message whose origin names a sender other than the admitted one, or whose admission names
348
+ no sender, and submits the turn with the admitted identity.
349
+ - `agent-cli` — a local peer message is taken as coming from the session it names only when that
350
+ session confirms, at its own socket, that it is sending exactly that message to this receiver.
351
+ The reply target, the driver id and the operator's notices come from the confirmed sender. A
352
+ session on an earlier version cannot confirm, so its messages are refused; both sessions need this
353
+ version to message each other.
354
+ - e689c8e: Follow-ups to connection approval and `/handoff`.
355
+
356
+ - `agent-transport-webrtc-web` — the browser remote client says `Waiting for the host to approve this connection…`
357
+ (`awaiting-approval`) after pairing, and `Connected` only once the host's session answers. A host that closes the
358
+ channel instead is shown as `refused` and is not retried, since a retry would only ask the operator again; a
359
+ first connection lost before the host answered is `failed`. Reconnect attempts count until the host admits a
360
+ connection, so a link that keeps dropping while approval is pending gives up instead of asking again and again.
361
+ - `agent-core`, `agent-session`, `agent-framework` — a turn that did not come from the operator stores its
362
+ `turnSource` (`peer`, `external`, `agent-wakeup`) beside `driverId` on the user message and in the display
363
+ history (`IRunOptions.turnSource`), so a session handed off keeps where each turn came from.
364
+ - `agent-cli` — a `/handoff` resent after a lost confirmation reports what stays behind as it is now, not as it was
365
+ at the first attempt, and after refusing to resend a session that changed, the hand-off status shows that refusal
366
+ instead of the earlier lost confirmation.
367
+ - 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.
368
+
369
+ 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.
370
+ - c7f9203: Connected sessions can send each other files.
371
+
372
+ - `/peers send-file <session-id> <path>` sends a copy of any file the operator can read to another
373
+ live session on this host.
374
+ - The model sends a file only through the `peer_send_file` tool. Every call asks the user, showing
375
+ the path, size, hash and destination; no permission mode, rule or remembered consent answers it.
376
+ The tool reaches only files inside the workspace whose path does not look like it holds secrets
377
+ (`.env*`, `~/.ssh`, keys and credentials), and it does not exist in a turn a peer's message started.
378
+ - The receiving operator approves every file. A received file is kept as an inert copy (mode 0600)
379
+ under `the configured user data directory<sender>/`. It is never run and never placed in the model's context.
380
+ The conversation is told only its name, size and sha256. A name that leaves that directory is
381
+ refused, a symbolic link is never written through, and nothing is overwritten.
382
+ - Transfers travel on a channel of their own (a separate connection on this host, a separate data
383
+ channel between devices), in chunks the receiver paces, up to 32 MiB, and are kept only when the
384
+ whole content matches the offered sha256. A transfer that ends early is discarded; there is no
385
+ resume.
386
+
387
+ **API**
388
+
389
+ - `agent-interface-session-mobility`: the `file` capability, which asks the operator for every
390
+ request; `ConnectionAuthority.authorizeFile`; `IFileOffer` and `IFileFrameChannel`.
391
+ - `agent-transport/node`: `sendFileOverChannel` and `receiveFileOverChannel`, the carrier over any
392
+ `IFileFrameChannel`; `DEFAULT_MAX_FILE_BYTES`.
393
+ - `agent-transport-webrtc`: `IDeviceMeshLink.openFileChannel` and `onFileChannel`.
394
+ - `agent-remote-pairing`: `file` joins `DEVICE_CAPABILITIES`. A device certificate that names it is
395
+ refused as malformed by an earlier version.
396
+ - `agent-core`: `IToolPermissionProfile.notInPeerTurn` withholds a tool from a turn a peer's message
397
+ started.
398
+ - `agent-framework`: `ICommandLocalPeersAdapter.prepareFile`.
399
+ - be0e53c: A tool instance shared by several sessions sends each call's span to the session that made the call.
400
+
401
+ - **Before:** each session set its event service on the shared instance, so the span went to whichever session had set it last.
402
+ - **`agent-core`:** `IToolExecutionContext` gains an optional `instanceEventService`. `FunctionTool` emits its span there when a call carries one.
403
+ - **`agent-session`:** the permission wrapper keeps its session's service and passes it with every call.
404
+ - 9f46375: A run can record its model calls and tool effects in a journal the host owns, and continue from it
405
+ later. Pass `executionJournal` in the run options: each model request and response, and each tool
406
+ call's intent, start and result, is written and awaited before the run moves on. If a write fails,
407
+ the run stops with an `ExecutionJournalError`, even when it is also being cancelled; the model never
408
+ sees it as a tool failure it could retry. A journaled run waits for a cancelled model call to
409
+ finish, because its late reply can still carry usage or tool calls that must be recorded.
410
+
411
+ With a journal that can also read its records back (`IRecoverableExecutionJournal`), a new `ConversationAgent`
412
+ for the same conversation continues where the old one stopped, without new user input and without
413
+ repeating calls whose results were saved:
414
+
415
+ - `ConversationAgent.resumeToolCalls()` runs the latest saved batch of tool calls without calling the model.
416
+ - `ConversationAgent.resume()` continues the whole execution, keeping its remaining round and repeated-input
417
+ limits. It refuses a different provider or model. Turn-level lifecycle hooks do not run again, and
418
+ structured output cannot be recovered. A deferred tool the execution had loaded that is no longer
419
+ registered raises `ExecutionRecoveryError`.
420
+
421
+ A tool can ask for an answer before it acts, through `continuation` on its execution context. The
422
+ request is saved and the run ends with `ExecutionSuspendedError`, without a completion or failure.
423
+ Tools already running beside it finish and save their real results; only calls not yet started wait.
424
+ Answering it through `toolResponses` on a later `resume()` continues the same action; an unanswered
425
+ request never lets the tool act. A tool call that may have started without a saved result raises
426
+ `ExecutionRecoveryError` and must be reconciled by the host: it is never run again automatically.
427
+ `isExecutionControlError` recognizes these errors. `callJournaledProvider`, with an
428
+ `IModelJournalContext`, journals a model call made outside a run.
429
+ - 04a6de4: **Reasoning text a provider streams now reaches the editor as an ACP `agent_thought_chunk`, through a new `thinking_delta` session event.**
430
+
431
+ `IChatOptions.onThinkingDelta`, `IRunOptions.onThinkingDelta` and `IResumeExecutionOptions.onThinkingDelta`
432
+ (typed `TThinkingDeltaCallback`) carry reasoning text from a provider through the run, and the session
433
+ options (`ISessionOptions.onThinkingDelta`, `ICreateSessionOptions.onThinkingDelta`) hand it to the
434
+ session's owner. `InteractiveSession` emits it as `thinking_delta(delta)`, beside `text_delta`. The
435
+ text is never part of the reply: it is not appended to the conversation, not streamed through
436
+ `onTextDelta`, and the core adds no record of its own for it (no text-delta log entry, no
437
+ `provider_stream_raw_delta`); a provider's own native payload capture and response metadata keep
438
+ what the provider sent, as before. A reasoning delta counts as provider activity for the idle
439
+ timeout whether or not anyone listens to it, so a model that is only thinking is not cut off. The
440
+ existing `thinking(isThinking)` event is unchanged and remains the busy indicator. Where a provider
441
+ sends no reasoning text, nothing is emitted and nothing new is switched on.
442
+
443
+ `@robota-sdk/agent-interface-session` is a major change because a new session event name makes an
444
+ exhaustive map over the event names stop compiling until it classifies the event.
445
+
446
+ `@robota-sdk/agent-transport-acp` sends each non-empty `thinking_delta` to the editor as an
447
+ `agent_thought_chunk`, in order with the message chunks, so `robota acp` shows the model's reasoning
448
+ in the editor. A turn that streamed only thoughts still shows its result text, because only reply
449
+ text marks a turn as streamed. The WebSocket wire, the HTTP stream, headless stream-json, `query()`
450
+ and the terminal UI do not carry the new event in this change (`@robota-sdk/agent-transport` and
451
+ `@robota-sdk/agent-ui-terminal` classify it as non-surface). A forked skill and an in-process subagent
452
+ pass their reply text up but not their reasoning.
453
+
454
+ Two providers already receive reasoning text and now report it. `@robota-sdk/agent-provider-openai`
455
+ passes `response.reasoning_summary_text.delta` events of a streamed Responses call to
456
+ `onThinkingDelta`; the API sends them only when the provider profile asks for a reasoning summary, and
457
+ no request option changed; a summary streamed in several parts, and the summary of a later reasoning
458
+ item, each start on a new paragraph (`\n\n`) so the parts do not run together.
459
+ `@robota-sdk/agent-provider-openai-compatible` reports the text of Gemma's thought channel, which the
460
+ provider already removed from the reply, as it streams across chunk boundaries, with each later
461
+ channel of one reply on a new paragraph; the reply text is unchanged. No other provider reports
462
+ reasoning, and Anthropic thinking is not enabled. A model fallback chain still moves to the next model when only reasoning had streamed.
463
+
464
+ The scripted test provider (`@robota-sdk/agent-core/testing`) accepts an optional `thinking` string on
465
+ a turn and delivers it through `onThinkingDelta` before the turn's text; the scripted session harness
466
+ collects `thinking_delta` and now keeps a scripted tool-call turn's `usage`, which it used to drop.
467
+ - 0ba247b: A tool result can now carry a view its source declared (an MCP app), and a surface can invoke a
468
+ runtime tool through the session's permission gate with a prompt. This is the contract and wiring
469
+ layer: nothing produces a view yet, and the GUI does not yet host one.
470
+
471
+ - `agent-core` — `IToolResult.view` carries an `IToolAppView` (source, `ui://` resource, mime type,
472
+ HTML, structured content, callable tools, the call's input). `view` is now a typed key of
473
+ `IToolResult`, so an extension that already used a `view` key with another type must rename it.
474
+ The view is display data: it never enters model context or the size that decides a spill, and a
475
+ result replaced by its reference keeps it.
476
+ - `agent-interface-session` — `invokeRuntimeTool` takes `permissionInteraction` (`'interactive'` or
477
+ the default `'deny'`), a `driverId` (a host that attributes prompts names it as the requester) and
478
+ an `executionId` its events carry. A finished model call's `tool_end` names its view with
479
+ `IToolState.appView` (`viewId`, source, resource), and the new
480
+ `ISessionToolAppViews.readToolAppView(viewId)` reads the document. A permission handler may take
481
+ `{ signal }`, and aborting it withdraws the prompt.
482
+ - `agent-session` — a direct call asks a person only when its caller says so, and the handler is
483
+ given the call's own signal; the tool end event carries the view, never in the logged result data.
484
+ - `agent-framework` — the view of a model's call is kept under a `viewId` the session mints, in a
485
+ bounded per-session store (16 views, 4 MiB each, 16 MiB in all, measured on the whole serialized
486
+ view), and read on demand, so the document never rides `tool_end` to every surface, never enters
487
+ the recorded history, and a repeated provider tool-call id cannot overwrite another turn's view.
488
+ A malformed view is dropped. A direct call keeps and names no view, recognised by the id it was
489
+ started with. A submission or agent wakeup that arrives while a direct call holds the session is
490
+ queued behind it, as during a turn, instead of refused. A direct call acting for a driver
491
+ attributes its permission prompt and tool events to that driver, and aborting its signal withdraws
492
+ an open prompt from every surface.
493
+ - `agent-transport` — a driving connection sends `call-app-tool` (answered by `app_tool_result`) and
494
+ `read-app-view` (answered by `app_view`). A call names its view and reaches only the tools that
495
+ view's source declared; a call or read that decodes but cannot be served answers `protocol_error`
496
+ echoing the `requestId`, while an observer's attempt is refused like any non-read. A call still
497
+ waiting on its prompt is cancelled when its connection goes away (for the resume bridge, when the
498
+ bridge is disposed). `maxFrameBytes` bounds an app answer to what a carrier's channel carries;
499
+ the WebRTC carrier uses a history page's worth. `IProtocolSession` now includes the runtime-tool
500
+ and app-view roles.
501
+ - `agent-ui-web` — the two new server messages are recorded as not rendered until the app-view host
502
+ consumes them.
503
+
504
+ An implementation of `IInteractiveSession` or `IProtocolSession` outside this repository must add
505
+ `readToolAppView` (and, for `IProtocolSession`, `listRuntimeTools` and `invokeRuntimeTool`); the
506
+ members are required so a host cannot silently lack them.
507
+ - fec722f: Carry a trusted canonical absolute execution root from DAG product composition through worker task
508
+ input and node lifecycle context. Filesystem-capable DAG nodes now use that injected authority instead
509
+ of ambient `process.cwd()`, and authored `cwd` values may only narrow it.
510
+
511
+ BREAKING: `ITaskExecutionInput`, `INodeExecutionContext`, worker composition dependencies,
512
+ `LocalDagRuntimeProvider`, and the CLI-local runner now require an execution root at their non-convenience
513
+ boundaries. `createDagFramework()` preserves no-argument construction by validating and capturing its
514
+ current directory at the factory boundary. The filesystem-backed skill node is explicitly Node-only and
515
+ no longer advertises a browser export condition.
516
+ - 2d3b2c0: Make shell resolution executable-aware across managed and scheduled background command runners. The core
517
+ resolver now accepts one request with explicit-executable precedence, returns matching argument families
518
+ for sh/bash, PowerShell/pwsh, and cmd, and fails closed with `UnsupportedShellError` for unknown explicit
519
+ executables. Executor exposes one shared request adapter and both concrete runners consume its pair.
520
+ - 4772067: **BREAKING — ARCH-031: the subagent seam is derived from its transport SSOT instead of copied.**
521
+
522
+ One field family — what a subagent job IS — was declared three times as independent shapes and carried
523
+ between them by six hand-written object literals that nothing checked for totality. A field added to
524
+ either side had to be hand-copied at every hop, and a miss compiled clean as a silent no-op. TYPE-003
525
+ named this cause and derived one hop; the next two changes each dropped a field at a hop it had skipped
526
+ (CORE-025's permission policy, and ANALYTICS-001's `usage`, dropped in the very commit that added it).
527
+
528
+ ```ts
529
+ // now, in @robota-sdk/agent-interface-transport
530
+ export type ISubagentSpawnRequest = Omit<IAgentBackgroundTaskRequest, 'kind'>;
531
+ export type ISubagentJobResult = Omit<IBackgroundTaskResult, 'kind' | 'exitCode' | 'signalCode'>;
532
+ ```
533
+
534
+ All four projections collapse to spreads. `parentTaskId` and `providerProfile` now reach the runner
535
+ because they exist on the source, not because someone remembered them.
536
+
537
+ **Per package, classified against each barrel:**
538
+
539
+ - **`agent-executor` (major)** — the barrel loses `ISubagentSpawnRequest` and `ISubagentJobResult` (they
540
+ moved to their owner; re-publishing them here would be a pass-through re-export). `ISubagentJobStart`
541
+ and `ISubagentJobHandle` rename `jobId` → `taskId`, `ISubagentJobStart` gains `worktree?`, and
542
+ `ISubagentWorktreePrepareRequest` renames `jobId` → `taskId`.
543
+ - **`agent-framework` (major)** — the barrel loses eleven type-only re-exports of `agent-executor`-owned
544
+ types. They carried zero runtime values, so they bought none of the assembly convenience a runtime
545
+ facade exists for, while making one field family look like it had three owners. Separately,
546
+ `ISpawnAgentTaskRequest.permissionPolicy` goes optional → **required**.
547
+ - **`agent-subagent-runner` (major)** — `ISubagentWorkerStartPayload` renames `jobId` → `taskId` and gains
548
+ `worktree?`. This package is not in the item's declared `area:`; the audit that caught it is the reason
549
+ it is here.
550
+ - **`agent-interface-transport` (minor)** — two new barrel exports; nothing removed or renamed.
551
+ - **`agent-core` (minor)** — **two** new barrel exports. `DEFAULT_BACKGROUND_PERMISSION_POLICY` is the
552
+ intended one; collapsing the hand-listed permissions block to `export *` also surfaced
553
+ `clearRegisteredToolArgumentKeys`, which the old list had omitted. It is documented as public rather
554
+ than re-narrowed — a barrel that cannot fall out of step with its owner is the point of the collapse.
555
+ Nothing was removed: all nine previously-listed permission types remain on the barrel.
556
+ - **`agent-cli` (patch)** — migrated as the only in-repo implementer of `ISubagentWorktreeAdapter`; no
557
+ barrel change.
558
+
559
+ **`permissionPolicy` is now required at the spawn boundary**, and its default is one exported constant
560
+ owned by the permission SSOT. It was previously applied as `?? 'inherit-allowlist'` in the middle of a
561
+ projection, in **two** packages independently, with nothing keeping them equal — a security-relevant value
562
+ whose default was declared twice. Every spawn site now states its own policy.
563
+
564
+ **The worktree identity moved to the runner envelope.** It is runner-produced — the worktree does not
565
+ exist when a caller builds a request — so it rides on `ISubagentJobStart.worktree` and crosses the IPC
566
+ boundary there. The runner no longer also rewrites `request.cwd`, which had given ARCH-010's execution-root
567
+ rule two carriers that could disagree. `branchName` **relocated rather than being deleted**: it has no
568
+ reader in this repository today, and for a library that is not a reason to drop a legitimate contract.
569
+
570
+ **Renames are consistent across the SPI** (`type` → `agentType`, `jobId` → `taskId`) rather than applied to
571
+ one shape, which would have left two names for one identifier in a single file. The IPC validator's
572
+ string-literal keys are now typed against the contract, so the next rename is a compile error instead of a
573
+ runtime rejection of every start payload.
574
+ - 9fbab1b: Provider DIP Stage B (ARCH-PROVIDER-003), part 1: collapse infrastructure. Adds the
575
+ provider-registry-driven `@robota-sdk/dag-node-llm-text` node that supersedes the
576
+ per-vendor LLM nodes + router, relocates the provider config resolver into
577
+ `agent-core`, adds SSOT cost/allowedModels fields, inverts the `llm-text` validator
578
+ tombstone, and wires `createDagFramework({ providers })`. Additive — the per-vendor
579
+ nodes still exist; consumer migration + their removal follow in part 2.
580
+ - b6d14ce: Make the universal JSON-schema subset able to express an object, so a nested `z.object()` keeps its
581
+ properties and required fields instead of reaching the model as `{ "type": "object" }`. Tools and
582
+ structured-output schemas with one level of nesting are now advertised in full and enforced on the
583
+ tool-input path; `z.union` / `z.discriminatedUnion` / `z.literal` are supported and map to `anyOf`
584
+ and single-value enums; `.nullable()` keeps its null branch; and Zod's `strip`, `strict` and
585
+ `passthrough` modes stop collapsing into two `additionalProperties` emissions. Fixes the shipped
586
+ `Computer` and `AskUserQuestion` built-ins, whose action and question fields were being dropped
587
+ entirely.
588
+
589
+ `agent-core` is **minor**, not patch: `IObjectParameterSchema` is a new export, and
590
+ `IParameterSchema.type` became optional (a union node carries `anyOf` instead of a type), which is a
591
+ consumer-visible type change — two call sites in this repo needed editing to keep compiling.
592
+ `additionalProperties` also widened to `boolean | IParameterSchema`, and `required` and `anyOf` are
593
+ new members. The provider packages are **patch**: each adapts to the widened subset without changing
594
+ its own public surface.
595
+
596
+ ### Patch Changes
597
+
598
+ - 7b6234c: A tool call whose arguments fail to decode to a JSON object (invalid JSON, or a `null`/scalar/array
599
+ root — including a stream truncated mid-argument) no longer breaks the rest of its batch or the round
600
+ after it. Every other call in the same batch still executes and gets its real result; the malformed
601
+ call gets a clear per-call error instead, naming the tool and call id, and the run continues rather
602
+ than rejecting. The Anthropic and Gemini providers no longer throw when building the next request
603
+ from a conversation that still carries that call's original malformed arguments.
604
+ - 8bd5fac: Cached input tokens are no longer dropped (#3209 R3). The OpenAI and OpenAI-compatible adapters read
605
+ `prompt_tokens_details.cached_tokens` (Chat Completions, including the final streamed usage chunk) and
606
+ `input_tokens_details.cached_tokens` (Responses, OpenAI and Qwen) into `cacheReadTokens` on the message
607
+ usage: the part of the prompt served from the provider's prompt cache, present only when reported.
608
+ It reaches the committed assistant message, `readTokenUsageFromMessage()`, and the
609
+ `provider_call_completed` execution event, so a consumer can apply the cache discount.
610
+
611
+ New `sumMessagesUsage(messages)` sums the usage on assistant messages (with `cacheReadTokens` when any
612
+ reported it), so one run's usage is `sumMessagesUsage(agent.getHistory().slice(before))` without
613
+ converting through `messageToHistoryEntry` (#3209 S1). `sumHistoryUsage` returns the same triple as before.
614
+
615
+ A forced-summary reply now keeps the usage its provider reported the same way a tool round's reply
616
+ does: an endpoint that omits `total_tokens` no longer loses exactly the summary call's usage (#3209 N3). Counts
617
+ the adapter could not attest as a consistent total are recorded with `usageProvenance: 'partial'`.
618
+ - 57280bf: Every published package now declares `"engines": { "node": ">=22.12.0" }`. Before, 27 of the 38
619
+ packages declared no floor (`agent-core`, `agent-tools` and every provider among them),
620
+ `agent-session` and `agent-file-authority` declared `>=20.19.0`, and the other nine declared
621
+ `>=22.0.0`, so a consumer on Node 20 saw at most a warning from a transitive dependency.
622
+
623
+ Why 22.12: `agent-cli` and `agent-ui-terminal` need Node 22 through `ink` 7, and the CommonJS entries
624
+ of `agent-tools` and its dependents, `agent-transport`/`node` and its dependents, and
625
+ `agent-ui-terminal` `require()` ESM-only dependencies (`p-limit`, `jose`, `chalk`), which Node 22
626
+ supports unflagged only from 22.12. `engines` is advisory unless the consumer enables `engine-strict`.
627
+
628
+ No code changes: `tsdown` now reads `node22.12.0` as its build target from the field.
629
+ - 5033dd9: When the round cap ends a run on a tool round and the follow-up summary call fails, `run()` and
630
+ `runStream()` now reject with that call's own provider error (for example a `RateLimitError` with
631
+ `recoverable: true`, or the provider's 400 error) instead of a generic
632
+ `[STRICT-POLICY] Failed execution result missing error field` error. The failure is recorded in
633
+ history like a failed round. An aborted summary call now resolves the run as interrupted, like an aborted round, instead of failing.
634
+ - 18c0d5c: Every published package now exports `./package.json`, so `require('<package>/package.json')` and
635
+ `import('<package>/package.json', { with: { type: 'json' } })` work instead of failing with
636
+ `ERR_PACKAGE_PATH_NOT_EXPORTED`, and each tarball now ships the package's `CHANGELOG.md`.
637
+ - dbd888d: A `run()` or `runStream()` whose signal is already aborted when its turn comes now fails as an abort:
638
+ `name === 'AbortError'`, so `isAbortFailure(err)` holds without the signal. The signal's own reason is
639
+ thrown when it already is an `AbortError` (the default `controller.abort()`); any other reason,
640
+ including an error that only wraps an abort, becomes the `cause` of an abort error whose message says
641
+ `Run aborted before it started`, or `Run aborted while queued behind another run on this instance`
642
+ only when the run actually waited behind another. It still never reaches the provider or the history.
643
+ Previously it was a plain `Error` that always claimed the run had been queued.
644
+ - 1887e54: A run's answer now comes from its own turn. A turn run with `allowToolOnlyCompletion` that ends in
645
+ tool calls resolves with `''` instead of throwing a `[STRICT-POLICY]` error, and a later turn that
646
+ produces no text no longer resolves with the previous turn's answer. An aborted run resolves with the
647
+ text it committed before the abort (the same text history keeps, marked `interrupted`) instead of
648
+ `''`, and its result lists the tool calls the turn handled before the abort. `tokensUsed`, which plugins receive
649
+ after each run, counts only that run's provider calls instead of the whole conversation's.
650
+ - 41cca13: Fixed `run(input, { allowToolOnlyCompletion: true })` throwing an internal `[STRICT-POLICY]` error
651
+ when a round produced neither a tool call nor any text — for example a tool-calling decision agent
652
+ whose model answered with nothing at all. `allowToolOnlyCompletion` only widens what counts as a
653
+ finished turn (a tool call alone, with no final text); an ordinary text-only reply already completes
654
+ normally and is unaffected, and a turn that ends in tool results still resolves with `''`. A turn
655
+ that ends with neither text nor a tool result now rejects with a new, catchable `EmptyCompletionError`
656
+ (`code: 'EMPTY_COMPLETION'`) instead of the internal invariant message; `resume()` of such an
657
+ execution raises the same error.
658
+ - ada3841: Dispatch tool-call plugin hooks around each decoded attempt, including unknown-tool refusals,
659
+ and emit the event emitter plugin's before-execution event. A pre-effect wait resumes the same
660
+ logical call without repeating its before hooks; recovered results do not replay call hooks.
661
+
662
+ Pair parallel tool analytics by the logical execution ID, including calls of the same tool.
663
+ - 5093a30: A `the agent runtime` run now calls `beforeConversation`, with `beforeExecution`, and `onStreamingChunk` for
664
+ each streamed piece of text, in order; the round waits for those chunk hooks before it goes on,
665
+ whether the provider call returned, failed or was interrupted. `EventEmitterPlugin` therefore emits
666
+ `CONVERSATION_START`.
667
+
668
+ The run result's `toolCalls` now carry each executed call's id and `result: null` for one that
669
+ failed, so `EventEmitterPlugin` emits `TOOL_ERROR` instead of `TOOL_SUCCESS` for a failed call, and
670
+ `WebhookPlugin`'s `tool.executed` payload reports it as failed with its call id.
671
+
672
+ `EXECUTION_START`, `EXECUTION_COMPLETE` and `EXECUTION_ERROR` are marked deprecated: no run emits
673
+ them; the `AGENT_EXECUTION_*` events are the ones a run emits. `beforeToolCall`,
674
+ `beforeToolExecution` and `afterToolCall` are still not called.
675
+ - 94b2c87: A PreToolUse `command` hook can now steer a tool call, not only refuse it. The permission gate
676
+ applies the winning `hookSpecificOutput.permissionDecision`:
677
+
678
+ - `allow` skips the prompt a person would otherwise get. Deny rules, refusals from the mode, the
679
+ `auto` mode classifier and asks that must reach a person (an `ask` rule, a protected path, a
680
+ policy that asks about everything) still apply.
681
+ - `ask` sends the call to a person even when the mode or a remembered consent would run it. The
682
+ answer is not remembered, and with no one to ask the call is refused.
683
+ - `defer` leaves the call to the normal flow, as before.
684
+
685
+ Before this change these decisions were read and then ignored.
686
+
687
+ `updatedInput` is still not applied: the call runs the input it was made with, and an `allow` sent
688
+ with an `updatedInput` is not applied either, since it approved another input.
689
+
690
+ `runHooks` (agent-core) now reads a decision and an `updatedInput` only from `command` hooks: a
691
+ `prompt` or `agent` hook answers from a model that reads the tool input it judges, so it can only
692
+ refuse. With several hooks, `ask` now outranks `defer` (`deny` > `ask` > `defer` > `allow`), and the
693
+ reported `updatedInput` is the one sent with the winning decision.
694
+ - 3ab2eca: - External presets accept every permission mode a session does, `auto` included; `auto` used to fail validation.
695
+ - `createDagFramework({ ports: { costMeta } })` wires cost-metadata management; without it cost operations still report that they are unsupported.
696
+ - `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.
697
+ - The provider `executor` option docs no longer import a `RemoteExecutor` that does not exist, and `IRemoteExecutorConfig` is marked deprecated: nothing implements a remote executor.
698
+ - 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.
699
+ - 66af868: Accept Claude-compatible WebFetch domain permission rules during session initialization while preserving hostname boundaries and deny/ask enforcement.
700
+ - 6f41c53: Update Zod, OpenAI, and Undici to patched releases so installed Robota artifacts do not carry the
701
+ known production dependency vulnerabilities. The Zod schema bridge now preserves the supported
702
+ object, record, enum, literal, wrapper, and transform contracts on Zod 4, and the OpenAI-compatible
703
+ response parser safely ignores non-function tool-call variants introduced by the current SDK.
704
+ - a009f5b: Provider DIP Stage E (ARCH-PROVIDER-006): repo-hygiene + policy cleanup. Codified the
705
+ Family Decomposition Rule in project-structure.md (split driver = consumer/third-party
706
+ opt-in installability / extension-point registration, not dep-weight). Removed dangling
707
+ tracked references to deleted packages (tsconfig project refs, eslint glob, changeset
708
+ config `fixed` + pending changeset files), pruned 37 dead `.changeset/pre.json` entries,
709
+ and removed 24 untracked husk directories. Closes ARL-15 — the provider dependency-
710
+ inversion arc (Stages A–E) is complete.
711
+ - c207a31: Keep automatic compaction aligned with the active model and pending input, preserve provider usage when estimating new context, and keep summary text out of the response stream. Display live context changes and successful automatic compaction in the shared app interface.
712
+ - 9b4f63b: Allow explicitly borrowed providers to outlive agent destruction and Session shutdown while keeping
713
+ owned providers as the default. Track replaced and removed provider cleanup, expose current provider
714
+ registrations after swapping, and hold Roundtable resource leases until runtime teardown finishes.
715
+ Borrowing does not permit concurrent provider use across leases.
716
+ Serialize manager lifecycle transitions so reinitialization cannot admit providers during pending teardown.
717
+ - 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).
718
+ - e477440: CORE-033: the abnormal paths now emit the required replay events, and history stays append-only
719
+
720
+ `provider_request`, `assistant_message_committed` and `history_mutation` are REQUIRED families, and
721
+ `agent-session` builds its session log from them: replaying every announced append, in order, is
722
+ supposed to reconstruct the conversation. Three engine sites appended without announcing, so the
723
+ reconstruction diverged at exactly the moments a reader goes to the log — the round cap, the
724
+ hard-capacity block, and a provider failure. On a capped run the summary the user actually read was
725
+ absent from every replay, and the provider call that produced it was invisible.
726
+
727
+ - The forced-summary call emits `provider_request` (`forcedSummary: true`, carrying the assembled
728
+ messages), then `assistant_message_committed` and `history_mutation` for the summary it commits.
729
+ - The hard-capacity block announces its diagnostic — the only message explaining why the turn stopped.
730
+ - A provider failure announces the `Request failed: …` record it appends.
731
+
732
+ The forced-summary call also **rewrote** history: it appended a synthetic round-limit instruction,
733
+ sent it, then removed it with `clear()` + re-add — a non-append mutation this vocabulary has no way
734
+ to describe. The instruction is a per-call prompt artifact, so it no longer enters the conversation
735
+ store at all; it exists only in the outgoing array, the same shape the structured-output transport
736
+ uses for a schema instruction. Nothing is added, so nothing has to be removed, and `mutation` still
737
+ needs no removal member.
738
+
739
+ The item also reported that the streaming path emitted no families at all. CORE-042 had already
740
+ fixed that by removing the second engine — `runStream` runs the same `execute()` — and this change
741
+ adds the test that says so rather than leaving it assumed.
742
+ - 9dcb5da: CORE-035: the identical-tool-input loop guard throws a named error, and the SPEC now matches it
743
+
744
+ The SPEC documented an `AbortError` thrown at the Nth identical call. The code threw a bare `Error`
745
+ at the N+1th. The type difference was behavioral, not cosmetic: `isAbortFailure` resolves an
746
+ `AbortError` as `success: true, interrupted: true`, so a run that detected a pathological loop and
747
+ produced no answer would have been reported as a SUCCESS.
748
+
749
+ Resolved toward the code's semantics and the SPEC's intent, which are not the same thing:
750
+
751
+ - **Failure, not abort.** A guard trip is the agent giving up, not the user cancelling. `AbortError`
752
+ means the caller asked the turn to stop, and here nobody did.
753
+ - **Named, not bare.** `SameToolInputLoopError` (`code: 'SAME_TOOL_INPUT_LOOP'`, `category: 'system'`,
754
+ `recoverable: true`) carries `toolName`, `callCount` and `maxSameToolInputs`. Naming a type is what
755
+ the SPEC was reaching for: a caller must be able to tell "the agent looped" from "the network died",
756
+ and CORE-027 carries those fields out intact.
757
+ - **`maxSameToolInputs` is a MAXIMUM.** The Nth identical call is allowed; the N+1th trips. The SPEC's
758
+ "N or more times" contradicted its own option name.
759
+
760
+ `ErrorUtils` moves to `utils/error-utils.ts`, split from the class taxonomy it operates on — two
761
+ responsibilities in one file, and keeping them together made the taxonomy file impossible to extend.
762
+ Both remain exported from the package entry.
763
+ - a95ca85: Apply `config.systemMessage` on the streaming path. `runStream()` built its provider request straight
764
+ from the conversation store and never entered the session initialization that attaches the system
765
+ prompt, so an agent obeyed its persona through `run()` and ignored it through `runStream()` — silently,
766
+ on the default interactive surface. An agent used through both entry points only acquired its prompt
767
+ from the first non-streaming turn onward.
768
+
769
+ The streaming path now enters the same `initializeConversationStore` the round path enters, so the
770
+ prompt, the inject-once rule and the conversation restore are owned in one place. Contained under
771
+ CORE-042, which is the duplication itself.
772
+ - 0382a51: CORE-041: `z.nativeEnum()` and `z.date()` convert; the rest of the boundary is published, not discovered
773
+
774
+ `zodToJsonSchema` threw `Unsupported Zod type: …` on five constructs, so a schema Zod accepts could
775
+ not be turned into a tool or a structured-output spec. Re-running the decision the item reserved,
776
+ those five are two different problems:
777
+
778
+ - **`ZodNativeEnum` and `ZodDate` are exactly expressible** and were missing for no reason.
779
+ A native enum becomes an `enum` of its VALUES — for a numeric TypeScript enum the compiler's
780
+ reverse mapping is filtered out, so a field accepting `0` is no longer advertised as accepting
781
+ `"Low"`. A date becomes `{ type: 'string', format: 'date-time' }`, which is not a lossy stand-in:
782
+ JSON has no date type, so a string is what the provider receives either way.
783
+ - **`ZodTuple`, `ZodIntersection` and `ZodLazy` are not expressible**, and still throw. A tuple needs
784
+ positional `items` (the subset models `items` as one schema), an intersection needs `allOf`,
785
+ recursion needs `$ref` — none of which the field-enumerated provider mappers would forward.
786
+ Adopting `zod-to-json-schema` does not dissolve this, as CORE-039 had conceded it might: the
787
+ library emits exactly those constructs. The difficulty was never parsing Zod; the target language
788
+ cannot say these things.
789
+
790
+ Mapping them lossily was rejected — a tuple flattened to `array of anyOf[...]` would tell the model
791
+ that any order and any length are acceptable, a contract the author did not write.
792
+
793
+ The error now names the construct, says why the subset cannot carry it, and names a Zod expression to
794
+ write instead. `Unsupported Zod type: ZodTuple` told a consumer the name of their own construct and
795
+ nothing they could act on.
796
+ - 93d061d: CORE-043: structured output now knows which transport can carry the schema before the first call
797
+
798
+ `run(input, { output })` asked every provider for `responseFormat: { type: 'json_schema' }`. A
799
+ provider whose surface cannot express that accepted the option and dropped it — and the schema was
800
+ stated in words only by the RETRY feedback turn, which runs on attempt two. So against such a
801
+ provider, attempt one carried nothing describing the required shape and could only succeed by luck:
802
+ the advertised three attempts were really two, and the first was spent discovering something the
803
+ capability table already knew.
804
+
805
+ A `(provider, model)` pair now resolves to a mechanism (`response_schema` / `json_object` / `none`)
806
+ and a provenance (`catalog` / `vendor-default` / `undeclared` / `unverified-endpoint`), and the
807
+ request is shaped to match at the one seam that holds both the resolved provider and the outgoing
808
+ messages. When the wire cannot carry the shape, the schema is stated in the prompt on the FIRST
809
+ attempt. Each structured request emits a `structured_output_transport` event reporting what the
810
+ request actually did.
811
+
812
+ - `IAIProvider.endpointIsVendorDefault?()` — a provider configured with a custom `baseURL` reports
813
+ it, so the runtime stops claiming enforcement a gateway may not provide. Separate from
814
+ `capabilityTable?()` on purpose: `@robota-sdk/agent-provider-openai` declares no table (nobody has
815
+ verified one) and must still be able to answer.
816
+ - DeepSeek's capability table declared `json_schema`; DeepSeek guarantees the response PARSES but
817
+ takes no schema parameter. Corrected to `json_object`.
818
+ - A provider that declares nothing is still sent the request unchanged — silence is not a denial.
819
+ - 39554a1: CORE-047: the model-configuration API is reachable before the first turn
820
+
821
+ `getModel()`, `setModel()` and `swapDefaultProvider()` refused on a freshly constructed agent with
822
+ `Agent must be fully initialized before ...`. So you had to ask the model a question before you could
823
+ ask which model you were using.
824
+
825
+ The state they guarded — the provider registry and the current `(provider, model)` pair — turned out
826
+ to be synchronous and derived entirely from config the constructor had already validated. It merely
827
+ lived inside the async initializer, next to work that genuinely is async (modules, plugins, the
828
+ execution service). Both steps now run in the constructor, so an agent knows which model it is
829
+ configured for from the moment it exists, and the readiness guard on those three methods protected
830
+ nothing and is gone.
831
+
832
+ A destroyed agent still refuses — and now says so accurately (`AIProviders was disposed`) instead of
833
+ misreporting teardown as missing initialization.
834
+
835
+ `ConversationAgent.ensureReady()` is unchanged and remains the way to complete the asynchronous half without
836
+ running a turn. It is no longer a precondition for reading or changing the model.
837
+ - d28430a: CORE-048: `resolveStructuredOutputCapability` is exported
838
+
839
+ `TStructuredOutputMechanism` and `TStructuredOutputProvenance` were already public while the function
840
+ that produces them was not — a caller could name the answer but not obtain it. Exporting it also lets
841
+ a consumer ask, before spending a call, what will happen to their schema against a given
842
+ `(provider, model)` pair.
843
+
844
+ No behaviour changed. This falls out of CORE-048, which asked whether a forced tool call should join
845
+ the mechanism vocabulary and answered no: the transport would need a provider that both lacks a
846
+ schema parameter and has enforceable strict tool arguments, and across this workspace that
847
+ intersection is empty.
848
+ - 7d9cc66: Add trusted host scheduling for model tool rounds, with dependencies, bounded independent work,
849
+ and shared-resource reader/writer exclusion. Unknown resources serialize conservatively. Failed
850
+ predecessors or invalid plans produce paired skipped receipts, while settled recovery receipts
851
+ and already running sibling outcomes remain intact.
852
+ - 7d9cc66: Retain typed text and image observations alongside structured tool data through runtime settlement, history, and recovery. Deliver tool images as native content in OpenAI Responses and Anthropic requests, retain structured error receipts, include media in bounded result admission, and reject malformed MCP image observations with reconciliation state intact.
853
+ - 7d9cc66: Preserve a result for each remaining call when a sequential tool batch stops after failure. Persist skipped calls without dispatch and reject recovery records that claim an executed action was skipped.
854
+ - 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.
855
+ - 07b627f: A local peer can now be answered, and what its turn may do depends on where it runs.
856
+
857
+ - `agent-core`: the permission evaluator takes a peer turn's authority as one more input
858
+ (`IPermissionEvaluationContext.peerTurn`), decided after the deny list and ceiling and before
859
+ bypass and allow rules. A peer on another host uses no tool. A peer on the same host may use an
860
+ inspect-class tool that declares `workspacePaths`, only when every named location resolves inside
861
+ the workspace and is not a credential (`isSecretPath`); write and execute tools are refused unless
862
+ enabled, and then every use asks. A tool declaring `repliesToPeer` exists only in a peer turn and
863
+ asks once the turn used another tool. New: `isToolAvailableInPeerTurn`, `TPeerReach`,
864
+ `IPeerTurnAuthority`. `IRunOptions.withholdHostedTools` leaves a provider's hosted tools out of a
865
+ run's requests (`nativeWebTools` with `false` withholds a hosted tool for one call).
866
+ - `agent-tools`: `Read` and `Glob` declare the arguments that say where they look. `Grep` does not:
867
+ it reads files it was never named, so a peer turn does not get it.
868
+ - `agent-session`: `ISessionRunOptions.peerReach` makes a run a peer turn for the permission policy;
869
+ every ask in it needs a fresh approval, and its requests carry no provider-hosted tool. `ISessionOptions.allowPeerChanges` enables write and execute
870
+ tools for same-host peer turns.
871
+ - `agent-interface-session`: `ISubmitOptions.peer` (`IPeerTurnContext`) carries a peer turn's reach,
872
+ the message it answers and the session a reply goes to.
873
+ - `agent-interface-session-mobility`: `IPeerMessage.inReplyTo` threads a conversation;
874
+ `peerReachOf(admission)` maps admission to a reach.
875
+ - `agent-framework`: a peer turn is offered what its origin allows, and a new `peer_reply` tool
876
+ answers the peer that sent the message, threaded to it. The setting `peers.allowChanges` enables
877
+ write and execute tools for same-host peer turns.
878
+ - `agent-ui-terminal`: a permission prompt in a peer turn names the requesting peer.
879
+ - `agent-cli`: incoming peer turns carry their reach and reply route; a conversation is limited in
880
+ depth and in how often this session answers it, and a reply over a limit is not sent and the
881
+ operator is told.
882
+ - `agent-provider-anthropic`, `agent-provider-openai-compatible` (Qwen): a request whose
883
+ `nativeWebTools` sets a hosted tool to `false` is sent without it.
884
+ - d0de5b2: A peer session's message now reaches the model as a peer's, and a peer turn runs on the external
885
+ baseline.
886
+
887
+ - `agent-core` marks every user message whose driver id starts with `peer:` as
888
+ `<peer_message from="…">…</peer_message>` in the outgoing request — both the round and the forced
889
+ summary — while the stored history keeps the text as sent. Wrapper-shaped text in user and tool
890
+ messages is escaped, and an id that is not a plain identifier is printed as `peer:unverified`.
891
+ New exports: `peerDriverOf`, `printablePeerDriver`.
892
+ - `agent-session`'s conversation transcript (compaction, advisor) labels a peer message with the same
893
+ printable id, so no rendering echoes a sender-chosen id that is not a plain identifier.
894
+ - `agent-framework` runs a `peer` turn like an `external` one — no tools (`toolChoice: 'none'`), no
895
+ `@path` expansion, no context references — and adds a per-turn system statement that the message
896
+ came from another session and carries no authority. A `peer` turn must carry a `peer:` driver id.
897
+ - 9c6a8db: Provider adapters now throw the specific typed failure a vendor response describes, instead of a
898
+ generic `ProviderError` carrying only its status. A 401/403 (or a vendor-specific authentication type)
899
+ becomes an `AuthenticationError`; a response naming an unavailable model — by code or, when the vendor
900
+ gives neither (Anthropic's and Gemini's real bodies carry no distinguishing code), by its message —
901
+ becomes a `ModelNotAvailableError`, whose `model` is now optional since a bare HTTP status does not
902
+ always name one; a transport failure becomes a `NetworkError`, which now also carries the provider
903
+ name. A 429's `retry-after` header (a delta or an HTTP-date) is read into `RateLimitError.retryAfter`
904
+ when the vendor sends one.
905
+
906
+ Vendor error text is scrubbed of anything that reads like a credential — an `Authorization`/`Bearer`
907
+ value, an API key in a header, query string or JSON body, a bare `sk-`/`AIza…` token — before it is
908
+ kept on any of these typed errors, so a misconfigured self-hosted gateway that echoes a request back
909
+ can no longer leak one into a message or a "Details" disclosure. The new `scrubSecrets` export applies
910
+ the same scrubbing to arbitrary text.
911
+ - dfb9b15: Release the integrated provider credential isolation and consumer runtime and interaction composition updates.
912
+ - 7d9cc66: Retain typed resource and audio observations alongside structured tool results through history, durable receipts, recovery, size admission, and session persistence. Preserve opaque resource references without fetching them, project embedded text and explicit unsupported binary/audio diagnostics into provider requests and compaction transcripts, and validate persisted observation shapes on reload.
913
+ - 7d9cc66: Retain registered tool source attribution in observations and preserve ordered outcome receipts independently of conversation summaries.
914
+ - d6b9404: Remove polynomial-ReDoS backtracking (SEC-003, CodeQL `js/polynomial-redos`) from three parsers whose input is not repo-controlled.
915
+
916
+ `parseStructuredResponseText` (agent-core) parses raw model output; its fenced-code-block regex used `\s*\n`, and because `\s` also matches a newline the two overlapped, so an unterminated fence containing many blank lines was rejected in O(n^2) — 12.7s for a 400 KB string, now ~1ms. The whitespace run is now restricted to horizontal whitespace, which makes the newline split point unique.
917
+
918
+ `/schedule cron` and `/monitor` (agent-command) are declared `modelInvocable: true`, so their argument string is composed by the model. Both matched the trailing instruction with `\s+(.+)$`; since `.` also matches a space the split point was ambiguous and a non-matching argument cost O(n^2) — ~15s for a 200 KB argument, now <1ms. The instruction is now required to start with a non-space character, which pins the split point without changing which inputs are accepted.
919
+
920
+ No behaviour change: the set of accepted inputs and the parsed values are identical in every case.
921
+ - 62663ae: Harden local file writes, permission denials, monitor access, and one-time external event admission.
922
+ - 23a30cd: Preserve paired tool history when the repeated-input guard rejects an ordinary run, recording every blocked batch member as undispatched while retaining the original failure.
923
+ - 7d9cc66: Observe scheduler queue intervals separately from pre-dispatch admission, permission and tool work.
924
+ Preserve valid duration totals when live trace detail is bounded, reporting invalid evidence explicitly
925
+ through content-free console and OTLP traces without altering dispatch, recovery or settlement.
926
+ - 9814afc: Type-SSOT convergence (TYPE-003; re-audit CONTRACT-002/003/011/012 + RUNTIME-47 + STRUCT-04). Behavior is unchanged — this is a type-level refactor. `ITokenUsage` (agent-core) is confirmed as the usage-triple SSOT: `ISessionUsageTotals` and `IBackgroundTaskUsage` become aliases, and every inline `{ promptTokens; completionTokens; totalTokens }` copy (service/orchestration/executor/remote-client shapes) now references the SSOT (structurally identical → patch). The subagent-job contracts derive from the background-task SSOT — `TSubagentJobStatus = Exclude<TBackgroundTaskStatus, 'paused'>`, mode alias, and a `Pick`-projection `ISubagentJobState` — with a compile-enforced parity test so a drifting hand copy can no longer exist. `@robota-sdk/agent-session` is minor because the public `ISessionRecord` type is now the typed `IInteractiveSessionRecord` alias (previously a relaxed `unknown[]` mirror): runtime behavior of `SessionStore` is identical, but downstream code that assigned loose payloads to the record's fields may need explicit casts at its own trust boundary (the framework store facade's `as unknown as` cast bridge is deleted). agent-session's duplicate `@robota-sdk/agent-core` deps/devDeps declaration is also removed (STRUCT-04).
927
+ - 7d9cc66: Retain registered attribution on refused and interrupted call receipts without replacing the source of actual or recovered settlements, and project undispatched registered calls into live and restored presentation history.
928
+ - 02053ec: Leave unregistered DeepSeek model costs unknown instead of applying unrelated legacy model prices.
929
+
930
+ ## 3.0.0-beta.106
931
+
932
+ ## 3.0.0-beta.105
933
+
934
+ ## 3.0.0-beta.104
935
+
936
+ ## 3.0.0-beta.103
937
+ ### Patch Changes
938
+
939
+ - 6f41c53: Update Zod, OpenAI, and Undici to patched releases so installed Robota artifacts do not carry the
940
+ known production dependency vulnerabilities. The Zod schema bridge now preserves the supported
941
+ object, record, enum, literal, wrapper, and transform contracts on Zod 4, and the OpenAI-compatible
942
+ response parser safely ignores non-function tool-call variants introduced by the current SDK.
943
+
944
+ ## 3.0.0-beta.102
945
+
946
+ ## 3.0.0-beta.101
947
+ ### Patch Changes
948
+
949
+ - 62663ae: Harden local file writes, permission denials, monitor access, and one-time external event admission.
950
+
951
+ ## 3.0.0-beta.100
952
+
3
953
  ## 3.0.0-beta.99
4
954
 
5
955
  ## 3.0.0-beta.98