@sjawhar/pi-legion-envoy 5.2.1 → 5.3.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/dist/legion.js +2 -2
- package/dist/skills/legion-worker/SKILL.md +22 -0
- package/package.json +1 -1
package/dist/legion.js
CHANGED
|
@@ -16142,7 +16142,7 @@ import { logger } from "@oh-my-pi/pi-utils";
|
|
|
16142
16142
|
// package.json
|
|
16143
16143
|
var package_default = {
|
|
16144
16144
|
name: "@sjawhar/pi-legion-envoy",
|
|
16145
|
-
version: "5.
|
|
16145
|
+
version: "5.3.1",
|
|
16146
16146
|
type: "module",
|
|
16147
16147
|
omp: {
|
|
16148
16148
|
extensions: [
|
|
@@ -31484,7 +31484,7 @@ var LegionGoErrorResponse = exports_external.union([
|
|
|
31484
31484
|
var legionGoDeliveryView = exports_external.strictObject({
|
|
31485
31485
|
id: nonEmptyString2,
|
|
31486
31486
|
task: nonEmptyString2,
|
|
31487
|
-
phase: exports_external.enum(
|
|
31487
|
+
phase: exports_external.enum(LEGION_GO_WORKFLOW_PHASES).optional(),
|
|
31488
31488
|
queuedAt: timestamp,
|
|
31489
31489
|
deliveredAt: timestamp.optional(),
|
|
31490
31490
|
confirmedAt: timestamp.optional()
|
|
@@ -603,6 +603,28 @@ This publishes your phase's completion to the architect's role and clears the da
|
|
|
603
603
|
record of this issue's active phase. Do not add pipeline labels, run a controller loop, or
|
|
604
604
|
invent a different completion protocol — this is the whole contract.
|
|
605
605
|
|
|
606
|
+
**A refused completion is information, not a retry loop.** The daemon attributes your report to
|
|
607
|
+
the run whose task you took, and answers with what it found. What each answer carries, and what to
|
|
608
|
+
do:
|
|
609
|
+
|
|
610
|
+
- `HANDOFF_STALE_GENERATION` — names the issue, the run it is on, and the run your completion
|
|
611
|
+
reported. The issue has moved to a newer run since your task was given, so the work you just
|
|
612
|
+
reported belongs to a run that is over. Nothing you can repeat changes that: stop, push nothing
|
|
613
|
+
further, and tell the architect what you completed and that its run has been superseded. A task
|
|
614
|
+
for the current run arrives in this same session if the phase still needs you.
|
|
615
|
+
- `HANDOFF_NOT_CURRENT_PHASE` — names your role, the issue, and the phase it is in now. The issue
|
|
616
|
+
has left your phase; report to the architect rather than completing again.
|
|
617
|
+
- `HANDOFF_NO_RUN` — names neither: it says this claim has taken no task, so the daemon cannot
|
|
618
|
+
tell which run you are reporting. Your pane is completing outside any assignment. Say so to the
|
|
619
|
+
architect; do not re-run the phase.
|
|
620
|
+
- `HANDOFF_ALREADY_RECORDED` — names your role, the phase, the review round and the commit. This
|
|
621
|
+
exact call was received before, and its first answer stands — accepted, or one of the refusals
|
|
622
|
+
above. Sending it again changes nothing; if you did not see that first answer, tell the
|
|
623
|
+
architect so and quote this one.
|
|
624
|
+
|
|
625
|
+
Quote the answer verbatim in what you tell the architect: with the run and phase it names, the
|
|
626
|
+
difference between "my work is lost" and "my work belongs to the previous run" is visible.
|
|
627
|
+
|
|
606
628
|
**Stay in this session afterward.** Your process does not exit when your phase completes;
|
|
607
629
|
it goes idle in its pane, and after `worker_idle_retire_seconds` (default 600 s) idle with no
|
|
608
630
|
active phase the daemon retires it — your next assignment resumes this same session from its
|