@codyswann/lisa 4.92.2 → 4.94.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 (101) hide show
  1. package/all/copy-overwrite/scripts/lib/lisa-cleanup-sweep-processes.d.mts +74 -0
  2. package/all/copy-overwrite/scripts/lib/lisa-cleanup-sweep-processes.mjs +527 -0
  3. package/all/copy-overwrite/scripts/lib/lisa-cleanup-sweep.d.mts +80 -0
  4. package/all/copy-overwrite/scripts/lib/lisa-cleanup-sweep.mjs +639 -0
  5. package/all/copy-overwrite/scripts/lib/npm-update-helper-inventory.mjs +2 -0
  6. package/all/copy-overwrite/scripts/lisa-run-gates.mjs +14 -0
  7. package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +27 -2
  8. package/dist/cli/lisa-test-run-sweep.d.ts +38 -0
  9. package/dist/cli/lisa-test-run-sweep.d.ts.map +1 -0
  10. package/dist/cli/lisa-test-run-sweep.js +101 -0
  11. package/dist/cli/lisa-test-run-sweep.js.map +1 -0
  12. package/dist/cli/lisa-test-run.d.ts.map +1 -1
  13. package/dist/cli/lisa-test-run.js +3 -0
  14. package/dist/cli/lisa-test-run.js.map +1 -1
  15. package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  16. package/dist/core/lisa-owned-hash-ledger.js +60 -0
  17. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  18. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  19. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  20. package/dist/core/upstream-evidence-manifest.js +66 -6
  21. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  22. package/package.json +5 -5
  23. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  24. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  25. package/plugins/lisa/.codex-plugin/skills/lisa-drive-pr-to-merge/SKILL.md +103 -2
  26. package/plugins/lisa/skills/lisa-drive-pr-to-merge/SKILL.md +103 -2
  27. package/plugins/lisa-agy/plugin.json +1 -1
  28. package/plugins/lisa-agy/skills/lisa-drive-pr-to-merge/SKILL.md +103 -2
  29. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  30. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  31. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  32. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  33. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  34. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  35. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  36. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  37. package/plugins/lisa-copilot/skills/lisa-drive-pr-to-merge/SKILL.md +103 -2
  38. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  39. package/plugins/lisa-cursor/skills/lisa-drive-pr-to-merge/SKILL.md +103 -2
  40. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  41. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  42. package/plugins/lisa-devin/skills/lisa-drive-pr-to-merge/SKILL.md +103 -2
  43. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  44. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  45. package/plugins/lisa-expo-agy/plugin.json +1 -1
  46. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  47. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  48. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  49. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  50. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  51. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  52. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  53. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  54. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  55. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  57. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  58. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  59. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  60. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  61. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  62. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  63. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  64. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  65. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  66. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  67. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  68. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  69. package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
  70. package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
  71. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  72. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  73. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  74. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  75. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  76. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  77. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  78. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  79. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  80. package/plugins/lisa-rails-agy/plugin.json +1 -1
  81. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  82. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  83. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  84. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  85. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  86. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  87. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  88. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  89. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  90. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  91. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  92. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  93. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  94. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  95. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  96. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  97. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  98. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  99. package/plugins/src/base/skills/lisa-drive-pr-to-merge/SKILL.md +103 -2
  100. package/scripts/two-channel-couplings.json +1 -1
  101. package/typescript/copy-overwrite/.prettierignore +2 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "4.92.2",
3
+ "version": "4.94.0",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "4.92.2",
3
+ "version": "4.94.0",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "4.92.2",
3
+ "version": "4.94.0",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "4.92.2",
3
+ "version": "4.94.0",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "4.92.2",
3
+ "version": "4.94.0",
4
4
  "description": "TypeScript-specific hooks for formatting, linting, and ast-grep scanning on edit.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "4.92.2",
3
+ "version": "4.94.0",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "4.92.2",
3
+ "version": "4.94.0",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "4.92.2",
3
+ "version": "4.94.0",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "4.92.2",
3
+ "version": "4.94.0",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "4.92.2",
3
+ "version": "4.94.0",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "4.92.2",
3
+ "version": "4.94.0",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "4.92.2",
3
+ "version": "4.94.0",
4
4
  "description": "Distributable LLM Wiki kernel — ingest, query, lint, and maintain a git-native markdown knowledge base across Claude and Codex.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "4.92.2",
3
+ "version": "4.94.0",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "4.92.2",
3
+ "version": "4.94.0",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "4.92.2",
3
+ "version": "4.94.0",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "4.92.2",
3
+ "version": "4.94.0",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "4.92.2",
3
+ "version": "4.94.0",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -703,6 +703,98 @@ Handle every blocker class; after any fix, re-poll and continue. Do not stop whi
703
703
  the PR is still open and progress is possible. On each iteration, refresh the
704
704
  babysitter lease if its last stamp is older than ~30 minutes (section 0).
705
705
 
706
+ **Waiting on CI: one bounded CI watch, in the foreground.** When the only thing
707
+ left is required checks still running, wait with a blocking watch, run under a
708
+ timeout no longer than the harness's single-command limit (`timeout 540` where
709
+ the `timeout` utility exists; otherwise the harness's own command timeout):
710
+
711
+ ```bash
712
+ timeout 540 gh pr checks <pr> --required --watch --interval 30 --fail-fast
713
+ ```
714
+
715
+ Give the tool call that runs it a timeout above that value (for example
716
+ 600000 ms on Claude Code's Bash tool), or lower 540 to fit under the harness's
717
+ limit: a harness that kills the command first loses the result the bound exists
718
+ to deliver.
719
+
720
+ When it returns, for any reason, re-poll the full PR state (the `gh pr view`
721
+ line above) and handle whatever blocker it shows exactly as below — a failed
722
+ check is step (c).
723
+ Repeat until the PR is merged, a blocker needs action, or the run's budget is spent.
724
+ **The run's budget** is the caller's stated limit when one was passed, otherwise
725
+ the point where this session cannot keep running (the harness's turn, context or
726
+ wall-clock limit). One watch timing out is NOT the budget being spent — it is
727
+ the cue to re-poll and watch again.
728
+ **A non-zero exit is not a CI failure on its own**: the
729
+ watch exits non-zero when `--fail-fast` sees a failed check, when the timeout
730
+ fires, and — with empty stdout — when the token lacks `actions: read` (section 1's arm gate).
731
+ The re-poll of `statusCheckRollup` is the authority on which one happened.
732
+
733
+ **No required checks reported yet.** The watch also returns at once when no
734
+ required check has registered on the head. First confirm whether the base
735
+ requires any, reading both places a requirement can live:
736
+
737
+ ```bash
738
+ gh api "repos/<owner>/<repo>/rules/branches/<base>" \
739
+ --jq '[.[] | select(.type == "required_status_checks")] | length'
740
+ gh api "repos/<owner>/<repo>/branches/<base>/protection/required_status_checks" \
741
+ --jq '(.contexts // []) + [(.checks // [])[].context] | length'
742
+ gh api "repos/<owner>/<repo>/branches/<base>" --jq .protected
743
+ ```
744
+
745
+ The wait does not apply only when BOTH say none: the rules read returns `0`
746
+ AND the classic read returns `0`, or 404 while the branch read says `.protected`
747
+ is `false`. GitHub also answers 404 when the token cannot read protection (it
748
+ needs admin), so a 404 on a protected branch — or any other error from either
749
+ read — means the requirement is unknown: treat the base as requiring checks.
750
+ With no required checks, the loop just re-polls for the other blockers. Otherwise the
751
+ head's checks have not started: re-poll, and re-run the bounded watch once the
752
+ re-poll shows required checks registered. Between those re-polls, wait with this
753
+ one foreground bounded gap — the `sleep` always runs, because the watch can
754
+ return at once (no checks yet, or every reported check already green while a
755
+ required one has not registered):
756
+
757
+ ```bash
758
+ timeout 60 gh pr checks <pr> --watch --interval 10; sleep 30
759
+ ```
760
+
761
+ Never a detached or unbounded sleep loop. After 10 re-polls with no required
762
+ check registered on the head, that is a blocker, not a wait: stop and name the
763
+ missing checks (report mode: `blocked:checks`).
764
+
765
+ **Report mode does not wait on CI.** With `on_blocker=report`, never run the
766
+ watch and never end in `ci-pending`: pending required checks classify through
767
+ the existing report-mode outcomes. When auto-merge is armed and pending checks
768
+ are the only thing outstanding, return `will-merge-after-resync` — the caller
769
+ keeps the item claimed and a later cycle re-reads the PR; any other standing
770
+ blocker returns its own `blocked:<reason>`.
771
+
772
+ **Never start a detached or background watcher as the way to wait on CI** — no
773
+ trailing `&`, no `nohup`, no harness background task, no scheduled re-check, no
774
+ detached or unbounded sleep loop. Each of those stalls silently, dies with the
775
+ session, or lets the session end while required checks are still pending, and
776
+ the later result then reaches nobody. The wait is the bounded watch above, and
777
+ nothing else.
778
+
779
+ **Budget spent with required checks still pending.** Do not end silently and do
780
+ not report success. Record the state on the PR in one comment carrying the
781
+ PR number, the head SHA, and the names of the required checks still pending,
782
+ deduplicated by a marker so a resumed run updates rather than repeats it. A
783
+ later run that finds that head's required checks finished edits the marker
784
+ comment to say so, so the record never reads as still pending:
785
+
786
+ ```text
787
+ <!-- [lisa-ci-pending] sha=<head-sha> -->
788
+ ```
789
+
790
+ A check that fails later is not this run's to catch: the CI-failure re-dispatch
791
+ (its `[lisa-ci-failed]` marker on the work item) wakes the owning agent. End
792
+ with the `ci-pending` terminal state (section 4) and this exact report line:
793
+
794
+ ```text
795
+ CI PENDING — <n> required checks still running at <sha>
796
+ ```
797
+
706
798
  **Poll by PR number, and never discover the PR set from "what is currently open".**
707
799
  A watcher whose target list comes from `gh pr list --state open` **cannot observe a
708
800
  merge**: the moment the PR merges it leaves that list, so the branch that would
@@ -1357,8 +1449,8 @@ gh run list --branch <baseRefName> --commit "$merge_sha" \
1357
1449
  ```
1358
1450
 
1359
1451
  **Bounded wait:** a just-created run can take a few seconds to register — poll
1360
- briefly (a small number of short intervals / a short ceiling, mirroring the "wait
1361
- for that head's checks to start" bound used above) before concluding the run is
1452
+ briefly (a small number of short intervals / a short ceiling, mirroring section 2's
1453
+ bounded CI watch) before concluding the run is
1362
1454
  absent, so a not-yet-registered run is not mis-read as zero. When no run matches
1363
1455
  the merge SHA directly, also accept a descendant run whose head has `$merge_sha`
1364
1456
  as an ancestor (`git merge-base --is-ancestor "$merge_sha" <run_head_sha>`).
@@ -1587,6 +1679,15 @@ Loop until one of:
1587
1679
  bot is rate limited and cannot re-review, and I posted my own review of the
1588
1680
  current version. Someone with dismissal rights needs to dismiss review 456,
1589
1681
  or decide it should stand."* Do not wait for the bot's window to reset.
1682
+ - **`ci-pending`** — the run's budget was spent while required checks were still
1683
+ running on an OPEN PR. The PR number, head SHA and pending check names are
1684
+ recorded in the `[lisa-ci-pending]` comment (section 2), a later failure is
1685
+ left to the `[lisa-ci-failed]` re-dispatch, and the run ends with
1686
+ `CI PENDING — <n> required checks still running at <sha>`. This is never
1687
+ reported as success: the work is not done until CI is green. If the checks
1688
+ later pass and auto-merge merges the PR, post-merge verification and
1689
+ work-item completion (section 3) are left to `lisa-repair-intake`'s
1690
+ merged-PR recovery; re-invoking this skill on the PR also completes them.
1590
1691
  - **`CLOSED`** → report (PR was closed without merge).
1591
1692
  - **Hard block needing a human**: an unresolvable conflict, a failing check that
1592
1693
  needs design input, or genuine unresolved human objection (not a bot gate). Stop
@@ -122,7 +122,7 @@
122
122
  "workflows": 26,
123
123
  "steps": 834,
124
124
  "couplings": 40,
125
- "inventory": 208
125
+ "inventory": 212
126
126
  },
127
127
  "counts": {
128
128
  "package-backed": 11,
@@ -161,6 +161,8 @@ scripts/lib/history-secret-policy.mjs
161
161
  scripts/lib/history-secret-scanner.mjs
162
162
  scripts/lib/invoked-as-script.mjs
163
163
  scripts/lib/kill-marks.mjs
164
+ scripts/lib/lisa-cleanup-sweep-processes.mjs
165
+ scripts/lib/lisa-cleanup-sweep.mjs
164
166
  scripts/lib/npm-update-allocate.mjs
165
167
  scripts/lib/npm-update-authorization.mjs
166
168
  scripts/lib/npm-update-broker-client.mjs