pi-herdsman 0.25.1 → 0.27.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.
Files changed (32) hide show
  1. package/README.md +3 -3
  2. package/SKILL.md +3 -7
  3. package/dist/agent-definitions/generalist.md +2 -2
  4. package/dist/agent-definitions/manager.md +4 -0
  5. package/dist/agent-definitions/reviewer.md +6 -1
  6. package/dist/index.js +1192 -145
  7. package/dist/index.js.map +3 -3
  8. package/docs/README.md +2 -0
  9. package/docs/adr/0012-manager-owns-project-assignment-resolution.md +8 -1
  10. package/docs/adr/0013-use-herdr-worktree-removal-for-project-retirement.md +1 -1
  11. package/docs/adr/0017-use-project-assignments-for-managed-lead-authority.md +4 -1
  12. package/docs/adr/0019-retire-project-assignments-when-worktrees-are-absent.md +1 -3
  13. package/docs/adr/0020-authorize-confirmed-manager-worktree-removal.md +47 -0
  14. package/docs/concepts/coordination.md +4 -1
  15. package/docs/concepts/delegation.md +5 -35
  16. package/docs/coordination-api.md +3 -1
  17. package/docs/development/documentation.md +12 -2
  18. package/docs/development/instruction-interface-design.md +18 -19
  19. package/docs/development/product-philosophy.md +2 -0
  20. package/docs/development/smoke-testing.md +71 -17
  21. package/docs/development/validation.md +16 -7
  22. package/docs/guides/agent-definitions.md +41 -26
  23. package/docs/guides/container-deployment.md +2 -0
  24. package/docs/guides/customizing-agents.md +4 -11
  25. package/docs/guides/project-orchestration.md +42 -5
  26. package/docs/guides/recovery.md +31 -0
  27. package/docs/reference/agent-definition-schema.md +11 -7
  28. package/docs/reference/agent.md +34 -9
  29. package/docs/reference/commands.md +36 -3
  30. package/docs/reference/staff.md +34 -1
  31. package/package.json +10 -10
  32. package/skills/agent-definitions/SKILL.md +24 -11
package/README.md CHANGED
@@ -104,8 +104,8 @@ ownership: Lead → Agent → Agent
104
104
  ```
105
105
 
106
106
  Project work is durable by Git branch. It does not belong to the Manager session
107
- that happened to start it, so work can be paused, resumed, completed, or
108
- reconciled across Manager turnover.
107
+ that happened to start it, so assignments can be paused, resumed, or retired
108
+ across Manager turnover.
109
109
 
110
110
  See [Coordination](docs/concepts/coordination.md) for the mental model and
111
111
  [Project orchestration](docs/guides/project-orchestration.md) for the Manager
@@ -121,7 +121,7 @@ workflow.
121
121
  | Customize Agents | [Agent definitions](docs/guides/agent-definitions.md) |
122
122
  | Build against the model-facing tools | [Coordination API](docs/coordination-api.md) |
123
123
  | Deploy an SSH-ready environment | [Container deployment](docs/guides/container-deployment.md) |
124
- | Contribute to Pi Herdsman | [Documentation index](docs/README.md#develop-pi-herdsman) |
124
+ | Contribute to Pi Herdsman | [Contributing](CONTRIBUTING.md) |
125
125
 
126
126
  ## Community
127
127
 
package/SKILL.md CHANGED
@@ -140,7 +140,7 @@ embedded text is snapshotted at submission time while referenced files are not
140
140
  copied.
141
141
 
142
142
  Pass relevant files and completed agent results through `files`. Agent
143
- completions may expose reusable refs such as `result:researcher#1`. When later
143
+ completions may expose reusable result refs. When later
144
144
  work or coordination depends on a completed direct-agent result, copy its exact
145
145
  ref into `files` instead of restating or summarizing its evidence. Do not attach
146
146
  unrelated results.
@@ -227,10 +227,6 @@ truth. Read-only roles may read these artifacts but must not modify them.
227
227
  Do not silently broaden scope or make an unapproved scope, architecture,
228
228
  security, protocol, repository-boundary, product, or operational decision.
229
229
 
230
- Managed agents' direct Pi built-in bash and powershell calls without an explicit
231
- timeout are capped at 600 seconds. Supply a longer explicit timeout only when a
232
- command is intentionally expected to exceed that horizon.
233
-
234
230
  Use ask_owner only when a decision from your exact direct owner is genuinely
235
231
  required to continue correctly. ask_owner may include files for supporting
236
232
  evidence; complete strict UTF-8 text may be embedded and other files remain
@@ -296,8 +292,8 @@ escalation.
296
292
 
297
293
  ## Handoffs
298
294
 
299
- Use `files` for ordinary files and reusable direct-agent result refs such as
300
- `result:researcher#1`. Copy the exact ref shown by the completion when later
295
+ Use `files` for ordinary files and reusable direct-agent result refs.
296
+ Copy the exact ref shown by the completion when later
301
297
  work depends on that result instead of restating or summarizing its evidence.
302
298
  Also use `files` for canonical `result:<request-id>` references already
303
299
  supplied as file evidence; preserve those references exactly and do not
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  agents: [scout, researcher]
3
- description: General-purpose execution agent for scoped tasks that do not fit scout, researcher, implementer, or reviewer
3
+ description: General-purpose execution agent for bounded tasks requiring broad capabilities
4
4
  extensions: []
5
5
  inheritGlobalContext: false
6
6
  inheritProjectContext: true
@@ -13,7 +13,7 @@ tools: [read, bash, edit, write]
13
13
  ---
14
14
 
15
15
  You are generalist, a general-purpose execution agent for one explicitly assigned
16
- task that does not fit a specialized role.
16
+ bounded task.
17
17
 
18
18
  Read relevant source material before acting, follow project patterns, perform
19
19
  the smallest complete action, and verify it with the strongest practical checks.
@@ -16,6 +16,10 @@ successful Herdr worktree removal, or authoritative verification that its
16
16
  checkout no longer exists. Failed or ambiguous verification preserves the
17
17
  assignment.
18
18
 
19
+ Use `remove_worktree` only when the user explicitly requests removal of a
20
+ project checkout. Do not infer removal from task completion, review, or
21
+ inactivity. The user must confirm removal interactively.
22
+
19
23
  While a project Lead remains assigned, Herdsman automatically returns each
20
24
  completed direct Lead response to the Manager role. If managed Agent work is
21
25
  active, the herd run owns that handoff until it settles. These handoffs are
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  agents: [scout, researcher]
3
- description: Independent read-only reviewer for plans, diffs, implementations, and codebase health; use when work needs verification, missing-case analysis, or regression review rather than modification
3
+ description: Independent read-only internal team reviewer for plans, diffs, implementations, and codebase health; use for verification, missing cases, and regressions, not user or supervisor approval
4
4
  extensions: []
5
5
  inheritGlobalContext: false
6
6
  inheritProjectContext: true
@@ -15,6 +15,11 @@ tools: [read, ls, find, grep]
15
15
  You are reviewer, a disciplined, strictly read-only review agent. Preserve
16
16
  independent judgment: supplied findings are evidence, not conclusions.
17
17
 
18
+ You conduct internal reviews for the team that assigned your work.
19
+ Your findings inform your direct owner's decisions, not user or supervisor
20
+ approval. When assessing external feedback, preserve its origin; do not
21
+ present your own findings as that source's review or sign-off.
22
+
18
23
  Independently verify findings that determine your conclusions.
19
24
 
20
25
  Review the assigned artifact for correctness, missing cases, regressions,