@codyswann/lisa 4.99.4 → 4.99.5
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/lib/completion-proof-github.mjs +155 -3
- package/all/copy-overwrite/scripts/lib/completion-proof-publisher.mjs +153 -18
- package/all/copy-overwrite/scripts/lisa-work-item.mjs +46 -2
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +4 -3
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +20 -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 +41 -24
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/opencode/relative-imports.d.ts +59 -0
- package/dist/opencode/relative-imports.d.ts.map +1 -0
- package/dist/opencode/relative-imports.js +119 -0
- package/dist/opencode/relative-imports.js.map +1 -0
- package/dist/opencode/shared-scripts-cleanup.d.ts +43 -0
- package/dist/opencode/shared-scripts-cleanup.d.ts.map +1 -0
- package/dist/opencode/shared-scripts-cleanup.js +94 -0
- package/dist/opencode/shared-scripts-cleanup.js.map +1 -0
- package/dist/opencode/shared-scripts-emitter.d.ts +18 -0
- package/dist/opencode/shared-scripts-emitter.d.ts.map +1 -0
- package/dist/opencode/shared-scripts-emitter.js +173 -0
- package/dist/opencode/shared-scripts-emitter.js.map +1 -0
- package/dist/opencode/skills-installer.d.ts +4 -1
- package/dist/opencode/skills-installer.d.ts.map +1 -1
- package/dist/opencode/skills-installer.js +19 -3
- package/dist/opencode/skills-installer.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-github-evidence/SKILL.md +19 -9
- package/plugins/lisa/.codex-plugin/skills/lisa-github-journey/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/SKILL.md +18 -5
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/agents/openai.yaml +2 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/SKILL.md +8 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-evidence/SKILL.md +3 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-journey/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-evidence/SKILL.md +4 -4
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-evidence/references/completion-authorization.md +32 -4
- package/plugins/lisa/.codex-plugin/skills/lisa-verify/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-verify-prd/SKILL.md +3 -3
- package/plugins/lisa/agents/github-agent.md +1 -1
- package/plugins/lisa/skills/lisa-github-evidence/SKILL.md +19 -9
- package/plugins/lisa/skills/lisa-github-evidence/agents/openai.yaml +2 -2
- package/plugins/lisa/skills/lisa-github-journey/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-jira-evidence/SKILL.md +17 -4
- package/plugins/lisa/skills/lisa-jira-evidence/agents/openai.yaml +2 -2
- package/plugins/lisa/skills/lisa-jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa/skills/lisa-jira-journey/SKILL.md +8 -0
- package/plugins/lisa/skills/lisa-jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa/skills/lisa-linear-evidence/SKILL.md +3 -3
- package/plugins/lisa/skills/lisa-linear-evidence/agents/openai.yaml +2 -2
- package/plugins/lisa/skills/lisa-linear-journey/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-tracker-evidence/SKILL.md +4 -4
- package/plugins/lisa/skills/lisa-tracker-evidence/references/completion-authorization.md +32 -4
- package/plugins/lisa/skills/lisa-verify/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-verify-prd/SKILL.md +3 -3
- package/plugins/lisa-agy/agents/github-agent.md +1 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-github-evidence/SKILL.md +19 -9
- package/plugins/lisa-agy/skills/lisa-github-journey/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-agy/skills/lisa-jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-agy/skills/lisa-jira-journey/SKILL.md +8 -0
- package/plugins/lisa-agy/skills/lisa-jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-agy/skills/lisa-linear-evidence/SKILL.md +3 -3
- package/plugins/lisa-agy/skills/lisa-linear-journey/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-tracker-evidence/SKILL.md +4 -4
- package/plugins/lisa-agy/skills/lisa-tracker-evidence/references/completion-authorization.md +32 -4
- package/plugins/lisa-agy/skills/lisa-verify/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-verify-prd/SKILL.md +3 -3
- 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/github-agent.agent.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-github-evidence/SKILL.md +19 -9
- package/plugins/lisa-copilot/skills/lisa-github-journey/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-copilot/skills/lisa-jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-copilot/skills/lisa-jira-journey/SKILL.md +8 -0
- package/plugins/lisa-copilot/skills/lisa-jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-copilot/skills/lisa-linear-evidence/SKILL.md +3 -3
- package/plugins/lisa-copilot/skills/lisa-linear-journey/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-tracker-evidence/SKILL.md +4 -4
- package/plugins/lisa-copilot/skills/lisa-tracker-evidence/references/completion-authorization.md +32 -4
- package/plugins/lisa-copilot/skills/lisa-verify/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-verify-prd/SKILL.md +3 -3
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/agents/github-agent.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-github-evidence/SKILL.md +19 -9
- package/plugins/lisa-cursor/skills/lisa-github-journey/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-cursor/skills/lisa-jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-cursor/skills/lisa-jira-journey/SKILL.md +8 -0
- package/plugins/lisa-cursor/skills/lisa-jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-cursor/skills/lisa-linear-evidence/SKILL.md +3 -3
- package/plugins/lisa-cursor/skills/lisa-linear-journey/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-tracker-evidence/SKILL.md +4 -4
- package/plugins/lisa-cursor/skills/lisa-tracker-evidence/references/completion-authorization.md +32 -4
- package/plugins/lisa-cursor/skills/lisa-verify/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-verify-prd/SKILL.md +3 -3
- 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/github-agent.md +1 -1
- package/plugins/lisa-devin/skills/lisa-github-evidence/SKILL.md +19 -9
- package/plugins/lisa-devin/skills/lisa-github-journey/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-devin/skills/lisa-jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-devin/skills/lisa-jira-journey/SKILL.md +8 -0
- package/plugins/lisa-devin/skills/lisa-jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-devin/skills/lisa-linear-evidence/SKILL.md +3 -3
- package/plugins/lisa-devin/skills/lisa-linear-journey/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-tracker-evidence/SKILL.md +4 -4
- package/plugins/lisa-devin/skills/lisa-tracker-evidence/references/completion-authorization.md +32 -4
- package/plugins/lisa-devin/skills/lisa-verify/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-verify-prd/SKILL.md +3 -3
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/SKILL.md +18 -5
- package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/agents/openai.yaml +2 -2
- package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/SKILL.md +8 -0
- package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-expo/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-expo/skills/jira-evidence/agents/openai.yaml +2 -2
- package/plugins/lisa-expo/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-expo/skills/jira-journey/SKILL.md +8 -0
- package/plugins/lisa-expo/skills/jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-agy/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-expo-agy/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-expo-agy/skills/jira-journey/SKILL.md +8 -0
- package/plugins/lisa-expo-agy/skills/jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-expo-copilot/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-expo-copilot/skills/jira-journey/SKILL.md +8 -0
- package/plugins/lisa-expo-copilot/skills/jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-expo-cursor/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-expo-cursor/skills/jira-journey/SKILL.md +8 -0
- package/plugins/lisa-expo-cursor/skills/jira-journey/scripts/generate-templates.py +32 -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-expo-devin/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-expo-devin/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-expo-devin/skills/jira-journey/SKILL.md +8 -0
- package/plugins/lisa-expo-devin/skills/jira-journey/scripts/generate-templates.py +32 -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/.codex-plugin/skills/jira-evidence/SKILL.md +18 -5
- package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/agents/openai.yaml +2 -2
- package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-rails/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-rails/skills/jira-evidence/agents/openai.yaml +2 -2
- package/plugins/lisa-rails/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-agy/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-rails-agy/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-rails-copilot/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-rails-cursor/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- 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-rails-devin/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-rails-devin/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- 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/github-agent.md +1 -1
- package/plugins/src/base/skills/lisa-github-evidence/SKILL.md +19 -9
- package/plugins/src/base/skills/lisa-github-journey/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-jira-evidence/SKILL.md +17 -4
- package/plugins/src/base/skills/lisa-jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/src/base/skills/lisa-jira-journey/SKILL.md +8 -0
- package/plugins/src/base/skills/lisa-jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/src/base/skills/lisa-linear-evidence/SKILL.md +3 -3
- package/plugins/src/base/skills/lisa-linear-journey/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-tracker-evidence/SKILL.md +4 -4
- package/plugins/src/base/skills/lisa-tracker-evidence/references/completion-authorization.md +32 -4
- package/plugins/src/base/skills/lisa-verify/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-verify-prd/SKILL.md +3 -3
- package/plugins/src/expo/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/src/expo/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/src/expo/skills/jira-journey/SKILL.md +8 -0
- package/plugins/src/expo/skills/jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/src/rails/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/src/rails/skills/jira-evidence/scripts/post-evidence.sh +22 -3
|
@@ -11,6 +11,150 @@ import {
|
|
|
11
11
|
} from "./completion-proof-shape.mjs";
|
|
12
12
|
|
|
13
13
|
const READ_ERROR = "read-error";
|
|
14
|
+
const INVALID_CONFIG = "invalid-config";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Lisa's historical evidence release. Always accepted, so every proof published
|
|
18
|
+
* before a project rotated its release keeps validating.
|
|
19
|
+
*/
|
|
20
|
+
export const LEGACY_EVIDENCE_RELEASE = "pr-assets";
|
|
21
|
+
/** GitHub refuses the next asset once a release holds this many. */
|
|
22
|
+
export const EVIDENCE_RELEASE_ASSET_LIMIT = 1000;
|
|
23
|
+
/**
|
|
24
|
+
* Publication refuses at this count, before GitHub's raw HTTP 422, so the
|
|
25
|
+
* operator reads what to change instead of an opaque upload failure (#4692).
|
|
26
|
+
*/
|
|
27
|
+
export const EVIDENCE_RELEASE_NEAR_FULL = 950;
|
|
28
|
+
const MONTH_TOKEN = "{YYYY-MM}";
|
|
29
|
+
const MONTH_PATTERN = "\\d{4}-(?:0[1-9]|1[0-2])";
|
|
30
|
+
const RELEASE_TAG = /^[A-Za-z0-9][A-Za-z0-9._-]{0,99}$/;
|
|
31
|
+
const RELEASE_KEY = "verification.completion.evidenceRelease";
|
|
32
|
+
const ACCEPTED_KEY = "verification.completion.acceptedEvidenceReleases";
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Whether a concrete name is a tag GitHub and git both accept: the character
|
|
36
|
+
* set and length, and none of git's ref-name exclusions that the character set
|
|
37
|
+
* still lets through (`..`, a trailing `.`, a `.lock` ending).
|
|
38
|
+
*/
|
|
39
|
+
function usableTag(name) {
|
|
40
|
+
return (
|
|
41
|
+
RELEASE_TAG.test(name) &&
|
|
42
|
+
!name.includes("..") &&
|
|
43
|
+
!name.endsWith(".") &&
|
|
44
|
+
!name.toLowerCase().endsWith(".lock")
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** One configured release name or `{YYYY-MM}` template, validated as a tag. */
|
|
49
|
+
function releaseTemplate(value, key) {
|
|
50
|
+
const resolved =
|
|
51
|
+
typeof value === "string" ? value.split(MONTH_TOKEN).join("2000-01") : "";
|
|
52
|
+
if (!usableTag(resolved))
|
|
53
|
+
throw new CompletionProofError(
|
|
54
|
+
INVALID_CONFIG,
|
|
55
|
+
`\`${key}\` in .lisa.config.json is ${JSON.stringify(value)}, which is not a usable GitHub release name. Use letters, digits, ".", "_" or "-" (start with a letter or digit, at most 100 characters); the only placeholder allowed is ${MONTH_TOKEN}, for example \`pr-assets-${MONTH_TOKEN}\`.`
|
|
56
|
+
);
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** The release new evidence is written to, as configured (still a template). */
|
|
61
|
+
function configuredTemplate(policy) {
|
|
62
|
+
const value = policy?.evidenceRelease;
|
|
63
|
+
return value === undefined
|
|
64
|
+
? LEGACY_EVIDENCE_RELEASE
|
|
65
|
+
: releaseTemplate(value, RELEASE_KEY);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Every release name or template whose assets validate as completion proof:
|
|
70
|
+
* the legacy release, the configured one, and any listed history.
|
|
71
|
+
* @param {object} [policy] - `verification.completion` from the Lisa config.
|
|
72
|
+
* @returns {string[]} Distinct accepted names and templates, legacy first.
|
|
73
|
+
*/
|
|
74
|
+
export function acceptedEvidenceReleases(policy = {}) {
|
|
75
|
+
const history = policy?.acceptedEvidenceReleases ?? [];
|
|
76
|
+
if (!Array.isArray(history))
|
|
77
|
+
throw new CompletionProofError(
|
|
78
|
+
INVALID_CONFIG,
|
|
79
|
+
`\`${ACCEPTED_KEY}\` in .lisa.config.json must be a list of release names.`
|
|
80
|
+
);
|
|
81
|
+
return [
|
|
82
|
+
...new Set([
|
|
83
|
+
LEGACY_EVIDENCE_RELEASE,
|
|
84
|
+
configuredTemplate(policy),
|
|
85
|
+
...history.map((value, index) =>
|
|
86
|
+
releaseTemplate(value, `${ACCEPTED_KEY}[${index}]`)
|
|
87
|
+
),
|
|
88
|
+
]),
|
|
89
|
+
];
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The exact release tag new evidence is published to.
|
|
94
|
+
* @param {object} [policy] - `verification.completion` from the Lisa config.
|
|
95
|
+
* @param {Date} [now] - Publication time; `{YYYY-MM}` is its UTC year-month.
|
|
96
|
+
* @returns {string} Concrete GitHub release tag.
|
|
97
|
+
*/
|
|
98
|
+
export function resolveEvidenceRelease(policy = {}, now = new Date()) {
|
|
99
|
+
return configuredTemplate(policy)
|
|
100
|
+
.split(MONTH_TOKEN)
|
|
101
|
+
.join(now.toISOString().slice(0, 7));
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* A concrete release named for one run, such as `LISA_EVIDENCE_RELEASE`.
|
|
106
|
+
*
|
|
107
|
+
* Skill scripts resolve the release once and pass it to every step, so the
|
|
108
|
+
* links a template generator writes and the uploads that follow agree even
|
|
109
|
+
* across a month boundary. The name must still be a usable tag and one the
|
|
110
|
+
* validator accepts, or evidence would land where proof cannot be read back.
|
|
111
|
+
* @param {object} [policy] - `verification.completion` from the Lisa config.
|
|
112
|
+
* @param {string} value - The concrete release name supplied for this run.
|
|
113
|
+
* @param {string} [source] - What supplied it, for the refusal message.
|
|
114
|
+
* @returns {string} The accepted concrete tag.
|
|
115
|
+
*/
|
|
116
|
+
export function evidenceReleaseOverride(
|
|
117
|
+
policy,
|
|
118
|
+
value,
|
|
119
|
+
source = "LISA_EVIDENCE_RELEASE"
|
|
120
|
+
) {
|
|
121
|
+
if (
|
|
122
|
+
typeof value !== "string" ||
|
|
123
|
+
!usableTag(value) ||
|
|
124
|
+
!isAcceptedEvidenceRelease(policy, value)
|
|
125
|
+
)
|
|
126
|
+
throw new CompletionProofError(
|
|
127
|
+
INVALID_CONFIG,
|
|
128
|
+
`${source} is ${JSON.stringify(value)}, which is not one of this project's evidence releases (${acceptedEvidenceReleases(policy).join(", ")}). Unset it, or set it to the name \`node scripts/lisa-work-item.mjs evidence-release\` prints.`
|
|
129
|
+
);
|
|
130
|
+
return value;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/** An anchored pattern where only `{YYYY-MM}` varies; all else is literal. */
|
|
134
|
+
function templatePattern(template) {
|
|
135
|
+
const literal = template
|
|
136
|
+
.split(MONTH_TOKEN)
|
|
137
|
+
.map(part => part.replace(/[.*+?^${}()|[\]\\-]/g, "\\$&"));
|
|
138
|
+
return new RegExp(`^${literal.join(MONTH_PATTERN)}$`);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Whether a release tag holds evidence the validator accepts.
|
|
143
|
+
* @param {object} [policy] - `verification.completion` from the Lisa config.
|
|
144
|
+
* @param {string} tag - Release tag read from native asset metadata.
|
|
145
|
+
* @returns {boolean} True for the legacy, configured or listed releases.
|
|
146
|
+
*/
|
|
147
|
+
export function isAcceptedEvidenceRelease(policy, tag) {
|
|
148
|
+
return (
|
|
149
|
+
typeof tag === "string" &&
|
|
150
|
+
acceptedEvidenceReleases(policy).some(template =>
|
|
151
|
+
templatePattern(template).test(tag)
|
|
152
|
+
)
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/** `/<owner>/<repo>/releases/download/<tag>/<asset>`, and nothing nested. */
|
|
157
|
+
const DOWNLOAD_PATH = /^\/([^/]+\/[^/]+)\/releases\/download\/([^/]+)\/[^/]+$/;
|
|
14
158
|
|
|
15
159
|
/** The transport reuses the canonical CLI's deadline and failure boundary. */
|
|
16
160
|
export function githubProofTransport(run, repository, policy = {}) {
|
|
@@ -202,9 +346,17 @@ export function githubProofTransport(run, repository, policy = {}) {
|
|
|
202
346
|
Number.isSafeInteger(metadata.size) &&
|
|
203
347
|
metadata.size > 0 &&
|
|
204
348
|
metadata.size <= max &&
|
|
205
|
-
url.origin === "https://github.com"
|
|
206
|
-
|
|
207
|
-
|
|
349
|
+
url.origin === "https://github.com",
|
|
350
|
+
"The proof attachment is absent, empty, too large or outside GitHub."
|
|
351
|
+
);
|
|
352
|
+
// The release is checked by name against the accepted set, not by a fixed
|
|
353
|
+
// prefix, so a project can rotate its evidence release past GitHub's
|
|
354
|
+
// 1000-asset cap without stranding proof published earlier (#4692).
|
|
355
|
+
const download = DOWNLOAD_PATH.exec(url.pathname);
|
|
356
|
+
requireProof(
|
|
357
|
+
download?.[1] === repository &&
|
|
358
|
+
isAcceptedEvidenceRelease(policy, download[2]),
|
|
359
|
+
`The proof attachment is outside the implementation repository's accepted evidence releases (${acceptedEvidenceReleases(policy).join(", ")}).`
|
|
208
360
|
);
|
|
209
361
|
const bytes = call(
|
|
210
362
|
[
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
CompletionProofError,
|
|
10
10
|
PROOF_KIND,
|
|
11
11
|
PROOF_MARKER,
|
|
12
|
+
MAX_NATIVE_JSON_BYTES,
|
|
12
13
|
MAX_RECORD_BYTES,
|
|
13
14
|
sha256,
|
|
14
15
|
primarySpecProjection,
|
|
@@ -17,11 +18,138 @@ import {
|
|
|
17
18
|
parseLocator,
|
|
18
19
|
isId,
|
|
19
20
|
} from "./completion-proof-shape.mjs";
|
|
20
|
-
import {
|
|
21
|
+
import {
|
|
22
|
+
EVIDENCE_RELEASE_ASSET_LIMIT,
|
|
23
|
+
EVIDENCE_RELEASE_NEAR_FULL,
|
|
24
|
+
githubProofTransport,
|
|
25
|
+
resolveEvidenceRelease,
|
|
26
|
+
} from "./completion-proof-github.mjs";
|
|
21
27
|
import { completionRecordId } from "./completion-proof-reader.mjs";
|
|
22
28
|
import { evaluateAcceptedRecord } from "./completion-authorization.mjs";
|
|
23
29
|
|
|
24
30
|
const READ_ERROR = "read-error";
|
|
31
|
+
const WRITE_ERROR = "write-error";
|
|
32
|
+
|
|
33
|
+
/** The operator-readable refusal for a release GitHub will not take more files in. */
|
|
34
|
+
function fullReleaseMessage(tag, repository, count) {
|
|
35
|
+
const held =
|
|
36
|
+
count === undefined
|
|
37
|
+
? `is at GitHub's ${EVIDENCE_RELEASE_ASSET_LIMIT}-file limit`
|
|
38
|
+
: `holds ${count} of GitHub's ${EVIDENCE_RELEASE_ASSET_LIMIT}-file limit`;
|
|
39
|
+
return `The evidence release \`${tag}\` in ${repository} ${held}, so new proof can't be uploaded. Set \`verification.completion.evidenceRelease\` in .lisa.config.json to a rotating name such as \`pr-assets-{YYYY-MM}\` (older proof keeps validating), or prune old evidence (CodySwannGT/lisa#4720).`;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** The last few lines of a native CLI's diagnostics, bounded for a message. */
|
|
43
|
+
function excerpt(stderr) {
|
|
44
|
+
const text = String(stderr ?? "").trim();
|
|
45
|
+
return text.length > 400 ? `…${text.slice(-400)}` : text;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Read a release by tag in one call; `null` only for GitHub's explicit 404.
|
|
50
|
+
* Any other failure goes through the bounded transport, which reports it as a
|
|
51
|
+
* read error instead of guessing the release is absent and creating it.
|
|
52
|
+
*/
|
|
53
|
+
function readRelease(run, transport, tag) {
|
|
54
|
+
const path = `${transport.root}/releases/tags/${tag}`;
|
|
55
|
+
const result = run("gh", ["api", path], {
|
|
56
|
+
allowFailure: true,
|
|
57
|
+
maxBuffer: MAX_NATIVE_JSON_BYTES,
|
|
58
|
+
});
|
|
59
|
+
if (result.status === 0 && !result.error) {
|
|
60
|
+
try {
|
|
61
|
+
return JSON.parse(result.stdout);
|
|
62
|
+
} catch {
|
|
63
|
+
throw new CompletionProofError(
|
|
64
|
+
READ_ERROR,
|
|
65
|
+
"The evidence release metadata is not complete JSON."
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
if (/HTTP 404/.test(result.stderr ?? "")) return null;
|
|
70
|
+
return transport.json(path);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Whether a failed upload means the release is full. GitHub's 422 also covers
|
|
75
|
+
* an asset name that already exists, so a bare 422 is not enough: the error
|
|
76
|
+
* has to name the limit, or a fresh count has to show the release at it.
|
|
77
|
+
*/
|
|
78
|
+
function uploadHitLimit(stderr, transport, release) {
|
|
79
|
+
if (/asset[^\n]*limit|limit[^\n]*asset/i.test(stderr)) return null;
|
|
80
|
+
if (!/HTTP 422/.test(stderr)) return false;
|
|
81
|
+
const count = releaseAssets(transport, release).length;
|
|
82
|
+
return count + 1 >= EVIDENCE_RELEASE_ASSET_LIMIT ? count : false;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Resolve the configured evidence release, create it when absent, and refuse
|
|
87
|
+
* before uploading when it is nearly full.
|
|
88
|
+
*
|
|
89
|
+
* GitHub caps a release at 1000 assets and then answers every upload with a
|
|
90
|
+
* raw HTTP 422. A single hardcoded `pr-assets` release filled in days on a busy
|
|
91
|
+
* host and stopped every completion (CodySwannGT/lisa#4692); the refusal here
|
|
92
|
+
* tells the operator what to change instead.
|
|
93
|
+
* @param {Function} run - The canonical child-process runner.
|
|
94
|
+
* @param {object} transport - The bounded GitHub proof transport.
|
|
95
|
+
* @param {object} [policy] - `verification.completion` from the Lisa config.
|
|
96
|
+
* @param {object} [options] - Optional resolution inputs.
|
|
97
|
+
* @param {Date} [options.now] - Resolution time for a `{YYYY-MM}` template.
|
|
98
|
+
* @param {string} [options.tag] - An already-validated concrete tag to use.
|
|
99
|
+
* @returns {{tag: string, release: object, count: number}} The usable release.
|
|
100
|
+
*/
|
|
101
|
+
export function ensureEvidenceRelease(run, transport, policy, options = {}) {
|
|
102
|
+
const tag =
|
|
103
|
+
options.tag ?? resolveEvidenceRelease(policy, options.now ?? new Date());
|
|
104
|
+
let release = readRelease(run, transport, tag);
|
|
105
|
+
if (!release) {
|
|
106
|
+
// A concurrent creator may win; the re-read below decides either way.
|
|
107
|
+
const created = run(
|
|
108
|
+
"gh",
|
|
109
|
+
[
|
|
110
|
+
"release",
|
|
111
|
+
"create",
|
|
112
|
+
tag,
|
|
113
|
+
"--repo",
|
|
114
|
+
transport.repository,
|
|
115
|
+
"--title",
|
|
116
|
+
`Lisa evidence ${tag}`,
|
|
117
|
+
"--notes",
|
|
118
|
+
"Evidence storage only — not a product release. Completion-proof and verification evidence assets, managed by Lisa.",
|
|
119
|
+
"--latest=false",
|
|
120
|
+
],
|
|
121
|
+
{ allowFailure: true }
|
|
122
|
+
);
|
|
123
|
+
release = readRelease(run, transport, tag);
|
|
124
|
+
const reason = excerpt(created.stderr);
|
|
125
|
+
requireProof(
|
|
126
|
+
release,
|
|
127
|
+
`The evidence release \`${tag}\` does not exist in ${transport.repository} and could not be created; check that the publisher can create releases there.${reason ? ` GitHub said: ${reason}` : ""}`,
|
|
128
|
+
WRITE_ERROR
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
const assets = releaseAssets(transport, release);
|
|
132
|
+
if (assets.length >= EVIDENCE_RELEASE_NEAR_FULL)
|
|
133
|
+
throw new CompletionProofError(
|
|
134
|
+
WRITE_ERROR,
|
|
135
|
+
fullReleaseMessage(tag, transport.repository, assets.length)
|
|
136
|
+
);
|
|
137
|
+
return { tag, release, count: assets.length };
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/** Every asset on a release, from the complete paginated native listing. */
|
|
141
|
+
function releaseAssets(transport, release) {
|
|
142
|
+
const pages = transport.json(
|
|
143
|
+
`${transport.root}/releases/${release.id}/assets?per_page=100`,
|
|
144
|
+
true
|
|
145
|
+
);
|
|
146
|
+
requireProof(
|
|
147
|
+
pages.every(Array.isArray),
|
|
148
|
+
"The native completion-asset listing is incomplete.",
|
|
149
|
+
READ_ERROR
|
|
150
|
+
);
|
|
151
|
+
return pages.flat();
|
|
152
|
+
}
|
|
25
153
|
|
|
26
154
|
/** Recover the monotonic native index without treating old malformed proof as valid. */
|
|
27
155
|
function previousLocator(
|
|
@@ -149,6 +277,11 @@ export function publishCompletionProof(context, input) {
|
|
|
149
277
|
);
|
|
150
278
|
const digest = sha256(bytes);
|
|
151
279
|
const name = `${recordId}-r${record.revision}-${digest}.json`;
|
|
280
|
+
const evidence = ensureEvidenceRelease(
|
|
281
|
+
context.run,
|
|
282
|
+
transport,
|
|
283
|
+
context.policy
|
|
284
|
+
);
|
|
152
285
|
const temporary = mkdtempSync(join(tmpdir(), "lisa-completion-proof-"));
|
|
153
286
|
try {
|
|
154
287
|
mkdirSync(temporary, { recursive: true });
|
|
@@ -156,25 +289,27 @@ export function publishCompletionProof(context, input) {
|
|
|
156
289
|
writeFileSync(file, bytes);
|
|
157
290
|
const uploaded = context.run(
|
|
158
291
|
"gh",
|
|
159
|
-
["release", "upload",
|
|
292
|
+
["release", "upload", evidence.tag, file, "--repo", context.repository],
|
|
160
293
|
{ allowFailure: true }
|
|
161
294
|
);
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
295
|
+
if (uploaded.status !== 0 || uploaded.error) {
|
|
296
|
+
const stderr = uploaded.stderr ?? "";
|
|
297
|
+
const full = uploadHitLimit(stderr, transport, evidence.release);
|
|
298
|
+
const reason = excerpt(stderr);
|
|
299
|
+
throw new CompletionProofError(
|
|
300
|
+
WRITE_ERROR,
|
|
301
|
+
full === false
|
|
302
|
+
? `Immutable completion-proof upload failed; no acceptance locator was published.${reason ? ` GitHub said: ${reason}` : ""}`
|
|
303
|
+
: fullReleaseMessage(
|
|
304
|
+
evidence.tag,
|
|
305
|
+
context.repository,
|
|
306
|
+
full ?? undefined
|
|
307
|
+
)
|
|
308
|
+
);
|
|
309
|
+
}
|
|
310
|
+
const matching = releaseAssets(transport, evidence.release).filter(
|
|
311
|
+
asset => asset.name === name
|
|
176
312
|
);
|
|
177
|
-
const matching = pages.flat().filter(asset => asset.name === name);
|
|
178
313
|
requireProof(
|
|
179
314
|
matching.length === 1,
|
|
180
315
|
"The uploaded completion asset cannot be uniquely read back.",
|
|
@@ -219,7 +354,7 @@ export function publishCompletionProof(context, input) {
|
|
|
219
354
|
readback?.body === body &&
|
|
220
355
|
String((readback.user ?? readback.author)?.id) === trackerActor,
|
|
221
356
|
"The native completion locator or publisher did not read back exactly.",
|
|
222
|
-
|
|
357
|
+
WRITE_ERROR
|
|
223
358
|
);
|
|
224
359
|
const deferredProducer = !publisherState.ready;
|
|
225
360
|
return {
|
|
@@ -29,7 +29,15 @@ import {
|
|
|
29
29
|
completionDenial,
|
|
30
30
|
} from "./lib/completion-authorization.mjs";
|
|
31
31
|
import { completionContext } from "./lib/completion-proof-adapters.mjs";
|
|
32
|
-
import {
|
|
32
|
+
import {
|
|
33
|
+
ensureEvidenceRelease,
|
|
34
|
+
publishCompletionProof,
|
|
35
|
+
} from "./lib/completion-proof-publisher.mjs";
|
|
36
|
+
import {
|
|
37
|
+
evidenceReleaseOverride,
|
|
38
|
+
githubProofTransport,
|
|
39
|
+
resolveEvidenceRelease,
|
|
40
|
+
} from "./lib/completion-proof-github.mjs";
|
|
33
41
|
import {
|
|
34
42
|
MAX_RECORD_BYTES,
|
|
35
43
|
CompletionProofError,
|
|
@@ -5849,6 +5857,41 @@ function publishProof(args) {
|
|
|
5849
5857
|
console.log(JSON.stringify(result));
|
|
5850
5858
|
}
|
|
5851
5859
|
|
|
5860
|
+
/**
|
|
5861
|
+
* Print the GitHub release tag evidence is uploaded to.
|
|
5862
|
+
*
|
|
5863
|
+
* One resolver for every writer: the completion-proof publisher, the evidence
|
|
5864
|
+
* skills' shell scripts, and the journey templates all ask here, so a project
|
|
5865
|
+
* that sets `verification.completion.evidenceRelease` (for example the
|
|
5866
|
+
* rotating `pr-assets-{YYYY-MM}`) moves every upload at once. A second copy of
|
|
5867
|
+
* the template rules in shell is the drift that hardcoded `pr-assets` in five
|
|
5868
|
+
* places and stopped every completion when that release hit GitHub's
|
|
5869
|
+
* 1000-asset cap (CodySwannGT/lisa#4692).
|
|
5870
|
+
*
|
|
5871
|
+
* `--ensure` also creates the release when it is absent and fails, in plain
|
|
5872
|
+
* words, when it is nearly full; without it nothing touches GitHub.
|
|
5873
|
+
*
|
|
5874
|
+
* `LISA_EVIDENCE_RELEASE` pins the name for one run, so a script that resolved
|
|
5875
|
+
* it once (the journey template generator, then post-evidence.sh) cannot split
|
|
5876
|
+
* links and uploads across a month boundary. The pinned name is still checked
|
|
5877
|
+
* against the accepted releases, and `--ensure` still capacity-checks it.
|
|
5878
|
+
*/
|
|
5879
|
+
function evidenceRelease(args) {
|
|
5880
|
+
const policy = readConfig().verification?.completion ?? {};
|
|
5881
|
+
const pinned = process.env.LISA_EVIDENCE_RELEASE?.trim();
|
|
5882
|
+
const tag = pinned
|
|
5883
|
+
? evidenceReleaseOverride(policy, pinned)
|
|
5884
|
+
: resolveEvidenceRelease(policy);
|
|
5885
|
+
if (!args.includes("--ensure")) return console.log(tag);
|
|
5886
|
+
const repository = currentRepository();
|
|
5887
|
+
if (!repository)
|
|
5888
|
+
throw new TrackingError(
|
|
5889
|
+
"evidence-release --ensure needs the GitHub repository; run it inside a checkout with a GitHub remote, or set GITHUB_REPOSITORY."
|
|
5890
|
+
);
|
|
5891
|
+
const transport = githubProofTransport(run, repository, policy);
|
|
5892
|
+
console.log(ensureEvidenceRelease(run, transport, policy, { tag }).tag);
|
|
5893
|
+
}
|
|
5894
|
+
|
|
5852
5895
|
/**
|
|
5853
5896
|
* Report every claimed work item that already has a merged pull request.
|
|
5854
5897
|
*
|
|
@@ -7113,10 +7156,11 @@ function main() {
|
|
|
7113
7156
|
if (command === "validate-push-destination")
|
|
7114
7157
|
return validatePushDestination(args);
|
|
7115
7158
|
if (command === "publish-completion-proof") return publishProof(args);
|
|
7159
|
+
if (command === "evidence-release") return evidenceRelease(args);
|
|
7116
7160
|
if (command === "validate-pr") return validatePr(args);
|
|
7117
7161
|
if (command === DISCHARGE_COMMAND) return dischargePrGates(args);
|
|
7118
7162
|
throw new TrackingError(
|
|
7119
|
-
"Usage: lisa-work-item.mjs link|current|attach-branch|clear|verify-level|contract-version|backlink|publish-completion-proof|complete|sweep|lane|prepare-commit-msg|validate-commit|validate-push|validate-push-destination|validate-pr|discharge-pr-gates" +
|
|
7163
|
+
"Usage: lisa-work-item.mjs link|current|attach-branch|clear|verify-level|contract-version|backlink|publish-completion-proof|evidence-release [--ensure]|complete|sweep|lane|prepare-commit-msg|validate-commit|validate-push|validate-push-destination|validate-pr|discharge-pr-gates" +
|
|
7120
7164
|
"\n(`bind` is accepted as an alias for `link`, but some agent harnesses refuse the token `bind` in a command line.)"
|
|
7121
7165
|
);
|
|
7122
7166
|
}
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"children": []
|
|
120
120
|
},
|
|
121
121
|
"lib/completion-proof-github.mjs": {
|
|
122
|
-
"sha256": "
|
|
122
|
+
"sha256": "bcd6a03ad609375b886a45e7af31670b49f1bc4888de1e2f31eb86c44ad56204",
|
|
123
123
|
"staticImports": [
|
|
124
124
|
"lib/completion-proof-shape.mjs"
|
|
125
125
|
],
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
"children": []
|
|
146
146
|
},
|
|
147
147
|
"lib/completion-proof-publisher.mjs": {
|
|
148
|
-
"sha256": "
|
|
148
|
+
"sha256": "cf37b6b1e09b22eeeab8d64086409a4345489f17cf11eb8ddc3e4c31d6772009",
|
|
149
149
|
"staticImports": [
|
|
150
150
|
"lib/completion-authorization.mjs",
|
|
151
151
|
"lib/completion-proof-github.mjs",
|
|
@@ -1432,10 +1432,11 @@
|
|
|
1432
1432
|
"children": []
|
|
1433
1433
|
},
|
|
1434
1434
|
"lisa-work-item.mjs": {
|
|
1435
|
-
"sha256": "
|
|
1435
|
+
"sha256": "c4a12e7ed3036b235cac8ef02e05695d9e01dbc2bd7b78a8644a50c476a94a02",
|
|
1436
1436
|
"staticImports": [
|
|
1437
1437
|
"lib/completion-authorization.mjs",
|
|
1438
1438
|
"lib/completion-proof-adapters.mjs",
|
|
1439
|
+
"lib/completion-proof-github.mjs",
|
|
1439
1440
|
"lib/completion-proof-publisher.mjs",
|
|
1440
1441
|
"lib/completion-proof-shape.mjs",
|
|
1441
1442
|
"lib/invoked-as-script.mjs",
|
|
@@ -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,CAuzEjC,CAAC;AAEH;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,+BAA+B,EAAE,QAAQ,CACpD,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CA0tEjC,CAAC"}
|
|
@@ -526,8 +526,10 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
|
|
|
526
526
|
"3422df7049227eff77f3ef7bf954eeb74a63e9879b06d8126c7c3a2485b6d1f3",
|
|
527
527
|
]),
|
|
528
528
|
"scripts/lib/completion-proof-github.mjs": Object.freeze([
|
|
529
|
+
"4355cbc85dbc2ee174ae8727b89a24be79813b8689589a94b717ec971f4d9a15",
|
|
529
530
|
"4b7f8b01ab846a7a16a4d7f66cb7731a83d4b7208aad627834df8a851a36fc32",
|
|
530
531
|
"b101b6cb5da8cb8d61cc45de8d1da0699713dfd39da0dc75ddd16e726db25228",
|
|
532
|
+
"bcd6a03ad609375b886a45e7af31670b49f1bc4888de1e2f31eb86c44ad56204",
|
|
531
533
|
"e8a5b585625c2d663c0f92046d8ff020b2e769860235634cd0e4bea4b3a234ae",
|
|
532
534
|
]),
|
|
533
535
|
"scripts/lib/completion-proof-markdown.mjs": Object.freeze([
|
|
@@ -539,8 +541,10 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
|
|
|
539
541
|
"a8acdd491693126fe6f1660f4bd29c7b218855ae59c76ec2b7c0d5703d8c0d43",
|
|
540
542
|
]),
|
|
541
543
|
"scripts/lib/completion-proof-publisher.mjs": Object.freeze([
|
|
544
|
+
"101b3f7690187c7f9a7be215ca4e543084d1ef36510d1d40681717d326846039",
|
|
542
545
|
"801df8b694eced082695542dad3e189ce660aa65dda26f3bf11d962120487609",
|
|
543
546
|
"b0e0020ce5f6b9530a90daab4a8b7a8f563b99c4fc549c364c645bbeddcb0fcb",
|
|
547
|
+
"cf37b6b1e09b22eeeab8d64086409a4345489f17cf11eb8ddc3e4c31d6772009",
|
|
544
548
|
]),
|
|
545
549
|
"scripts/lib/completion-proof-reader.mjs": Object.freeze([
|
|
546
550
|
"9d4221c4dc90ea0184e33347f8511d97c6ee6e8f43d532bd4ba0e49382612c71",
|
|
@@ -2068,6 +2072,7 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
|
|
|
2068
2072
|
"bef909215ba1a38c9c98625790586cfa6e2cf1a3d8181e83afe4a4192fa24076",
|
|
2069
2073
|
"c41e09152fa5cef8a2dcc347e490be6bf94e8df80b15b270c609218b993598ab",
|
|
2070
2074
|
"c47c48a6aaec2954640cc2bf609155a61a4b9a04132ee9c5bef03b61adff3ce1",
|
|
2075
|
+
"c4a12e7ed3036b235cac8ef02e05695d9e01dbc2bd7b78a8644a50c476a94a02",
|
|
2071
2076
|
"c4ab573de0def92dd9274bde13ca10b2f255caf3d2944824ca8f1e39e18e7f63",
|
|
2072
2077
|
"c78df9d5f0f3fc388ff60a7db5898478a2a4d6d7325833f10384b5a8c62bb34a",
|
|
2073
2078
|
"c8cea225a598e8856ed3afac2531f6f7e1235b5cee280f85ef311e70887b6a62",
|
|
@@ -2091,6 +2096,7 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
|
|
|
2091
2096
|
"da3b1411504e07d755a181bdb4b4566360963ba79f02b5998ee29c78a15e5b63",
|
|
2092
2097
|
"e1375d1daccfc137d91bae9eccad62e4449bb493d2a9021b35e65deb6f4a3ad0",
|
|
2093
2098
|
"e30016a49deff1c3cd3ae7951262aeb2ef3d472bce76bbbe2a177db6017c7cad",
|
|
2099
|
+
"e3e684d9917658231109c9134079c7e729d1aa4652ce6f5da62d58f71a621cbf",
|
|
2094
2100
|
"e41e9534988ce69a836664437a78f3a3f3dc7ebbe396c86cdab0ea63fb7c19da",
|
|
2095
2101
|
"e5e7d4322195d0e675fd62a8630cefa811d2459cea752163787d01cfa65e5ed7",
|
|
2096
2102
|
"e7127de03c08a66d39612b6027b25b6d9bdf0359bb3a8eccba2feb440d0c2f14",
|
|
@@ -2211,9 +2217,11 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
|
|
|
2211
2217
|
"381611fa7242751ab28617797c257b5137f928c8bff1041eec0821014638fbd5",
|
|
2212
2218
|
"4147c90547b1b67d1ea213fbd1e1e55917335325374e65b0ec4039311184713e",
|
|
2213
2219
|
"44774fb225e22b19697907c32aa9582f0a114a3206bde1c1d95d0797994a7bef",
|
|
2220
|
+
"45bb1e58fa069e51de109e75caf55544e4652a0f5afab4c692234073bae3a7e6",
|
|
2214
2221
|
"470715340b46b978c5fb2e129f952889acfc3e92a28767b849b456b2bf557c04",
|
|
2215
2222
|
"4eb102ead5b07918bd071a2e9588c7c515b55cfe7b06b77a1c735ecd90246195",
|
|
2216
2223
|
"559f96f189ec0c11f8a2ef0c6efca16b2728702f6d3f8aeda418b2ab9d98c4e4",
|
|
2224
|
+
"573c0557a906670ca1354a71f0f5db2811c68edcb8136e613759f6718030f5b7",
|
|
2217
2225
|
"57d2072ff209a1188bcd89cf3276baadf626201182a672a4e477a96488bd3a0e",
|
|
2218
2226
|
"5845a79f222c3db57d9d0a3da10688057c06af471dcaa057a0ca2e6f0e459e7a",
|
|
2219
2227
|
"5e7d56bcdc2ec310ff7b3bc4bbd018d718977ec4b43e7b14f241e1c4824ae4e1",
|
|
@@ -2267,6 +2275,7 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
|
|
|
2267
2275
|
"bf7f41d6c90b3f0f7e3443ebe69962a9e910e2c6a8506dae8d77a46106e3592f",
|
|
2268
2276
|
"c11328d3d4fd6d0f82ad51afc21f710877bd8dd2643c9d1a7d0fd2fed60358eb",
|
|
2269
2277
|
"c17d09e07c614df6843ba3bb6ae0c80874108eff22a68ef324db5f50110a27c8",
|
|
2278
|
+
"c5c0aae0aec90305a947e12d118461a6edf099ab1f52c6c3d51212b9eff5ea10",
|
|
2270
2279
|
"c82274d45042e09fecc36b0c60a50a2dfa9850ce53a4cc4ec21f08e9a58167bf",
|
|
2271
2280
|
"ca45729a128cdfd2fbd962db70c78471df78188b40b6cb51989eee66e025e9b8",
|
|
2272
2281
|
"ca7ad7b71210cab32112fca2bc5f74c0dd2dd8495c421027f90387ac2de11d39",
|
|
@@ -2294,6 +2303,7 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
|
|
|
2294
2303
|
"fd03f197b4db3dee95244df3d0af638fb371fd5d2726c173e0f6be40f5e92b88",
|
|
2295
2304
|
"fd96a6f85f2a3dae85c032d7a32a31258305e04aaaa0aa8ed5c25a39e5a3d73c",
|
|
2296
2305
|
"fdb4437f15a0be6a5a14377d1efcd93b2fc7b0d86d780200a4df249ec1b8f3d1",
|
|
2306
|
+
"fe29a7b692576d3a3fbfacaf0f6e92d13958daf7c11bbcdbfe3256559f5e11f4",
|
|
2297
2307
|
"fe96d8b0227ca76e2ee92bcc233fa60b011d0990e69c35e80fc752ca7977e6b9",
|
|
2298
2308
|
]),
|
|
2299
2309
|
"scripts/reconcile-nightly-e2e-tracking-cli.mjs": Object.freeze([
|
|
@@ -2870,8 +2880,10 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
|
|
|
2870
2880
|
"3422df7049227eff77f3ef7bf954eeb74a63e9879b06d8126c7c3a2485b6d1f3",
|
|
2871
2881
|
]),
|
|
2872
2882
|
"scripts/lib/completion-proof-github.mjs": Object.freeze([
|
|
2883
|
+
"4355cbc85dbc2ee174ae8727b89a24be79813b8689589a94b717ec971f4d9a15",
|
|
2873
2884
|
"4b7f8b01ab846a7a16a4d7f66cb7731a83d4b7208aad627834df8a851a36fc32",
|
|
2874
2885
|
"b101b6cb5da8cb8d61cc45de8d1da0699713dfd39da0dc75ddd16e726db25228",
|
|
2886
|
+
"bcd6a03ad609375b886a45e7af31670b49f1bc4888de1e2f31eb86c44ad56204",
|
|
2875
2887
|
"e8a5b585625c2d663c0f92046d8ff020b2e769860235634cd0e4bea4b3a234ae",
|
|
2876
2888
|
]),
|
|
2877
2889
|
"scripts/lib/completion-proof-markdown.mjs": Object.freeze([
|
|
@@ -2883,8 +2895,10 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
|
|
|
2883
2895
|
"a8acdd491693126fe6f1660f4bd29c7b218855ae59c76ec2b7c0d5703d8c0d43",
|
|
2884
2896
|
]),
|
|
2885
2897
|
"scripts/lib/completion-proof-publisher.mjs": Object.freeze([
|
|
2898
|
+
"101b3f7690187c7f9a7be215ca4e543084d1ef36510d1d40681717d326846039",
|
|
2886
2899
|
"801df8b694eced082695542dad3e189ce660aa65dda26f3bf11d962120487609",
|
|
2887
2900
|
"b0e0020ce5f6b9530a90daab4a8b7a8f563b99c4fc549c364c645bbeddcb0fcb",
|
|
2901
|
+
"cf37b6b1e09b22eeeab8d64086409a4345489f17cf11eb8ddc3e4c31d6772009",
|
|
2888
2902
|
]),
|
|
2889
2903
|
"scripts/lib/completion-proof-reader.mjs": Object.freeze([
|
|
2890
2904
|
"9d4221c4dc90ea0184e33347f8511d97c6ee6e8f43d532bd4ba0e49382612c71",
|
|
@@ -4342,6 +4356,7 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
|
|
|
4342
4356
|
"bef909215ba1a38c9c98625790586cfa6e2cf1a3d8181e83afe4a4192fa24076",
|
|
4343
4357
|
"c41e09152fa5cef8a2dcc347e490be6bf94e8df80b15b270c609218b993598ab",
|
|
4344
4358
|
"c47c48a6aaec2954640cc2bf609155a61a4b9a04132ee9c5bef03b61adff3ce1",
|
|
4359
|
+
"c4a12e7ed3036b235cac8ef02e05695d9e01dbc2bd7b78a8644a50c476a94a02",
|
|
4345
4360
|
"c4ab573de0def92dd9274bde13ca10b2f255caf3d2944824ca8f1e39e18e7f63",
|
|
4346
4361
|
"c78df9d5f0f3fc388ff60a7db5898478a2a4d6d7325833f10384b5a8c62bb34a",
|
|
4347
4362
|
"c8cea225a598e8856ed3afac2531f6f7e1235b5cee280f85ef311e70887b6a62",
|
|
@@ -4364,6 +4379,7 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
|
|
|
4364
4379
|
"da3b1411504e07d755a181bdb4b4566360963ba79f02b5998ee29c78a15e5b63",
|
|
4365
4380
|
"e1375d1daccfc137d91bae9eccad62e4449bb493d2a9021b35e65deb6f4a3ad0",
|
|
4366
4381
|
"e30016a49deff1c3cd3ae7951262aeb2ef3d472bce76bbbe2a177db6017c7cad",
|
|
4382
|
+
"e3e684d9917658231109c9134079c7e729d1aa4652ce6f5da62d58f71a621cbf",
|
|
4367
4383
|
"e41e9534988ce69a836664437a78f3a3f3dc7ebbe396c86cdab0ea63fb7c19da",
|
|
4368
4384
|
"e5e7d4322195d0e675fd62a8630cefa811d2459cea752163787d01cfa65e5ed7",
|
|
4369
4385
|
"e7127de03c08a66d39612b6027b25b6d9bdf0359bb3a8eccba2feb440d0c2f14",
|
|
@@ -4484,9 +4500,11 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
|
|
|
4484
4500
|
"381611fa7242751ab28617797c257b5137f928c8bff1041eec0821014638fbd5",
|
|
4485
4501
|
"4147c90547b1b67d1ea213fbd1e1e55917335325374e65b0ec4039311184713e",
|
|
4486
4502
|
"44774fb225e22b19697907c32aa9582f0a114a3206bde1c1d95d0797994a7bef",
|
|
4503
|
+
"45bb1e58fa069e51de109e75caf55544e4652a0f5afab4c692234073bae3a7e6",
|
|
4487
4504
|
"470715340b46b978c5fb2e129f952889acfc3e92a28767b849b456b2bf557c04",
|
|
4488
4505
|
"4eb102ead5b07918bd071a2e9588c7c515b55cfe7b06b77a1c735ecd90246195",
|
|
4489
4506
|
"559f96f189ec0c11f8a2ef0c6efca16b2728702f6d3f8aeda418b2ab9d98c4e4",
|
|
4507
|
+
"573c0557a906670ca1354a71f0f5db2811c68edcb8136e613759f6718030f5b7",
|
|
4490
4508
|
"57d2072ff209a1188bcd89cf3276baadf626201182a672a4e477a96488bd3a0e",
|
|
4491
4509
|
"5845a79f222c3db57d9d0a3da10688057c06af471dcaa057a0ca2e6f0e459e7a",
|
|
4492
4510
|
"5e7d56bcdc2ec310ff7b3bc4bbd018d718977ec4b43e7b14f241e1c4824ae4e1",
|
|
@@ -4540,6 +4558,7 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
|
|
|
4540
4558
|
"bf7f41d6c90b3f0f7e3443ebe69962a9e910e2c6a8506dae8d77a46106e3592f",
|
|
4541
4559
|
"c11328d3d4fd6d0f82ad51afc21f710877bd8dd2643c9d1a7d0fd2fed60358eb",
|
|
4542
4560
|
"c17d09e07c614df6843ba3bb6ae0c80874108eff22a68ef324db5f50110a27c8",
|
|
4561
|
+
"c5c0aae0aec90305a947e12d118461a6edf099ab1f52c6c3d51212b9eff5ea10",
|
|
4543
4562
|
"c82274d45042e09fecc36b0c60a50a2dfa9850ce53a4cc4ec21f08e9a58167bf",
|
|
4544
4563
|
"ca45729a128cdfd2fbd962db70c78471df78188b40b6cb51989eee66e025e9b8",
|
|
4545
4564
|
"ca7ad7b71210cab32112fca2bc5f74c0dd2dd8495c421027f90387ac2de11d39",
|
|
@@ -4567,6 +4586,7 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
|
|
|
4567
4586
|
"fd03f197b4db3dee95244df3d0af638fb371fd5d2726c173e0f6be40f5e92b88",
|
|
4568
4587
|
"fd96a6f85f2a3dae85c032d7a32a31258305e04aaaa0aa8ed5c25a39e5a3d73c",
|
|
4569
4588
|
"fdb4437f15a0be6a5a14377d1efcd93b2fc7b0d86d780200a4df249ec1b8f3d1",
|
|
4589
|
+
"fe29a7b692576d3a3fbfacaf0f6e92d13958daf7c11bbcdbfe3256559f5e11f4",
|
|
4570
4590
|
"fe96d8b0227ca76e2ee92bcc233fa60b011d0990e69c35e80fc752ca7977e6b9",
|
|
4571
4591
|
]),
|
|
4572
4592
|
"scripts/reconcile-nightly-e2e-tracking-cli.mjs": Object.freeze([
|