@sjawhar/pi-envoy 10.17.7 → 10.17.9

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/dist/envoy.js CHANGED
@@ -35345,7 +35345,7 @@ function askPromptQuestionHead(question) {
35345
35345
  var ASK_SELF_CHECK_PROMPT = (asks) => {
35346
35346
  const askLimit = 5;
35347
35347
  const questionLimit = 120;
35348
- const promptAsks = asks.length === 0 ? "There are no open asks in Dispatch." : [
35348
+ const promptAsks = asks.length === 0 ? "You have no open asks in Dispatch." : [
35349
35349
  "Your open asks in Dispatch:",
35350
35350
  ...asks.slice(0, askLimit).map((ask) => {
35351
35351
  const firstLine = askPromptQuestionHead(ask.question);
@@ -35357,7 +35357,7 @@ var ASK_SELF_CHECK_PROMPT = (asks) => {
35357
35357
  `);
35358
35358
  return `Your run has just ended. ${promptAsks}
35359
35359
 
35360
- Are you right now waiting on a human for anything none of those asks covers? Answer with exactly one word and nothing else: WAITING or PROCEEDING. ` + "WAITING \u2014 you stopped because you need a decision, an approval, or information from a human. " + "PROCEEDING \u2014 you finished, you will carry on by yourself, or you are waiting only on tools, " + "subagents, or events.";
35360
+ Are you right now waiting on a human for anything none of those asks covers? Answer with exactly one word and nothing else: WAITING or PROCEEDING. ` + "WAITING \u2014 you stopped because you need a decision, an approval, or information from a human " + "that none of those asks covers and that is not already on its way; something they put off for later, or promised and then did not send, is not on its way. " + "PROCEEDING \u2014 you finished, you will carry on by yourself, or you are waiting only on open " + "asks, tools, subagents, or events, including a message, an answer, or an event a human already said they will send and that is on its way: a reply on its way is an event, not an open question.";
35361
35361
  };
35362
35362
  var WAITING_VERDICT = /^\W*WAITING\b/;
35363
35363
  var ECHOED_CHOICE = /\bPROCEEDING\b/;
@@ -98,6 +98,8 @@ Outside Legion, the session doing the work moves its issue and the children it o
98
98
 
99
99
  A design decision a document records is a decision block in it, at every phase, approved or not. A block in an approved document makes the approval stale until its answer. A Legion phase worker sends the decision to its architect (`skill://legion-worker`). A to-do or permission only a human can give, or a decision with no document, is a `dispatch ask`. The gates apply to both.
100
100
 
101
+ In a Legion session, a role or any of its subagents that finds a problem outside its own issue never files an issue for it (the issue creation in [Your owner](#your-owner) included). It opens a `dispatch ask` as `skill://legion-worker/references/findings.md` says, on the issue that reference names. That overrides "Ask on your own issue" in gate 1, and gate 4's rule to ask nothing beside what the human asked for.
102
+
101
103
  ### Before you ask
102
104
 
103
105
  1. **Does it need the human's authority, taste or risk appetite?** Your lane decides schema shapes, field names and migration internals. Decide them in the plan or code, not in the spec. Settle a two-lane contract over Envoy, with no ask. A halt condition passes the gate. That is an IAM change, deleting or exposing production data, or anything that reaches a customer. Ask on your own issue.
@@ -28,6 +28,7 @@ dispatch search --query 'reviewer threads OR review comments'
28
28
  - **Question already decided:** the answered ask is the record. Cite it (`dispatch://KEY/ask/<id>`) where you rely on it. Do not ask again.
29
29
  - **Duplicate found:** keep the issue with the spec and the discussion, and copy over what only the duplicate has. Then close it: `dispatch issue-update --issue <KEY> --status done --reason 'Duplicate of dispatch://KEY.'`. If it has the `legion` label, or another session or a human holds its claim, comment on it with the survivor's name. Do not close it.
30
30
  - **Every ask and message stands alone:** the reader sees only that text. Put the facts, the options and your recommendation in it. Link what you cite (`dispatch://…`). Never write "see above" or "my earlier message".
31
+ - **In a Legion session, a finding outside your own issue is never an issue you file.** A Legion role, and each of its subagents, opens a `dispatch ask` as `skill://legion-worker/references/findings.md` says, in place of filing above.
31
32
 
32
33
  ## Design in the spec
33
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/pi-envoy",
3
- "version": "10.17.7",
3
+ "version": "10.17.9",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "omp": {