@sjawhar/claude-envoy 4.11.0 → 4.11.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/.claude-plugin/plugin.json +1 -1
- package/.omp-plugin/plugin.json +1 -1
- package/AGENTS.md +43 -497
- package/dist/codex-hook.js +2076 -2042
- package/dist/dispatch.js +2106 -2050
- package/dist/envoy-channel.js +2077 -2043
- package/dist/session-hook.js +2076 -2042
- package/legion/skills/legion-architect/SKILL.md +88 -66
- package/legion/skills/legion-architect/references/acceptance.md +89 -258
- package/legion/skills/legion-architect/references/decomposition.md +94 -213
- package/legion/skills/legion-architect/references/design-gate.md +88 -353
- package/legion/skills/legion-architect/references/wake-routing.md +51 -43
- package/legion/skills/legion-controller/SKILL.md +50 -181
- package/legion/skills/legion-controller/references/admission.md +25 -54
- package/legion/skills/legion-controller/references/backlog-stewardship.md +23 -119
- package/legion/skills/legion-controller/references/consolidation.md +9 -93
- package/legion/skills/legion-controller/references/daily-report.md +21 -99
- package/legion/skills/legion-controller/references/escalation.md +16 -118
- package/legion/skills/legion-controller/references/finding-asks.md +31 -162
- package/legion/skills/legion-controller/references/park-asks.md +33 -0
- package/legion/skills/legion-controller/references/parked-decisions.md +20 -264
- package/legion/skills/legion-controller/references/session.md +26 -84
- package/legion/skills/legion-controller/references/slack-mentions.md +18 -134
- package/legion/skills/legion-controller/references/triage.md +18 -89
- package/legion/skills/legion-controller/references/wakes.md +22 -549
- package/legion/skills/legion-controller/references/weekly-audit.md +9 -90
- package/legion/skills/legion-oracle/SKILL.md +19 -28
- package/legion/skills/legion-retro/SKILL.md +54 -93
- package/legion/skills/legion-retro/references/learnings.md +21 -33
- package/legion/skills/legion-retro/references/pr-body-content.md +21 -37
- package/legion/skills/legion-worker/SKILL.md +50 -64
- package/legion/skills/legion-worker/references/ci-checks.md +16 -84
- package/legion/skills/legion-worker/references/conflicts-and-rewrites.md +34 -93
- package/legion/skills/legion-worker/references/default-branch-check.md +22 -60
- package/legion/skills/legion-worker/references/findings.md +25 -180
- package/legion/skills/legion-worker/references/foreign-path.md +14 -22
- package/legion/skills/legion-worker/references/gvisor.md +20 -0
- package/legion/skills/legion-worker/references/merge-gate.md +43 -419
- package/legion/skills/legion-worker/references/plan-tests.md +8 -28
- package/legion/skills/legion-worker/references/pr-body.md +19 -218
- package/legion/skills/legion-worker/references/review-threads.md +16 -70
- package/legion/skills/legion-worker/references/tools.md +31 -578
- package/legion/skills/legion-worker/references/withheld-capability.md +12 -163
- package/legion/skills/simplify-settled-diff/SKILL.md +23 -41
- package/legion/skills/simplify-settled-diff/references/personas/code-quality-reviewer.md +14 -14
- package/legion/skills/simplify-settled-diff/references/personas/code-reuse-reviewer.md +4 -4
- package/legion/skills/simplify-settled-diff/references/personas/efficiency-reviewer.md +8 -8
- package/package.json +1 -1
- package/skills/agent-secrets/SKILL.md +46 -312
- package/skills/agent-secrets/references/store-a-secret.md +9 -0
- package/skills/approval-review/SKILL.md +20 -76
- package/skills/asd-ste100/SKILL.md +43 -85
- package/skills/asd-ste100/examples/before-after.md +18 -53
- package/skills/dispatch/SKILL.md +1 -1
- package/skills/dispatch-writing-specs/SKILL.md +1 -1
- package/skills/envoy/SKILL.md +56 -126
- package/skills/envoy/references/check-settlement.md +26 -43
- package/skills/envoy/references/deliveries.md +26 -144
- package/skills/envoy/references/legion.md +12 -45
- package/skills/envoy/references/roles.md +11 -9
- package/skills/envoy/references/sources.md +13 -25
- package/skills/outside-message/SKILL.md +24 -81
- package/skills/plain-words/SKILL.md +24 -55
- package/skills/thermonuclear-code-quality/SKILL.md +16 -26
- package/skills/thermonuclear-deep-review/SKILL.md +22 -31
- package/legion/skills/legion-worker/references/cleanup-deletion.md +0 -22
- package/legion/skills/legion-worker/references/systematic-rename.md +0 -19
- package/skills/asd-ste100/references/writing-rules.md +0 -59
- package/skills/plain-words/references/mechanics.md +0 -49
|
@@ -1,96 +1,114 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: legion-architect
|
|
3
|
-
description: "Use when you are a Legion root or
|
|
3
|
+
description: "Use when you are a Legion root or child architect, before any lifecycle action: decomposing or adopting children, the design gate, releasing or parking children, a delivered wake, a worker's escalation, or accepting a reviewed head."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Legion architect
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
You own one issue and every issue under it until the merge that closes it. The daemon starts every
|
|
9
|
+
worker and moves every phase; you write no code. Your role prompt holds the lifecycle rules, this
|
|
10
|
+
skill the procedures. Where it disagrees with the code or a `--help`, follow those and say so.
|
|
11
11
|
|
|
12
12
|
## Every turn
|
|
13
13
|
|
|
14
|
-
- Act on delivered wakes
|
|
15
|
-
- Check each claim against the code as fetched now (the default branch your addressing line names,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
-
|
|
22
|
-
|
|
23
|
-
-
|
|
14
|
+
- Act on delivered wakes by the [wake routing](#wake-routing); build no wait loop.
|
|
15
|
+
- Check each claim against the code as fetched now (the default branch your addressing line names,
|
|
16
|
+
or the head under review), and tell every reader you dispatch to do the same.
|
|
17
|
+
- Before you end a turn that waits on a person, make sure their question is open: a decision
|
|
18
|
+
block, a `dispatch ask` or `dispatch request-approval`. A root's questions go on the root: one on
|
|
19
|
+
a child starts no wait, and the tree stands still. A child's own architect opens none; it sends
|
|
20
|
+
each question to the architect above it with `envoy_publish`.
|
|
21
|
+
- Message a role with `envoy_publish` to `notifications.role.<token>`, with a token from your
|
|
22
|
+
addressing line or from `roleToken` in `@legion/contracts`: a typed token may reach nobody.
|
|
23
|
+
- The deployment instructions override this skill where they conflict.
|
|
24
24
|
|
|
25
25
|
## 1. Decompose or adopt
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
27
|
+
1. Read `STRATEGY.md` where the repository has one, and its design principles (`AGENTS.md` here).
|
|
28
|
+
Find the standard solution (a web search, and how two or three well-regarded projects solve it)
|
|
29
|
+
and cite it in the spec's `Design`. Ask a person only what neither settles, with a recommendation.
|
|
30
|
+
2. Before you write a design, state the problem and the design principles, with no design of
|
|
31
|
+
yours, to `task(agent="design-outsider")`, and read its answer with `wait`. Record it on the
|
|
32
|
+
issue or in `plan.md`, with your reason wherever you do not follow it. Run it again when a
|
|
33
|
+
push-back or a review changes what the design is for.
|
|
34
|
+
3. A root: write and edit the spec as `skill://legion-architect/references/design-gate.md` says,
|
|
35
|
+
since any new version closes the gate. A child: as
|
|
36
|
+
`skill://legion-architect/references/decomposition.md`, "Creating children", says.
|
|
37
|
+
4. Decompose, adopt, split across repositories or record a wait on outside work as
|
|
38
|
+
`skill://legion-architect/references/decomposition.md` says, red-team check first.
|
|
39
|
+
5. File every child before `dispatch request-approval` (or `register_gate` where your line gates no
|
|
40
|
+
step): the gate's opening starts the root's own first phase, and a later child runs beside it.
|
|
41
|
+
|
|
42
|
+
- Mark each requirement as a `requirement` block and write `verification.md` beside the spec: one
|
|
43
|
+
`check` block per thing to prove, with `serves`, `surface` (`browser`, `cli` or `api`), `run`,
|
|
44
|
+
`when` (`before_merge`, `after_merge` or `default_branch`) and `negative_control`. A check
|
|
45
|
+
carrying `ci_check` is CI's and takes no `run`
|
|
46
|
+
(`skill://legion-architect/references/design-gate.md#a-check-ci-proves`).
|
|
47
|
+
- Every child names the running system its criteria are proven on (the command, service or page
|
|
48
|
+
the tester drives) and the repository skill that drives it; building a missing path is this
|
|
49
|
+
tree's work.
|
|
50
|
+
- **Show the surface before you ask.** Where this tree builds or changes a page, screen or
|
|
51
|
+
dashboard a person opens, that person sees it and answers before you request approval
|
|
52
|
+
(`skill://legion-architect/references/design-gate.md`, "Show the surface before you ask"). A
|
|
53
|
+
child's own architect sends such a surface up to the root's architect.
|
|
42
54
|
|
|
43
55
|
## 2. Children in flight
|
|
44
56
|
|
|
45
|
-
-
|
|
46
|
-
|
|
47
|
-
-
|
|
48
|
-
|
|
49
|
-
-
|
|
50
|
-
|
|
57
|
+
- A root releases no child until every gated step is open: `design-approved`, and under more than
|
|
58
|
+
one step `gatedSteps` in `read_record` showing each `approved`.
|
|
59
|
+
- Set a child's dependencies in one call: `dispatch issue-update --issue <child> --blocked-by <a>
|
|
60
|
+
--blocked-by <b>`. It replaces the whole list, so read the existing links first (`dispatch read`).
|
|
61
|
+
- Release each child once it is filed:
|
|
62
|
+
`legion({ op: "release_children", issues: ["LEGION-41", "LEGION-42"] })`. Legion holds a child
|
|
63
|
+
whose blockers are not `done`. Never hold a release back for a close: a child released after the
|
|
64
|
+
root's merge runs as an orphan root. Never block a child on its own parent, which merges last.
|
|
65
|
+
- On each `child-closed`, read the child's handoff, edit the specs of open children it changes,
|
|
66
|
+
and `park_child` each child it makes unneeded.
|
|
67
|
+
- Before you park a child for good, take it off each sibling's `--blocked-by` list
|
|
68
|
+
(`--clear-blocked-by` where it was the only one), or park that sibling too: a parked child is
|
|
69
|
+
not `done`, and its dependents stay held with no notice.
|
|
51
70
|
|
|
52
71
|
## 3. Children complete
|
|
53
72
|
|
|
54
|
-
A
|
|
73
|
+
A parent's own first phase waits while Dispatch shows an open child under it (the `children-first`
|
|
74
|
+
row). A child filed after its parent started runs beside it, and the parent's sign-off waits for
|
|
75
|
+
its last round (section 4).
|
|
55
76
|
|
|
56
77
|
## 4. Integration verification
|
|
57
78
|
|
|
58
|
-
- Prove every criterion of your issue in its own pull request,
|
|
59
|
-
|
|
60
|
-
-
|
|
79
|
+
- Prove every criterion of your issue in its own pull request, by its own tester evidence, never in
|
|
80
|
+
a child; never downgrade one. A parent signs off only after its last round
|
|
81
|
+
(`skill://legion-architect/references/acceptance.md`, "The last round").
|
|
82
|
+
- While the work is built, a role runs the application from the issue's branch and uses it as its
|
|
83
|
+
user would: a passing check does not show that a person can do their job with it.
|
|
84
|
+
- Where the work is a page or a tool a person uses, offer that person a running build before the
|
|
85
|
+
review; the deployment instructions say how a pod runs one.
|
|
61
86
|
|
|
62
87
|
## 5. Retro
|
|
63
88
|
|
|
64
|
-
Your `sign_off` starts retro; never
|
|
89
|
+
Your `sign_off` starts retro; never message the implementer to start it. A retro that reports a
|
|
90
|
+
defect holds its completion until you say whether it moves the issue back, which only retro can do
|
|
91
|
+
while it holds the phase. A retro that cannot write the body:
|
|
92
|
+
`skill://legion-architect/references/acceptance.md`, "Retro's result".
|
|
65
93
|
|
|
66
94
|
## 6. Acceptance and the merge
|
|
67
95
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
- the tester's handoff, `dispatch handoff-read --issue <issue> --phase test`;
|
|
73
|
-
- `dispatch results --issue <issue>`: each check, every result recorded against it with the commit it was recorded at, and the check's own line saying whether a pass stands and from which roles;
|
|
74
|
-
- the reviewer's approval of that head by SHA, the head its Legion footer names and never its `commit_id`, which GitHub can move onto a later head (`gh api --paginate repos/<o>/<r>/pulls/<n>/reviews`; `skill://legion-worker/references/merge-gate.md` gives the read of each review's footer head, and what stands for a footer that names none);
|
|
75
|
-
- each claim the reviewer's prose makes, checked against the code at that head and command output, never against the finding it ruled on or its own verdict: no other agent reads it.
|
|
76
|
-
|
|
77
|
-
A tree often brings its own shortfall written up; that is no permission: your job is the goal. Accept only when a pass stands for every `before_merge` check of this issue at the approved head, each requirement the spec states has a check, and no criterion left the tree; on a parent, that head is section 4's last round. A pass stands is the check's own answer, which `dispatch results` prints under it: a pass at another commit, a pass recorded under an older wording of the check and a retracted pass are each printed and none of them is a pass that stands, while a fail recorded after a pass leaves that pass standing until someone retracts it.
|
|
78
|
-
|
|
79
|
-
- Read each requirement as written: a narrower reading is unmet, and one unmet stops the sign-off, declared or not. A requirement is in the approved spec or it is not one: a person's later request becomes one once written there and approved. Where its parts disagree on scope, settling it is the owner's: ask, and hold the acceptance.
|
|
80
|
-
- Your role prompt carries the `goal-red-team` dispatch, before you decide the acceptance. On a root the requirements go to it at the version its gate approved. On a child they go to it at the version its parent's review approved.
|
|
81
|
-
- A child's result against one of your checks proves nothing: it was recorded at the child's head and not at yours. A child carrying part of a root requirement proves it with a check of its own, clearing the root's coverage flag.
|
|
82
|
-
- An issue with no Verification document, or none holding a `before_merge` check, is a gap the tester and the reviewer name and neither refuses: its spec's delivered items are the requirements, met here or sent back. Checks you write close the `criteria` step where it is gated.
|
|
83
|
-
- A finding ask holds the acceptance until it resolves or the controller replies (`skill://legion-architect/references/acceptance.md`).
|
|
84
|
-
|
|
85
|
-
Post it as a `dispatch comment` naming each check and its result, then `legion({ op: "sign_off", issue: "<KEY>" })`.
|
|
96
|
+
In `accepting` no worker runs; the issue's own architect accepts it. Read, against the goal, every
|
|
97
|
+
check and every requirement, in the five sources that
|
|
98
|
+
`skill://legion-architect/references/acceptance.md`, "Accepting", lists.
|
|
86
99
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
100
|
+
Run the `goal-red-team` read your role prompt names. Accept only when a pass stands for every
|
|
101
|
+
`before_merge` check at the approved head, every requirement has a check, and none is unmet or read
|
|
102
|
+
narrower than written: post a `dispatch comment` naming each check and its result, then
|
|
103
|
+
`legion({ op: "sign_off", issue: "<KEY>" })`. Otherwise `request_backward_move` with `to`
|
|
104
|
+
(`implementing` or `testing`) and a `reason` naming the check's block id. Wait for a `ci_check` run
|
|
105
|
+
still going; a name no run answers is yours to correct in the check. Finding asks, refusals and
|
|
106
|
+
what follows: `skill://legion-architect/references/acceptance.md`.
|
|
90
107
|
|
|
91
108
|
## 7. Close
|
|
92
109
|
|
|
93
|
-
The merge closes the issue once every issue beneath it has left the workflow
|
|
110
|
+
The merge closes the issue once every issue beneath it has left the workflow; nothing after it is
|
|
111
|
+
yours (`skill://legion-architect/references/acceptance.md`, "The close").
|
|
94
112
|
|
|
95
113
|
## Wake routing
|
|
96
114
|
|
|
@@ -98,7 +116,11 @@ Handle each delivered wake by its row in `skill://legion-architect/references/wa
|
|
|
98
116
|
|
|
99
117
|
## Escalation judgment
|
|
100
118
|
|
|
101
|
-
-
|
|
102
|
-
|
|
103
|
-
- A clear defect the controller
|
|
104
|
-
|
|
119
|
+
- Send the controller (its topic is on your addressing line) a child that serves no criterion of
|
|
120
|
+
the root, a need for admission slots, and two trees changing the same code.
|
|
121
|
+
- A clear defect the controller gives you is this tree's work: an open pull request, or a child
|
|
122
|
+
after the red-team check; reply under its evidence comment with the issue that carries it. It
|
|
123
|
+
changes the root spec only where it changes the Summary, a requirement, a check or the scope
|
|
124
|
+
(`skill://legion-architect/references/design-gate.md`, "After approval").
|
|
125
|
+
- A tool a worker cannot get is a pull request to the worker image
|
|
126
|
+
(`skill://legion-worker/references/tools.md`).
|