@llblab/pi-actors 0.58.0 → 0.58.2

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 (76) hide show
  1. package/AGENTS.md +5 -5
  2. package/BACKLOG.md +1 -1
  3. package/CHANGELOG.md +12 -1
  4. package/README.md +37 -35
  5. package/dist/lib/draft-sleep.js +3 -3
  6. package/dist/lib/extension-runtime.js +7 -2
  7. package/dist/lib/pi.js +1 -1
  8. package/dist/lib/prompts.d.ts +3 -3
  9. package/dist/lib/prompts.js +10 -9
  10. package/dist/lib/recipes-references.js +7 -7
  11. package/dist/lib/registry.js +27 -24
  12. package/dist/lib/review-control.js +1 -1
  13. package/dist/lib/run-delivery.d.ts +1 -1
  14. package/dist/lib/run-delivery.js +19 -9
  15. package/dist/lib/run-evidence-policy.js +2 -2
  16. package/dist/lib/runtime.d.ts +3 -0
  17. package/dist/lib/runtime.js +24 -10
  18. package/dist/lib/tool-review-scheduler.js +7 -7
  19. package/dist/lib/tools-access.js +1 -1
  20. package/dist/lib/tools-inspect.js +10 -10
  21. package/dist/lib/tools-message.d.ts +1 -1
  22. package/dist/lib/tools-message.js +10 -10
  23. package/dist/lib/tools-register.d.ts +3 -3
  24. package/dist/lib/tools-register.js +4 -4
  25. package/dist/lib/tools-response.d.ts +1 -1
  26. package/dist/lib/tools-response.js +27 -28
  27. package/dist/lib/tools-spawn.js +1 -1
  28. package/dist/lib/tools.d.ts +7 -0
  29. package/dist/lib/tools.js +25 -0
  30. package/dist/skills/actors/SKILL.md +29 -21
  31. package/dist/skills/actors/references/diagnostics.md +11 -11
  32. package/dist/skills/actors/references/persistent-tools.md +19 -15
  33. package/dist/skills/actors/references/recipes.md +1 -1
  34. package/dist/skills/actors/references/runs.md +8 -8
  35. package/dist/skills/music-player/SKILL.md +4 -4
  36. package/dist/skills/music-player/scripts/playback.mjs +1 -1
  37. package/dist/skills/recipe-memory/SKILL.md +7 -7
  38. package/docs/README.md +2 -2
  39. package/docs/actor-inspector.md +1 -1
  40. package/docs/agent-experience.md +5 -6
  41. package/docs/async-runs.md +13 -13
  42. package/docs/capability-memory.md +11 -56
  43. package/docs/coordinator-delivery.md +2 -2
  44. package/docs/inspection.md +21 -21
  45. package/docs/output-projection-map.md +1 -1
  46. package/docs/releasing.md +1 -1
  47. package/docs/run-supervision.md +21 -21
  48. package/docs/tool-registry.md +46 -21
  49. package/docs/windows-process-observation.md +1 -1
  50. package/lib/draft-sleep.ts +3 -3
  51. package/lib/extension-runtime.ts +7 -5
  52. package/lib/pi.ts +1 -1
  53. package/lib/prompts.ts +10 -9
  54. package/lib/recipes-references.ts +7 -7
  55. package/lib/registry.ts +26 -24
  56. package/lib/review-control.ts +1 -1
  57. package/lib/run-delivery.ts +22 -11
  58. package/lib/run-evidence-policy.ts +2 -2
  59. package/lib/runtime.ts +26 -11
  60. package/lib/tool-review-scheduler.ts +7 -7
  61. package/lib/tools-access.ts +1 -1
  62. package/lib/tools-inspect.ts +10 -10
  63. package/lib/tools-message.ts +10 -10
  64. package/lib/tools-register.ts +4 -4
  65. package/lib/tools-response.ts +25 -25
  66. package/lib/tools-spawn.ts +1 -1
  67. package/lib/tools.ts +28 -0
  68. package/package.json +1 -1
  69. package/skills/actors/SKILL.md +29 -21
  70. package/skills/actors/references/diagnostics.md +11 -11
  71. package/skills/actors/references/persistent-tools.md +19 -15
  72. package/skills/actors/references/recipes.md +1 -1
  73. package/skills/actors/references/runs.md +8 -8
  74. package/skills/music-player/SKILL.md +4 -4
  75. package/skills/music-player/scripts/playback.mjs +1 -1
  76. package/skills/recipe-memory/SKILL.md +7 -7
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Public Control facade under the stable `message` tool name.
2
+ * Public Control facade under the stable `actors_control_apply` tool name.
3
3
  * Zones: Control request validation, Run/runtime dispatch, recipient-scoped receipts
4
4
  * Owns public Control execution; journaling, delivery, and lifecycle mutation stay in Run domains.
5
5
  */
@@ -40,9 +40,9 @@ function controlDocument(render, order) {
40
40
  }
41
41
  /** Only producer-known read-only inspect literals become typed next; other advice stays opaque content. */
42
42
  function controlNextPart(action) {
43
- const inspect = /^inspect target=([^\s]+) view=([^\s]+)$/u.exec(action);
43
+ const inspect = /^actors_inspect target=([^\s]+) view=([^\s]+)$/u.exec(action);
44
44
  if (inspect) {
45
- return ToolsResponse.selectYamlNode("next", { tool: "inspect", target: inspect[1], view: inspect[2] }, CONTROL_BUDGET);
45
+ return ToolsResponse.selectYamlNode("next", { tool: "actors_inspect", target: inspect[1], view: inspect[2] }, CONTROL_BUDGET);
46
46
  }
47
47
  const wellFormed = action.isWellFormed();
48
48
  const omitted = { next: { instruction: wellFormed ? "[omitted]" : "[unavailable]",
@@ -107,24 +107,24 @@ export function compactControlResult(request, result) {
107
107
  }
108
108
  function runNextActions(run, result) {
109
109
  if (result.stopped === true)
110
- return [`inspect target=run:${run} view=trace`];
110
+ return [`actors_inspect target=run:${run} view=trace`];
111
111
  if (result.stopped === false || result.archived === false || result.pruned === false) {
112
112
  if (result.reason === "ownership changed" || result.reason === "run generation changed") {
113
- return ["inspect target=runtime view=runs"];
113
+ return ["actors_inspect target=runtime view=runs"];
114
114
  }
115
115
  if (result.stopped === false && result.reason !== "not running")
116
- return [`inspect target=run:${run} view=trace`];
116
+ return [`actors_inspect target=run:${run} view=trace`];
117
117
  }
118
118
  if (result.delivery === "queued" || result.delivery === "delivered") {
119
- return [`inspect target=run:${run} view=control`];
119
+ return [`actors_inspect target=run:${run} view=control`];
120
120
  }
121
121
  return [];
122
122
  }
123
123
  export function createControlToolDefinition(deps = {}) {
124
124
  return {
125
- name: "message",
125
+ name: "actors_control_apply",
126
126
  label: "Control",
127
- description: "Apply one Control action to an existing Run or the pi-actors runtime.",
127
+ description: "Apply one Run/runtime Control action. This is not chat or peer messaging.",
128
128
  parameters: Schema.objectSchema({
129
129
  target: Schema.stringSchema("Run target run:<id>, or literal runtime."),
130
130
  action: Schema.stringSchema("Lowercase ASCII Control action, at most 64 characters."),
@@ -214,7 +214,7 @@ export function createControlToolDefinition(deps = {}) {
214
214
  // Admission-era correlation is not current reply-scope proof after an awaited dispatch.
215
215
  // Display one whole caller-owned id or an explicit whole-id omission; the warning stays literal.
216
216
  const identity = controlSelected("run", run);
217
- const next = controlNextPart("inspect target=runtime view=runs");
217
+ const next = controlNextPart("actors_inspect target=runtime view=runs");
218
218
  const render = () => ({ ...identity.selected, action: request.action,
219
219
  result: "request failed", delivery: "unconfirmed", handling: "unconfirmed",
220
220
  warning: "Effects may already exist.\nDo not repeat automatically.", ...next.selected });
@@ -1,7 +1,7 @@
1
1
  /**
2
- * Public register_tool behavior
3
- * Zones: runtime tool registration, tool registry mutation, register_tool schema
4
- * Owns the public register_tool definition that persists local agent capabilities
2
+ * Public actors_tool_register behavior
3
+ * Zones: runtime tool registration, tool registry mutation, actors_tool_register schema
4
+ * Owns the public actors_tool_register definition that persists local agent capabilities
5
5
  */
6
6
  import * as Registry from "./registry.ts";
7
7
  import * as Schema from "./schema.ts";
@@ -1,7 +1,7 @@
1
1
  /**
2
- * Public register_tool behavior
3
- * Zones: runtime tool registration, tool registry mutation, register_tool schema
4
- * Owns the public register_tool definition that persists local agent capabilities
2
+ * Public actors_tool_register behavior
3
+ * Zones: runtime tool registration, tool registry mutation, actors_tool_register schema
4
+ * Owns the public actors_tool_register definition that persists local agent capabilities
5
5
  */
6
6
  import * as Prompts from "./prompts.js";
7
7
  import * as Registry from "./registry.js";
@@ -15,7 +15,7 @@ const objectSchema = Schema.objectSchema;
15
15
  const looseObjectSchema = Schema.looseObjectSchema;
16
16
  export function createRegisterToolDefinition(deps) {
17
17
  return {
18
- name: "register_tool",
18
+ name: "actors_tool_register",
19
19
  label: "Register Tool",
20
20
  description: Prompts.REGISTER_TOOL_DESCRIPTION,
21
21
  promptSnippet: Prompts.REGISTER_TOOL_PROMPT_SNIPPET,
@@ -28,7 +28,7 @@ export declare function formatYamlNotice(value: Record<string, string | number |
28
28
  /** Close one rendered YAML header; a separate opaque body gets exactly one delimiter pair. */
29
29
  export declare function frameMetadataDocument(header: string, body?: string): string;
30
30
  export declare function formatMarkdownField(key: string, value: string, depth?: number): string;
31
- export declare function formatInspectNextAction(target: string, view: string, verbose?: boolean): string;
31
+ export declare function formatInspectNextAction(target: string, view: string, verbose?: boolean, tool?: string): string;
32
32
  export declare function formatLiteralBlock(value: string): string;
33
33
  export type RunSnapshotRendering = {
34
34
  readonly state: "available";
@@ -163,8 +163,8 @@ export function formatMarkdownField(key, value, depth = 0) {
163
163
  ? `${indent}- ${key}:\n${indent} ${value.replaceAll(/\r\n|\r|\n/gu, newline => `${newline}${indent} `)}`
164
164
  : `${indent}- ${key}: ${value}`;
165
165
  }
166
- export function formatInspectNextAction(target, view, verbose) {
167
- return ["- next:", formatMarkdownField("tool", "inspect", 1), formatMarkdownField("target", target, 1),
166
+ export function formatInspectNextAction(target, view, verbose, tool = "inspect") {
167
+ return ["- next:", formatMarkdownField("tool", tool, 1), formatMarkdownField("target", target, 1),
168
168
  formatMarkdownField("view", view, 1), ...(verbose === undefined ? [] : [formatMarkdownField("verbose", String(verbose), 1)])].join("\n");
169
169
  }
170
170
  export function formatLiteralBlock(value) {
@@ -292,19 +292,19 @@ function launchModelPolicy(value) {
292
292
  }
293
293
  return fields;
294
294
  }
295
- const RUN_FILE_INVESTIGATION_COMMAND = "inspect target=runtime view=runs verbose=true";
295
+ const RUN_FILE_INVESTIGATION_COMMAND = "actors_inspect target=runtime view=runs verbose=true";
296
296
  /** Frozen older completion-format text: new launch layout must not change this shared packet helper. */
297
297
  export function formatRunFileNavigationHandoff() {
298
- return `Files (optional; current session):\n\`${RUN_FILE_INVESTIGATION_COMMAND}\``;
298
+ return "Files (optional; current session):\n`inspect target=runtime view=runs verbose=true`";
299
299
  }
300
300
  export function runNextActions(run) {
301
301
  const id = String(run ?? "").trim();
302
302
  if (!id)
303
303
  return [];
304
304
  return [
305
- `inspect target=run:${id} view=recipe`,
306
- `inspect target=run:${id} view=trace`,
307
- `inspect target=run:${id} view=control`,
305
+ `actors_inspect target=run:${id} view=recipe`,
306
+ `actors_inspect target=run:${id} view=trace`,
307
+ `actors_inspect target=run:${id} view=control`,
308
308
  RUN_FILE_INVESTIGATION_COMMAND,
309
309
  ];
310
310
  }
@@ -342,7 +342,7 @@ export function compactAsyncRunStatus(value) {
342
342
  fields.killed = true;
343
343
  if (status.draft_recipe)
344
344
  fields.draft_recipe = String(status.draft_recipe);
345
- const hint = { file_investigation: "optional; current session", next: { tool: "inspect", target: "runtime", view: "runs", verbose: true } };
345
+ const hint = { file_investigation: "optional; current session", next: { tool: "actors_inspect", target: "runtime", view: "runs", verbose: true } };
346
346
  const hasNavigation = Object.hasOwn(status, "file_navigation");
347
347
  let navigation;
348
348
  if (hasNavigation) {
@@ -504,23 +504,23 @@ export function recipeRegistryNextActions(summary, view) {
504
504
  : 0;
505
505
  const topAction = asRecord(summary.top_action);
506
506
  if (view !== "doctor" && (invalid > 0 || diagnostics > 0)) {
507
- actions.push("inspect target=recipes view=doctor");
507
+ actions.push("actors_inspect target=recipes view=doctor");
508
508
  }
509
509
  if (view === "doctor" && typeof topAction.action === "string") {
510
510
  actions.push(String(topAction.action));
511
511
  }
512
512
  if (summary.skill_recipe_catalog_partial === true) {
513
- actions.push("inspect target=recipes view=imports verbose=true");
513
+ actions.push("actors_inspect target=recipes view=imports verbose=true");
514
514
  }
515
515
  if ((Array.isArray(summary.retained) && summary.retained.length > 0) ||
516
516
  (Array.isArray(summary.retained_diagnostics) && summary.retained_diagnostics.length > 0)) {
517
- actions.push("inspect target=recipes view=summary verbose=true");
517
+ actions.push("actors_inspect target=recipes view=summary verbose=true");
518
518
  }
519
519
  if (drafts.length > 0) {
520
- actions.push("inspect target=recipes view=summary verbose=true");
520
+ actions.push("actors_inspect target=recipes view=summary verbose=true");
521
521
  const firstPath = typeof drafts[0]?.path === "string" ? drafts[0].path : undefined;
522
522
  if (firstPath)
523
- actions.push(`spawn file=${firstPath}`);
523
+ actions.push(`actors_run_spawn file=${firstPath}`);
524
524
  }
525
525
  return [...new Set(actions)].slice(0, 4);
526
526
  }
@@ -529,16 +529,20 @@ export function compactYamlDocument(value) {
529
529
  const text = growYamlDocument(() => value, [], Limits.RUN_DELIVERY_MODEL_MAX_BYTES);
530
530
  return `\n${text.replace(/\n$/u, "")}`;
531
531
  }
532
+ function recipeInspectionHint(action) {
533
+ if (action === "actors_inspect target=recipes view=doctor")
534
+ return { view: "doctor" };
535
+ if (action === "actors_inspect target=recipes view=imports verbose=true")
536
+ return { view: "imports", verbose: true };
537
+ if (action === "actors_inspect target=recipes view=summary verbose=true")
538
+ return { view: "summary", verbose: true };
539
+ return undefined;
540
+ }
532
541
  /** Only the closed read-only Recipe inspect literals become typed next; other advice stays opaque content. */
533
542
  export function nextActionMetadata(action, byteBudget) {
534
- const recognized = [
535
- ["inspect target=recipes view=doctor", "doctor", false],
536
- ["inspect target=recipes view=imports verbose=true", "imports", true],
537
- ["inspect target=recipes view=summary verbose=true", "summary", true],
538
- ];
539
- const match = recognized.find(([literal]) => literal === action);
540
- if (match) {
541
- const typed = { next: { tool: "inspect", target: "recipes", view: match[1], ...(match[2] ? { verbose: true } : {}) } };
543
+ const hint = recipeInspectionHint(action);
544
+ if (hint) {
545
+ const typed = { next: { tool: "actors_inspect", target: "recipes", ...hint } };
542
546
  return { full: typed, selected: typed };
543
547
  }
544
548
  const instruction = selectYamlField("instruction", action, byteBudget);
@@ -546,13 +550,8 @@ export function nextActionMetadata(action, byteBudget) {
546
550
  }
547
551
  /** Only these existing read-only inspection hints become action nodes; other advice stays content. */
548
552
  export function formatInspectionHint(action) {
549
- if (action === "inspect target=recipes view=doctor")
550
- return formatInspectNextAction("recipes", "doctor");
551
- if (action === "inspect target=recipes view=imports verbose=true")
552
- return formatInspectNextAction("recipes", "imports", true);
553
- if (action === "inspect target=recipes view=summary verbose=true")
554
- return formatInspectNextAction("recipes", "summary", true);
555
- return formatMarkdownField("instruction", action);
553
+ const hint = recipeInspectionHint(action);
554
+ return hint ? formatInspectNextAction("recipes", hint.view, hint.verbose, "actors_inspect") : formatMarkdownField("instruction", action);
556
555
  }
557
556
  export function compactRecipeRegistry(summary) {
558
557
  const count = (key, source) => Array.isArray(source) ? source.length : 0;
@@ -90,7 +90,7 @@ function runIdFromTarget(target) {
90
90
  }
91
91
  export function createSpawnToolDefinition() {
92
92
  return {
93
- name: "spawn",
93
+ name: "actors_run_spawn",
94
94
  label: "Spawn",
95
95
  description: "Create one controllable Run from a Recipe file or inline command template.",
96
96
  parameters: Schema.objectSchema({
@@ -25,4 +25,11 @@ export interface CoreActorToolDefinitionDeps<TContext extends RuntimeToolContext
25
25
  }
26
26
  export declare function resolveActiveRuntimeTool(name: string, activeTools: Pick<Map<string, unknown>, "has">, getDefinition: (name: string) => unknown): unknown;
27
27
  export declare const RESERVED_TOOL_NAMES: Set<string>;
28
+ export declare const LEGACY_TOOL_NAMES: {
29
+ readonly register_tool: "actors_tool_register";
30
+ readonly spawn: "actors_run_spawn";
31
+ readonly message: "actors_control_apply";
32
+ readonly inspect: "actors_inspect";
33
+ };
34
+ export declare function createLegacyActorToolDefinitions(definitions: ActorToolDefinition[]): ActorToolDefinition[];
28
35
  export declare function createCoreActorToolDefinitions<TContext extends RuntimeToolContext>(deps: CoreActorToolDefinitionDeps<TContext>): ActorToolDefinition[];
package/dist/lib/tools.js CHANGED
@@ -18,11 +18,36 @@ export const RESERVED_TOOL_NAMES = new Set([
18
18
  "find",
19
19
  "grep",
20
20
  "ls",
21
+ "actors_tool_register",
22
+ "actors_run_spawn",
23
+ "actors_control_apply",
24
+ "actors_inspect",
21
25
  "register_tool",
22
26
  "message",
23
27
  "spawn",
24
28
  "inspect",
25
29
  ]);
30
+ // Compatibility dispatch is registered but omitted from model declarations and normal
31
+ // callable listings. Active legacy names still execute saved native tool calls.
32
+ export const LEGACY_TOOL_NAMES = {
33
+ register_tool: "actors_tool_register",
34
+ spawn: "actors_run_spawn",
35
+ message: "actors_control_apply",
36
+ inspect: "actors_inspect",
37
+ };
38
+ export function createLegacyActorToolDefinitions(definitions) {
39
+ return Object.entries(LEGACY_TOOL_NAMES).map(([name, canonical]) => {
40
+ const definition = definitions.find((tool) => tool.name === canonical);
41
+ if (!definition)
42
+ throw new Error(`Missing canonical actor tool: ${canonical}`);
43
+ return {
44
+ ...definition, name, exposure: "deferred",
45
+ description: `Compatibility dispatch for ${canonical}; use the canonical tool for new calls.`,
46
+ promptSnippet: undefined, promptGuidelines: undefined,
47
+ prepareLoadout: () => ({ hiddenDeclarations: Object.keys(LEGACY_TOOL_NAMES) }),
48
+ };
49
+ });
50
+ }
26
51
  export function createCoreActorToolDefinitions(deps) {
27
52
  return [
28
53
  ToolsRegister.createRegisterToolDefinition({
@@ -5,31 +5,39 @@ description: Use for any non-trivial pi-actors operation, diagnosis, or developm
5
5
 
6
6
  # Actors
7
7
 
8
+ ## Public tool names and migration
9
+
10
+ Use only `actors_tool_register`, `actors_run_spawn`, `actors_control_apply`, and `actors_inspect` for new calls. The old `register_tool`, `spawn`, `message`, and `inspect` names are explicit compatibility dispatch to the same schemas and executors, not a second advertised API. Saved calls and logical Recipe identities stay unchanged; do not migrate the live registry or reload the host implicitly. Compatibility entries are deferred, active dispatch names with model declarations hidden by the host loadout hook; explicit inspection/search or the host's active/registered inventory can still reveal them. They remain subject to the same host permissions and session fences.
11
+
12
+ Name new configurable Recipe tools under their functional owner's namespace, such as `audio_transcribe`, `music_player`, or `repo_check`, not generic host verbs. This is a caller naming contract, not a new Recipe identity field or an automatic prefix. Preserve existing persisted names and calls. Registration and discovery reject normalized collisions with foreign host tools, even inactive ones; `update=true` cannot authorize replacing another owner's tool. A rejected exposure does not make a foreign tool callable as a Recipe. Within the same runtime, observed name/source-path provenance survives Recipe deactivation so an owned retained host declaration does not block recreation or restoration. A different-source or normalized foreign declaration still blocks exposure; identical host name/source metadata cannot distinguish a replacement. This is not complete host unregister or activation proof: require fresh `callable_now` evidence.
13
+
14
+ `actors_control_apply` applies Run/runtime actions, never chat or peer messages. The rename changes no Control envelope, ownership, generation, delivery/handling distinction or Run semantics.
15
+
8
16
  ## Choose the operation
9
17
 
10
18
  Start from the intended outcome:
11
19
 
12
20
  ```text
13
21
  Run a maintained capability once
14
- → use spawn recipe=<skill>/<recipe>
22
+ → use actors_run_spawn recipe=<skill>/<recipe>
15
23
 
16
24
  Make a maintained capability a persistent agent-callable tool
17
- → use register_tool from=<skill>/<recipe>
25
+ → use actors_tool_register from=<skill>/<recipe>
18
26
 
19
27
  Keep the same capability but narrow caller defaults
20
- → use register_tool from=<skill>/<recipe> defaults={...}
28
+ → use actors_tool_register from=<skill>/<recipe> defaults={...}
21
29
 
22
30
  Retain a new named capability without exposing a tool
23
- → use register_tool expose=false with from or template
31
+ → use actors_tool_register expose=false with from or template
24
32
 
25
33
  Register a trusted command directly
26
- → use register_tool template="..."
34
+ → use actors_tool_register template="..."
27
35
 
28
36
  Build a reusable multi-node execution graph
29
37
  → author a Recipe with named imports
30
38
 
31
39
  Run a long-lived controlled process
32
- → spawn its async Recipe, then use message and inspect
40
+ → use actors_run_spawn for its async Recipe, then actors_control_apply and actors_inspect
33
41
 
34
42
  Coordinate several independent actors or subagents
35
43
  → also read the swarm Skill
@@ -55,13 +63,13 @@ direct delegation ≠ named import composition
55
63
  Run Control ≠ actor chat
56
64
  ```
57
65
 
58
- A Skill Recipe is a maintained component addressed by `<skill>/<recipe>`. `spawn` creates a Run from a Recipe. `register_tool from=<skill>/<recipe>` persists compact logical delegation and activates from the resolved effective contract without copying, symlinking, or ambient re-resolution. A tool is callable in the current session only when activation evidence says `callable_now: true`.
66
+ A Skill Recipe is a maintained component addressed by `<skill>/<recipe>`. `actors_run_spawn` creates a Run from a Recipe. `actors_tool_register from=<skill>/<recipe>` persists compact logical delegation and activates from the resolved effective contract without copying, symlinking, or ambient re-resolution. A tool is callable in the current session only when activation evidence says `callable_now: true`.
59
67
 
60
- Sync/async is an execution contract, not a usefulness or tool-exposure rule. A sync tool awaits its result; an async tool returns a Run launch receipt, with the eventual result delivered separately. A subagent-backed tool is a capability launcher, not a persisted live subagent. Register a stable, meaningfully parameterized capability when its name and contract save repeated planning; prefer one-off `spawn` over a redundant generic launcher or a new tool for every mission.
68
+ Sync/async is an execution contract, not a usefulness or tool-exposure rule. A sync tool awaits its result; an async tool returns a Run launch receipt, with the eventual result delivered separately. A subagent-backed tool is a capability launcher, not a persisted live subagent. Register a stable, meaningfully parameterized capability when its name and contract save repeated planning; prefer one-off `actors_run_spawn` over a redundant generic launcher or a new tool for every mission.
61
69
 
62
- Use `register_tool expose=false` with a new name and one `template` or `from` source to retain a capability without requesting tool activation. Its `kind: retained_recipe`, `activation: not_requested` receipt is deliberate retention, not failed registration; it omits global callability flags because a same-named tool may already exist. Reuse the exact returned Recipe path through `spawn`, or deliberately expose it later with ordinary `register_tool from=<exact path>`. Retained update, delete and draft promotion are unsupported; do not hand-edit the live registry to bypass those guards.
70
+ Use `actors_tool_register expose=false` with a new name and one `template` or `from` source to retain a capability without requesting tool activation. Its `kind: retained_recipe`, `activation: not_requested` receipt is deliberate retention, not failed registration; it omits global callability flags because a same-named tool may already exist. Reuse the exact returned Recipe path through `actors_run_spawn`, or deliberately expose it later with ordinary `actors_tool_register from=<exact path>`. Retained update, delete and draft promotion are unsupported; do not hand-edit the live registry to bypass those guards.
63
71
 
64
- Automatic retained lifecycle is not implemented. Current user-root tool discovery and automatic review actions are unchanged. `inspect target=recipes view=summary` distinguishes retained definitions under `recipes/library` from root tool candidates; verbose detail gives exact paths, resolved mode and invalid/disabled diagnostics. Storage is not proof of review, callability or a running Actor. `expose` is registration input, not a Recipe field or automatic-review action; do not invent retain/defer review commands. See [persistent tools](./references/persistent-tools.md) for current selection and activation proof.
72
+ Automatic retained lifecycle is not implemented. Current user-root tool discovery and automatic review actions are unchanged. `actors_inspect target=recipes view=summary` distinguishes retained definitions under `recipes/library` from root tool candidates; verbose detail gives exact paths, resolved mode and invalid/disabled diagnostics. Storage is not proof of review, callability or a running Actor. `expose` is registration input, not a Recipe field or automatic-review action; do not invent retain/defer review commands. See [persistent tools](./references/persistent-tools.md) for current selection and activation proof.
65
73
 
66
74
  `actors` owns generic Recipe/tool/Run mechanics. The owning capability Skill owns capability-specific selection and constraints. `swarm` owns multi-actor decomposition and integration methodology.
67
75
 
@@ -73,7 +81,7 @@ Rollout is partial: compact launch/attachment receipts use block YAML; other ope
73
81
 
74
82
  Compact launches use bare block-YAML mappings for the Run/state/launch facts and nested observed locations, explicitly identify actual existing-Run reuse, and preserve multiline scalar contents. One leading response-separator LF supplies invocation spacing; it is outside the pure metadata emitter and is not a `---` wrapper. Model/thinking provenance groups are labeled model and thinking, without a redundant _policy suffix; structured data and saved text stay unchanged. A complete direct file-location row needs no repeated session-map hint; absent/unavailable/omitted rows retain one optional next node naming inspect, target=runtime, view=runs and verbose=true. It never executes automatically. Exact locations, verbose details and saved completion formats stay unchanged.
75
83
 
76
- Fresh automatic completions have one AX capture path with no format selector: YAML frontmatter begins index, run, state, then kind:primary for admitted primary/final Actor response or kind:diagnostic for explicit diagnostics. Markdown follows unindented outside the closed metadata block, without #N heading, result:/preview: wrapper or whole-body literal fence. One record uses the same shape as many. Display index is not member_index or generation; default indices are packet-local. Whole-result/reference omissions and non-done omitted states stay explicit. Known display loss appears at the actual cut as [N characters omitted], counting Unicode scalar characters of admitted retained text/field, never raw/private loss; no extra clipping ellipsis or body clipping flags/counts in YAML. Unknown upstream completeness/privacy remains separately visible at the body boundary, not a fabricated count or a known positive loss. Untracked fallback has no kind and cannot become primary. Full text fitting its share has no display-cut marker; upstream uncertainty still prevents a completeness claim. New packets share48KiB UTF-8 including references/framing across at most64candidate rows, with frozen equal shares and no unused-share redistribution or fixed16KiB result/2KiB preview cap. Captured members remain bounded at256. Text is admitted work output/final response or explicit error/failure diagnostics, never launch commands. Successful composition/retry/Pi text-print can retain text_basis:actor_response; scope and exact references remain technical, while original coverage facts remain structured retained data. The model receives one complete content with whole source/generation/location references or truthful omission/inventory, not a standing full-map instruction. The TUI renders compiler headers/markers as Text and each body as independent native Markdown; only whole validated header reference/location rows and framing disappear in compact view. Body-authored YAML, next/tool/batch and omission lookalikes remain content. Content-bound hashes/ranges/blocks are display consistency, not authentication, source/read/action or acceptance authority. Invalid/missing hints and expansion reveal full original text, without Run-source IO. Old saved codecs, budgets, labels, excerpts, counts and hints replay exactly with no refresh, repair, ACK/resend or restyling—including earlier #N packets and the first frontmatter encoding. Fresh unavailable indices use quoted YAML "?"; an old saved unquoted value is not silently corrected. Routine successful delivery adds no separate completions/delivery-accepted toast; actual failures and handled-generation fences remain. These source/package rules do not prove that an already loaded session was reloaded. Fresh explicit agent Trace previews append boundary … and [omitted: N chars] from normalized retained turn, with a separate upstream [omitted: unknown]. N counts only display loss after existing session privacy, not discarded original/source text. Short well-formed summaries stay unchanged, including authored older-looking markers; malformed retained text yields Agent turn [omitted: unknown] (malformed retained text), never a guessed count or repaired scalar. This is read-time display only, not a rewrite/version of saved packets or sources. Other legacy clipping is not yet uniformly covered. Follow retained references selectively without inventing completeness or permission. Agent Trace ids reference recorded entry provenance, not aggregate traversal order or chronological event numbers. Native entry keys survive sibling growth; bounded legacy/ambiguous/private-metadata fallbacks are not permanent identities, source immutability or new read/work permission.
84
+ Fresh automatic completions have one AX capture path with no format selector: YAML frontmatter begins run, state, then kind:primary for admitted primary/final Actor response or kind:diagnostic for explicit diagnostics. Markdown follows unindented outside the closed metadata block, without #N heading, result:/preview: wrapper or whole-body literal fence. Prepend index only when two or more results are shown; exactly one shown result omits it even if other results were omitted. Omission/inventory facts remain explicit. Display index is not member_index or generation; default indices are packet-local. This new-capture rule neither restyles saved messages nor changes numbered-stream presentation. Whole-result/reference omissions and non-done omitted states stay explicit. Known display loss appears at the actual cut as [N characters omitted], counting Unicode scalar characters of admitted retained text/field, never raw/private loss; no extra clipping ellipsis or body clipping flags/counts in YAML. Unknown upstream completeness/privacy remains separately visible at the body boundary, not a fabricated count or a known positive loss. Untracked fallback has no kind and cannot become primary. Full text fitting its share has no display-cut marker; upstream uncertainty still prevents a completeness claim. New packets share48KiB UTF-8 including references/framing across at most64candidate rows, with frozen equal shares and no unused-share redistribution or fixed16KiB result/2KiB preview cap. Captured members remain bounded at256. Text is admitted work output/final response or explicit error/failure diagnostics, never launch commands. Successful composition/retry/Pi text-print can retain text_basis:actor_response; scope and exact references remain technical, while original coverage facts remain structured retained data. The model receives one complete content with whole source/generation/location references or truthful omission/inventory, not a standing full-map instruction. The TUI renders compiler headers/markers as Text and each body as independent native Markdown; only whole validated header reference/location rows and framing disappear in compact view. Body-authored YAML, next/tool/batch and omission lookalikes remain content. Content-bound hashes/ranges/blocks are display consistency, not authentication, source/read/action or acceptance authority. Invalid/missing hints and expansion reveal full original text, without Run-source IO. Old saved codecs, budgets, labels, excerpts, counts and hints replay exactly with no refresh, repair, ACK/resend or restyling—including earlier #N packets and the first frontmatter encoding. Fresh unavailable indices use quoted YAML "?"; an old saved unquoted value is not silently corrected. Routine successful delivery adds no separate completions/delivery-accepted toast; actual failures and handled-generation fences remain. These source/package rules do not prove that an already loaded session was reloaded. Fresh explicit agent Trace previews append boundary … and [omitted: N chars] from normalized retained turn, with a separate upstream [omitted: unknown]. N counts only display loss after existing session privacy, not discarded original/source text. Short well-formed summaries stay unchanged, including authored older-looking markers; malformed retained text yields Agent turn [omitted: unknown] (malformed retained text), never a guessed count or repaired scalar. This is read-time display only, not a rewrite/version of saved packets or sources. Other legacy clipping is not yet uniformly covered. Follow retained references selectively without inventing completeness or permission. Agent Trace ids reference recorded entry provenance, not aggregate traversal order or chronological event numbers. Native entry keys survive sibling growth; bounded legacy/ambiguous/private-metadata fallbacks are not permanent identities, source immutability or new read/work permission.
77
85
 
78
86
  Current completion index fields are packet-local, not persistent historical indices; earlier saved #N headings keep their original meaning. Session completion streams are adopted work in progress, not an available action; do not invent a start-stream command, initialize a missing counter or reinterpret old headings. A kernel-only path commits numbered snapshots/counters/activation atomically. Its internal runtime bridge requires trusted fresh-session opt-in plus current manager/generation binding; the default entrypoint does not opt in and no public tool/command exposes it. Unknown state does not fall back to local numbering on that path. Startup/reload/resume, including ambiguous imports, cannot resume a stream automatically; stored numbers remain data, not a new session grant. A pending target or projected scope is not an active stream. Missing state never authorizes bootstrap, and unknown/conflicting delivery never authorizes bypass or reallocation. Saved numbers stay exact; an admitted unavailable counter or unfitting whole range freezes an unknown index (quoted "?" in fresh YAML, #? in older layouts) rather than resetting or partially numbering a packet.
79
87
 
@@ -87,15 +95,15 @@ Four locally authored Control guard errors use caller target/action/result recor
87
95
 
88
96
  Local spawn guards identify unsupported state_dir or invalid as with field/result and the selected caller value, not an admitted Run. Whole values fit16KiB or show field omission; malformed text is unavailable, not repaired. The host may reject unsupported state_dir by its own schema before the facade, so not every SDK validation error has AX text. This adds no launch, no-effects receipt, retry permission, generated identity or change to Recipe/session/post-launch failures.
89
97
 
90
- Fresh source normal register_tool receipts use bare block-YAML tool/result/source/callable_now fields and native argument/warning sequences, including empty argument lists. Normal callability remains Boolean and a non-template source stays one exact safely quoted scalar; complete warnings take priority under16KiB, and whole-field/list omissions count only selected metadata, not hidden chars. Call advice remains opaque instruction, not automatic invocation; an unverified registration keeps its existing read-only tool-status next. Persistence is not callability: rely on the existing activation evidence, never substitute spawn or infer fresh host readiness from this layout. Transaction/errors/list/delete/draft and saved messages are not restyled by this slice.
98
+ Fresh source normal actors_tool_register receipts use bare block-YAML tool/result/source/callable_now fields and native argument/warning sequences, including empty argument lists. Normal callability remains Boolean and a non-template source stays one exact safely quoted scalar; complete warnings take priority under16KiB, and whole-field/list omissions count only selected metadata, not hidden chars. Call advice remains opaque instruction, not automatic invocation; an unverified registration keeps its existing read-only tool-status next. Persistence is not callability: rely on the existing activation evidence, never substitute spawn or infer fresh host readiness from this layout. Transaction/errors/list/delete/draft and saved messages are not restyled by this slice.
91
99
 
92
100
  Fresh source registry listings and deletion receipts use bare block YAML. Listings preserve the same selected sorted names as a native sequence with coverage; empty selection is `[]`, an overlarge whole group is explicitly omitted rather than mislabeled empty, and malformed text is unavailable without repair. Counts describe selected names, not active/callable or the complete loaded-host registry. Deletion returns tool/result and preserves the manual reload note as opaque instruction: neither a current-map miss nor returned deletion proves full host removal or authorizes automatic reload/retry. Existing partial-effect exceptions and machine details remain unchanged. Combined compiled/package acceptance and loaded-host observation remain separate; an older runtime can still return the prior flat-list text.
93
101
 
94
102
  Fresh source draft-promotion success uses bare block YAML only for its original selected name/new-update/source=draft/callable display and one prior hint. The selected callable display remains a string, including quoted "false", "true" or "0", not reconstructed Boolean readiness. It adds no default/body/argument/path or activation facts and does not become an ordinary registration transaction. A zero, opaque legacy display or unavailable field is not permission to infer readiness or repair callability. Whole scalar/action omissions stay explicit; invocation advice is content and only the existing read-only status hint may be typed. Promotion callbacks/display can still fail after writes with original errors; no automatic rollback/retry/reload follows.
95
103
 
96
- Local register_tool source-mode refusals now identify field/result and actual replacement/reference/source-mode/inherited-field choices. Existing correction advice is instruction content, not automatic retry/update or a no-effects receipt. Supplied values are not echoed. The host owns clone/coercion/schema behavior before the facade, so use the actual outcome rather than assuming every wrong-typed request reaches a local AX guard. Other registry errors and all existing activation/transaction contracts remain unchanged.
104
+ Local actors_tool_register source-mode refusals now identify field/result and actual replacement/reference/source-mode/inherited-field choices. Existing correction advice is instruction content, not automatic retry/update or a no-effects receipt. Supplied values are not echoed. The host owns clone/coercion/schema behavior before the facade, so use the actual outcome rather than assuming every wrong-typed request reaches a local AX guard. Other registry errors and all existing activation/transaction contracts remain unchanged.
97
105
 
98
- Ordinary invalid/reserved-name and new-registration missing-source errors now use AX fields. Reserved-name display is only the old selected value, not ownership or tool-invocation permission; an unfit/malformed value is wholly omitted/unavailable, not repaired. Missing-source choices and prior correction advice do not impose a new source rule on listing or existing-tool updates. Dependency/normalizer/blocker errors keep their own behavior; no retry, overwrite or no-effects authority follows from these records. Ordinary/draft already-registered refusals likewise identify only the original selected name and preserve Use update=true to overwrite as opaque instruction. This layout neither merges their admission policies nor authorizes overwriting, automatic retry or invocation; unfit/malformed name display stays explicitly omitted/unavailable under16KiB. Local template-shape errors now identify nested Recipe-shaped template, empty sequence or unsupported type, with actual string/object/sequence choices and old repair advice as opaque instruction. Supplied values are not echoed; this adds no source mode, global null/undefined rule, retry permission or change to host validation/coercion and dependency errors. Four later authored-Recipe validation errors now likewise identify defaults, description or template with fixed field/result. Their original stages remain: front null can delete, existing source can be inherited, and host schema/earlier source checks may reject or route a request before these local errors. No new value echo, automatic correction, activation or no-effects authority follows. A delegated-source runtime-owned-default refusal now names only its existing first selected key under defaults/key/result with prior advice as opaque instruction. It neither displays supplied values/all reserved keys nor authorizes retry or changes command-template/default admission behavior; original copy faults can still precede the refusal. Draft-path refusals now identify the allowed-root or resolved-path reference as a whole literal, or explicit omission/unavailability when unfit/malformed. Old summary-inspection advice remains opaque instruction, not automatic action or a new guarantee that a summary lists every draft. Existing root/exists checks and unowned faults keep their semantics; this is not filesystem absence, no-effects or native proof. Public from-normalization failures now show the prior displayed source, reason, legacy active-skill summary and doctor advice as AX. Source stays a whole literal or explicit field omission/unavailability; reason/summary/body labels are opaque, and advice remains instruction rather than an automatic call. The legacy summary is not a complete Skill inventory, display is not freshly normalized ownership, and a failure does not grant retry, broader source/cause access or host readiness. Normal candidate-admission refusals now likewise report selected joined diagnostics and, only on the existing source branch, prior displayed source/legacy summary/doctor advice. Diagnostics/summary are opaque values, not complete lists or raw causes; upstream diagnostic clipping remains legacy/unproven. Full fields fit16KiB or have explicit omission/unavailability without repair. This does not alter admission, make failures effect-free/transactional, or authorize automatic correction, retry or invocation. Draft invalid-Recipe refusals now similarly show only the previously selected optional reason or joined diagnostics with draft/result. They add no path/body, source permission, raw cause or rollback guarantee; read/diagnose/admission behavior and legacy upstream limits remain. Whole values fit16KiB or show omission/unavailability without repair, and absent reason is not synthesized. Outer registration transaction failure now also separates old stage, resolution_generation, legacy summary and surfaced error as AX after the original cleanup path. That generation identifies resolution context, not fresh Run identity/epoch. Inner rollback/advice wording remains opaque error content, not proof of complete host rollback/removal or permission to repeat. Original cleanup/formatting faults and partial effects remain; no new cause/source access or transaction guarantee. Registry activation/promotion/deletion UI notices now use report/tool fields with only old selected display. A report is not callable or complete-host-removal proof; original hasUI/callback/post-effect failures remain. Whole well-formed notifier values are not subject to the model16KiB cap, malformed selected name is unavailable without repair, and RPC forwarding is not client handling/visibility proof. Recipe registry watcher warning/refresh reports use AX fields too; their old default-root wording is not a freshly verified actual path, and restart/register_tool advice is only opaque instruction, never automatic action. Startup registry warnings use category sequences with whole opaque selected diagnostics; authored next/tool labels are content, malformed selected text unavailable and old doctor advice only opaque instruction. The reports do not establish callability, full upstream diagnostics or new source permission.
106
+ Ordinary invalid/reserved-name and new-registration missing-source errors now use AX fields. Reserved-name display is only the old selected value, not ownership or tool-invocation permission; an unfit/malformed value is wholly omitted/unavailable, not repaired. Missing-source choices and prior correction advice do not impose a new source rule on listing or existing-tool updates. Dependency/normalizer/blocker errors keep their own behavior; no retry, overwrite or no-effects authority follows from these records. Ordinary/draft already-registered refusals likewise identify only the original selected name and preserve Use update=true to overwrite as opaque instruction. This layout neither merges their admission policies nor authorizes overwriting, automatic retry or invocation; unfit/malformed name display stays explicitly omitted/unavailable under16KiB. Local template-shape errors now identify nested Recipe-shaped template, empty sequence or unsupported type, with actual string/object/sequence choices and old repair advice as opaque instruction. Supplied values are not echoed; this adds no source mode, global null/undefined rule, retry permission or change to host validation/coercion and dependency errors. Four later authored-Recipe validation errors now likewise identify defaults, description or template with fixed field/result. Their original stages remain: front null can delete, existing source can be inherited, and host schema/earlier source checks may reject or route a request before these local errors. No new value echo, automatic correction, activation or no-effects authority follows. A delegated-source runtime-owned-default refusal now names only its existing first selected key under defaults/key/result with prior advice as opaque instruction. It neither displays supplied values/all reserved keys nor authorizes retry or changes command-template/default admission behavior; original copy faults can still precede the refusal. Draft-path refusals now identify the allowed-root or resolved-path reference as a whole literal, or explicit omission/unavailability when unfit/malformed. Old summary-inspection advice remains opaque instruction, not automatic action or a new guarantee that a summary lists every draft. Existing root/exists checks and unowned faults keep their semantics; this is not filesystem absence, no-effects or native proof. Public from-normalization failures now show the prior displayed source, reason, legacy active-skill summary and doctor advice as AX. Source stays a whole literal or explicit field omission/unavailability; reason/summary/body labels are opaque, and advice remains instruction rather than an automatic call. The legacy summary is not a complete Skill inventory, display is not freshly normalized ownership, and a failure does not grant retry, broader source/cause access or host readiness. Normal candidate-admission refusals now likewise report selected joined diagnostics and, only on the existing source branch, prior displayed source/legacy summary/doctor advice. Diagnostics/summary are opaque values, not complete lists or raw causes; upstream diagnostic clipping remains legacy/unproven. Full fields fit16KiB or have explicit omission/unavailability without repair. This does not alter admission, make failures effect-free/transactional, or authorize automatic correction, retry or invocation. Draft invalid-Recipe refusals now similarly show only the previously selected optional reason or joined diagnostics with draft/result. They add no path/body, source permission, raw cause or rollback guarantee; read/diagnose/admission behavior and legacy upstream limits remain. Whole values fit16KiB or show omission/unavailability without repair, and absent reason is not synthesized. Outer registration transaction failure now also separates old stage, resolution_generation, legacy summary and surfaced error as AX after the original cleanup path. That generation identifies resolution context, not fresh Run identity/epoch. Inner rollback/advice wording remains opaque error content, not proof of complete host rollback/removal or permission to repeat. Original cleanup/formatting faults and partial effects remain; no new cause/source access or transaction guarantee. Registry activation/promotion/deletion UI notices now use report/tool fields with only old selected display. A report is not callable or complete-host-removal proof; original hasUI/callback/post-effect failures remain. Whole well-formed notifier values are not subject to the model16KiB cap, malformed selected name is unavailable without repair, and RPC forwarding is not client handling/visibility proof. Recipe registry watcher warning/refresh reports use AX fields too; their old default-root wording is not a freshly verified actual path, and restart/actors_tool_register advice is only opaque instruction, never automatic action. Startup registry warnings use category sequences with whole opaque selected diagnostics; authored next/tool labels are content, malformed selected text unavailable and old doctor advice only opaque instruction. The reports do not establish callability, full upstream diagnostics or new source permission.
99
107
 
100
108
  Compact Control receipts now use flat Markdown-list key/value records: run names have no duplicated namespace, action/result/delivery/handling remain distinct, and an optional next node names the inspect tool and its target/view. Multiline values retain their internal Markdown under an outer indentation; they are not extra status fields. This is a presentation of existing facts, not a raw dump or proof of completion. Delivery is not handling; a legacy kill attempt is not full termination. Changed-owner/generation refusals withhold replacement status even in verbose/detail output. Kernel delivery exceptions retain original/later causes and genuinely admitted correlation, but raw cause chains are not a new public message schema or proof that handling failed. Actor-local dispatch exceptions stay errors and report delivery/handling/effects uncertainty with a fresh-owned-inventory hint; they intentionally withhold saved correlation, including verbose, because an admission-era context does not prove current reply scope. Do not interpret this as a handling receipt or no-effect refusal. Do not repeat destructive actions to obtain verbose detail or follow a changed owner/generation blindly. See the Runs reference for this boundary.
101
109
 
@@ -108,7 +116,7 @@ Manual archive/prune exceptions can follow moved/copied/removed data. A single s
108
116
  To make `music-player/playback` callable as `music_player` with a default source:
109
117
 
110
118
  ```text
111
- register_tool
119
+ actors_tool_register
112
120
  name=music_player
113
121
  from=music-player/playback
114
122
  defaults={"source":"~/Music/1MIX"}
@@ -117,8 +125,8 @@ register_tool
117
125
  Then:
118
126
 
119
127
  1. Require registration to report successful resolution, validation, persistence, registry admission, host registration, activation, and `callable_now: true`.
120
- 2. Call the actual `music_player` tool. Do not call `spawn` and describe that as tool invocation.
121
- 3. Verify agent-facing evidence reports `launch_kind: "tool"`; use `inspect target=tool:music_player view=status` when usage or activation needs confirmation.
128
+ 2. Call the actual `music_player` tool. Do not call `actors_run_spawn` and describe that as tool invocation.
129
+ 3. Verify agent-facing evidence reports `launch_kind: "tool"`; use `actors_inspect target=tool:music_player view=status` when usage or activation needs confirmation.
122
130
  4. If callability is false, stop at the reported activation boundary. Preserve the logical source and diagnose it; do not substitute a Recipe spawn as proof.
123
131
 
124
132
  Use direct delegation for the same maintained capability under a persistent name or narrower defaults. Use named imports only when one Recipe graph contains reusable child nodes. See [persistent tools](./references/persistent-tools.md) and [Recipes](./references/recipes.md).
@@ -136,7 +144,7 @@ Recipes remain with the Skill that owns their behavior. Load that Skill for sele
136
144
  | `music-player` | The controlled `playback` singleton |
137
145
  | `recipe-memory` | Internal automatic reviewers; use its Skill only for diagnosis/recovery |
138
146
 
139
- Use the `actors/*` helpers only for their narrow requested result or intentional composition. Prefer public `inspect` for ordinary runtime diagnosis and the capability's primary workflow for a complete outcome.
147
+ Use the `actors/*` helpers only for their narrow requested result or intentional composition. Prefer public `actors_inspect` for ordinary runtime diagnosis and the capability's primary workflow for a complete outcome.
140
148
 
141
149
  ## Delegation boundary
142
150
 
@@ -157,12 +165,12 @@ Run = Recipe + Trace + Control
157
165
  2. Retain the returned `run:<id>` and normally wait for the root coordinator's completion batch instead of polling. While Pi is active, ready results arrive together at the next safe model-step boundary after the full tool batch; already-idle Pi wakes through a debounced follow-up. Nested actor completions wait for their complete containing top-level tree and arrive in that one compressed batch; descendant sessions do not need notification options.
158
166
  3. Inspect `view=trace` when retained observations or attention matter.
159
167
  4. Inspect `view=control` before diagnosing service readiness, stale work, or saturation.
160
- 5. Send `message` only for an action declared and consumed by that controlled Recipe.
168
+ 5. Send `actors_control_apply` only for an action declared and consumed by that controlled Recipe.
161
169
  6. Use terminal state, result, declared artifacts, and execution evidence to prove completion. When an outcome includes a retained primary-source, declaration-inventory or diagnostic-metadata reference, use that exact reference for further reading, not guessed captures or sibling files. Literal previews may be clipped; their field/range/counts describe what was shown. Diagnostic sources contain recorded command/error/failure-reason metadata only, not complete primary output; other recorded fields may be referenced without being shown. Artifact inventories list declarations only: they do not assert that target files exist or were produced, or grant body-read permission. Explicit unavailability has no guessed legacy body/path fallback.
162
170
 
163
171
  Compact launch receipts include `run_files` as nested block YAML containing the exact selected observed location values, labeled observed locations/mutable for the exact launched Run generation when the current session and physical identity agree; otherwise they report unavailability or whole-row omission. Machine `file_navigation` details stay JSON-compatible; saved terminal messages retain their own original encodings. Selectively ordinary-read those starting locations when needed; layout/size hints are not body, privacy, terminal or native proof. No evidence bodies or session-wide catalog map are read to build this row. New terminal packets also freeze bounded location rows for captured completion members at fresh current-session admission. Fresh rooted completion headers group paths under literal roots with relative entries, English purposes and a read_first group/entry pointer; no cwd guess, source refresh or automatic read follows. Unknown bases stay explicit. Runtime navigation/omission/inventory facts remain above the Actor Markdown, not in a footer; retained packets keep their original projection. Each shown result keeps its whole Run-file row or explicit per-record omission; wholly omitted results stay covered by result omission/inventory. This describes Run-row coverage, not a complete file/tree inventory. Older captured formats retain their original shown/omitted/total counters; unavailability remains explicit. Ordinary-read selected paths only when needed. Packet reload/render never refreshes sources, and old absent/request-only formats keep their text. Source/npm SDK verifies an explicitly requested ordinary read from a delivered terminal result path; this is research, never routine completion polling or new primary/privacy/clock/native authority. Use the request only for file investigation, not routine completion/status polling. Copied locations/hints remain data, never transferred scope; older batches keep their original text.
164
172
 
165
- For selective investigation of already cataloged files, use `inspect target=runtime view=runs verbose=true`, then ordinary file tools on its current-session root-first navigation. Ordinary maps keep latest-registration order between roots and prioritize known failed subtrees within each root. For a failed investigation add status=failed: inventory is filtered, while the full owned map prioritizes observed failed subtrees across roots, always ancestors first. Priority uses only exact-generation matched inventory observations, not complete terminal truth. Launches and compatible singleton attachments populate the catalog; reads do not backfill missing locations. A `catalog: unavailable` launch warning is not workload failure: do not spawn again merely to repair navigation. The starting map's format hints do not certify syntax, encoding or complete output. See [Runs](./references/runs.md) for selective recorded-capture research and resume boundaries.
173
+ For selective investigation of already cataloged files, use `actors_inspect target=runtime view=runs verbose=true`, then ordinary file tools on its current-session root-first navigation. Ordinary maps keep latest-registration order between roots and prioritize known failed subtrees within each root. For a failed investigation add status=failed: inventory is filtered, while the full owned map prioritizes observed failed subtrees across roots, always ancestors first. Priority uses only exact-generation matched inventory observations, not complete terminal truth. Launches and compatible singleton attachments populate the catalog; reads do not backfill missing locations. A `catalog: unavailable` launch warning is not workload failure: do not spawn again merely to repair navigation. The starting map's format hints do not certify syntax, encoding or complete output. See [Runs](./references/runs.md) for selective recorded-capture research and resume boundaries.
166
174
 
167
175
  Trusted parent-session shutdown keeps the existing Kill attempts for quit/reload/new/resume/fork; a Run is not promised to survive session replacement. This is logical-session ownership, not independent PID-bound ownership for parallel hosts with the same ID. A teardown report is not scope closure or crash/hung-host cleanup, and bare AgentSession.dispose alone emits no shutdown. See the Runs reference for the boundary.
168
176
 
@@ -179,7 +187,7 @@ When a pi-actors operation fails:
179
187
 
180
188
  Stop if spawn and registry resolve the same Recipe differently. When tool exposure was requested, stop if registration persists but is not callable. A `retained_recipe` receipt with `activation: not_requested` instead permits ordinary Recipe reuse, not a claim of tool invocation. Stop if an operation cannot be proven through pi-actors surfaces.
181
189
 
182
- Never recover by copying maintained Recipe args, defaults, Control, artifacts, or helper commands. Never hard-code a `{skill_dir}` replacement path. Never introduce `bash -lc`, `eval`, direct bundled-helper execution, or shell backgrounding to bypass resolution. Never call `spawn` and claim a tool call. Use [diagnostics](./references/diagnostics.md) for the safe next action.
190
+ Never recover by copying maintained Recipe args, defaults, Control, artifacts, or helper commands. Never hard-code a `{skill_dir}` replacement path. Never introduce `bash -lc`, `eval`, direct bundled-helper execution, or shell backgrounding to bypass resolution. Never call `actors_run_spawn` and claim a tool call. Use [diagnostics](./references/diagnostics.md) for the safe next action.
183
191
 
184
192
  ## When to read another Skill
185
193
 
@@ -5,9 +5,9 @@ Preserve the intended logical identity and diagnose through public pi-actors sur
5
5
  ## Recipe resolution or catalog failure
6
6
 
7
7
  ```text
8
- inspect target=recipes view=status
9
- inspect target=recipes view=summary
10
- inspect target=recipes view=doctor identity=<skill>/<recipe>
8
+ actors_inspect target=recipes view=status
9
+ actors_inspect target=recipes view=summary
10
+ actors_inspect target=recipes view=doctor identity=<skill>/<recipe>
11
11
  ```
12
12
 
13
13
  `summary` and `registry` name the same inspection path: identical facts, details and rendering for identical `verbose` input, so only `verbose` selects compact text versus structured output. The compact label still reports `recipes: registry`, and that label is not a separate view to request. Unsupported-view refusals list the actual accepted view names.
@@ -37,8 +37,8 @@ The actual host clones/validates public arguments first. Its unchanged schema re
37
37
  ## Persistent tool failure
38
38
 
39
39
  ```text
40
- inspect target=tool:<name> view=status
41
- inspect target=tool:<name> view=schema
40
+ actors_inspect target=tool:<name> view=status
41
+ actors_inspect target=tool:<name> view=schema
42
42
  ```
43
43
 
44
44
  Successful normal register/update-or-persisted text now separates tool/result/source/callable_now, lists required/optional args and warnings, and keeps one prior hint. Non-template source references are whole literals; safety warnings take budget priority. Whole selected fields/groups/actions fit16KiB or carry omission counts; malformed selections are unavailable without repair or hidden character counts. Invocation advice is opaque instruction rather than an automatic call. The unverified branch retains one typed read-only tool-status next; all existing next_actions/details remain. Post-persistence callbacks/formatting can still fail with their original values, so text does not add rollback, fresh activation or retry guarantees. List/delete/draft/transaction errors and notices remain separate.
@@ -51,19 +51,19 @@ Four local source-mode refusals now show field/result plus replacement fields, a
51
51
 
52
52
  The host first clones/coerces/validates args. It rejects unsupported values/object-valued from before execute, but numeric from can normalize to a string; an unnamed valid request can still return the existing name list. Direct getter/descriptor/trim probes are not SDK-cloned DTOs. Do not override schema or force a public error solely to obtain AX text, and do not infer the caller's original type from post-validation data.
53
53
 
54
- Ordinary invalid-name, reserved-name and new-registration missing-source errors now use field/value/result or a real source-mode sequence with prior opaque repair advice. No raw caller name/source/body is newly exposed. Reserved selected display fits whole16KiB including spacing or has scalar omission/unavailability; this is not hidden character loss or ownership/invocation proof. Empty-name listing and existing-tool update reusing source remain unchanged. Normalizer/reserved-set/resolution/authoritative/blocker exceptions retain original behavior; a dependency blocker is not reformatted as an owned refusal. SDK numeric name coercion may reach a different local guard than the direct request, while object-type schema rejection stays outside execute. Both ordinary and draft already-registered errors now use field/value/result with exact Use update=true to overwrite instruction content. Distinct Map/authoritative-file/exists/blocker/update checks remain; the selected display does not disclose source/recipe bytes or certify no effects, rollback, fresh host membership or overwrite permission. Whole scalar omission/unavailability and raw observation/coercion failures remain explicit and unchanged, respectively. Nested Recipe-shaped template, empty sequence and unsupported template type now have fixed template/result AX errors and real supported-type choices, retaining prior correction as opaque instruction without supplied body/source echo. External expansion/getter failures stay raw. Front null/empty deletion, undefined/inherited source and later authoring errors are not reclassified; a numeric SDK template may be coerced to a command string rather than reaching the direct unsupported-type refusal. Later non-object defaults, missing command description, authoring-stage null and missing final template now use fixed field/result without supplied values. Preserve the error's actual stage rather than treating null globally invalid or every missing source as a late template failure: host defaults schema rejection, front deletion and earlier missing-source refusal still precede or bypass these guards. Schema argument/description/default/retained-template observation faults keep their original owner and values. The delegated-source runtime-owned-default-key refusal now names the old first selected key only with fixed defaults/result and opaque remove-default/retry advice. Key order and complete prior default copy remain; do not infer a complete key listing, supplied values, early effect-free rejection, global command-template ban or permission to repeat. Host SDK preserves selected-key error normalization without granting readiness or overwrite authority. Draft outside-root/current-not-found diagnostics now identify field draft and only the original allowed-root/resolved-path literal; root refusal does not add the refused caller path. Whole references fit16KiB or are explicitly omitted/unavailable without repair/private counts. Old summary hint stays instruction content, not an automatic call/listing guarantee. Getter/resolve/relative/dot-prefix/exists behavior and raw faults remain; not-found text is not stronger absence/native/host proof. Public from-normalization wrapper now reports only original displayed source/reason/legacy active_skills_summary and opaque doctor instruction, with whole-field omissions/unavailability under16KiB. Inner normalizer errors, Error.message.trim/String and old display/summary/doctor observation order remain. Do not parse comma summary/body Next labels, infer discarded counts/private causes, fix undefined/source-hint disagreement or automatically execute advice; other validation/transaction errors stay separate. Normal candidate-admission refusal now uses field recipe/result and opaque diagnostics_summary, plus old displayed source/legacy summary/instruction only when the old requestedSource branch is truthy. Preserve pre-Error diagnostic join/String ordering and original bounded upstream diagnostic text, including explicit unavailability for malformed selected clipping; do not reconstruct a full list/body/cause or infer no effects, rollback, current readiness or retry permission. Draft invalid-Recipe raw/candidate refusals now likewise use fixed draft/result plus old optional reason or joined diagnostics only, not new paths/bodies/causes. Separate raw read/diagnose calls, reason truthiness, original draft Error-before-join timing and upstream4096UTF16 candidate cap stay unchanged; malformed selected text is unavailable without repair. This neither merges normal/draft policy nor proves no effects/rollback or authorizes retry. Outer registration transaction-failure text now identifies old stage/resolution_generation/legacy summary/error only after existing cleanup. That generation is resolution-context display, not Run scope/current host epoch. Error.message/String behavior and all restoration/unlink/Map/reactivation/setActive faults remain exact; a formatting error can follow cleanup, and legacy inner rollback/advice text is not authoritative rollback/readiness or retry permission. Whole selected fields fit16KiB or show omission/unavailability without repairing private data. Inner activation/persisted-admission errors and receipts stay separate. Registry activation/promotion/deletion notifier text now uses old report identity/tool display only, not new readiness/removal evidence. Original info type/positions/hasUI gate/callback exceptions remain; ordinary UI has no borrowed model16KiB limit. Multiline text stays literal/native-wrapped, malformed selected name is explicitly unavailable, and RPC message forwarding does not certify display or handling. Loaded terminal/phone remains separately gated. Recipe registry watcher warning/refresh notices now use AX report plus original opaque repair instruction, without changing direct ctx.ui.notify, pending/dedup/load/callback failures. The old ~/.pi/agent/recipes report is not freshly verified root metadata; it does not authorize restart, register_tool replay or reload. Startup registry warnings now expose category sequences including singletons, preserving original selected diagnostics and existing shadow/bash suppression. Authored labels stay inside values; malformed selected text is unavailable, no borrowed model cap or recovered private tail. Doctor advice stays opaque instruction, not automatic inspection. Formatting still precedes runtime.notify/hasUI; a report/fault does not undo prior scan/registry effects.
54
+ Ordinary invalid-name, reserved-name and new-registration missing-source errors now use field/value/result or a real source-mode sequence with prior opaque repair advice. No raw caller name/source/body is newly exposed. Reserved selected display fits whole16KiB including spacing or has scalar omission/unavailability; this is not hidden character loss or ownership/invocation proof. Empty-name listing and existing-tool update reusing source remain unchanged. Normalizer/reserved-set/resolution/authoritative/blocker exceptions retain original behavior; a dependency blocker is not reformatted as an owned refusal. SDK numeric name coercion may reach a different local guard than the direct request, while object-type schema rejection stays outside execute. Both ordinary and draft already-registered errors now use field/value/result with exact Use update=true to overwrite instruction content. Distinct Map/authoritative-file/exists/blocker/update checks remain; the selected display does not disclose source/recipe bytes or certify no effects, rollback, fresh host membership or overwrite permission. Whole scalar omission/unavailability and raw observation/coercion failures remain explicit and unchanged, respectively. Nested Recipe-shaped template, empty sequence and unsupported template type now have fixed template/result AX errors and real supported-type choices, retaining prior correction as opaque instruction without supplied body/source echo. External expansion/getter failures stay raw. Front null/empty deletion, undefined/inherited source and later authoring errors are not reclassified; a numeric SDK template may be coerced to a command string rather than reaching the direct unsupported-type refusal. Later non-object defaults, missing command description, authoring-stage null and missing final template now use fixed field/result without supplied values. Preserve the error's actual stage rather than treating null globally invalid or every missing source as a late template failure: host defaults schema rejection, front deletion and earlier missing-source refusal still precede or bypass these guards. Schema argument/description/default/retained-template observation faults keep their original owner and values. The delegated-source runtime-owned-default-key refusal now names the old first selected key only with fixed defaults/result and opaque remove-default/retry advice. Key order and complete prior default copy remain; do not infer a complete key listing, supplied values, early effect-free rejection, global command-template ban or permission to repeat. Host SDK preserves selected-key error normalization without granting readiness or overwrite authority. Draft outside-root/current-not-found diagnostics now identify field draft and only the original allowed-root/resolved-path literal; root refusal does not add the refused caller path. Whole references fit16KiB or are explicitly omitted/unavailable without repair/private counts. Old summary hint stays instruction content, not an automatic call/listing guarantee. Getter/resolve/relative/dot-prefix/exists behavior and raw faults remain; not-found text is not stronger absence/native/host proof. Public from-normalization wrapper now reports only original displayed source/reason/legacy active_skills_summary and opaque doctor instruction, with whole-field omissions/unavailability under16KiB. Inner normalizer errors, Error.message.trim/String and old display/summary/doctor observation order remain. Do not parse comma summary/body Next labels, infer discarded counts/private causes, fix undefined/source-hint disagreement or automatically execute advice; other validation/transaction errors stay separate. Normal candidate-admission refusal now uses field recipe/result and opaque diagnostics_summary, plus old displayed source/legacy summary/instruction only when the old requestedSource branch is truthy. Preserve pre-Error diagnostic join/String ordering and original bounded upstream diagnostic text, including explicit unavailability for malformed selected clipping; do not reconstruct a full list/body/cause or infer no effects, rollback, current readiness or retry permission. Draft invalid-Recipe raw/candidate refusals now likewise use fixed draft/result plus old optional reason or joined diagnostics only, not new paths/bodies/causes. Separate raw read/diagnose calls, reason truthiness, original draft Error-before-join timing and upstream4096UTF16 candidate cap stay unchanged; malformed selected text is unavailable without repair. This neither merges normal/draft policy nor proves no effects/rollback or authorizes retry. Outer registration transaction-failure text now identifies old stage/resolution_generation/legacy summary/error only after existing cleanup. That generation is resolution-context display, not Run scope/current host epoch. Error.message/String behavior and all restoration/unlink/Map/reactivation/setActive faults remain exact; a formatting error can follow cleanup, and legacy inner rollback/advice text is not authoritative rollback/readiness or retry permission. Whole selected fields fit16KiB or show omission/unavailability without repairing private data. Inner activation/persisted-admission errors and receipts stay separate. Registry activation/promotion/deletion notifier text now uses old report identity/tool display only, not new readiness/removal evidence. Original info type/positions/hasUI gate/callback exceptions remain; ordinary UI has no borrowed model16KiB limit. Multiline text stays literal/native-wrapped, malformed selected name is explicitly unavailable, and RPC message forwarding does not certify display or handling. Loaded terminal/phone remains separately gated. Recipe registry watcher warning/refresh notices now use AX report plus original opaque repair instruction, without changing direct ctx.ui.notify, pending/dedup/load/callback failures. The old ~/.pi/agent/recipes report is not freshly verified root metadata; it does not authorize restart, actors_tool_register replay or reload. Startup registry warnings now expose category sequences including singletons, preserving original selected diagnostics and existing shadow/bash suppression. Authored labels stay inside values; malformed selected text is unavailable, no borrowed model cap or recovered private tail. Doctor advice stays opaque instruction, not automatic inspection. Formatting still precedes runtime.notify/hasUI; a report/fault does not undo prior scan/registry effects.
55
55
 
56
56
  Distinguish persistence, registry admission, host registration, active-tool membership, and `callable_now`. Confirm the source identity, effective caller schema, separate tool/spawn usage, and last launch kind when exposed.
57
57
 
58
- If persistence succeeded but callability is false, do not use `spawn` and claim the tool worked. Follow the reported activation boundary or stop.
58
+ If persistence succeeded but callability is false, do not use `actors_run_spawn` and claim the tool worked. Follow the reported activation boundary or stop.
59
59
 
60
60
  ## Run failure
61
61
 
62
62
  ```text
63
- inspect target=run:<id> view=recipe
64
- inspect target=run:<id> view=trace
65
- inspect target=run:<id> view=control
66
- inspect target=runtime view=status
63
+ actors_inspect target=run:<id> view=recipe
64
+ actors_inspect target=run:<id> view=trace
65
+ actors_inspect target=run:<id> view=control
66
+ actors_inspect target=runtime view=status
67
67
  ```
68
68
 
69
69
  Use Recipe view for captured identity/launch evidence, Trace for bounded observations, Control for readiness/capacity/stale work, and runtime status for kernel-level health. Treat retained-history completeness honestly.