@sjawhar/claude-envoy 1.26.1 → 1.26.2

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": "1.26.1"
5
+ "version": "1.26.2"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-envoy",
3
- "version": "1.26.1",
3
+ "version": "1.26.2",
4
4
  "description": "Put Envoy events into the Claude Code session's own conversation and expose Envoy MCP tools.",
5
5
  "mcpServers": {}
6
6
  }
@@ -52093,8 +52093,23 @@ function sessionsOnMachine(sessions, machine) {
52093
52093
  }
52094
52094
  var envoyToolSchemas = new Map;
52095
52095
 
52096
- // ../contracts/src/legion-api.ts
52096
+ // ../contracts/src/legion-claim-recovery.ts
52097
52097
  var nonEmptyString = string2().min(1);
52098
+ var LegionClaimRequest = strictObject({
52099
+ grantId: nonEmptyString,
52100
+ issue: nonEmptyString,
52101
+ role: _enum2(LEGION_ROLES)
52102
+ });
52103
+ var LegionFreshSessionResponse = object({
52104
+ phaseNotRestarted: nonEmptyString.optional()
52105
+ });
52106
+ var LegionCompactResponse = object({
52107
+ compacted: boolean2(),
52108
+ reason: string2().optional()
52109
+ });
52110
+
52111
+ // ../contracts/src/legion-api.ts
52112
+ var nonEmptyString2 = string2().min(1);
52098
52113
  var issueKey = string2().regex(DISPATCH_KEY_PATTERN);
52099
52114
  var timestamp = exports_iso.datetime({ offset: true });
52100
52115
  var LegionInstant = timestamp.regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2})$/, { error: "an RFC 3339 time with seconds, as 2026-11-02T09:00:00Z is" });
@@ -52143,19 +52158,19 @@ var LEGION_CLAIM_STATES = [
52143
52158
  var legionLocator = discriminatedUnion("runtime", [
52144
52159
  object({
52145
52160
  runtime: literal("tmux"),
52146
- claim: nonEmptyString,
52147
- incarnation: nonEmptyString,
52148
- tmux: object({ window: nonEmptyString, pane: nonEmptyString })
52161
+ claim: nonEmptyString2,
52162
+ incarnation: nonEmptyString2,
52163
+ tmux: object({ window: nonEmptyString2, pane: nonEmptyString2 })
52149
52164
  }),
52150
52165
  object({
52151
52166
  runtime: literal("sandbox"),
52152
- claim: nonEmptyString,
52153
- incarnation: nonEmptyString,
52167
+ claim: nonEmptyString2,
52168
+ incarnation: nonEmptyString2,
52154
52169
  sandbox: object({
52155
- namespace: nonEmptyString,
52156
- name: nonEmptyString,
52157
- podUid: nonEmptyString,
52158
- container: nonEmptyString,
52170
+ namespace: nonEmptyString2,
52171
+ name: nonEmptyString2,
52172
+ podUid: nonEmptyString2,
52173
+ container: nonEmptyString2,
52159
52174
  generation: number2().int().positive()
52160
52175
  })
52161
52176
  })
@@ -52163,16 +52178,16 @@ var legionLocator = discriminatedUnion("runtime", [
52163
52178
  var legionCapabilityReportView = object({
52164
52179
  measuredAt: timestamp,
52165
52180
  incarnation: string2(),
52166
- ok: array(nonEmptyString),
52167
- open: array(object({ name: nonEmptyString, detail: nonEmptyString }))
52181
+ ok: array(nonEmptyString2),
52182
+ open: array(object({ name: nonEmptyString2, detail: nonEmptyString2 }))
52168
52183
  });
52169
52184
  var legionStepView = object({
52170
52185
  at: timestamp.optional(),
52171
52186
  turnStartedAt: timestamp.optional(),
52172
- tool: nonEmptyString.optional(),
52173
- callId: nonEmptyString.optional(),
52187
+ tool: nonEmptyString2.optional(),
52188
+ callId: nonEmptyString2.optional(),
52174
52189
  argsBytes: number2().int().positive().optional(),
52175
- argsHash: nonEmptyString.optional(),
52190
+ argsHash: nonEmptyString2.optional(),
52176
52191
  startedAt: timestamp.optional(),
52177
52192
  endedAt: timestamp.optional()
52178
52193
  });
@@ -52182,42 +52197,41 @@ var legionClaimView = object({
52182
52197
  locator: legionLocator.optional(),
52183
52198
  capabilities: legionCapabilityReportView.optional(),
52184
52199
  pluginContract: number2().int().nonnegative(),
52185
- updateRound: nonEmptyString.optional(),
52186
- updateHead: nonEmptyString.optional(),
52200
+ updateRound: nonEmptyString2.optional(),
52201
+ updateHead: nonEmptyString2.optional(),
52187
52202
  step: legionStepView.optional()
52188
52203
  });
52189
52204
  var legionHandoffRecordView = object({
52190
- id: nonEmptyString,
52205
+ id: nonEmptyString2,
52191
52206
  version: number2().int().positive()
52192
52207
  });
52193
52208
  var legionPhaseView = object({
52194
52209
  claim: legionClaimView,
52195
- handoffCommit: nonEmptyString.optional(),
52210
+ handoffCommit: nonEmptyString2.optional(),
52196
52211
  handoffRecord: legionHandoffRecordView.optional(),
52197
52212
  rounds: number2().int().nonnegative()
52198
52213
  });
52199
52214
  var legionPullRequestView = object({
52200
- repo: nonEmptyString,
52215
+ repo: nonEmptyString2,
52201
52216
  number: number2().int().positive(),
52202
- head: nonEmptyString,
52217
+ head: nonEmptyString2,
52203
52218
  state: _enum2(["open", "merged", "closed"]),
52204
- checksVerdict: nonEmptyString.optional(),
52205
- reviewDecision: nonEmptyString.optional(),
52206
- fixAttempts: number2().int().nonnegative()
52219
+ checksVerdict: nonEmptyString2.optional(),
52220
+ reviewDecision: nonEmptyString2.optional()
52207
52221
  });
52208
52222
  var legionGateView = object({
52209
- artifactId: nonEmptyString,
52223
+ artifactId: nonEmptyString2,
52210
52224
  currentVersion: number2().int().positive(),
52211
52225
  approvedVersion: number2().int().positive().nullable()
52212
52226
  });
52213
52227
  var legionDesignStep = _enum2(GATED_STEPS);
52214
52228
  var legionGatedStepView = object({
52215
52229
  step: legionDesignStep,
52216
- artifactId: nonEmptyString.optional(),
52230
+ artifactId: nonEmptyString2.optional(),
52217
52231
  currentVersion: number2().int().positive().optional(),
52218
52232
  approvedVersion: number2().int().positive().nullable(),
52219
52233
  status: _enum2(["unregistered", "waiting", "approved", "changes_requested"]),
52220
- changesReason: nonEmptyString.optional()
52234
+ changesReason: nonEmptyString2.optional()
52221
52235
  });
52222
52236
  var legionSlotView = object({
52223
52237
  index: number2().int().nonnegative(),
@@ -52229,16 +52243,16 @@ var legionWaitingLineView = object({
52229
52243
  length: number2().int().positive()
52230
52244
  });
52231
52245
  var legionCheckWakeView = object({
52232
- kind: nonEmptyString,
52246
+ kind: nonEmptyString2,
52233
52247
  detail: string2(),
52234
52248
  at: timestamp
52235
52249
  });
52236
52250
  var legionCheckView = object({
52237
- repo: nonEmptyString,
52251
+ repo: nonEmptyString2,
52238
52252
  pullRequest: number2().int().positive(),
52239
52253
  mergeCommit: string2(),
52240
52254
  openedAt: timestamp,
52241
- role: nonEmptyString,
52255
+ role: nonEmptyString2,
52242
52256
  looks: number2().int().nonnegative(),
52243
52257
  lookOpen: boolean2(),
52244
52258
  lastWake: legionCheckWakeView.optional(),
@@ -52261,18 +52275,18 @@ var legionWaitTimes = {
52261
52275
  answeredBy: _enum2(LEGION_WAIT_ANSWERS).optional()
52262
52276
  };
52263
52277
  var legionWaitingOn = discriminatedUnion("kind", [
52264
- object({ kind: literal("ask"), ask: nonEmptyString, ...legionWaitTimes }),
52278
+ object({ kind: literal("ask"), ask: nonEmptyString2, ...legionWaitTimes }),
52265
52279
  object({
52266
52280
  kind: literal("gate"),
52267
52281
  gateVersion: number2().int().positive(),
52268
- artifactId: nonEmptyString,
52282
+ artifactId: nonEmptyString2,
52269
52283
  ...legionWaitTimes
52270
52284
  })
52271
52285
  ]).refine((wait) => wait.answeredAt === undefined === (wait.answeredBy === undefined), {
52272
52286
  message: "answeredAt and answeredBy appear together"
52273
52287
  });
52274
52288
  var legionPendingStatusWrite = object({
52275
- issue: nonEmptyString,
52289
+ issue: nonEmptyString2,
52276
52290
  payload: record(string2(), unknown()),
52277
52291
  attempts: number2().int().nonnegative(),
52278
52292
  nextAt: timestamp,
@@ -52285,26 +52299,26 @@ var legionStrandedClaim = object({
52285
52299
  });
52286
52300
  var legionHeldOutboxRow = object({
52287
52301
  id: number2().int().positive(),
52288
- kind: nonEmptyString,
52289
- issue: nonEmptyString,
52302
+ kind: nonEmptyString2,
52303
+ issue: nonEmptyString2,
52290
52304
  waitedSeconds: number2().int().nonnegative(),
52291
52305
  waitsOn: number2().int().positive()
52292
52306
  });
52293
52307
  var legionWakeWaiting = object({
52294
- claim: nonEmptyString,
52308
+ claim: nonEmptyString2,
52295
52309
  issue: issueKey,
52296
52310
  role: _enum2(LEGION_ROLES),
52297
- kind: nonEmptyString,
52311
+ kind: nonEmptyString2,
52298
52312
  dueAt: timestamp
52299
52313
  });
52300
52314
  var legionIssue = object({
52301
- key: nonEmptyString,
52315
+ key: nonEmptyString2,
52302
52316
  generation: number2().int().nonnegative(),
52303
52317
  phase: _enum2(LEGION_PHASES),
52304
- status: nonEmptyString,
52318
+ status: nonEmptyString2,
52305
52319
  tree: issueKey.optional(),
52306
- repo: nonEmptyString.optional(),
52307
- defaultBranch: nonEmptyString.optional(),
52320
+ repo: nonEmptyString2.optional(),
52321
+ defaultBranch: nonEmptyString2.optional(),
52308
52322
  holdReason: literal("escalated").optional(),
52309
52323
  architect: legionClaimView.optional(),
52310
52324
  workers: partialRecord(string2(), legionPhaseView),
@@ -52320,7 +52334,7 @@ var legionIssue = object({
52320
52334
  memoryDrawnAt: timestamp.optional()
52321
52335
  });
52322
52336
  var daemonInfo = object({
52323
- project: nonEmptyString,
52337
+ project: nonEmptyString2,
52324
52338
  schemaVersion: number2().int().nonnegative(),
52325
52339
  boots: number2().int().nonnegative(),
52326
52340
  firstBootAt: timestamp,
@@ -52332,8 +52346,8 @@ var legionBlockedIssue = object({
52332
52346
  });
52333
52347
  var legionAdmission = object({
52334
52348
  cap: number2().int().nonnegative(),
52335
- active: array(nonEmptyString),
52336
- waiting: array(nonEmptyString),
52349
+ active: array(nonEmptyString2),
52350
+ waiting: array(nonEmptyString2),
52337
52351
  trees: array(issueKey).optional(),
52338
52352
  blocked: array(legionBlockedIssue),
52339
52353
  free: number2().int().nonnegative().optional()
@@ -52341,7 +52355,7 @@ var legionAdmission = object({
52341
52355
  var legionControllerLocator = object({
52342
52356
  runtime: _enum2(["tmux", "kubernetes"]),
52343
52357
  external: literal(true),
52344
- sessionId: nonEmptyString,
52358
+ sessionId: nonEmptyString2,
52345
52359
  registeredAt: timestamp,
52346
52360
  pluginContract: number2().int().nonnegative()
52347
52361
  });
@@ -52349,49 +52363,48 @@ var legionAgentSecretsLoginView = object({
52349
52363
  state: string2()
52350
52364
  });
52351
52365
  var legionCapabilityState = object({
52352
- name: nonEmptyString,
52366
+ name: nonEmptyString2,
52353
52367
  status: _enum2(["present", "unchecked", "withheld", "decided", "open"]),
52354
- detail: nonEmptyString,
52355
- decision: nonEmptyString.optional(),
52356
- configLine: nonEmptyString.optional(),
52368
+ detail: nonEmptyString2,
52369
+ decision: nonEmptyString2.optional(),
52370
+ configLine: nonEmptyString2.optional(),
52357
52371
  source: _enum2(["configuration", "boot"]).optional()
52358
52372
  });
52359
52373
  var legionSettings = looseObject({
52360
- max_fix_attempts: number2().int().positive(),
52361
52374
  worker_boot_timeout_seconds: number2().int().positive()
52362
52375
  });
52363
52376
  var legionCacheView = object({
52364
- repo: nonEmptyString,
52365
- sandbox: nonEmptyString,
52377
+ repo: nonEmptyString2,
52378
+ sandbox: nonEmptyString2,
52366
52379
  state: _enum2(["starting", "cloning", "ready", "failing", "refused"]),
52367
- reason: nonEmptyString.optional(),
52380
+ reason: nonEmptyString2.optional(),
52368
52381
  ready: boolean2(),
52369
- address: nonEmptyString.optional(),
52370
- head: nonEmptyString.optional(),
52382
+ address: nonEmptyString2.optional(),
52383
+ head: nonEmptyString2.optional(),
52371
52384
  lastFetchAt: timestamp.optional(),
52372
52385
  bytes: number2().int().positive().optional(),
52373
- healthError: nonEmptyString.optional(),
52386
+ healthError: nonEmptyString2.optional(),
52374
52387
  retainedUntil: timestamp.optional()
52375
52388
  });
52376
52389
  var legionRepositories = object({
52377
- owners: array(nonEmptyString),
52390
+ owners: array(nonEmptyString2),
52378
52391
  mapped: array(object({
52379
- repo: nonEmptyString,
52392
+ repo: nonEmptyString2,
52380
52393
  default: boolean2(),
52381
52394
  cache: legionCacheView.optional()
52382
52395
  })),
52383
- refused: array(object({ repo: nonEmptyString, reason: nonEmptyString })),
52384
- withoutWebhookApp: array(object({ repo: nonEmptyString, reason: nonEmptyString })),
52396
+ refused: array(object({ repo: nonEmptyString2, reason: nonEmptyString2 })),
52397
+ withoutWebhookApp: array(object({ repo: nonEmptyString2, reason: nonEmptyString2 })),
52385
52398
  caches: array(legionCacheView)
52386
52399
  });
52387
52400
  var legionConsumerLag = object({
52388
- name: nonEmptyString,
52401
+ name: nonEmptyString2,
52389
52402
  waiting: number2().int().nonnegative(),
52390
52403
  oldestAt: timestamp.nullable(),
52391
52404
  oldestAgeSeconds: number2().int().nullable(),
52392
52405
  lastHandledAt: timestamp.nullable(),
52393
52406
  stalled: boolean2(),
52394
- unavailable: nonEmptyString.optional()
52407
+ unavailable: nonEmptyString2.optional()
52395
52408
  });
52396
52409
  var LegionStateResponse = object({
52397
52410
  daemon: daemonInfo,
@@ -52409,50 +52422,50 @@ var LegionStateResponse = object({
52409
52422
  consumers: array(legionConsumerLag)
52410
52423
  });
52411
52424
  var LegionRegisterResponse = object({
52412
- claimToken: nonEmptyString,
52413
- tree: nonEmptyString,
52414
- issue: nonEmptyString,
52425
+ claimToken: nonEmptyString2,
52426
+ tree: nonEmptyString2,
52427
+ issue: nonEmptyString2,
52415
52428
  role: _enum2(LEGION_ROLES),
52416
52429
  generation: number2().int().positive(),
52417
- secret: nonEmptyString,
52418
- promptAgents: array(nonEmptyString)
52430
+ secret: nonEmptyString2,
52431
+ promptAgents: array(nonEmptyString2)
52419
52432
  });
52420
52433
  var LegionCapabilityReport = strictObject({
52421
52434
  measuredAt: timestamp,
52422
52435
  elapsedMs: number2().int().nonnegative(),
52423
- rows: array(strictObject({ name: nonEmptyString, ok: boolean2(), detail: string2() }))
52436
+ rows: array(strictObject({ name: nonEmptyString2, ok: boolean2(), detail: string2() }))
52424
52437
  });
52425
52438
  var LegionReadyRequest = strictObject({
52426
- claimToken: nonEmptyString,
52427
- sessionId: nonEmptyString,
52428
- secret: nonEmptyString,
52439
+ claimToken: nonEmptyString2,
52440
+ sessionId: nonEmptyString2,
52441
+ secret: nonEmptyString2,
52429
52442
  generation: number2().int().positive(),
52430
52443
  capabilities: LegionCapabilityReport.optional()
52431
52444
  });
52432
52445
  var LegionReadyForUpdateRequest = strictObject({
52433
- claimToken: nonEmptyString,
52434
- sessionId: nonEmptyString,
52435
- secret: nonEmptyString,
52446
+ claimToken: nonEmptyString2,
52447
+ sessionId: nonEmptyString2,
52448
+ secret: nonEmptyString2,
52436
52449
  generation: number2().int().positive(),
52437
- round: nonEmptyString,
52450
+ round: nonEmptyString2,
52438
52451
  head: string2().optional()
52439
52452
  });
52440
52453
  var LegionSessionActivity = strictObject({
52441
52454
  at: timestamp,
52442
- backgroundWork: strictObject({ running: boolean2(), kinds: array(nonEmptyString) }),
52455
+ backgroundWork: strictObject({ running: boolean2(), kinds: array(nonEmptyString2) }),
52443
52456
  phase: strictObject({ nextReminderAt: timestamp.nullable() })
52444
52457
  });
52445
52458
  var LegionActivityRequest = strictObject({
52446
- claimToken: nonEmptyString,
52447
- sessionId: nonEmptyString,
52448
- secret: nonEmptyString,
52459
+ claimToken: nonEmptyString2,
52460
+ sessionId: nonEmptyString2,
52461
+ secret: nonEmptyString2,
52449
52462
  activity: LegionSessionActivity
52450
52463
  });
52451
52464
  var legionReleaseRecord = object({
52452
52465
  id: number2().int().positive(),
52453
52466
  issue: issueKey,
52454
52467
  generation: number2().int().nonnegative(),
52455
- roles: array(nonEmptyString),
52468
+ roles: array(nonEmptyString2),
52456
52469
  at: timestamp,
52457
52470
  bundleBytes: number2().int().nonnegative()
52458
52471
  });
@@ -52460,8 +52473,8 @@ var legionResumeRecord = object({
52460
52473
  id: number2().int().positive(),
52461
52474
  release: number2().int().nonnegative(),
52462
52475
  issue: issueKey,
52463
- role: nonEmptyString,
52464
- kind: nonEmptyString,
52476
+ role: nonEmptyString2,
52477
+ kind: nonEmptyString2,
52465
52478
  at: timestamp,
52466
52479
  podReadyAt: timestamp.optional(),
52467
52480
  firstTurnAt: timestamp.optional(),
@@ -52470,15 +52483,15 @@ var legionResumeRecord = object({
52470
52483
  var legionHoldRecord = object({
52471
52484
  id: number2().int().positive(),
52472
52485
  issue: issueKey,
52473
- reason: nonEmptyString,
52474
- detail: nonEmptyString.optional(),
52486
+ reason: nonEmptyString2,
52487
+ detail: nonEmptyString2.optional(),
52475
52488
  firstAt: timestamp,
52476
52489
  at: timestamp,
52477
52490
  passes: number2().int().positive()
52478
52491
  });
52479
52492
  var LegionReleaseRecordsRequest = strictObject({
52480
- claimToken: nonEmptyString,
52481
- secret: nonEmptyString,
52493
+ claimToken: nonEmptyString2,
52494
+ secret: nonEmptyString2,
52482
52495
  since: LegionInstant
52483
52496
  });
52484
52497
  var LegionReleaseRecordsResponse = object({
@@ -52487,31 +52500,31 @@ var LegionReleaseRecordsResponse = object({
52487
52500
  holds: array(legionHoldRecord)
52488
52501
  });
52489
52502
  var LegionControllerRegisterResponse = object({
52490
- claimToken: nonEmptyString,
52503
+ claimToken: nonEmptyString2,
52491
52504
  role: literal("controller"),
52492
52505
  generation: number2().int().positive(),
52493
- secret: nonEmptyString
52506
+ secret: nonEmptyString2
52494
52507
  });
52495
52508
  var LegionControllerSecretResponse = object({
52496
- secret: nonEmptyString,
52509
+ secret: nonEmptyString2,
52497
52510
  designGateSteps: array(legionDesignStep)
52498
52511
  });
52499
52512
  var LegionControllerCredentialResponse = object({
52500
- owners: record(nonEmptyString, object({
52501
- hosts: nonEmptyString,
52502
- config: nonEmptyString
52513
+ owners: record(nonEmptyString2, object({
52514
+ hosts: nonEmptyString2,
52515
+ config: nonEmptyString2
52503
52516
  })),
52504
- default: nonEmptyString,
52517
+ default: nonEmptyString2,
52505
52518
  app: _enum2(["implement", "review"]),
52506
52519
  expiresAt: timestamp
52507
52520
  });
52508
52521
  var LegionErrorResponse = object({
52509
- error: nonEmptyString,
52510
- code: nonEmptyString.optional()
52522
+ error: nonEmptyString2,
52523
+ code: nonEmptyString2.optional()
52511
52524
  });
52512
52525
  var legionDeliveryView = object({
52513
- id: nonEmptyString,
52514
- task: nonEmptyString,
52526
+ id: nonEmptyString2,
52527
+ task: nonEmptyString2,
52515
52528
  phase: _enum2(LEGION_WORKFLOW_PHASES).optional(),
52516
52529
  queuedAt: timestamp,
52517
52530
  deliveredAt: timestamp.optional(),
@@ -52519,19 +52532,20 @@ var legionDeliveryView = object({
52519
52532
  interrupted: literal(true).optional(),
52520
52533
  sendFailures: number2().int().nonnegative().optional(),
52521
52534
  lastSendFailureAt: timestamp.optional(),
52522
- lastSendError: nonEmptyString.optional()
52535
+ lastSendError: nonEmptyString2.optional()
52523
52536
  });
52524
52537
  var LegionOperatorClaimResponse = object({
52525
- token: nonEmptyString,
52526
- tree: nonEmptyString,
52527
- issue: nonEmptyString,
52538
+ token: nonEmptyString2,
52539
+ tree: nonEmptyString2,
52540
+ issue: nonEmptyString2,
52528
52541
  role: _enum2(LEGION_ROLES),
52529
52542
  generation: number2().int().nonnegative(),
52530
52543
  state: _enum2(LEGION_CLAIM_STATES),
52531
52544
  session: string2(),
52532
52545
  sessionFile: string2(),
52533
- forgottenSession: nonEmptyString.optional(),
52534
- forgottenSessionFile: nonEmptyString.optional(),
52546
+ forgottenSession: nonEmptyString2.optional(),
52547
+ forgottenSessionFile: nonEmptyString2.optional(),
52548
+ phaseNotRestarted: nonEmptyString2.optional(),
52535
52549
  locator: legionLocator.optional(),
52536
52550
  budgets: object({
52537
52551
  launchFailures: number2().int().nonnegative(),
@@ -52544,99 +52558,99 @@ var LegionOperatorClaimResponse = object({
52544
52558
  suspendedBy: _enum2(["unknown", "operator", "daemon", "exit", "released"]).optional(),
52545
52559
  suspensionHeld: literal(true).optional(),
52546
52560
  pluginContract: number2().int().nonnegative(),
52547
- updateRound: nonEmptyString.optional(),
52548
- updateHead: nonEmptyString.optional(),
52561
+ updateRound: nonEmptyString2.optional(),
52562
+ updateHead: nonEmptyString2.optional(),
52549
52563
  step: legionStepView.optional()
52550
52564
  });
52551
52565
  var legionPodUpdateRounds = object({
52552
52566
  swept: boolean2(),
52553
52567
  max_open_rounds: number2().int().nullable(),
52554
52568
  rounds_per_minute: number2().int().nullable(),
52555
- in_round: array(nonEmptyString),
52556
- waiting_on_max_open_rounds: array(nonEmptyString),
52557
- waiting_on_rounds_per_minute: array(nonEmptyString)
52569
+ in_round: array(nonEmptyString2),
52570
+ waiting_on_max_open_rounds: array(nonEmptyString2),
52571
+ waiting_on_rounds_per_minute: array(nonEmptyString2)
52558
52572
  });
52559
52573
  var LegionOperatorClaimsResponse = object({
52560
52574
  claims: array(LegionOperatorClaimResponse),
52561
52575
  pod_update_rounds: legionPodUpdateRounds
52562
52576
  });
52563
52577
  var LegionGrantResponse = object({
52564
- grantId: nonEmptyString,
52578
+ grantId: nonEmptyString2,
52565
52579
  expiresAt: timestamp
52566
52580
  });
52567
52581
  var LegionEmptyResponse = object({});
52568
52582
  var LegionHandoffCompleteResponse = object({
52569
- note: nonEmptyString.optional()
52583
+ note: nonEmptyString2.optional()
52570
52584
  });
52571
52585
  var LegionWaveReleaseResponse = object({
52572
- released: array(nonEmptyString),
52586
+ released: array(nonEmptyString2),
52573
52587
  started: array(issueKey),
52574
52588
  held: array(legionBlockedIssue)
52575
52589
  });
52576
52590
  var LegionGrantRequest = strictObject({
52577
- sessionId: nonEmptyString,
52578
- secret: nonEmptyString,
52579
- tree: nonEmptyString,
52580
- issue: nonEmptyString
52591
+ sessionId: nonEmptyString2,
52592
+ secret: nonEmptyString2,
52593
+ tree: nonEmptyString2,
52594
+ issue: nonEmptyString2
52581
52595
  });
52582
52596
  var LegionControllerGrantRequest = strictObject({
52583
- sessionId: nonEmptyString,
52584
- secret: nonEmptyString
52597
+ sessionId: nonEmptyString2,
52598
+ secret: nonEmptyString2
52585
52599
  });
52586
52600
  var LegionHandoffCompleteRequest = strictObject({
52587
- grantId: nonEmptyString,
52588
- summary: nonEmptyString,
52601
+ grantId: nonEmptyString2,
52602
+ summary: nonEmptyString2,
52589
52603
  verdict: string2(),
52590
52604
  ready: boolean2(),
52591
- commit: nonEmptyString.optional(),
52592
- handoffId: nonEmptyString.optional(),
52605
+ commit: nonEmptyString2.optional(),
52606
+ handoffId: nonEmptyString2.optional(),
52593
52607
  handoffVersion: number2().int().positive().optional(),
52594
52608
  wakeAt: LegionInstant.optional()
52595
52609
  });
52596
52610
  var LegionIssueStatusRequest = strictObject({
52597
- grantId: nonEmptyString,
52598
- issue: nonEmptyString,
52611
+ grantId: nonEmptyString2,
52612
+ issue: nonEmptyString2,
52599
52613
  status: _enum2(["todo", "backlog", "icebox"])
52600
52614
  });
52601
52615
  var LegionGateRegisterRequest = strictObject({
52602
- grantId: nonEmptyString,
52603
- issue: nonEmptyString,
52616
+ grantId: nonEmptyString2,
52617
+ issue: nonEmptyString2,
52604
52618
  artifactId: uuid2(),
52605
52619
  version: number2().int().positive(),
52606
52620
  step: legionDesignStep.optional()
52607
52621
  });
52608
52622
  var LegionWaveReleaseRequest = strictObject({
52609
- grantId: nonEmptyString,
52610
- issues: array(nonEmptyString)
52623
+ grantId: nonEmptyString2,
52624
+ issues: array(nonEmptyString2)
52611
52625
  });
52612
52626
  var LegionPhaseBackwardRequest = strictObject({
52613
- grantId: nonEmptyString,
52627
+ grantId: nonEmptyString2,
52614
52628
  to: _enum2(LEGION_PHASE_BACKWARD_TARGETS),
52615
- reason: nonEmptyString,
52616
- issue: nonEmptyString.optional()
52629
+ reason: nonEmptyString2,
52630
+ issue: nonEmptyString2.optional()
52617
52631
  });
52618
52632
  var LegionPhaseRetryRequest = strictObject({
52619
- grantId: nonEmptyString,
52620
- issue: nonEmptyString,
52633
+ grantId: nonEmptyString2,
52634
+ issue: nonEmptyString2,
52621
52635
  decision: _enum2(["retry", "escalate"])
52622
52636
  });
52623
52637
  var LegionEscalateRequest = strictObject({
52624
- grantId: nonEmptyString,
52625
- issue: nonEmptyString,
52626
- reason: nonEmptyString
52638
+ grantId: nonEmptyString2,
52639
+ issue: nonEmptyString2,
52640
+ reason: nonEmptyString2
52627
52641
  });
52628
52642
  var LegionSignOffRequest = strictObject({
52629
- grantId: nonEmptyString,
52630
- issue: nonEmptyString
52643
+ grantId: nonEmptyString2,
52644
+ issue: nonEmptyString2
52631
52645
  });
52632
52646
  var LegionRootCloseRequest = strictObject({
52633
- grantId: nonEmptyString,
52634
- issue: nonEmptyString,
52635
- reason: nonEmptyString
52647
+ grantId: nonEmptyString2,
52648
+ issue: nonEmptyString2,
52649
+ reason: nonEmptyString2
52636
52650
  });
52637
52651
  var LegionChildRequest = strictObject({
52638
- grantId: nonEmptyString,
52639
- issue: nonEmptyString
52652
+ grantId: nonEmptyString2,
52653
+ issue: nonEmptyString2
52640
52654
  });
52641
52655
 
52642
52656
  // ../pi-shared/src/daemon-client.ts
@@ -52826,6 +52840,8 @@ function createLegionDaemonClient(baseUrl, fetchFn = fetch) {
52826
52840
  controllerGrant: (input) => post("/legion/v1/grants", LegionControllerGrantRequest, LegionGrantResponse, input),
52827
52841
  handoffComplete: (input) => post("/legion/v1/handoff/complete", LegionHandoffCompleteRequest, LegionHandoffCompleteResponse, input),
52828
52842
  issueStatus: (input) => post("/legion/v1/issues/status", LegionIssueStatusRequest, LegionEmptyResponse, input),
52843
+ freshSession: (input) => post("/legion/v1/claims/fresh-session", LegionClaimRequest, LegionFreshSessionResponse, input),
52844
+ compact: (input) => post("/legion/v1/claims/compact", LegionClaimRequest, LegionCompactResponse, input),
52829
52845
  gateRegister: (input) => post("/legion/v1/gates/register", LegionGateRegisterRequest, LegionEmptyResponse, input),
52830
52846
  waveRelease: (input) => post("/legion/v1/waves/release", LegionWaveReleaseRequest, LegionWaveReleaseResponse, input),
52831
52847
  phaseBackward: (input) => post("/legion/v1/phase/backward", LegionPhaseBackwardRequest, LegionEmptyResponse, input),
@@ -55331,9 +55347,9 @@ var import_nats2 = __toESM(require_mod4(), 1);
55331
55347
 
55332
55348
  // package.json
55333
55349
  var name = "@sjawhar/claude-envoy";
55334
- var version2 = "1.26.1";
55350
+ var version2 = "1.26.2";
55335
55351
  var legion = {
55336
- daemonApiVersion: 58
55352
+ daemonApiVersion: 59
55337
55353
  };
55338
55354
 
55339
55355
  // ../pi-shared/src/agent-stream.ts
@@ -27,7 +27,7 @@ and 7 (a conflict, the hand-over, the close) is in
27
27
  | `design-approved` | Its `version` is the approved one, and it names no step: under more than one gated step, read `gatedSteps` in your own record (the `legion` tool's `read_record`) to see which step that version opened and whether another still holds the tree. A human approved the document of one gated step at its current version; that step is open. Proceed to section 2 once every gated step is `approved` — except on a root whose catch-up said `handed_over`: its workers already run their phases, so start nothing; the approval releases any READY the gate refused. One whose `version` is the version a human's own answer to a decision block wrote, after an earlier approval (Dispatch carried that approval to it, "After approval" in `skill://legion-architect/references/design-gate.md`), opens nothing new: carry on, and release no child because of it. A root that was waiting on a question in `awaiting_person` gets no such notice: the task that resumes it says "Your spec is approved at version N and the design gate is open: this resume is your design-approved wake", and that resume is this wake — proceed to section 2 on it. |
28
28
  | `design-changes-requested` | Its `version` and `reason`, and no step: under more than one gated step, read `gatedSteps` in your own record (the `legion` tool's `read_record`) and take the step whose `status` is `changes_requested`. A human asked for changes to that step's document at `version`, for `reason`. Revise that document as the reason asks and request approval again as "The armed gate" in `skill://legion-architect/references/design-gate.md` says; end your turn; that step is closed. On a root that was waiting on a question in `awaiting_person`, a review the human gave after the wait began comes in the resume task, not in this notice, whether it answered the wait or came after something else did: the task names the review with its version and reason, unless a later approval superseded it. A `version` below the latest, or a second request for one version, is a request that reached the daemon late: read it as the same section's last paragraph says. Each request arrives once. |
29
29
  | `phase-finished` | The daemon has already moved the issue to its next phase by its fixed table and started that phase's role; you start nothing. Read the finishing phase's handoff on the Dispatch issue (`dispatch handoff-read --issue <issue> --phase <word>`); if it shows unresolved gaps, tell the role now working the issue (`envoy_publish` to its role topic). A `planner` notice that names a departure from the spec's design defers to the full condition in "After approval" of `skill://legion-architect/references/design-gate.md`: when the approved Summary, the requirements, the checks, the scope and the settled decisions still hold, the plan is the record; otherwise change the root spec and request approval again as that section says. A `reviewer` notice whose GitHub review is `CHANGES_REQUESTED` needs nothing from you: the daemon has returned the issue to `implementing` (Dispatch `in_progress`) and started the **implementer**, whose correction goes through the tester and the reviewer again, never straight to retro. A `reviewer` notice with an `APPROVED` review means the issue is in `accepting` and the acceptance is yours (section 6): read the evidence, then `sign_off` (a parent only after its last round, "The last round" in `skill://legion-architect/references/acceptance.md`) or send it back with `request_backward_move`. A `tester` notice with `verdict: "fail"` — its handoff carries `implementerProof.verdict: "rejected"`, or a failure naming a check with no current passing result — has gone back to the **implementer** by the daemon's table; never record that check's result from another role. A worker that reports no surface reaches the changed path sends that report instead of completing its phase, so the daemon starts nothing more on that issue and the worker stays idle in its session, not suspended: build the surface in this tree: a child issue (infrastructure, tooling, or a skill) after the red-team check in `skill://legion-architect/references/decomposition.md`, or, when the red team folds it, tell the waiting worker to move the issue back to `implementing` with `request_backward_move`, naming the surface. When it is a child, tell the waiting worker to continue with `envoy_publish` to its role topic once that child's `child-closed` arrives. That report is never a reason to advance the phase. |
30
- | `pr-blocked` | Its `reason` names the pull request and the `max_fix_attempts` it reached, or reads `Issue reached review_round_cap=<N>: <n> rounds counted, <m> conflict rounds not counted.` (the end of this row). The count is of heads pushed onto a red verdict: no handoff is a commit, so every such push counts except a push by the review App (a planner's, tester's, reviewer's or architect's), and the head pushed onto a red the tester's red tests earned (a planned red) does not count either. Published once per exhausted count, not on every later red verdict for that count. Read the failed CI evidence and recovery attempts. The notice moves nothing, and no later CI red within the attempt that ran the count out (the counted head, and every head pushed on top of it until a push lands on a head CI judged green or on a settled head whose base branch requires no check and no workflow, the tester's red tests onto the held red included) sends the work back from `testing`, `reviewing`, `accepting`, `retro` or `merging` either: the issue stays in its phase until you move it, or a worker's own decision does (a tester's `fail`, a reviewer's request for changes). A head pushed onto green CI, or onto a settled head whose base branch requires no check and no workflow, leaves that attempt, so its red still comes as a `checks-red`. In `implementing`, give the implementer the failing checks (`envoy_publish` to its role topic). In any later phase a worker holds, tell that worker (`envoy_publish` to its role topic) to move the issue back to `implementing` with `request_backward_move`, naming the failing checks, and the daemon starts the implementer. In `accepting`, where no worker holds a phase, the move is yours: `request_backward_move` with `issue`, naming the failing checks. In `awaiting_merge`, where no worker holds a phase and a backward move is refused, open a `dispatch ask` naming the failing checks for the human who merges. Do not treat the blocked PR as final. A `review_round_cap` reason is the implementer's round count instead: every move back to an earlier phase counts one, and a move made while the head conflicts with its base counts as a conflict round the cap leaves out; the notice comes again with each round past the cap. It moves nothing either, since the round that reached the cap has already started its worker. Tell the rounds apart by what announced each: a tester's fail by its `phase-finished` with `verdict: "fail"`; a request for changes by the reviewer's `phase-finished` over a `CHANGES_REQUESTED` review; the daemon's own move by a `checks-red` notice, whose reason names a conflict (`the head conflicts with <base>`), the required checks that failed (`CI is red at <head>`), or the merge queue's failed merge and its failing run (`the merge queue took pull request #<n> out at READY's head …`); a worker's `request_backward_move` by a `phase-finished` from the role that asked, whose reason reaches only the task of the worker the move started, so ask that worker; your own send-back from `accepting` by the reason you gave. The message's `<n> rounds counted` has already left the conflict rounds out, so judge the cap by it. Conflict returns need nothing from you beyond the next round. Tester fails, requests for changes and CI-red returns (a `checks-red` notice is raised for CI only when a required check fails on code the branch pushed, or when the merge queue fails the merge) are the rounds the cap is for. Each `review_round_cap` notice is a decision you make in the turn it wakes, never one left for the next round to make: read what every counted round found, choose one of the three below, act on it in the same turn, and post it as a `dispatch comment` on the issue naming the rounds you read and the choice. **Narrow**: the change itself is sound but each round finds more around it; tell the implementer and the reviewer (`envoy_publish` to each one's role topic) which checks the next round answers, dropping no requirement; a correctness finding is still fixed in this pull request, and so is a wording nit or any clear fix in a file it touches, so the `Fast-follow:` line carries only cleanup in files it does not touch. **Split**: part of the work cannot settle in this pull request. It is a child only when it needs a repository or a deploy order of its own (`skill://legion-architect`, section 1), and then it goes through the red-team check in `skill://legion-architect/references/decomposition.md` and is filed as a child of this issue's parent, never of this one, since this issue closes at its own merge. A requirement moves only to that released child. Work in a repository this tree already has a pull request in is no child and is not parked in `backlog`: write it into the spec of the issue whose pull request carries it, the parent's, or a sibling's when the parent's pull request is in another repository. On the root, open a `dispatch ask` for the part that cannot settle here (`skill://legion-worker/references/findings.md`): it stays this issue's requirement, and this pull request carries it, until the person who answers that ask records that the issue will not deliver it. **Accept the rounds**: each round found less than the one before it, and the last found no defect in the change itself (a stale line, a comment that states an old default); let the loop run and say why in the comment. A later notice is a new decision: accept again only when its round found less than the round you last accepted, and otherwise narrow or split. A finding that changes what the spec requires or what a check proves is a decision block in the root spec ("After approval" in `skill://legion-architect/references/design-gate.md`), and `dispatch ask` is only for a decision that needs a human's authority; neither replaces the choice. Judge a worker's backward move by the reason that worker gives. A move you ordered for a conflict found before `awaiting_merge` ("A conflicting head" in `skill://legion-architect/references/acceptance.md`) is a conflict return. The merger's move back to `reviewing` for a READY refusal (`READY_UNREVIEWED_CHANGE`, or `READY_NOT_APPROVED` when its task names no approved head), and the reviewer's no-fix request for changes that follows it so the tester runs the head, are not the work going in circles either. A move that sends back code found wrong counts with the tester fails. |
30
+ | `pr-blocked` | Its `reason` reads `Issue reached review_round_cap=<N>: <n> rounds counted, <m> conflict rounds not counted.`, the implementer's round count: every move back to an earlier phase counts one, and a move made while the head conflicts with its base counts as a conflict round the cap leaves out; the notice comes again with each round past the cap. It moves nothing, since the round that reached the cap has already started its worker. CI red is never its reason: a red always sends the work back to the implementer, however many came before it, and arrives as a `checks-red` (dispatch://INFRA-956 R4). Tell the rounds apart by what announced each: a tester's fail by its `phase-finished` with `verdict: "fail"`; a request for changes by the reviewer's `phase-finished` over a `CHANGES_REQUESTED` review; the daemon's own move by a `checks-red` notice, whose reason names a conflict (`the head conflicts with <base>`), the required checks that failed (`CI is red at <head>`), or the merge queue's failed merge and its failing run (`the merge queue took pull request #<n> out at READY's head …`); a worker's `request_backward_move` by a `phase-finished` from the role that asked, whose reason reaches only the task of the worker the move started, so ask that worker; your own send-back from `accepting` by the reason you gave. The message's `<n> rounds counted` has already left the conflict rounds out, so judge the cap by it. Conflict returns need nothing from you beyond the next round. Tester fails, requests for changes and CI-red returns (a `checks-red` notice is raised for CI only when a required check fails on code the branch pushed, or when the merge queue fails the merge) are the rounds the cap is for. Each `review_round_cap` notice is a decision you make in the turn it wakes, never one left for the next round to make: read what every counted round found, choose one of the three below, act on it in the same turn, and post it as a `dispatch comment` on the issue naming the rounds you read and the choice. **Narrow**: the change itself is sound but each round finds more around it; tell the implementer and the reviewer (`envoy_publish` to each one's role topic) which checks the next round answers, dropping no requirement; a correctness finding is still fixed in this pull request, and so is a wording nit or any clear fix in a file it touches, so the `Fast-follow:` line carries only cleanup in files it does not touch. **Split**: part of the work cannot settle in this pull request. It is a child only when it needs a repository or a deploy order of its own (`skill://legion-architect`, section 1), and then it goes through the red-team check in `skill://legion-architect/references/decomposition.md` and is filed as a child of this issue's parent, never of this one, since this issue closes at its own merge. A requirement moves only to that released child. Work in a repository this tree already has a pull request in is no child and is not parked in `backlog`: write it into the spec of the issue whose pull request carries it, the parent's, or a sibling's when the parent's pull request is in another repository. On the root, open a `dispatch ask` for the part that cannot settle here (`skill://legion-worker/references/findings.md`): it stays this issue's requirement, and this pull request carries it, until the person who answers that ask records that the issue will not deliver it. **Accept the rounds**: each round found less than the one before it, and the last found no defect in the change itself (a stale line, a comment that states an old default); let the loop run and say why in the comment. A later notice is a new decision: accept again only when its round found less than the round you last accepted, and otherwise narrow or split. A finding that changes what the spec requires or what a check proves is a decision block in the root spec ("After approval" in `skill://legion-architect/references/design-gate.md`), and `dispatch ask` is only for a decision that needs a human's authority; neither replaces the choice. Judge a worker's backward move by the reason that worker gives. A move you ordered for a conflict found before `awaiting_merge` ("A conflicting head" in `skill://legion-architect/references/acceptance.md`) is a conflict return. The merger's move back to `reviewing` for a READY refusal (`READY_UNREVIEWED_CHANGE`, or `READY_NOT_APPROVED` when its task names no approved head), and the reviewer's no-fix request for changes that follows it so the tester runs the head, are not the work going in circles either. A move that sends back code found wrong counts with the tester fails. |
31
31
  | `pr-merged` | The pull request merged and the issue did not close; its `reason` says why. Merged before the issue reached `awaiting_merge`: the workflow runs on, and the merge closes the issue the moment it gets there, your acceptance and retro first. Merged while the rest of the tree still runs: the reason names the pull request and every issue the close waits for, and the root waits in `awaiting_merge`, its workers kept and live and no admission slot held, until the last of them is done or parked ("The close" in `skill://legion-architect/references/acceptance.md`). Either way you start nothing and no further notice follows. |
32
32
  | `pr-closed-unmerged` | Decide from current scope whether the work is reopened, started over (`park_child` then `rerun_child`, for a child), or ended with a reason. Delegate the repository action to the responsible phase worker and keep ownership. |
33
33
  | `pull-request-missing` | Its `reason` names the issue, the repository, the branch and the handoff commit: the issue's implementer completed at that commit and GitHub lists no open pull request on the branch, so the issue stays in `implementing`. Tell the implementer (`envoy_publish` to its role topic) to open the pull request from that branch; the daemon records it and moves the issue to `testing` once it is open. When the work should not go on, decide as the `pr-closed-unmerged` row says. It comes once per handoff commit. |
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: legion-controller
3
- description: Use when you are a Legion project's controller session, on any controller wake (triage, slot-free, todo, tick, unslotted, awaiting-person, parked-decision, held, worker-died, worker-stalled, update-stalled), weekly-plan ranking, backlog stewardship, a clear defect or finding ask a role sends, an issue a person asks you to file, the daily report, an architect's escalation, or a person's message or mention.
3
+ description: Use when you are a Legion project's controller session, on any controller wake (triage, slot-free, todo, tick, unslotted, awaiting-person, parked-decision, held, worker-died, worker-stalled, update-stalled, provider-errors), weekly-plan ranking, backlog stewardship, a clear defect or finding ask a role sends, an issue a person asks you to file, the daily report, an architect's escalation, or a person's message or mention.
4
4
  ---
5
5
 
6
6
  # Legion Controller
@@ -75,6 +75,7 @@ Wake details: `skill://legion-controller/references/wakes.md`.
75
75
  | `worker-died on <KEY>` (`role: "architect"`) | Re-admit once its cause is gone, else park it |
76
76
  | `worker-stalled on <KEY>` (`role: "architect"`) | Nothing, unless the notice says the claim failed: its turn was ended, its task is still owed, and the notice says what became of its process |
77
77
  | `update-stalled on <KEY>` | `skill://legion-controller/references/escalation.md#an-update-round-that-is-not-finishing-update-stalled` |
78
+ | `provider-errors on <KEY>` | Name the run and its model in the day's report; send it to the issue's architect; for one claim that stays stuck, `compact` first, and `fresh_session` only when it is still refused after that |
78
79
  | An architect's escalation | `skill://legion-controller/references/escalation.md` |
79
80
  | A finding ask's reference, or its answer | `skill://legion-controller/references/finding-asks.md` |
80
81
  | A clear defect a role sends | `skill://legion-controller/references/finding-asks.md#hand-over-a-clear-defect` |
@@ -170,6 +170,36 @@ An update round over the issue's pod, or over one claim's own process, is not fi
170
170
  it as `skill://legion-controller/references/escalation.md#an-update-round-that-is-not-finishing-update-stalled`
171
171
  says.
172
172
 
173
+ ## `provider-errors on <KEY>` (`{kind: "provider-errors", role, reason}`)
174
+
175
+ Six turns of `<KEY>`'s `role` in a row ended in an error the model's provider returned: a content
176
+ filter, a rate limit, an overload, or any other failure of the provider. `reason` names the model
177
+ and the HTTP status the provider answered, when it answered one, and carries no text the provider
178
+ wrote. Nothing is held and nothing is stopped: the daemon keeps the task, prompts the same session
179
+ with it again, and waits at most ten minutes between prompts for as long as the errors last. You
180
+ are told once, and again only once the run has gone back to zero, which it does three ways: at a
181
+ turn of that role that ends with no provider error, at a compaction of its session that ran (one
182
+ Oh My Pi refused or skipped resets nothing, since the session is as it was), and when the claim's
183
+ recorded session is forgotten, by `fresh_session` or an operator's `legion claims forget-session`.
184
+ A second notice after you compacted that claim is how you see that it is still refused.
185
+
186
+ Read the role's claim in `read_state`. Name the run and its model in the day's report. When the
187
+ reason names no status, the turns ended on nothing but a message, which is what a content filter
188
+ leaves: the session has already stepped down its model chain, so a run that long says the whole
189
+ chain refuses the same work. Either way, `envoy_publish` the key, the role and the reason to the
190
+ issue's architect, which is who can narrow the work. Re-admit nothing and park nothing, because
191
+ the task is not lost and the session still runs.
192
+
193
+ One claim that stays stuck after that is yours to act on, and `compact` is the first thing you
194
+ reach for: it has the daemon shorten that claim's Oh My Pi session to a text summary and send it
195
+ whatever task it owed again, and the claim keeps its session, its workspace and everything it
196
+ knows of its issue. The answer says whether the session was compacted and, when it was not, why;
197
+ the claim is back either way, and whatever task it owed has gone again. Use `fresh_session` only
198
+ when the claim is still refused after a compaction, because a new session loses everything the old
199
+ one held — what the worker learned of its issue, and what it had not yet pushed or written down —
200
+ and cures nothing in a provider outage, where the next session's turns are refused as the last
201
+ one's were.
202
+
173
203
  ## GitHub mentions
174
204
 
175
205
  Read the mention and its artifact. Answer a mention that asks you for triage or for information
@@ -53,7 +53,8 @@ allows, and they read no check; `skill://legion-worker`, *Every role pushes its
53
53
  gives them).
54
54
  Under the Go daemon a check or workflow the base branch requires that settles red on the head,
55
55
  before the completion or after it, sends the work back to `implementing` with the failing checks
56
- named, until `max_fix_attempts` is spent, when the architect decides. The one CI result an implementer waits for is a re-run: when its task names a red that
56
+ named, however many reds came before it.
57
+ The one CI result an implementer waits for is a re-run: when its task names a red that
57
58
  failed on its own in a `pull_request` run, it re-runs the failed jobs once (`gh run rerun <run-id> --failed`) and completes once
58
59
  the re-run settles green, woken by the pull request's checks event (`skill://envoy`, *Wait for
59
60
  CI or a merge*: subscribe, then end the turn), never by a sleep loop.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/claude-envoy",
3
- "version": "1.26.1",
3
+ "version": "1.26.2",
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": 58
22
+ "daemonApiVersion": 59
23
23
  },
24
24
  "repository": {
25
25
  "type": "git",