@codyswann/lisa 2.254.0 → 2.256.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.
Files changed (118) hide show
  1. package/package.json +1 -1
  2. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  3. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  4. package/plugins/lisa/.codex-plugin/skills/lisa-automation-status/SKILL.md +11 -3
  5. package/plugins/lisa/.codex-plugin/skills/lisa-exploratory-qa/SKILL.md +30 -0
  6. package/plugins/lisa/.codex-plugin/skills/lisa-intake/SKILL.md +40 -0
  7. package/plugins/lisa/.codex-plugin/skills/lisa-learnings-audit/SKILL.md +46 -10
  8. package/plugins/lisa/.codex-plugin/skills/lisa-monitor/SKILL.md +36 -0
  9. package/plugins/lisa/.codex-plugin/skills/lisa-project-ideation/SKILL.md +36 -0
  10. package/plugins/lisa/.codex-plugin/skills/lisa-repair-intake/SKILL.md +34 -0
  11. package/plugins/lisa/scripts/automation-run-record.mjs +110 -0
  12. package/plugins/lisa/scripts/automation-status-claude-adapter.mjs +64 -8
  13. package/plugins/lisa/scripts/automation-status-codex-adapter.mjs +61 -5
  14. package/plugins/lisa/scripts/automation-status-report.mjs +30 -0
  15. package/plugins/lisa/scripts/automation-status-run-history.mjs +185 -0
  16. package/plugins/lisa/skills/lisa-automation-status/SKILL.md +11 -3
  17. package/plugins/lisa/skills/lisa-exploratory-qa/SKILL.md +30 -0
  18. package/plugins/lisa/skills/lisa-intake/SKILL.md +40 -0
  19. package/plugins/lisa/skills/lisa-learnings-audit/SKILL.md +46 -10
  20. package/plugins/lisa/skills/lisa-monitor/SKILL.md +36 -0
  21. package/plugins/lisa/skills/lisa-project-ideation/SKILL.md +36 -0
  22. package/plugins/lisa/skills/lisa-repair-intake/SKILL.md +34 -0
  23. package/plugins/lisa-agy/plugin.json +1 -1
  24. package/plugins/lisa-agy/scripts/automation-run-record.mjs +110 -0
  25. package/plugins/lisa-agy/scripts/automation-status-claude-adapter.mjs +64 -8
  26. package/plugins/lisa-agy/scripts/automation-status-codex-adapter.mjs +61 -5
  27. package/plugins/lisa-agy/scripts/automation-status-report.mjs +30 -0
  28. package/plugins/lisa-agy/scripts/automation-status-run-history.mjs +185 -0
  29. package/plugins/lisa-agy/skills/lisa-automation-status/SKILL.md +11 -3
  30. package/plugins/lisa-agy/skills/lisa-exploratory-qa/SKILL.md +30 -0
  31. package/plugins/lisa-agy/skills/lisa-intake/SKILL.md +40 -0
  32. package/plugins/lisa-agy/skills/lisa-learnings-audit/SKILL.md +46 -10
  33. package/plugins/lisa-agy/skills/lisa-monitor/SKILL.md +36 -0
  34. package/plugins/lisa-agy/skills/lisa-project-ideation/SKILL.md +36 -0
  35. package/plugins/lisa-agy/skills/lisa-repair-intake/SKILL.md +34 -0
  36. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  37. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  38. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  39. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  40. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  41. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  42. package/plugins/lisa-copilot/scripts/automation-run-record.mjs +110 -0
  43. package/plugins/lisa-copilot/scripts/automation-status-claude-adapter.mjs +64 -8
  44. package/plugins/lisa-copilot/scripts/automation-status-codex-adapter.mjs +61 -5
  45. package/plugins/lisa-copilot/scripts/automation-status-report.mjs +30 -0
  46. package/plugins/lisa-copilot/scripts/automation-status-run-history.mjs +185 -0
  47. package/plugins/lisa-copilot/skills/lisa-automation-status/SKILL.md +11 -3
  48. package/plugins/lisa-copilot/skills/lisa-exploratory-qa/SKILL.md +30 -0
  49. package/plugins/lisa-copilot/skills/lisa-intake/SKILL.md +40 -0
  50. package/plugins/lisa-copilot/skills/lisa-learnings-audit/SKILL.md +46 -10
  51. package/plugins/lisa-copilot/skills/lisa-monitor/SKILL.md +36 -0
  52. package/plugins/lisa-copilot/skills/lisa-project-ideation/SKILL.md +36 -0
  53. package/plugins/lisa-copilot/skills/lisa-repair-intake/SKILL.md +34 -0
  54. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  55. package/plugins/lisa-cursor/scripts/automation-run-record.mjs +110 -0
  56. package/plugins/lisa-cursor/scripts/automation-status-claude-adapter.mjs +64 -8
  57. package/plugins/lisa-cursor/scripts/automation-status-codex-adapter.mjs +61 -5
  58. package/plugins/lisa-cursor/scripts/automation-status-report.mjs +30 -0
  59. package/plugins/lisa-cursor/scripts/automation-status-run-history.mjs +185 -0
  60. package/plugins/lisa-cursor/skills/lisa-automation-status/SKILL.md +11 -3
  61. package/plugins/lisa-cursor/skills/lisa-exploratory-qa/SKILL.md +30 -0
  62. package/plugins/lisa-cursor/skills/lisa-intake/SKILL.md +40 -0
  63. package/plugins/lisa-cursor/skills/lisa-learnings-audit/SKILL.md +46 -10
  64. package/plugins/lisa-cursor/skills/lisa-monitor/SKILL.md +36 -0
  65. package/plugins/lisa-cursor/skills/lisa-project-ideation/SKILL.md +36 -0
  66. package/plugins/lisa-cursor/skills/lisa-repair-intake/SKILL.md +34 -0
  67. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  68. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  69. package/plugins/lisa-expo-agy/plugin.json +1 -1
  70. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  71. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  72. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  73. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  74. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  75. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  76. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  77. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  78. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  79. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  80. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  81. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  82. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  83. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  84. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  85. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  86. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  87. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  88. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  89. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  90. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  91. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  92. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  93. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  94. package/plugins/lisa-rails-agy/plugin.json +1 -1
  95. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  96. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  97. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  98. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  99. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  100. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  101. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  102. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  103. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  104. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  105. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  106. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  107. package/plugins/src/base/scripts/automation-run-record.mjs +110 -0
  108. package/plugins/src/base/scripts/automation-status-claude-adapter.mjs +64 -8
  109. package/plugins/src/base/scripts/automation-status-codex-adapter.mjs +61 -5
  110. package/plugins/src/base/scripts/automation-status-report.mjs +30 -0
  111. package/plugins/src/base/scripts/automation-status-run-history.mjs +185 -0
  112. package/plugins/src/base/skills/lisa-automation-status/SKILL.md +11 -3
  113. package/plugins/src/base/skills/lisa-exploratory-qa/SKILL.md +30 -0
  114. package/plugins/src/base/skills/lisa-intake/SKILL.md +40 -0
  115. package/plugins/src/base/skills/lisa-learnings-audit/SKILL.md +46 -10
  116. package/plugins/src/base/skills/lisa-monitor/SKILL.md +36 -0
  117. package/plugins/src/base/skills/lisa-project-ideation/SKILL.md +36 -0
  118. package/plugins/src/base/skills/lisa-repair-intake/SKILL.md +34 -0
@@ -124,7 +124,10 @@ audits the auditor without re-running it.
124
124
  `drafted_artifact`; the gardener decides whether the evidence clears the
125
125
  filing bar and attaches the router's draft to the ticket.
126
126
  4. **Emit** (see Ticket emission).
127
- 5. **Report** the terminal state and one-line summary.
127
+ 5. **Report and record** the run outcome and one-line summary — post the
128
+ outcome, then record **exactly one** run-record line through the CLI (see
129
+ Run outcomes), including the escalation path when it ends
130
+ `recovery-required`.
128
131
 
129
132
  ## Ticket emission
130
133
 
@@ -280,17 +283,50 @@ marker-recoverable per-item tickets and a missing (not half-filled) batch:
280
283
  the most recoverable state. Never attempt to "roll back" filed tickets —
281
284
  close-out decisions belong to humans.
282
285
 
283
- ## Terminal states
286
+ ## Run outcomes
287
+
288
+ Exactly one per run, from the closed six-value vocabulary of the
289
+ `automation-runbook-contract` rule:
290
+ **`nothing-needed | candidate-proposed | change-proved | approval-requested | recovery-required | policy-obsolete`**.
291
+
292
+ This section supersedes the gardener's earlier three-value *terminal states*
293
+ vocabulary (`nothing-needed | candidates-proposed | blocked`); the mapping is
294
+ exact so nothing regresses:
295
+
296
+ - `candidates-proposed` → **`candidate-proposed`** — per-item and/or batch
297
+ tickets filed. Report each ticket URL, its recommendation (PROMOTE/DEMOTE +
298
+ rung), and the batch ticket URL with its row count.
299
+ - `nothing-needed` → **`nothing-needed`** (unchanged) — no candidate met any
300
+ recommendation threshold. Report one line: surfaces scanned, entries seen,
301
+ "nothing to propose".
302
+ - `blocked` → **`recovery-required`** when the loop itself could not complete
303
+ (tracker unreachable, contradictory config, a ledger-contract parse error) —
304
+ escalated per Escalation with the operator-readable reason; **or**
305
+ **`approval-requested`** when the run finished and is waiting on a human gate
306
+ rather than being broken.
307
+
308
+ The gardener also newly reaches **`policy-obsolete`** — the Retirement
309
+ condition below tripped and it filed its own teardown proposal. It never
310
+ produces **`change-proved`**: the gardener only files tickets and ships no
311
+ change itself, so proving a change is the implementing factory run's job.
312
+
313
+ Record exactly one outcome per run through the run-record CLI, naming this
314
+ loop's runbook (the `--summary` is the operator-readable one-liner in the
315
+ contract's exemplar voice — plain, specific, actionable):
284
316
 
285
- Exactly one per run: **`nothing-needed | candidates-proposed | blocked`**
317
+ ```bash
318
+ node "${CLAUDE_PLUGIN_ROOT}/scripts/automation-run-record.mjs" \
319
+ --loop-id learnings-audit --outcome candidate-proposed \
320
+ --summary "Proposed 2 promotions and 1 batch confirm; awaiting your flip to ready." \
321
+ --runbook .lisa/automations/learnings-audit.runbook.md [--ref <ticket-url>]...
322
+ ```
286
323
 
287
- - `nothing-needed` no candidate met any recommendation threshold. Healthy.
288
- Report one line: surfaces scanned, entries seen, "nothing to propose".
289
- - `candidates-proposed` — tickets filed. Report each ticket URL, its
290
- recommendation (PROMOTE/DEMOTE + rung), and the batch ticket URL with its
291
- row count.
292
- - `blocked` could not complete; escalated per Escalation with the
293
- operator-readable reason.
324
+ If `${CLAUDE_PLUGIN_ROOT}` is unset, resolve the plugin scripts directory
325
+ directly the built copy `plugins/lisa/scripts/automation-run-record.mjs` or
326
+ the source `plugins/src/base/scripts/automation-run-record.mjs`. If recording
327
+ still fails, **degrade, never abort** (per `automation-runbook-contract`): note
328
+ the recording failure in the run output and finish the run — a recording
329
+ failure is a degradation to report, never a reason to block the loop.
294
330
 
295
331
  ## Retirement condition
296
332
 
@@ -139,3 +139,39 @@ After report, file what was found — **only when run standalone**, never under
139
139
  ## Output
140
140
 
141
141
  A single report: the health/anomaly summary (failures, warnings, no-issue confirmations) + the observability audit table (each in-scope dimension as `OK` / `WARN` / `MISSING` / `PRESENT (unverified)`) + the filing summary (tickets filed with refs + fingerprints, duplicates skipped, dropped count if the cap truncated; or would-file tickets under `--dry-run`). For post-deploy verification (when called from `lisa-verify`), the report-only summary becomes evidence on the originating work item.
142
+
143
+ ## Run outcome
144
+
145
+ As the registered `monitor` automation loop, the **standalone** cron run conforms to the
146
+ `automation-runbook-contract` rule: it ends in **exactly one** of the six run outcomes and records it,
147
+ so a quiet monitoring run and a broken one never look identical.
148
+
149
+ | This cycle's exit path | Run outcome |
150
+ |---|---|
151
+ | Anomalies or in-scope gaps filed — one or more `Bug` / `Task` / `Improvement` leaves created or referenced | `candidate-proposed` |
152
+ | Clean sweep — health/audit ran end to end, nothing over the bar and no in-scope gaps | `nothing-needed` |
153
+ | Provider/threshold resolution failure — threshold collection fails (a present-but-uninspectable config, an invalid configured threshold) or a signal provider is unreachable so the sweep could not run | `recovery-required` |
154
+ | A degradation that still let the sweep run (an optional `ops-specialist` overlay absent, Kane unavailable) | the outcome it actually reached above, with the summary **leading with the degradation** — degradation never mints a seventh token |
155
+
156
+ Only the **standalone** run records. The nested report-only modes do their own job and do not file or
157
+ record: `--report-only` (including the `lisa-verify` post-deploy call, whose summary is evidence on
158
+ the originating item) and `--dry-run` (a preview that creates nothing) are not registered-loop
159
+ invocations.
160
+
161
+ Record **exactly one** outcome per standalone invocation through the run-record CLI, naming this
162
+ loop's runbook (the `--summary` is the operator-readable one-liner in the contract's exemplar voice —
163
+ plain, specific, actionable, e.g. `Health green; audit clean — nothing to propose.` for
164
+ `nothing-needed`):
165
+
166
+ ```bash
167
+ node "${CLAUDE_PLUGIN_ROOT}/scripts/automation-run-record.mjs" \
168
+ --loop-id monitor --outcome candidate-proposed \
169
+ --summary "Filed #1810 for the p99 latency spike; awaiting your flip to ready." \
170
+ --runbook .lisa/automations/monitor.runbook.md [--ref <ticket-url>]...
171
+ ```
172
+
173
+ If `${CLAUDE_PLUGIN_ROOT}` is unset, resolve the plugin scripts directory directly — the built copy
174
+ `plugins/lisa/scripts/automation-run-record.mjs` or the source
175
+ `plugins/src/base/scripts/automation-run-record.mjs`. If recording still fails, **degrade, never
176
+ abort** (per `automation-runbook-contract`): note the recording failure in the run output and finish
177
+ the cycle — a recording failure is a degradation to report, never a reason to block the loop.
@@ -275,6 +275,42 @@ Emit two distinct in-session sections (do not write a report file):
275
275
  Always include the **Personas**, **What Already Exists**, **Discovery Spikes**, and **Rejected**
276
276
  sections (even if empty) so the user sees what was considered and filtered out.
277
277
 
278
+ ## Run outcome
279
+
280
+ As the registered `exploratory-prds` automation loop, this run conforms to the
281
+ `automation-runbook-contract` rule: it ends in **exactly one** of the six run outcomes and records it,
282
+ so a quiet ideation run and a broken one are never confused.
283
+
284
+ | This run's exit path | Run outcome |
285
+ |---|---|
286
+ | PRD(s) created or reused this run (Step 6/7 **PRDs Created**) | `candidate-proposed` |
287
+ | Nothing to ideate — no Practical Idea cleared the bar; nothing created | `nothing-needed` |
288
+ | The Step 5.5 **PRD-queue-pressure gate** blocked auto-ready creation — a human must drain the queue before another auto-ready PRD is added | `approval-requested` |
289
+ | The loop itself could not run — the PRD source reader failed or the queue is misconfigured (a source-reader failure snapshot, not queue pressure) | `recovery-required` |
290
+ | A degradation that still let ideation run (optional Codex automation memory unavailable, an inspiration source unreachable) | the outcome it actually reached above, with the summary **leading with the degradation** — degradation never mints a seventh token |
291
+
292
+ The pressure gate is `approval-requested`, **not** `recovery-required`: the loop ran fine and
293
+ correctly declined to add queue pressure — it is asking a human to drain the queue, not reporting a
294
+ broken machine. `recovery-required` is reserved for the loop failing to run at all.
295
+
296
+ Record **exactly one** outcome per invocation through the run-record CLI, naming this loop's runbook
297
+ (the `--summary` is the operator-readable one-liner in the contract's exemplar voice — plain,
298
+ specific, actionable, e.g. `Reviewed evidence; no practical idea cleared the bar — nothing to
299
+ propose.` for `nothing-needed`):
300
+
301
+ ```bash
302
+ node "${CLAUDE_PLUGIN_ROOT}/scripts/automation-run-record.mjs" \
303
+ --loop-id exploratory-prds --outcome candidate-proposed \
304
+ --summary "Created PRD #1810 for offline export; awaiting your flip to ready." \
305
+ --runbook .lisa/automations/exploratory-prds.runbook.md [--ref <prd-url>]...
306
+ ```
307
+
308
+ If `${CLAUDE_PLUGIN_ROOT}` is unset, resolve the plugin scripts directory directly — the built copy
309
+ `plugins/lisa/scripts/automation-run-record.mjs` or the source
310
+ `plugins/src/base/scripts/automation-run-record.mjs`. If recording still fails, **degrade, never
311
+ abort** (per `automation-runbook-contract`): note the recording failure in the run output and finish
312
+ the run — a recording failure is a degradation to report, never a reason to block the loop.
313
+
278
314
  ## Out of scope (hard rules)
279
315
 
280
316
  - **No fabricated personas.** No evidence citation → no persona; generic roles banned without
@@ -975,6 +975,40 @@ Report outcomes in these buckets:
975
975
  State every item repaired this cycle and the action taken. If the output would be long, group by
976
976
  bucket and show compact refs plus counts.
977
977
 
978
+ ## Run outcome
979
+
980
+ As the registered `intake-repair` automation loop, each cycle conforms to the
981
+ `automation-runbook-contract` rule: it ends in **exactly one** of the six run outcomes and records it,
982
+ so a cycle that found nothing stuck and a cycle where the repair machinery itself broke never look
983
+ alike. A run outcome describes this *cycle*; the Summary-report buckets above describe *what happened
984
+ to each item* — the two never merge in the one-line summary.
985
+
986
+ | This cycle's exit path | Run outcome |
987
+ |---|---|
988
+ | Nothing actionable — the idle case (walk step 5): examined N, all active or in backoff | `nothing-needed` |
989
+ | Repairs applied **and confirmed** this cycle — `resumed` / `resynced` / `recovered` / `unblocked` / `closed_out` / `rolled_up` / `relinked` / `normalized_ready` | `change-proved` |
990
+ | Repair produced new work for a human to pick up — e.g. an unmergeable PR or failed deploy filed as a **build-ready fix ticket** and left `blocked` | `candidate-proposed` |
991
+ | A repair reached an autonomy boundary needing a human (a protected-deploy approval before it can proceed) | `approval-requested` |
992
+ | The loop itself could not run — the queue is unreadable or tracker credentials are revoked | `recovery-required` |
993
+
994
+ Record **exactly one** outcome per invocation through the run-record CLI, naming this loop's runbook
995
+ (the `--summary` is the operator-readable one-liner in the contract's exemplar voice — plain,
996
+ specific, actionable, e.g. `Examined 14 items; all active or in backoff — nothing to repair.` for
997
+ `nothing-needed`):
998
+
999
+ ```bash
1000
+ node "${CLAUDE_PLUGIN_ROOT}/scripts/automation-run-record.mjs" \
1001
+ --loop-id intake-repair --outcome change-proved \
1002
+ --summary "Recovered 3 stalled builds and closed out 2 rollups; all confirmed." \
1003
+ --runbook .lisa/automations/intake-repair.runbook.md [--ref <item-url>]...
1004
+ ```
1005
+
1006
+ If `${CLAUDE_PLUGIN_ROOT}` is unset, resolve the plugin scripts directory directly — the built copy
1007
+ `plugins/lisa/scripts/automation-run-record.mjs` or the source
1008
+ `plugins/src/base/scripts/automation-run-record.mjs`. If recording still fails, **degrade, never
1009
+ abort** (per `automation-runbook-contract`): note the recording failure in the run output and finish
1010
+ the cycle — a recording failure is a degradation to report, never a reason to block the loop.
1011
+
978
1012
  ## Schedule examples
979
1013
 
980
1014
  ```text