@codyswann/lisa 4.107.4 → 4.107.6
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/all/copy-overwrite/scripts/lisa-hooks/block-managed-file-edits.sh +84 -0
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +4 -0
- package/dist/core/lisa-owned-hash-ledger.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 +26 -13
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/opencode/plugin-templates/block-managed-file-edits.sh +84 -0
- package/npm-package/create-only/.github/workflows/publish-to-npm.yml +2 -2
- 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 +17 -7
- 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 +21 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-workers.mjs +155 -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/hooks/block-managed-file-edits.sh +84 -0
- package/plugins/lisa/skills/lisa-session-manager/SKILL.md +17 -7
- 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 +21 -3
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-workers.mjs +155 -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-agy/hooks/block-managed-file-edits.sh +84 -0
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-session-manager/SKILL.md +17 -7
- 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 +21 -3
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-workers.mjs +155 -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-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/hooks/block-managed-file-edits.sh +84 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/SKILL.md +17 -7
- 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 +21 -3
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-workers.mjs +155 -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-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/block-managed-file-edits.sh +84 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/SKILL.md +17 -7
- 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 +21 -3
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-workers.mjs +155 -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-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/hooks/block-managed-file-edits.sh +84 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/SKILL.md +17 -7
- 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 +21 -3
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-workers.mjs +155 -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-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/hooks/block-managed-file-edits.sh +84 -0
- package/plugins/src/base/skills/lisa-session-manager/SKILL.md +17 -7
- 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 +21 -3
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-workers.mjs +155 -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/scripts/update-node-version.ts +16 -2
- package/typescript/copy-overwrite/.github/GITHUB_ACTIONS.md +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.107.
|
|
3
|
+
"version": "4.107.6",
|
|
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.107.
|
|
3
|
+
"version": "4.107.6",
|
|
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.107.
|
|
3
|
+
"version": "4.107.6",
|
|
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.107.
|
|
3
|
+
"version": "4.107.6",
|
|
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.107.
|
|
3
|
+
"version": "4.107.6",
|
|
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.107.
|
|
3
|
+
"version": "4.107.6",
|
|
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.107.
|
|
3
|
+
"version": "4.107.6",
|
|
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"
|
|
@@ -277,6 +277,86 @@ relative_path() {
|
|
|
277
277
|
printf '%s' "${rel#./}"
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
+
# The host's dependency and devDependency names, one per line, read at most
|
|
281
|
+
# once per classification. `managed_source` runs inside `$(...)`, so the cache
|
|
282
|
+
# lives only as long as that subshell — one classification, not one hook run.
|
|
283
|
+
# Unreadable or malformed `package.json` yields nothing, which makes every
|
|
284
|
+
# dependency-keyed stack below read as absent — an allow, the safe direction.
|
|
285
|
+
#
|
|
286
|
+
# Loaded into a global rather than echoed, so callers match with a here-string
|
|
287
|
+
# and no pipeline: under `pipefail` a `grep -q` that stops reading early can
|
|
288
|
+
# fail the writer with SIGPIPE and turn a match into a miss.
|
|
289
|
+
host_dependency_names=""
|
|
290
|
+
host_dependency_names_pending=1
|
|
291
|
+
load_host_dependency_names() {
|
|
292
|
+
[ "$host_dependency_names_pending" -eq 1 ] || return 0
|
|
293
|
+
host_dependency_names="$(jq -r \
|
|
294
|
+
'[(.dependencies // {}), (.devDependencies // {})] | add | keys[]' \
|
|
295
|
+
"$project_root/package.json" 2>/dev/null || true)"
|
|
296
|
+
host_dependency_names_pending=0
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
# Exact dependency name, or with `prefix` as the second argument, any name
|
|
300
|
+
# starting with it (the NestJS detector's `@nestjs` test).
|
|
301
|
+
host_has_dependency() {
|
|
302
|
+
load_host_dependency_names
|
|
303
|
+
local name
|
|
304
|
+
while IFS= read -r name; do
|
|
305
|
+
case "$name" in
|
|
306
|
+
"$1") return 0 ;;
|
|
307
|
+
"$1"*) [ "${2:-}" = prefix ] && return 0 ;;
|
|
308
|
+
esac
|
|
309
|
+
done <<<"$host_dependency_names"
|
|
310
|
+
return 1
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
# Whether the host is the given stack, so that stack's templates reach it.
|
|
314
|
+
#
|
|
315
|
+
# THE SAME PATH CAN BELONG TO DIFFERENT OWNERS IN DIFFERENT STACKS.
|
|
316
|
+
# `.github/workflows/ci.yml` is create-only in typescript, nestjs, cdk, expo and
|
|
317
|
+
# rails — the host owns it after the first apply — but copy-overwrite in
|
|
318
|
+
# harper-fabric and phaser. Probing every stack's tree without asking which
|
|
319
|
+
# stacks this host is made a NestJS host's own ci.yml read as managed via the
|
|
320
|
+
# harper-fabric copy, and a project-owned one-line Node bump needed a human to
|
|
321
|
+
# run the override (CodySwannGT/lisa#4511).
|
|
322
|
+
#
|
|
323
|
+
# `lisa apply` copies a stack's templates only into a host that stack's
|
|
324
|
+
# detector recognises, so each arm mirrors `src/detection/detectors/<stack>.ts`.
|
|
325
|
+
# `all`, `typescript`, and any stack without an arm here keep the pre-existing
|
|
326
|
+
# answer — always managed — so this narrows only where a detector proves the
|
|
327
|
+
# stack absent. Where a shell mirror cannot be exact it errs toward allowing,
|
|
328
|
+
# the same direction `.lisaignore` handling above takes.
|
|
329
|
+
stack_reaches_host() {
|
|
330
|
+
local stack="$1"
|
|
331
|
+
case "$stack" in
|
|
332
|
+
harper-fabric)
|
|
333
|
+
local config="$project_root/harper-app/config.yaml"
|
|
334
|
+
[ -f "$config" ] && [ -e "$project_root/harper-app/schema.graphql" ] ||
|
|
335
|
+
return 1
|
|
336
|
+
{
|
|
337
|
+
grep -qF 'graphqlSchema:' "$config" &&
|
|
338
|
+
grep -qF 'jsResource:' "$config" &&
|
|
339
|
+
grep -qF 'static:' "$config"
|
|
340
|
+
} || host_has_dependency harperdb
|
|
341
|
+
;;
|
|
342
|
+
phaser) host_has_dependency phaser ;;
|
|
343
|
+
nestjs)
|
|
344
|
+
[ -e "$project_root/nest-cli.json" ] ||
|
|
345
|
+
host_has_dependency @nestjs prefix
|
|
346
|
+
;;
|
|
347
|
+
expo)
|
|
348
|
+
[ -e "$project_root/app.json" ] || [ -e "$project_root/eas.json" ] ||
|
|
349
|
+
host_has_dependency expo
|
|
350
|
+
;;
|
|
351
|
+
cdk) [ -e "$project_root/cdk.json" ] ;;
|
|
352
|
+
rails)
|
|
353
|
+
[ -e "$project_root/bin/rails" ] ||
|
|
354
|
+
[ -e "$project_root/config/application.rb" ]
|
|
355
|
+
;;
|
|
356
|
+
*) return 0 ;;
|
|
357
|
+
esac
|
|
358
|
+
}
|
|
359
|
+
|
|
280
360
|
# Whether a host-relative path is shipped as a copy-overwrite template.
|
|
281
361
|
#
|
|
282
362
|
# A few stat calls rather than an enumeration: the same relative path is probed
|
|
@@ -296,6 +376,10 @@ managed_source() {
|
|
|
296
376
|
for stack in "$package_root"/*/copy-overwrite; do
|
|
297
377
|
[ -d "$stack" ] || continue
|
|
298
378
|
if [ -e "$stack/$rel" ]; then
|
|
379
|
+
# Another stack's copy-overwrite twin is not this host's file. Keep
|
|
380
|
+
# looking: a stack this host IS may still manage the same path.
|
|
381
|
+
local stack_name="${stack%/copy-overwrite}"
|
|
382
|
+
stack_reaches_host "${stack_name##*/}" || continue
|
|
299
383
|
printf '%s' "${stack#"$package_root"/}/$rel"
|
|
300
384
|
return 0
|
|
301
385
|
fi
|
|
@@ -451,7 +451,7 @@ 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
455
|
| `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
456
|
|
|
457
457
|
**Blocked.** List the items in the `blocked` role (paged to completion, same access paths as the
|
|
@@ -520,7 +520,10 @@ Skip while `capacity` reports `paused`. Otherwise:
|
|
|
520
520
|
description, reporter, issuetype, subtasks); raw Linear nodes carry identifier, title, priority,
|
|
521
521
|
createdAt, assignee, labels, description, creator and children with their state type.
|
|
522
522
|
- `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.
|
|
523
|
+
group by priority, then age. `excluded` needs no action. `setupGaps` lists each repo the
|
|
524
|
+
manager will not dispatch to until the operator fixes it (`kind`, `detail`, and `clear`, the
|
|
525
|
+
command that lifts it); its items are excluded as `setup-gap:<repo>`. Report a gap to the
|
|
526
|
+
operator only in the cycle that recorded it, never again each cycle.
|
|
524
527
|
- **Backlog tier** (only when `sessionManager.backlogPickup` is `true`). GitHub: `queue` fetches
|
|
525
528
|
it itself (open issues with no build or PRD lifecycle label). Jira / Linear: also fetch the
|
|
526
529
|
open leaf items in **no** lifecycle role — Linear workflow state type `backlog` or `unstarted`
|
|
@@ -564,13 +567,20 @@ Skip while `capacity` reports `paused`. Otherwise:
|
|
|
564
567
|
`ledger record-spawn <ref> --worker <worker> --session-id <id> --repo <key>`; continue.
|
|
565
568
|
- exit 2 (setup gap, e.g. workspace trust not accepted in the repo dir), including a worker
|
|
566
569
|
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
|
-
|
|
570
|
+
`UserPromptSubmit` hook rejected it; the CLI already stopped that worker, recorded no
|
|
571
|
+
item and recorded the repo's setup gap). If the ledger already has an item for the ref and it is still
|
|
569
572
|
running, run `ledger finish <ref> --status FAILED --setup-gap` with the CLI's message as
|
|
570
573
|
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
|
-
|
|
574
|
+
moving the item. Then move the item back to the `ready` role. It is not a failed attempt.
|
|
575
|
+
The CLI remembers the gap: later cycles' `queue` leaves that repo's items out and `spawn`
|
|
576
|
+
refuses the repo (exit 2, nothing launched) until the operator fixes it and runs
|
|
577
|
+
`ledger clear-setup-gap <repo>` (`.` on a single-repo project). The exit-2 stdout's
|
|
578
|
+
`setupGapStatus` says what to tell the operator:
|
|
579
|
+
- `recorded` (this spawn found the gap) or `not-recorded` (the ledger write failed): post
|
|
580
|
+
the CLI's one-line message to Telegram and end the cycle `recovery-required` with that
|
|
581
|
+
message as the summary.
|
|
582
|
+
- `already-recorded` (the operator was told when it was recorded): post nothing and
|
|
583
|
+
continue with the next item.
|
|
574
584
|
- any other exit: move the item back to the `ready` role, notify Telegram, continue.
|
|
575
585
|
3. **Backlog tier, lowest priority.** Only when `backlogPickup` is on, every `ordered` item has been
|
|
576
586
|
taken or skipped, and `capacity` still says `can_spawn`. Ready work always wins: never promote a
|