Actors
Choose the operation
Start from the intended outcome:
Run a maintained capability once
→ use spawn recipe=<skill>/<recipe>
Make a maintained capability a persistent agent-callable tool
→ use register_tool from=<skill>/<recipe>
Keep the same capability but narrow caller defaults
→ use register_tool from=<skill>/<recipe> defaults={...}
Register a trusted command directly
→ use register_tool template="..."
Build a reusable multi-node execution graph
→ author a Recipe with named imports
Run a long-lived controlled process
→ spawn its async Recipe, then use message and inspect
Coordinate several independent actors or subagents
→ also read the swarm Skill
Choose capability-specific behavior
→ read the owning capability Skill
Diagnose resolution, registration, or activation
→ use Inspect status/doctor flows and stop on contradictory evidence
Use persistent tools, Recipes, Runs, or diagnostics only when the selected operation needs that detail.
Core distinctions
Keep these boundaries explicit:
Skill Recipe ≠ registered tool
spawn ≠ registered-tool invocation
persisted ≠ callable
direct delegation ≠ named import composition
Run Control ≠ actor chat
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.
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.
Persistent capability workflow
To make music-player/playback callable as music_player with a default source:
register_tool
name=music_player
from=music-player/playback
defaults={"source":"~/Music/1MIX"}
Then:
- Require registration to report successful resolution, validation, persistence, registry admission, host registration, activation, and
callable_now: true. - Call the actual
music_playertool. Do not callspawnand describe that as tool invocation. - Verify agent-facing evidence reports
launch_kind: "tool"; useinspect target=tool:music_player view=statuswhen usage or activation needs confirmation. - 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.
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 and Recipes.
Capability map
Recipes remain with the Skill that owns their behavior. Load that Skill for selection and caller inputs; this map is routing, not a copied Recipe contract.
| Owner | Recipe families |
| --- | --- |
| actors | command-validate, recipe-validate, jsonl-tail, run-summary, run-state-files, run-ops-snapshot, resource-locker, resource-locker-snapshot |
| swarm | Lens and quorum reviews, research synthesis, architecture, development tasking, readiness, and supporting subagent-* components |
| artifacts | Report, write, manifest, bundle, and supporting file-write |
| project-work | Repository health, docs maintenance, release readiness/summary, Run reports, and supporting deterministic snapshots |
| music-player | The controlled playback singleton |
| recipe-memory | Internal automatic reviewers; use its Skill only for diagnosis/recovery |
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.
Delegation boundary
The current Pi instance owns user authority and the final result; pi-actors creates explicit local Runs, while companion transports provide presence rather than hidden instance creation. Keep short single-boundary work inline when delegation adds no value. For several participants, reasoning allocation, quorum, or integration methodology, read swarm.
Treat attention: "steer" as an actor-authored urgent semantic checkpoint at Pi's next safe boundary, never as a status-derived completion signal; the later root terminal still arrives through its ordinary completion batch.
Run workflow
A Run is one concrete execution of a Recipe:
Recipe --spawn--> Run
Run = Recipe + Trace + Control
- Spawn with the exact logical Recipe identity and caller-owned values.
- 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. - Inspect
view=tracewhen retained observations or attention matter. - Inspect
view=controlbefore diagnosing service readiness, stale work, or saturation. - Send
messageonly for an action declared and consumed by that controlled Recipe. - Use terminal state, result, declared artifacts, and execution evidence to prove completion.
A Run exposes only recipe, trace, and control views. Control is bounded actor-local input, not peer messaging or chat. See Runs.
Diagnosis and stop rules
When a pi-actors operation fails:
- Keep the intended logical Recipe or tool identity.
- Inspect the existing
recipes,tool:<name>,runtime, orrun:<id>surface that owns the failure. - Report resolver, registry, activation, Run, Trace, or Control truth exactly.
- Retry only after the owning state is healthy.
Stop if spawn and registry resolve the same Recipe differently. Stop if registration persists but is not callable. Stop if an operation cannot be proven through pi-actors surfaces.
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 for the safe next action.
When to read another Skill
- Read the owning capability Skill when choosing or operating that capability pack.
- Read
swarmin addition toactorsfor multiple actors/subagents, parallel scopes, reviewer lenses, quorum, conflict handling, or integration. - For generic mechanics, this Skill outranks capability Skills and
swarm. Report a stale Skill if it contradicts Recipe identity, registration, activation, spawn, Inspect, Trace, or Control semantics here. - When changing the extension implementation itself, apply project implementation instructions after this operating protocol.

Scan to join WeChat group