@codyswann/lisa 4.107.5 → 4.107.7
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/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +22 -9
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/package.json +4 -4
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/SKILL.md +25 -8
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-cycle.mjs +3 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-queue.mjs +51 -8
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-usage.mjs +32 -8
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-workers.mjs +156 -17
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/ledger-setup-gaps.mjs +164 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/ledger.mjs +11 -4
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/session-manager.mjs +1 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/worker-launch.mjs +6 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/workers.mjs +84 -12
- package/plugins/lisa/skills/lisa-session-manager/SKILL.md +25 -8
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-cycle.mjs +3 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-queue.mjs +51 -8
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-usage.mjs +32 -8
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-workers.mjs +156 -17
- package/plugins/lisa/skills/lisa-session-manager/scripts/ledger-setup-gaps.mjs +164 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/ledger.mjs +11 -4
- package/plugins/lisa/skills/lisa-session-manager/scripts/session-manager.mjs +1 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/worker-launch.mjs +6 -2
- package/plugins/lisa/skills/lisa-session-manager/scripts/workers.mjs +84 -12
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-session-manager/SKILL.md +25 -8
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-cycle.mjs +3 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-queue.mjs +51 -8
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-usage.mjs +32 -8
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-workers.mjs +156 -17
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/ledger-setup-gaps.mjs +164 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/ledger.mjs +11 -4
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/session-manager.mjs +1 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/worker-launch.mjs +6 -2
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/workers.mjs +84 -12
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/skills/lisa-session-manager/SKILL.md +25 -8
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-cycle.mjs +3 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-queue.mjs +51 -8
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-usage.mjs +32 -8
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-workers.mjs +156 -17
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/ledger-setup-gaps.mjs +164 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/ledger.mjs +11 -4
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/session-manager.mjs +1 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/worker-launch.mjs +6 -2
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/workers.mjs +84 -12
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/skills/lisa-session-manager/SKILL.md +25 -8
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-cycle.mjs +3 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-queue.mjs +51 -8
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-usage.mjs +32 -8
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-workers.mjs +156 -17
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/ledger-setup-gaps.mjs +164 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/ledger.mjs +11 -4
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/session-manager.mjs +1 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/worker-launch.mjs +6 -2
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/workers.mjs +84 -12
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/skills/lisa-session-manager/SKILL.md +25 -8
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-cycle.mjs +3 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-queue.mjs +51 -8
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-usage.mjs +32 -8
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-workers.mjs +156 -17
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/ledger-setup-gaps.mjs +164 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/ledger.mjs +11 -4
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/session-manager.mjs +1 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/worker-launch.mjs +6 -2
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/workers.mjs +84 -12
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/skills/lisa-session-manager/SKILL.md +25 -8
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-cycle.mjs +3 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-queue.mjs +51 -8
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-usage.mjs +32 -8
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-workers.mjs +156 -17
- package/plugins/src/base/skills/lisa-session-manager/scripts/ledger-setup-gaps.mjs +164 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/ledger.mjs +11 -4
- package/plugins/src/base/skills/lisa-session-manager/scripts/session-manager.mjs +1 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/worker-launch.mjs +6 -2
- package/plugins/src/base/skills/lisa-session-manager/scripts/workers.mjs +84 -12
|
@@ -19,6 +19,32 @@ export const WORKER_SETTINGS = JSON.stringify({
|
|
|
19
19
|
crossSessionInbound: "accept",
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* The permission and settings flags every worker invocation carries, spawn
|
|
24
|
+
* and resume alike. Resume once dropped them (lisa#4522): whether `--resume`
|
|
25
|
+
* keeps the original session's permission mode is undocumented, so a resumed
|
|
26
|
+
* worker could fall back to default permissions and prompt with nobody
|
|
27
|
+
* attached to answer.
|
|
28
|
+
*/
|
|
29
|
+
export const WORKER_PERMISSION_ARGS = Object.freeze([
|
|
30
|
+
"--dangerously-skip-permissions",
|
|
31
|
+
"--settings",
|
|
32
|
+
WORKER_SETTINGS,
|
|
33
|
+
]);
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* A `waitingFor` that names the session's own subagent as what it waits on,
|
|
37
|
+
* which is ordinary work. Anchored, so a prompt that merely mentions a
|
|
38
|
+
* subagent ("permission prompt (subagent x)") still blocks.
|
|
39
|
+
*
|
|
40
|
+
* Observed in Claude Code 2.1.319: `waitingFor` is set only while the session
|
|
41
|
+
* awaits a person ("permission prompt", "dialog open", "input needed",
|
|
42
|
+
* "sandbox request", "goal proposal"); an idle session reports none, and
|
|
43
|
+
* subagent work is reported as a separate work kind, not as `waitingFor`.
|
|
44
|
+
* This exclusion is defensive, for a future string of that shape.
|
|
45
|
+
*/
|
|
46
|
+
const SUBAGENT_WAIT_PATTERN = /^\s*sub-?agent\b/i;
|
|
47
|
+
|
|
22
48
|
/**
|
|
23
49
|
* Stall policy used when the caller passes none. Mirrors the
|
|
24
50
|
* `sessionManager.stall` defaults, so a missing config block still classifies.
|
|
@@ -163,9 +189,10 @@ function stringOrNull(value) {
|
|
|
163
189
|
* terminal state, has finished. Reading `state` alone undercounted capacity,
|
|
164
190
|
* let `spawn` duplicate a live worker and made `classify` say `dead`.
|
|
165
191
|
* Every row comes back with all fields present (null when absent) and an
|
|
166
|
-
* `active` flag, so callers never branch on shape.
|
|
192
|
+
* `active` flag, so callers never branch on shape. `waitingFor` is kept so
|
|
193
|
+
* `classifyWorker` can see a worker stuck on a prompt (lisa#4522).
|
|
167
194
|
* @param {unknown} parsed - `JSON.parse` of the command's stdout
|
|
168
|
-
* @returns {Array<{name: string|null, sessionId: string|null, id: string|null, pid: number|null, cwd: string|null, kind: string|null, startedAt: number|null, status: string|null, state: string|null, active: boolean}>} Rows
|
|
195
|
+
* @returns {Array<{name: string|null, sessionId: string|null, id: string|null, pid: number|null, cwd: string|null, kind: string|null, startedAt: number|null, status: string|null, state: string|null, waitingFor: string|null, active: boolean}>} Rows
|
|
169
196
|
*/
|
|
170
197
|
export function normalizeAgents(parsed) {
|
|
171
198
|
if (!Array.isArray(parsed)) {
|
|
@@ -188,6 +215,7 @@ export function normalizeAgents(parsed) {
|
|
|
188
215
|
startedAt: typeof row.startedAt === "number" ? row.startedAt : null,
|
|
189
216
|
status,
|
|
190
217
|
state,
|
|
218
|
+
waitingFor: stringOrNull(row.waitingFor),
|
|
191
219
|
active:
|
|
192
220
|
activeShape || state === null || !TERMINAL_AGENT_STATES.has(state),
|
|
193
221
|
};
|
|
@@ -280,13 +308,12 @@ export function buildWorkerSpawn({ ref, name, manager, repoDir, env }) {
|
|
|
280
308
|
requireText("repoDir", repoDir);
|
|
281
309
|
return {
|
|
282
310
|
command: "claude",
|
|
311
|
+
// The name stays at args[2]: `spawn` in cli-workers.mjs reads it there.
|
|
283
312
|
args: [
|
|
284
313
|
"--bg",
|
|
285
314
|
"-n",
|
|
286
315
|
name,
|
|
287
|
-
|
|
288
|
-
"--settings",
|
|
289
|
-
WORKER_SETTINGS,
|
|
316
|
+
...WORKER_PERMISSION_ARGS,
|
|
290
317
|
`/lisa:implement ${ref} managedBy=${manager}`,
|
|
291
318
|
],
|
|
292
319
|
cwd: repoDir,
|
|
@@ -296,7 +323,8 @@ export function buildWorkerSpawn({ ref, name, manager, repoDir, env }) {
|
|
|
296
323
|
|
|
297
324
|
/**
|
|
298
325
|
* Build the spawn that resumes a worker with one message (an answer, or a
|
|
299
|
-
* nudge after a stall), with the same cwd
|
|
326
|
+
* nudge after a stall), with the same cwd, environment scrub and permission
|
|
327
|
+
* flags (`WORKER_PERMISSION_ARGS`) as a spawn.
|
|
300
328
|
* @param {{sessionId: string, text: string, repoDir: string, env: Record<string, string | undefined>}} input - Resume inputs
|
|
301
329
|
* @returns {{command: string, args: string[], cwd: string, env: Record<string, string | undefined>}} Spawn spec
|
|
302
330
|
*/
|
|
@@ -313,7 +341,14 @@ export function buildWorkerResume({ sessionId, text, repoDir, env }) {
|
|
|
313
341
|
command: "claude",
|
|
314
342
|
// `--` ends option parsing: an answer that starts with `--` (claude
|
|
315
343
|
// 2.1.296 reads `--x` there as an unknown option) stays message text.
|
|
316
|
-
args: [
|
|
344
|
+
args: [
|
|
345
|
+
"--bg",
|
|
346
|
+
"--resume",
|
|
347
|
+
sessionId,
|
|
348
|
+
...WORKER_PERMISSION_ARGS,
|
|
349
|
+
"--",
|
|
350
|
+
text,
|
|
351
|
+
],
|
|
317
352
|
cwd: repoDir,
|
|
318
353
|
env: scrubWorkerEnv(env),
|
|
319
354
|
};
|
|
@@ -350,6 +385,24 @@ function toMillis(value) {
|
|
|
350
385
|
return null;
|
|
351
386
|
}
|
|
352
387
|
|
|
388
|
+
/**
|
|
389
|
+
* Whether an agent row's `waitingFor` means the worker is stuck on something
|
|
390
|
+
* nobody will answer.
|
|
391
|
+
*
|
|
392
|
+
* Workers run unattended, so any non-empty `waitingFor` (Claude Code reports
|
|
393
|
+
* e.g. "permission prompt") blocks them for good, except a parent waiting on
|
|
394
|
+
* its own subagent (`SUBAGENT_WAIT_PATTERN`), which is ordinary work.
|
|
395
|
+
* @param {unknown} waitingFor - The row's `waitingFor`
|
|
396
|
+
* @returns {boolean} True when the worker can never proceed on its own
|
|
397
|
+
*/
|
|
398
|
+
export function isBlockingWait(waitingFor) {
|
|
399
|
+
return (
|
|
400
|
+
typeof waitingFor === "string" &&
|
|
401
|
+
waitingFor.trim() !== "" &&
|
|
402
|
+
!SUBAGENT_WAIT_PATTERN.test(waitingFor)
|
|
403
|
+
);
|
|
404
|
+
}
|
|
405
|
+
|
|
353
406
|
/**
|
|
354
407
|
* Classify one dispatched item for this cycle.
|
|
355
408
|
*
|
|
@@ -358,11 +411,15 @@ function toMillis(value) {
|
|
|
358
411
|
* reads `done`; then a first prompt that never ran (`firstPromptFailure`,
|
|
359
412
|
* read from the worker's transcript) is a `setup-gap` — a machine problem no
|
|
360
413
|
* retry can fix, so it is never `working` until the stall timer and never
|
|
361
|
-
* `exhausted` (lisa#4503);
|
|
362
|
-
*
|
|
363
|
-
*
|
|
414
|
+
* `exhausted` (lisa#4503); then an active worker whose row reports a
|
|
415
|
+
* blocking `waitingFor` (see `isBlockingWait`) is `blocked-on-prompt`, never
|
|
416
|
+
* `working` however its logs change (lisa#4522) — a pending question still
|
|
417
|
+
* wins, because a managed worker ends its turn after asking; only then is liveness
|
|
418
|
+
* judged. `blocked-on-prompt`, `stalled` and `dead` become `exhausted` at
|
|
419
|
+
* `maxAttempts`, which is the manager's cue to move the item to Blocked
|
|
420
|
+
* instead of retrying it again.
|
|
364
421
|
* @param {{agent: ReturnType<typeof normalizeAgents>[number] | null, entry: {status?: string, startedAt?: string|number, lastProgressAt?: string|number|null, logsHash?: string|null, pendingQuestion?: {askedAt?: string|number, lastPingAt?: string|number|null} | null, attempts?: number}, logsHash?: string | null | undefined, now: Date | number, stall?: {noOutputMinutes: number, requestionHours: number, maxAttempts: number}, firstPromptFailure?: {kind: string, detail: string} | null}} input - Classification inputs
|
|
365
|
-
* @returns {"finished"|"waiting"|"requestion"|"setup-gap"|"working"|"stalled"|"dead"|"exhausted"} Classification
|
|
422
|
+
* @returns {"finished"|"waiting"|"requestion"|"setup-gap"|"blocked-on-prompt"|"working"|"stalled"|"dead"|"exhausted"} Classification
|
|
366
423
|
*/
|
|
367
424
|
export function classifyWorker({
|
|
368
425
|
agent,
|
|
@@ -384,7 +441,7 @@ export function classifyWorker({
|
|
|
384
441
|
}
|
|
385
442
|
if (firstPromptFailure) return "setup-gap";
|
|
386
443
|
const outcome = agent?.active
|
|
387
|
-
?
|
|
444
|
+
? judgeLive(agent, entry, logsHash, nowMs, stall)
|
|
388
445
|
: "dead";
|
|
389
446
|
if (outcome !== "working" && (entry.attempts ?? 0) >= stall.maxAttempts) {
|
|
390
447
|
return "exhausted";
|
|
@@ -392,6 +449,21 @@ export function classifyWorker({
|
|
|
392
449
|
return outcome;
|
|
393
450
|
}
|
|
394
451
|
|
|
452
|
+
/**
|
|
453
|
+
* Judge an active worker: blocked on a prompt, or else by its progress.
|
|
454
|
+
* @param {{waitingFor?: string|null}} agent - Normalized active row
|
|
455
|
+
* @param {Parameters<typeof judgeActive>[0]} entry - Ledger row
|
|
456
|
+
* @param {string | null | undefined} logsHash - This cycle's logs hash
|
|
457
|
+
* @param {number} nowMs - Clock reading
|
|
458
|
+
* @param {{noOutputMinutes: number}} stall - Stall policy
|
|
459
|
+
* @returns {"blocked-on-prompt"|"working"|"stalled"} Classification
|
|
460
|
+
*/
|
|
461
|
+
function judgeLive(agent, entry, logsHash, nowMs, stall) {
|
|
462
|
+
return isBlockingWait(agent.waitingFor)
|
|
463
|
+
? "blocked-on-prompt"
|
|
464
|
+
: judgeActive(entry, logsHash, nowMs, stall);
|
|
465
|
+
}
|
|
466
|
+
|
|
395
467
|
/**
|
|
396
468
|
* Decide whether an active worker is making progress.
|
|
397
469
|
* @param {{logsHash?: string|null, lastProgressAt?: string|number|null, startedAt?: string|number}} entry - Ledger row
|
|
@@ -451,9 +451,16 @@ shows them.
|
|
|
451
451
|
| `working`, `waiting`, `finished` | Nothing. |
|
|
452
452
|
| `requestion` | With Telegram: re-send the pending question once, then re-record it with `ledger set-question` (same text, new message id); that restarts the re-ping clock. With no channel: nothing to re-send; leave it pending. |
|
|
453
453
|
| `stalled`, `dead` | Read the item. If it left the `claimed` role, a human moved it: do not retry or move it; `ledger finish <ref> --status FAILED` with reason "left the claimed role outside the manager". Otherwise check for a merged PR first (`gh pr list --state merged --search <ref>` in the item's repo dir). If merged, leave the state change to Lisa's lifecycle and `ledger finish <ref> --status DONE` with reason "PR merged". Otherwise `claude stop <worker>` if it is still listed, then `spawn` a **fresh** attempt when capacity allows (the CLI counts attempts). |
|
|
454
|
-
| `setup-gap` | The worker's first prompt never ran: `setupGap.kind` is `unknown-command` (Lisa's plugin is not visible in that repo, so `/lisa:implement` is unknown there) or `prompt-blocked` (a `UserPromptSubmit` hook rejected the prompt; `setupGap.detail` is what the hook said). Retrying cannot fix it. `claude stop <worker>` if it is still listed, `ledger finish <ref> --status FAILED --setup-gap` with reason "setup gap: <kind>: <detail>" (the spawn is not counted as an attempt). Then read the item: If it left the `claimed` role, a human moved it: respect that and do not move it back to the `ready` role. Otherwise move the item back to the `ready` role. Either way post one plain-language line naming the repo and the fix to Telegram, do not respawn it, do not dispatch to that repo again until the operator fixes it, and end the cycle `recovery-required` with that line as the summary. |
|
|
454
|
+
| `setup-gap` | The worker's first prompt never ran: `setupGap.kind` is `unknown-command` (Lisa's plugin is not visible in that repo, so `/lisa:implement` is unknown there) or `prompt-blocked` (a `UserPromptSubmit` hook rejected the prompt; `setupGap.detail` is what the hook said). Retrying cannot fix it. `claude stop <worker>` if it is still listed, `ledger finish <ref> --status FAILED --setup-gap` with reason "setup gap: <kind>: <detail>" (the spawn is not counted as an attempt). Then read the item: If it left the `claimed` role, a human moved it: respect that and do not move it back to the `ready` role. Otherwise move the item back to the `ready` role. Either way post one plain-language line naming the repo and the fix to Telegram, do not respawn it, do not dispatch to that repo again until the operator fixes it, and end the cycle `recovery-required` with that line as the summary. `classify` has already recorded the repo's setup gap, so later cycles' `queue` leaves that repo out and `spawn` refuses it until the operator fixes the repo and runs `ledger clear-setup-gap <repo>` (`.` on a single-repo project); include that command in the line. |
|
|
455
|
+
| `blocked-on-prompt` | The live worker is stuck on a prompt nobody attached can answer: its agent row reports `waitingFor` (e.g. "permission prompt") other than waiting on its own subagent. It will never proceed on its own, however its logs change. `claude stop <worker>` if it is still listed, then `spawn` a **fresh** attempt when capacity allows (the CLI counts attempts; at `stall.maxAttempts` it classifies `exhausted` instead). Send the operator one plain-English line naming the item, the `waitingFor` text, and that the worker was stopped and a fresh attempt starts when capacity allows (Telegram when configured, else the cycle summary). This is once per occurrence: the fresh worker is not blocked, so the same occurrence never repeats. Not a `setup-gap`: the first prompt ran, so the attempt counts and the item stays claimed. |
|
|
455
456
|
| `exhausted` | Attempts reached `stall.maxAttempts`. Stop the worker if listed, `ledger finish <ref> --status FAILED`, then follow "Mark and move on" with `--kind exhausted` and, as the reason, how many attempts failed and how each ended: it moves the item to the `blocked` role and marks it for a human. |
|
|
456
457
|
|
|
458
|
+
Why a worker started with `--dangerously-skip-permissions` reaches a permission prompt at all is
|
|
459
|
+
still unexplained: subagents inherit the bypass, and none of the documented bypass exceptions
|
|
460
|
+
covers a plain Bash call (lisa#4522). So `blocked-on-prompt` detection is the guard, not a cure.
|
|
461
|
+
`resume` passes the same permission flags as `spawn`, so a relayed answer or nudge never drops
|
|
462
|
+
the bypass.
|
|
463
|
+
|
|
457
464
|
**Blocked.** List the items in the `blocked` role (paged to completion, same access paths as the
|
|
458
465
|
queue below). For each:
|
|
459
466
|
|
|
@@ -520,7 +527,10 @@ Skip while `capacity` reports `paused`. Otherwise:
|
|
|
520
527
|
description, reporter, issuetype, subtasks); raw Linear nodes carry identifier, title, priority,
|
|
521
528
|
createdAt, assignee, labels, description, creator and children with their state type.
|
|
522
529
|
- `ordered` is the dispatch order: assigned to an operator, then to "me", then unassigned; each
|
|
523
|
-
group by priority, then age. `excluded` needs no action.
|
|
530
|
+
group by priority, then age. `excluded` needs no action. `setupGaps` lists each repo the
|
|
531
|
+
manager will not dispatch to until the operator fixes it (`kind`, `detail`, and `clear`, the
|
|
532
|
+
command that lifts it); its items are excluded as `setup-gap:<repo>`. Report a gap to the
|
|
533
|
+
operator only in the cycle that recorded it, never again each cycle.
|
|
524
534
|
- **Backlog tier** (only when `sessionManager.backlogPickup` is `true`). GitHub: `queue` fetches
|
|
525
535
|
it itself (open issues with no build or PRD lifecycle label). Jira / Linear: also fetch the
|
|
526
536
|
open leaf items in **no** lifecycle role — Linear workflow state type `backlog` or `unstarted`
|
|
@@ -564,13 +574,20 @@ Skip while `capacity` reports `paused`. Otherwise:
|
|
|
564
574
|
`ledger record-spawn <ref> --worker <worker> --session-id <id> --repo <key>`; continue.
|
|
565
575
|
- exit 2 (setup gap, e.g. workspace trust not accepted in the repo dir), including a worker
|
|
566
576
|
whose first prompt never ran (`/lisa:implement` unknown in that repo, or a
|
|
567
|
-
`UserPromptSubmit` hook rejected it; the CLI already stopped that worker
|
|
568
|
-
|
|
577
|
+
`UserPromptSubmit` hook rejected it; the CLI already stopped that worker, recorded no
|
|
578
|
+
item and recorded the repo's setup gap). If the ledger already has an item for the ref and it is still
|
|
569
579
|
running, run `ledger finish <ref> --status FAILED --setup-gap` with the CLI's message as
|
|
570
580
|
the reason, so that stale row from an earlier worker is never later read as a human
|
|
571
|
-
moving the item. Then move the item back to the `ready` role
|
|
572
|
-
|
|
573
|
-
|
|
581
|
+
moving the item. Then move the item back to the `ready` role. It is not a failed attempt.
|
|
582
|
+
The CLI remembers the gap: later cycles' `queue` leaves that repo's items out and `spawn`
|
|
583
|
+
refuses the repo (exit 2, nothing launched) until the operator fixes it and runs
|
|
584
|
+
`ledger clear-setup-gap <repo>` (`.` on a single-repo project). The exit-2 stdout's
|
|
585
|
+
`setupGapStatus` says what to tell the operator:
|
|
586
|
+
- `recorded` (this spawn found the gap) or `not-recorded` (the ledger write failed): post
|
|
587
|
+
the CLI's one-line message to Telegram and end the cycle `recovery-required` with that
|
|
588
|
+
message as the summary.
|
|
589
|
+
- `already-recorded` (the operator was told when it was recorded): post nothing and
|
|
590
|
+
continue with the next item.
|
|
574
591
|
- any other exit: move the item back to the `ready` role, notify Telegram, continue.
|
|
575
592
|
3. **Backlog tier, lowest priority.** Only when `backlogPickup` is on, every `ordered` item has been
|
|
576
593
|
taken or skipped, and `capacity` still says `can_spawn`. Ready work always wins: never promote a
|
|
@@ -616,7 +633,7 @@ session `start` creates), every cycle ends in **exactly one** of the six outcome
|
|
|
616
633
|
| This cycle | Run outcome |
|
|
617
634
|
|---|---|
|
|
618
635
|
| No dispatch, no state change, no question relayed or newly pending. The summary still states the denominator: "swept N ready, 0 dispatchable; R running/C cap". | `nothing-needed` |
|
|
619
|
-
| At least one of: a worker spawned and seen live in `status`; a Blocked→Ready release written and read back; an answer delivered and its marker removed (`SendMessage` acknowledged, or `resume` returned a session id), or recorded on the item and read back before its marker was removed; a stalled item retried. | `change-proved` |
|
|
636
|
+
| At least one of: a worker spawned and seen live in `status`; a Blocked→Ready release written and read back; an answer delivered and its marker removed (`SendMessage` acknowledged, or `resume` returned a session id), or recorded on the item and read back before its marker was removed; a stalled or `blocked-on-prompt` item retried. | `change-proved` |
|
|
620
637
|
| An item was marked human-needed ("Mark and move on": marker and question comment written and read back), in any of the four cases, including an `exhausted` item moved to the `blocked` role, or a marked item whose question comment was re-posted after `item-answer` reported `no-question-comment`; or a worker `FAILED` moved the item to the `blocked` role with its reason comment, both read back. The summary names each ref and where to answer it. | `candidate-proposed` |
|
|
621
638
|
| No item was newly marked, but a pending question was re-sent on Telegram (`requestion`) and awaits the operator, and nothing else changed. | `approval-requested` |
|
|
622
639
|
| The tracker, a configured Telegram or `claude` was unreachable; Telegram is configured but was unavailable or unpaired (a question stayed pending with no Telegram message id); a human-needed mark could not be written or read back, or no marker is configured; an answer for a finished worker, an `exhausted` item or a `decision` no worker has picked up could not be posted on the item or read back (its question stays pending); a worker `FAILED`'s move to the `blocked` role could not be written or read back; a spawn failed after the claim (the item went back to Ready); a worker classified `setup-gap` (the item went back to Ready); the capacity probe failed. | `recovery-required` |
|
|
@@ -34,6 +34,7 @@ import {
|
|
|
34
34
|
setPendingQuestion,
|
|
35
35
|
} from "./ledger.mjs";
|
|
36
36
|
import { recordMarked } from "./ledger-questions.mjs";
|
|
37
|
+
import { clearSetupGap } from "./ledger-setup-gaps.mjs";
|
|
37
38
|
import { planBlockedRelease } from "./reconcile.mjs";
|
|
38
39
|
import { formatAnswer, routeInbound } from "./telegram-route.mjs";
|
|
39
40
|
|
|
@@ -159,6 +160,8 @@ const LEDGER_ACTIONS = {
|
|
|
159
160
|
}),
|
|
160
161
|
"validation-cleared": ctx =>
|
|
161
162
|
clearValidationFailure(ctx.root, { ref: requirePositional(ctx, "ref") }),
|
|
163
|
+
"clear-setup-gap": ctx =>
|
|
164
|
+
clearSetupGap(ctx.root, { repo: requirePositional(ctx, "repo") }),
|
|
162
165
|
control: ctx =>
|
|
163
166
|
setControl(
|
|
164
167
|
ctx.root,
|
|
@@ -14,6 +14,11 @@
|
|
|
14
14
|
* (open leaves in no lifecycle role) as `backlogOrdered`, under the same
|
|
15
15
|
* paging rule. The manager walks it only after the whole Ready queue.
|
|
16
16
|
*
|
|
17
|
+
* Both tiers leave out items routed to a repo with a recorded setup gap
|
|
18
|
+
* (#4820) and list every gap once as `setupGaps`, with the command that
|
|
19
|
+
* clears it, so the manager reports it in plain language instead of
|
|
20
|
+
* re-dispatching there every cycle.
|
|
21
|
+
*
|
|
17
22
|
* The GitHub fetches live in queue-github.mjs and JSON input in
|
|
18
23
|
* json-input.mjs (re-exported here), to keep each module under the line
|
|
19
24
|
* budget.
|
|
@@ -35,6 +40,7 @@ import {
|
|
|
35
40
|
} from "./cli-runtime.mjs";
|
|
36
41
|
import { readJsonFile } from "./json-input.mjs";
|
|
37
42
|
import { readLedger } from "./ledger.mjs";
|
|
43
|
+
import { blockingGapRepo, listSetupGaps } from "./ledger-setup-gaps.mjs";
|
|
38
44
|
import { fetchGithubBacklog, fetchGithubQueue } from "./queue-github.mjs";
|
|
39
45
|
|
|
40
46
|
export { parseJson, readJsonFile } from "./json-input.mjs";
|
|
@@ -124,6 +130,32 @@ function withoutPending(order, waiting) {
|
|
|
124
130
|
};
|
|
125
131
|
}
|
|
126
132
|
|
|
133
|
+
/**
|
|
134
|
+
* Move items routed to a repo with a recorded setup gap out of `ordered` into
|
|
135
|
+
* `excluded` with reason `setup-gap:<repo>` (#4820). Retrying cannot fix a
|
|
136
|
+
* setup gap, so dispatching there would only fail the same way every cycle.
|
|
137
|
+
* @param {{ordered: {ref: string, repoLabels?: string[]}[], excluded: {ref: string, reason: string}[]}} order - Ordered tier
|
|
138
|
+
* @param {Record<string, object>} gaps - `control.setupGaps`
|
|
139
|
+
* @param {boolean} multiRepo - Whether `sessionManager.repos` is set
|
|
140
|
+
* @returns {{ordered: {ref: string}[], excluded: {ref: string, reason: string}[]}} Filtered tier
|
|
141
|
+
*/
|
|
142
|
+
function withoutSetupGaps(order, gaps, multiRepo) {
|
|
143
|
+
const blocked = order.ordered.map(item => ({
|
|
144
|
+
item,
|
|
145
|
+
repo: blockingGapRepo(item, gaps, multiRepo),
|
|
146
|
+
}));
|
|
147
|
+
return {
|
|
148
|
+
...order,
|
|
149
|
+
ordered: blocked.filter(row => row.repo === null).map(row => row.item),
|
|
150
|
+
excluded: [
|
|
151
|
+
...order.excluded,
|
|
152
|
+
...blocked
|
|
153
|
+
.filter(row => row.repo !== null)
|
|
154
|
+
.map(row => ({ ref: row.item.ref, reason: `setup-gap:${row.repo}` })),
|
|
155
|
+
],
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
|
|
127
159
|
/**
|
|
128
160
|
* `queue --tracker <github|jira|linear>`: the Ready queue, the operator's
|
|
129
161
|
* items first (`sessionManager.operatorIds`), then mine, then unassigned.
|
|
@@ -132,7 +164,7 @@ function withoutPending(order, waiting) {
|
|
|
132
164
|
* ordered the same way and always dispatched after every Ready item.
|
|
133
165
|
* @param {object} ctx - CLI context
|
|
134
166
|
* @returns {Promise<{ json: object }>}
|
|
135
|
-
* `{tracker,me,operators,total,pages,ordered,excluded,backlogPickup[,
|
|
167
|
+
* `{tracker,me,operators,total,pages,ordered,excluded,setupGaps,backlogPickup[,
|
|
136
168
|
* backlogTotal,backlogPages,backlogOrdered,backlogExcluded]}`
|
|
137
169
|
*/
|
|
138
170
|
export async function queue(ctx) {
|
|
@@ -160,7 +192,13 @@ export async function queue(ctx) {
|
|
|
160
192
|
humanNeededLabel: humanNeededLabel(project, tracker),
|
|
161
193
|
};
|
|
162
194
|
const waiting = pendingRefs(ledger);
|
|
163
|
-
const
|
|
195
|
+
const gaps = ledger.control.setupGaps;
|
|
196
|
+
const multiRepo = Boolean(config?.repos);
|
|
197
|
+
const order = withoutSetupGaps(
|
|
198
|
+
withoutPending(orderReadyQueue(items, policy), waiting),
|
|
199
|
+
gaps,
|
|
200
|
+
multiRepo
|
|
201
|
+
);
|
|
164
202
|
const json = {
|
|
165
203
|
tracker,
|
|
166
204
|
me,
|
|
@@ -168,18 +206,23 @@ export async function queue(ctx) {
|
|
|
168
206
|
total: items.length,
|
|
169
207
|
pages,
|
|
170
208
|
...order,
|
|
209
|
+
setupGaps: listSetupGaps(ledger),
|
|
171
210
|
backlogPickup,
|
|
172
211
|
};
|
|
173
212
|
if (!backlog) return { json };
|
|
174
213
|
// An item both Ready and in the backlog fetch is Ready work; never twice.
|
|
175
214
|
const readyRefs = new Set(items.map(item => item.ref));
|
|
176
215
|
const backlogItems = backlog.items.filter(item => !readyRefs.has(item.ref));
|
|
177
|
-
const tier =
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
216
|
+
const tier = withoutSetupGaps(
|
|
217
|
+
withoutPending(
|
|
218
|
+
orderBacklogQueue(backlogItems, {
|
|
219
|
+
...policy,
|
|
220
|
+
validationFailures: ledger.validationFailures,
|
|
221
|
+
}),
|
|
222
|
+
waiting
|
|
223
|
+
),
|
|
224
|
+
gaps,
|
|
225
|
+
multiRepo
|
|
183
226
|
);
|
|
184
227
|
return {
|
|
185
228
|
json: {
|
|
@@ -27,7 +27,9 @@ Workers and capacity
|
|
|
27
27
|
spawn <ref> [--repo <key>] [--max-workers <n>]
|
|
28
28
|
Checks, in order: repo dir resolves and has .lisa.config.json (exit 2);
|
|
29
29
|
capacity (exit 3, stdout = capacity report); no live wk- worker for the
|
|
30
|
-
ref (exit 4, stdout = {ref,worker,sessionId}); no
|
|
30
|
+
ref (exit 4, stdout = {ref,worker,sessionId}); no recorded setup gap
|
|
31
|
+
for the repo (exit 2, nothing launched or recorded: fix the repo, then
|
|
32
|
+
ledger clear-setup-gap <repo>); no pending question in
|
|
31
33
|
the ledger for the ref (exit 2: clear it first). Then runs, with cwd = repo
|
|
32
34
|
dir and every TELEGRAM_* variable removed:
|
|
33
35
|
claude --bg -n wk-<token>-<MMDD-HHMM> --dangerously-skip-permissions
|
|
@@ -36,13 +38,21 @@ Workers and capacity
|
|
|
36
38
|
Then reads the worker's transcript for up to 30s
|
|
37
39
|
(LISA_SESSION_MANAGER_FIRST_PROMPT_MS overrides it): when the first
|
|
38
40
|
prompt never ran (the command is unknown in that repo, or a
|
|
39
|
-
UserPromptSubmit hook rejected it), stops the worker, records
|
|
40
|
-
and exits 2 (setup gap; no attempt counted).
|
|
41
|
+
UserPromptSubmit hook rejected it), stops the worker, records no item
|
|
42
|
+
and exits 2 (setup gap; no attempt counted). That gap, and an
|
|
43
|
+
untrusted workspace, are recorded per repo in the ledger's
|
|
44
|
+
control.setupGaps (repo "." on a single-repo project) until cleared.
|
|
45
|
+
Every setup-gap exit 2 prints {repo,setupGap,setupGapStatus}:
|
|
46
|
+
"recorded" (new: tell the operator), "already-recorded" (refused; the
|
|
47
|
+
operator was already told) or "not-recorded" (the ledger write failed,
|
|
48
|
+
warned on stderr: tell the operator).
|
|
41
49
|
Records the ledger and sessions.jsonl. stdout {ref,name,sessionId,repo,
|
|
42
50
|
cwd,firstPrompt}, firstPrompt "alive" or "unconfirmed" (the transcript
|
|
43
51
|
did not resolve in time).
|
|
44
52
|
resume <ref> STDIN: the message for the worker
|
|
45
|
-
claude --bg --resume <full session id> --
|
|
53
|
+
claude --bg --resume <full session id> --dangerously-skip-permissions
|
|
54
|
+
--settings <worker settings> -- "<stdin>" (spawn's permission flags) in
|
|
55
|
+
the worker's repo
|
|
46
56
|
dir, TELEGRAM_* removed; the full id comes from claude agents --json --all
|
|
47
57
|
(exit 2 when none does). Exit 2 when the ledger item finished (DONE or
|
|
48
58
|
FAILED): a finished worker is never resumed.
|
|
@@ -52,10 +62,14 @@ Workers and capacity
|
|
|
52
62
|
a hash of claude logs <worker>, plus the worker's transcript; records
|
|
53
63
|
the hash as progress. stdout
|
|
54
64
|
[{ref,worker,sessionId,repo,classification,attempts,agentStatus,
|
|
55
|
-
pendingQuestion,setupGap}], classification one of
|
|
56
|
-
requestion|setup-gap|working|
|
|
57
|
-
worker's first prompt never
|
|
58
|
-
"prompt-blocked",detail},
|
|
65
|
+
waitingFor,pendingQuestion,setupGap}], classification one of
|
|
66
|
+
finished|waiting|requestion|setup-gap|blocked-on-prompt|working|
|
|
67
|
+
stalled|dead|exhausted. setup-gap: the worker's first prompt never
|
|
68
|
+
ran; setupGap is {kind:"unknown-command"|"prompt-blocked",detail},
|
|
69
|
+
else null. blocked-on-prompt: the live worker's agent row reports a
|
|
70
|
+
waitingFor other than a subagent (e.g. "permission prompt"), which
|
|
71
|
+
nobody attached can answer. waitingFor is the agent row's text, else
|
|
72
|
+
null.
|
|
59
73
|
cycle
|
|
60
74
|
Records that this session ran a cycle now: cyclers[<by>] = <at> in
|
|
61
75
|
the ledger, by tmux:<session> when tmux names the caller's session,
|
|
@@ -198,6 +212,10 @@ Per cycle
|
|
|
198
212
|
ledger's validationFailures entry matches the item's updatedAt).
|
|
199
213
|
GitHub fetches them itself; jira|linear need <file>.backlog =
|
|
200
214
|
{complete:true,pages,items}, else exit 2.
|
|
215
|
+
Items in a repo with a recorded setup gap are excluded from both tiers
|
|
216
|
+
(setup-gap:<repo>): every item on a single-repo project, or items
|
|
217
|
+
labelled repo:<key> on a multi-repo one. setupGaps lists each gap once
|
|
218
|
+
as {repo,kind,detail,at,clear} (clear = the command that lifts it).
|
|
201
219
|
ledger get [<ref>]
|
|
202
220
|
ledger record-spawn <ref> --worker <name> [--session-id <id>] [--repo <key>]
|
|
203
221
|
ledger set-question <ref> [--kind <kind>] [--telegram-message-id <n>]
|
|
@@ -232,6 +250,12 @@ Per cycle
|
|
|
232
250
|
ledger validation-cleared <ref>
|
|
233
251
|
Forgets that failure: after a promotion, or by hand to have the next
|
|
234
252
|
cycle re-validate an item without editing it. stdout {cleared}.
|
|
253
|
+
ledger clear-setup-gap <repo>
|
|
254
|
+
Forgets a repo's recorded setup gap ("." on a single-repo project),
|
|
255
|
+
after the operator fixed the repo; queue offers its items and spawn
|
|
256
|
+
launches there again. Never automatic. Also stamps
|
|
257
|
+
control.setupGapsClearedAt, so classify never re-records the gap from
|
|
258
|
+
a worker that started before the clear. stdout {repo,cleared}.
|
|
235
259
|
ledger control [--paused true|false] [--max-workers <n>|none] [--me <id>|none]
|
|
236
260
|
route [--reply-to <telegram message id>] [--owner <name>] STDIN: message
|
|
237
261
|
stdout {kind:"answer",ref,body[,message]} | {kind:"command",name,...}
|