@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
|
@@ -15,8 +15,15 @@
|
|
|
15
15
|
* postinstall, and a repair that edits a host-owned workflow there and gets it
|
|
16
16
|
* wrong is silent. `retireUnmodified` can only delete, and nothing upgrades a
|
|
17
17
|
* create-only file in place. The prover the workflow runs is copy-overwrite, so
|
|
18
|
-
* it is already current; only the workflow's own trigger, token, wiring
|
|
19
|
-
* checkout are stale.
|
|
18
|
+
* it is already current; only the workflow's own trigger, token, wiring,
|
|
19
|
+
* checkout and steps are stale.
|
|
20
|
+
*
|
|
21
|
+
* A copy can also run and judge correctly and still show nobody its verdict:
|
|
22
|
+
* one seeded before CodySwannGT/lisa#4630 ends its job on the prover's exit
|
|
23
|
+
* code, and GitHub attaches that job's check run to the default branch's
|
|
24
|
+
* latest commit rather than to the pull request head it judged. Such a copy is
|
|
25
|
+
* reported with the two steps that save the verdict and publish it on the
|
|
26
|
+
* head, and the `checks: write` grant that lets them.
|
|
20
27
|
*
|
|
21
28
|
* Every filesystem answer is three-valued — present, absent, or
|
|
22
29
|
* undeterminable — and the last one fails rather than passing quietly: a
|
|
@@ -26,6 +33,7 @@
|
|
|
26
33
|
import { readFile, stat } from "node:fs/promises";
|
|
27
34
|
import * as path from "node:path";
|
|
28
35
|
import { CHECK_RUN_HEAD, CHECK_RUN_NAME, isCurrentEvidenceSeed, readEvidenceSeed, THIRD_PARTY_EVIDENCE_WORKFLOW, } from "../core/third-party-evidence-seed.js";
|
|
36
|
+
import { EVIDENCE_STEPS_LINES } from "./doctor-third-party-evidence-steps.js";
|
|
29
37
|
/** Name of the check as doctor reports it. */
|
|
30
38
|
export const THIRD_PARTY_EVIDENCE_SEED_CHECK_NAME = "Third-party review evidence wakes on check runs?";
|
|
31
39
|
/** Where the current seed ships inside the package, for a full comparison. */
|
|
@@ -50,20 +58,25 @@ export const CHECK_RUN_TRIGGER_LINES = [
|
|
|
50
58
|
" check_run:",
|
|
51
59
|
" types: [completed]",
|
|
52
60
|
];
|
|
53
|
-
/**
|
|
54
|
-
|
|
61
|
+
/**
|
|
62
|
+
* The permission line to set under an existing `permissions:` block. `write`
|
|
63
|
+
* includes reading, so it replaces a `checks: read` line rather than joining it.
|
|
64
|
+
*/
|
|
65
|
+
export const CHECKS_WRITE_LINE = " checks: write";
|
|
55
66
|
/** The whole block, for a copy missing any scope the prover reads with. */
|
|
56
67
|
export const PERMISSIONS_BLOCK_LINES = [
|
|
57
68
|
"permissions:",
|
|
58
69
|
" contents: read",
|
|
59
70
|
" statuses: read",
|
|
60
|
-
|
|
71
|
+
CHECKS_WRITE_LINE,
|
|
61
72
|
" pull-requests: read",
|
|
62
73
|
];
|
|
74
|
+
export { EVIDENCE_STEPS_LINES };
|
|
63
75
|
/** The values that carry the run's commit and reviewer to the prover. */
|
|
64
76
|
export const RUN_IDENTITY_LINES = [
|
|
65
|
-
|
|
66
|
-
`
|
|
77
|
+
" env:",
|
|
78
|
+
` EVIDENCE_SHA: ${SHA_EXPRESSION}`,
|
|
79
|
+
` EVIDENCE_CONTEXT: ${CONTEXT_EXPRESSION}`,
|
|
67
80
|
];
|
|
68
81
|
/** The concurrency key that keeps one run from cancelling another's verdict. */
|
|
69
82
|
export const CONCURRENCY_GROUP_LINE = ` group: third-party-review-evidence-\${{ github.event_name }}-${SHA_EXPRESSION}-${CONTEXT_EXPRESSION}`;
|
|
@@ -98,11 +111,7 @@ function gapsOf(reading) {
|
|
|
98
111
|
: [
|
|
99
112
|
"it has no `check_run` trigger, so it never starts when the reviewer reports through a check run",
|
|
100
113
|
]),
|
|
101
|
-
...(reading
|
|
102
|
-
? []
|
|
103
|
-
: [
|
|
104
|
-
"it does not grant `checks: read`, so its prover cannot read the reviewer's check run",
|
|
105
|
-
]),
|
|
114
|
+
...checksGapOf(reading),
|
|
106
115
|
...(reading.readsStatusesAndPullRequests
|
|
107
116
|
? []
|
|
108
117
|
: [
|
|
@@ -123,23 +132,51 @@ function gapsOf(reading) {
|
|
|
123
132
|
"it checks out the head of the event that woke it, so a pull request's own code — a fork's included — runs with this repository's token and cache scope",
|
|
124
133
|
]
|
|
125
134
|
: []),
|
|
135
|
+
...(reading.publishesVerdict
|
|
136
|
+
? []
|
|
137
|
+
: [
|
|
138
|
+
"it never publishes its verdict on the pull request head it judged, so the verdict lands only on the default branch's latest commit, where no pull request shows it",
|
|
139
|
+
]),
|
|
126
140
|
];
|
|
127
141
|
}
|
|
142
|
+
/**
|
|
143
|
+
* The gap in what the token may do with check runs, if any.
|
|
144
|
+
* @param reading - What the copy does
|
|
145
|
+
* @returns One clause, or none
|
|
146
|
+
*/
|
|
147
|
+
function checksGapOf(reading) {
|
|
148
|
+
if (!reading.readsChecks) {
|
|
149
|
+
return [
|
|
150
|
+
"it does not grant `checks: write`, so its prover cannot read the reviewer's check run, and its verdict cannot be published on the pull request head",
|
|
151
|
+
];
|
|
152
|
+
}
|
|
153
|
+
return reading.writesChecks
|
|
154
|
+
? []
|
|
155
|
+
: [
|
|
156
|
+
"it grants `checks: read` but not `checks: write`, so its verdict cannot be published on the pull request head it judged",
|
|
157
|
+
];
|
|
158
|
+
}
|
|
128
159
|
/**
|
|
129
160
|
* The exact lines that grant what the prover reads with.
|
|
130
161
|
*
|
|
131
162
|
* Only a copy whose block already reads statuses and pull requests gets the one
|
|
132
|
-
* `checks:
|
|
133
|
-
* only `checks:
|
|
134
|
-
* no longer find the pull request it is
|
|
163
|
+
* `checks: write` line, in place of any `checks: read`. Every other copy gets
|
|
164
|
+
* the whole block: a block holding only `checks: write` sets every other scope
|
|
165
|
+
* to none, and the prover could then no longer find the pull request it is
|
|
166
|
+
* judging.
|
|
135
167
|
* @param reading - What the copy does
|
|
136
168
|
* @returns The permission remedy, or nothing when the grants are there
|
|
137
169
|
*/
|
|
138
170
|
function permissionRemedyOf(reading) {
|
|
139
|
-
if (reading.
|
|
171
|
+
if (reading.writesChecks && reading.readsStatusesAndPullRequests)
|
|
140
172
|
return [];
|
|
141
173
|
if (reading.declaresPermissions && reading.readsStatusesAndPullRequests) {
|
|
142
|
-
return [
|
|
174
|
+
return [
|
|
175
|
+
reading.readsChecks
|
|
176
|
+
? "Add under `permissions:`, in place of `checks: read`:"
|
|
177
|
+
: "Add under `permissions:`:",
|
|
178
|
+
CHECKS_WRITE_LINE,
|
|
179
|
+
];
|
|
143
180
|
}
|
|
144
181
|
return [
|
|
145
182
|
reading.declaresPermissions
|
|
@@ -159,10 +196,12 @@ function remedyOf(reading) {
|
|
|
159
196
|
? []
|
|
160
197
|
: ["Add under `on:`:", ...CHECK_RUN_TRIGGER_LINES]),
|
|
161
198
|
...permissionRemedyOf(reading),
|
|
162
|
-
|
|
199
|
+
// The shipped steps read the run's identity from the job, so a copy
|
|
200
|
+
// taking them needs these values there even if its old step had them.
|
|
201
|
+
...(reading.readsRunIdentity && reading.publishesVerdict
|
|
163
202
|
? []
|
|
164
203
|
: [
|
|
165
|
-
"Set these values in the prover step's `env:`:",
|
|
204
|
+
"Set these values in the evidence job's own `env:` (beside `runs-on:`), where both the prover and publish steps read them, and remove them from any step's `env:`:",
|
|
166
205
|
...RUN_IDENTITY_LINES,
|
|
167
206
|
]),
|
|
168
207
|
...(reading.keysConcurrencyPerRun
|
|
@@ -173,6 +212,12 @@ function remedyOf(reading) {
|
|
|
173
212
|
"Delete the `ref:` line under the `actions/checkout` step. The default branch is then checked out, and the commit to judge still arrives as --sha.",
|
|
174
213
|
]
|
|
175
214
|
: []),
|
|
215
|
+
...(reading.publishesVerdict
|
|
216
|
+
? []
|
|
217
|
+
: [
|
|
218
|
+
"Replace the prover step with these two steps: the first saves the verdict, the second publishes it on the head it judged.",
|
|
219
|
+
...EVIDENCE_STEPS_LINES,
|
|
220
|
+
]),
|
|
176
221
|
];
|
|
177
222
|
}
|
|
178
223
|
/**
|
|
@@ -182,7 +227,7 @@ function remedyOf(reading) {
|
|
|
182
227
|
*/
|
|
183
228
|
export function describeStaleSeed(reading) {
|
|
184
229
|
return [
|
|
185
|
-
`${THIRD_PARTY_EVIDENCE_WORKFLOW} is not ready for a reviewer that reports through a check run: ${gapsOf(reading).join("; and ")}. ` +
|
|
230
|
+
`${THIRD_PARTY_EVIDENCE_WORKFLOW} is not ready for a reviewer that reports through a check run, or for its verdict to reach the pull request: ${gapsOf(reading).join("; and ")}. ` +
|
|
186
231
|
"Lisa seeded this file once and will not rewrite it; the prover it runs is already current.",
|
|
187
232
|
...remedyOf(reading),
|
|
188
233
|
`The current seed, ${SHIPPED_SEED} in the @codyswann/lisa package, is the full reference.`,
|
|
@@ -210,7 +255,7 @@ export async function checkThirdPartyEvidenceSeed(targetPath) {
|
|
|
210
255
|
}
|
|
211
256
|
const reading = readEvidenceSeed(workflowText);
|
|
212
257
|
if (isCurrentEvidenceSeed(reading)) {
|
|
213
|
-
return ok(`${THIRD_PARTY_EVIDENCE_WORKFLOW} wakes on a completed check run, can read it,
|
|
258
|
+
return ok(`${THIRD_PARTY_EVIDENCE_WORKFLOW} wakes on a completed check run, can read it, judges it from the default branch, and publishes its verdict on the head it judged`);
|
|
214
259
|
}
|
|
215
260
|
return {
|
|
216
261
|
name: THIRD_PARTY_EVIDENCE_SEED_CHECK_NAME,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor-third-party-evidence-seed.js","sourceRoot":"","sources":["../../src/cli/doctor-third-party-evidence-seed.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"doctor-third-party-evidence-seed.js","sourceRoot":"","sources":["../../src/cli/doctor-third-party-evidence-seed.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EACL,cAAc,EACd,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,6BAA6B,GAE9B,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAE9E,8CAA8C;AAC9C,MAAM,CAAC,MAAM,oCAAoC,GAC/C,kDAAkD,CAAC;AAErD,8EAA8E;AAC9E,MAAM,YAAY,GAChB,0EAA0E,CAAC;AAE7E;;;;;;;;;GASG;AACH,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC;AAEpD,8DAA8D;AAC9D,MAAM,cAAc,GAAG,QAAQ,cAAc,uCAAuC,CAAC;AAErF,gEAAgE;AAChE,MAAM,kBAAkB,GAAG,QAAQ,cAAc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AE,oCAAoC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AAC9E,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The two steps a seeded third-party review evidence workflow ends with, as
|
|
3
|
+
* the shipped seed has them, for `lisa doctor` to print to a copy that lacks
|
|
4
|
+
* them.
|
|
5
|
+
*
|
|
6
|
+
* A copy seeded before CodySwannGT/lisa#4630 ends its job on the prover's
|
|
7
|
+
* exit code, and its verdict is the job's own conclusion — which GitHub
|
|
8
|
+
* attaches to the default branch's latest commit, never to the pull request
|
|
9
|
+
* head it judged. The first step here saves the verdict and exit code instead,
|
|
10
|
+
* and the second publishes the verdict as a check run on that head.
|
|
11
|
+
*
|
|
12
|
+
* The lines live apart from the check that prints them only because they are
|
|
13
|
+
* long. They must stay the seed's own, byte for byte: the doctor's tests read
|
|
14
|
+
* the shipped seed and require these lines in it, in this order.
|
|
15
|
+
* @module cli/doctor-third-party-evidence-steps
|
|
16
|
+
*/
|
|
17
|
+
/** The prover step and the publish step, one line per entry. */
|
|
18
|
+
export declare const EVIDENCE_STEPS_LINES: readonly [" # The verdict is saved, with the prover's exit code, rather than ending", " # the job: the next step publishes it on the head it judged.", " - name: 🕵️ Prove review evidence, or a posted substitute, at this head", " id: prove", " env:", " GH_TOKEN: ${{ github.token }}", " GITHUB_REPOSITORY: ${{ github.repository }}", " run: |", " set -eu", " script=scripts/check-third-party-review-evidence.mjs", " if [ ! -f \"$script\" ]; then", " 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.\"", " exit 1", " fi", " verdict=\"$RUNNER_TEMP/third-party-review-verdict.json\"", " status=0", " if [ -n \"${EVIDENCE_CONTEXT:-}\" ]; then", " node \"$script\" --sha=\"$EVIDENCE_SHA\" --context=\"$EVIDENCE_CONTEXT\" --json >\"$verdict\" || status=$?", " else", " node \"$script\" --sha=\"$EVIDENCE_SHA\" --json >\"$verdict\" || status=$?", " fi", " echo \"prover=$script\" >>\"$GITHUB_OUTPUT\"", " echo \"verdict=$verdict\" >>\"$GITHUB_OUTPUT\"", " echo \"exit_code=$status\" >>\"$GITHUB_OUTPUT\"", "", " # Publishes the saved verdict as a check run on EVIDENCE_SHA, or nothing", " # — saying why — when there is no pull request head to show it on or the", " # run cannot change the answer. Not `continue-on-error`: a refused or", " # impossible publish fails the job and prints GitHub's refusal, and so", " # does a prover that crashed or saved no verdict.", " - name: 🕵️ Publish the verdict on the head it judged", " env:", " GH_TOKEN: ${{ github.token }}", " GITHUB_REPOSITORY: ${{ github.repository }}", " PROVER: ${{ steps.prove.outputs.prover }}", " VERDICT: ${{ steps.prove.outputs.verdict }}", " PROVER_EXIT: ${{ steps.prove.outputs.exit_code }}", " run: |", " set -eu", " node \"$PROVER\" --publish=\"$VERDICT\" --prover-exit=\"$PROVER_EXIT\" --sha=\"$EVIDENCE_SHA\" --context=\"${EVIDENCE_CONTEXT:-}\""];
|
|
19
|
+
//# sourceMappingURL=doctor-third-party-evidence-steps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doctor-third-party-evidence-steps.d.ts","sourceRoot":"","sources":["../../src/cli/doctor-third-party-evidence-steps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,gEAAgE;AAChE,eAAO,MAAM,oBAAoB,qzEAyCvB,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The two steps a seeded third-party review evidence workflow ends with, as
|
|
3
|
+
* the shipped seed has them, for `lisa doctor` to print to a copy that lacks
|
|
4
|
+
* them.
|
|
5
|
+
*
|
|
6
|
+
* A copy seeded before CodySwannGT/lisa#4630 ends its job on the prover's
|
|
7
|
+
* exit code, and its verdict is the job's own conclusion — which GitHub
|
|
8
|
+
* attaches to the default branch's latest commit, never to the pull request
|
|
9
|
+
* head it judged. The first step here saves the verdict and exit code instead,
|
|
10
|
+
* and the second publishes the verdict as a check run on that head.
|
|
11
|
+
*
|
|
12
|
+
* The lines live apart from the check that prints them only because they are
|
|
13
|
+
* long. They must stay the seed's own, byte for byte: the doctor's tests read
|
|
14
|
+
* the shipped seed and require these lines in it, in this order.
|
|
15
|
+
* @module cli/doctor-third-party-evidence-steps
|
|
16
|
+
*/
|
|
17
|
+
/** The prover step and the publish step, one line per entry. */
|
|
18
|
+
export const EVIDENCE_STEPS_LINES = [
|
|
19
|
+
" # The verdict is saved, with the prover's exit code, rather than ending",
|
|
20
|
+
" # the job: the next step publishes it on the head it judged.",
|
|
21
|
+
" - name: 🕵️ Prove review evidence, or a posted substitute, at this head",
|
|
22
|
+
" id: prove",
|
|
23
|
+
" env:",
|
|
24
|
+
" GH_TOKEN: ${{ github.token }}",
|
|
25
|
+
" GITHUB_REPOSITORY: ${{ github.repository }}",
|
|
26
|
+
" run: |",
|
|
27
|
+
" set -eu",
|
|
28
|
+
" script=scripts/check-third-party-review-evidence.mjs",
|
|
29
|
+
' if [ ! -f "$script" ]; then',
|
|
30
|
+
' 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."',
|
|
31
|
+
" exit 1",
|
|
32
|
+
" fi",
|
|
33
|
+
' verdict="$RUNNER_TEMP/third-party-review-verdict.json"',
|
|
34
|
+
" status=0",
|
|
35
|
+
' if [ -n "${EVIDENCE_CONTEXT:-}" ]; then',
|
|
36
|
+
' node "$script" --sha="$EVIDENCE_SHA" --context="$EVIDENCE_CONTEXT" --json >"$verdict" || status=$?',
|
|
37
|
+
" else",
|
|
38
|
+
' node "$script" --sha="$EVIDENCE_SHA" --json >"$verdict" || status=$?',
|
|
39
|
+
" fi",
|
|
40
|
+
' echo "prover=$script" >>"$GITHUB_OUTPUT"',
|
|
41
|
+
' echo "verdict=$verdict" >>"$GITHUB_OUTPUT"',
|
|
42
|
+
' echo "exit_code=$status" >>"$GITHUB_OUTPUT"',
|
|
43
|
+
"",
|
|
44
|
+
" # Publishes the saved verdict as a check run on EVIDENCE_SHA, or nothing",
|
|
45
|
+
" # — saying why — when there is no pull request head to show it on or the",
|
|
46
|
+
" # run cannot change the answer. Not `continue-on-error`: a refused or",
|
|
47
|
+
" # impossible publish fails the job and prints GitHub's refusal, and so",
|
|
48
|
+
" # does a prover that crashed or saved no verdict.",
|
|
49
|
+
" - name: 🕵️ Publish the verdict on the head it judged",
|
|
50
|
+
" env:",
|
|
51
|
+
" GH_TOKEN: ${{ github.token }}",
|
|
52
|
+
" GITHUB_REPOSITORY: ${{ github.repository }}",
|
|
53
|
+
" PROVER: ${{ steps.prove.outputs.prover }}",
|
|
54
|
+
" VERDICT: ${{ steps.prove.outputs.verdict }}",
|
|
55
|
+
" PROVER_EXIT: ${{ steps.prove.outputs.exit_code }}",
|
|
56
|
+
" run: |",
|
|
57
|
+
" set -eu",
|
|
58
|
+
' node "$PROVER" --publish="$VERDICT" --prover-exit="$PROVER_EXIT" --sha="$EVIDENCE_SHA" --context="${EVIDENCE_CONTEXT:-}"',
|
|
59
|
+
];
|
|
60
|
+
//# sourceMappingURL=doctor-third-party-evidence-steps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doctor-third-party-evidence-steps.js","sourceRoot":"","sources":["../../src/cli/doctor-third-party-evidence-steps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,gEAAgE;AAChE,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,+EAA+E;IAC/E,oEAAoE;IACpE,+EAA+E;IAC/E,mBAAmB;IACnB,cAAc;IACd,yCAAyC;IACzC,uDAAuD;IACvD,gBAAgB;IAChB,mBAAmB;IACnB,gEAAgE;IAChE,uCAAuC;IACvC,oSAAoS;IACpS,oBAAoB;IACpB,cAAc;IACd,kEAAkE;IAClE,oBAAoB;IACpB,mDAAmD;IACnD,gHAAgH;IAChH,gBAAgB;IAChB,kFAAkF;IAClF,cAAc;IACd,oDAAoD;IACpD,sDAAsD;IACtD,uDAAuD;IACvD,EAAE;IACF,gFAAgF;IAChF,gFAAgF;IAChF,6EAA6E;IAC7E,8EAA8E;IAC9E,yDAAyD;IACzD,6DAA6D;IAC7D,cAAc;IACd,yCAAyC;IACzC,uDAAuD;IACvD,qDAAqD;IACrD,uDAAuD;IACvD,6DAA6D;IAC7D,gBAAgB;IAChB,mBAAmB;IACnB,oIAAoI;CAC5H,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lisa-owned-hash-ledger.d.ts","sourceRoot":"","sources":["../../src/core/lisa-owned-hash-ledger.ts"],"names":[],"mappings":"AACA,6EAA6E;AAE7E;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAC3C,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"lisa-owned-hash-ledger.d.ts","sourceRoot":"","sources":["../../src/core/lisa-owned-hash-ledger.ts"],"names":[],"mappings":"AACA,6EAA6E;AAE7E;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAC3C,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CA6zEjC,CAAC;AAEH;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,+BAA+B,EAAE,QAAQ,CACpD,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAguEjC,CAAC"}
|
|
@@ -416,7 +416,9 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
|
|
|
416
416
|
]),
|
|
417
417
|
"scripts/check-third-party-review-evidence.mjs": Object.freeze([
|
|
418
418
|
"225e69c41b56f2eb82cdc1a16da26770090c3ccac85fe0dad278938d8ae4f769",
|
|
419
|
+
"2f18042de7e7f2cd8af350e65ff2092619b7e076ceadc9e021520c215513caec",
|
|
419
420
|
"36ae9989abfc0a2bf19d0f035e7e5ce880d157c36e9c515378ae88b696cf86d1",
|
|
421
|
+
"3fbf12b8bfa36e06cc954d4b4ca953dcae43ed0ae7fb9d4c7e69af344c8ef5bd",
|
|
420
422
|
"404b5b002d0d639fd862e19c7e136b708a81409df0c14f9f808a6400b39643f2",
|
|
421
423
|
"444fdab01527fda3ce2bb4f5177bac2079cded0ba8f0166d71fda7ec2e8dc7b3",
|
|
422
424
|
"61c6896f81d4ceec1f292cd80527a62dea3d985477a26d937d6359d129755713",
|
|
@@ -424,11 +426,15 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
|
|
|
424
426
|
"72e90d2e5fc0a134313ffa63e67ac6adb360a7318659e75433d7ed1a8c1bdfee",
|
|
425
427
|
"73897b268225395433f2ea15191b86c2df7588ccc57b0d4701e47b4fc917612a",
|
|
426
428
|
"7654d9f809815ca178d1a81f2757ba1cda06fbc2f15a89ea538625c5a38b65c9",
|
|
429
|
+
"7cb1ff685a7b92624f4e91035d6ae12aea818b8e2ce28f0e26d67bcddb3a2d1b",
|
|
427
430
|
"95f91f2a74ed4e523d064d5d374eadd1c1114f03a3a4fa41532c9b0fd32089de",
|
|
428
431
|
"a30f25440b418f81d21f4afc8c7eb637a97ff518f330af6532a8dc5beb57ccc7",
|
|
429
432
|
"abe7221e1cfcee930b4fa3788eccb8a25ee4d499c3b90dc568f3862796c94de0",
|
|
433
|
+
"b6f0bdbbe4ad625f080d78a72ff7db62286c33200b3ec93b8d9ff68966398054",
|
|
430
434
|
"d00a4c3225efb5c9385a4d5290baf28d39bff08b3a6c40563af777dcb7ec0d99",
|
|
435
|
+
"de8f6709dc6635be65625b7f7eb679504a4c1c2bc73bbb29f462bca95f3db6fc",
|
|
431
436
|
"f74f4fd1e6d44511a358b9aada80600bb6be62228eb65f67dfb20284ec9b35bd",
|
|
437
|
+
"fb1b7acc945e7a6a6b4f4a2377ec6ce3fb3538afc3135943770bd96502a0816a",
|
|
432
438
|
"fda72314a6f74394b8d54e7fcf0bd4957d8ad08c05c07791dddc591ff1e4d28f",
|
|
433
439
|
]),
|
|
434
440
|
"scripts/check-threshold-ratchet.mjs": Object.freeze([
|
|
@@ -2772,7 +2778,9 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
|
|
|
2772
2778
|
]),
|
|
2773
2779
|
"scripts/check-third-party-review-evidence.mjs": Object.freeze([
|
|
2774
2780
|
"225e69c41b56f2eb82cdc1a16da26770090c3ccac85fe0dad278938d8ae4f769",
|
|
2781
|
+
"2f18042de7e7f2cd8af350e65ff2092619b7e076ceadc9e021520c215513caec",
|
|
2775
2782
|
"36ae9989abfc0a2bf19d0f035e7e5ce880d157c36e9c515378ae88b696cf86d1",
|
|
2783
|
+
"3fbf12b8bfa36e06cc954d4b4ca953dcae43ed0ae7fb9d4c7e69af344c8ef5bd",
|
|
2776
2784
|
"404b5b002d0d639fd862e19c7e136b708a81409df0c14f9f808a6400b39643f2",
|
|
2777
2785
|
"444fdab01527fda3ce2bb4f5177bac2079cded0ba8f0166d71fda7ec2e8dc7b3",
|
|
2778
2786
|
"61c6896f81d4ceec1f292cd80527a62dea3d985477a26d937d6359d129755713",
|
|
@@ -2780,11 +2788,15 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
|
|
|
2780
2788
|
"72e90d2e5fc0a134313ffa63e67ac6adb360a7318659e75433d7ed1a8c1bdfee",
|
|
2781
2789
|
"73897b268225395433f2ea15191b86c2df7588ccc57b0d4701e47b4fc917612a",
|
|
2782
2790
|
"7654d9f809815ca178d1a81f2757ba1cda06fbc2f15a89ea538625c5a38b65c9",
|
|
2791
|
+
"7cb1ff685a7b92624f4e91035d6ae12aea818b8e2ce28f0e26d67bcddb3a2d1b",
|
|
2783
2792
|
"95f91f2a74ed4e523d064d5d374eadd1c1114f03a3a4fa41532c9b0fd32089de",
|
|
2784
2793
|
"a30f25440b418f81d21f4afc8c7eb637a97ff518f330af6532a8dc5beb57ccc7",
|
|
2785
2794
|
"abe7221e1cfcee930b4fa3788eccb8a25ee4d499c3b90dc568f3862796c94de0",
|
|
2795
|
+
"b6f0bdbbe4ad625f080d78a72ff7db62286c33200b3ec93b8d9ff68966398054",
|
|
2786
2796
|
"d00a4c3225efb5c9385a4d5290baf28d39bff08b3a6c40563af777dcb7ec0d99",
|
|
2797
|
+
"de8f6709dc6635be65625b7f7eb679504a4c1c2bc73bbb29f462bca95f3db6fc",
|
|
2787
2798
|
"f74f4fd1e6d44511a358b9aada80600bb6be62228eb65f67dfb20284ec9b35bd",
|
|
2799
|
+
"fb1b7acc945e7a6a6b4f4a2377ec6ce3fb3538afc3135943770bd96502a0816a",
|
|
2788
2800
|
"fda72314a6f74394b8d54e7fcf0bd4957d8ad08c05c07791dddc591ff1e4d28f",
|
|
2789
2801
|
]),
|
|
2790
2802
|
"scripts/check-threshold-ratchet.mjs": Object.freeze([
|