@codyswann/lisa 5.10.1 → 5.12.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 (94) hide show
  1. package/all/copy-overwrite/scripts/check-third-party-review-evidence.mjs +241 -36
  2. package/all/copy-overwrite/scripts/lisa-gates.mjs +112 -2
  3. package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +1 -1
  4. package/all/copy-overwrite/scripts/review-evidence-event.mjs +7 -1
  5. package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  6. package/dist/core/lisa-owned-hash-ledger.js +52 -0
  7. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  8. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  9. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  10. package/dist/core/upstream-evidence-manifest.js +13 -11
  11. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  12. package/expo/create-only/.github/required-checks.json +1 -0
  13. package/nestjs/create-only/.github/required-checks.json +1 -0
  14. package/package.json +4 -4
  15. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  16. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  17. package/plugins/lisa/.codex-plugin/skills/lisa-drive-pr-to-merge/SKILL.md +20 -2
  18. package/plugins/lisa/.codex-plugin/skills/lisa-pull-request-review/SKILL.md +37 -10
  19. package/plugins/lisa/skills/lisa-drive-pr-to-merge/SKILL.md +20 -2
  20. package/plugins/lisa/skills/lisa-pull-request-review/SKILL.md +37 -10
  21. package/plugins/lisa-agy/plugin.json +1 -1
  22. package/plugins/lisa-agy/skills/lisa-drive-pr-to-merge/SKILL.md +20 -2
  23. package/plugins/lisa-agy/skills/lisa-pull-request-review/SKILL.md +37 -10
  24. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  25. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  26. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  27. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  28. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  29. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  30. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  31. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  32. package/plugins/lisa-copilot/skills/lisa-drive-pr-to-merge/SKILL.md +20 -2
  33. package/plugins/lisa-copilot/skills/lisa-pull-request-review/SKILL.md +37 -10
  34. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  35. package/plugins/lisa-cursor/skills/lisa-drive-pr-to-merge/SKILL.md +20 -2
  36. package/plugins/lisa-cursor/skills/lisa-pull-request-review/SKILL.md +37 -10
  37. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  38. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  39. package/plugins/lisa-devin/skills/lisa-drive-pr-to-merge/SKILL.md +20 -2
  40. package/plugins/lisa-devin/skills/lisa-pull-request-review/SKILL.md +37 -10
  41. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  42. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  43. package/plugins/lisa-expo-agy/plugin.json +1 -1
  44. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  45. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  46. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  47. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  48. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  49. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  50. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  51. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  52. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  53. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  54. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  55. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  57. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  58. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  59. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  60. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  61. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  62. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  63. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  64. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  65. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  66. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  67. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  68. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  69. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  70. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  71. package/plugins/lisa-rails-agy/plugin.json +1 -1
  72. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  73. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  74. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  75. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  76. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  77. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  78. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  79. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  80. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  81. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  82. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  83. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  84. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  85. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  86. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  87. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  88. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  89. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  90. package/plugins/src/base/skills/lisa-drive-pr-to-merge/SKILL.md +20 -2
  91. package/plugins/src/base/skills/lisa-pull-request-review/SKILL.md +37 -10
  92. package/typescript/copy-overwrite/.github/GITHUB_ACTIONS.md +0 -17
  93. package/typescript/copy-overwrite/scripts/check-skipped-required-checks.mjs +313 -18
  94. package/typescript/create-only/.github/required-checks.json +1 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "5.10.1",
3
+ "version": "5.12.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": "5.10.1",
3
+ "version": "5.12.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": "5.10.1",
3
+ "version": "5.12.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": "5.10.1",
3
+ "version": "5.12.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": "5.10.1",
3
+ "version": "5.12.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": "5.10.1",
3
+ "version": "5.12.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": "5.10.1",
3
+ "version": "5.12.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": "5.10.1",
3
+ "version": "5.12.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": "5.10.1",
3
+ "version": "5.12.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": "5.10.1",
3
+ "version": "5.12.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"
@@ -481,6 +481,11 @@ Fail closed: absence of evidence is not evidence of a review.
481
481
 
482
482
  #### Vacuous, transient or standing: the response is the same
483
483
 
484
+ The descriptions in the table below are CodeRabbit's, measured on real pull
485
+ requests. They are examples, not the rule: what counts for your reviewer is its
486
+ gate's `evidence.proof` and `evidence.no_work` phrases, on top of Lisa's
487
+ shipped ones.
488
+
484
489
  A vacuous context is never something to wait out. Waiting looks like progress
485
490
  but it is a stall, and on a repository where the state never clears it waits
486
491
  forever. Some vacuities clear on their own and some do not. **That changes what
@@ -1159,8 +1164,21 @@ nothing. A second repository sampled `success` on 50 of 50.
1159
1164
 
1160
1165
  **Read the words from the reviewer's own API object, never from the rollup.**
1161
1166
  A check run's title is often a generic `Finished`; its result is the **first
1162
- line of its summary** — `Result: Success - Review completed` when a review
1163
- completed, `Result: Rate limited - Review rate limited` when it was throttled.
1167
+ line of its summary**. CodeRabbit, for example, writes
1168
+ `Result: Success - Review completed` when a review completed and
1169
+ `Result: Rate limited - Review rate limited` when it was throttled. Other
1170
+ reviewers word it differently: the checker credits a successful run whose first
1171
+ line is one of the gate's declared `evidence.proof` phrases, or
1172
+ `Result: Success - <phrase>` with a declared phrase, and reads the gate's
1173
+ `evidence.no_work` phrases as no work done (#4909). A reviewer that posts no
1174
+ status or check run, and only submits a pull-request review, is declared with
1175
+ `evidence.review_by: "<its bot login>"`, such as `greptile-apps[bot]`: its
1176
+ submitted review on the exact head counts as its evidence. The review counts
1177
+ only when the reviewer posted no status or check run there, and not when the
1178
+ review's own first line says it did no work; a no-work or failed status or run
1179
+ is never overridden by a review. `review_by` must be a bot login, and cannot be
1180
+ combined with `posted_by`. The evidence workflow wakes only on statuses and check
1181
+ runs, so re-run the review gate after such a review lands.
1164
1182
  Filter by name — the `?check_name=<context>` filter, sent as a field so a name
1165
1183
  with spaces is encoded for you — because a head commonly carries more check
1166
1184
  runs than one unfiltered page returns:
@@ -51,15 +51,41 @@ A required review check can post `success` having reviewed nothing. Measured on
51
51
  PRs #2483 and #2484: `CodeRabbit` reported `success — "Review rate limited"`,
52
52
  zero reviews, and both merged on that green carrying security-relevant changes.
53
53
 
54
+ The project's reviewers are the gates in `.lisa.config.json` whose
55
+ `pull-request` entry sets `evidence.reviewer: true`. The check name is that
56
+ entry's `await`, and the words that mean "it read the code" are its
57
+ `evidence.proof` phrases. Read them from the config rather than assuming a
58
+ vendor:
59
+
54
60
  ```bash
55
- gh pr checks <pr> --json name,state,bucket,description \
56
- --jq '.[] | select(.name | test("(?i)coderabbit|review")) | "\(.name)\t\(.state)\t\(.description)"'
61
+ reviewers=$(jq -r '.gates // {} | to_entries[] | .value["pull-request"] // empty
62
+ | select(.evidence.reviewer == true) | .await' .lisa.config.json) || {
63
+ echo "Cannot read the reviewer gates in .lisa.config.json." >&2
64
+ exit 1
65
+ }
66
+ printf '%s\n' "$reviewers" | while read -r reviewer; do
67
+ [ -n "$reviewer" ] || continue
68
+ gh pr checks <pr> --json name,state,bucket,description \
69
+ --jq ".[] | select(.name == \"$reviewer\") | \"\(.name)\t\(.state)\t\(.description)\""
70
+ done
57
71
  ```
58
72
 
73
+ If the config cannot be read, report the reviewer configuration as
74
+ unreadable, never as "no reviewer". Only a config that reads cleanly and
75
+ declares no reviewer gate means the project has no third-party reviewer; say
76
+ so rather than reporting one as absent.
77
+
59
78
  **The state column passes whether the review was real or hollow — only the
60
79
  reviewer's words distinguish them.** For a commit status those words are the
61
- description: `Review approved` / `Review completed` is a real review;
62
- `Review rate limited`, `Review queued`, or a missing context is not. A reviewer
80
+ description. A real review uses a declared proof phrase, such as CodeRabbit's
81
+ `Review approved` / `Review completed`. A no-work phrase, such as CodeRabbit's
82
+ `Review rate limited` or `Review queued`, or a missing context, is not a
83
+ review. A reviewer whose gate sets `evidence.review_by` reports through its
84
+ own pull-request review instead of a check, which the loop above cannot see.
85
+ For that gate run `node scripts/check-third-party-review-evidence.mjs --sha
86
+ <head-sha> --repo <owner>/<repo> --json` and report the reviewer as reviewed
87
+ only when it reads `reviewed` at the head commit, whichever source it names (a
88
+ check run, a status, or a review). A reviewer
63
89
  can also report through a **check run** instead, and then this command cannot
64
90
  tell you anything: the description column is empty for a check run, which
65
91
  reads `SUCCESS` when it reviewed and `NEUTRAL` — still passing a required
@@ -103,14 +129,15 @@ threads" on its own** — it is true of an unreviewed PR too. Say which you
103
129
  observed:
104
130
 
105
131
  - `unknown — PR discovery unreadable (the open pull requests could not be read); review verdict deferred until access is restored`
106
- - `reviewed — CodeRabbit "Review approved", 0 unresolved threads`
107
- - `NOT REVIEWED — CodeRabbit success but "Review rate limited" (vacuous); 0 threads means nobody looked`
132
+ - `reviewed — <reviewer> "Review approved", 0 unresolved threads`
133
+ - `NOT REVIEWED — <reviewer> success but "Review rate limited" (vacuous); 0 threads means nobody looked`
108
134
  - `NOT REVIEWED — no review check reported on this PR at all`
109
135
 
110
136
  ## Step 1c: Fetch every unanswered review-body finding
111
137
 
112
- Some findings have no thread. CodeRabbit puts its "outside diff range" and
113
- "nitpick" comments in the review **body**, and Step 1 never reads a body. Fetch
138
+ Some findings have no thread. Reviewers often put findings in the review
139
+ **body** (CodeRabbit, for example, puts its "outside diff range" and "nitpick"
140
+ comments there), and Step 1 never reads a body. Fetch
114
141
  the reviews too (GitHub; CodySwannGT/lisa#4643), skipping each review that a PR
115
142
  comment already marks as handled:
116
143
 
@@ -130,8 +157,8 @@ Do not filter on the head commit. **A push does not answer a review body**, so a
130
157
  review from an earlier head stays in scope until a marker retires it. Split each
131
158
  body into its actionable items (a summary or walkthrough with nothing to change
132
159
  is not one) and triage them in Step 2. Expand and read every collapsed `<details>`
133
- section before you call a body summary-only: CodeRabbit puts its nitpick and
134
- outside-diff items there. A body with no actionable items still needs its marker
160
+ section before you call a body summary-only: reviewers such as CodeRabbit put
161
+ nitpick and outside-diff items there. A body with no actionable items still needs its marker
135
162
  (Step 2), or it is re-read on every run and step (e) of `drive-pr-to-merge` waits
136
163
  on it forever. For an older review, first decide whether each item still applies
137
164
  to the current code.
@@ -195,21 +195,6 @@ Fixer of last resort for red CI on unattended branches: Claude analyzes error lo
195
195
  - Skips environment branches (`main`, `staging`, `dev`) and auto-fix branches (prevents infinite loops); failing checks on an auto-fix PR escalate to a ticket instead of re-entering
196
196
  - Requires the caller to map `JIRA_API_TOKEN` / `LINEAR_API_KEY` (and `PAT`) explicitly in its `secrets:` block so tracker credentials reach the issue dispatcher — least-privilege by design; `secrets: inherit` also works mechanically but hands the chain every repo secret and trips SonarCloud security gates
197
197
 
198
- ### Claude Code Review Response (`claude-code-review-response.yml`)
199
-
200
- **Triggers**: CodeRabbit review submitted on a PR
201
-
202
- **Opt-in**: Set repository variable `ENABLE_CLAUDE_CODE_REVIEW_RESPONSE` to `true`
203
-
204
- Automatically triages CodeRabbit review comments and either fixes valid findings or replies to dismiss invalid ones.
205
-
206
- - Triggers when CodeRabbit submits a review (not per inline comment — once per review summary)
207
- - Skips PRs authored by `coderabbitai[bot]` or `dependabot[bot]` to prevent bot-to-bot loops (PRs authored by `claude[bot]` or other bots are allowed)
208
- - For each review comment, Claude determines if the finding is valid or a misunderstanding
209
- - Valid findings: fixes the code and commits with conventional messages
210
- - Invalid findings: replies to the comment explaining why the suggestion does not apply
211
- - Pushes fixes directly to the existing PR branch (no new PR created)
212
-
213
198
  ### Claude Nightly Test Improvement (`claude-nightly-test-improvement.yml`)
214
199
 
215
200
  **Triggers**: Cron at 3 AM UTC weekdays, manual dispatch
@@ -543,7 +528,6 @@ Variables are non-sensitive configuration values. Set them in **Settings** > **S
543
528
  | Variable | Description | Example |
544
529
  |----------|-------------|---------|
545
530
  | `ENABLE_CLAUDE_NIGHTLY` | Enable nightly Claude workflows | `true` |
546
- | `ENABLE_CLAUDE_CODE_REVIEW_RESPONSE` | Enable Claude response to CodeRabbit reviews | `true` |
547
531
  | `JIRA_BASE_URL` | Jira instance base URL (enables Jira triage workflow) | `https://company.atlassian.net` |
548
532
  | `JIRA_USER_EMAIL` | Email associated with the Jira API token | `user@company.com` |
549
533
  | `JIRA_PROJECT_KEY` | Jira project key for ticket queries | `PROJ` |
@@ -705,7 +689,6 @@ with:
705
689
  │ ├── load-test.yml # k6 load testing
706
690
  │ ├── claude.yml # AI assistance
707
691
  │ ├── claude-ci-auto-fix.yml # Auto-fix CI failures
708
- │ ├── claude-code-review-response.yml # Respond to CodeRabbit reviews
709
692
  │ ├── claude-nightly-test-improvement.yml # Nightly test quality
710
693
  │ ├── claude-nightly-test-coverage.yml # Nightly test coverage
711
694
  │ ├── claude-nightly-code-complexity.yml # Nightly code complexity