@sjawhar/pi-legion 11.3.0 → 11.4.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.
@@ -27,10 +27,18 @@ child waits in your tree until Legion starts it.
27
27
 
28
28
  ```bash
29
29
  dispatch issue --project <project> --parent <root issue> --title '<child outcome>' --spec-file - <<'EOF'
30
- <acceptance criteria, scope, and context>
30
+ <the child's spec, written as skill://dispatch-writing-specs says, scaled to the child>
31
31
  EOF
32
32
  ```
33
33
 
34
+ - Write each child's spec as `skill://dispatch-writing-specs` says, scaled to the child: its
35
+ outline (`Summary` through `Acceptance`, a few sentences a part for a small child), a proposed
36
+ answer to each point, each term a new reader may not know explained, no item number from another
37
+ document (name a requirement of the root by what it says), and no text copied from the root that
38
+ does not apply to this child. The child's workers read only this spec.
39
+ - Before `dispatch issue` creates each child, paste its whole spec into a fresh
40
+ `task(agent="plan-gap-analyst")` to check it against `skill://dispatch-writing-specs`, and fix
41
+ what it flags: your own reread misses the terms and item numbers you already know.
34
42
  - `--project` is the issue key's prefix before `-<n>` (`LEGSMOKE-3` → `LEGSMOKE`).
35
43
  - In a root session `$LEGION_ISSUE` is the root (it equals `$LEGION_TREE`): pass it as `--parent`.
36
44
  The daemon makes the sub-issue link from `--parent`.
@@ -57,7 +57,8 @@ says which), its first line exactly `Clear defect from <your role token>`. It pr
57
57
  `expects_reply: none`. It holds:
58
58
 
59
59
  - your role token, from your `Legion addressing` line
60
- - the defect, as its reader recognises it, and the issue it came from (`dispatch://<KEY>`)
60
+ - the defect: what went wrong, where and to whom, with the numbers, and the issue it came from
61
+ (`dispatch://<KEY>`)
61
62
  - where the fix belongs: the repository and the component
62
63
  - the fix
63
64
  - the evidence comment, `dispatch://<REPORT KEY>/comment/<id>`
@@ -132,23 +133,26 @@ check's `Production:` line then names the finding as sent to the controller, or
132
133
 
133
134
  ## What the ask says
134
135
 
135
- The question stands alone, since the ask view shows no comment. It holds at most 800 characters,
136
+ The question stands alone, since the ask view shows no comment. It holds at most 2,000 characters,
136
137
  the `Ref: <reference>` line `--ref` appends included (about 75 characters for a comment's
137
138
  reference). Its first line names who asks: `Clear defect from <your role token>` for a clear
138
139
  defect no controller took, else `Finding from <your role token>`. The architect's acceptance and the
139
- controller's catch-up find a finding ask by that line. Then it carries:
140
+ controller's catch-up find a finding ask by that line. Then it names the concrete case before any
141
+ general statement of it:
140
142
 
141
- - the problem, as its reader recognises it, and the issue it came from (`dispatch://<KEY>`);
142
- - where the fix would belong: the repository or layer, and a plain statement that it is not
143
+ - what went wrong, where and to whom: the issue it came from (`dispatch://<KEY>`), the machine,
144
+ file, command or session, and the numbers;
145
+ - where the fix would belong: the repository and component, and a plain statement that it is not
143
146
  Legion's when it is not. A problem is not Legion's because you work in Legion: name the
144
147
  component that misbehaved;
145
- - the decision a person must make, and your recommendation and its reason. A clear defect no
146
- controller took carries the fix instead, and its options ask where the work goes, with
147
- `Hand it to the owning tree` first and recommended.
148
-
149
- The evidence (the commands, their output and its time, the file and line, the pull request) does
150
- not fit. Post it first as a `dispatch comment` on the issue the ask goes on, which prints `Posted
151
- comment <id>`, and cite that comment with `--ref`, the one reference an ask takes. That issue,
148
+ - the decision a person must make, what happens to whom under each option, and your
149
+ recommendation and its reason. A clear defect no controller took carries the fix instead, and its
150
+ options ask where the work goes, with `Hand it to the owning tree` first and recommended.
151
+
152
+ Evidence the decision does not need (full command output, logs, every file and line, the pull
153
+ request) goes in a comment. Post it first as a `dispatch comment` on the issue the ask goes on,
154
+ which prints `Posted comment <id>`, and cite that comment with `--ref`, the one reference an ask
155
+ takes. That issue,
152
156
  `<ASK KEY>` below, is the report issue, except as [When no controller takes
153
157
  it](#when-no-controller-takes-it) says:
154
158
 
@@ -164,7 +168,7 @@ dispatch ask --issue <ASK KEY> --ref 'dispatch://<ASK KEY>/comment/<id>' --quest
164
168
  --option 'File it for Legion: Legion works it once it is filed' \
165
169
  --option 'Do not file: <what stays as it is>' <<'EOF'
166
170
  Finding from <your role token>
167
- <the problem and dispatch://<KEY> it came from; where the fix belongs, and that it is not Legion's when it is not; your recommendation and why>
171
+ <what went wrong, where and to whom, with dispatch://<KEY> and the numbers; where the fix belongs, and that it is not Legion's when it is not; what each option does to whom; your recommendation and why>
168
172
  EOF
169
173
  ```
170
174
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/pi-legion",
3
- "version": "11.3.0",
3
+ "version": "11.4.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "omp": {