@codyswann/lisa 5.10.1 → 5.11.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 (90) 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/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  5. package/dist/core/lisa-owned-hash-ledger.js +34 -0
  6. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  7. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  8. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  9. package/dist/core/upstream-evidence-manifest.js +8 -7
  10. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  11. package/package.json +4 -4
  12. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  13. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  14. package/plugins/lisa/.codex-plugin/skills/lisa-drive-pr-to-merge/SKILL.md +20 -2
  15. package/plugins/lisa/.codex-plugin/skills/lisa-pull-request-review/SKILL.md +37 -10
  16. package/plugins/lisa/skills/lisa-drive-pr-to-merge/SKILL.md +20 -2
  17. package/plugins/lisa/skills/lisa-pull-request-review/SKILL.md +37 -10
  18. package/plugins/lisa-agy/plugin.json +1 -1
  19. package/plugins/lisa-agy/skills/lisa-drive-pr-to-merge/SKILL.md +20 -2
  20. package/plugins/lisa-agy/skills/lisa-pull-request-review/SKILL.md +37 -10
  21. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  22. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  23. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  24. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  25. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  26. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  27. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  28. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  29. package/plugins/lisa-copilot/skills/lisa-drive-pr-to-merge/SKILL.md +20 -2
  30. package/plugins/lisa-copilot/skills/lisa-pull-request-review/SKILL.md +37 -10
  31. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  32. package/plugins/lisa-cursor/skills/lisa-drive-pr-to-merge/SKILL.md +20 -2
  33. package/plugins/lisa-cursor/skills/lisa-pull-request-review/SKILL.md +37 -10
  34. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  35. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  36. package/plugins/lisa-devin/skills/lisa-drive-pr-to-merge/SKILL.md +20 -2
  37. package/plugins/lisa-devin/skills/lisa-pull-request-review/SKILL.md +37 -10
  38. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  39. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  40. package/plugins/lisa-expo-agy/plugin.json +1 -1
  41. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  42. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  43. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  44. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  45. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  46. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  47. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  48. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  49. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  50. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  51. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  52. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  53. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  54. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  55. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  57. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  58. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  59. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  60. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  61. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  62. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  63. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  64. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  65. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  66. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  67. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  68. package/plugins/lisa-rails-agy/plugin.json +1 -1
  69. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  70. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  71. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  72. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  73. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  74. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  75. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  76. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  77. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  78. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  79. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  80. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  81. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  82. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  83. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  84. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  85. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  86. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  87. package/plugins/src/base/skills/lisa-drive-pr-to-merge/SKILL.md +20 -2
  88. package/plugins/src/base/skills/lisa-pull-request-review/SKILL.md +37 -10
  89. package/typescript/copy-overwrite/.github/GITHUB_ACTIONS.md +0 -17
  90. package/typescript/copy-overwrite/scripts/check-skipped-required-checks.mjs +42 -10
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "5.10.1",
3
+ "version": "5.11.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.11.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.11.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.11.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.11.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.11.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.11.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.11.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.11.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
@@ -1612,7 +1612,11 @@ function findOrphanedExemptions(declarations, skipped) {
1612
1612
  * @returns {string} One of `DESCRIPTION_VERDICTS`
1613
1613
  */
1614
1614
  export function classifyCheckDescription(description, vocabulary = {}) {
1615
- const text = (description ?? "").trim().toLowerCase();
1615
+ // Whitespace-collapsed, as the review-evidence prover's normalizeDescription
1616
+ // reads a description, so the two checkers give the same answer.
1617
+ const fold = (/** @type {string} */ value) =>
1618
+ value.trim().replace(/\s+/gu, " ").toLowerCase();
1619
+ const text = fold(description ?? "");
1616
1620
  if (text === "") return DESCRIPTION_VERDICTS.unproven;
1617
1621
 
1618
1622
  // No-work is tested FIRST. The lists are asserted non-overlapping in the
@@ -1623,7 +1627,7 @@ export function classifyCheckDescription(description, vocabulary = {}) {
1623
1627
  ...REVIEW_DESCRIPTION_DEFAULTS.no_work,
1624
1628
  ...(vocabulary.no_work ?? []),
1625
1629
  ];
1626
- if (noWork.some(phrase => text.includes(phrase.trim().toLowerCase()))) {
1630
+ if (noWork.some(phrase => text.includes(fold(phrase)))) {
1627
1631
  return DESCRIPTION_VERDICTS.noWork;
1628
1632
  }
1629
1633
 
@@ -1631,7 +1635,7 @@ export function classifyCheckDescription(description, vocabulary = {}) {
1631
1635
  ...REVIEW_DESCRIPTION_DEFAULTS.proof,
1632
1636
  ...(vocabulary.proof ?? []),
1633
1637
  ];
1634
- if (proof.some(phrase => text === phrase.trim().toLowerCase())) {
1638
+ if (proof.some(phrase => text === fold(phrase))) {
1635
1639
  return DESCRIPTION_VERDICTS.proved;
1636
1640
  }
1637
1641
  return DESCRIPTION_VERDICTS.unproven;
@@ -4319,6 +4323,25 @@ export function fetchChecksForCommit(sha, repo, evidenceChecks = {}) {
4319
4323
  );
4320
4324
  }
4321
4325
 
4326
+ /**
4327
+ * The phrase a structured success line names, or null.
4328
+ *
4329
+ * Reads `Result: Success - <phrase>` with any spacing around the words, by
4330
+ * plain string steps rather than a regular expression, so no input can make it
4331
+ * backtrack.
4332
+ * @param {string} line - A first summary line.
4333
+ * @returns {string|null} The trimmed phrase, or null when the line has another shape.
4334
+ */
4335
+ function structuredSuccessPhrase(line) {
4336
+ if (!line.startsWith("Result:")) return null;
4337
+ const outcome = line.slice("Result:".length).trimStart();
4338
+ if (!outcome.startsWith("Success")) return null;
4339
+ const rest = outcome.slice("Success".length).trimStart();
4340
+ if (!rest.startsWith("-")) return null;
4341
+ const phrase = rest.slice(1).trim();
4342
+ return phrase === "" ? null : phrase;
4343
+ }
4344
+
4322
4345
  /**
4323
4346
  * Decode a selected check run without changing legacy commit-status policy.
4324
4347
  *
@@ -4352,12 +4375,18 @@ function checkRunReviewDescription(row, vocabulary) {
4352
4375
  ) {
4353
4376
  return firstLine;
4354
4377
  }
4355
- if (
4356
- row.status === "completed" &&
4357
- row.conclusion === "success" &&
4358
- firstLine === "Result: Success - Review completed"
4359
- ) {
4360
- return "Review completed";
4378
+ const succeeded = row.status === "completed" && row.conclusion === "success";
4379
+ const proves = (/** @type {string} */ phrase) =>
4380
+ classifyCheckDescription(phrase, vocabulary) ===
4381
+ DESCRIPTION_VERDICTS.proved;
4382
+ // `Result: Success - <phrase>` stands for `<phrase>` when the phrase is
4383
+ // declared proof — CodeRabbit's `Result: Success - Review completed` is one
4384
+ // instance, not the rule (#4909). The same pattern is in
4385
+ // `check-third-party-review-evidence.mjs`, and the parity tests hold the two
4386
+ // provers to the same answers.
4387
+ const structured = structuredSuccessPhrase(firstLine);
4388
+ if (succeeded && structured !== null && proves(structured)) {
4389
+ return structured;
4361
4390
  }
4362
4391
  const resultLooking =
4363
4392
  /^[\s>#|]*Result\b/iu.test(firstLine) ||
@@ -4365,6 +4394,9 @@ function checkRunReviewDescription(row, vocabulary) {
4365
4394
  if (resultLooking) {
4366
4395
  return firstLine;
4367
4396
  }
4397
+ // A reviewer that writes its verdict as a plain first summary line is read
4398
+ // by its own declared proof phrases (#4909).
4399
+ if (succeeded && proves(firstLine)) return firstLine;
4368
4400
  return title;
4369
4401
  }
4370
4402
 
@@ -4799,7 +4831,7 @@ export function vacuityRefusal(input) {
4799
4831
  if (declaredEvidenceChecks(declaration).length === 0) {
4800
4832
  return {
4801
4833
  kind: VACUITY_REFUSALS.noneDeclared,
4802
- reason: `\`evidence_bearing_checks\` in ${DECLARATION_PATH} is empty, so this repository has declared that NO check's green means anything reviewed the code — and the vacuity arm examined nothing on PR #${pr}. If that is true, say so by removing the arm from your workflow. If it is not, name the checks: \`"evidence_bearing_checks": { "CodeRabbit": {} }\`.`,
4834
+ reason: `\`evidence_bearing_checks\` in ${DECLARATION_PATH} is empty, so this repository has declared that NO check's green means anything reviewed the code — and the vacuity arm examined nothing on PR #${pr}. If that is true, say so by removing the arm from your workflow. If it is not, name the checks by their exact check names: \`"evidence_bearing_checks": { "<reviewer check name>": {} }\`.`,
4803
4835
  };
4804
4836
  }
4805
4837
  return null;