@codyswann/lisa 5.10.0 → 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.
- package/all/copy-overwrite/scripts/check-third-party-review-evidence.mjs +241 -36
- package/all/copy-overwrite/scripts/lisa-gates.mjs +112 -2
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +1 -1
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +34 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- 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 +9 -7
- 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/skills/lisa-drive-pr-to-merge/SKILL.md +20 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-pull-request-review/SKILL.md +37 -10
- package/plugins/lisa/skills/lisa-drive-pr-to-merge/SKILL.md +20 -2
- package/plugins/lisa/skills/lisa-pull-request-review/SKILL.md +37 -10
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-drive-pr-to-merge/SKILL.md +20 -2
- package/plugins/lisa-agy/skills/lisa-pull-request-review/SKILL.md +37 -10
- 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-drive-pr-to-merge/SKILL.md +20 -2
- package/plugins/lisa-copilot/skills/lisa-pull-request-review/SKILL.md +37 -10
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/skills/lisa-drive-pr-to-merge/SKILL.md +20 -2
- package/plugins/lisa-cursor/skills/lisa-pull-request-review/SKILL.md +37 -10
- 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-drive-pr-to-merge/SKILL.md +20 -2
- package/plugins/lisa-devin/skills/lisa-pull-request-review/SKILL.md +37 -10
- 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-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-drive-pr-to-merge/SKILL.md +20 -2
- package/plugins/src/base/skills/lisa-pull-request-review/SKILL.md +37 -10
- package/typescript/copy-overwrite/.github/GITHUB_ACTIONS.md +0 -17
- package/typescript/copy-overwrite/scripts/check-skipped-required-checks.mjs +42 -10
package/package.json
CHANGED
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
"qs": "^6.16.0"
|
|
189
189
|
},
|
|
190
190
|
"name": "@codyswann/lisa",
|
|
191
|
-
"version": "5.
|
|
191
|
+
"version": "5.11.0",
|
|
192
192
|
"description": "Governance-as-code for AI coding agents: turns a repository into agent-operated software factories with guardrails, guidance and automated enforcement for Claude Code, Codex, Cursor, OpenCode, Antigravity, Copilot and Devin",
|
|
193
193
|
"main": "dist/index.js",
|
|
194
194
|
"exports": {
|
|
@@ -351,7 +351,7 @@
|
|
|
351
351
|
"test": "tests"
|
|
352
352
|
},
|
|
353
353
|
"types": "./dist/index.d.ts",
|
|
354
|
-
"lisaReleaseCommit": "
|
|
355
|
-
"gitHead": "
|
|
356
|
-
"lisaReleaseTag": "v5.
|
|
354
|
+
"lisaReleaseCommit": "c7e47ada415aa01a2c387cc4c1fb7aeb7ec215bf",
|
|
355
|
+
"gitHead": "c7e47ada415aa01a2c387cc4c1fb7aeb7ec215bf",
|
|
356
|
+
"lisaReleaseTag": "v5.11.0"
|
|
357
357
|
}
|
|
@@ -483,6 +483,11 @@ Fail closed: absence of evidence is not evidence of a review.
|
|
|
483
483
|
|
|
484
484
|
#### Vacuous, transient or standing: the response is the same
|
|
485
485
|
|
|
486
|
+
The descriptions in the table below are CodeRabbit's, measured on real pull
|
|
487
|
+
requests. They are examples, not the rule: what counts for your reviewer is its
|
|
488
|
+
gate's `evidence.proof` and `evidence.no_work` phrases, on top of Lisa's
|
|
489
|
+
shipped ones.
|
|
490
|
+
|
|
486
491
|
A vacuous context is never something to wait out. Waiting looks like progress
|
|
487
492
|
but it is a stall, and on a repository where the state never clears it waits
|
|
488
493
|
forever. Some vacuities clear on their own and some do not. **That changes what
|
|
@@ -1161,8 +1166,21 @@ nothing. A second repository sampled `success` on 50 of 50.
|
|
|
1161
1166
|
|
|
1162
1167
|
**Read the words from the reviewer's own API object, never from the rollup.**
|
|
1163
1168
|
A check run's title is often a generic `Finished`; its result is the **first
|
|
1164
|
-
line of its summary
|
|
1165
|
-
|
|
1169
|
+
line of its summary**. CodeRabbit, for example, writes
|
|
1170
|
+
`Result: Success - Review completed` when a review completed and
|
|
1171
|
+
`Result: Rate limited - Review rate limited` when it was throttled. Other
|
|
1172
|
+
reviewers word it differently: the checker credits a successful run whose first
|
|
1173
|
+
line is one of the gate's declared `evidence.proof` phrases, or
|
|
1174
|
+
`Result: Success - <phrase>` with a declared phrase, and reads the gate's
|
|
1175
|
+
`evidence.no_work` phrases as no work done (#4909). A reviewer that posts no
|
|
1176
|
+
status or check run, and only submits a pull-request review, is declared with
|
|
1177
|
+
`evidence.review_by: "<its bot login>"`, such as `greptile-apps[bot]`: its
|
|
1178
|
+
submitted review on the exact head counts as its evidence. The review counts
|
|
1179
|
+
only when the reviewer posted no status or check run there, and not when the
|
|
1180
|
+
review's own first line says it did no work; a no-work or failed status or run
|
|
1181
|
+
is never overridden by a review. `review_by` must be a bot login, and cannot be
|
|
1182
|
+
combined with `posted_by`. The evidence workflow wakes only on statuses and check
|
|
1183
|
+
runs, so re-run the review gate after such a review lands.
|
|
1166
1184
|
Filter by name — the `?check_name=<context>` filter, sent as a field so a name
|
|
1167
1185
|
with spaces is encoded for you — because a head commonly carries more check
|
|
1168
1186
|
runs than one unfiltered page returns:
|
|
@@ -53,15 +53,41 @@ A required review check can post `success` having reviewed nothing. Measured on
|
|
|
53
53
|
PRs #2483 and #2484: `CodeRabbit` reported `success — "Review rate limited"`,
|
|
54
54
|
zero reviews, and both merged on that green carrying security-relevant changes.
|
|
55
55
|
|
|
56
|
+
The project's reviewers are the gates in `.lisa.config.json` whose
|
|
57
|
+
`pull-request` entry sets `evidence.reviewer: true`. The check name is that
|
|
58
|
+
entry's `await`, and the words that mean "it read the code" are its
|
|
59
|
+
`evidence.proof` phrases. Read them from the config rather than assuming a
|
|
60
|
+
vendor:
|
|
61
|
+
|
|
56
62
|
```bash
|
|
57
|
-
|
|
58
|
-
|
|
63
|
+
reviewers=$(jq -r '.gates // {} | to_entries[] | .value["pull-request"] // empty
|
|
64
|
+
| select(.evidence.reviewer == true) | .await' .lisa.config.json) || {
|
|
65
|
+
echo "Cannot read the reviewer gates in .lisa.config.json." >&2
|
|
66
|
+
exit 1
|
|
67
|
+
}
|
|
68
|
+
printf '%s\n' "$reviewers" | while read -r reviewer; do
|
|
69
|
+
[ -n "$reviewer" ] || continue
|
|
70
|
+
gh pr checks <pr> --json name,state,bucket,description \
|
|
71
|
+
--jq ".[] | select(.name == \"$reviewer\") | \"\(.name)\t\(.state)\t\(.description)\""
|
|
72
|
+
done
|
|
59
73
|
```
|
|
60
74
|
|
|
75
|
+
If the config cannot be read, report the reviewer configuration as
|
|
76
|
+
unreadable, never as "no reviewer". Only a config that reads cleanly and
|
|
77
|
+
declares no reviewer gate means the project has no third-party reviewer; say
|
|
78
|
+
so rather than reporting one as absent.
|
|
79
|
+
|
|
61
80
|
**The state column passes whether the review was real or hollow — only the
|
|
62
81
|
reviewer's words distinguish them.** For a commit status those words are the
|
|
63
|
-
description
|
|
64
|
-
`Review
|
|
82
|
+
description. A real review uses a declared proof phrase, such as CodeRabbit's
|
|
83
|
+
`Review approved` / `Review completed`. A no-work phrase, such as CodeRabbit's
|
|
84
|
+
`Review rate limited` or `Review queued`, or a missing context, is not a
|
|
85
|
+
review. A reviewer whose gate sets `evidence.review_by` reports through its
|
|
86
|
+
own pull-request review instead of a check, which the loop above cannot see.
|
|
87
|
+
For that gate run `node scripts/check-third-party-review-evidence.mjs --sha
|
|
88
|
+
<head-sha> --repo <owner>/<repo> --json` and report the reviewer as reviewed
|
|
89
|
+
only when it reads `reviewed` at the head commit, whichever source it names (a
|
|
90
|
+
check run, a status, or a review). A reviewer
|
|
65
91
|
can also report through a **check run** instead, and then this command cannot
|
|
66
92
|
tell you anything: the description column is empty for a check run, which
|
|
67
93
|
reads `SUCCESS` when it reviewed and `NEUTRAL` — still passing a required
|
|
@@ -105,14 +131,15 @@ threads" on its own** — it is true of an unreviewed PR too. Say which you
|
|
|
105
131
|
observed:
|
|
106
132
|
|
|
107
133
|
- `unknown — PR discovery unreadable (the open pull requests could not be read); review verdict deferred until access is restored`
|
|
108
|
-
- `reviewed —
|
|
109
|
-
- `NOT REVIEWED —
|
|
134
|
+
- `reviewed — <reviewer> "Review approved", 0 unresolved threads`
|
|
135
|
+
- `NOT REVIEWED — <reviewer> success but "Review rate limited" (vacuous); 0 threads means nobody looked`
|
|
110
136
|
- `NOT REVIEWED — no review check reported on this PR at all`
|
|
111
137
|
|
|
112
138
|
## Step 1c: Fetch every unanswered review-body finding
|
|
113
139
|
|
|
114
|
-
Some findings have no thread.
|
|
115
|
-
|
|
140
|
+
Some findings have no thread. Reviewers often put findings in the review
|
|
141
|
+
**body** (CodeRabbit, for example, puts its "outside diff range" and "nitpick"
|
|
142
|
+
comments there), and Step 1 never reads a body. Fetch
|
|
116
143
|
the reviews too (GitHub; CodySwannGT/lisa#4643), skipping each review that a PR
|
|
117
144
|
comment already marks as handled:
|
|
118
145
|
|
|
@@ -132,8 +159,8 @@ Do not filter on the head commit. **A push does not answer a review body**, so a
|
|
|
132
159
|
review from an earlier head stays in scope until a marker retires it. Split each
|
|
133
160
|
body into its actionable items (a summary or walkthrough with nothing to change
|
|
134
161
|
is not one) and triage them in Step 2. Expand and read every collapsed `<details>`
|
|
135
|
-
section before you call a body summary-only:
|
|
136
|
-
outside-diff items there. A body with no actionable items still needs its marker
|
|
162
|
+
section before you call a body summary-only: reviewers such as CodeRabbit put
|
|
163
|
+
nitpick and outside-diff items there. A body with no actionable items still needs its marker
|
|
137
164
|
(Step 2), or it is re-read on every run and step (e) of `drive-pr-to-merge` waits
|
|
138
165
|
on it forever. For an older review, first decide whether each item still applies
|
|
139
166
|
to the current code.
|
|
@@ -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
|
|
1163
|
-
|
|
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
|
-
|
|
56
|
-
|
|
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
|
|
62
|
-
`Review
|
|
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 —
|
|
107
|
-
- `NOT REVIEWED —
|
|
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.
|
|
113
|
-
|
|
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:
|
|
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.
|
|
@@ -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
|
|
1163
|
-
|
|
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
|
-
|
|
56
|
-
|
|
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
|
|
62
|
-
`Review
|
|
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 —
|
|
107
|
-
- `NOT REVIEWED —
|
|
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.
|
|
113
|
-
|
|
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:
|
|
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.
|
|
@@ -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
|
|
1163
|
-
|
|
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
|
-
|
|
56
|
-
|
|
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
|
|
62
|
-
`Review
|
|
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 —
|
|
107
|
-
- `NOT REVIEWED —
|
|
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.
|
|
113
|
-
|
|
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:
|
|
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.
|