@llblab/pi-actors 0.13.4 → 0.13.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BACKLOG.md +1 -1
- package/CHANGELOG.md +5 -0
- package/docs/recipe-library.md +3 -3
- package/docs/task-first-recipes.md +5 -5
- package/package.json +1 -1
- package/scripts/recipe-utils.mjs +1 -1
package/BACKLOG.md
CHANGED
|
@@ -6,7 +6,7 @@ Continue progressive component/pipeline expansion in small validated slices; rea
|
|
|
6
6
|
|
|
7
7
|
- Plan organic universal communication primitives.
|
|
8
8
|
- Priority: High.
|
|
9
|
-
- Status: The actor-like model is empirically useful: async runs can emit follow-up messages upward, coordinators can send run-local commands downward, multiple parallel runs can progress independently, and recipes no longer need sleep-poll coordination. The design is captured in `docs/actor-messages.md`: `spawn`, `message`, and `inspect` as concentrated verbs; addressed actors; one symmetric message envelope; mailbox `accepts`/`emits`; and adapter mappings from runtime async actions. Initial implementation landed pure actor address/message normalization plus public `spawn`, `message`, and `inspect` tools for `run:<id>` actors; `spawn` accepts state/artifact metadata, `message` routes `run:<id>` → `coordinator` and `run:<id>` → `session:<id>` envelopes into the runtime attention path, `message` can invoke `tool:<name>` actors, `inspect target=tool:<name>` exposes registered tool actor contracts, `inspect target=coordinator` exposes current-session run inventory, all packaged async recipes declare mailbox metadata, `inspect view=mailbox` exposes recipe mailbox contracts from run metadata, recipe-authored messages now use envelope-aligned `type` fields with deterministic validated wrapping available through `utility-actor-message`, run termination now uses actor-native `control.stop`/`control.cancel`/`control.kill` without runtime-prefixed control aliases, async command events preserve full argv details while keeping coordinator summaries bounded, async-run operations recommendations now emit structured `message`/`inspect` objects instead of shell-like suggestion strings, `inspect view=messages` exposes run actor messages while retaining `events` as a compatibility alias, async-run operations recipes now expose `message_file`/`messages` terminology instead of public event-file args, and operator-facing docs now describe coordination with actor-message terminology before transport details, async-run docs separate public actor behavior from storage/transport mechanics more clearly, public actor-message/template guidance avoids transport-specific wording, and async-run operations recipes now use only `message_file` for actor-message inputs,
|
|
9
|
+
- Status: The actor-like model is empirically useful: async runs can emit follow-up messages upward, coordinators can send run-local commands downward, multiple parallel runs can progress independently, and recipes no longer need sleep-poll coordination. The design is captured in `docs/actor-messages.md`: `spawn`, `message`, and `inspect` as concentrated verbs; addressed actors; one symmetric message envelope; mailbox `accepts`/`emits`; and adapter mappings from runtime async actions. Initial implementation landed pure actor address/message normalization plus public `spawn`, `message`, and `inspect` tools for `run:<id>` actors; `spawn` accepts state/artifact metadata, `message` routes `run:<id>` → `coordinator` and `run:<id>` → `session:<id>` envelopes into the runtime attention path, `message` can invoke `tool:<name>` actors, `inspect target=tool:<name>` exposes registered tool actor contracts, `inspect target=coordinator` exposes current-session run inventory, all packaged async recipes declare mailbox metadata, `inspect view=mailbox` exposes recipe mailbox contracts from run metadata, recipe-authored messages now use envelope-aligned `type` fields with deterministic validated wrapping available through `utility-actor-message`, run termination now uses actor-native `control.stop`/`control.cancel`/`control.kill` without runtime-prefixed control aliases, async command events preserve full argv details while keeping coordinator summaries bounded, async-run operations recommendations now emit structured `message`/`inspect` objects instead of shell-like suggestion strings, `inspect view=messages` exposes run actor messages while retaining `events` as a compatibility alias, async-run operations recipes now expose `message_file`/`messages` terminology instead of public event-file args, and operator-facing docs now describe coordination with actor-message terminology before transport details, async-run docs separate public actor behavior from storage/transport mechanics more clearly, public actor-message/template guidance avoids transport-specific wording, and async-run operations recipes now use only `message_file` for actor-message inputs, interactive recipe mailboxes now advertise actor-native termination controls where the runtime already supports them, and task-first/library docs now describe operations snapshots in terms of actor-message tails instead of event tails. Remaining work is to absorb remaining runtime async action surfaces into the actor vocabulary instead of preserving a parallel public API.
|
|
10
10
|
- Scope: Design and implement a small semantic layer around addressed messages and actors while preserving low-level primitives as adapters where useful. Candidate top-level concepts are `spawn` for creating an actor/run from a recipe or template, `message` for sending typed messages to any address, and `inspect` for intentional observation/debugging. Candidate addresses include `run:<id>`, `branch:<run>/<branch>`, `coordinator`, `session:<id>`, `tool:<name>`, and future chat/session endpoints. Candidate message fields include `to`, `from`, `type`, `summary`, `body`, `reply_to`, `correlation_id`, and `metadata`.
|
|
11
11
|
- Contract direction: Unify “send down” and “messages up” as one message model. `to: run:<id>` routes to a run mailbox, `to: coordinator` routes to the coordinator attention path, and branch/tool/session addresses can be layered over the same semantic envelope. Recipes should declare mailbox capability (`accepts`, `emits`) without exposing FIFO/outbox mechanics or delivery policy as their public interface.
|
|
12
12
|
- Design gates: Breaking changes are allowed in this phase, so compress concepts instead of preserving accidental surfaces. Consolidate duplicated lifecycle/message/event APIs into a concentrated protocol with the fewest durable nouns and verbs that still explain the system. Duplex communication should be symmetric where the domain is symmetric: the same message envelope should represent run→coordinator, coordinator→run, run→run, branch→parent, and parent→branch traffic, with routing/transport hidden below it. Keep command templates as the portable synchronous execution graph; keep recipe files as semantic definitions; avoid leaking transports into public args; make polling an explicit diagnostic operation, not an example path; replace runtime action names with the actor API rather than preserving parallel concepts.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.13.5: Actor Message Snapshot Wording
|
|
4
|
+
|
|
5
|
+
- `[Docs]` Replaced remaining task-first and recipe-library event-tail wording for async-run operations with actor-message tail terminology. Impact: operations guidance now matches the `message_file` recipe surface and `inspect view=messages` actor vocabulary.
|
|
6
|
+
- `[Utilities]` Updated the `recipe-utils.mjs run-ops-snapshot` usage text from `<event-file>` to `<message-file>`. Impact: helper diagnostics no longer teach the old public noun.
|
|
7
|
+
|
|
3
8
|
## 0.13.4: Interactive Recipe Termination Contracts
|
|
4
9
|
|
|
5
10
|
- `[Recipe Library]` Added actor-native `control.stop`, `control.cancel`, and `control.kill` mailbox accepts to interactive artifact/message/fanout recipes and the music player recipe. Impact: `inspect view=mailbox` now advertises the run termination messages that the actor runtime supports for these long-lived recipe actors.
|
package/docs/recipe-library.md
CHANGED
|
@@ -71,7 +71,7 @@ Pipeline recipes demonstrate second-order composition:
|
|
|
71
71
|
- `recipes/subagent-review-coordinator.json`: Lens reviewers → verifier → merger → judge → normalizer.
|
|
72
72
|
- `recipes/pipeline-release-readiness.json`: Task-first release cell: changelog section → validation → release review → artifact report.
|
|
73
73
|
- `recipes/pipeline-repo-health.json`: Task-first repository-health cell: git status/log → docs index → validation → normalized artifact report.
|
|
74
|
-
- `recipes/pipeline-async-run-ops.json`: Task-first async-run operations cell: run summary →
|
|
74
|
+
- `recipes/pipeline-async-run-ops.json`: Task-first async-run operations cell: run summary → actor-message tail → normalized operations report → artifact report.
|
|
75
75
|
- `recipes/pipeline-review-readiness.json`: Release/readiness gate over selected lenses.
|
|
76
76
|
- `recipes/pipeline-quorum-review.json`: Quorum vote shape → merge → judge → normalize.
|
|
77
77
|
- `recipes/pipeline-architect-coordinator.json`: Architecture lens fanout → critique → verification → synthesis → next slice.
|
|
@@ -91,7 +91,7 @@ These are examples of library composition, not a workflow DSL. Pipeline recipes
|
|
|
91
91
|
Utility recipes cover local operator workflows that do not need subagents:
|
|
92
92
|
|
|
93
93
|
- `recipes/utility-markdown-index.json`: List Markdown files in a directory as input for README/docs index maintenance.
|
|
94
|
-
- `recipes/utility-jsonl-tail.json`: Tail a JSONL/
|
|
94
|
+
- `recipes/utility-jsonl-tail.json`: Tail a JSONL message/log file with a configurable line count.
|
|
95
95
|
- `recipes/utility-validation-wrapper.json`: Run a caller-supplied validation command in a scoped directory with a bounded timeout.
|
|
96
96
|
- `recipes/utility-git-status.json`: Read concise branch/worktree state for a repo.
|
|
97
97
|
- `recipes/utility-git-log.json`: Read recent decorated commit history for a repo.
|
|
@@ -99,7 +99,7 @@ Utility recipes cover local operator workflows that do not need subagents:
|
|
|
99
99
|
- `recipes/utility-changelog-head.json`: Read the top slice of a changelog for release summary prep.
|
|
100
100
|
- `recipes/utility-playlist-scan.json`: List local media files as playlist-building input.
|
|
101
101
|
- `recipes/utility-run-summary.json`: Use `scripts/recipe-utils.mjs` to summarize async run state files as JSON.
|
|
102
|
-
- `recipes/utility-run-ops-snapshot.json`: Combine async run summaries,
|
|
102
|
+
- `recipes/utility-run-ops-snapshot.json`: Combine async run summaries, actor-message JSONL tails, and stale/terminal recommendations into one structured operations snapshot.
|
|
103
103
|
- `recipes/utility-playlist-build.json`: Use `scripts/recipe-utils.mjs` to build a filtered playlist listing as newline paths, M3U, or inline `|`-separated source.
|
|
104
104
|
- `recipes/utility-changelog-section.json`: Use `scripts/recipe-utils.mjs` to extract one changelog release section.
|
|
105
105
|
- `recipes/utility-artifact-manifest.json`: Use `scripts/recipe-utils.mjs` to emit a machine-readable JSON manifest for an artifact path.
|
|
@@ -88,13 +88,13 @@ Purpose: inspect, summarize, and decide actions for local async runs.
|
|
|
88
88
|
Pipeline:
|
|
89
89
|
|
|
90
90
|
```text
|
|
91
|
-
run-state summary →
|
|
91
|
+
run-state summary → actor-message tail → stale/active classification → recommended action → optional stop/control message
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
Likely needed cells:
|
|
95
95
|
|
|
96
96
|
- run summary helper
|
|
97
|
-
- JSONL
|
|
97
|
+
- JSONL actor-message tailer
|
|
98
98
|
- stale-run classifier
|
|
99
99
|
- control-message recommender
|
|
100
100
|
- run report artifact
|
|
@@ -108,7 +108,7 @@ Existing seeds:
|
|
|
108
108
|
|
|
109
109
|
Implemented seed:
|
|
110
110
|
|
|
111
|
-
- `pipeline-async-run-ops`: structured run operations snapshot → normalized operations report → artifact report. The snapshot combines run summary,
|
|
111
|
+
- `pipeline-async-run-ops`: structured run operations snapshot → normalized operations report → artifact report. The snapshot combines run summary, actor-message tail, and recommended inspect/control messages before the LLM normalization step.
|
|
112
112
|
|
|
113
113
|
### Research Brief Cell
|
|
114
114
|
|
|
@@ -197,14 +197,14 @@ Purpose: convert local media directories into controllable playback workflows.
|
|
|
197
197
|
Pipeline:
|
|
198
198
|
|
|
199
199
|
```text
|
|
200
|
-
media scan → playlist build → playback start →
|
|
200
|
+
media scan → playlist build → playback start → message summary → controls
|
|
201
201
|
```
|
|
202
202
|
|
|
203
203
|
Likely needed cells:
|
|
204
204
|
|
|
205
205
|
- playlist builder
|
|
206
206
|
- music player
|
|
207
|
-
- run/
|
|
207
|
+
- run/message summary
|
|
208
208
|
- control recommender
|
|
209
209
|
|
|
210
210
|
Existing seeds:
|
package/package.json
CHANGED
package/scripts/recipe-utils.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { dirname, extname, join, relative, resolve } from "node:path";
|
|
|
5
5
|
function usage() {
|
|
6
6
|
console.error(`Usage:
|
|
7
7
|
recipe-utils.mjs run-summary <state-root>
|
|
8
|
-
recipe-utils.mjs run-ops-snapshot <state-root> <
|
|
8
|
+
recipe-utils.mjs run-ops-snapshot <state-root> <message-file> [lines] [stale-minutes]
|
|
9
9
|
recipe-utils.mjs playlist <source-dir> [extensions] [max-depth] [paths|m3u|inline]
|
|
10
10
|
recipe-utils.mjs changelog-section <file> <version>
|
|
11
11
|
recipe-utils.mjs artifact-manifest <artifact-path> <title> <status> [summary]
|