@codyswann/lisa 4.99.5 → 4.99.7
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 +337 -26
- package/dist/cli/doctor-third-party-evidence-seed.d.ts +9 -4
- package/dist/cli/doctor-third-party-evidence-seed.d.ts.map +1 -1
- package/dist/cli/doctor-third-party-evidence-seed.js +66 -21
- package/dist/cli/doctor-third-party-evidence-seed.js.map +1 -1
- package/dist/cli/doctor-third-party-evidence-steps.d.ts +19 -0
- package/dist/cli/doctor-third-party-evidence-steps.d.ts.map +1 -0
- package/dist/cli/doctor-third-party-evidence-steps.js +60 -0
- package/dist/cli/doctor-third-party-evidence-steps.js.map +1 -0
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +12 -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/third-party-evidence-seed.d.ts +10 -1
- package/dist/core/third-party-evidence-seed.d.ts.map +1 -1
- package/dist/core/third-party-evidence-seed.js +72 -5
- package/dist/core/third-party-evidence-seed.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +43 -27
- 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-debrief-apply/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-delivery-effectiveness/SKILL.md +2 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-drive-pr-to-merge/SKILL.md +17 -7
- package/plugins/lisa/.codex-plugin/skills/lisa-github-build-intake/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-github-validate-issue/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-implement/SKILL.md +2 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-build-intake/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-learnings-audit/SKILL.md +11 -4
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-build-intake/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-validate-issue/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-persist-learning/SKILL.md +12 -12
- package/plugins/lisa/.codex-plugin/skills/lisa-pull-request-review/SKILL.md +62 -6
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/SKILL.md +22 -5
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/answer-record.mjs +28 -4
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-answer-record.mjs +2 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-human.mjs +38 -4
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-usage.mjs +8 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/ledger-questions.mjs +6 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-task-decomposition/SKILL.md +2 -2
- package/plugins/lisa/agents/learning-judge.md +7 -5
- package/plugins/lisa/commands/persist-learning.md +1 -1
- package/plugins/lisa/rules/reference/claim-archaeology.md +1 -1
- package/plugins/lisa/rules/reference/rejection-detection.md +1 -1
- package/plugins/lisa/rules/reference/work-item-definition-of-ready.md +5 -2
- package/plugins/lisa/skills/lisa-debrief-apply/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-delivery-effectiveness/SKILL.md +2 -2
- package/plugins/lisa/skills/lisa-drive-pr-to-merge/SKILL.md +17 -7
- package/plugins/lisa/skills/lisa-github-build-intake/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-github-validate-issue/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-implement/SKILL.md +2 -2
- package/plugins/lisa/skills/lisa-jira-build-intake/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-learnings-audit/SKILL.md +11 -4
- package/plugins/lisa/skills/lisa-linear-build-intake/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-linear-validate-issue/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-persist-learning/SKILL.md +12 -12
- package/plugins/lisa/skills/lisa-pull-request-review/SKILL.md +62 -6
- package/plugins/lisa/skills/lisa-session-manager/SKILL.md +22 -5
- package/plugins/lisa/skills/lisa-session-manager/scripts/answer-record.mjs +28 -4
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-answer-record.mjs +2 -1
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-human.mjs +38 -4
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-usage.mjs +8 -3
- package/plugins/lisa/skills/lisa-session-manager/scripts/ledger-questions.mjs +6 -1
- package/plugins/lisa/skills/lisa-task-decomposition/SKILL.md +2 -2
- package/plugins/lisa-agy/agents/learning-judge.md +7 -5
- package/plugins/lisa-agy/commands/lisa/persist-learning.md +1 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-debrief-apply/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-delivery-effectiveness/SKILL.md +2 -2
- package/plugins/lisa-agy/skills/lisa-drive-pr-to-merge/SKILL.md +17 -7
- package/plugins/lisa-agy/skills/lisa-github-build-intake/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-github-validate-issue/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-implement/SKILL.md +2 -2
- package/plugins/lisa-agy/skills/lisa-jira-build-intake/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-learnings-audit/SKILL.md +11 -4
- package/plugins/lisa-agy/skills/lisa-linear-build-intake/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-linear-validate-issue/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-persist-learning/SKILL.md +12 -12
- package/plugins/lisa-agy/skills/lisa-pull-request-review/SKILL.md +62 -6
- package/plugins/lisa-agy/skills/lisa-session-manager/SKILL.md +22 -5
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/answer-record.mjs +28 -4
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-answer-record.mjs +2 -1
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-human.mjs +38 -4
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-usage.mjs +8 -3
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/ledger-questions.mjs +6 -1
- package/plugins/lisa-agy/skills/lisa-task-decomposition/SKILL.md +2 -2
- 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/agents/learning-judge.agent.md +7 -5
- package/plugins/lisa-copilot/commands/lisa/persist-learning.md +1 -1
- package/plugins/lisa-copilot/rules/reference/claim-archaeology.md +1 -1
- package/plugins/lisa-copilot/rules/reference/rejection-detection.md +1 -1
- package/plugins/lisa-copilot/rules/reference/work-item-definition-of-ready.md +5 -2
- package/plugins/lisa-copilot/skills/lisa-debrief-apply/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-delivery-effectiveness/SKILL.md +2 -2
- package/plugins/lisa-copilot/skills/lisa-drive-pr-to-merge/SKILL.md +17 -7
- package/plugins/lisa-copilot/skills/lisa-github-build-intake/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-github-validate-issue/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-implement/SKILL.md +2 -2
- package/plugins/lisa-copilot/skills/lisa-jira-build-intake/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-learnings-audit/SKILL.md +11 -4
- package/plugins/lisa-copilot/skills/lisa-linear-build-intake/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-linear-validate-issue/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-persist-learning/SKILL.md +12 -12
- package/plugins/lisa-copilot/skills/lisa-pull-request-review/SKILL.md +62 -6
- package/plugins/lisa-copilot/skills/lisa-session-manager/SKILL.md +22 -5
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/answer-record.mjs +28 -4
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-answer-record.mjs +2 -1
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-human.mjs +38 -4
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-usage.mjs +8 -3
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/ledger-questions.mjs +6 -1
- package/plugins/lisa-copilot/skills/lisa-task-decomposition/SKILL.md +2 -2
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/agents/learning-judge.md +7 -5
- package/plugins/lisa-cursor/commands/lisa/persist-learning.md +1 -1
- package/plugins/lisa-cursor/rules/claim-archaeology-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/rejection-detection-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/work-item-definition-of-ready-reference.mdc +5 -2
- package/plugins/lisa-cursor/skills/lisa-debrief-apply/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-delivery-effectiveness/SKILL.md +2 -2
- package/plugins/lisa-cursor/skills/lisa-drive-pr-to-merge/SKILL.md +17 -7
- package/plugins/lisa-cursor/skills/lisa-github-build-intake/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-github-validate-issue/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-implement/SKILL.md +2 -2
- package/plugins/lisa-cursor/skills/lisa-jira-build-intake/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-learnings-audit/SKILL.md +11 -4
- package/plugins/lisa-cursor/skills/lisa-linear-build-intake/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-linear-validate-issue/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-persist-learning/SKILL.md +12 -12
- package/plugins/lisa-cursor/skills/lisa-pull-request-review/SKILL.md +62 -6
- package/plugins/lisa-cursor/skills/lisa-session-manager/SKILL.md +22 -5
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/answer-record.mjs +28 -4
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-answer-record.mjs +2 -1
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-human.mjs +38 -4
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-usage.mjs +8 -3
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/ledger-questions.mjs +6 -1
- package/plugins/lisa-cursor/skills/lisa-task-decomposition/SKILL.md +2 -2
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/agents/learning-judge.md +7 -5
- package/plugins/lisa-devin/rules/reference/claim-archaeology.md +1 -1
- package/plugins/lisa-devin/rules/reference/rejection-detection.md +1 -1
- package/plugins/lisa-devin/rules/reference/work-item-definition-of-ready.md +5 -2
- package/plugins/lisa-devin/skills/lisa-debrief-apply/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-delivery-effectiveness/SKILL.md +2 -2
- package/plugins/lisa-devin/skills/lisa-drive-pr-to-merge/SKILL.md +17 -7
- package/plugins/lisa-devin/skills/lisa-github-build-intake/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-github-validate-issue/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-implement/SKILL.md +2 -2
- package/plugins/lisa-devin/skills/lisa-jira-build-intake/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-learnings-audit/SKILL.md +11 -4
- package/plugins/lisa-devin/skills/lisa-linear-build-intake/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-linear-validate-issue/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-persist-learning/SKILL.md +12 -12
- package/plugins/lisa-devin/skills/lisa-pull-request-review/SKILL.md +62 -6
- package/plugins/lisa-devin/skills/lisa-session-manager/SKILL.md +22 -5
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/answer-record.mjs +28 -4
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-answer-record.mjs +2 -1
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-human.mjs +38 -4
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-usage.mjs +8 -3
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/ledger-questions.mjs +6 -1
- package/plugins/lisa-devin/skills/lisa-task-decomposition/SKILL.md +2 -2
- 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-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-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/agents/learning-judge.md +7 -5
- package/plugins/src/base/commands/persist-learning.md +1 -1
- package/plugins/src/base/rules/reference/claim-archaeology.md +1 -1
- package/plugins/src/base/rules/reference/rejection-detection.md +1 -1
- package/plugins/src/base/rules/reference/work-item-definition-of-ready.md +5 -2
- package/plugins/src/base/skills/lisa-debrief-apply/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-delivery-effectiveness/SKILL.md +2 -2
- package/plugins/src/base/skills/lisa-drive-pr-to-merge/SKILL.md +17 -7
- package/plugins/src/base/skills/lisa-github-build-intake/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-github-validate-issue/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-implement/SKILL.md +2 -2
- package/plugins/src/base/skills/lisa-jira-build-intake/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-learnings-audit/SKILL.md +11 -4
- package/plugins/src/base/skills/lisa-linear-build-intake/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-linear-validate-issue/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-persist-learning/SKILL.md +12 -12
- package/plugins/src/base/skills/lisa-pull-request-review/SKILL.md +62 -6
- package/plugins/src/base/skills/lisa-session-manager/SKILL.md +22 -5
- package/plugins/src/base/skills/lisa-session-manager/scripts/answer-record.mjs +28 -4
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-answer-record.mjs +2 -1
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-human.mjs +38 -4
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-usage.mjs +8 -3
- package/plugins/src/base/skills/lisa-session-manager/scripts/ledger-questions.mjs +6 -1
- package/plugins/src/base/skills/lisa-task-decomposition/SKILL.md +2 -2
- package/typescript/create-only/.github/workflows/third-party-review-evidence.yml +58 -17
|
@@ -255,8 +255,17 @@ leave the ledger as it is (`markedAt` stays null), carry on with the cycle and e
|
|
|
255
255
|
- `worker-question` or `decision` whose worker already reported `DONE` or `FAILED` (the
|
|
256
256
|
question outlives the worker in the ledger, so its marker can still be removed): do not
|
|
257
257
|
resume the finished worker. Record the answer on the item (below); the next attempt reads it
|
|
258
|
-
there. `
|
|
259
|
-
|
|
258
|
+
there. A worker's `FAILED` usually leaves the item in the `blocked` role (moved there on
|
|
259
|
+
`FAILED`, or held there for a `decision`), and nothing else returns a blocked item with no
|
|
260
|
+
dependency edges to Ready, so `answer-plan` returns `requeue: true` for it. First read the
|
|
261
|
+
item with `lisa-tracker-read`. Only when the read-back shows it **in the `blocked` role**,
|
|
262
|
+
also move it to the `ready` role in the step 2 update, as for `exhausted`, so the next
|
|
263
|
+
dispatch starts a fresh attempt that reads the answer on the item. When it is anywhere else
|
|
264
|
+
(a human moved it to the backlog or closed it, or `stop REF` already returned it to Ready),
|
|
265
|
+
leave it where it is: `requeue` never overrides a human's move. A `DONE` worker's item is
|
|
266
|
+
left where it is. `resume` refuses a finished
|
|
267
|
+
worker (exit 2), and `spawn` refuses a ref while its question is pending, so finish this
|
|
268
|
+
clearing first.
|
|
260
269
|
|
|
261
270
|
**Record the answer on the item** (a finished worker, an `exhausted` item, or a `decision` no
|
|
262
271
|
worker has picked up): the next attempt
|
|
@@ -267,7 +276,9 @@ leave the ledger as it is (`markedAt` stays null), carry on with the cycle and e
|
|
|
267
276
|
it and then stopped), do not post it again, and take that comment as the read-back.
|
|
268
277
|
Otherwise post its `comment` exactly as given through `lisa-tracker-write` and read it
|
|
269
278
|
back with `lisa-tracker-read`; only then go on to step 2. `record: false` with `reason`
|
|
270
|
-
`answered-on-item` (the answer is already on the item) needs nothing posted.
|
|
279
|
+
`answered-on-item` (the answer is already on the item) needs nothing posted. Read `requeue`
|
|
280
|
+
whatever `record` says: `requeue: true` comes with `record: false` and `answered-on-item` too,
|
|
281
|
+
when the operator answered a `FAILED` worker's question on the item. If the post or the
|
|
271
282
|
read-back fails, stop here: leave the marker and the question pending (do not run step 3),
|
|
272
283
|
carry on with the cycle and end it `recovery-required`; the next cycle's "Waiting on a human"
|
|
273
284
|
step tries again. Exit 2 means the queued answer looks like it holds a credential: post
|
|
@@ -276,8 +287,10 @@ leave the ledger as it is (`markedAt` stays null), carry on with the cycle and e
|
|
|
276
287
|
2. **Remove the manager's own marker** (the `marker` the ledger recorded, nothing else) through
|
|
277
288
|
`lisa-tracker-write`, with a short comment: `[lisa-session-manager] Answer delivered; removed the
|
|
278
289
|
hold.` when a worker received the answer (`SendMessage` or `resume`), else
|
|
279
|
-
`[lisa-session-manager] Answer recorded on the item; removed the hold.`
|
|
280
|
-
`
|
|
290
|
+
`[lisa-session-manager] Answer recorded on the item; removed the hold.` When `answer-plan`
|
|
291
|
+
returned `requeue: true` and the read-back shows the item in the `blocked` role, the same
|
|
292
|
+
update also moves it to the `ready` role; in any other role, leave the item where it is. Read
|
|
293
|
+
it back with `lisa-tracker-read`.
|
|
281
294
|
3. `ledger clear-question <ref>` (`--reset-attempts` for an `exhausted` item). After "Record the
|
|
282
295
|
answer on the item" posted (or found) a comment, run it as
|
|
283
296
|
`ledger clear-question <ref> --expect-answer-at <answerAt>`, with `answerAt` from that
|
|
@@ -390,6 +403,10 @@ shows them.
|
|
|
390
403
|
attention, never a silent leave: no reply can be read until the question is found, so re-post
|
|
391
404
|
the question comment (`mark-plan` again, step 3), read it back, and record its id with
|
|
392
405
|
`ledger marked … --comment-id <id>`; that cycle's outcome is `candidate-proposed`.
|
|
406
|
+
`reason: "not-marked"` means the pending question's mark was never read back (`markedAt` is
|
|
407
|
+
null; its text changed since it was marked, say): no reply is read, because the last recorded
|
|
408
|
+
question comment is still the old question's and a reply to it is not this question's answer.
|
|
409
|
+
Finish "Mark and move on" from step 1 for it, as for `marked: false` above.
|
|
393
410
|
`reason: "no-answerers-configured"` means neither `operatorIds` nor `trustedAuthorIds` is set,
|
|
394
411
|
so nothing on the item is read (the tracker identity is the one workers post as); the operator
|
|
395
412
|
answers with the `answerCommand` from `status`. A reply that looks like it holds a credential is
|
|
@@ -62,20 +62,43 @@ function skipReason(status, worker, pending) {
|
|
|
62
62
|
return worker ? "worker-not-finished" : null;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
/**
|
|
66
|
+
* `{requeue: true}` when clearing must also move the item to the `ready`
|
|
67
|
+
* role, else `{}`. A worker's `FAILED` moved the item to the `blocked` role,
|
|
68
|
+
* and the blocked pass keeps an item with no dependency edges, so without
|
|
69
|
+
* this move the "next attempt" that reads the recorded answer is never
|
|
70
|
+
* dispatched (CodySwannGT/lisa#4643). It holds whether the answer still has
|
|
71
|
+
* to be posted or is already on the item. A `DONE` worker's item and a
|
|
72
|
+
* repo-routing answer (carried by its `repo:<name>` stamp) are not moved.
|
|
73
|
+
* @param {string | undefined} status - The ledger item's status
|
|
74
|
+
* @param {{kind?: string, answer?: object | null} | null} pending - The
|
|
75
|
+
* pending question
|
|
76
|
+
* @returns {{requeue?: true}} The flag, only when it applies
|
|
77
|
+
*/
|
|
78
|
+
function requeueOf(status, pending) {
|
|
79
|
+
const due =
|
|
80
|
+
status === "FAILED" &&
|
|
81
|
+
Boolean(pending?.answer) &&
|
|
82
|
+
pending?.kind !== "repo-route";
|
|
83
|
+
return due ? { requeue: true } : {};
|
|
84
|
+
}
|
|
85
|
+
|
|
65
86
|
/**
|
|
66
87
|
* Plan recording a queued answer on the item. Throws when the answer looks
|
|
67
88
|
* like it holds a credential: it would be posted on the item.
|
|
68
89
|
* @param {{ref: string, status?: string, worker?: string | null,
|
|
69
90
|
* pending: object | null}} input - The item's ref, its ledger status and
|
|
70
91
|
* worker, and its pending question
|
|
71
|
-
* @returns {{ref: string, record: false, reason: string} |
|
|
92
|
+
* @returns {{ref: string, record: false, reason: string, requeue?: true} |
|
|
72
93
|
* {ref: string, record: true, source: string, answerAt: string | null,
|
|
73
|
-
* comment: string}} Plan; answerAt is the queued answer's
|
|
74
|
-
* `ledger clear-question --expect-answer-at` checks before
|
|
94
|
+
* comment: string, requeue?: true}} Plan; answerAt is the queued answer's
|
|
95
|
+
* `at`, which `ledger clear-question --expect-answer-at` checks before
|
|
96
|
+
* clearing; `requeue: true` means also move the item to the `ready` role
|
|
75
97
|
*/
|
|
76
98
|
export function planAnswerRecord({ ref, status, worker, pending }) {
|
|
77
99
|
const reason = skipReason(status, worker, pending);
|
|
78
|
-
|
|
100
|
+
const requeue = requeueOf(status, pending);
|
|
101
|
+
if (reason) return { ref, record: false, reason, ...requeue };
|
|
79
102
|
const { source, text, at } = pending.answer;
|
|
80
103
|
const shape = findCredentialShape(text);
|
|
81
104
|
if (shape) {
|
|
@@ -93,5 +116,6 @@ export function planAnswerRecord({ ref, status, worker, pending }) {
|
|
|
93
116
|
`${MANAGER_COMMENT_PREFIX} The operator answered the question above (by ${by}, ${at ?? "time unknown"}):`,
|
|
94
117
|
text
|
|
95
118
|
),
|
|
119
|
+
...requeue,
|
|
96
120
|
};
|
|
97
121
|
}
|
|
@@ -48,7 +48,8 @@ export async function channelAnswer(ctx) {
|
|
|
48
48
|
* credential (nothing is printed, so nothing can be posted).
|
|
49
49
|
* @param {object} ctx - CLI context
|
|
50
50
|
* @returns {Promise<{ json: object }>} `{ref,record:false,reason}` or
|
|
51
|
-
* `{ref,record:true,source,comment}`
|
|
51
|
+
* `{ref,record:true,source,comment}`, either with `requeue: true` when a
|
|
52
|
+
* FAILED worker's item must also move to the `ready` role
|
|
52
53
|
*/
|
|
53
54
|
export async function answerPlan(ctx) {
|
|
54
55
|
const ref = requirePositional(ctx, "ref");
|
|
@@ -181,10 +181,45 @@ const NO_ANSWERERS =
|
|
|
181
181
|
"workers post as. Answer with the answerCommand that status lists, or " +
|
|
182
182
|
"set sessionManager.operatorIds.";
|
|
183
183
|
|
|
184
|
+
/** Why replies are not read while the question's mark is unread. */
|
|
185
|
+
const NOT_MARKED =
|
|
186
|
+
"The pending question has not been marked on the item yet (markedAt is " +
|
|
187
|
+
"null): it was recorded, or its text changed, and its question comment " +
|
|
188
|
+
"has not been posted and read back. Replies are not read until it is, " +
|
|
189
|
+
"or a reply to an earlier question would be taken as this one's answer. " +
|
|
190
|
+
"Finish Mark and move on, then record the new comment with ledger marked " +
|
|
191
|
+
"--comment-id <id>.";
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Why no reply can be read off the item yet, or null when one can. A queued
|
|
195
|
+
* answer is kept. An unmarked question (`markedAt` null) is refused because
|
|
196
|
+
* the answer search anchors on the last recorded question comment, which
|
|
197
|
+
* after a changed question is still the OLD one: reading replies then would
|
|
198
|
+
* queue a reply to the old question as the new one's answer
|
|
199
|
+
* (CodySwannGT/lisa#4643).
|
|
200
|
+
* @param {string} ref - Item ref
|
|
201
|
+
* @param {{answer?: object|null, markedAt?: string|null}} pending - Pending
|
|
202
|
+
* question
|
|
203
|
+
* @returns {object | null} The not-queued result, or null
|
|
204
|
+
*/
|
|
205
|
+
function notReadable(ref, pending) {
|
|
206
|
+
if (pending.answer) return { queued: false, ref, reason: "already-queued" };
|
|
207
|
+
if (!pending.markedAt) {
|
|
208
|
+
return {
|
|
209
|
+
queued: false,
|
|
210
|
+
ref,
|
|
211
|
+
reason: "not-marked",
|
|
212
|
+
explanation: NOT_MARKED,
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
return null;
|
|
216
|
+
}
|
|
217
|
+
|
|
184
218
|
/**
|
|
185
219
|
* `item-answer <ref>` (stdin `{"comments":[...]}`): find the human's answer
|
|
186
220
|
* on the item and queue it. stdout `{queued:false,reason}` when there is none
|
|
187
|
-
* yet,
|
|
221
|
+
* yet, `reason: "not-marked"` (exit 0) while the question's mark has not been
|
|
222
|
+
* read back, or `reason: "no-answerers-configured"` (exit 0) when nobody may
|
|
188
223
|
* answer there. A reply that looks like it holds a credential is skipped and
|
|
189
224
|
* listed in `refused` (with `reason: "credential-refused"` when no later
|
|
190
225
|
* reply answers), so it never wedges the item. Exit 2 when the ref has no
|
|
@@ -207,9 +242,8 @@ export async function itemAnswer(ctx) {
|
|
|
207
242
|
if (!pending) {
|
|
208
243
|
throw new CliError(`${ref} has no pending question in the ledger.`, 2);
|
|
209
244
|
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
}
|
|
245
|
+
const held = notReadable(ref, pending);
|
|
246
|
+
if (held) return { json: held };
|
|
213
247
|
const allowed = allowedAnswerers(config);
|
|
214
248
|
if (allowed.length === 0) {
|
|
215
249
|
return {
|
|
@@ -277,8 +277,11 @@ Per cycle
|
|
|
277
277
|
gh api --paginate repos/<o>/<r>/issues/<n>/comments (user.login,
|
|
278
278
|
user.id). stdout {queued:true,ref,source,author[,refused]} or
|
|
279
279
|
{queued:false,ref,reason:no-question-comment|no-answer-yet|
|
|
280
|
-
already-queued|no-answerers-configured|credential-refused
|
|
281
|
-
[,explanation][,refused,refusedExplanation]}.
|
|
280
|
+
already-queued|not-marked|no-answerers-configured|credential-refused
|
|
281
|
+
[,explanation][,refused,refusedExplanation]}. not-marked (exit 0):
|
|
282
|
+
the question's mark was never read back (markedAt null, as after a
|
|
283
|
+
changed question), so no reply is read; record it with ledger marked
|
|
284
|
+
--comment-id <id> first. no-answerers-configured
|
|
282
285
|
(exit 0): neither list is set, so nothing on the item is read, because
|
|
283
286
|
the tracker identity is the one workers post as; answer with answer.
|
|
284
287
|
A reply that looks like a credential is skipped, never queued, and
|
|
@@ -303,7 +306,9 @@ Per cycle
|
|
|
303
306
|
queued answer's at). A repo-route never records (the repo stamp carries
|
|
304
307
|
it). Otherwise {ref,record:false,reason:no-pending-question|
|
|
305
308
|
no-answer-queued|answered-on-item|worker-not-finished|
|
|
306
|
-
routed-by-repo-stamp}.
|
|
309
|
+
routed-by-repo-stamp}. Either shape adds requeue:true for a FAILED
|
|
310
|
+
worker's item (in the blocked role): move it to the ready role in the
|
|
311
|
+
same update that removes the marker. Exit 2 when the answer it would post looks
|
|
307
312
|
like a credential (nothing printed, nothing to post) or the ledger
|
|
308
313
|
is corrupt.
|
|
309
314
|
record-cycle --outcome <outcome> [--ref <url>]... [--run-id <id>]
|
|
@@ -184,7 +184,12 @@ export function listPendingQuestions(ledger, answerCommand) {
|
|
|
184
184
|
* would let the next cycle run `item-answer` against the old question comment
|
|
185
185
|
* and queue a reply to the old question as the answer to the new one
|
|
186
186
|
* (CodySwannGT/lisa#4570). A queued answer survives only a re-ping of the same
|
|
187
|
-
* text for the same reason: it answered that text.
|
|
187
|
+
* text for the same reason: it answered that text. `managerCommentIds` is
|
|
188
|
+
* kept even when the text changes: those ids also keep the manager's own
|
|
189
|
+
* comments (the old question, its notes) out of the answer candidates, so
|
|
190
|
+
* clearing them would let a manager comment pass for an answer. Instead
|
|
191
|
+
* `item-answer` refuses (`not-marked`) while `markedAt` is null, so the stale
|
|
192
|
+
* last id is never used as the anchor (CodySwannGT/lisa#4643).
|
|
188
193
|
* `kind` defaults to the previous kind, then `worker-question`.
|
|
189
194
|
* @param {string} projectRoot - Absolute project root
|
|
190
195
|
* @param {{ref: string, text: string, telegramMessageId: number|null,
|
|
@@ -14,10 +14,10 @@ Break work into ordered, well-scoped tasks that can be independently implemented
|
|
|
14
14
|
Every time a dispatched worker had to stop for a human, or file a new ticket mid-build, because planning let a gap through, `learning-judge` may have persisted the check planning should have run as a `planning-miss` learning (CodySwannGT/lisa#4569). Those checks only help if planning reads them back. Before decomposing, load them through the learnings contract's **bounded projection** — never by reading the ledger file wholesale:
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
node -e 'import("@codyswann/lisa/learnings").then(async m => { const { readFile } = await import("node:fs/promises"); const file = m.resolveProjectLearningsFile(await m.readProjectConfig(process.cwd())); const raw = await readFile(file, "utf8").catch(()
|
|
17
|
+
node -e 'import("@codyswann/lisa/learnings").then(async m => { const { readFile } = await import("node:fs/promises"); const file = m.resolveProjectLearningsFile(await m.readProjectConfig(process.cwd())); const raw = await readFile(file, "utf8").catch(error => { if (error.code === "ENOENT") return null; throw error; }); if (raw === null) return; const planning = m.parseLearningsFile(raw).filter(e => /^Planning \((prd|decomposition|ready-gate|filing)\):/.test(e.rule)); const { entries } = m.projectLearnings(planning); const kept = new Set(entries.map(e => e.id)); const checks = entries.map(e => ({ id: e.id, rule: e.rule, confidence: e.confidence })); const omitted = planning.filter(e => !kept.has(e.id)).map(e => e.id); console.log(JSON.stringify({ checks, omitted })); }).catch(error => console.error(`learned planning checks unavailable: ${error.message}`))' || true
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
Run it from the project root. No output means there is no ledger yet: carry on. A malformed
|
|
20
|
+
Run it from the project root. No output means there is no ledger yet (`ENOENT`): carry on. A ledger that exists but cannot be read, or is malformed, prints one warning naming the error and yields nothing: carry on without it. Say in the plan that the checks were not loaded. The projection is taken over the planning checks alone, so other learnings never crowd them out; `omitted` lists, by id, any planning check the budget still left out — name those in the plan as not applied. Never let this step block planning.
|
|
21
21
|
|
|
22
22
|
Each check names the stage that owns it, and binds there:
|
|
23
23
|
|
|
@@ -36,9 +36,21 @@
|
|
|
36
36
|
# scope. The prover reads the head's evidence through the API by SHA, so it
|
|
37
37
|
# never needs the head's files: the commit to judge arrives as --sha.
|
|
38
38
|
#
|
|
39
|
-
#
|
|
40
|
-
#
|
|
41
|
-
#
|
|
39
|
+
# THE VERDICT IS PUBLISHED ON THE HEAD IT JUDGED (#4630). A `status` or
|
|
40
|
+
# `check_run` run belongs to the default branch's latest commit, so the job's
|
|
41
|
+
# own check run lands there — never on the pull request head it judged, where
|
|
42
|
+
# nobody reading the pull request would see it. The prover's verdict is saved
|
|
43
|
+
# as JSON instead of ending the job, and the publish step creates ONE check
|
|
44
|
+
# run on `EVIDENCE_SHA`: `🕵️ Third-party review evidence (<reviewer>)`, or
|
|
45
|
+
# without the reviewer on the manual path, concluding `success` for SATISFIED
|
|
46
|
+
# and SUBSTITUTED (the title says which) and `failure` for UNSATISFIED and for
|
|
47
|
+
# a pull-request read that failed. The job itself concludes `success` once the
|
|
48
|
+
# verdict is published, so default-branch commits stop collecting other pull
|
|
49
|
+
# requests' verdicts. It FAILS when the prover crashed or gave no verdict, or
|
|
50
|
+
# when GitHub refused the check run, so broken machinery still shows.
|
|
51
|
+
# Events caused by the Actions token start no workflow run, so the published
|
|
52
|
+
# check run never wakes this workflow again; neither does the job's own,
|
|
53
|
+
# which belongs to a suite GitHub Actions created.
|
|
42
54
|
#
|
|
43
55
|
# WHAT MAKES IT RED. Neither real third-party review evidence at the head, nor a
|
|
44
56
|
# posted adversarial-review substitute for that same head. A merge path that
|
|
@@ -46,8 +58,8 @@
|
|
|
46
58
|
#
|
|
47
59
|
# THREE NO-OPS THAT SAY SO. No reviewer configured, a commit that is nobody's
|
|
48
60
|
# pull request head, and a status or check run from an app nobody declared are
|
|
49
|
-
# all no-ops — and each PRINTS that it is one
|
|
50
|
-
# exists to end, so it is not reproduced here.
|
|
61
|
+
# all no-ops — and each PRINTS that it is one, and why it publishes nothing.
|
|
62
|
+
# A silent pass is the defect this exists to end, so it is not reproduced here.
|
|
51
63
|
# A failed or non-list pull-request read is UNREADABLE, not a no-op: the prover
|
|
52
64
|
# reports pull-requests-unreadable and exits 1 without reading more evidence.
|
|
53
65
|
#
|
|
@@ -56,7 +68,8 @@
|
|
|
56
68
|
# the verdict, up to seven statuses on one head. Judging the first would report
|
|
57
69
|
# a finding on 100% of pull requests, and a guard that fires every time gets
|
|
58
70
|
# deleted rather than read. The settled status fires its own event; a check
|
|
59
|
-
# run wakes this only once it has `completed`.
|
|
71
|
+
# run wakes this only once it has `completed`. A deferred run publishes
|
|
72
|
+
# nothing: the answer's own event wakes the run that publishes it.
|
|
60
73
|
#
|
|
61
74
|
# THE TWO ARMS COVER DIFFERENT HALVES. This one wakes on the reviewer's answer
|
|
62
75
|
# and catches a reviewer that ANSWERED HOLLOW. `review-evidence.yml` runs on the
|
|
@@ -83,12 +96,13 @@ on:
|
|
|
83
96
|
|
|
84
97
|
# A reviewer's words arrive by two routes: a status's description needs
|
|
85
98
|
# `statuses: read` (the status rollup drops it entirely), and a check run's
|
|
86
|
-
# summary needs `checks
|
|
87
|
-
#
|
|
99
|
+
# summary needs `checks` — `write`, which includes reading, because the
|
|
100
|
+
# verdict is published as a check run on the head it judged.
|
|
101
|
+
# `pull-requests: read` finds the head pull request and its comments.
|
|
88
102
|
permissions:
|
|
89
103
|
contents: read
|
|
90
104
|
statuses: read
|
|
91
|
-
checks:
|
|
105
|
+
checks: write
|
|
92
106
|
pull-requests: read
|
|
93
107
|
|
|
94
108
|
# One run per event, head and reviewer. The reviewer and the event are part of
|
|
@@ -109,6 +123,15 @@ jobs:
|
|
|
109
123
|
if: github.event_name != 'status' || github.event.state != 'pending'
|
|
110
124
|
runs-on: ubuntu-latest
|
|
111
125
|
timeout-minutes: 5
|
|
126
|
+
# Job-level, so the step that proves the verdict and the step that
|
|
127
|
+
# publishes it read one commit and one reviewer.
|
|
128
|
+
env:
|
|
129
|
+
# The commit and the reviewer come from whichever event woke the
|
|
130
|
+
# run: a check run's head and name, or a status's commit and context.
|
|
131
|
+
EVIDENCE_SHA: ${{ github.event.check_run.head_sha || github.event.sha || inputs.sha }}
|
|
132
|
+
# Empty on the manual path, where nothing woke the run and every
|
|
133
|
+
# declared reviewer is evaluated.
|
|
134
|
+
EVIDENCE_CONTEXT: ${{ github.event.check_run.name || github.event.context }}
|
|
112
135
|
|
|
113
136
|
steps:
|
|
114
137
|
# No `ref:`. This checks out the default branch on `status` and
|
|
@@ -124,16 +147,13 @@ jobs:
|
|
|
124
147
|
package-manager-cache: false
|
|
125
148
|
node-version: ${{ vars.NODE_VERSION || '24.21.0' }}
|
|
126
149
|
|
|
150
|
+
# The verdict is saved, with the prover's exit code, rather than ending
|
|
151
|
+
# the job: the next step publishes it on the head it judged.
|
|
127
152
|
- name: 🕵️ Prove review evidence, or a posted substitute, at this head
|
|
153
|
+
id: prove
|
|
128
154
|
env:
|
|
129
155
|
GH_TOKEN: ${{ github.token }}
|
|
130
156
|
GITHUB_REPOSITORY: ${{ github.repository }}
|
|
131
|
-
# The commit and the reviewer come from whichever event woke the
|
|
132
|
-
# run: a check run's head and name, or a status's commit and context.
|
|
133
|
-
EVIDENCE_SHA: ${{ github.event.check_run.head_sha || github.event.sha || inputs.sha }}
|
|
134
|
-
# Empty on the manual path, where nothing woke the run and every
|
|
135
|
-
# declared reviewer is evaluated.
|
|
136
|
-
EVIDENCE_CONTEXT: ${{ github.event.check_run.name || github.event.context }}
|
|
137
157
|
run: |
|
|
138
158
|
set -eu
|
|
139
159
|
script=scripts/check-third-party-review-evidence.mjs
|
|
@@ -141,8 +161,29 @@ jobs:
|
|
|
141
161
|
echo "::error title=Review-evidence prover missing::$script does not exist, so no review evidence was read for this commit. An absent prover is a FAILURE, never a skip — a job that passes because it found nothing to run with is the same false green this guard exists to refuse."
|
|
142
162
|
exit 1
|
|
143
163
|
fi
|
|
164
|
+
verdict="$RUNNER_TEMP/third-party-review-verdict.json"
|
|
165
|
+
status=0
|
|
144
166
|
if [ -n "${EVIDENCE_CONTEXT:-}" ]; then
|
|
145
|
-
node "$script" --sha="$EVIDENCE_SHA" --context="$EVIDENCE_CONTEXT"
|
|
167
|
+
node "$script" --sha="$EVIDENCE_SHA" --context="$EVIDENCE_CONTEXT" --json >"$verdict" || status=$?
|
|
146
168
|
else
|
|
147
|
-
node "$script" --sha="$EVIDENCE_SHA"
|
|
169
|
+
node "$script" --sha="$EVIDENCE_SHA" --json >"$verdict" || status=$?
|
|
148
170
|
fi
|
|
171
|
+
echo "prover=$script" >>"$GITHUB_OUTPUT"
|
|
172
|
+
echo "verdict=$verdict" >>"$GITHUB_OUTPUT"
|
|
173
|
+
echo "exit_code=$status" >>"$GITHUB_OUTPUT"
|
|
174
|
+
|
|
175
|
+
# Publishes the saved verdict as a check run on EVIDENCE_SHA, or nothing
|
|
176
|
+
# — saying why — when there is no pull request head to show it on or the
|
|
177
|
+
# run cannot change the answer. Not `continue-on-error`: a refused or
|
|
178
|
+
# impossible publish fails the job and prints GitHub's refusal, and so
|
|
179
|
+
# does a prover that crashed or saved no verdict.
|
|
180
|
+
- name: 🕵️ Publish the verdict on the head it judged
|
|
181
|
+
env:
|
|
182
|
+
GH_TOKEN: ${{ github.token }}
|
|
183
|
+
GITHUB_REPOSITORY: ${{ github.repository }}
|
|
184
|
+
PROVER: ${{ steps.prove.outputs.prover }}
|
|
185
|
+
VERDICT: ${{ steps.prove.outputs.verdict }}
|
|
186
|
+
PROVER_EXIT: ${{ steps.prove.outputs.exit_code }}
|
|
187
|
+
run: |
|
|
188
|
+
set -eu
|
|
189
|
+
node "$PROVER" --publish="$VERDICT" --prover-exit="$PROVER_EXIT" --sha="$EVIDENCE_SHA" --context="${EVIDENCE_CONTEXT:-}"
|