@sjawhar/claude-envoy 2.16.0 → 2.17.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.
- package/.claude-plugin/plugin.json +1 -1
- package/.omp-plugin/plugin.json +1 -1
- package/dist/envoy-channel.js +1 -1
- package/legion/skills/legion-controller/references/escalation.md +4 -13
- package/legion/skills/legion-controller/references/wakes.md +1 -2
- package/package.json +1 -1
- package/skills/envoy/SKILL.md +1 -0
package/.omp-plugin/plugin.json
CHANGED
package/dist/envoy-channel.js
CHANGED
|
@@ -56227,7 +56227,7 @@ var import_nats2 = __toESM(require_mod4(), 1);
|
|
|
56227
56227
|
|
|
56228
56228
|
// package.json
|
|
56229
56229
|
var name = "@sjawhar/claude-envoy";
|
|
56230
|
-
var version2 = "2.
|
|
56230
|
+
var version2 = "2.17.0";
|
|
56231
56231
|
var legion = {
|
|
56232
56232
|
daemonApiVersion: 111
|
|
56233
56233
|
};
|
|
@@ -103,18 +103,10 @@ on the pod, so the round does not wait for it. Its retry is the architect's or t
|
|
|
103
103
|
for any failed role, and yours once the architect escalates the hold
|
|
104
104
|
([An escalated hold](#an-escalated-hold)). A retried claim is asked like any other.
|
|
105
105
|
|
|
106
|
-
Before it replaces the pod, the daemon
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
and a link to an artifact of the issue with the full list, for the issue's roles to merge into
|
|
111
|
-
the issue branch. A pod of an older image pushes to branches of its own,
|
|
112
|
-
`legion/<KEY>-rescue-<pod>-<n>`, which can hold commits of another session and of another
|
|
113
|
-
issue. Its message says so in the same shape, and tells the issue's roles to read each commit
|
|
114
|
-
on such a branch and take only the commits they need into the issue branch. That message asks
|
|
115
|
-
nothing of you. A pod whose shim is older than the check is replaced unchecked, and the daemon
|
|
116
|
-
writes that on the issue. Everything else of the pod's disk goes with the pod: the round's
|
|
117
|
-
message tells each role to put any scratch evidence it still needs on Dispatch before it
|
|
106
|
+
Before it replaces the pod, the daemon reads nothing of the pod's disk. A role's own push is
|
|
107
|
+
what keeps its work: work a role did not push before the pod goes, a failed claim's included,
|
|
108
|
+
goes with the pod, and its agent does it again in the new one. The round's message tells each
|
|
109
|
+
role to push its work and to put any scratch evidence it still needs on Dispatch before it
|
|
118
110
|
answers.
|
|
119
111
|
One round wakes you once, however many sweeps find it open, so handle it when it arrives.
|
|
120
112
|
Read `read_state` and the issue first, as for every wake: a round that finished since needs
|
|
@@ -125,7 +117,6 @@ Take the wake by what its `reason` names:
|
|
|
125
117
|
| `reason` names | What holds the round | What you do |
|
|
126
118
|
|---|---|---|
|
|
127
119
|
| an operator's suspension | An operator suspended a role the round asked. The daemon does not replace the pod until the operator resumes each such role, whatever the bound. | Open a finding ask naming the issue and each suspended role, so the operator resumes it. |
|
|
128
|
-
| a failed check for unpushed work | The check or a push failed for a workspace, so the daemon did not replace the pod. `reason` names the claim the check ran through, each workspace and its error. | Open a finding ask naming the issue, the round and `reason`, with each workspace and its error, so an operator reads the pod. |
|
|
129
120
|
| a refused pod replacement | The runtime refused `ReplacePod`. The daemon tries again at each sweep. | Open a finding ask naming the issue, the round and the `ReplacePod` error, so an operator reads the pod. |
|
|
130
121
|
| no process in the pod | No claim of the issue records a process in the round's pod, or in any pod, so the daemon has nothing to replace the pod through. The round waits for a role of the issue to run again. | Open a finding ask naming the issue, the round and `reason`, so an operator reads the pod. |
|
|
131
122
|
| two pods | The claims of the issue record two pods, so a replacement is in flight, and the round waits for it. | Open a finding ask naming the issue, the round and `reason`, so an operator reads the pod. |
|
|
@@ -408,8 +408,7 @@ records you were sent in it.
|
|
|
408
408
|
## `update-stalled on <KEY>` (`{kind: "update-stalled", reason, update}`)
|
|
409
409
|
|
|
410
410
|
The update round over the issue's pod has passed its bound, and something still holds it: an
|
|
411
|
-
operator's suspension, a
|
|
412
|
-
the pod, or two pods. Handle it as
|
|
411
|
+
operator's suspension, a refused pod replacement, no process in the pod, or two pods. Handle it as
|
|
413
412
|
`skill://legion-controller/references/escalation.md#an-update-round-that-is-not-finishing-update-stalled`
|
|
414
413
|
says.
|
|
415
414
|
|
package/package.json
CHANGED
package/skills/envoy/SKILL.md
CHANGED
|
@@ -137,6 +137,7 @@ Every topic starts with `notifications.`.
|
|
|
137
137
|
No error releases the role's claim: a holder whose `holder_state` is `unresponsive` keeps its role.
|
|
138
138
|
`envoy_role_get(role=...)` finds the holder first.
|
|
139
139
|
The forward is kept on the holder's inbox, so the holder's session gets it once from its own durable consumer, also after a restart, a reconnect, or while it was not running.
|
|
140
|
+
From a shell with no tool device, read the holder with `envoy role <role>` where sjawhar/dotfiles' `scripts/envoy` is on the PATH, and in a Legion pod, which has no `envoy` command, with `curl -sS -H "Authorization: Bearer $(cat "$ENVOY_TOKEN_FILE")" "$ENVOY_URL/v1/roles/<role>" | jq -r '.holder // .reason // .error'`, which prints the holder's session id, `unclaimed` for a role nobody holds, or the error of a refused read, such as `unauthorized` for a bad token.
|
|
140
141
|
|
|
141
142
|
- A message that must reach more than 4 role topics is the project controller's to send, not yours.
|
|
142
143
|
Each publish wakes a session, and a woken session reads its whole context again, which the provider charges as uncached input: a mean of 576,083 tokens a wake, a median of 493,636 and a ninetieth percentile of 1,327,888.
|