@llblab/pi-actors 0.42.2 → 0.43.0
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/AGENTS.md +121 -175
- package/CHANGELOG.md +16 -0
- package/README.md +113 -276
- package/dist/fixtures/protocol/control-endpoint.json +6 -0
- package/dist/fixtures/protocol/control-record.json +9 -0
- package/dist/fixtures/protocol/recipe-summary.json +4 -12
- package/dist/fixtures/protocol/trace-event.json +9 -0
- package/dist/lib/async-runs.d.ts +14 -38
- package/dist/lib/async-runs.js +158 -108
- package/dist/lib/control.d.ts +12 -0
- package/dist/lib/control.js +84 -0
- package/dist/lib/execution-sessions.d.ts +17 -0
- package/dist/lib/execution-sessions.js +85 -0
- package/dist/lib/file-state.d.ts +1 -0
- package/dist/lib/file-state.js +17 -5
- package/dist/lib/inspector-actions.d.ts +2 -2
- package/dist/lib/inspector-actions.js +2 -2
- package/dist/lib/inspector-command.js +3 -3
- package/dist/lib/inspector-overlay.d.ts +52 -70
- package/dist/lib/inspector-overlay.js +532 -905
- package/dist/lib/inspector.d.ts +3 -71
- package/dist/lib/inspector.js +19 -665
- package/dist/lib/limits.d.ts +4 -2
- package/dist/lib/limits.js +4 -2
- package/dist/lib/observability.d.ts +17 -17
- package/dist/lib/observability.js +45 -84
- package/dist/lib/pi.d.ts +1 -1
- package/dist/lib/prompts.d.ts +1 -1
- package/dist/lib/prompts.js +2 -2
- package/dist/lib/recipe-control.d.ts +7 -0
- package/dist/lib/recipe-control.js +39 -0
- package/dist/lib/recipes-discovery.js +2 -0
- package/dist/lib/recipes-references.d.ts +1 -14
- package/dist/lib/recipes-references.js +6 -21
- package/dist/lib/review-projection.js +1 -5
- package/dist/lib/run-ui-runtime.js +2 -2
- package/dist/lib/runs-control-delivery.d.ts +21 -0
- package/dist/lib/runs-control-delivery.js +127 -0
- package/dist/lib/runs-controls.d.ts +35 -0
- package/dist/lib/runs-controls.js +144 -0
- package/dist/lib/runs-retention.d.ts +7 -0
- package/dist/lib/runs-retention.js +27 -3
- package/dist/lib/runs-start.js +4 -2
- package/dist/lib/runs-status.js +11 -6
- package/dist/lib/runs-trace.d.ts +24 -0
- package/dist/lib/runs-trace.js +98 -0
- package/dist/lib/runtime-notifier.d.ts +1 -1
- package/dist/lib/runtime-notifier.js +1 -1
- package/dist/lib/tools-inspect.d.ts +3 -3
- package/dist/lib/tools-inspect.js +203 -708
- package/dist/lib/tools-local.js +2 -10
- package/dist/lib/tools-message.d.ts +7 -7
- package/dist/lib/tools-message.js +95 -396
- package/dist/lib/tools-response.d.ts +1 -4
- package/dist/lib/tools-response.js +5 -39
- package/dist/lib/tools-spawn.js +16 -28
- package/dist/lib/tools.js +1 -2
- package/dist/lib/trace-projection.d.ts +22 -0
- package/dist/lib/trace-projection.js +165 -0
- package/dist/recipes/draft-review.json +0 -10
- package/dist/recipes/lens-swarm.json +0 -14
- package/dist/recipes/music-player.json +10 -19
- package/dist/recipes/pipeline-architect-coordinator.json +0 -11
- package/dist/recipes/pipeline-artifact-bundle.json +1 -22
- package/dist/recipes/pipeline-artifact-report.json +1 -18
- package/dist/recipes/pipeline-artifact-write.json +1 -18
- package/dist/recipes/pipeline-async-run-ops.json +0 -12
- package/dist/recipes/pipeline-checkpoint-continuation.json +0 -14
- package/dist/recipes/pipeline-development-tasking.json +0 -12
- package/dist/recipes/pipeline-docs-maintenance.json +0 -12
- package/dist/recipes/pipeline-media-library.json +0 -12
- package/dist/recipes/pipeline-quorum-review.json +0 -12
- package/dist/recipes/pipeline-release-readiness.json +0 -12
- package/dist/recipes/pipeline-release-summary.json +0 -12
- package/dist/recipes/pipeline-repo-health.json +0 -12
- package/dist/recipes/pipeline-research-synthesis.json +0 -11
- package/dist/recipes/pipeline-review-readiness.json +0 -12
- package/dist/recipes/resource-locker.json +27 -0
- package/dist/recipes/subagent-artifact.json +0 -9
- package/dist/recipes/subagent-checkpoint.json +0 -10
- package/dist/recipes/subagent-conflict-report.json +0 -11
- package/dist/recipes/subagent-contradiction-map.json +0 -11
- package/dist/recipes/subagent-critic.json +0 -11
- package/dist/recipes/subagent-evidence-map.json +0 -11
- package/dist/recipes/subagent-followup.json +0 -10
- package/dist/recipes/subagent-judge.json +0 -11
- package/dist/recipes/subagent-merge.json +0 -11
- package/dist/recipes/subagent-normalize.json +0 -11
- package/dist/recipes/subagent-plan.json +0 -11
- package/dist/recipes/subagent-preflight.json +0 -11
- package/dist/recipes/subagent-prompt.json +0 -10
- package/dist/recipes/subagent-quorum.json +0 -10
- package/dist/recipes/subagent-review-coordinator.json +0 -14
- package/dist/recipes/subagent-review.json +0 -11
- package/dist/recipes/subagent-task-card.json +0 -11
- package/dist/recipes/subagent-tools.json +0 -10
- package/dist/recipes/subagent-verify.json +0 -11
- package/dist/recipes/subagents-prompts.json +0 -10
- package/dist/recipes/tool-review.json +0 -10
- package/dist/scripts/async-runner.mjs +25 -25
- package/dist/scripts/conformance.mjs +4 -2
- package/dist/scripts/locker.mjs +200 -66
- package/dist/scripts/music-player.mjs +159 -150
- package/dist/scripts/recipe-utils.mjs +6 -96
- package/dist/scripts/release-gates.mjs +60 -0
- package/dist/scripts/validate-recipe.mjs +3 -53
- package/dist/skills/actors/SKILL.md +53 -266
- package/dist/skills/swarm/SKILL.md +11 -33
- package/docs/0.43-baseline.md +44 -0
- package/docs/README.md +3 -3
- package/docs/actor-inspector.md +26 -64
- package/docs/actors-deep-reference.md +92 -50
- package/docs/async-runs.md +81 -328
- package/docs/command-templates.md +2 -2
- package/docs/component-recipes.md +30 -133
- package/docs/recipe-library.md +57 -182
- package/docs/task-first-recipes.md +10 -12
- package/docs/template-recipes.md +76 -289
- package/docs/tool-registry.md +41 -161
- package/fixtures/protocol/control-endpoint.json +6 -0
- package/fixtures/protocol/control-record.json +9 -0
- package/fixtures/protocol/recipe-summary.json +4 -12
- package/fixtures/protocol/trace-event.json +9 -0
- package/lib/async-runs.ts +202 -201
- package/lib/control.ts +102 -0
- package/lib/execution-sessions.ts +111 -0
- package/lib/file-state.ts +17 -4
- package/lib/inspector-actions.ts +2 -2
- package/lib/inspector-command.ts +3 -3
- package/lib/inspector-overlay.ts +577 -1121
- package/lib/inspector.ts +46 -979
- package/lib/limits.ts +4 -2
- package/lib/observability.ts +63 -104
- package/lib/pi.ts +1 -1
- package/lib/prompts.ts +2 -2
- package/lib/recipe-control.ts +45 -0
- package/lib/recipes-discovery.ts +2 -0
- package/lib/recipes-references.ts +9 -45
- package/lib/review-projection.ts +1 -5
- package/lib/run-ui-runtime.ts +2 -2
- package/lib/runs-control-delivery.ts +181 -0
- package/lib/runs-controls.ts +204 -0
- package/lib/runs-retention.ts +38 -3
- package/lib/runs-start.ts +4 -2
- package/lib/runs-status.ts +11 -6
- package/lib/runs-trace.ts +132 -0
- package/lib/runtime-notifier.ts +1 -1
- package/lib/tools-inspect.ts +240 -901
- package/lib/tools-local.ts +2 -12
- package/lib/tools-message.ts +112 -519
- package/lib/tools-response.ts +5 -52
- package/lib/tools-spawn.ts +16 -32
- package/lib/tools.ts +1 -2
- package/lib/trace-projection.ts +221 -0
- package/package.json +2 -1
- package/recipes/draft-review.json +0 -10
- package/recipes/lens-swarm.json +0 -14
- package/recipes/music-player.json +10 -19
- package/recipes/pipeline-architect-coordinator.json +0 -11
- package/recipes/pipeline-artifact-bundle.json +1 -22
- package/recipes/pipeline-artifact-report.json +1 -18
- package/recipes/pipeline-artifact-write.json +1 -18
- package/recipes/pipeline-async-run-ops.json +0 -12
- package/recipes/pipeline-checkpoint-continuation.json +0 -14
- package/recipes/pipeline-development-tasking.json +0 -12
- package/recipes/pipeline-docs-maintenance.json +0 -12
- package/recipes/pipeline-media-library.json +0 -12
- package/recipes/pipeline-quorum-review.json +0 -12
- package/recipes/pipeline-release-readiness.json +0 -12
- package/recipes/pipeline-release-summary.json +0 -12
- package/recipes/pipeline-repo-health.json +0 -12
- package/recipes/pipeline-research-synthesis.json +0 -11
- package/recipes/pipeline-review-readiness.json +0 -12
- package/recipes/resource-locker.json +27 -0
- package/recipes/subagent-artifact.json +0 -9
- package/recipes/subagent-checkpoint.json +0 -10
- package/recipes/subagent-conflict-report.json +0 -11
- package/recipes/subagent-contradiction-map.json +0 -11
- package/recipes/subagent-critic.json +0 -11
- package/recipes/subagent-evidence-map.json +0 -11
- package/recipes/subagent-followup.json +0 -10
- package/recipes/subagent-judge.json +0 -11
- package/recipes/subagent-merge.json +0 -11
- package/recipes/subagent-normalize.json +0 -11
- package/recipes/subagent-plan.json +0 -11
- package/recipes/subagent-preflight.json +0 -11
- package/recipes/subagent-prompt.json +0 -10
- package/recipes/subagent-quorum.json +0 -10
- package/recipes/subagent-review-coordinator.json +0 -14
- package/recipes/subagent-review.json +0 -11
- package/recipes/subagent-task-card.json +0 -11
- package/recipes/subagent-tools.json +0 -10
- package/recipes/subagent-verify.json +0 -11
- package/recipes/subagents-prompts.json +0 -10
- package/recipes/tool-review.json +0 -10
- package/scripts/async-runner.mjs +25 -25
- package/scripts/conformance.mjs +4 -2
- package/scripts/locker.mjs +200 -66
- package/scripts/music-player.mjs +159 -150
- package/scripts/recipe-utils.mjs +6 -96
- package/scripts/release-gates.mjs +60 -0
- package/scripts/validate-recipe.mjs +3 -53
- package/skills/actors/SKILL.md +53 -266
- package/skills/swarm/SKILL.md +11 -33
- package/dist/fixtures/protocol/actor-message-branch.json +0 -13
- package/dist/fixtures/protocol/mailbox-contract.json +0 -15
- package/dist/fixtures/protocol/room-message.json +0 -11
- package/dist/fixtures/protocol/room-roster.json +0 -11
- package/dist/fixtures/protocol/run-inbox-message.json +0 -9
- package/dist/fixtures/protocol/run-outbox-event.json +0 -9
- package/dist/lib/mailbox-loop.d.ts +0 -41
- package/dist/lib/mailbox-loop.js +0 -60
- package/dist/lib/messages.d.ts +0 -25
- package/dist/lib/messages.js +0 -122
- package/dist/lib/rooms.d.ts +0 -104
- package/dist/lib/rooms.js +0 -647
- package/dist/lib/runs-mailbox.d.ts +0 -25
- package/dist/lib/runs-mailbox.js +0 -146
- package/dist/lib/runs-messages.d.ts +0 -15
- package/dist/lib/runs-messages.js +0 -179
- package/dist/lib/runs-outbox.d.ts +0 -41
- package/dist/lib/runs-outbox.js +0 -87
- package/dist/lib/tools-mailbox.d.ts +0 -8
- package/dist/lib/tools-mailbox.js +0 -48
- package/dist/recipes/actor-worker.json +0 -39
- package/dist/recipes/coordinator-locker.json +0 -45
- package/dist/recipes/locker.json +0 -45
- package/dist/recipes/pipeline-room-swarm.json +0 -50
- package/dist/recipes/subagent-message.json +0 -32
- package/dist/recipes/utility-actor-message.json +0 -23
- package/dist/scripts/actor-worker.mjs +0 -214
- package/dist/scripts/coordinator.mjs +0 -799
- package/docs/actor-messages.md +0 -225
- package/fixtures/protocol/actor-message-branch.json +0 -13
- package/fixtures/protocol/mailbox-contract.json +0 -15
- package/fixtures/protocol/room-message.json +0 -11
- package/fixtures/protocol/room-roster.json +0 -11
- package/fixtures/protocol/run-inbox-message.json +0 -9
- package/fixtures/protocol/run-outbox-event.json +0 -9
- package/lib/mailbox-loop.ts +0 -144
- package/lib/messages.ts +0 -151
- package/lib/rooms.ts +0 -939
- package/lib/runs-mailbox.ts +0 -208
- package/lib/runs-messages.ts +0 -252
- package/lib/runs-outbox.ts +0 -144
- package/lib/tools-mailbox.ts +0 -56
- package/recipes/actor-worker.json +0 -39
- package/recipes/coordinator-locker.json +0 -45
- package/recipes/locker.json +0 -45
- package/recipes/pipeline-room-swarm.json +0 -50
- package/recipes/subagent-message.json +0 -32
- package/recipes/utility-actor-message.json +0 -23
- package/scripts/actor-worker.mjs +0 -214
- package/scripts/coordinator.mjs +0 -799
|
@@ -18,20 +18,6 @@
|
|
|
18
18
|
"mode": "degraded-new-branch",
|
|
19
19
|
"tools": ""
|
|
20
20
|
},
|
|
21
|
-
"mailbox": {
|
|
22
|
-
"accepts": [
|
|
23
|
-
"control.reply",
|
|
24
|
-
"control.revise",
|
|
25
|
-
"control.kill"
|
|
26
|
-
],
|
|
27
|
-
"emits": [
|
|
28
|
-
"checkpoint.needs_input",
|
|
29
|
-
"checkpoint.continued",
|
|
30
|
-
"command.done",
|
|
31
|
-
"run.done",
|
|
32
|
-
"run.failed"
|
|
33
|
-
]
|
|
34
|
-
},
|
|
35
21
|
"template": [
|
|
36
22
|
{
|
|
37
23
|
"name": "checkpoint",
|
|
@@ -22,18 +22,6 @@
|
|
|
22
22
|
"constraints": "Split into bounded mutation zones and preserve integrator ownership of shared contracts.",
|
|
23
23
|
"tools": ""
|
|
24
24
|
},
|
|
25
|
-
"mailbox": {
|
|
26
|
-
"accepts": [
|
|
27
|
-
"control.kill"
|
|
28
|
-
],
|
|
29
|
-
"emits": [
|
|
30
|
-
"task_card.completed",
|
|
31
|
-
"pipeline.completed",
|
|
32
|
-
"command.done",
|
|
33
|
-
"run.done",
|
|
34
|
-
"run.failed"
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
25
|
"template": [
|
|
38
26
|
{
|
|
39
27
|
"name": "planner",
|
|
@@ -21,18 +21,6 @@
|
|
|
21
21
|
"artifact_path": "./docs-maintenance.md",
|
|
22
22
|
"tools": ""
|
|
23
23
|
},
|
|
24
|
-
"mailbox": {
|
|
25
|
-
"accepts": [
|
|
26
|
-
"control.kill"
|
|
27
|
-
],
|
|
28
|
-
"emits": [
|
|
29
|
-
"docs.completed",
|
|
30
|
-
"artifact.prepared",
|
|
31
|
-
"command.done",
|
|
32
|
-
"run.done",
|
|
33
|
-
"run.failed"
|
|
34
|
-
]
|
|
35
|
-
},
|
|
36
24
|
"template": [
|
|
37
25
|
{
|
|
38
26
|
"name": "docs_index",
|
|
@@ -21,18 +21,6 @@
|
|
|
21
21
|
"artifact_path": "./media-library.md",
|
|
22
22
|
"tools": ""
|
|
23
23
|
},
|
|
24
|
-
"mailbox": {
|
|
25
|
-
"accepts": [
|
|
26
|
-
"control.kill"
|
|
27
|
-
],
|
|
28
|
-
"emits": [
|
|
29
|
-
"media.completed",
|
|
30
|
-
"artifact.prepared",
|
|
31
|
-
"command.done",
|
|
32
|
-
"run.done",
|
|
33
|
-
"run.failed"
|
|
34
|
-
]
|
|
35
|
-
},
|
|
36
24
|
"template": [
|
|
37
25
|
{
|
|
38
26
|
"name": "playlist",
|
|
@@ -18,18 +18,6 @@
|
|
|
18
18
|
"merge_mode": "consensus-first",
|
|
19
19
|
"tools": ""
|
|
20
20
|
},
|
|
21
|
-
"mailbox": {
|
|
22
|
-
"accepts": [
|
|
23
|
-
"control.kill"
|
|
24
|
-
],
|
|
25
|
-
"emits": [
|
|
26
|
-
"quorum.completed",
|
|
27
|
-
"review.completed",
|
|
28
|
-
"command.done",
|
|
29
|
-
"run.done",
|
|
30
|
-
"run.failed"
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
21
|
"template": [
|
|
34
22
|
{
|
|
35
23
|
"parallel": true,
|
|
@@ -52,18 +52,6 @@
|
|
|
52
52
|
"min_successful_reviewers": 1,
|
|
53
53
|
"merge_policy": "Preserve partial reviewer reports, branch status, and degraded confidence markers. If reviewer evidence is below threshold, do not invent consensus."
|
|
54
54
|
},
|
|
55
|
-
"mailbox": {
|
|
56
|
-
"accepts": [
|
|
57
|
-
"control.kill"
|
|
58
|
-
],
|
|
59
|
-
"emits": [
|
|
60
|
-
"release.completed",
|
|
61
|
-
"artifact.prepared",
|
|
62
|
-
"command.done",
|
|
63
|
-
"run.done",
|
|
64
|
-
"run.failed"
|
|
65
|
-
]
|
|
66
|
-
},
|
|
67
55
|
"template": [
|
|
68
56
|
{
|
|
69
57
|
"name": "changelog",
|
|
@@ -27,18 +27,6 @@
|
|
|
27
27
|
"risk_notes": "No extra risk notes supplied.",
|
|
28
28
|
"tools": ""
|
|
29
29
|
},
|
|
30
|
-
"mailbox": {
|
|
31
|
-
"accepts": [
|
|
32
|
-
"control.kill"
|
|
33
|
-
],
|
|
34
|
-
"emits": [
|
|
35
|
-
"release.summary_ready",
|
|
36
|
-
"artifact.prepared",
|
|
37
|
-
"command.done",
|
|
38
|
-
"run.done",
|
|
39
|
-
"run.failed"
|
|
40
|
-
]
|
|
41
|
-
},
|
|
42
30
|
"artifacts": {
|
|
43
31
|
"summary": "{artifact_path}"
|
|
44
32
|
},
|
|
@@ -23,18 +23,6 @@
|
|
|
23
23
|
"artifact_path": "./repo-health.md",
|
|
24
24
|
"tools": ""
|
|
25
25
|
},
|
|
26
|
-
"mailbox": {
|
|
27
|
-
"accepts": [
|
|
28
|
-
"control.kill"
|
|
29
|
-
],
|
|
30
|
-
"emits": [
|
|
31
|
-
"repo_health.completed",
|
|
32
|
-
"artifact.prepared",
|
|
33
|
-
"command.done",
|
|
34
|
-
"run.done",
|
|
35
|
-
"run.failed"
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
26
|
"template": [
|
|
39
27
|
{
|
|
40
28
|
"name": "git_status",
|
|
@@ -20,17 +20,6 @@
|
|
|
20
20
|
"constraints": "Bound the question, preserve contradictions, and avoid publication-style certainty when evidence is weak.",
|
|
21
21
|
"tools": ""
|
|
22
22
|
},
|
|
23
|
-
"mailbox": {
|
|
24
|
-
"accepts": [
|
|
25
|
-
"control.kill"
|
|
26
|
-
],
|
|
27
|
-
"emits": [
|
|
28
|
-
"research.completed",
|
|
29
|
-
"command.done",
|
|
30
|
-
"run.done",
|
|
31
|
-
"run.failed"
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
23
|
"template": [
|
|
35
24
|
{
|
|
36
25
|
"name": "planner",
|
|
@@ -37,18 +37,6 @@
|
|
|
37
37
|
"min_successful_reviewers": 1,
|
|
38
38
|
"merge_policy": "Preserve partial reviewer reports, branch status, and degraded confidence markers. If reviewer evidence is below threshold, do not invent consensus."
|
|
39
39
|
},
|
|
40
|
-
"mailbox": {
|
|
41
|
-
"accepts": [
|
|
42
|
-
"control.kill"
|
|
43
|
-
],
|
|
44
|
-
"emits": [
|
|
45
|
-
"review.completed",
|
|
46
|
-
"pipeline.completed",
|
|
47
|
-
"command.done",
|
|
48
|
-
"run.done",
|
|
49
|
-
"run.failed"
|
|
50
|
-
]
|
|
51
|
-
},
|
|
52
40
|
"template": {
|
|
53
41
|
"name": "coordinator",
|
|
54
42
|
"values": {
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"async": true,
|
|
3
|
+
"args": [
|
|
4
|
+
"repo:path",
|
|
5
|
+
"lease_ms:int"
|
|
6
|
+
],
|
|
7
|
+
"defaults": {
|
|
8
|
+
"repo": "~/.pi/agent/extensions/pi-actors",
|
|
9
|
+
"lease_ms": "600000"
|
|
10
|
+
},
|
|
11
|
+
"control": [
|
|
12
|
+
"enqueue",
|
|
13
|
+
"claim",
|
|
14
|
+
"complete",
|
|
15
|
+
"fail",
|
|
16
|
+
"acquire",
|
|
17
|
+
"renew",
|
|
18
|
+
"release",
|
|
19
|
+
"stop"
|
|
20
|
+
],
|
|
21
|
+
"artifacts": {
|
|
22
|
+
"queue": "{state_dir}/queue.json",
|
|
23
|
+
"locks": "{state_dir}/locks.json",
|
|
24
|
+
"journal": "{state_dir}/journal.jsonl"
|
|
25
|
+
},
|
|
26
|
+
"template": "{repo}/scripts/locker.mjs serve --state-dir {state_dir} --lease-ms {lease_ms}"
|
|
27
|
+
}
|
|
@@ -17,14 +17,5 @@
|
|
|
17
17
|
"thinking": "off",
|
|
18
18
|
"tools": ""
|
|
19
19
|
},
|
|
20
|
-
"mailbox": {
|
|
21
|
-
"accepts": [
|
|
22
|
-
"control.kill"
|
|
23
|
-
],
|
|
24
|
-
"emits": [
|
|
25
|
-
"artifact.prepared",
|
|
26
|
-
"artifact.blocked"
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
20
|
"template": "pi -p --model {model} --thinking {thinking} {tools?--tools:--no-tools} {tools} Prepare a durable artifact. Target path: {artifact_path}. Format: {artifact_format}. Write policy: {write_policy}. Validation policy: {validation_policy}. Input: {input}"
|
|
30
21
|
}
|
|
@@ -17,15 +17,5 @@
|
|
|
17
17
|
"thinking": "off",
|
|
18
18
|
"tools": ""
|
|
19
19
|
},
|
|
20
|
-
"mailbox": {
|
|
21
|
-
"accepts": [
|
|
22
|
-
"control.continue",
|
|
23
|
-
"control.revise",
|
|
24
|
-
"control.kill"
|
|
25
|
-
],
|
|
26
|
-
"emits": [
|
|
27
|
-
"checkpoint.needs_input"
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
20
|
"template": "pi -p --model {model} --thinking {thinking} {tools?--tools:--no-tools} {tools} Create a bounded coordinator checkpoint. State to preserve: {state}. Question: {question}. Options/risk format: {options}. Resume policy: {resume_policy}. Output format: {output_format}"
|
|
31
21
|
}
|
|
@@ -15,16 +15,5 @@
|
|
|
15
15
|
"thinking": "off",
|
|
16
16
|
"tools": ""
|
|
17
17
|
},
|
|
18
|
-
"mailbox": {
|
|
19
|
-
"accepts": [
|
|
20
|
-
"control.kill"
|
|
21
|
-
],
|
|
22
|
-
"emits": [
|
|
23
|
-
"conflict_report.completed",
|
|
24
|
-
"command.done",
|
|
25
|
-
"run.done",
|
|
26
|
-
"run.failed"
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
18
|
"template": "pi -p --model {model} --thinking {thinking} {tools?--tools:--no-tools} {tools} Write a bounded conflict report. My change: {change}. Conflict: {conflict}. Preserve policy: {preserve_policy}. Output format: {output_format}"
|
|
30
19
|
}
|
|
@@ -16,16 +16,5 @@
|
|
|
16
16
|
"thinking": "medium",
|
|
17
17
|
"tools": ""
|
|
18
18
|
},
|
|
19
|
-
"mailbox": {
|
|
20
|
-
"accepts": [
|
|
21
|
-
"control.kill"
|
|
22
|
-
],
|
|
23
|
-
"emits": [
|
|
24
|
-
"contradiction.completed",
|
|
25
|
-
"command.done",
|
|
26
|
-
"run.done",
|
|
27
|
-
"run.failed"
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
19
|
"template": "pi -p --model {model} --thinking {thinking} {tools?--tools:--no-tools} {tools} Map contradictions in these inputs: {inputs}. Focus: {focus}. Resolution policy: {resolution_policy}. Output format: {output_format}"
|
|
31
20
|
}
|
|
@@ -18,16 +18,5 @@
|
|
|
18
18
|
"thinking": "medium",
|
|
19
19
|
"tools": ""
|
|
20
20
|
},
|
|
21
|
-
"mailbox": {
|
|
22
|
-
"accepts": [
|
|
23
|
-
"control.kill"
|
|
24
|
-
],
|
|
25
|
-
"emits": [
|
|
26
|
-
"critique.completed",
|
|
27
|
-
"command.done",
|
|
28
|
-
"run.done",
|
|
29
|
-
"run.failed"
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
21
|
"template": "pi -p --model {model} --thinking {thinking} {tools?--tools:--no-tools} {tools} Critique this target through lens {lens}: {target}. Constraints: {constraints}. Risk policy: {risk_policy}. Output format: {output_format}"
|
|
33
22
|
}
|
|
@@ -16,16 +16,5 @@
|
|
|
16
16
|
"thinking": "medium",
|
|
17
17
|
"tools": ""
|
|
18
18
|
},
|
|
19
|
-
"mailbox": {
|
|
20
|
-
"accepts": [
|
|
21
|
-
"control.kill"
|
|
22
|
-
],
|
|
23
|
-
"emits": [
|
|
24
|
-
"evidence.completed",
|
|
25
|
-
"command.done",
|
|
26
|
-
"run.done",
|
|
27
|
-
"run.failed"
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
19
|
"template": "pi -p --model {model} --thinking {thinking} {tools?--tools:--no-tools} {tools} Build an evidence map for question: {question}. Sources: {sources}. Source policy: {source_policy}. Output format: {output_format}"
|
|
31
20
|
}
|
|
@@ -17,15 +17,5 @@
|
|
|
17
17
|
"thinking": "off",
|
|
18
18
|
"tools": ""
|
|
19
19
|
},
|
|
20
|
-
"mailbox": {
|
|
21
|
-
"accepts": [
|
|
22
|
-
"control.reply",
|
|
23
|
-
"control.revise",
|
|
24
|
-
"control.kill"
|
|
25
|
-
],
|
|
26
|
-
"emits": [
|
|
27
|
-
"checkpoint.continued"
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
20
|
"template": "pi -p --model {model} --thinking {thinking} {tools?--tools:--no-tools} {tools} Continue from checkpoint using mode {mode}. Checkpoint: {checkpoint}. Coordinator reply: {reply}. Continuity policy: {continuity_policy}. Output format: {output_format}"
|
|
31
21
|
}
|
|
@@ -17,17 +17,6 @@
|
|
|
17
17
|
"thinking": "{current_thinking}",
|
|
18
18
|
"tools": ""
|
|
19
19
|
},
|
|
20
|
-
"mailbox": {
|
|
21
|
-
"accepts": [
|
|
22
|
-
"control.kill"
|
|
23
|
-
],
|
|
24
|
-
"emits": [
|
|
25
|
-
"judge.completed",
|
|
26
|
-
"command.done",
|
|
27
|
-
"run.done",
|
|
28
|
-
"run.failed"
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
20
|
"accept_output": "review_evidence",
|
|
32
21
|
"template": "pi -p --model {model} --thinking {thinking} {tools?--tools:--no-tools} {tools} Judge this report: {report}. Rubric: {rubric}. Evidence: {evidence}. Begin the response with ACTOR_REVIEW_RESULT on its own line. Output format: {output_format}"
|
|
33
22
|
}
|
|
@@ -19,17 +19,6 @@
|
|
|
19
19
|
"thinking": "{current_thinking}",
|
|
20
20
|
"tools": ""
|
|
21
21
|
},
|
|
22
|
-
"mailbox": {
|
|
23
|
-
"accepts": [
|
|
24
|
-
"control.kill"
|
|
25
|
-
],
|
|
26
|
-
"emits": [
|
|
27
|
-
"merge.completed",
|
|
28
|
-
"command.done",
|
|
29
|
-
"run.done",
|
|
30
|
-
"run.failed"
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
22
|
"accept_output": "review_evidence",
|
|
34
23
|
"template": "pi -p --model {model} --thinking {thinking} {tools?--tools:--no-tools} {tools} Merge these subagent outputs using mode {mode}: {inputs}. Merge policy: {merge_policy}. Risk policy: {risk_policy}. Begin the response with ACTOR_REVIEW_RESULT on its own line. Output format: {output_format}"
|
|
35
24
|
}
|
|
@@ -15,17 +15,6 @@
|
|
|
15
15
|
"thinking": "{current_thinking}",
|
|
16
16
|
"tools": ""
|
|
17
17
|
},
|
|
18
|
-
"mailbox": {
|
|
19
|
-
"accepts": [
|
|
20
|
-
"control.kill"
|
|
21
|
-
],
|
|
22
|
-
"emits": [
|
|
23
|
-
"normalize.completed",
|
|
24
|
-
"command.done",
|
|
25
|
-
"run.done",
|
|
26
|
-
"run.failed"
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
18
|
"accept_output": "review_evidence",
|
|
30
19
|
"template": "pi -p --model {model} --thinking {thinking} {tools?--tools:--no-tools} {tools} Normalize this subagent output. Begin the response with ACTOR_REVIEW_RESULT on its own line. Target format: {format}. Preservation policy: {preservation_policy}. Input: {input}"
|
|
31
20
|
}
|
|
@@ -16,16 +16,5 @@
|
|
|
16
16
|
"thinking": "medium",
|
|
17
17
|
"tools": ""
|
|
18
18
|
},
|
|
19
|
-
"mailbox": {
|
|
20
|
-
"accepts": [
|
|
21
|
-
"control.kill"
|
|
22
|
-
],
|
|
23
|
-
"emits": [
|
|
24
|
-
"plan.completed",
|
|
25
|
-
"command.done",
|
|
26
|
-
"run.done",
|
|
27
|
-
"run.failed"
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
19
|
"template": "pi -p --model {model} --thinking {thinking} {tools?--tools:--no-tools} {tools} Plan how to reach this goal: {goal}. Scope: {scope}. Constraints: {constraints}. Output format: {output_format}"
|
|
31
20
|
}
|
|
@@ -14,16 +14,5 @@
|
|
|
14
14
|
"tools": "",
|
|
15
15
|
"output_format": "Reply exactly: ACTOR_PREFLIGHT_OK"
|
|
16
16
|
},
|
|
17
|
-
"mailbox": {
|
|
18
|
-
"accepts": [
|
|
19
|
-
"control.kill"
|
|
20
|
-
],
|
|
21
|
-
"emits": [
|
|
22
|
-
"preflight.completed",
|
|
23
|
-
"command.done",
|
|
24
|
-
"run.done",
|
|
25
|
-
"run.failed"
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
17
|
"template": "pi -p --model {model} --thinking {thinking} {tools?--tools:--no-tools} {tools} Preflight check for stage {stage}. Confirm this model, thinking level, and tool policy can start before expensive fanout. Do not inspect files. {output_format}"
|
|
29
18
|
}
|
|
@@ -12,15 +12,5 @@
|
|
|
12
12
|
"tools": "",
|
|
13
13
|
"output_format": "Concise Markdown with assumptions and next actions."
|
|
14
14
|
},
|
|
15
|
-
"mailbox": {
|
|
16
|
-
"accepts": [
|
|
17
|
-
"control.kill"
|
|
18
|
-
],
|
|
19
|
-
"emits": [
|
|
20
|
-
"command.done",
|
|
21
|
-
"run.done",
|
|
22
|
-
"run.failed"
|
|
23
|
-
]
|
|
24
|
-
},
|
|
25
15
|
"template": "pi -p --model {model} --thinking {thinking} {tools?--tools:--no-tools} {tools} {prompt}. Output format: {output_format}"
|
|
26
16
|
}
|
|
@@ -15,16 +15,6 @@
|
|
|
15
15
|
"tools": "",
|
|
16
16
|
"output_format": "Vote-style Markdown: Verdict, Rationale, Evidence, Confidence."
|
|
17
17
|
},
|
|
18
|
-
"mailbox": {
|
|
19
|
-
"accepts": [
|
|
20
|
-
"control.kill"
|
|
21
|
-
],
|
|
22
|
-
"emits": [
|
|
23
|
-
"command.done",
|
|
24
|
-
"run.done",
|
|
25
|
-
"run.failed"
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
18
|
"repeat": "{models.length}",
|
|
29
19
|
"parallel": true,
|
|
30
20
|
"failure": "branch",
|
|
@@ -47,20 +47,6 @@
|
|
|
47
47
|
"merger_model": "{current_model}",
|
|
48
48
|
"judge_model": "{current_model}"
|
|
49
49
|
},
|
|
50
|
-
"mailbox": {
|
|
51
|
-
"accepts": [
|
|
52
|
-
"control.kill"
|
|
53
|
-
],
|
|
54
|
-
"emits": [
|
|
55
|
-
"review.completed",
|
|
56
|
-
"verification.completed",
|
|
57
|
-
"merge.completed",
|
|
58
|
-
"judge.completed",
|
|
59
|
-
"command.done",
|
|
60
|
-
"run.done",
|
|
61
|
-
"run.failed"
|
|
62
|
-
]
|
|
63
|
-
},
|
|
64
50
|
"template": [
|
|
65
51
|
{
|
|
66
52
|
"parallel": true,
|
|
@@ -21,17 +21,6 @@
|
|
|
21
21
|
"thinking": "{current_thinking}",
|
|
22
22
|
"tools": ""
|
|
23
23
|
},
|
|
24
|
-
"mailbox": {
|
|
25
|
-
"accepts": [
|
|
26
|
-
"control.kill"
|
|
27
|
-
],
|
|
28
|
-
"emits": [
|
|
29
|
-
"review.completed",
|
|
30
|
-
"command.done",
|
|
31
|
-
"run.done",
|
|
32
|
-
"run.failed"
|
|
33
|
-
]
|
|
34
|
-
},
|
|
35
24
|
"accept_output": "review_evidence",
|
|
36
25
|
"template": "pi -p --model {model} --thinking {thinking} {tools?--tools:--no-tools} {tools} Review {scope} through this lens: {lens}. Instructions: {instructions}. Evidence policy: {evidence_policy}. Risk policy: {risk_policy}. Begin the response with ACTOR_REVIEW_RESULT on its own line. Output format: {output_format}"
|
|
37
26
|
}
|
|
@@ -18,16 +18,5 @@
|
|
|
18
18
|
"thinking": "off",
|
|
19
19
|
"tools": ""
|
|
20
20
|
},
|
|
21
|
-
"mailbox": {
|
|
22
|
-
"accepts": [
|
|
23
|
-
"control.kill"
|
|
24
|
-
],
|
|
25
|
-
"emits": [
|
|
26
|
-
"task_card.completed",
|
|
27
|
-
"command.done",
|
|
28
|
-
"run.done",
|
|
29
|
-
"run.failed"
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
21
|
"template": "pi -p --model {model} --thinking {thinking} {tools?--tools:--no-tools} {tools} Create a bounded implementation task card. Goal: {goal}. Allowed: {allowed}. Avoided: {avoided}. Checks: {checks}. Handoff format: {handoff_format}"
|
|
33
22
|
}
|
|
@@ -11,15 +11,5 @@
|
|
|
11
11
|
"thinking": "off",
|
|
12
12
|
"output_format": "Concise Markdown with assumptions and next actions."
|
|
13
13
|
},
|
|
14
|
-
"mailbox": {
|
|
15
|
-
"accepts": [
|
|
16
|
-
"control.kill"
|
|
17
|
-
],
|
|
18
|
-
"emits": [
|
|
19
|
-
"command.done",
|
|
20
|
-
"run.done",
|
|
21
|
-
"run.failed"
|
|
22
|
-
]
|
|
23
|
-
},
|
|
24
14
|
"template": "pi -p --model {model} --thinking {thinking} --tools {tools} {prompt}. Output format: {output_format}"
|
|
25
15
|
}
|
|
@@ -18,17 +18,6 @@
|
|
|
18
18
|
"thinking": "{current_thinking}",
|
|
19
19
|
"tools": ""
|
|
20
20
|
},
|
|
21
|
-
"mailbox": {
|
|
22
|
-
"accepts": [
|
|
23
|
-
"control.kill"
|
|
24
|
-
],
|
|
25
|
-
"emits": [
|
|
26
|
-
"verification.completed",
|
|
27
|
-
"command.done",
|
|
28
|
-
"run.done",
|
|
29
|
-
"run.failed"
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
21
|
"accept_output": "review_evidence",
|
|
33
22
|
"template": "pi -p --model {model} --thinking {thinking} {tools?--tools:--no-tools} {tools} Verify this claim against the provided evidence. Claim: {claim}. Evidence or artifact paths: {evidence}. Acceptance: {acceptance}. Evidence policy: {evidence_policy}. Begin the response with ACTOR_REVIEW_RESULT on its own line. Output format: {output_format}"
|
|
34
23
|
}
|
|
@@ -23,16 +23,6 @@
|
|
|
23
23
|
"report": "{report_path}",
|
|
24
24
|
"summary": "{summary_path}"
|
|
25
25
|
},
|
|
26
|
-
"mailbox": {
|
|
27
|
-
"accepts": [
|
|
28
|
-
"control.kill"
|
|
29
|
-
],
|
|
30
|
-
"emits": [
|
|
31
|
-
"command.done",
|
|
32
|
-
"run.done",
|
|
33
|
-
"run.failed"
|
|
34
|
-
]
|
|
35
|
-
},
|
|
36
26
|
"repeat": "{prompts.length}",
|
|
37
27
|
"parallel": true,
|
|
38
28
|
"failure": "branch",
|
package/recipes/tool-review.json
CHANGED
|
@@ -10,15 +10,5 @@
|
|
|
10
10
|
"thinking": "{current_thinking}"
|
|
11
11
|
},
|
|
12
12
|
"description": "Read-only background reviewer for one immutable 36-tool evolution portfolio.",
|
|
13
|
-
"mailbox": {
|
|
14
|
-
"accepts": [
|
|
15
|
-
"control.kill"
|
|
16
|
-
],
|
|
17
|
-
"emits": [
|
|
18
|
-
"command.done",
|
|
19
|
-
"run.done",
|
|
20
|
-
"run.failed"
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
13
|
"template": "pi -p --model {model} --thinking {thinking} --no-tools @{input_path} Review the attached immutable pi-actors active-tool portfolio. Evaluate all 36 tools independently using lifetime and revision usage, adaptability, redundancy, safety, contract quality, and likely future usefulness. Treat source/name and sha256 fields as batch-local opaque occurrence/content-group identifiers, return them verbatim, and infer exact duplication only from a shared content group. Choose exactly one keep, evolve, demote, or merge decision per tool; there is no action quota. evolve may only rename one unchanged captured recipe, demote moves the unchanged recipe to draft memory, and merge may only deduplicate at least two canonically identical captured recipes. Never return recipe or outputs fields; replace and split require explicit operator-authored mutation and are unavailable to automatic review. Do not mutate, register, move, or delete recipes. End stdout with TOOL_REVIEW_RESULT on its own line followed by exactly one JSON object with reviewId, createdAt, and decisions."
|
|
24
14
|
}
|