@sjawhar/claude-envoy 2.42.0 → 2.43.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.
@@ -55,8 +55,8 @@ slot back for that wait, each with what it waits on — the unfinished Dispatch
55
55
  for a parent, the open children beneath it that children-first holds it for. `read_state` shows the
56
56
  same list under `admission.blocked`, and `legion state` prints it as `blocked on Dispatch links:`.
57
57
  A link's wait ends when each blocker reaches `done` (a person's close, or the blocker's own merge) or its
58
- link is taken off (by a person or the tree's architect), and a children-first wait ends when the
59
- last open child leaves the workflow: name the waits in the day's report and
58
+ link is taken off (by a person or an architect of the tree), and a children-first wait ends when
59
+ the last open child leaves the workflow: name the waits in the day's report and
60
60
  take nothing for them.
61
61
 
62
62
  `held`, when present, is `[{issue, reason, heldBy?}, …]`: every issue the daemon's record holds
@@ -92,13 +92,16 @@ handler refuses a fact of another generation.
92
92
  So read the issue's record for every entry rather than taking its architect as told:
93
93
  `read_state`'s `issues.<KEY>` gives its phase and each role's claim, and says whether the worker
94
94
  has moved since the tick was queued.
95
- Where the architect of that issue is itself a claim that is not answering, a notice sent to it
96
- reaches nobody and the work stands still. When the tree's architect claim reads `failed`
95
+ Where the architect that owns that issue is itself a claim that is not answering, a notice sent to
96
+ it reaches nobody and the work stands still. That architect is the issue's own while its claim
97
+ holds its role, else the nearest one above it whose claim holds its role, else the root's. A
98
+ failed claim holds no role, so a notice passes over a failed architect of a child and goes on up
99
+ the tree. When the tree's architect claim reads `failed`
97
100
  (`issues.<ROOT>.architect.state`, `<ROOT>` being the silent issue's `tree`), act as the
98
101
  `worker-died` section below says, with `<ROOT>` as its `<KEY>`: restart the tree when you find no
99
102
  cause or its cause is gone, and otherwise ask the person whether to park it, with no relaunch
100
- while the cause stays. When its claim does not read `failed` and the Envoy registry shows its
101
- session gone, `fresh_session` on that architect.
103
+ while the cause stays. When the claim of the architect that owns the issue does not read `failed`
104
+ and the Envoy registry shows its session gone, `fresh_session` on that architect.
102
105
  Name each silent issue in the day's report, with its role and the length of its silence.
103
106
 
104
107
  ## `unslotted on <KEY>` (`{kind: "unslotted", reason}`)
@@ -183,7 +186,7 @@ A root whose own architect is not taking the work the daemon states it is owed.
183
186
 
184
187
  - "the architect's claim cannot be reached": the claim is failed or retired and no start of the root's run is the daemon's next move for it, or the root has no architect claim at all, no start of one was queued in the last ten minutes, and the work of its entry has stood that same bound.
185
188
  A start the outbox is running is that next move, and so is a start queued in the last ten minutes unless it has already run against the claim and left it failed or retired.
186
- While such a start will relaunch a failed or retired claim, the daemon raises no such wake, because that start resumes the session the claim kept.
189
+ While such a start will relaunch a failed or retired claim, the daemon raises no such wake, because that start brings the claim back, in the session it kept, or in a new one once supervise's `forgetSession` has dropped that.
187
190
  The claim reads failed or retired while the outbox runs that start, until the run relaunches it.
188
191
  A start that has run against the claim and left it failed or retired, which the daemon retries on its backoff, does not hold the wake back, and neither does one that has stood owed for longer than ten minutes.
189
192
  A root waiting on a person raises it as any root does, and its reason then says that the root waits: the daemon queues the next start of its architect only when that wait is answered.
@@ -223,7 +226,7 @@ For the second arm, read the root's architect claim in `read_state` too.
223
226
  A `failed` or `retired` claim this wake names has no start that will relaunch it: no start of its run was queued in the last ten minutes, or the one the queue holds has run against it and left it as it is, which the daemon retries on its backoff.
224
227
  It takes nothing the daemon sends.
225
228
  `fresh_session` on it, with the root's key as the issue and `architect` as the role, starts it again.
226
- When the reason says the root waits on a person, take no `fresh_session` while it waits, since the start the answer queues relaunches the session the claim kept, and `fresh_session` would discard it.
229
+ When the reason says the root waits on a person, take no `fresh_session` while it waits, since the start the answer queues relaunches the session the claim kept, or a new one once supervise's `forgetSession` has dropped that, and `fresh_session` would discard the kept one.
227
230
  Name that root in the day's report with what it waits on (`issues.<KEY>.waitingOn`: the ask, or the version of its gate), so a person knows the tree has no architect that can run until they answer.
228
231
  That wake is the arm's one wake of the root's run: the daemon marks the arm told for the run, and the answer starts no new run, so it does not tell you again when the wait is answered or when the start the answer queues fails against the claim.
229
232
  So at each `tick` after `issues.<KEY>.waitingOn` is gone, read `issues.<KEY>.architectStalls`, which lists an arm whether or not you were told of it, and when it lists `claim-unreachable`, take `fresh_session` on that claim as for any other claim of this arm.
@@ -235,16 +238,18 @@ For the third, decide what the time means — a tree whose spec is long is worki
235
238
 
236
239
  ## `parked-decision on <KEY>` (`{kind: "parked-decision", decision, root, ref, actor, version?, reason?}`)
237
240
 
238
- A person's spec decision, or answer, resolution or reply on an ask, on a tree Legion is not
239
- running, which nobody inside the tree heard. The payload names the decision, the tree's `root`,
240
- the decision's Dispatch `ref`, the person (`actor`), and a spec decision's `version` and a changes
241
- request's `reason`. Decide it as `skill://legion-controller/references/parked-decisions.md#deciding`
242
- says.
241
+ A person's decision that nobody inside its tree heard: a spec decision on a tree Legion is not
242
+ running, or on a tree whose root architect's claim has failed, retired or is not supervised, or an
243
+ answer, resolution or reply on an ask of a tree Legion is not running. The payload names the
244
+ decision, the tree's `root`, the decision's Dispatch `ref`, the person (`actor`), and a spec
245
+ decision's `version` and a changes request's `reason`. Decide it as
246
+ `skill://legion-controller/references/parked-decisions.md#deciding` says.
243
247
 
244
248
  ## `held on <KEY>` (`{kind: "held", phase, role?, reason?, failure?, escalation?}`)
245
249
 
246
250
  Check that the issue's `phase` is `held`. Without `reason`, a phase worker's launches or prompts
247
- ran out, and the tree's architect decides whether to retry or escalate: do nothing. With
251
+ ran out, and the architect that owns the issue (a child's own architect while it holds its role)
252
+ decides whether to retry or escalate: do nothing. With
248
253
  `reason: "escalated"` (`issues.<KEY>.holdReason` is `escalated`), the architect handed it to you:
249
254
  handle it as an escalation (`skill://legion-controller/references/escalation.md`). A held issue
250
255
  whose tree lingers (the time after its root closes when a reopen resumes it) or is closed waits
@@ -412,16 +417,21 @@ escalated hold above says.
412
417
 
413
418
  ## `worker-died on <KEY>` (`role: "architect"`)
414
419
 
415
- The tree's architect ran out of launches or prompts, and the daemon relaunches nothing. Every other
416
- notice of the tree goes to that architect, so nobody inside the tree can act. Check that
417
- `issues.<KEY>.architect.state` is `failed`. When the root's `phase` is `done`, the tree is already
418
- parked: do nothing (a failed architect reads `failed` until the tree closes). Otherwise look for
419
- the cause. `issues.<KEY>.architect.failure` holds the record the `held` wake above describes. Read
420
- after it an open `capabilities` row whose `detail` names the architect's session, or the
421
- architect's last message on the root issue. When you find none, or it is gone, restart the tree
422
- (`set_status` the root to `backlog`, then, in the same turn, to `todo`: a new generation whose
423
- architect starts with fresh budgets). That pair is a restart and not a park: the daemon re-admits
424
- only a root whose tree lingers or is done, so the `backlog` write is how a restart reaches `todo`.
420
+ The root's architect ran out of launches or prompts, and the daemon relaunches nothing. This wake
421
+ comes for a root's architect alone: when a child's own architect fails, the daemon tells the
422
+ architect above that child, and the child's next phase start starts it again. A child's own
423
+ architect that holds its role still takes the notices of its child and of the issues under it,
424
+ but for the child's own `child-status` and `child-closed` and a `worker-died` or `worker-stalled`
425
+ of that architect. Every other notice of the tree goes to the failed architect, so nobody inside
426
+ the tree can act on those. Check that `issues.<KEY>.architect.state` is `failed`. When the root's
427
+ `phase` is `done`, the tree is already parked: do nothing (a failed architect reads `failed` until
428
+ the tree closes). Otherwise look for the cause. `issues.<KEY>.architect.failure` holds the record
429
+ the `held` wake above describes. Read after it an open `capabilities` row whose `detail` names the
430
+ architect's session, or the architect's last message on the root issue. When you find none, or it
431
+ is gone, restart the tree (`set_status` the root to `backlog`, then, in the same turn, to `todo`:
432
+ a new generation whose architect starts with fresh budgets). That pair is a restart and not a park:
433
+ the daemon re-admits only a root whose tree lingers or is done, so the `backlog` write is how a
434
+ restart reaches `todo`.
425
435
  When the cause stays, the tree stays admitted and keeps working ([Admission and the `legion` label](https://cybermonklabs.github.io/legion/legion/concepts/#admission-and-the-legion-label)), because a relaunch would fail
426
436
  the same way. Ask the person whether to park it, as
427
437
  [Ask whether to park a tree](#ask-whether-to-park-a-tree) says, with the architect's cause as
@@ -448,8 +458,9 @@ before it.
448
458
  The daemon's stall backstop acted on a stalled turn of the tree's architect: its agent had not
449
459
  stepped for longer than the `worker_stall_backstop_hours` the deployment gives that role, and most
450
460
  often the daemon ended the turn and brought the same session back on a new process. You get a copy
451
- only for a tree's own architect, because every other notice of the tree goes to that architect and
452
- nobody inside the tree is left to read this one; the architect is told on its issue as well. The
461
+ only for a tree's own architect, because no architect stands above it to read this one, and that
462
+ architect is told on its issue as well. A stall of a child's own architect goes to the architect
463
+ above that child. The
453
464
  `reason` is the record the daemon read: when the agent last stepped and how long ago that was, the
454
465
  bound it passed, when the turn began, and the last call the daemon saw, with its tool, its call
455
466
  id, when it started and whether it ended — never a call's arguments, whose text the daemon keeps
@@ -513,8 +524,9 @@ Read the role's claim in `read_state`. Name the run and its model in the day's r
513
524
  reason names no status, the turns ended on nothing but a message, which is what a content filter
514
525
  leaves: the session has already stepped down its model chain, so a run that long says the whole
515
526
  chain refuses the same work. Either way, `envoy_publish` the key, the role and the reason to the
516
- issue's architect, which is who can narrow the work. Re-admit nothing and park nothing, because
517
- the task is not lost and the session still runs.
527
+ architect that owns the issue, which is who can narrow the work. When the stuck role is a child's
528
+ own architect, send them to the architect above that child. Re-admit nothing and park nothing,
529
+ because the task is not lost and the session still runs.
518
530
 
519
531
  One claim that stays stuck after that is yours to act on, and which door you use depends on what
520
532
  the claim is doing. `compact` is the first thing for a claim whose session the provider keeps
@@ -527,19 +539,22 @@ one held — what the worker learned of its issue, and what it had not yet pushe
527
539
  and cures nothing in a provider outage, where the next session's turns are refused as the last
528
540
  one's were.
529
541
 
530
- `compact` is the wrong door for a claim no process stands behind, which is a role that died: it
531
- refuses such a claim `CLAIM_NOT_RUNNING` and names `fresh_session`, because it has no agent to
532
- ask. Ask for `fresh_session` there. It is the one way back for a dead role, a dead architect of
533
- your project included: it suspends the claim where your request arrives, leaves the session that
534
- claim recorded behind, and starts the claim again with the task its dead turn held. Both doors
535
- read the claim's process at the moment you ask, not the daemon's memory of an older report,
536
- which a daemon restart forgets. A refusal of `CLAIM_IN_A_TURN` is a claim whose process that
537
- read found running, or one whose session is being compacted. A claim whose process the runtime
538
- would not answer for, one that records no process to read, and one that moved under your
539
- request and that a second read finds no longer working or gone once more are refused
540
- `CLAIM_UNSETTLED`, each left exactly as your request found it, so ask again once the runtime
541
- answers; a claim that moved is otherwise answered as that second read finds it. A claim under a relaunch the wake pacing parks is refused
542
- `CLAIM_UNSETTLED` too.
542
+ `compact` is the wrong door for a claim no process stands behind, which is a role that died:
543
+ it refuses such a claim `CLAIM_NOT_RUNNING` and names `fresh_session`, because it has no agent
544
+ to ask. Ask for `fresh_session` there. Of your two doors, it is the one that brings back a dead
545
+ role, a dead architect of your project included: it suspends the claim where your request arrives,
546
+ leaves the session that claim recorded behind, and starts the claim again with the task its dead
547
+ turn held. When a child's own architect's claim has failed, the daemon also starts it again at
548
+ its child's next phase start. That start relaunches the session the claim recorded, or a new one
549
+ once supervise's `forgetSession` has dropped it. Both doors read
550
+ the claim's process at the moment you ask, not the daemon's memory of an older report, which a
551
+ daemon restart forgets. A refusal of `CLAIM_IN_A_TURN`
552
+ is a claim whose process that read found running, or one whose session is being compacted. A
553
+ claim whose process the runtime would not answer for, one that records no process to read, and
554
+ one that moved under your request and that a second read finds no longer working or gone once more
555
+ are refused `CLAIM_UNSETTLED`, each left exactly as your request found it, so ask again once the
556
+ runtime answers; a claim that moved is otherwise answered as that second read finds it. A claim
557
+ under a relaunch the wake pacing parks is refused `CLAIM_UNSETTLED` too.
543
558
 
544
559
  ## GitHub mentions
545
560
 
@@ -73,11 +73,15 @@ sent to one asks its architect to fold work that is already finished.
73
73
 
74
74
  - a tree with at least one open descendant, and more than 8 descendants in all or more than 2
75
75
  levels below its root;
76
- - a tree with at least one open descendant that filed a child no red-team verdict names. The
77
- verdict is a comment on the root whose first line reads `Red-team verdict for <root key>:`
78
- (`skill://legion-architect/references/decomposition.md`). Read the root's comments with
79
- `dispatch read --issue <ROOT> --all-events` and the replies under each verdict comment; a child
80
- named in none of them was filed without the check.
76
+ - a tree with at least one open descendant that filed a child no red-team verdict names. Each
77
+ architect posts its verdict on its own issue, the issue it files its children under: a comment
78
+ whose first line reads `Red-team verdict for <issue key>:`, with that issue's key
79
+ (`skill://legion-architect/references/decomposition.md`). The root's architect posts on the
80
+ root, and a child's own architect posts on that child. So read the verdicts on every
81
+ architect's issue of the tree, not only the root's: the root and each issue of the tree that has
82
+ children. Read each one's comments with `dispatch read --issue <KEY> --all-events` and the
83
+ replies under each verdict comment. A child named in none of the tree's verdicts was filed
84
+ without the check.
81
85
 
82
86
  Count no child created before that first line existed. The architects write it from the Legion
83
87
  release that carries this file, so every child filed before then has no verdict comment to
@@ -7,7 +7,7 @@ description: Use when dispatched as a per-process Legion phase worker — planne
7
7
 
8
8
  If this skill disagrees with the code, a command's output or its `--help`, follow those and say which line of this skill is wrong.
9
9
 
10
- You work one phase of one issue in a jj workspace every role of the issue shares; the architect owns the tree. Your role prompt gives the workspace binding, `gh`, the push, the handoff record, `handoff_complete` and how long your session stays; this skill adds the rest.
10
+ You work one phase of one issue in a jj workspace every role of the issue shares; the architect your `Legion addressing` line names owns your issue. When an architect above it tells you that it takes your issue's work while your issue's own architect does not run, send to that architect instead. Your role prompt gives the workspace binding, `gh`, the push, the handoff record, `handoff_complete` and how long your session stays; this skill adds the rest.
11
11
 
12
12
  ## Every phase, in this order
13
13
 
@@ -7,6 +7,9 @@ every Legion role (each phase worker, each architect, the controller) and for ea
7
7
  subagents, and it replaces the filing step of `skill://dispatch-first` and `skill://dispatch`. The
8
8
  controller fixes nothing itself: it hands a finding to the tree that owns the code, as
9
9
  `skill://legion-controller`, "Findings, and the issues you file", says.
10
+ A child's own architect opens no ask itself: where this page says to open a `dispatch ask`, it
11
+ sends the finding to the architect above it with `envoy_publish`, and the root's architect opens
12
+ the ask (`skill://legion-architect`, "Every turn").
10
13
 
11
14
  ## Fix it where you are, else hand it over, and ask only for a decision
12
15
 
@@ -29,10 +32,11 @@ A fix you are not sure of is not step 1: hand it over, or ask when a person must
29
32
  - A problem inside your issue is not such a finding: fix it in your change, since nothing needed
30
33
  for correctness is deferred.
31
34
  - A problem inside your tree is work its root spec's acceptance needs. A phase worker's such
32
- problem outside its own issue goes to the tree's architect (`skill://legion-worker`, *Stop
33
- rules*), which adds it to an open pull request of the tree, or files a child when it is a
34
- separately deliverable change. Anything else, in the same
35
- repository or not, is a finding.
35
+ problem outside its own issue goes to the architect that owns its issue, the one its
36
+ `Legion addressing` line names (`skill://legion-worker`, *Stop rules*). That architect adds it
37
+ to an open pull request of an issue it owns, or files a child under its own issue when it is a
38
+ separately deliverable change. It sends a problem in an issue it does not own to the architect
39
+ above it. Anything else, in the same repository or not, is a finding.
36
40
  - Search first (`skill://dispatch-first`): when an open issue already tracks the problem, comment
37
41
  the evidence on that issue and send or ask nothing. When an open ask on the report issue already
38
42
  asks about it (`dispatch open-asks --project <PROJECT>` lists them), add your evidence under that
@@ -41,7 +45,7 @@ A fix you are not sure of is not step 1: hand it over, or ask when a person must
41
45
 
42
46
  These issues are filed:
43
47
 
44
- - an architect's children of its own tree (`dispatch issue --parent`, `skill://legion-architect`)
48
+ - an architect's children of its own issue (`dispatch issue --parent`, `skill://legion-architect`)
45
49
  - a Legion root the controller files for a clear defect no running tree owns
46
50
  - an issue a person asked the controller to file, in a direct message, in a Slack request, or in
47
51
  their answer to an ask
@@ -97,12 +101,13 @@ of these that holds, so a person sees it and the controller finds it when it ret
97
101
  KEY>/ask/<id>` under that comment, so the controller takes the ask and not the comment. The
98
102
  report issue's assignee sees the ask, and the controller's catch-up takes it.
99
103
  2. **The report issue is missing or closed:** ask on your own issue, the evidence posted there as
100
- a comment first. Then publish the ask's reference to your tree's architect (`skill://legion-worker`,
101
- *Stop rules*). An architect holds its own. The architect holds your issue's
102
- acceptance until a controller has taken the ask (`skill://legion-architect`, "Acceptance and the
103
- merge"). That hold is what keeps the ask readable: an open ask on a closed issue drops out of
104
- the controller's own listing (`asks.go`'s `listOpenAsks` takes `i.closed_at is null`), so an
105
- issue that closed over one hides it for good.
104
+ a comment first. Then publish the ask's reference to the architect that owns your issue, the
105
+ one your `Legion addressing` line names (`skill://legion-worker`, *Stop rules*). A root's
106
+ architect holds its own ask. The architect holds your issue's acceptance until a controller has
107
+ taken the ask (`skill://legion-architect`, "Acceptance and the merge"). That hold is what keeps
108
+ the ask readable: an open ask on a closed issue drops out of the controller's own listing
109
+ (`asks.go`'s `listOpenAsks` takes `i.closed_at is null`), so an issue that closed over one hides
110
+ it for good.
106
111
  3. **Your own issue is closed too** (Dispatch refuses the ask `409 ISSUE_CLOSED`, as on a
107
112
  production check): put the report issue back in reach yourself, with the `dispatch` commands
108
113
  below, and ask there. Never `legion({op: "set_status"})`, which the controller's report steps
@@ -51,7 +51,7 @@ as the fingerprint decides (*The reviewer*, below, and
51
51
  ```
52
52
 
53
53
  A read GitHub refuses stops the command there, and is reported to the architect, never guessed.
54
- With that read refused, the required set is unknown, so no required item can be judged: do not approve, and wait with a `WAITING` line naming the refused read. The architect has the read made with a credential that can make it, or asks a person, and the review goes on from its answer.
54
+ With that read refused, the required set is unknown, so no required item can be judged: do not approve, and wait with a `WAITING` line naming the refused read. The architect has the read made with a credential that can make it, or asks a person (a child's own architect asks through the architect above it), and the review goes on from the answer.
55
55
  The head's check-runs
56
56
  (`gh api repos/<o>/<r>/commits/<headRefOid>/check-runs --paginate --jq '.check_runs[] | [.name, .status, .conclusion] | @tsv'`):
57
57
  every required name present, `completed` and `success` (GitHub counts `neutral` and `skipped`
@@ -200,10 +200,11 @@ wait, since it stands whatever CI says and the issue leaves reviewing with it. T
200
200
  on nothing either: it ends the round whatever CI says at the head it names, since the round reads
201
201
  no CI verdict, and a settlement the daemon reads later — at that head or any above it — moves the
202
202
  issue nowhere. The daemon names each check GitHub reported, with the conclusion GitHub gave it,
203
- in one message to the tree's architect, the worker of the issue's current phase and the
204
- implementer, and judges none of them: a red is the implementer's to fix or re-run, the
205
- architect's to decide on, and GitHub's to hold the merge for. So the reviewer's own read before
206
- it approves is the only read that decides anything. A review that names an older head reviews
203
+ in one message to the architect that owns the issue (the one your `Legion addressing` line
204
+ names), the worker of the issue's current phase and the implementer, and judges none of them: a
205
+ red is the implementer's to fix or re-run, the architect's to decide on, and GitHub's to hold the
206
+ merge for. So the reviewer's own read before it approves is the only read that decides anything.
207
+ A review that names an older head reviews
207
208
  code the pull request no longer has. The daemon moves the issue once all three are in — the
208
209
  decision GitHub reports, your completion, in either order, and GitHub's own answer that the
209
210
  approved head is one the issue may advance on — so a review posted without a completion leaves
@@ -213,8 +214,9 @@ it there until that answer comes clean.
213
214
  ## The architect's acceptance
214
215
 
215
216
  - Between the reviewer's approval and retro the issue sits in `accepting` (Dispatch status
216
- `needs_review`), where no worker is started: the tree's architect reads the evidence (the
217
- tester's handoff, `dispatch results --issue <issue>` at the approved head and the reviewer's
217
+ `needs_review`), where no worker is started: the architect that owns the issue, the one each
218
+ phase worker's `Legion addressing` line names, reads the evidence (the tester's handoff,
219
+ `dispatch results --issue <issue>` at the approved head and the reviewer's
218
220
  approval of the head by SHA; the daemon refuses the sign-off while an issue beneath it is still
219
221
  in the workflow, `SIGNOFF_CHILD_IN_WORKFLOW`, so a parent is accepted after its children, on
220
222
  the head of its last round, `skill://legion-architect`, section 4) and accepts with the
@@ -280,10 +282,17 @@ it there until that answer comes clean.
280
282
  passes `--merge` in place of `--squash` where the repository allows merge commits
281
283
  (`allow_merge_commit`) and the base's rules require no linear history
282
284
  (`required_linear_history`), since a squash there leaves each open pull request built on the
283
- merged branch a conflict of history alone; otherwise it squashes and tells the architect which
284
- open pull requests of the tree build on the merged branch. Each one GitHub then reports
285
- `CONFLICTING` comes back to `implementing`, and the architect tells its implementer to expect
286
- it and to merge the base forward in that implementing round. On a base with a merge queue —
285
+ merged branch a conflict of history alone; otherwise it squashes and tells the architect its
286
+ addressing line names which open pull requests of the tree build on the merged branch. Each one
287
+ whose issue stands past `implementing` and that GitHub then reports `CONFLICTING` comes back to
288
+ `implementing` by the daemon's own move, with a task that names the base to merge forward, and
289
+ the architect that owns its issue hears of it by a `checks-red` notice. The architect the
290
+ merger told tells the implementer of each of those pull requests whose issue is still in
291
+ `implementing` and is an issue it owns to expect the conflict and to merge the base forward in
292
+ that implementing round. The implementer of one whose issue that architect does not own merges
293
+ the base forward once GitHub reports its pull request `CONFLICTING`, as its role prompt says
294
+ (*Reintegrating the base* in
295
+ `skill://legion-worker/references/conflicts-and-rewrites.md`). On a base with a merge queue —
287
296
  a `merge_queue`
288
297
  rule among the base branch's rules — it enqueues the pull request instead, with GraphQL
289
298
  `enqueuePullRequest` and the same head as `expectedHeadOid`, because `gh pr merge` on such a
@@ -57,8 +57,9 @@ to it (below). Then it pushes and completes. It never waits for, watches or poll
57
57
  allows, and they read no check; `skill://legion-worker`, *Every role pushes its own commits*,
58
58
  gives them).
59
59
  Under the Go daemon a check that settles red on the head moves the issue nowhere: the daemon names
60
- every check GitHub reported, with the conclusion GitHub gave it, in one message to the tree's
61
- architect, the worker of the issue's current phase and the implementer, and judges none of them.
60
+ every check GitHub reported, with the conclusion GitHub gave it, in one message to the architect
61
+ that owns the issue, the worker of the issue's current phase and the implementer, and judges none
62
+ of them.
62
63
  That message is the implementer's to act on while it still works the issue: a red that failed on
63
64
  its own is re-run once (`gh run rerun <run-id> --failed`), woken by the pull request's checks
64
65
  event (`skill://envoy`, *Wait for CI or a merge*: subscribe, then end the turn) and never by a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/claude-envoy",
3
- "version": "2.42.0",
3
+ "version": "2.43.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Claude Code plugin for Legion's Envoy bus",
6
6
  "type": "module",