@sjawhar/opencode-legion-envoy 5.5.0 → 5.5.1

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.0",
3
+ "version": "5.5.1",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/src/server.js",
@@ -285,6 +285,13 @@ is open. That is the one review-thread step a human takes: the review App cannot
285
285
  on a pull request the implementer opened, and the implementer's and merger's runs of the command
286
286
  close every accepted one.
287
287
 
288
+ If a reviewer reports that `legion threads resolve` exited 1 counting threads that hold the
289
+ implement App's pending draft (the daemon counts them and never names them), tell the worker
290
+ holding the issue's phase (`envoy_publish` to its role topic) to move the issue back to
291
+ `implementing` with `request_backward_move`, naming the count, so the implementer submits or
292
+ discards its pending review; its own run of the command names those threads `left open … an
293
+ unsubmitted draft in a pending review`. Open no ask for it: the implementer clears it.
294
+
288
295
  ## 7. Close
289
296
 
290
297
  After the merge result and the implementer's production report are recorded, post the sign-off and
@@ -20,7 +20,16 @@ Every path it cites is in sjawhar/legion.
20
20
  the daemon instead (`POST /legion/v1/threads/resolve`), which resolves as the implementer's App
21
21
  only the threads a bot outside Legion's role Apps opened whose newest submitted comment is the
22
22
  reviewer's `Accepted:`, on the pull request of the reviewer's own issue, and prints the same
23
- lines; the reviewer never holds the implementer's token.
23
+ lines; the reviewer never holds the implementer's token. A thread whose newest comment is a
24
+ draft in the implement App's pending review (the implementer's or the merger's: GitHub shows it
25
+ to that App alone, as which the daemon reads) is left open and never named: the command prints
26
+ only how many there are (`<n> unresolved threads hold the implement App's pending draft and
27
+ were left open`) and exits 1, as it does on a refusal. Report that count to the architect before
28
+ you spend your one re-run of the failed workflow; the architect sends the issue back so the
29
+ implementer submits or discards its pending review. Once the review is submitted, the
30
+ implementer's reply is the thread's newest comment, which leaves it open: answer the thread
31
+ again, then run the command again. Once the review is discarded, your `Accepted:` is the newest
32
+ comment again, and running the command again closes the thread.
24
33
  When `LEGION_GRANT_FILE` or `LEGION_GRANT` is set, use `legion threads resolve --pr <number> --repo <owner>/<repo>`.
25
34
  When neither is set, add `--gh` to that command, which applies the fallback's rule below through
26
35
  your own `gh`; where no `legion` command is installed, use `gh api graphql` with the session's