@codyswann/lisa 4.109.0 → 4.109.2
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 +58 -3
- package/all/copy-overwrite/scripts/lib/completion-proof-publisher.mjs +58 -141
- package/all/copy-overwrite/scripts/lib/evidence-prune-records.mjs +57 -11
- package/all/copy-overwrite/scripts/lib/evidence-release-capacity.mjs +228 -0
- package/all/copy-overwrite/scripts/lib/npm-update-helper-inventory.mjs +1 -0
- package/all/copy-overwrite/scripts/lisa-work-item.mjs +16 -15
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +14 -4
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +38 -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 +28 -21
- 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-github-evidence/SKILL.md +7 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/SKILL.md +10 -7
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-evidence/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
- package/plugins/lisa/skills/lisa-github-evidence/SKILL.md +7 -3
- package/plugins/lisa/skills/lisa-jira-evidence/SKILL.md +10 -7
- package/plugins/lisa/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa/skills/lisa-jira-journey/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
- package/plugins/lisa/skills/lisa-linear-evidence/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-github-evidence/SKILL.md +7 -3
- package/plugins/lisa-agy/skills/lisa-jira-evidence/SKILL.md +10 -7
- package/plugins/lisa-agy/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-agy/skills/lisa-jira-journey/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
- package/plugins/lisa-agy/skills/lisa-linear-evidence/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/skills/lisa-github-evidence/SKILL.md +7 -3
- package/plugins/lisa-copilot/skills/lisa-jira-evidence/SKILL.md +10 -7
- package/plugins/lisa-copilot/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-copilot/skills/lisa-jira-journey/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
- package/plugins/lisa-copilot/skills/lisa-linear-evidence/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/skills/lisa-github-evidence/SKILL.md +7 -3
- package/plugins/lisa-cursor/skills/lisa-jira-evidence/SKILL.md +10 -7
- package/plugins/lisa-cursor/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-cursor/skills/lisa-jira-journey/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
- package/plugins/lisa-cursor/skills/lisa-linear-evidence/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/skills/lisa-github-evidence/SKILL.md +7 -3
- package/plugins/lisa-devin/skills/lisa-jira-evidence/SKILL.md +10 -7
- package/plugins/lisa-devin/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-devin/skills/lisa-jira-journey/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
- package/plugins/lisa-devin/skills/lisa-linear-evidence/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
- 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 +11 -5
- package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/SKILL.md +1 -1
- package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/scripts/generate-templates.py +10 -5
- package/plugins/lisa-expo/skills/jira-evidence/SKILL.md +11 -5
- package/plugins/lisa-expo/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-expo/skills/jira-journey/SKILL.md +1 -1
- package/plugins/lisa-expo/skills/jira-journey/scripts/generate-templates.py +10 -5
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-agy/skills/jira-evidence/SKILL.md +11 -5
- package/plugins/lisa-expo-agy/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-expo-agy/skills/jira-journey/SKILL.md +1 -1
- package/plugins/lisa-expo-agy/skills/jira-journey/scripts/generate-templates.py +10 -5
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/skills/jira-evidence/SKILL.md +11 -5
- package/plugins/lisa-expo-copilot/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-expo-copilot/skills/jira-journey/SKILL.md +1 -1
- package/plugins/lisa-expo-copilot/skills/jira-journey/scripts/generate-templates.py +10 -5
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/skills/jira-evidence/SKILL.md +11 -5
- package/plugins/lisa-expo-cursor/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-expo-cursor/skills/jira-journey/SKILL.md +1 -1
- package/plugins/lisa-expo-cursor/skills/jira-journey/scripts/generate-templates.py +10 -5
- 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 +11 -5
- package/plugins/lisa-expo-devin/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-expo-devin/skills/jira-journey/SKILL.md +1 -1
- package/plugins/lisa-expo-devin/skills/jira-journey/scripts/generate-templates.py +10 -5
- 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 +11 -5
- package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-rails/skills/jira-evidence/SKILL.md +11 -5
- package/plugins/lisa-rails/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-agy/skills/jira-evidence/SKILL.md +11 -5
- package/plugins/lisa-rails-agy/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/skills/jira-evidence/SKILL.md +11 -5
- package/plugins/lisa-rails-copilot/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/skills/jira-evidence/SKILL.md +11 -5
- package/plugins/lisa-rails-cursor/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- 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 +11 -5
- package/plugins/lisa-rails-devin/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/skills/lisa-github-evidence/SKILL.md +7 -3
- package/plugins/src/base/skills/lisa-jira-evidence/SKILL.md +10 -7
- package/plugins/src/base/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/src/base/skills/lisa-jira-journey/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
- package/plugins/src/base/skills/lisa-linear-evidence/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
- package/plugins/src/expo/skills/jira-evidence/SKILL.md +11 -5
- package/plugins/src/expo/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/plugins/src/expo/skills/jira-journey/SKILL.md +1 -1
- package/plugins/src/expo/skills/jira-journey/scripts/generate-templates.py +10 -5
- package/plugins/src/rails/skills/jira-evidence/SKILL.md +11 -5
- package/plugins/src/rails/skills/jira-evidence/scripts/post-evidence.sh +21 -2
- package/scripts/two-channel-couplings.json +1 -1
- package/typescript/copy-overwrite/.prettierignore +1 -0
|
@@ -31,10 +31,15 @@ def evidence_release():
|
|
|
31
31
|
"""The GitHub release evidence is uploaded to, matching post-evidence.sh.
|
|
32
32
|
|
|
33
33
|
LISA_EVIDENCE_RELEASE wins when set. Otherwise ask the project's
|
|
34
|
-
`scripts/lisa-work-item.mjs evidence-release`,
|
|
35
|
-
|
|
36
|
-
reaches these links too (CodySwannGT/lisa#4692)
|
|
37
|
-
|
|
34
|
+
`scripts/lisa-work-item.mjs evidence-release --ensure`, exactly as
|
|
35
|
+
post-evidence.sh does, so a configured rotation such as
|
|
36
|
+
`pr-assets-{YYYY-MM}` reaches these links too (CodySwannGT/lisa#4692) and
|
|
37
|
+
both name the same overflow release when the current one is full
|
|
38
|
+
(CodySwannGT/lisa#4838); plain `evidence-release` would name the full
|
|
39
|
+
release and every link would 404. `--ensure` creates the release when it
|
|
40
|
+
is absent and fails only when a pinned release is full, every overflow
|
|
41
|
+
release is full, the release name is too long to take an overflow suffix,
|
|
42
|
+
or the release cannot be created. A host without the resolver keeps the legacy `pr-assets` release.
|
|
38
43
|
"""
|
|
39
44
|
configured = os.environ.get("LISA_EVIDENCE_RELEASE", "").strip()
|
|
40
45
|
if configured:
|
|
@@ -49,7 +54,7 @@ def evidence_release():
|
|
|
49
54
|
cli = Path(root) / "scripts" / "lisa-work-item.mjs"
|
|
50
55
|
if cli.is_file():
|
|
51
56
|
result = subprocess.run(
|
|
52
|
-
["node", str(cli), "evidence-release"],
|
|
57
|
+
["node", str(cli), "evidence-release", "--ensure"],
|
|
53
58
|
capture_output=True, text=True, cwd=root,
|
|
54
59
|
)
|
|
55
60
|
if result.returncode != 0:
|
|
@@ -67,7 +67,7 @@ If either is missing, **refuse to post**: stop and report the missing Not-establ
|
|
|
67
67
|
|
|
68
68
|
## Phase 2 — Upload Evidence Files (optional)
|
|
69
69
|
|
|
70
|
-
If `evidence/files/` is non-empty, resolve the release with `RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)` (it creates a missing release
|
|
70
|
+
If `evidence/files/` is non-empty, resolve the release with `RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)` (it creates a missing release, rolls over to `<release>-2`, `-3`, … when one is nearly full, and stops only when a pinned release or every overflow release is full, or the release name is too long to roll over; default `pr-assets`), then upload each text file to it on the current repo via `gh release upload "$RELEASE"`. The release is the permalink store — keeps the Linear comment lightweight while preserving large outputs.
|
|
71
71
|
|
|
72
72
|
For each uploaded file, capture the public release URL.
|
|
73
73
|
|
package/plugins/lisa-agy/skills/lisa-tracker-evidence/references/completion-authorization.md
CHANGED
|
@@ -360,24 +360,43 @@ resolves to the current UTC year-month at publish time, so
|
|
|
360
360
|
`pr-assets-{YYYY-MM}` rotates monthly and keeps each release under GitHub's
|
|
361
361
|
1000-file limit. Names use letters, digits, `.`, `_` and `-`, at most 100
|
|
362
362
|
characters; `{YYYY-MM}` is the only placeholder. The publisher creates a
|
|
363
|
-
missing release (never marked Latest)
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
363
|
+
missing release (never marked Latest). When the resolved release already
|
|
364
|
+
holds 950 or more files it rolls over to the next overflow release,
|
|
365
|
+
`<release>-2`, then `-3`, up to `-99`, creating and capacity-checking each one
|
|
366
|
+
the same way, instead of failing on GitHub's raw HTTP 422. If an upload still
|
|
367
|
+
hits GitHub's limit (another publisher filled the release meanwhile), it rolls
|
|
368
|
+
over once more and retries. It refuses, in plain words, only when every
|
|
369
|
+
overflow release of the period is full, or when the release name is too long
|
|
370
|
+
to take an overflow suffix (GitHub allows 100 characters), in which case it
|
|
371
|
+
names the full release. Its advice leads with pruning
|
|
372
|
+
(`node scripts/lisa-evidence-prune.mjs --release <release>`) when the release
|
|
373
|
+
already rotates, and suggests a rotating name only when it does not. Nothing is
|
|
374
|
+
ever deleted to make room.
|
|
375
|
+
`node scripts/lisa-work-item.mjs evidence-release` prints the period's first
|
|
376
|
+
release name without touching GitHub; `--ensure` also creates the release,
|
|
377
|
+
rolls over past full ones, and prints the release that has room.
|
|
367
378
|
|
|
368
379
|
The validator accepts assets from the legacy `pr-assets` release, from any
|
|
369
380
|
release matching the configured name or template, and from any name or
|
|
370
381
|
template listed in `verification.completion.acceptedEvidenceReleases`, so
|
|
371
|
-
proof published before a rename or rotation keeps validating.
|
|
372
|
-
|
|
382
|
+
proof published before a rename or rotation keeps validating. Each of those
|
|
383
|
+
names also accepts its `-2` … `-99` overflow releases, so proof in an overflow
|
|
384
|
+
release, or in an earlier period's release, keeps validating on `finish`. Only
|
|
385
|
+
releases in the implementation repository are accepted.
|
|
373
386
|
|
|
374
387
|
`LISA_EVIDENCE_RELEASE` pins the concrete release for one run. Skills resolve
|
|
375
388
|
it once with `evidence-release --ensure`, stop when that refuses, and pass the
|
|
376
389
|
printed name inline (`LISA_EVIDENCE_RELEASE=<name>`) on every later command,
|
|
377
390
|
because some agent runtimes start a new shell for each command and lose an
|
|
378
391
|
exported value; that keeps links and uploads on the same release. It must be
|
|
379
|
-
one of the accepted releases
|
|
380
|
-
capacity-checks it
|
|
392
|
+
one of the accepted releases. Every command honours it:
|
|
393
|
+
`evidence-release --ensure` creates and capacity-checks it, and
|
|
394
|
+
`publish-completion-proof` uploads the completion record to it and reads it
|
|
395
|
+
back from it. The publisher and `evidence-release` share one resolver, so the
|
|
396
|
+
release the publisher uploads to is always the one `evidence-release` prints in
|
|
397
|
+
the same environment. A pin is an exact choice: a full pinned release is
|
|
398
|
+
refused and never rolls over. Unset `LISA_EVIDENCE_RELEASE` to let Lisa roll
|
|
399
|
+
over, or pin a release that has room.
|
|
381
400
|
|
|
382
401
|
Creating an evidence release is a real GitHub release: it fires `release`
|
|
383
402
|
webhook and workflow events and adds a git tag of the same name. Workflows
|
|
@@ -53,8 +53,12 @@ If either is missing, **refuse to post**: stop and report the missing Not-establ
|
|
|
53
53
|
RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure) || exit 1
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
`--ensure` creates the release when it is absent
|
|
57
|
-
|
|
56
|
+
`--ensure` creates the release when it is absent, rolls over to the next
|
|
57
|
+
overflow release (`<release>-2`, `-3`, …) when it is nearly full, and prints
|
|
58
|
+
the release that has room. It stops with a plain message only when a pinned
|
|
59
|
+
`LISA_EVIDENCE_RELEASE` is full, every overflow release is, or the release
|
|
60
|
+
name is too long to roll over. Do not upload
|
|
61
|
+
when it fails. A project
|
|
58
62
|
without `scripts/lisa-work-item.mjs` uses `RELEASE=pr-assets`.
|
|
59
63
|
|
|
60
64
|
3. **Upload each evidence file**
|
|
@@ -169,7 +173,7 @@ Asset names in the release are prefixed with `pr-<number>-` so multiple PRs' evi
|
|
|
169
173
|
Check:
|
|
170
174
|
- `gh auth status` succeeds.
|
|
171
175
|
- The PR / issue refs are correct.
|
|
172
|
-
- `node scripts/lisa-work-item.mjs evidence-release --ensure` succeeds in the implementation repo (it creates a missing release and names a full one).
|
|
176
|
+
- `node scripts/lisa-work-item.mjs evidence-release --ensure` succeeds in the implementation repo (it creates a missing release, rolls over past a full one, and names a full pinned one).
|
|
173
177
|
|
|
174
178
|
### `gh issue edit` returns 404
|
|
175
179
|
|
|
@@ -60,7 +60,7 @@ If either is missing, **refuse to post**: stop and report the missing Not-establ
|
|
|
60
60
|
|
|
61
61
|
## Usage
|
|
62
62
|
|
|
63
|
-
Resolve the evidence release once, before posting. When `generate-templates.py` wrote the evidence links, use the same release it used so the links match the uploads. If the release cannot be used (for example,
|
|
63
|
+
Resolve the evidence release once, before posting. When `generate-templates.py` wrote the evidence links, use the same release it used so the links match the uploads. If the release cannot be used (for example, a pinned release is full, every overflow release is full, the release name is too long to roll over, or the publisher cannot create releases), the step prints `Evidence release not usable; stop.` and fails: stop there and report it instead of posting.
|
|
64
64
|
|
|
65
65
|
If you came here from jira-journey, `generate-templates.py` already wrote the links: skip the block below and reuse the release name jira-journey printed in its Step 4, because resolving again can pick a different month's release.
|
|
66
66
|
|
|
@@ -81,7 +81,7 @@ LISA_EVIDENCE_RELEASE=<name> bash .claude/skills/jira-evidence/scripts/post-evid
|
|
|
81
81
|
LISA_EVIDENCE_RELEASE=pr-assets bash .claude/skills/jira-evidence/scripts/post-evidence.sh PROJ-123 ./evidence 42
|
|
82
82
|
```
|
|
83
83
|
|
|
84
|
-
`post-evidence.sh` uses `LISA_EVIDENCE_RELEASE` when it is set, after the resolver confirms it is one of the project's evidence releases and is not nearly full.
|
|
84
|
+
`post-evidence.sh` uses `LISA_EVIDENCE_RELEASE` when it is set, after the resolver confirms it is one of the project's evidence releases and is not nearly full. A pinned release is an exact choice and never rolls over; without a pin, a nearly full release rolls over to its next overflow release (`<release>-2`, `-3`, …).
|
|
85
85
|
|
|
86
86
|
## What It Does
|
|
87
87
|
|
|
@@ -110,16 +110,19 @@ Local evidence files keep their `NN-` names. In the shared evidence release each
|
|
|
110
110
|
|
|
111
111
|
### Evidence not appearing in GitHub PR
|
|
112
112
|
|
|
113
|
-
Evidence files must be in the configured evidence release (`node scripts/lisa-work-item.mjs evidence-release --ensure` prints it; default `pr-assets`).
|
|
114
|
-
check it is not at GitHub's 1000-file limit, with:
|
|
113
|
+
Evidence files must be in the configured evidence release (`node scripts/lisa-work-item.mjs evidence-release --ensure` prints it; default `pr-assets`). It creates the release when it is missing and, when it is nearly full, rolls over to the next overflow release (`<release>-2`, `-3`, …) and prints that one:
|
|
115
114
|
|
|
116
115
|
```bash
|
|
117
116
|
node scripts/lisa-work-item.mjs evidence-release --ensure
|
|
118
117
|
```
|
|
119
118
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
119
|
+
It refuses only when a pinned `LISA_EVIDENCE_RELEASE` is full (unset it, or pin
|
|
120
|
+
a release with room), every overflow release of the period is full (prune old evidence with
|
|
121
|
+
`node scripts/lisa-evidence-prune.mjs --release <release>`, or, if the release
|
|
122
|
+
does not rotate yet, set `verification.completion.evidenceRelease` in
|
|
123
|
+
`.lisa.config.json` to a rotating name such as `pr-assets-{YYYY-MM}`), or the
|
|
124
|
+
release name is too long to take an overflow suffix (shorten it); older evidence
|
|
125
|
+
keeps validating.
|
|
123
126
|
|
|
124
127
|
### JIRA API returns 403
|
|
125
128
|
|
|
@@ -121,8 +121,13 @@ GH_REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
|
|
|
121
121
|
# `pr-assets-{YYYY-MM}`) moves this upload too. GitHub caps a release at 1000
|
|
122
122
|
# assets; a hardcoded `pr-assets` filled up and every upload then failed with a
|
|
123
123
|
# raw HTTP 422 (CodySwannGT/lisa#4692). `--ensure` creates the release when it
|
|
124
|
-
# is absent and
|
|
125
|
-
#
|
|
124
|
+
# is absent and, when it is nearly full, rolls over to the next overflow
|
|
125
|
+
# release (`<release>-2`, `-3`, …) and prints that one (CodySwannGT/lisa#4838).
|
|
126
|
+
# It refuses, in plain words, only when a pinned release is full, every
|
|
127
|
+
# overflow release is full, the release name is too long to take an overflow
|
|
128
|
+
# suffix, or the release cannot be created. generate-templates.py asks the same `--ensure`, so its links
|
|
129
|
+
# name the release uploaded here. A host whose Lisa predates the resolver keeps
|
|
130
|
+
# the legacy release.
|
|
126
131
|
#
|
|
127
132
|
# LISA_EVIDENCE_RELEASE, when set, pins the release for this run so the links
|
|
128
133
|
# generate-templates.py wrote match these uploads. The resolver still checks
|
|
@@ -234,7 +239,21 @@ echo " ✓ GitHub release assets uploaded"
|
|
|
234
239
|
# release URL as plain text, and that must not fail the run.
|
|
235
240
|
THIS_RUN_ASSETS=$(printf '%s\n' "${UPLOADED_ASSETS[@]}")
|
|
236
241
|
BAD_LINKS=0
|
|
242
|
+
RELEASE_PREFIX="github.com/${GH_REPO}/releases/download/"
|
|
237
243
|
while IFS= read -r LINK; do
|
|
244
|
+
# A link into a different release of this repository means the templates
|
|
245
|
+
# were generated against one release and this run uploaded to another (a
|
|
246
|
+
# roll-over to `<release>-2` in between, CodySwannGT/lisa#4838): the link
|
|
247
|
+
# would 404, so refuse it instead of posting it.
|
|
248
|
+
if [[ "$LINK" == *"$RELEASE_PREFIX"* ]]; then
|
|
249
|
+
LINK_TAG="${LINK#*"$RELEASE_PREFIX"}"
|
|
250
|
+
LINK_TAG="${LINK_TAG%%/*}"
|
|
251
|
+
if [[ "$LINK_TAG" != "$RELEASE_TAG" ]]; then
|
|
252
|
+
echo "ERROR: $COMMENT_MD links $LINK in release '$LINK_TAG', but this run uploaded to release '$RELEASE_TAG'. Regenerate the templates with LISA_EVIDENCE_RELEASE=$RELEASE_TAG and re-run this script with the same LISA_EVIDENCE_RELEASE=$RELEASE_TAG." >&2
|
|
253
|
+
BAD_LINKS=1
|
|
254
|
+
continue
|
|
255
|
+
fi
|
|
256
|
+
fi
|
|
238
257
|
[[ "$LINK" == *"releases/download/${RELEASE_TAG}/"* ]] || continue
|
|
239
258
|
LINK_NAME="${LINK##*/}"
|
|
240
259
|
if [[ "$LINK_NAME" != "pr-${PR_NUMBER}-"* ]]; then
|
|
@@ -123,7 +123,7 @@ evidence/
|
|
|
123
123
|
|
|
124
124
|
### Step 4: Generate Evidence Templates
|
|
125
125
|
|
|
126
|
-
The GitHub links point at the evidence release. Resolve it once, before generating templates, so the links and the uploads in Step 5 name the same release even across a month boundary. `--ensure` creates the release when it is missing. If the release cannot be used (for example,
|
|
126
|
+
The GitHub links point at the evidence release. Resolve it once, before generating templates, so the links and the uploads in Step 5 name the same release even across a month boundary. `--ensure` creates the release when it is missing. If the release cannot be used (for example, a pinned release is full, every overflow release is full, the release name is too long to roll over, or the publisher cannot create releases), the step prints `Evidence release not usable; stop.` and fails: stop there and report it instead of continuing.
|
|
127
127
|
|
|
128
128
|
```bash
|
|
129
129
|
unset LISA_EVIDENCE_RELEASE; LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure) || { echo "Evidence release not usable; stop."; false; } &&
|
|
@@ -31,10 +31,15 @@ def evidence_release():
|
|
|
31
31
|
"""The GitHub release evidence is uploaded to, matching post-evidence.sh.
|
|
32
32
|
|
|
33
33
|
LISA_EVIDENCE_RELEASE wins when set. Otherwise ask the project's
|
|
34
|
-
`scripts/lisa-work-item.mjs evidence-release`,
|
|
35
|
-
|
|
36
|
-
reaches these links too (CodySwannGT/lisa#4692)
|
|
37
|
-
|
|
34
|
+
`scripts/lisa-work-item.mjs evidence-release --ensure`, exactly as
|
|
35
|
+
post-evidence.sh does, so a configured rotation such as
|
|
36
|
+
`pr-assets-{YYYY-MM}` reaches these links too (CodySwannGT/lisa#4692) and
|
|
37
|
+
both name the same overflow release when the current one is full
|
|
38
|
+
(CodySwannGT/lisa#4838); plain `evidence-release` would name the full
|
|
39
|
+
release and every link would 404. `--ensure` creates the release when it
|
|
40
|
+
is absent and fails only when a pinned release is full, every overflow
|
|
41
|
+
release is full, the release name is too long to take an overflow suffix,
|
|
42
|
+
or the release cannot be created. A host without the resolver keeps the legacy `pr-assets` release.
|
|
38
43
|
"""
|
|
39
44
|
configured = os.environ.get("LISA_EVIDENCE_RELEASE", "").strip()
|
|
40
45
|
if configured:
|
|
@@ -49,7 +54,7 @@ def evidence_release():
|
|
|
49
54
|
cli = Path(root) / "scripts" / "lisa-work-item.mjs"
|
|
50
55
|
if cli.is_file():
|
|
51
56
|
result = subprocess.run(
|
|
52
|
-
["node", str(cli), "evidence-release"],
|
|
57
|
+
["node", str(cli), "evidence-release", "--ensure"],
|
|
53
58
|
capture_output=True, text=True, cwd=root,
|
|
54
59
|
)
|
|
55
60
|
if result.returncode != 0:
|
|
@@ -67,7 +67,7 @@ If either is missing, **refuse to post**: stop and report the missing Not-establ
|
|
|
67
67
|
|
|
68
68
|
## Phase 2 — Upload Evidence Files (optional)
|
|
69
69
|
|
|
70
|
-
If `evidence/files/` is non-empty, resolve the release with `RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)` (it creates a missing release
|
|
70
|
+
If `evidence/files/` is non-empty, resolve the release with `RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)` (it creates a missing release, rolls over to `<release>-2`, `-3`, … when one is nearly full, and stops only when a pinned release or every overflow release is full, or the release name is too long to roll over; default `pr-assets`), then upload each text file to it on the current repo via `gh release upload "$RELEASE"`. The release is the permalink store — keeps the Linear comment lightweight while preserving large outputs.
|
|
71
71
|
|
|
72
72
|
For each uploaded file, capture the public release URL.
|
|
73
73
|
|
package/plugins/lisa-copilot/skills/lisa-tracker-evidence/references/completion-authorization.md
CHANGED
|
@@ -360,24 +360,43 @@ resolves to the current UTC year-month at publish time, so
|
|
|
360
360
|
`pr-assets-{YYYY-MM}` rotates monthly and keeps each release under GitHub's
|
|
361
361
|
1000-file limit. Names use letters, digits, `.`, `_` and `-`, at most 100
|
|
362
362
|
characters; `{YYYY-MM}` is the only placeholder. The publisher creates a
|
|
363
|
-
missing release (never marked Latest)
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
363
|
+
missing release (never marked Latest). When the resolved release already
|
|
364
|
+
holds 950 or more files it rolls over to the next overflow release,
|
|
365
|
+
`<release>-2`, then `-3`, up to `-99`, creating and capacity-checking each one
|
|
366
|
+
the same way, instead of failing on GitHub's raw HTTP 422. If an upload still
|
|
367
|
+
hits GitHub's limit (another publisher filled the release meanwhile), it rolls
|
|
368
|
+
over once more and retries. It refuses, in plain words, only when every
|
|
369
|
+
overflow release of the period is full, or when the release name is too long
|
|
370
|
+
to take an overflow suffix (GitHub allows 100 characters), in which case it
|
|
371
|
+
names the full release. Its advice leads with pruning
|
|
372
|
+
(`node scripts/lisa-evidence-prune.mjs --release <release>`) when the release
|
|
373
|
+
already rotates, and suggests a rotating name only when it does not. Nothing is
|
|
374
|
+
ever deleted to make room.
|
|
375
|
+
`node scripts/lisa-work-item.mjs evidence-release` prints the period's first
|
|
376
|
+
release name without touching GitHub; `--ensure` also creates the release,
|
|
377
|
+
rolls over past full ones, and prints the release that has room.
|
|
367
378
|
|
|
368
379
|
The validator accepts assets from the legacy `pr-assets` release, from any
|
|
369
380
|
release matching the configured name or template, and from any name or
|
|
370
381
|
template listed in `verification.completion.acceptedEvidenceReleases`, so
|
|
371
|
-
proof published before a rename or rotation keeps validating.
|
|
372
|
-
|
|
382
|
+
proof published before a rename or rotation keeps validating. Each of those
|
|
383
|
+
names also accepts its `-2` … `-99` overflow releases, so proof in an overflow
|
|
384
|
+
release, or in an earlier period's release, keeps validating on `finish`. Only
|
|
385
|
+
releases in the implementation repository are accepted.
|
|
373
386
|
|
|
374
387
|
`LISA_EVIDENCE_RELEASE` pins the concrete release for one run. Skills resolve
|
|
375
388
|
it once with `evidence-release --ensure`, stop when that refuses, and pass the
|
|
376
389
|
printed name inline (`LISA_EVIDENCE_RELEASE=<name>`) on every later command,
|
|
377
390
|
because some agent runtimes start a new shell for each command and lose an
|
|
378
391
|
exported value; that keeps links and uploads on the same release. It must be
|
|
379
|
-
one of the accepted releases
|
|
380
|
-
capacity-checks it
|
|
392
|
+
one of the accepted releases. Every command honours it:
|
|
393
|
+
`evidence-release --ensure` creates and capacity-checks it, and
|
|
394
|
+
`publish-completion-proof` uploads the completion record to it and reads it
|
|
395
|
+
back from it. The publisher and `evidence-release` share one resolver, so the
|
|
396
|
+
release the publisher uploads to is always the one `evidence-release` prints in
|
|
397
|
+
the same environment. A pin is an exact choice: a full pinned release is
|
|
398
|
+
refused and never rolls over. Unset `LISA_EVIDENCE_RELEASE` to let Lisa roll
|
|
399
|
+
over, or pin a release that has room.
|
|
381
400
|
|
|
382
401
|
Creating an evidence release is a real GitHub release: it fires `release`
|
|
383
402
|
webhook and workflow events and adds a git tag of the same name. Workflows
|
|
@@ -53,8 +53,12 @@ If either is missing, **refuse to post**: stop and report the missing Not-establ
|
|
|
53
53
|
RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure) || exit 1
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
`--ensure` creates the release when it is absent
|
|
57
|
-
|
|
56
|
+
`--ensure` creates the release when it is absent, rolls over to the next
|
|
57
|
+
overflow release (`<release>-2`, `-3`, …) when it is nearly full, and prints
|
|
58
|
+
the release that has room. It stops with a plain message only when a pinned
|
|
59
|
+
`LISA_EVIDENCE_RELEASE` is full, every overflow release is, or the release
|
|
60
|
+
name is too long to roll over. Do not upload
|
|
61
|
+
when it fails. A project
|
|
58
62
|
without `scripts/lisa-work-item.mjs` uses `RELEASE=pr-assets`.
|
|
59
63
|
|
|
60
64
|
3. **Upload each evidence file**
|
|
@@ -169,7 +173,7 @@ Asset names in the release are prefixed with `pr-<number>-` so multiple PRs' evi
|
|
|
169
173
|
Check:
|
|
170
174
|
- `gh auth status` succeeds.
|
|
171
175
|
- The PR / issue refs are correct.
|
|
172
|
-
- `node scripts/lisa-work-item.mjs evidence-release --ensure` succeeds in the implementation repo (it creates a missing release and names a full one).
|
|
176
|
+
- `node scripts/lisa-work-item.mjs evidence-release --ensure` succeeds in the implementation repo (it creates a missing release, rolls over past a full one, and names a full pinned one).
|
|
173
177
|
|
|
174
178
|
### `gh issue edit` returns 404
|
|
175
179
|
|
|
@@ -60,7 +60,7 @@ If either is missing, **refuse to post**: stop and report the missing Not-establ
|
|
|
60
60
|
|
|
61
61
|
## Usage
|
|
62
62
|
|
|
63
|
-
Resolve the evidence release once, before posting. When `generate-templates.py` wrote the evidence links, use the same release it used so the links match the uploads. If the release cannot be used (for example,
|
|
63
|
+
Resolve the evidence release once, before posting. When `generate-templates.py` wrote the evidence links, use the same release it used so the links match the uploads. If the release cannot be used (for example, a pinned release is full, every overflow release is full, the release name is too long to roll over, or the publisher cannot create releases), the step prints `Evidence release not usable; stop.` and fails: stop there and report it instead of posting.
|
|
64
64
|
|
|
65
65
|
If you came here from jira-journey, `generate-templates.py` already wrote the links: skip the block below and reuse the release name jira-journey printed in its Step 4, because resolving again can pick a different month's release.
|
|
66
66
|
|
|
@@ -81,7 +81,7 @@ LISA_EVIDENCE_RELEASE=<name> bash .claude/skills/jira-evidence/scripts/post-evid
|
|
|
81
81
|
LISA_EVIDENCE_RELEASE=pr-assets bash .claude/skills/jira-evidence/scripts/post-evidence.sh PROJ-123 ./evidence 42
|
|
82
82
|
```
|
|
83
83
|
|
|
84
|
-
`post-evidence.sh` uses `LISA_EVIDENCE_RELEASE` when it is set, after the resolver confirms it is one of the project's evidence releases and is not nearly full.
|
|
84
|
+
`post-evidence.sh` uses `LISA_EVIDENCE_RELEASE` when it is set, after the resolver confirms it is one of the project's evidence releases and is not nearly full. A pinned release is an exact choice and never rolls over; without a pin, a nearly full release rolls over to its next overflow release (`<release>-2`, `-3`, …).
|
|
85
85
|
|
|
86
86
|
## What It Does
|
|
87
87
|
|
|
@@ -110,16 +110,19 @@ Local evidence files keep their `NN-` names. In the shared evidence release each
|
|
|
110
110
|
|
|
111
111
|
### Evidence not appearing in GitHub PR
|
|
112
112
|
|
|
113
|
-
Evidence files must be in the configured evidence release (`node scripts/lisa-work-item.mjs evidence-release --ensure` prints it; default `pr-assets`).
|
|
114
|
-
check it is not at GitHub's 1000-file limit, with:
|
|
113
|
+
Evidence files must be in the configured evidence release (`node scripts/lisa-work-item.mjs evidence-release --ensure` prints it; default `pr-assets`). It creates the release when it is missing and, when it is nearly full, rolls over to the next overflow release (`<release>-2`, `-3`, …) and prints that one:
|
|
115
114
|
|
|
116
115
|
```bash
|
|
117
116
|
node scripts/lisa-work-item.mjs evidence-release --ensure
|
|
118
117
|
```
|
|
119
118
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
119
|
+
It refuses only when a pinned `LISA_EVIDENCE_RELEASE` is full (unset it, or pin
|
|
120
|
+
a release with room), every overflow release of the period is full (prune old evidence with
|
|
121
|
+
`node scripts/lisa-evidence-prune.mjs --release <release>`, or, if the release
|
|
122
|
+
does not rotate yet, set `verification.completion.evidenceRelease` in
|
|
123
|
+
`.lisa.config.json` to a rotating name such as `pr-assets-{YYYY-MM}`), or the
|
|
124
|
+
release name is too long to take an overflow suffix (shorten it); older evidence
|
|
125
|
+
keeps validating.
|
|
123
126
|
|
|
124
127
|
### JIRA API returns 403
|
|
125
128
|
|
|
@@ -121,8 +121,13 @@ GH_REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
|
|
|
121
121
|
# `pr-assets-{YYYY-MM}`) moves this upload too. GitHub caps a release at 1000
|
|
122
122
|
# assets; a hardcoded `pr-assets` filled up and every upload then failed with a
|
|
123
123
|
# raw HTTP 422 (CodySwannGT/lisa#4692). `--ensure` creates the release when it
|
|
124
|
-
# is absent and
|
|
125
|
-
#
|
|
124
|
+
# is absent and, when it is nearly full, rolls over to the next overflow
|
|
125
|
+
# release (`<release>-2`, `-3`, …) and prints that one (CodySwannGT/lisa#4838).
|
|
126
|
+
# It refuses, in plain words, only when a pinned release is full, every
|
|
127
|
+
# overflow release is full, the release name is too long to take an overflow
|
|
128
|
+
# suffix, or the release cannot be created. generate-templates.py asks the same `--ensure`, so its links
|
|
129
|
+
# name the release uploaded here. A host whose Lisa predates the resolver keeps
|
|
130
|
+
# the legacy release.
|
|
126
131
|
#
|
|
127
132
|
# LISA_EVIDENCE_RELEASE, when set, pins the release for this run so the links
|
|
128
133
|
# generate-templates.py wrote match these uploads. The resolver still checks
|
|
@@ -234,7 +239,21 @@ echo " ✓ GitHub release assets uploaded"
|
|
|
234
239
|
# release URL as plain text, and that must not fail the run.
|
|
235
240
|
THIS_RUN_ASSETS=$(printf '%s\n' "${UPLOADED_ASSETS[@]}")
|
|
236
241
|
BAD_LINKS=0
|
|
242
|
+
RELEASE_PREFIX="github.com/${GH_REPO}/releases/download/"
|
|
237
243
|
while IFS= read -r LINK; do
|
|
244
|
+
# A link into a different release of this repository means the templates
|
|
245
|
+
# were generated against one release and this run uploaded to another (a
|
|
246
|
+
# roll-over to `<release>-2` in between, CodySwannGT/lisa#4838): the link
|
|
247
|
+
# would 404, so refuse it instead of posting it.
|
|
248
|
+
if [[ "$LINK" == *"$RELEASE_PREFIX"* ]]; then
|
|
249
|
+
LINK_TAG="${LINK#*"$RELEASE_PREFIX"}"
|
|
250
|
+
LINK_TAG="${LINK_TAG%%/*}"
|
|
251
|
+
if [[ "$LINK_TAG" != "$RELEASE_TAG" ]]; then
|
|
252
|
+
echo "ERROR: $COMMENT_MD links $LINK in release '$LINK_TAG', but this run uploaded to release '$RELEASE_TAG'. Regenerate the templates with LISA_EVIDENCE_RELEASE=$RELEASE_TAG and re-run this script with the same LISA_EVIDENCE_RELEASE=$RELEASE_TAG." >&2
|
|
253
|
+
BAD_LINKS=1
|
|
254
|
+
continue
|
|
255
|
+
fi
|
|
256
|
+
fi
|
|
238
257
|
[[ "$LINK" == *"releases/download/${RELEASE_TAG}/"* ]] || continue
|
|
239
258
|
LINK_NAME="${LINK##*/}"
|
|
240
259
|
if [[ "$LINK_NAME" != "pr-${PR_NUMBER}-"* ]]; then
|
|
@@ -123,7 +123,7 @@ evidence/
|
|
|
123
123
|
|
|
124
124
|
### Step 4: Generate Evidence Templates
|
|
125
125
|
|
|
126
|
-
The GitHub links point at the evidence release. Resolve it once, before generating templates, so the links and the uploads in Step 5 name the same release even across a month boundary. `--ensure` creates the release when it is missing. If the release cannot be used (for example,
|
|
126
|
+
The GitHub links point at the evidence release. Resolve it once, before generating templates, so the links and the uploads in Step 5 name the same release even across a month boundary. `--ensure` creates the release when it is missing. If the release cannot be used (for example, a pinned release is full, every overflow release is full, the release name is too long to roll over, or the publisher cannot create releases), the step prints `Evidence release not usable; stop.` and fails: stop there and report it instead of continuing.
|
|
127
127
|
|
|
128
128
|
```bash
|
|
129
129
|
unset LISA_EVIDENCE_RELEASE; LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure) || { echo "Evidence release not usable; stop."; false; } &&
|
|
@@ -31,10 +31,15 @@ def evidence_release():
|
|
|
31
31
|
"""The GitHub release evidence is uploaded to, matching post-evidence.sh.
|
|
32
32
|
|
|
33
33
|
LISA_EVIDENCE_RELEASE wins when set. Otherwise ask the project's
|
|
34
|
-
`scripts/lisa-work-item.mjs evidence-release`,
|
|
35
|
-
|
|
36
|
-
reaches these links too (CodySwannGT/lisa#4692)
|
|
37
|
-
|
|
34
|
+
`scripts/lisa-work-item.mjs evidence-release --ensure`, exactly as
|
|
35
|
+
post-evidence.sh does, so a configured rotation such as
|
|
36
|
+
`pr-assets-{YYYY-MM}` reaches these links too (CodySwannGT/lisa#4692) and
|
|
37
|
+
both name the same overflow release when the current one is full
|
|
38
|
+
(CodySwannGT/lisa#4838); plain `evidence-release` would name the full
|
|
39
|
+
release and every link would 404. `--ensure` creates the release when it
|
|
40
|
+
is absent and fails only when a pinned release is full, every overflow
|
|
41
|
+
release is full, the release name is too long to take an overflow suffix,
|
|
42
|
+
or the release cannot be created. A host without the resolver keeps the legacy `pr-assets` release.
|
|
38
43
|
"""
|
|
39
44
|
configured = os.environ.get("LISA_EVIDENCE_RELEASE", "").strip()
|
|
40
45
|
if configured:
|
|
@@ -49,7 +54,7 @@ def evidence_release():
|
|
|
49
54
|
cli = Path(root) / "scripts" / "lisa-work-item.mjs"
|
|
50
55
|
if cli.is_file():
|
|
51
56
|
result = subprocess.run(
|
|
52
|
-
["node", str(cli), "evidence-release"],
|
|
57
|
+
["node", str(cli), "evidence-release", "--ensure"],
|
|
53
58
|
capture_output=True, text=True, cwd=root,
|
|
54
59
|
)
|
|
55
60
|
if result.returncode != 0:
|
|
@@ -67,7 +67,7 @@ If either is missing, **refuse to post**: stop and report the missing Not-establ
|
|
|
67
67
|
|
|
68
68
|
## Phase 2 — Upload Evidence Files (optional)
|
|
69
69
|
|
|
70
|
-
If `evidence/files/` is non-empty, resolve the release with `RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)` (it creates a missing release
|
|
70
|
+
If `evidence/files/` is non-empty, resolve the release with `RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)` (it creates a missing release, rolls over to `<release>-2`, `-3`, … when one is nearly full, and stops only when a pinned release or every overflow release is full, or the release name is too long to roll over; default `pr-assets`), then upload each text file to it on the current repo via `gh release upload "$RELEASE"`. The release is the permalink store — keeps the Linear comment lightweight while preserving large outputs.
|
|
71
71
|
|
|
72
72
|
For each uploaded file, capture the public release URL.
|
|
73
73
|
|
package/plugins/lisa-cursor/skills/lisa-tracker-evidence/references/completion-authorization.md
CHANGED
|
@@ -360,24 +360,43 @@ resolves to the current UTC year-month at publish time, so
|
|
|
360
360
|
`pr-assets-{YYYY-MM}` rotates monthly and keeps each release under GitHub's
|
|
361
361
|
1000-file limit. Names use letters, digits, `.`, `_` and `-`, at most 100
|
|
362
362
|
characters; `{YYYY-MM}` is the only placeholder. The publisher creates a
|
|
363
|
-
missing release (never marked Latest)
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
363
|
+
missing release (never marked Latest). When the resolved release already
|
|
364
|
+
holds 950 or more files it rolls over to the next overflow release,
|
|
365
|
+
`<release>-2`, then `-3`, up to `-99`, creating and capacity-checking each one
|
|
366
|
+
the same way, instead of failing on GitHub's raw HTTP 422. If an upload still
|
|
367
|
+
hits GitHub's limit (another publisher filled the release meanwhile), it rolls
|
|
368
|
+
over once more and retries. It refuses, in plain words, only when every
|
|
369
|
+
overflow release of the period is full, or when the release name is too long
|
|
370
|
+
to take an overflow suffix (GitHub allows 100 characters), in which case it
|
|
371
|
+
names the full release. Its advice leads with pruning
|
|
372
|
+
(`node scripts/lisa-evidence-prune.mjs --release <release>`) when the release
|
|
373
|
+
already rotates, and suggests a rotating name only when it does not. Nothing is
|
|
374
|
+
ever deleted to make room.
|
|
375
|
+
`node scripts/lisa-work-item.mjs evidence-release` prints the period's first
|
|
376
|
+
release name without touching GitHub; `--ensure` also creates the release,
|
|
377
|
+
rolls over past full ones, and prints the release that has room.
|
|
367
378
|
|
|
368
379
|
The validator accepts assets from the legacy `pr-assets` release, from any
|
|
369
380
|
release matching the configured name or template, and from any name or
|
|
370
381
|
template listed in `verification.completion.acceptedEvidenceReleases`, so
|
|
371
|
-
proof published before a rename or rotation keeps validating.
|
|
372
|
-
|
|
382
|
+
proof published before a rename or rotation keeps validating. Each of those
|
|
383
|
+
names also accepts its `-2` … `-99` overflow releases, so proof in an overflow
|
|
384
|
+
release, or in an earlier period's release, keeps validating on `finish`. Only
|
|
385
|
+
releases in the implementation repository are accepted.
|
|
373
386
|
|
|
374
387
|
`LISA_EVIDENCE_RELEASE` pins the concrete release for one run. Skills resolve
|
|
375
388
|
it once with `evidence-release --ensure`, stop when that refuses, and pass the
|
|
376
389
|
printed name inline (`LISA_EVIDENCE_RELEASE=<name>`) on every later command,
|
|
377
390
|
because some agent runtimes start a new shell for each command and lose an
|
|
378
391
|
exported value; that keeps links and uploads on the same release. It must be
|
|
379
|
-
one of the accepted releases
|
|
380
|
-
capacity-checks it
|
|
392
|
+
one of the accepted releases. Every command honours it:
|
|
393
|
+
`evidence-release --ensure` creates and capacity-checks it, and
|
|
394
|
+
`publish-completion-proof` uploads the completion record to it and reads it
|
|
395
|
+
back from it. The publisher and `evidence-release` share one resolver, so the
|
|
396
|
+
release the publisher uploads to is always the one `evidence-release` prints in
|
|
397
|
+
the same environment. A pin is an exact choice: a full pinned release is
|
|
398
|
+
refused and never rolls over. Unset `LISA_EVIDENCE_RELEASE` to let Lisa roll
|
|
399
|
+
over, or pin a release that has room.
|
|
381
400
|
|
|
382
401
|
Creating an evidence release is a real GitHub release: it fires `release`
|
|
383
402
|
webhook and workflow events and adds a git tag of the same name. Workflows
|