pi-fabric 0.92.21 → 0.92.23

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 (39) hide show
  1. package/dist/agents/handoff-continuation.d.ts +4 -0
  2. package/dist/agents/handoff-continuation.d.ts.map +1 -0
  3. package/dist/chunks/{chunk-U3FNEK2H.js → chunk-2462VF6I.js} +5 -3
  4. package/dist/chunks/chunk-2462VF6I.js.map +7 -0
  5. package/dist/chunks/{chunk-KI4VAMHK.js → chunk-5Y2TKOQV.js} +2 -2
  6. package/dist/chunks/{chunk-MAP2LVSM.js → chunk-AFALENHK.js} +50 -19
  7. package/dist/chunks/chunk-AFALENHK.js.map +7 -0
  8. package/dist/chunks/{chunk-QLJ5P7HV.js → chunk-JJZFNBB7.js} +2 -2
  9. package/dist/chunks/{chunk-IWH6PCMK.js → chunk-R7G4HXVD.js} +2 -2
  10. package/dist/chunks/{chunk-ZZ4LHQYJ.js → chunk-RTXZHKMS.js} +22 -13
  11. package/dist/chunks/chunk-RTXZHKMS.js.map +7 -0
  12. package/dist/chunks/{chunk-YSXGVO2N.js → chunk-VIBQBYJ6.js} +18 -16
  13. package/dist/chunks/chunk-VIBQBYJ6.js.map +7 -0
  14. package/dist/chunks/{chunk-EFHCXJTV.js → chunk-ZHOMIIUF.js} +2 -2
  15. package/dist/compaction/hook.js +2 -2
  16. package/dist/fabric-runtime-state.js +5 -5
  17. package/dist/index.js +6 -6
  18. package/dist/prewalk/handoff.d.ts.map +1 -1
  19. package/dist/residency/host.js +5 -5
  20. package/dist/residency/pi-entry.js +5 -5
  21. package/dist/ui/conversation.js +1 -1
  22. package/dist/ui/dashboard.js +3 -3
  23. package/dist/ui/fabric-code-parser.d.ts.map +1 -1
  24. package/dist/ui/highlight.d.ts.map +1 -1
  25. package/dist/ui/shiki-catalog.d.ts +3 -0
  26. package/dist/ui/shiki-catalog.d.ts.map +1 -0
  27. package/dist/ui/structured.d.ts.map +1 -1
  28. package/docs/agents.md +4 -0
  29. package/package.json +3 -2
  30. package/skillsets/python/fabric-exec/references/agents.md +2 -0
  31. package/skillsets/typescript/fabric-exec/references/agents.md +2 -0
  32. package/dist/chunks/chunk-MAP2LVSM.js.map +0 -7
  33. package/dist/chunks/chunk-U3FNEK2H.js.map +0 -7
  34. package/dist/chunks/chunk-YSXGVO2N.js.map +0 -7
  35. package/dist/chunks/chunk-ZZ4LHQYJ.js.map +0 -7
  36. /package/dist/chunks/{chunk-KI4VAMHK.js.map → chunk-5Y2TKOQV.js.map} +0 -0
  37. /package/dist/chunks/{chunk-QLJ5P7HV.js.map → chunk-JJZFNBB7.js.map} +0 -0
  38. /package/dist/chunks/{chunk-IWH6PCMK.js.map → chunk-R7G4HXVD.js.map} +0 -0
  39. /package/dist/chunks/{chunk-EFHCXJTV.js.map → chunk-ZHOMIIUF.js.map} +0 -0
@@ -9,7 +9,7 @@ import {
9
9
  agentParticipantRecords,
10
10
  loadModelUsage,
11
11
  useBudgetLedger
12
- } from "./chunk-KI4VAMHK.js";
12
+ } from "./chunk-5Y2TKOQV.js";
13
13
  import {
14
14
  RESIDENT_HOST_FORMAT,
15
15
  residentDeliveryPrefix,
@@ -689,4 +689,4 @@ if (isMain) {
689
689
  export {
690
690
  runResidentHostFromConfigPath
691
691
  };
692
- //# sourceMappingURL=chunk-EFHCXJTV.js.map
692
+ //# sourceMappingURL=chunk-ZHOMIIUF.js.map
@@ -4,8 +4,8 @@ import {
4
4
  fabricCompactionVersion,
5
5
  rawContextTokens,
6
6
  registerCompactionHook
7
- } from "../chunks/chunk-QLJ5P7HV.js";
8
- import "../chunks/chunk-U3FNEK2H.js";
7
+ } from "../chunks/chunk-JJZFNBB7.js";
8
+ import "../chunks/chunk-2462VF6I.js";
9
9
  import "../chunks/chunk-ZDNGXLEC.js";
10
10
  import "../chunks/chunk-3H7SDWZI.js";
11
11
  import "../chunks/chunk-D5WKZONW.js";
@@ -26,7 +26,7 @@ import {
26
26
  expandSkillDirMarkersForRead,
27
27
  resolveFabricIdentity,
28
28
  runFabricHandoffAtBoundary
29
- } from "./chunks/chunk-MAP2LVSM.js";
29
+ } from "./chunks/chunk-AFALENHK.js";
30
30
  import {
31
31
  AgentTranscriptReader,
32
32
  MAX_WRITE_DIFF_BYTES,
@@ -111,7 +111,7 @@ import {
111
111
  resolveInheritedSessionPins,
112
112
  resolvePiBinary,
113
113
  withInheritedSessionPins
114
- } from "./chunks/chunk-KI4VAMHK.js";
114
+ } from "./chunks/chunk-5Y2TKOQV.js";
115
115
  import {
116
116
  executeFile,
117
117
  processIsAlive,
@@ -127,7 +127,7 @@ import {
127
127
  } from "./chunks/chunk-TSRKCXNI.js";
128
128
  import {
129
129
  checkedHandoffCompaction
130
- } from "./chunks/chunk-IWH6PCMK.js";
130
+ } from "./chunks/chunk-R7G4HXVD.js";
131
131
  import {
132
132
  resolveAgentDir
133
133
  } from "./chunks/chunk-PXAICAUT.js";
@@ -152,8 +152,8 @@ import {
152
152
  import "./chunks/chunk-OKOHRXGF.js";
153
153
  import {
154
154
  fabricExecTitleHintCached
155
- } from "./chunks/chunk-QLJ5P7HV.js";
156
- import "./chunks/chunk-U3FNEK2H.js";
155
+ } from "./chunks/chunk-JJZFNBB7.js";
156
+ import "./chunks/chunk-2462VF6I.js";
157
157
  import {
158
158
  writeJsonAtomic,
159
159
  writeJsonAtomicAsync
package/dist/index.js CHANGED
@@ -29,12 +29,12 @@ import {
29
29
  singleCallProgressLine,
30
30
  spinnerFrame,
31
31
  updateSpinner
32
- } from "./chunks/chunk-YSXGVO2N.js";
32
+ } from "./chunks/chunk-VIBQBYJ6.js";
33
33
  import {
34
34
  configureHighlighting,
35
35
  highlightCode,
36
36
  observePiTheme
37
- } from "./chunks/chunk-ZZ4LHQYJ.js";
37
+ } from "./chunks/chunk-RTXZHKMS.js";
38
38
  import {
39
39
  activeStatuses,
40
40
  isActiveStatus,
@@ -69,7 +69,7 @@ import {
69
69
  restoreBorrowedInPlaceMain,
70
70
  settleInPlacePrewalk,
71
71
  withTrajectoryRearmDirective
72
- } from "./chunks/chunk-MAP2LVSM.js";
72
+ } from "./chunks/chunk-AFALENHK.js";
73
73
  import {
74
74
  AgentTranscriptReader,
75
75
  countNewlines,
@@ -199,7 +199,7 @@ import {
199
199
  import {
200
200
  awaitPeerSettle,
201
201
  buildPeerCards
202
- } from "./chunks/chunk-IWH6PCMK.js";
202
+ } from "./chunks/chunk-R7G4HXVD.js";
203
203
  import {
204
204
  resolveAgentDir
205
205
  } from "./chunks/chunk-PXAICAUT.js";
@@ -219,10 +219,10 @@ import {
219
219
  fabricExecTitleHintCached,
220
220
  normalizeRunDisplay,
221
221
  registerCompactionHook
222
- } from "./chunks/chunk-QLJ5P7HV.js";
222
+ } from "./chunks/chunk-JJZFNBB7.js";
223
223
  import {
224
224
  fabricWriteBindings
225
- } from "./chunks/chunk-U3FNEK2H.js";
225
+ } from "./chunks/chunk-2462VF6I.js";
226
226
  import "./chunks/chunk-KAD7UWT2.js";
227
227
  import "./chunks/chunk-ZDNGXLEC.js";
228
228
  import {
@@ -1 +1 @@
1
- {"version":3,"file":"handoff.d.ts","sourceRoot":"","sources":["../../src/prewalk/handoff.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EACjB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAEL,KAAK,eAAe,EACrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EACV,8BAA8B,EAC9B,uBAAuB,EACxB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,KAAK,EACV,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,oBAAoB,CAAC;AAO5B,OAAO,KAAK,EAAsB,iBAAi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GACrC,YAAY,iBAAiB,EAC7B,WAAW,YAAY,EACvB,SAAS,gBAAgB,KACxB,OAAO,CAAC,OAAO,CAsCjB,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,YAAY,iBAAiB,EAC7B,WAAW,YAAY,EACvB,SAAS,gBAAgB,EACzB,UAAU,2BAA2B,KACpC,OAAO,CAAC,OAAO,CA8DjB,CAAC;AAGF,eAAO,MAAM,0BAA0B,GACrC,YAAY,iBAAiB,EAC7B,QAAQ,qBAAqB,EAC7B,WAAW,YAAY,EACvB,SAAS,oBAAoB,EAC7B,iBAAiB,sBAAsB,EACvC,SAAS,gBAAgB,EACzB,WAAW,CAAC,MAAM,EAAE,8BAA8B,KAAK,IAAI,KAC1D,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAiIjC,CAAC"}
@@ -1,19 +1,19 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runResidentHostFromConfigPath
4
- } from "../chunks/chunk-EFHCXJTV.js";
5
- import "../chunks/chunk-KI4VAMHK.js";
4
+ } from "../chunks/chunk-ZHOMIIUF.js";
5
+ import "../chunks/chunk-5Y2TKOQV.js";
6
6
  import "../chunks/chunk-X7G62ZGH.js";
7
7
  import "../chunks/chunk-VPPIJRNZ.js";
8
8
  import "../chunks/chunk-PM5I335G.js";
9
9
  import "../chunks/chunk-TSRKCXNI.js";
10
- import "../chunks/chunk-IWH6PCMK.js";
10
+ import "../chunks/chunk-R7G4HXVD.js";
11
11
  import "../chunks/chunk-PXAICAUT.js";
12
12
  import "../chunks/chunk-CGPK5WHX.js";
13
13
  import "../chunks/chunk-YQFAHWGE.js";
14
14
  import "../chunks/chunk-OKOHRXGF.js";
15
- import "../chunks/chunk-QLJ5P7HV.js";
16
- import "../chunks/chunk-U3FNEK2H.js";
15
+ import "../chunks/chunk-JJZFNBB7.js";
16
+ import "../chunks/chunk-2462VF6I.js";
17
17
  import "../chunks/chunk-KAD7UWT2.js";
18
18
  import "../chunks/chunk-ZDNGXLEC.js";
19
19
  import "../chunks/chunk-AYBIR4YV.js";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  runResidentHostFromConfigPath
3
- } from "../chunks/chunk-EFHCXJTV.js";
4
- import "../chunks/chunk-KI4VAMHK.js";
3
+ } from "../chunks/chunk-ZHOMIIUF.js";
4
+ import "../chunks/chunk-5Y2TKOQV.js";
5
5
  import "../chunks/chunk-X7G62ZGH.js";
6
6
  import "../chunks/chunk-VPPIJRNZ.js";
7
7
  import "../chunks/chunk-PM5I335G.js";
8
8
  import "../chunks/chunk-TSRKCXNI.js";
9
- import "../chunks/chunk-IWH6PCMK.js";
9
+ import "../chunks/chunk-R7G4HXVD.js";
10
10
  import "../chunks/chunk-PXAICAUT.js";
11
11
  import "../chunks/chunk-CGPK5WHX.js";
12
12
  import "../chunks/chunk-YQFAHWGE.js";
13
13
  import "../chunks/chunk-OKOHRXGF.js";
14
- import "../chunks/chunk-QLJ5P7HV.js";
15
- import "../chunks/chunk-U3FNEK2H.js";
14
+ import "../chunks/chunk-JJZFNBB7.js";
15
+ import "../chunks/chunk-2462VF6I.js";
16
16
  import "../chunks/chunk-KAD7UWT2.js";
17
17
  import "../chunks/chunk-ZDNGXLEC.js";
18
18
  import "../chunks/chunk-AYBIR4YV.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "../chunks/chunk-5SU3YXBS.js";
10
10
  import {
11
11
  highlightCode
12
- } from "../chunks/chunk-ZZ4LHQYJ.js";
12
+ } from "../chunks/chunk-RTXZHKMS.js";
13
13
  import {
14
14
  isActiveStatus
15
15
  } from "../chunks/chunk-AAHHYDTO.js";
@@ -11,12 +11,12 @@ import {
11
11
  renderBoundedLines,
12
12
  renderCoreToolBody,
13
13
  spinnerFrame
14
- } from "../chunks/chunk-YSXGVO2N.js";
14
+ } from "../chunks/chunk-VIBQBYJ6.js";
15
15
  import {
16
16
  highlightCode,
17
17
  highlightFileLines,
18
18
  languageFromPath
19
- } from "../chunks/chunk-ZZ4LHQYJ.js";
19
+ } from "../chunks/chunk-RTXZHKMS.js";
20
20
  import {
21
21
  isActiveStatus,
22
22
  orderAgentsByCreation
@@ -37,7 +37,7 @@ import {
37
37
  } from "../chunks/chunk-LMAVZN7J.js";
38
38
  import "../chunks/chunk-CGPK5WHX.js";
39
39
  import "../chunks/chunk-OKOHRXGF.js";
40
- import "../chunks/chunk-U3FNEK2H.js";
40
+ import "../chunks/chunk-2462VF6I.js";
41
41
  import {
42
42
  FABRIC_ACTOR_HOST_EVENTS
43
43
  } from "../chunks/chunk-OTCASLY2.js";
@@ -1 +1 @@
1
- {"version":3,"file":"fabric-code-parser.d.ts","sourceRoot":"","sources":["../../src/ui/fabric-code-parser.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB;AA+ID,eAAO,MAAM,oBAAoB,GAAI,MAAM,MAAM,KAAG,MAAM,EAC4B,CAAC;AAiDvF,eAAO,MAAM,mBAAmB,GAAI,MAAM,MAAM,KAAG,kBAAkB,EAUpE,CAAC;AA0KF,eAAO,MAAM,mBAAmB,GAAI,MAAM,MAAM,EAAE,SAAQ,YAA2B,KAAG,MAAM,GAAG,SAoFhG,CAAC"}
1
+ {"version":3,"file":"fabric-code-parser.d.ts","sourceRoot":"","sources":["../../src/ui/fabric-code-parser.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAKzD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB;AA+ID,eAAO,MAAM,oBAAoB,GAAI,MAAM,MAAM,KAAG,MAAM,EAC4B,CAAC;AAiDvF,eAAO,MAAM,mBAAmB,GAAI,MAAM,MAAM,KAAG,kBAAkB,EAUpE,CAAC;AA0K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wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EAAE,EACrB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,EACV,UAAU,CAAC,EAAE,MAAM,IAAI,GACtB,iBAAiB,EAAE,GAAG,IAAI,CAqC5B"}
@@ -0,0 +1,3 @@
1
+ export declare const shikiLanguages: () => typeof import("shiki/langs")["bundledLanguages"];
2
+ export declare const shikiThemeType: (id: string) => "light" | "dark" | undefined;
3
+ //# sourceMappingURL=shiki-catalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shiki-catalog.d.ts","sourceRoot":"","sources":["../../src/ui/shiki-catalog.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,cAAc,QAAO,cAAc,aAAa,CAAC,CAAC,kBAAkB,CACQ,CAAC;AAE1F,eAAO,MAAM,cAAc,GAAI,IAAI,MAAM,KAAG,OAAO,GAAG,MAAM,GAAG,SAG9D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"structured.d.ts","sourceRoot":"","sources":["../../src/ui/structured.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAYvD,eAAO,MAAM,gBAAgB,GAAI,OAAO,OAAO,KAAG,MAAM,GAAG,SAI1D,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAuGD,eAAO,MAAM,iBAAiB,GAC5B,OAAO,OAAO,EACd,QAAQ,kBAAkB,EAC1B,WAAW,MAAM,KAChB,oBA+BF,CAAC"}
1
+ {"version":3,"file":"structured.d.ts","sourceRoot":"","sources":["../../src/ui/structured.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAevD,eAAO,MAAM,gBAAgB,GAAI,OAAO,OAAO,KAAG,MAAM,GAAG,SAI1D,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAuGD,eAAO,MAAM,iBAAiB,GAC5B,OAAO,OAAO,EACd,QAAQ,kBAAkB,EAC1B,WAAW,MAAM,KAChB,oBA+BF,CAAC"}
package/docs/agents.md CHANGED
@@ -157,6 +157,10 @@ In the guest, `agents.handoff()` resolves to `{ scheduled: true, status: "deferr
157
157
 
158
158
  After an explicit handoff settles, Fabric queues one visible `pi-fabric-handoff-complete` custom message as a follow-up and wakes Main. The TUI shows the executor name, model, status, and a bounded conclusion. Main summarizes the outcome and reported checks, preserving links and other concrete identifiers without redoing the delegated work. Failed, stopped, and timed-out handoffs (including launch errors) instead prompt Main to explain what happened and propose a next step without retrying or taking over unprompted. Internal continuation instructions are included in model context but omitted by the message renderer. Prewalk keeps its existing verification continuation.
159
159
 
160
+ **Executor-local failure continuation.** If a running trajectory executor encounters a failed nested handoff (including a launch or depth-limit error), Fabric queues one hidden `pi-fabric-handoff-continuation` follow-up in that same executor. It tells the executor what failed and to finish its original assignment directly in the existing workspace, preserving completed work and running verification instead of returning only a handoff-failed report. It must not retry the handoff, spawn a replacement executor, or raise limits. Fabric cancels any local Prewalk arm so the next write cannot delegate again. The failed boundary remains failed; this is not a retry or a claim that the work succeeded.
161
+
162
+ This fallback is available once per executor run, with a persisted receipt that survives reload and worker recovery. Main, ordinary children, and actors keep their existing completion policy. Explicit stops, cancelled callers, timeouts, and token-limit termination do not trigger the fallback; the executor's original deadline, permissions, and token accounting remain in force. A genuinely blocked executor reports its blocker honestly. Fabric does not classify free-form final answers as failures or relaunch an agent merely because its answer contains failure text.
163
+
160
164
  **Trajectory compaction.** Set `compact` to give the executor a compacted transcript in place of the full raw branch. A value of `true` applies the default summary. Use `{ instructions?, preserve? }` to add compaction instructions of up to 8K characters and as many as 16 explicit preserve facts of up to 2K characters each. These limits match `compact.request`. Fabric writes the child session with a deterministic Fabric compaction entry before the boundary result. The executor context starts with the projected summary. It then contains the retained tail from the calculated cut point and the outer `fabric_exec` result. The append-only child file keeps the complete raw branch below the compaction marker. Fabric records the outcome under `compaction` in the child's `pi-fabric-handoff` custom entry. The outcome contains `applied`, sections, tokens, and cut point. If Fabric skips compaction, it gives the skip reason. Omit `compact` to keep the fork verbatim.
161
165
 
162
166
  ### Automatic Fabric-boundary prewalk
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-fabric",
3
- "version": "0.92.21",
3
+ "version": "0.92.23",
4
4
  "description": "A programmable tool and agent runtime for Pi",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -46,7 +46,7 @@
46
46
  "test:jev:dist": "node scripts/smoke-jev.mjs",
47
47
  "test:changed": "node scripts/test-affected.mjs",
48
48
  "test:affected": "node scripts/test-affected.mjs --base $PI_TEST_BASE",
49
- "test:smoke": "vitest run tests/script-runtime.test.ts tests/pi-binary.test.ts tests/host-compatibility.test.ts tests/output-budget.test.ts tests/actor-mesh-monitor.test.ts tests/handoff.test.ts tests/config-migrations.test.ts tests/monty-payload-preflight.test.ts tests/bundled-binary-spawn.test.ts tests/conversation-native-reader-suspension.test.ts",
49
+ "test:smoke": "vitest run tests/optional-preview-startup.test.ts tests/script-runtime.test.ts tests/pi-binary.test.ts tests/host-compatibility.test.ts tests/output-budget.test.ts tests/actor-mesh-monitor.test.ts tests/handoff.test.ts tests/config-migrations.test.ts tests/monty-payload-preflight.test.ts tests/bundled-binary-spawn.test.ts tests/conversation-native-reader-suspension.test.ts",
50
50
  "test:related": "vitest related --run",
51
51
  "check:fast": "bun run typecheck && bun run test:changed",
52
52
  "certify:context": "bun run build && node scripts/certify-context.mjs",
@@ -57,6 +57,7 @@
57
57
  "benchmark:conversation": "bun run build && node --expose-gc scripts/benchmark-conversation.mjs",
58
58
  "benchmark:activity": "node --expose-gc scripts/benchmark-activity.mjs",
59
59
  "benchmark:turn-cpu": "node scripts/benchmark-turn-cpu.mjs",
60
+ "benchmark:startup": "node scripts/benchmark-startup.mjs",
60
61
  "lint:dead": "knip --no-gitignore",
61
62
  "assert:lazy-graph": "node scripts/assert-lazy-graph-host-free.mjs",
62
63
  "assert:build-artifacts": "node scripts/assert-build-artifacts.mjs",
@@ -63,3 +63,5 @@ return await agents.create(name="auth-supervisor", instructions="Watch until the
63
63
  Use `await agents.run(task="...", runner="pi", recursive=True)` only for oversized context; plain children handle bounded leaves. Host maxDepth (0 disables spawning), approvals, concurrency, and budget limits remain active. Recursion delegates agent risk only, not filesystem/network/execute permissions. Keep durable context in mesh keys or project-relative files plus digests, not whole-corpus child prompts.
64
64
 
65
65
  `agents.handoff` without a predicate schedules an explicit Pi-to-Pi trajectory handoff at the completed outer fabric_exec boundary; later calls in the program still run. It is not a subroutine result. Use host schemas and a canonical target model; no Python guest predicate callbacks. Preserve successful effects rather than retrying the original program blindly.
66
+
67
+ A running trajectory executor may receive one hidden `pi-fabric-handoff-continuation` after a failed nested handoff. Finish the original assignment directly in the same workspace, preserve completed work, and verify the remainder instead of returning only a failure report. Do not retry delegation, spawn a replacement, or raise limits. Fabric cancels the local Prewalk arm and preserves the failed boundary, original deadline, permissions, and token accounting. Explicit stops, cancellation, timeouts, and token-limit termination stay terminal. Main continues to report terminal failures and propose a next step; it does not take over unprompted.
@@ -103,6 +103,8 @@ The guest result is `{ scheduled: true, status: "deferred", boundary: "fabric_ex
103
103
 
104
104
  After the executor settles, a visible `pi-fabric-handoff-complete` follow-up reports its identity, status, and bounded conclusion, then wakes Main. Summarize the outcome and reported checks, preserving concrete identifiers; do not redo completed work. If the handoff failed, stopped, or timed out, explain the outcome and propose the next step without retrying or taking over unprompted. This is a queued follow-up, not steering.
105
105
 
106
+ Exception for an already-running trajectory executor: a failed nested handoff can queue one hidden `pi-fabric-handoff-continuation` per executor run. On that message, finish your original assignment directly in the same workspace, preserve completed work, and verify the remainder rather than returning only the failed-handoff report. Do not retry delegation, spawn a replacement, or raise limits. Fabric cancels the local Prewalk arm, keeps the boundary marked failed, and preserves the run's deadline and token accounting. Explicit stops, cancellation, timeouts, and token-limit termination never trigger this fallback. If genuinely blocked, report the blocker honestly. Main still reports terminal failures instead of taking over unprompted.
107
+
106
108
  ## Automatic prewalk
107
109
 
108
110
  `/fabric prewalk [task]` arms one automatic continuation when a Fabric invocation contains a successful `pi.edit`, `pi.write`, or `schema.commit`. With a task it submits immediately; without one it captures the next user input. The executor comes from `prewalk.model` or an interactive choice, and its reasoning effort from `prewalk.thinking` (inheriting `agents.thinking` when unset). `prewalk.alwaysRearm` keeps the controller armed until `/fabric prewalk --off`. That command cancels only the session arm; `/fabric prewalk --disable` persists the master switch and survives restarts, while `--enable` restores it.