@sjawhar/opencode-legion-envoy 5.5.1 → 5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/opencode-legion-envoy",
3
- "version": "5.5.1",
3
+ "version": "5.5.2",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/src/server.js",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: dispatch
3
- description: "Use before posting a message, a status update, or a periodic status update; before asking a question that references another message, artifact, or eval; before asking a design question or brainstorming a change; and when asking Sami a question, updating the spec, commenting on a document, attaching an artifact, or calling a dispatch_* tool."
3
+ description: "Use before posting a message, a status update, or a periodic status update; before asking a question that references another message, artifact, or eval; before asking a design question or brainstorming a change; and when asking the human a question, updating the spec, commenting on a document, attaching an artifact, or calling a dispatch_* tool."
4
4
  ---
5
5
 
6
6
  # Dispatch
@@ -66,7 +66,7 @@ not share this session's vocabulary, and is often on a phone. Write for that per
66
66
  has a human subject, even on a sentence you already simplified; a lead naming what a change does
67
67
  inside a system leaves the reader nothing to act on. Where the judgment rule below applies, the
68
68
  judgment leads and this rule shapes the sentence under it.
69
- - Before posting, test it: could Sami, reading only this text on his phone, know what he is being
69
+ - Before posting, test it: could the human, reading only this text on their phone, know what they are being
70
70
  told or asked? If not, rewrite it. Length is not the problem; density is.
71
71
  - When an ask or message communicates a judgment, lead with that judgment in one sentence and put the mechanism underneath it. Do not make the reader ask a second time whether the result is a win. This shapes communication only when a judgment exists; it does not pre-decide an open question or remove its genuine options.
72
72
  - When a Dispatch message states a root cause, include the reproducing command or test in that same message. Without it, label the diagnosis a hypothesis; a diagnosis still in progress may say so plainly. This boundary applies to causal claims, not to reporting that an investigation has started.
@@ -228,7 +228,7 @@ Every `dispatch_ask` passes four gates first:
228
228
  internals are your lane's to decide where the work happens, in the plan or the code, not in the
229
229
  spec. A contract between two lanes is settled by those two lanes over Envoy, and you open no ask
230
230
  for it. A halt condition (a change to IAM, deletion or exposure of production data, anything
231
- that reaches a customer) passes this gate: it is your own `dispatch_ask` to Sami on your own
231
+ that reaches a customer) passes this gate: it is your own `dispatch_ask` to the human on your own
232
232
  issue.
233
233
  2. **Is there genuine uncertainty, and have you measured what you can?** If there is none, it is
234
234
  a plan you execute. The one legitimate ask without uncertainty is permission for an action
@@ -323,7 +323,7 @@ they must read to decide belongs in the spec in the first place — see [Artifac
323
323
 
324
324
  Before saying you are waiting for human input, call `dispatch_open_asks`. With no arguments it lists this session's active asks across open issues and project documents, including whether the human or agent owes the next reply. With `dispatch_open_asks({ project })` it lists every open ask in that project — on its issues and on its documents, whoever authored them — which is how you see what a whole project is waiting on rather than just your own asks.
325
325
 
326
- **Unsettled product shape needs a decision before implementation.** When a page, navigation entry, table key, customer-scoping rule, or persisted sidecar would set product shape that Sami has not already settled, write a decision block in the document that records the work before the first implementation commit; in a Legion tree the architect writes it, and a phase worker sends the decision to its architect. A lane's schema decision or a contract two lanes agree does not settle product shape. This does not turn a user-specified decision or routine implementation into an approval request. A control or behaviour the human asked for in words is settled by those words, together with every choice inside it that his words do not make (where it sits, its defaults, its options): build it without a block, as gate 4 of [Before you ask](#before-you-ask) says. This rule covers only product shape outside what he asked for, and its block comes before the commit that sets that shape.
326
+ **Unsettled product shape needs a decision before implementation.** When a page, navigation entry, table key, customer-scoping rule, or persisted sidecar would set product shape that the human has not already settled, write a decision block in the document that records the work before the first implementation commit; in a Legion tree the architect writes it, and a phase worker sends the decision to its architect. A lane's schema decision or a contract two lanes agree does not settle product shape. This does not turn a user-specified decision or routine implementation into an approval request. A control or behaviour the human asked for in words is settled by those words, together with every choice inside it that his words do not make (where it sits, its defaults, …
327
327
 
328
328
  **Anything you are blocked on a human for is visible in Dispatch.** An agent waits on a human only
329
329
  through an open ask. A to-do, permission, credential or grant renewal, setting only they can
@@ -359,7 +359,7 @@ Use `mode: "none"` with a concrete reason only when the work is genuinely non-ar
359
359
  ## Close what you opened
360
360
 
361
361
  An ask you opened is yours until it is answered or you resolve it. When the answer arrives some
362
- other way — Sami said it live, a later comment settled it, or the question became moot because the
362
+ other way — the human said it live, a later comment settled it, or the question became moot because the
363
363
  design moved — resolve it yourself with `dispatch_resolve_ask` in the same turn you learn that.
364
364
  Never leave it for the human to clear.
365
365
 
@@ -9,13 +9,12 @@ project's architecture model, or list or audit a project's backlog.
9
9
  When you finish an issue, or are told to work on the next thing, take the top ready issue of the
10
10
  whole backlog, across every project: status `todo`, highest priority first, then board rank. There
11
11
  are no areas: a standing role, a product owner and a lane each take the top issue like everyone
12
- else (Sami's ruling). `todo` means ready: specced, unblocked, and waiting on neither a deploy nor a
12
+ else. `todo` means ready: specced, unblocked, and waiting on neither a deploy nor a
13
13
  decision. An issue that waits on one belongs in `backlog`, with what it waits on said on the issue.
14
14
 
15
15
  Hold at most three issues in flight (`in_progress`, `testing`, `needs_review` or `retro`), of any
16
- kind (Sami's ruling). The limit is per agent and has nothing to do with the week's priorities
17
- (Sami, correcting a reading that tied the two together): the priorities decide only what you pull
18
- next. Past three:
16
+ kind. The limit is per agent and has nothing to do with the week's priorities: the priorities
17
+ decide only what you pull next. Past three:
19
18
  push any unfinished work, say where in one comment on the issue, move it to `backlog` and clear
20
19
  its route. Each issue counts on its own; a child does not ride under its parent's slot.
21
20
  In-flight issues with no owner at all go
@@ -27,7 +26,7 @@ writes on the root of a tree Legion is running is set back and the tree's archit
27
26
  it; only a person in the dashboard, or `legion status`, stops that tree. On an issue under one, a
28
27
  status that takes it out of the flow parks that issue and stops its workers.
29
28
 
30
- One agent keeps the backlog's order against those priorities, with Sami, as he ruled. Setting an
29
+ One agent keeps the backlog's order against those priorities. Setting an
31
30
  issue's priority stays yours ([Priority is yours to set](#priority-is-yours-to-set)); reordering
32
31
  the board does not.
33
32
  When the top of the backlog looks wrong, or a priority's next step is not yet a ready issue,
@@ -118,7 +117,7 @@ when work has started.
118
117
  Priority is the coarse bucket a backlog is read by: `0` is P0, the highest, through `3`, P3, the
119
118
  lowest, and `null` clears it. Agents set it (`dispatch://LEGION/artifact/issue-status-conventions-md`)
120
119
  — on creation, and on a grooming pass over issues that have none — and say what you set and why;
121
- Sami overrides anything he disagrees with from the dashboard. A closed
120
+ the human overrides anything they disagree with from the dashboard. A closed
122
121
  issue takes only `rank`, `components`, and a reopening `status` (any status but `done`);
123
122
  everything else, `priority` included, waits for the reopen (`409 ISSUE_CLOSED`). So reopen it
124
123
  first, then set the priority — the two cannot go in one call. `rank` itself is not a tool field:
@@ -79,7 +79,7 @@ exercise a criterion end to end, building that path is a child issue of this tre
79
79
 
80
80
  Specifications written into Dispatch follow `skill://dispatch`'s [Writing a spec](../dispatch/SKILL.md#writing-a-spec).
81
81
  Wave releases, child closures, and your own status are visible from the issue tree and the
82
- handoffs; do not narrate them into the spec or a `dispatch_message`. A to-do only Sami can clear
82
+ handoffs; do not narrate them into the spec or a `dispatch_message`. A to-do only a human can clear
83
83
  is a `dispatch_ask`.
84
84
 
85
85
  The issue's primary document **is** the root specification. Extend it in place: a new version
@@ -338,7 +338,7 @@ cross-tree conflict. Report those to the controller with `envoy_publish` to the
338
338
  your `Legion addressing` line names. Handle everything else in the
339
339
  tree. A product, scope, or design decision that needs the human, yours or one a worker escalated,
340
340
  is a decision block you write (section 1 says what one does to the root spec's gate). A standalone
341
- human to-do may use `dispatch_ask`; workers may reach Sami directly with it the same way. Do not
341
+ human to-do may use `dispatch_ask`; workers may reach the human directly with it the same way. Do not
342
342
  create a wait loop for any wake source.
343
343
 
344
344
  Never yield while waiting on a human. A human is waiting on you only where an open ask sits in
@@ -16,10 +16,10 @@ The Legion extension claims `legion-<project>-controller` and registers controll
16
16
  with the daemon during session startup. Do not handle a wake unless that startup succeeded.
17
17
 
18
18
  The daemon runs the controller as an interactive OMP terminal session in its private tmux
19
- server (the pane runs plain `omp`, not `--mode rpc`, and no `legion worker-shim`; Sami reaches
19
+ server (the pane runs plain `omp`, not `--mode rpc`, and no `legion worker-shim`; the operator reaches
20
20
  it with `tmux -L legion-<project> select-window -t <window id> \; attach -t legion-<project>`,
21
21
  the window id being `controllerLocator.tmuxWindowId` in `legion state --json` — every window
22
- opens detached, so a bare `attach` lands on whichever window is current). Sami may attach and
22
+ opens detached, so a bare `attach` lands on whichever window is current). The operator may attach and
23
23
  type into this session at any time. The pane carries no GitHub credential: its GitHub token
24
24
  variables are emptied, and both `legion gh -- <args>` and `legion threads resolve` are refused.
25
25
  The controller reads Dispatch and applies its controller capability with `legion status <KEY>
@@ -29,9 +29,8 @@ retrospective's durable output.
29
29
  role when configured. A human merges under the repository's GitHub branch-protection and
30
30
  CODEOWNERS requirements; GitHub's merge queue participates only when the repository enables it.
31
31
  5. After that merge, the implementer — not the reviewer or merger — verifies the change in production
32
- and records it on the PR and the issue (Sami, 2026-09-13, verbatim:
33
- "the agent that developed it should be responsible for testing in production"). The
34
- architect's sign-off waits for that record.
32
+ and records it on the PR and the issue: the agent that developed it is responsible for testing
33
+ in production. The architect's sign-off waits for that record.
35
34
  The record is the pull request's `Production:` line, one pull-request comment, and a
36
35
  `dispatch_message` on the issue, each naming what was driven, how, what was observed, and the
37
36
  merge commit. A defect the production check finds becomes a corrective child issue of the same tree,