pi-herdsman 0.5.0 → 0.5.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.
- package/README.md +13 -9
- package/dist/index.js +58 -58
- package/docs/concepts/agents.md +2 -0
- package/docs/concepts/lifecycle.md +8 -7
- package/docs/development/validation.md +0 -1
- package/docs/getting-started.md +1 -1
- package/docs/reference/agent.md +3 -2
- package/package.json +6 -2
package/docs/concepts/agents.md
CHANGED
|
@@ -61,6 +61,8 @@ They are not public alternatives to the `agent` identity.
|
|
|
61
61
|
|
|
62
62
|
## Ownership
|
|
63
63
|
|
|
64
|
+
A lead and its recursively owned agent hierarchy form a **herd**, Herdsman's term for an agent fleet.
|
|
65
|
+
|
|
64
66
|
Each agent has one exact direct owner Pi session.
|
|
65
67
|
|
|
66
68
|
A lead Pi session owns its direct agents.
|
|
@@ -64,9 +64,10 @@ control until convergence is complete.
|
|
|
64
64
|
|
|
65
65
|
Delegation does not suspend the owning controller until an agent finishes.
|
|
66
66
|
|
|
67
|
-
`delegate` returns after the task has been
|
|
68
|
-
independently in its managed Pi session
|
|
69
|
-
other useful work and, for a lead Pi
|
|
67
|
+
`delegate` returns after the task has been atomically recorded for controller
|
|
68
|
+
restart recovery. The agent then runs independently in its managed Pi session
|
|
69
|
+
while the owner remains available for other useful work and, for a lead Pi
|
|
70
|
+
session, continued user interaction.
|
|
70
71
|
|
|
71
72
|
The owner must not poll for completion. It may continue with work that does not
|
|
72
73
|
depend on the result or end its turn normally. Agent completion or an
|
|
@@ -118,8 +119,8 @@ assignment ownership.
|
|
|
118
119
|
result.
|
|
119
120
|
|
|
120
121
|
Steering is at-least-once at the agent boundary: an agent can apply a steer
|
|
121
|
-
before its acknowledgement write
|
|
122
|
-
|
|
122
|
+
before its acknowledgement write is recorded. If that acknowledgement write
|
|
123
|
+
fails, retrying the same request may apply the steer again.
|
|
123
124
|
|
|
124
125
|
Use `steer` only when `agent list` reports `steer` in `available_actions`.
|
|
125
126
|
|
|
@@ -137,9 +138,9 @@ The delegating agent's own state projection remains authoritative.
|
|
|
137
138
|
|
|
138
139
|
## Restart and recovery
|
|
139
140
|
|
|
140
|
-
|
|
141
|
+
Atomic mailbox state allows exact managed agents to be reconstructed after a
|
|
141
142
|
controller restart. Live metadata can be rebuilt only when exact herdr and Pi
|
|
142
|
-
identity still match.
|
|
143
|
+
identity still match; this does not claim explicit power-loss durability.
|
|
143
144
|
|
|
144
145
|
Unknown evidence remains `unknown`; recovery never rebinds stale metadata to a
|
|
145
146
|
different agent generation.
|
package/docs/getting-started.md
CHANGED
|
@@ -11,7 +11,7 @@ path.
|
|
|
11
11
|
You need:
|
|
12
12
|
|
|
13
13
|
- [herdr](https://github.com/herdrdev/herdr) `>=0.9.0`;
|
|
14
|
-
- Pi `>=0.84.2 <0.86.0` (
|
|
14
|
+
- Pi `>=0.84.2 <0.86.0` (supported);
|
|
15
15
|
- Node `>=22.19.0`.
|
|
16
16
|
|
|
17
17
|
Install or refresh the herdr Pi integration:
|
package/docs/reference/agent.md
CHANGED
|
@@ -66,8 +66,9 @@ label is occupied, continuation fails with `agent_label_exists`.
|
|
|
66
66
|
|
|
67
67
|
Successful `delegate` results use `action: "delegate"`; successful `continue`
|
|
68
68
|
results use `action: "continue"`. Both include `agent`, `definition`, request,
|
|
69
|
-
session, and startup evidence where available. Both return after
|
|
70
|
-
|
|
69
|
+
session, and startup evidence where available. Both return after atomic
|
|
70
|
+
recording for controller restart recovery, not completion. A terminal result
|
|
71
|
+
makes the exact session identity
|
|
71
72
|
prominent for a later `continue` call.
|
|
72
73
|
|
|
73
74
|
## `list`
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-herdsman",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "Asynchronous Pi agent orchestration with nested delegation, parallel execution, and supervision in herdr.",
|
|
5
|
+
"description": "Asynchronous Pi subagents and agent fleet orchestration with nested delegation, parallel execution, and supervision in herdr.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
"coding-agents",
|
|
25
25
|
"multi-agent",
|
|
26
26
|
"multi-agent-coding",
|
|
27
|
+
"agent-fleet",
|
|
28
|
+
"parallel-agents",
|
|
29
|
+
"background-agents",
|
|
30
|
+
"nested-agents",
|
|
27
31
|
"agent-orchestration",
|
|
28
32
|
"orchestration",
|
|
29
33
|
"delegation",
|