@codyswann/lisa 4.106.0 → 4.106.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.
- package/dist/core/lisa.d.ts +21 -0
- package/dist/core/lisa.d.ts.map +1 -1
- package/dist/core/lisa.js +48 -0
- package/dist/core/lisa.js.map +1 -1
- 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 +36 -11
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/sonar/sonar-shim-fs.d.ts +32 -0
- package/dist/sonar/sonar-shim-fs.d.ts.map +1 -0
- package/dist/sonar/sonar-shim-fs.js +70 -0
- package/dist/sonar/sonar-shim-fs.js.map +1 -0
- package/dist/sonar/sonar-shim-repoint.d.ts +71 -0
- package/dist/sonar/sonar-shim-repoint.d.ts.map +1 -0
- package/dist/sonar/sonar-shim-repoint.js +221 -0
- package/dist/sonar/sonar-shim-repoint.js.map +1 -0
- 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 +9 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-cycle.mjs +5 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-usage.mjs +18 -5
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-workers.mjs +67 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/first-prompt.mjs +221 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/ledger.mjs +25 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/session-manager.mjs +4 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/worker-launch.mjs +91 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/workers.mjs +10 -5
- package/plugins/lisa/skills/lisa-session-manager/SKILL.md +9 -3
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-cycle.mjs +5 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-usage.mjs +18 -5
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-workers.mjs +67 -3
- package/plugins/lisa/skills/lisa-session-manager/scripts/first-prompt.mjs +221 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/ledger.mjs +25 -3
- package/plugins/lisa/skills/lisa-session-manager/scripts/session-manager.mjs +4 -1
- package/plugins/lisa/skills/lisa-session-manager/scripts/worker-launch.mjs +91 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/workers.mjs +10 -5
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-session-manager/SKILL.md +9 -3
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-cycle.mjs +5 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-usage.mjs +18 -5
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-workers.mjs +67 -3
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/first-prompt.mjs +221 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/ledger.mjs +25 -3
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/session-manager.mjs +4 -1
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/worker-launch.mjs +91 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/workers.mjs +10 -5
- 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 +9 -3
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-cycle.mjs +5 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-usage.mjs +18 -5
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-workers.mjs +67 -3
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/first-prompt.mjs +221 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/ledger.mjs +25 -3
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/session-manager.mjs +4 -1
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/worker-launch.mjs +91 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/workers.mjs +10 -5
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/skills/lisa-session-manager/SKILL.md +9 -3
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-cycle.mjs +5 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-usage.mjs +18 -5
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-workers.mjs +67 -3
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/first-prompt.mjs +221 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/ledger.mjs +25 -3
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/session-manager.mjs +4 -1
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/worker-launch.mjs +91 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/workers.mjs +10 -5
- 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 +9 -3
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-cycle.mjs +5 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-usage.mjs +18 -5
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-workers.mjs +67 -3
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/first-prompt.mjs +221 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/ledger.mjs +25 -3
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/session-manager.mjs +4 -1
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/worker-launch.mjs +91 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/workers.mjs +10 -5
- 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 +9 -3
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-cycle.mjs +5 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-usage.mjs +18 -5
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-workers.mjs +67 -3
- package/plugins/src/base/skills/lisa-session-manager/scripts/first-prompt.mjs +221 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/ledger.mjs +25 -3
- package/plugins/src/base/skills/lisa-session-manager/scripts/session-manager.mjs +4 -1
- package/plugins/src/base/skills/lisa-session-manager/scripts/worker-launch.mjs +91 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/workers.mjs +10 -5
- package/scripts/check-shell-guard-refusal-coverage.mjs +9 -3
- package/scripts/lib/shell-guard-shard-runner.mjs +40 -35
- package/scripts/lib/shell-guard-shards.mjs +176 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.106.
|
|
3
|
+
"version": "4.106.2",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.106.
|
|
3
|
+
"version": "4.106.2",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, across Claude and Codex.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.106.
|
|
3
|
+
"version": "4.106.2",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.106.
|
|
3
|
+
"version": "4.106.2",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.106.
|
|
3
|
+
"version": "4.106.2",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.106.
|
|
3
|
+
"version": "4.106.2",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.106.
|
|
3
|
+
"version": "4.106.2",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -442,6 +442,7 @@ shows them.
|
|
|
442
442
|
| `working`, `waiting`, `finished` | Nothing. |
|
|
443
443
|
| `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. |
|
|
444
444
|
| `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). |
|
|
445
|
+
| `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. |
|
|
445
446
|
| `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. |
|
|
446
447
|
|
|
447
448
|
**Blocked.** List the items in the `blocked` role (paged to completion, same access paths as the
|
|
@@ -552,8 +553,13 @@ Skip while `capacity` reports `paused`. Otherwise:
|
|
|
552
553
|
- exit 3 (no capacity): move the item back to the `ready` role and stop dispatching.
|
|
553
554
|
- exit 4 (a live worker holds it): if the ledger has no item for it, record it with
|
|
554
555
|
`ledger record-spawn <ref> --worker <worker> --session-id <id> --repo <key>`; continue.
|
|
555
|
-
- exit 2 (setup gap, e.g. workspace trust not accepted in the repo dir)
|
|
556
|
-
|
|
556
|
+
- exit 2 (setup gap, e.g. workspace trust not accepted in the repo dir), including a worker
|
|
557
|
+
whose first prompt never ran (`/lisa:implement` unknown in that repo, or a
|
|
558
|
+
`UserPromptSubmit` hook rejected it; the CLI already stopped that worker and recorded
|
|
559
|
+
nothing). If the ledger already has an item for the ref and it is still
|
|
560
|
+
running, run `ledger finish <ref> --status FAILED --setup-gap` with the CLI's message as
|
|
561
|
+
the reason, so that stale row from an earlier worker is never later read as a human
|
|
562
|
+
moving the item. Then move the item back to the `ready` role, post the CLI's one-line message to Telegram, and end the cycle
|
|
557
563
|
`recovery-required` with that message as the summary. It is not a failed attempt; do not
|
|
558
564
|
dispatch to that repo again until the operator fixes it.
|
|
559
565
|
- any other exit: move the item back to the `ready` role, notify Telegram, continue.
|
|
@@ -604,7 +610,7 @@ session `start` creates), every cycle ends in **exactly one** of the six outcome
|
|
|
604
610
|
| 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` |
|
|
605
611
|
| 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` |
|
|
606
612
|
| 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` |
|
|
607
|
-
| 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); the capacity probe failed. | `recovery-required` |
|
|
613
|
+
| 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` |
|
|
608
614
|
| The retirement condition holds. | `policy-obsolete` |
|
|
609
615
|
|
|
610
616
|
`candidate-proposed` is the outcome for marking an item human-needed. The contract's section "A run
|
|
@@ -140,10 +140,15 @@ const LEDGER_ACTIONS = {
|
|
|
140
140
|
}
|
|
141
141
|
const ref = requirePositional(ctx, "ref");
|
|
142
142
|
await assertSender(ctx, ref);
|
|
143
|
+
const setupGap = ctx.values["setup-gap"] === true;
|
|
144
|
+
if (setupGap && status !== "FAILED") {
|
|
145
|
+
throw new CliError("--setup-gap needs --status FAILED.", 2);
|
|
146
|
+
}
|
|
143
147
|
return recordFinish(ctx.root, {
|
|
144
148
|
ref,
|
|
145
149
|
status,
|
|
146
150
|
reason: stdinText(ctx, "reason", { required: false }),
|
|
151
|
+
setupGap,
|
|
147
152
|
});
|
|
148
153
|
},
|
|
149
154
|
"validation-failed": ctx =>
|
|
@@ -33,7 +33,14 @@ Workers and capacity
|
|
|
33
33
|
claude --bg -n wk-<token>-<MMDD-HHMM> --dangerously-skip-permissions
|
|
34
34
|
--settings {"crossSessionInbound":"accept"}
|
|
35
35
|
"/lisa:implement <ref> managedBy=<sessionManager.name>"
|
|
36
|
-
|
|
36
|
+
Then reads the worker's transcript for up to 30s
|
|
37
|
+
(LISA_SESSION_MANAGER_FIRST_PROMPT_MS overrides it): when the first
|
|
38
|
+
prompt never ran (the command is unknown in that repo, or a
|
|
39
|
+
UserPromptSubmit hook rejected it), stops the worker, records nothing
|
|
40
|
+
and exits 2 (setup gap; no attempt counted).
|
|
41
|
+
Records the ledger and sessions.jsonl. stdout {ref,name,sessionId,repo,
|
|
42
|
+
cwd,firstPrompt}, firstPrompt "alive" or "unconfirmed" (the transcript
|
|
43
|
+
did not resolve in time).
|
|
37
44
|
resume <ref> STDIN: the message for the worker
|
|
38
45
|
claude --bg --resume <full session id> -- "<stdin>" in the worker's repo
|
|
39
46
|
dir, TELEGRAM_* removed; the full id comes from claude agents --json --all
|
|
@@ -42,10 +49,13 @@ Workers and capacity
|
|
|
42
49
|
stdout {ref,worker,sessionId,resumed:true}.
|
|
43
50
|
classify [<ref>]
|
|
44
51
|
Classifies one ledger item (or all) from claude agents --json --all and
|
|
45
|
-
a hash of claude logs <worker
|
|
52
|
+
a hash of claude logs <worker>, plus the worker's transcript; records
|
|
53
|
+
the hash as progress. stdout
|
|
46
54
|
[{ref,worker,sessionId,repo,classification,attempts,agentStatus,
|
|
47
|
-
pendingQuestion}], classification one of finished|waiting|
|
|
48
|
-
working|stalled|dead|exhausted.
|
|
55
|
+
pendingQuestion,setupGap}], classification one of finished|waiting|
|
|
56
|
+
requestion|setup-gap|working|stalled|dead|exhausted. setup-gap: the
|
|
57
|
+
worker's first prompt never ran; setupGap is {kind:"unknown-command"|
|
|
58
|
+
"prompt-blocked",detail}, else null.
|
|
49
59
|
status
|
|
50
60
|
stdout {manager:{name,running,self},notify,control,workers:[{ref,
|
|
51
61
|
worker,sessionId,repo,status,attempts,pendingQuestion,live}],untracked:
|
|
@@ -200,8 +210,11 @@ Per cycle
|
|
|
200
210
|
--expect-answer-at: the answerAt answer-plan returned; exit 2 and
|
|
201
211
|
nothing cleared when the queued answer's at differs (the operator
|
|
202
212
|
replaced it since) or no answer is queued: record the new one first.
|
|
203
|
-
ledger finish <ref> --status DONE|FAILED [--sender <name>]
|
|
213
|
+
ledger finish <ref> --status DONE|FAILED [--sender <name>] [--setup-gap]
|
|
214
|
+
STDIN: reason
|
|
204
215
|
--sender: exit 2 unless the ledger's worker for <ref> is exactly <name>.
|
|
216
|
+
--setup-gap (FAILED only): the worker's first prompt never ran
|
|
217
|
+
(classify said setup-gap), so its spawn is not counted as an attempt.
|
|
205
218
|
ledger validation-failed <ref> --updated-at <ts> STDIN: failing gates
|
|
206
219
|
Caches a backlog item's failed validation; queue skips it until the
|
|
207
220
|
item's updatedAt changes.
|