@parcha/agentrun-kernel 0.1.0-beta.64 → 0.1.0-beta.65

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
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## 0.1.0-beta.65 (2026-11-27)
6
+
7
+ - A pi session opened again in a turn now reads the turn back from its conversation before a call the model made runs, not after: a pi-native tool (bash, web_fetch, a subagent) whose read fails is blocked before it does anything, where before it ran and its result was replaced by an error, inviting the model to run it again. <!-- changes/turn-budget-read-before-call.md -->
8
+ - A session that read its own answer never reads the turn back, so a store that cannot read blocks none of its calls.
9
+ - A call pi reruns after a crash (its intent stored, so the read happens after it) keeps what it did when the read fails, held to the window's bound alone, instead of an error.
10
+ - The words a call gets when its turn could not be read are plain: the store's own error is no longer in the model's transcript. A host tool's call pi runs again after a crash, whose read fails before it runs, says an earlier attempt of it may already have taken effect, never that nothing was done.
11
+ - A tool that nests calls (a code-mode script) whose result's length the session's journal could not keep halts its drive, as an effect's failure does, so the harness is never handed that result.
12
+
5
13
  ## 0.1.0-beta.64 (2026-11-26)
6
14
 
7
15
  - On a Linux desktop, the check of whether computerd's own user could change an app's desktop file asks the kernel too (`faccessat2` as the effective user, no link followed) for each folder on the way and for the file, beside the mode bits, so an ACL entry or a FUSE file system's own rule that lets the user write is seen. `apps.launch` names a refused desktop file from that one check, by the id asked for, and no longer opens every desktop file again to find it: that open followed links and waited forever on a named pipe called `*.desktop`. A refused file is never read, so the name or program it gives finds no app: asked by that name, `apps.launch` answers `not_found`, and by its id, `denied`. `apps.terminate` ends an app this computerd launched though its desktop file is refused now, as when a file of its id was written ahead of it since; before, it answered `denied` and the app ran on to the computer's end. The computer wire spec says that `apps.launch` answers `denied` for such an app and that `apps.list` leaves it out. A correction to the previous release's note on desktop files: refusing an app whose desktop file computerd's own user could change closes the desktop-file route only, not `write` plus apps as a whole. An app reads its config from the user's home, which `write` reaches, so an agent given both can still reach a shell through an app it opens, and the remedy stays granting no apps on such a desktop. The words every offer of a computer's ops carries (`GUI_REACH`), the serve README and the desktop kind skill say that where `write` is granted, `apps.open` reaches what a shell does with or without a URL or a path, since an app reads its config from the user's home. <!-- changes/apps-launch-refusal-kernel-check.md -->
@@ -179,6 +179,17 @@ export function toolBridge(ctx, tools, options = {}) {
179
179
  }
180
180
  if (live)
181
181
  ctx.live({ type: 'tool_start', name: tool.name, args, callId });
182
+ // Its result as the harness gets it (deliver): one that cannot be handed (its length not kept) halts the drive, as an
183
+ // effect's failure does, so the harness is never handed it.
184
+ const handed = async (whole, error) => {
185
+ try {
186
+ return await deliver(callId, whole, nested, error);
187
+ }
188
+ catch (err) {
189
+ ctx.halt?.(err);
190
+ throw err;
191
+ }
192
+ };
182
193
  let output;
183
194
  try {
184
195
  output = await tool.execute(args, { signal: aborted, progress: () => { }, ctx, stepId: `${toolKey(callId)}#0`, nested: nestedIn(callId, aborted) });
@@ -188,13 +199,13 @@ export function toolBridge(ctx, tools, options = {}) {
188
199
  ctx.halt?.(err);
189
200
  throw err;
190
201
  }
191
- const { text, truncated } = await deliver(callId, err instanceof Error ? err.message : String(err), nested, true);
202
+ const { text, truncated } = await handed(err instanceof Error ? err.message : String(err), true);
192
203
  if (live)
193
204
  ctx.live({ type: 'tool_end', name: tool.name, callId, isError: true, result: text, ...(truncated ? { truncated } : {}) });
194
205
  return { text, isError: true, ...(truncated ? { truncated } : {}) };
195
206
  }
196
207
  const { text: whole, images, structured } = typeof output === 'object' && output !== null ? output : { text: String(output), images: undefined, structured: undefined };
197
- const { text, truncated } = await deliver(callId, String(whole), nested);
208
+ const { text, truncated } = await handed(String(whole));
198
209
  if (live)
199
210
  ctx.live({ type: 'tool_end', name: tool.name, callId, result: text, ...(truncated ? { truncated } : {}) });
200
211
  return { text, isError: false, ...(images?.length ? { images } : {}), ...(structured !== undefined ? { structured } : {}), ...(truncated ? { truncated } : {}) };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcha/agentrun-kernel",
3
- "version": "0.1.0-beta.64",
3
+ "version": "0.1.0-beta.65",
4
4
  "description": "Agent harnesses other than Pi, starting with Codex, behind one seam: a DSL node's runNode and an AgentRun run on a harness adapter, durable in AgentRun's own store.",
5
5
  "keywords": [
6
6
  "agentrun",
@@ -62,7 +62,7 @@
62
62
  "test": "node --test --test-concurrency=8 'test/*.test.mjs'"
63
63
  },
64
64
  "dependencies": {
65
- "@parcha/agentrun-dsl": "0.1.0-beta.64",
65
+ "@parcha/agentrun-dsl": "0.1.0-beta.65",
66
66
  "ajv": "8.18.0",
67
67
  "typebox": "1.3.27"
68
68
  },