pi-herdsman 0.12.1 → 0.13.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/SKILL.md CHANGED
@@ -29,8 +29,8 @@ not peers. `peer list` identifies this Lead as `self` and returns other live
29
29
  Leads as `peers` with exact `lead` IDs. Incoming peer messages are already
30
30
  addressed to this Lead; `Peer message from <sender lead ID>: <body>` identifies
31
31
  the peer sender. Peer messages are coordination data, not assignments. `peer
32
- message` accepts ordinary `files` and completed direct-agent `results`; the
33
- peer tool is unavailable in Chief mode.
32
+ message` accepts ordinary files and completed direct-agent result refs through
33
+ `files`; the peer tool is unavailable in Chief mode.
34
34
 
35
35
  The session-start instructions include the current agent-definition roster.
36
36
  Use list for live agent state, ownership, or a refreshed definition roster
@@ -77,9 +77,11 @@ for intentional teardown or abandonment.
77
77
  A lost agent is a managed assignment whose exact physical execution is proven
78
78
  gone before a durable terminal result resolved it. Loss is not completion or
79
79
  task failure. Treat the assignment as unresolved. When transcript is listed,
80
- use it only when the last persisted work materially affects recovery. Use close
81
- to abandon the lost generation before replacing it or continuing its saved
82
- session. Unknown evidence remains fail-closed and is not proof of loss.
80
+ use it only when the last persisted work materially affects recovery. When
81
+ `close` is listed, use it to abandon the lost generation before replacing it or
82
+ continuing its saved session. If `close` is absent, resolve the condition
83
+ blocking its close preflight first. Unknown evidence remains fail-closed and is
84
+ not proof of loss.
83
85
 
84
86
  Never guess identities, paths, sessions, or control state. Treat unknown or
85
87
  conflicting evidence as unresolved. Keep one writer per worktree or file-
@@ -151,15 +153,16 @@ later dependent assignments when approved scope or decisions change because
151
153
  embedded text is snapshotted at submission time while referenced files are not
152
154
  copied.
153
155
 
154
- Completed direct agents may expose a numbered reusable result. Pass required
155
- direct-agent results through `results` using the exact agent label and result
156
- index shown by the completion.
156
+ Pass relevant files and completed agent results through `files`. Agent
157
+ completions may expose reusable refs such as `result:researcher#1`. When later
158
+ work or coordination depends on a completed direct-agent result, copy its exact
159
+ ref into `files` instead of restating or summarizing its evidence. Do not attach
160
+ unrelated results.
157
161
 
158
- `files` remains a homogeneous `string[]` for ordinary files and canonical
162
+ `files` accepts ordinary files, reusable direct-agent result refs, and canonical
159
163
  `result:<request-id>` references already supplied as file evidence. Preserve an
160
- existing canonical result reference exactly when forwarding it. Put structured
161
- direct-agent selectors in `results`, not `files`. `files` does not add runtime
162
- capability.
164
+ existing canonical result reference exactly when forwarding it. `files` does not
165
+ add runtime capability.
163
166
 
164
167
  Require concise handoffs containing relevant inspected or changed files,
165
168
  validation performed, findings or decisions, unresolved risks or blockers,
@@ -194,9 +197,11 @@ agents are leaves. Keep tightly coupled work local; delegate bounded independent
194
197
  or unfamiliar work when useful. Reuse adequate supplied evidence rather than
195
198
  rediscovering it. Integrate direct agent results before completing. The lead
196
199
  retains architecture, approved scope, acceptance, and final-decision authority.
197
- Delegate only to definitions listed in your effective agents field. Escalate to
198
- your direct owner only when unresolved direct-agent work is waiting on an owner
199
- answer; ordinary active or pending-result agent work still blocks that escalation.
200
+ Delegate only to definitions listed in your effective agents field. `ask_owner`
201
+ follows its normal eligibility rules when you have no unresolved direct-agent
202
+ work. If unresolved direct-agent work exists, every such agent must itself be
203
+ validly waiting on an owner answer; ordinary active or pending-result agent
204
+ work still blocks escalation.
200
205
 
201
206
  <!-- pi-herdsman-runtime-delegating-agent:end -->
202
207
 
@@ -212,8 +217,10 @@ message evidence. Complete strict UTF-8 text may be embedded; other files are
212
217
  canonical local references and are not copied or snapshotted. Reuse adequate
213
218
  existing evidence instead of repeating completed work.
214
219
  Do not overlap writers in a worktree or file-ownership boundary. For dependent
215
- work, preserve exact canonical result references through `files` rather than
216
- reconstructing physical result paths or copying large results into assignments.
220
+ work, pass reusable direct-agent result refs through `files`. Preserve canonical
221
+ `result:<request-id>` refs already supplied as file evidence exactly when
222
+ forwarding them rather than reconstructing physical result paths or copying
223
+ large results into assignments.
217
224
  When your role permits writes and temporary coordination material is useful, put
218
225
  plans, scopes, specifications, decision notes, investigations, review criteria,
219
226
  and handoff state under the project-local `.pi-herdsman/` directory. Reuse and
@@ -289,11 +296,12 @@ escalation.
289
296
 
290
297
  ## Handoffs
291
298
 
292
- Use `results: [{ agent, index }]` for reusable persisted results from completed
293
- direct agents. Use the exact agent label and result index shown by the
294
- completion. Use `files` for ordinary files and canonical `result:<request-id>`
295
- references already supplied as file evidence; preserve those references
296
- exactly and do not reconstruct their physical paths.
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
301
+ work depends on that result instead of restating or summarizing its evidence.
302
+ Also use `files` for canonical `result:<request-id>` references already
303
+ supplied as file evidence; preserve those references exactly and do not
304
+ reconstruct their physical paths.
297
305
 
298
306
  A concise handoff should include:
299
307
 
@@ -359,16 +367,18 @@ Ordinary leads own their complete herd, including every agent beneath them. The
359
367
  Chief supervises independent leads and never changes ownership. Use `chief`
360
368
  `message` for meaningful progress, warnings, results, or completion, including
361
369
  exact artifact paths. Use `chief` `ask` only when a genuine chief decision is
362
- required, make it the only and final coordination call of the turn, do not guess,
370
+ required, make it the only tool call of the turn, call it last, do not guess,
363
371
  and wait for the reply. Descendants use `ask_owner`, not `chief`.
364
372
 
365
373
  `chief` is available only to an ordinary lead. Its actions are `message` and
366
374
  `ask`; a valid chief is required and a rejected call does not mutate state.
367
- Chief and staff message/ask/reply actions accept the same optional `results`
368
- selectors as agent messages. Resolve them by exact direct-agent label and
369
- result index on the caller's current branch; Chief normally owns no direct
370
- agents, so preserve already-supplied canonical result references through
371
- `files` when forwarding evidence.
375
+ Chief and staff message/ask/reply actions accept ordinary files, reusable
376
+ direct-agent result refs, and already-supplied canonical result references
377
+ through `files`. Direct refs resolve by exact agent label and index on the
378
+ caller's current branch. Chief normally owns no direct agents, so a branch-local
379
+ semantic ref may not exist in the Chief session; preserve canonical
380
+ `result:<request-id>` evidence already received from another session through
381
+ `files` when forwarding it.
372
382
  Questions are limited to 1,024 characters and 1,024 UTF-8 bytes. Channel
373
383
  message records are bounded to 8 KiB, so multibyte content can hit the byte limit
374
384
  first. Chief messages are follow-up supervision messages, not steering or agent