@sjawhar/claude-envoy 5.15.2 → 5.16.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.
@@ -2,5 +2,5 @@
2
2
  "name": "claude-envoy",
3
3
  "description": "Put Envoy events into the Claude Code session's own conversation and expose Envoy MCP tools.",
4
4
  "mcpServers": "./.mcp.json",
5
- "version": "5.15.2"
5
+ "version": "5.16.0"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-envoy",
3
- "version": "5.15.2",
3
+ "version": "5.16.0",
4
4
  "description": "Put Envoy events into the Claude Code session's own conversation and expose Envoy MCP tools.",
5
5
  "mcpServers": {}
6
6
  }
@@ -62199,9 +62199,9 @@ var import_nats5 = __toESM(require_mod4(), 1);
62199
62199
 
62200
62200
  // package.json
62201
62201
  var name2 = "@sjawhar/claude-envoy";
62202
- var version2 = "5.15.2";
62202
+ var version2 = "5.16.0";
62203
62203
  var legion = {
62204
- daemonApiVersion: 219
62204
+ daemonApiVersion: 220
62205
62205
  };
62206
62206
  var package_default = {
62207
62207
  name: name2,
@@ -63987,7 +63987,8 @@ var legionAssignment = object({
63987
63987
  experiment: nonEmptyString2.optional(),
63988
63988
  variant: string2().optional(),
63989
63989
  mode: string2().optional(),
63990
- drawnAt: timestamp.optional()
63990
+ drawnAt: timestamp.optional(),
63991
+ plan: nonEmptyString2.optional()
63991
63992
  });
63992
63993
  var legionIssue = object({
63993
63994
  key: nonEmptyString2.optional(),
@@ -18,6 +18,8 @@ Your role prompt says what `stop_task` does, what holds a stopped task and what
18
18
  A stop you make yourself sends you no notice: the 200 answer of `stop_task` is the record.
19
19
  Then give a later version that changes the task, or end the work: for a child under your own issue, your own status write in Dispatch, by the rules for ending a child in your role prompt; `dispatch ask` on the root for a root.
20
20
  When the stopped task is your own issue's, as a child's architect, send the end of that work to the architect above you with `envoy_publish`: the daemon sets back your status write on your own issue.
21
+ On an issue whose experiment's group runs the project's default steps, Legion takes no later version (`PLAN_NOT_TAKEN`).
22
+ To run such a child under your own issue again, restart it (`backlog`, then `rerun_child`): it starts the default steps at their first step.
21
23
 
22
24
  - **`retro-held`:** a parent's task passed its last step, which is not your `acceptance:owner` step, while issues beneath it are still in the workflow.
23
25
  Legion holds it before its retro, so that it merges after them, and starts the retro when the last one leaves.
@@ -25,6 +27,9 @@ Your role prompt says what `stop_task` does, what holds a stopped task and what
25
27
  `retry_or_escalate` refuses that hold, a retry and an escalation alike: while issues beneath it are in the workflow, `409 HELD_FOR_CHILDREN` names each of them; with none left, the answer says that its tree lingers or that its root waits in the admission line.
26
28
  A `todo` on the root leaves it held.
27
29
 
28
- - **`plan-not-taken`:** an earlier owner of the issue gave it a plan, and Legion did not take it at the issue's first step.
29
- Its reason names the version, who gave it, and the plan the first step runs: yours, or the default steps.
30
+ - **`plan-not-taken`:** Legion did not take a plan at the issue's first step, in one of two cases.
31
+ In the first, an earlier owner of the issue gave the plan.
32
+ Its reason names the version, who gave it, and the plan the first step runs: yours or the default steps.
30
33
  To run the earlier plan, `stop_task` the task that runs now, then give the earlier plan again with `register_plan` as your own.
34
+ In the second, the reason names the issue's group, whose issues run the project's default steps.
35
+ Start nothing for it: that issue takes no plan (`skill://legion-architect/references/plan.md`, "What Legion refuses").
@@ -8,6 +8,7 @@ Stopping a task, a later version of a plan Legion runs, and the `task-stopped`,
8
8
  ## The task block
9
9
 
10
10
  You choose which of Legion's steps each issue of your tree runs.
11
+ An issue whose experiment's group runs the project's default steps is the exception ("What Legion refuses", below).
11
12
  The plan is the issue's `plan.md` document (`dispatch artifact` on the issue).
12
13
  In this release it holds one `plan_task` block, the issue's one task:
13
14
 
@@ -49,6 +50,10 @@ So on a task with no reviewer step and no `acceptance:owner`, such a check holds
49
50
  Fix each reason and give a new version.
50
51
  A reason that ends `This release of Legion does not carry it out yet.` names a plan a later release takes: write it again within the table above.
51
52
 
53
+ An issue whose experiment's group runs the project's default steps takes no plan: give it none, and it runs the default steps.
54
+ Once the daemon records such an issue, `register_plan` on it answers `409 PLAN_NOT_TAKEN`, which is no fault of the plan.
55
+ `read_record` shows such an issue: one of its `assignments` has `plan` `default`.
56
+
52
57
  The reasons a version gets for where its task stands are in `skill://legion-architect/references/plan-changes.md`.
53
58
 
54
59
  ## When to give it
@@ -58,6 +63,8 @@ The reasons a version gets for where its task stands are in `skill://legion-arch
58
63
  - **A child:** before `release_children` releases it.
59
64
  The daemon has not recorded the child yet, so Legion keeps the plan until the release;
60
65
  the answer, as for any plan it takes, is the plan's `version` and each task with its `steps`.
66
+ A project's experiment draws the child when the daemon records it.
67
+ If the child's group runs the project's default steps, its first step passes your plan over (`plan-not-taken`).
61
68
  A child the daemon has not recorded is refused once its Dispatch status is none of `triage`, `backlog`, `icebox` and `todo` (`ISSUE_ALREADY_RELEASED`).
62
69
  The child's first step can start in the same admission pass as its release, so a plan given after it comes too late.
63
70
 
@@ -54,6 +54,6 @@ Name them in the day's report and take nothing for them.
54
54
  | `children_first` | An open child under it | The last open child leaving the workflow |
55
55
  | `accepted_ancestor` | The daemon has accepted the head an ancestor's last step passed | That ancestor standing in neither `retro` nor `merging` (a `held` ancestor stands in the phase it was held from) |
56
56
  | `children_before_retro` | A parent whose task's last step is not `acceptance:owner` is held before retro while its children run | The last `heldBy` issue leaves the workflow, then Legion starts retro |
57
- | `task_stopped` | A task is stopped and no step of it runs | A later `register_plan` version that changes the task, or a root's `todo`, starts its first step |
57
+ | `task_stopped` | A task is stopped and no step of it runs | A later `register_plan` version that changes the task, a root's `todo`, or a child's restart (`backlog`, then `rerun_child`) starts its first step, and an issue whose experiment's group runs the project's default steps takes no later version |
58
58
  | `at_work` | In `accepting`, `retro` or `merging`, not `held`, on no slot | Its own sign-off, retro and merge |
59
59
  | `unclassified` | None of the above | Nothing of yours: name it with its `phase` and `status` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/claude-envoy",
3
- "version": "5.15.2",
3
+ "version": "5.16.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Claude Code plugin for Legion's Envoy bus",
6
6
  "type": "module",
@@ -19,7 +19,7 @@
19
19
  "AGENTS.md"
20
20
  ],
21
21
  "legion": {
22
- "daemonApiVersion": 219
22
+ "daemonApiVersion": 220
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",