@codyswann/lisa 4.110.2 → 4.111.0
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 +74 -6
- 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/scripts/human-gate-lift.mjs +148 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/SKILL.md +69 -4
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/references/runbook-template.md +3 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-cycle.mjs +16 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-orphans.mjs +162 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-usage.mjs +40 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/ledger.mjs +15 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/orphan-buckets.mjs +233 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/orphan-holds.mjs +252 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/orphan-sweep.mjs +335 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/session-manager.mjs +12 -1
- package/plugins/lisa/skills/lisa-session-manager/SKILL.md +69 -4
- package/plugins/lisa/skills/lisa-session-manager/references/runbook-template.md +3 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-cycle.mjs +16 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-orphans.mjs +162 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-usage.mjs +40 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/ledger.mjs +15 -3
- package/plugins/lisa/skills/lisa-session-manager/scripts/orphan-buckets.mjs +233 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/orphan-holds.mjs +252 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/orphan-sweep.mjs +335 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/session-manager.mjs +12 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-session-manager/SKILL.md +69 -4
- package/plugins/lisa-agy/skills/lisa-session-manager/references/runbook-template.md +3 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-cycle.mjs +16 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-orphans.mjs +162 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-usage.mjs +40 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/ledger.mjs +15 -3
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/orphan-buckets.mjs +233 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/orphan-holds.mjs +252 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/orphan-sweep.mjs +335 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/session-manager.mjs +12 -1
- 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 +69 -4
- package/plugins/lisa-copilot/skills/lisa-session-manager/references/runbook-template.md +3 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-cycle.mjs +16 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-orphans.mjs +162 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-usage.mjs +40 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/ledger.mjs +15 -3
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/orphan-buckets.mjs +233 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/orphan-holds.mjs +252 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/orphan-sweep.mjs +335 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/session-manager.mjs +12 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/skills/lisa-session-manager/SKILL.md +69 -4
- package/plugins/lisa-cursor/skills/lisa-session-manager/references/runbook-template.md +3 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-cycle.mjs +16 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-orphans.mjs +162 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-usage.mjs +40 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/ledger.mjs +15 -3
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/orphan-buckets.mjs +233 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/orphan-holds.mjs +252 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/orphan-sweep.mjs +335 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/session-manager.mjs +12 -1
- 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 +69 -4
- package/plugins/lisa-devin/skills/lisa-session-manager/references/runbook-template.md +3 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-cycle.mjs +16 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-orphans.mjs +162 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-usage.mjs +40 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/ledger.mjs +15 -3
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/orphan-buckets.mjs +233 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/orphan-holds.mjs +252 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/orphan-sweep.mjs +335 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/session-manager.mjs +12 -1
- 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 +69 -4
- package/plugins/src/base/skills/lisa-session-manager/references/runbook-template.md +3 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-cycle.mjs +16 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-orphans.mjs +162 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-usage.mjs +40 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/ledger.mjs +15 -3
- package/plugins/src/base/skills/lisa-session-manager/scripts/orphan-buckets.mjs +233 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/orphan-holds.mjs +252 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/orphan-sweep.mjs +335 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/session-manager.mjs +12 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.111.0",
|
|
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.
|
|
3
|
+
"version": "4.111.0",
|
|
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.
|
|
3
|
+
"version": "4.111.0",
|
|
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.
|
|
3
|
+
"version": "4.111.0",
|
|
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.
|
|
3
|
+
"version": "4.111.0",
|
|
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.
|
|
3
|
+
"version": "4.111.0",
|
|
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.
|
|
3
|
+
"version": "4.111.0",
|
|
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-session-manager
|
|
3
|
-
description: "Runs the local session manager for a project: a long-lived Claude Code session in tmux that dispatches Ready work items to fresh background worker sessions (`/lisa:implement <REF> managedBy=<manager>`), relays worker questions and operator answers over the project's own Telegram bot when one is configured (Telegram is optional; without it questions stay pending in the ledger), reconciles stalled and
|
|
3
|
+
description: "Runs the local session manager for a project: a long-lived Claude Code session in tmux that dispatches Ready work items to fresh background worker sessions (`/lisa:implement <REF> managedBy=<manager>`), relays worker questions and operator answers over the project's own Telegram bot when one is configured (Telegram is optional; without it questions stay pending in the ledger), reconciles stalled, blocked and orphaned items, re-judges human holds, and records one automation run outcome per cycle. Tracker-neutral (GitHub, Jira, Linear); lifecycle states always come from config. Requires Claude Code (background sessions, channels, cross-session messaging). Set it up with lisa-setup-session-manager."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Session manager
|
|
@@ -456,7 +456,7 @@ shows them.
|
|
|
456
456
|
not valid JSON): report its message
|
|
457
457
|
to the operator and leave the item; it never means the reply was a credential.
|
|
458
458
|
|
|
459
|
-
**In Progress (ledger-driven).** Run `classify`. Items not in the ledger are
|
|
459
|
+
**In Progress (ledger-driven).** Run `classify`. Items not in the ledger are handled by "Orphans and holds" below, never here.
|
|
460
460
|
|
|
461
461
|
| Classification | Action |
|
|
462
462
|
|---|---|
|
|
@@ -473,6 +473,69 @@ covers a plain Bash call (lisa#4522). So `blocked-on-prompt` detection is the gu
|
|
|
473
473
|
`resume` passes the same permission flags as `spawn`, so a relayed answer or nudge never drops
|
|
474
474
|
the bypass.
|
|
475
475
|
|
|
476
|
+
**Orphans and holds** (CodySwannGT/lisa#4722). Items get left in the `claimed` role (or the
|
|
477
|
+
`review` role) by an earlier manager session, a worker that died or was stopped, or a completion
|
|
478
|
+
step that never ran, and nothing else revisits them. Holds an agent may decide sit in the queue
|
|
479
|
+
just as long. Sweep both every cycle, after `classify` and before Dispatch:
|
|
480
|
+
|
|
481
|
+
1. **List** the items in the `claimed` role and, only when `resolve-lifecycle-role.mjs` resolves
|
|
482
|
+
the optional `review` role, the `review` role; plus the open items carrying the human-needed
|
|
483
|
+
label or a `[lisa-human-gate]` body marker, in any role. Page every list to completion (GitHub:
|
|
484
|
+
`gh`, with `--limit 10000`; Jira / Linear: `lisa-atlassian-access` or `lisa-linear-access`).
|
|
485
|
+
Write `{"complete":true,"items":[{ref,role,labels,body,comments,assignees,updatedAt}],"holds":[{ref,role,labels,body,comments,assignees,updatedAt}]}`
|
|
486
|
+
to `.lisa/session-manager/orphan-input.json`: refs canonical as dispatch uses them, comments
|
|
487
|
+
as `{id,author,body,createdAt}` with the author's stable id and the comment's own posting
|
|
488
|
+
time (a refusal comment with no `createdAt` never ages out of its 24-hour park), assignees as `{login,id}` objects on GitHub (the REST
|
|
489
|
+
`.assignees[].id`) and as the account or user id on Jira and Linear, and each hold's `role` as
|
|
490
|
+
the lifecycle role it is in (`ready`, `claimed`, `review`, `blocked`, `done`), so a lift never
|
|
491
|
+
moves an item that is in a lane back to the `ready` role. On Jira and Linear a hold with no
|
|
492
|
+
known role is lifted but never moved. Set `complete` to `true`
|
|
493
|
+
only when every list reached its last page; the CLI refuses anything else. Run
|
|
494
|
+
`node "$SM/session-manager.mjs" orphan-plan --input .lisa/session-manager/orphan-input.json --project-root "$ROOT"`.
|
|
495
|
+
For each ref in `lookup`, find its pull request in the item's repo dir
|
|
496
|
+
(`gh pr list --state all --search <ref>`); when several match, prefer the merged one, then an
|
|
497
|
+
open one, then a closed one. Set that item's `pr` to `null` or
|
|
498
|
+
`{"url":…,"state":"open"|"merged"|"closed"}`, and run it again. The live refs, "me", the
|
|
499
|
+
operators and the trusted authors come from the ledger and config, never from the input. It
|
|
500
|
+
skips refs the ledger shows running or asking (their holds too, so an item waiting on a
|
|
501
|
+
person's answer is never on the operator's list twice), items assigned to anyone but "me" or an
|
|
502
|
+
operator, and items updated within `--stale-hours` (default 6) or with no `updatedAt`, which
|
|
503
|
+
protects a person running `/lisa:implement` by hand. A live or foreign hold is skipped the
|
|
504
|
+
same way; a fresh or undated one is not lifted this cycle, but its human reasons still reach
|
|
505
|
+
the operator's list, so a new comment never makes the list change.
|
|
506
|
+
2. **Act** per bucket. **Before every write** in this sweep (a finish, a return, a re-dispatch
|
|
507
|
+
claim, a parked comment, a hold lift), re-read the item with `lisa-tracker-read`. Skip it for
|
|
508
|
+
this cycle, with one transcript line and no write, when its role is no longer the one the plan
|
|
509
|
+
saw, it gained an assignee who is neither "me" nor an operator, or its `updatedAt` is newer than
|
|
510
|
+
the snapshot the plan used, apart from this sweep's own earlier write on that item. The plan is
|
|
511
|
+
a snapshot; someone may have moved the item since. Every write goes through `lisa-tracker-write`
|
|
512
|
+
and is read back with `lisa-tracker-read`; every comment is the planner's, which starts with
|
|
513
|
+
`[lisa-session-manager]`.
|
|
514
|
+
- `doneReady`: the pull request merged. In the item's repo dir run
|
|
515
|
+
`node scripts/lisa-work-item.mjs finish --ref <ref> --pr-url <prUrl>`. If it refuses, post
|
|
516
|
+
one comment that starts `[lisa-session-manager] Cannot complete:` and says, in plain words,
|
|
517
|
+
why the item cannot complete yet. Later cycles see that comment and park the item, then retry
|
|
518
|
+
finishing once it is more than 24 hours old.
|
|
519
|
+
- `return`: move it to the `ready` role with the entry's `comment`.
|
|
520
|
+
- `redispatch`: an open pull request and no worker. Claim it (`reused`) and `spawn` it exactly
|
|
521
|
+
as Dispatch steps 2.3 and 2.4, ahead of new items, while `capacity` says `can_spawn`. A
|
|
522
|
+
spawn that reaches `stall.maxAttempts` follows the `exhausted` row above.
|
|
523
|
+
- `parked`: post the entry's `comment` only when `reasonOnItem` is false. An item in the
|
|
524
|
+
`review` role with an open pull request is parked, never re-dispatched: it is waiting on
|
|
525
|
+
review or merge.
|
|
526
|
+
- `holds.lift`: post each of its `comments` (each ends with its `Decision:` line; `decision` is null for a lift an earlier cycle
|
|
527
|
+
already posted, which only re-lanes the item); a partial
|
|
528
|
+
lift is also in `holds.keep` with the reasons still left for a person. Then remove
|
|
529
|
+
the human-needed label and move it to the `ready` role as its `actions` say.
|
|
530
|
+
- `holds.keep`: when `holds.digest.changed` is true, send `holds.digest.text` to the operator
|
|
531
|
+
once (Telegram when configured, else the cycle summary; nothing when the text is empty), then
|
|
532
|
+
record it with `ledger control --hold-digest <fingerprint>` (`none` when `fingerprint` is
|
|
533
|
+
null). An unchanged list is never re-sent.
|
|
534
|
+
- `deferred`: the next cycle takes them.
|
|
535
|
+
|
|
536
|
+
A failure anywhere in this sweep is one transcript line: it never holds dispatch and never makes
|
|
537
|
+
the cycle `recovery-required`.
|
|
538
|
+
|
|
476
539
|
**Blocked.** List the items in the `blocked` role (paged to completion, same access paths as the
|
|
477
540
|
queue below). For each:
|
|
478
541
|
|
|
@@ -650,7 +713,7 @@ session `start` creates), every cycle ends in **exactly one** of the six outcome
|
|
|
650
713
|
| This cycle | Run outcome |
|
|
651
714
|
|---|---|
|
|
652
715
|
| 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` |
|
|
653
|
-
| 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` |
|
|
716
|
+
| At least one of: a worker spawned and seen live in `status`; a Blocked→Ready release written and read back; an orphan finished, returned or re-dispatched, or a hold lifted, 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` |
|
|
654
717
|
| 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` |
|
|
655
718
|
| 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` |
|
|
656
719
|
| 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` |
|
|
@@ -668,7 +731,9 @@ other candidates. The planning-miss candidate a mark routes (step 6 of "Mark and
|
|
|
668
731
|
one: it runs in the background, and whatever it does — a learning PR, a drop note, a failure —
|
|
669
732
|
never moves the cycle's outcome. The same holds for the overruled-escalation sweep in Reconcile,
|
|
670
733
|
including its `[lisa-escalation-overruled]` marker comment: it is never a state change for the run
|
|
671
|
-
outcome.
|
|
734
|
+
outcome. In the "Orphans and holds" sweep, a completion, return, re-dispatch or hold lift
|
|
735
|
+
written and read back counts as `change-proved`; a failure in that sweep is one transcript line and
|
|
736
|
+
never `recovery-required`, and a parked comment or the operator's hold list is never a state change. When several rows apply, the most urgent wins: `recovery-required`, then
|
|
672
737
|
`candidate-proposed`, then `approval-requested`, then `change-proved`.
|
|
673
738
|
A missing channel is never a reason for `recovery-required`: with `notify` `none`, a cycle ends
|
|
674
739
|
`nothing-needed`, `change-proved` or `candidate-proposed` on its work alone.
|
|
@@ -9,6 +9,9 @@ the project: edit the prose to match how you run it. The loop follows the
|
|
|
9
9
|
|
|
10
10
|
Keeps Ready work moving on this machine: each Ready item gets its own fresh coding session, and the
|
|
11
11
|
operator answers that session's questions, from their phone when the project has a Telegram bot.
|
|
12
|
+
Each cycle it also sweeps items left claimed with no live worker (finishing, returning or
|
|
13
|
+
re-dispatching them) and re-judges human holds: it lifts the ones an agent may decide and sends the
|
|
14
|
+
operator one list of the rest, only when that list changes.
|
|
12
15
|
|
|
13
16
|
## Sources of truth
|
|
14
17
|
|
|
@@ -57,6 +57,21 @@ function pausedFlag(value) {
|
|
|
57
57
|
return value === "true";
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
/**
|
|
61
|
+
* Parse `--hold-digest <fingerprint>`: the sha256 `orphan-plan` reported.
|
|
62
|
+
* @param {string} value - Flag value
|
|
63
|
+
* @returns {string} Fingerprint
|
|
64
|
+
*/
|
|
65
|
+
function holdDigestFlag(value) {
|
|
66
|
+
if (!/^[0-9a-f]{64}$/u.test(value)) {
|
|
67
|
+
throw new CliError(
|
|
68
|
+
"--hold-digest must be a sha256 fingerprint or none.",
|
|
69
|
+
2
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
60
75
|
/**
|
|
61
76
|
* Parse a flag where `none` clears the value.
|
|
62
77
|
* @param {string | undefined} value - Flag value
|
|
@@ -173,6 +188,7 @@ const LEDGER_ACTIONS = {
|
|
|
173
188
|
intFlag(value, "--max-workers")
|
|
174
189
|
),
|
|
175
190
|
me: clearable(ctx.values.me, value => value),
|
|
191
|
+
holdDigest: clearable(ctx.values["hold-digest"], holdDigestFlag),
|
|
176
192
|
}).filter(([, value]) => value !== undefined)
|
|
177
193
|
)
|
|
178
194
|
),
|