@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.
Files changed (178) hide show
  1. package/all/copy-overwrite/scripts/lib/completion-proof-github.mjs +58 -3
  2. package/all/copy-overwrite/scripts/lib/completion-proof-publisher.mjs +58 -141
  3. package/all/copy-overwrite/scripts/lib/evidence-prune-records.mjs +57 -11
  4. package/all/copy-overwrite/scripts/lib/evidence-release-capacity.mjs +228 -0
  5. package/all/copy-overwrite/scripts/lib/npm-update-helper-inventory.mjs +1 -0
  6. package/all/copy-overwrite/scripts/lisa-work-item.mjs +16 -15
  7. package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +14 -4
  8. package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  9. package/dist/core/lisa-owned-hash-ledger.js +38 -0
  10. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  11. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  12. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  13. package/dist/core/upstream-evidence-manifest.js +28 -21
  14. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  15. package/package.json +4 -4
  16. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  17. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  18. package/plugins/lisa/.codex-plugin/skills/lisa-github-evidence/SKILL.md +7 -3
  19. package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/SKILL.md +10 -7
  20. package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
  21. package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/SKILL.md +1 -1
  22. package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
  23. package/plugins/lisa/.codex-plugin/skills/lisa-linear-evidence/SKILL.md +1 -1
  24. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
  25. package/plugins/lisa/skills/lisa-github-evidence/SKILL.md +7 -3
  26. package/plugins/lisa/skills/lisa-jira-evidence/SKILL.md +10 -7
  27. package/plugins/lisa/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
  28. package/plugins/lisa/skills/lisa-jira-journey/SKILL.md +1 -1
  29. package/plugins/lisa/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
  30. package/plugins/lisa/skills/lisa-linear-evidence/SKILL.md +1 -1
  31. package/plugins/lisa/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
  32. package/plugins/lisa-agy/plugin.json +1 -1
  33. package/plugins/lisa-agy/skills/lisa-github-evidence/SKILL.md +7 -3
  34. package/plugins/lisa-agy/skills/lisa-jira-evidence/SKILL.md +10 -7
  35. package/plugins/lisa-agy/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
  36. package/plugins/lisa-agy/skills/lisa-jira-journey/SKILL.md +1 -1
  37. package/plugins/lisa-agy/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
  38. package/plugins/lisa-agy/skills/lisa-linear-evidence/SKILL.md +1 -1
  39. package/plugins/lisa-agy/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
  40. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  41. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  42. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  43. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  44. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  45. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  46. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  47. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  48. package/plugins/lisa-copilot/skills/lisa-github-evidence/SKILL.md +7 -3
  49. package/plugins/lisa-copilot/skills/lisa-jira-evidence/SKILL.md +10 -7
  50. package/plugins/lisa-copilot/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
  51. package/plugins/lisa-copilot/skills/lisa-jira-journey/SKILL.md +1 -1
  52. package/plugins/lisa-copilot/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
  53. package/plugins/lisa-copilot/skills/lisa-linear-evidence/SKILL.md +1 -1
  54. package/plugins/lisa-copilot/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
  55. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-cursor/skills/lisa-github-evidence/SKILL.md +7 -3
  57. package/plugins/lisa-cursor/skills/lisa-jira-evidence/SKILL.md +10 -7
  58. package/plugins/lisa-cursor/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
  59. package/plugins/lisa-cursor/skills/lisa-jira-journey/SKILL.md +1 -1
  60. package/plugins/lisa-cursor/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
  61. package/plugins/lisa-cursor/skills/lisa-linear-evidence/SKILL.md +1 -1
  62. package/plugins/lisa-cursor/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
  63. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  64. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  65. package/plugins/lisa-devin/skills/lisa-github-evidence/SKILL.md +7 -3
  66. package/plugins/lisa-devin/skills/lisa-jira-evidence/SKILL.md +10 -7
  67. package/plugins/lisa-devin/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
  68. package/plugins/lisa-devin/skills/lisa-jira-journey/SKILL.md +1 -1
  69. package/plugins/lisa-devin/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
  70. package/plugins/lisa-devin/skills/lisa-linear-evidence/SKILL.md +1 -1
  71. package/plugins/lisa-devin/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
  72. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  73. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  74. package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/SKILL.md +11 -5
  75. package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  76. package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/SKILL.md +1 -1
  77. package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/scripts/generate-templates.py +10 -5
  78. package/plugins/lisa-expo/skills/jira-evidence/SKILL.md +11 -5
  79. package/plugins/lisa-expo/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  80. package/plugins/lisa-expo/skills/jira-journey/SKILL.md +1 -1
  81. package/plugins/lisa-expo/skills/jira-journey/scripts/generate-templates.py +10 -5
  82. package/plugins/lisa-expo-agy/plugin.json +1 -1
  83. package/plugins/lisa-expo-agy/skills/jira-evidence/SKILL.md +11 -5
  84. package/plugins/lisa-expo-agy/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  85. package/plugins/lisa-expo-agy/skills/jira-journey/SKILL.md +1 -1
  86. package/plugins/lisa-expo-agy/skills/jira-journey/scripts/generate-templates.py +10 -5
  87. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  88. package/plugins/lisa-expo-copilot/skills/jira-evidence/SKILL.md +11 -5
  89. package/plugins/lisa-expo-copilot/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  90. package/plugins/lisa-expo-copilot/skills/jira-journey/SKILL.md +1 -1
  91. package/plugins/lisa-expo-copilot/skills/jira-journey/scripts/generate-templates.py +10 -5
  92. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  93. package/plugins/lisa-expo-cursor/skills/jira-evidence/SKILL.md +11 -5
  94. package/plugins/lisa-expo-cursor/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  95. package/plugins/lisa-expo-cursor/skills/jira-journey/SKILL.md +1 -1
  96. package/plugins/lisa-expo-cursor/skills/jira-journey/scripts/generate-templates.py +10 -5
  97. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  98. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  99. package/plugins/lisa-expo-devin/skills/jira-evidence/SKILL.md +11 -5
  100. package/plugins/lisa-expo-devin/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  101. package/plugins/lisa-expo-devin/skills/jira-journey/SKILL.md +1 -1
  102. package/plugins/lisa-expo-devin/skills/jira-journey/scripts/generate-templates.py +10 -5
  103. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  104. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  105. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  106. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  107. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  108. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  109. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  110. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  111. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  112. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  113. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  114. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  115. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  116. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  117. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  118. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  119. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  120. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  121. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  122. package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
  123. package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
  124. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  125. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  126. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  127. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  128. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  129. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  130. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  131. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  132. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  133. package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/SKILL.md +11 -5
  134. package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  135. package/plugins/lisa-rails/skills/jira-evidence/SKILL.md +11 -5
  136. package/plugins/lisa-rails/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  137. package/plugins/lisa-rails-agy/plugin.json +1 -1
  138. package/plugins/lisa-rails-agy/skills/jira-evidence/SKILL.md +11 -5
  139. package/plugins/lisa-rails-agy/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  140. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  141. package/plugins/lisa-rails-copilot/skills/jira-evidence/SKILL.md +11 -5
  142. package/plugins/lisa-rails-copilot/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  143. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  144. package/plugins/lisa-rails-cursor/skills/jira-evidence/SKILL.md +11 -5
  145. package/plugins/lisa-rails-cursor/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  146. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  147. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  148. package/plugins/lisa-rails-devin/skills/jira-evidence/SKILL.md +11 -5
  149. package/plugins/lisa-rails-devin/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  150. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  151. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  152. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  153. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  154. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  155. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  156. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  157. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  158. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  159. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  160. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  161. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  162. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  163. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  164. package/plugins/src/base/skills/lisa-github-evidence/SKILL.md +7 -3
  165. package/plugins/src/base/skills/lisa-jira-evidence/SKILL.md +10 -7
  166. package/plugins/src/base/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
  167. package/plugins/src/base/skills/lisa-jira-journey/SKILL.md +1 -1
  168. package/plugins/src/base/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
  169. package/plugins/src/base/skills/lisa-linear-evidence/SKILL.md +1 -1
  170. package/plugins/src/base/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
  171. package/plugins/src/expo/skills/jira-evidence/SKILL.md +11 -5
  172. package/plugins/src/expo/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  173. package/plugins/src/expo/skills/jira-journey/SKILL.md +1 -1
  174. package/plugins/src/expo/skills/jira-journey/scripts/generate-templates.py +10 -5
  175. package/plugins/src/rails/skills/jira-evidence/SKILL.md +11 -5
  176. package/plugins/src/rails/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  177. package/scripts/two-channel-couplings.json +1 -1
  178. package/typescript/copy-overwrite/.prettierignore +1 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "4.109.0",
3
+ "version": "4.109.2",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "4.109.0",
3
+ "version": "4.109.2",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -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 and stops with a plain
57
- message when it is nearly full. Do not upload when it fails. A project
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, it is nearly full), the step prints `Evidence release not usable; stop.` and fails: stop there and report it instead of posting.
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`). Create it when it is missing, and
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
- If it reports the release is nearly full, set
121
- `verification.completion.evidenceRelease` in `.lisa.config.json` to a rotating
122
- name such as `pr-assets-{YYYY-MM}`; older evidence keeps validating.
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 refuses, in plain words, when it is nearly full. A host whose
125
- # Lisa predates the resolver keeps the legacy release.
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, it is nearly full), the step prints `Evidence release not usable; stop.` and fails: stop there and report it instead of continuing.
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`, the one resolver every
35
- writer shares, so a configured rotation such as `pr-assets-{YYYY-MM}`
36
- reaches these links too (CodySwannGT/lisa#4692). A host without the
37
- resolver keeps the legacy `pr-assets` release.
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 and stops when one is nearly full; 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.
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
 
@@ -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) and refuses, in plain words, when the
364
- release already holds 950 or more files rather than failing on GitHub's raw
365
- HTTP 422. `node scripts/lisa-work-item.mjs evidence-release` prints the
366
- resolved name; `--ensure` also creates it or refuses when it is nearly full.
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. Only releases in
372
- the implementation repository are accepted.
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; `evidence-release --ensure` still creates and
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "4.109.0",
3
+ "version": "4.109.2",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "4.109.0",
3
+ "version": "4.109.2",
4
4
  "description": "Expo and React Native-specific skills, agents, rules, and MCP servers.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -35,7 +35,7 @@ Upload captured screenshots and generated templates to GitHub PR description and
35
35
 
36
36
  ## Usage
37
37
 
38
- 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, it is nearly full), the step prints `Evidence release not usable; stop.` and fails: stop there and report it instead of posting.
38
+ 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.
39
39
 
40
40
  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.
41
41
 
@@ -56,7 +56,7 @@ LISA_EVIDENCE_RELEASE=<name> bash .claude/skills/jira-evidence/scripts/post-evid
56
56
  LISA_EVIDENCE_RELEASE=pr-assets bash .claude/skills/jira-evidence/scripts/post-evidence.sh PROJ-123 ./evidence 42
57
57
  ```
58
58
 
59
- `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.
59
+ `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`, …).
60
60
 
61
61
  ## What It Does
62
62
 
@@ -93,9 +93,15 @@ check it is not at GitHub's 1000-file limit, with:
93
93
  node scripts/lisa-work-item.mjs evidence-release --ensure
94
94
  ```
95
95
 
96
- If it reports the release is nearly full, set
97
- `verification.completion.evidenceRelease` in `.lisa.config.json` to a rotating
98
- name such as `pr-assets-{YYYY-MM}`; older evidence keeps validating.
96
+ A nearly full release rolls over to the next overflow release (`<release>-2`,
97
+ `-3`, …), which it prints. It refuses only when a pinned `LISA_EVIDENCE_RELEASE`
98
+ is full (unset it, or pin a release with room), every overflow release of the
99
+ period is full (prune old evidence with
100
+ `node scripts/lisa-evidence-prune.mjs --release <release>`, or, if the release
101
+ does not rotate yet, set `verification.completion.evidenceRelease` in
102
+ `.lisa.config.json` to a rotating name such as `pr-assets-{YYYY-MM}`), or the
103
+ release name is too long to take an overflow suffix (shorten it); older evidence
104
+ keeps validating.
99
105
 
100
106
  ### JIRA comment shows `!filename.png!` as text (not image)
101
107
 
@@ -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 refuses, in plain words, when it is nearly full. A host whose
125
- # Lisa predates the resolver keeps the legacy release.
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
@@ -115,7 +115,7 @@ This ensures each screenshot is captured at the correct viewport dimensions with
115
115
 
116
116
  ### Step 4: Generate Evidence Templates
117
117
 
118
- 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, it is nearly full), the step prints `Evidence release not usable; stop.` and fails: stop there and report it instead of continuing.
118
+ 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.
119
119
 
120
120
  ```bash
121
121
  unset LISA_EVIDENCE_RELEASE; LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure) || { echo "Evidence release not usable; stop."; false; } &&
@@ -25,10 +25,15 @@ def evidence_release():
25
25
  """The GitHub release evidence is uploaded to, matching post-evidence.sh.
26
26
 
27
27
  LISA_EVIDENCE_RELEASE wins when set. Otherwise ask the project's
28
- `scripts/lisa-work-item.mjs evidence-release`, the one resolver every
29
- writer shares, so a configured rotation such as `pr-assets-{YYYY-MM}`
30
- reaches these links too (CodySwannGT/lisa#4692). A host without the
31
- resolver keeps the legacy `pr-assets` release.
28
+ `scripts/lisa-work-item.mjs evidence-release --ensure`, exactly as
29
+ post-evidence.sh does, so a configured rotation such as
30
+ `pr-assets-{YYYY-MM}` reaches these links too (CodySwannGT/lisa#4692) and
31
+ both name the same overflow release when the current one is full
32
+ (CodySwannGT/lisa#4838); plain `evidence-release` would name the full
33
+ release and every link would 404. `--ensure` creates the release when it
34
+ is absent and fails only when a pinned release is full, every overflow
35
+ release is full, the release name is too long to take an overflow suffix,
36
+ or the release cannot be created. A host without the resolver keeps the legacy `pr-assets` release.
32
37
  """
33
38
  configured = os.environ.get("LISA_EVIDENCE_RELEASE", "").strip()
34
39
  if configured:
@@ -43,7 +48,7 @@ def evidence_release():
43
48
  cli = Path(root) / "scripts" / "lisa-work-item.mjs"
44
49
  if cli.is_file():
45
50
  result = subprocess.run(
46
- ["node", str(cli), "evidence-release"],
51
+ ["node", str(cli), "evidence-release", "--ensure"],
47
52
  capture_output=True, text=True, cwd=root,
48
53
  )
49
54
  if result.returncode != 0:
@@ -33,7 +33,7 @@ Upload captured screenshots and generated templates to GitHub PR description and
33
33
 
34
34
  ## Usage
35
35
 
36
- 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, it is nearly full), the step prints `Evidence release not usable; stop.` and fails: stop there and report it instead of posting.
36
+ 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.
37
37
 
38
38
  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.
39
39
 
@@ -54,7 +54,7 @@ LISA_EVIDENCE_RELEASE=<name> bash .claude/skills/jira-evidence/scripts/post-evid
54
54
  LISA_EVIDENCE_RELEASE=pr-assets bash .claude/skills/jira-evidence/scripts/post-evidence.sh PROJ-123 ./evidence 42
55
55
  ```
56
56
 
57
- `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.
57
+ `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`, …).
58
58
 
59
59
  ## What It Does
60
60
 
@@ -91,9 +91,15 @@ check it is not at GitHub's 1000-file limit, with:
91
91
  node scripts/lisa-work-item.mjs evidence-release --ensure
92
92
  ```
93
93
 
94
- If it reports the release is nearly full, set
95
- `verification.completion.evidenceRelease` in `.lisa.config.json` to a rotating
96
- name such as `pr-assets-{YYYY-MM}`; older evidence keeps validating.
94
+ A nearly full release rolls over to the next overflow release (`<release>-2`,
95
+ `-3`, …), which it prints. It refuses only when a pinned `LISA_EVIDENCE_RELEASE`
96
+ is full (unset it, or pin a release with room), every overflow release of the
97
+ period is full (prune old evidence with
98
+ `node scripts/lisa-evidence-prune.mjs --release <release>`, or, if the release
99
+ does not rotate yet, set `verification.completion.evidenceRelease` in
100
+ `.lisa.config.json` to a rotating name such as `pr-assets-{YYYY-MM}`), or the
101
+ release name is too long to take an overflow suffix (shorten it); older evidence
102
+ keeps validating.
97
103
 
98
104
  ### JIRA comment shows `!filename.png!` as text (not image)
99
105
 
@@ -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 refuses, in plain words, when it is nearly full. A host whose
125
- # Lisa predates the resolver keeps the legacy release.
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
@@ -113,7 +113,7 @@ This ensures each screenshot is captured at the correct viewport dimensions with
113
113
 
114
114
  ### Step 4: Generate Evidence Templates
115
115
 
116
- 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, it is nearly full), the step prints `Evidence release not usable; stop.` and fails: stop there and report it instead of continuing.
116
+ 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.
117
117
 
118
118
  ```bash
119
119
  unset LISA_EVIDENCE_RELEASE; LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure) || { echo "Evidence release not usable; stop."; false; } &&
@@ -25,10 +25,15 @@ def evidence_release():
25
25
  """The GitHub release evidence is uploaded to, matching post-evidence.sh.
26
26
 
27
27
  LISA_EVIDENCE_RELEASE wins when set. Otherwise ask the project's
28
- `scripts/lisa-work-item.mjs evidence-release`, the one resolver every
29
- writer shares, so a configured rotation such as `pr-assets-{YYYY-MM}`
30
- reaches these links too (CodySwannGT/lisa#4692). A host without the
31
- resolver keeps the legacy `pr-assets` release.
28
+ `scripts/lisa-work-item.mjs evidence-release --ensure`, exactly as
29
+ post-evidence.sh does, so a configured rotation such as
30
+ `pr-assets-{YYYY-MM}` reaches these links too (CodySwannGT/lisa#4692) and
31
+ both name the same overflow release when the current one is full
32
+ (CodySwannGT/lisa#4838); plain `evidence-release` would name the full
33
+ release and every link would 404. `--ensure` creates the release when it
34
+ is absent and fails only when a pinned release is full, every overflow
35
+ release is full, the release name is too long to take an overflow suffix,
36
+ or the release cannot be created. A host without the resolver keeps the legacy `pr-assets` release.
32
37
  """
33
38
  configured = os.environ.get("LISA_EVIDENCE_RELEASE", "").strip()
34
39
  if configured:
@@ -43,7 +48,7 @@ def evidence_release():
43
48
  cli = Path(root) / "scripts" / "lisa-work-item.mjs"
44
49
  if cli.is_file():
45
50
  result = subprocess.run(
46
- ["node", str(cli), "evidence-release"],
51
+ ["node", str(cli), "evidence-release", "--ensure"],
47
52
  capture_output=True, text=True, cwd=root,
48
53
  )
49
54
  if result.returncode != 0:
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "4.109.0",
3
+ "version": "4.109.2",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -33,7 +33,7 @@ Upload captured screenshots and generated templates to GitHub PR description and
33
33
 
34
34
  ## Usage
35
35
 
36
- 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, it is nearly full), the step prints `Evidence release not usable; stop.` and fails: stop there and report it instead of posting.
36
+ 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.
37
37
 
38
38
  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.
39
39
 
@@ -54,7 +54,7 @@ LISA_EVIDENCE_RELEASE=<name> bash .claude/skills/jira-evidence/scripts/post-evid
54
54
  LISA_EVIDENCE_RELEASE=pr-assets bash .claude/skills/jira-evidence/scripts/post-evidence.sh PROJ-123 ./evidence 42
55
55
  ```
56
56
 
57
- `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.
57
+ `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`, …).
58
58
 
59
59
  ## What It Does
60
60
 
@@ -91,9 +91,15 @@ check it is not at GitHub's 1000-file limit, with:
91
91
  node scripts/lisa-work-item.mjs evidence-release --ensure
92
92
  ```
93
93
 
94
- If it reports the release is nearly full, set
95
- `verification.completion.evidenceRelease` in `.lisa.config.json` to a rotating
96
- name such as `pr-assets-{YYYY-MM}`; older evidence keeps validating.
94
+ A nearly full release rolls over to the next overflow release (`<release>-2`,
95
+ `-3`, …), which it prints. It refuses only when a pinned `LISA_EVIDENCE_RELEASE`
96
+ is full (unset it, or pin a release with room), every overflow release of the
97
+ period is full (prune old evidence with
98
+ `node scripts/lisa-evidence-prune.mjs --release <release>`, or, if the release
99
+ does not rotate yet, set `verification.completion.evidenceRelease` in
100
+ `.lisa.config.json` to a rotating name such as `pr-assets-{YYYY-MM}`), or the
101
+ release name is too long to take an overflow suffix (shorten it); older evidence
102
+ keeps validating.
97
103
 
98
104
  ### JIRA comment shows `!filename.png!` as text (not image)
99
105
 
@@ -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 refuses, in plain words, when it is nearly full. A host whose
125
- # Lisa predates the resolver keeps the legacy release.
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
@@ -113,7 +113,7 @@ This ensures each screenshot is captured at the correct viewport dimensions with
113
113
 
114
114
  ### Step 4: Generate Evidence Templates
115
115
 
116
- 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, it is nearly full), the step prints `Evidence release not usable; stop.` and fails: stop there and report it instead of continuing.
116
+ 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.
117
117
 
118
118
  ```bash
119
119
  unset LISA_EVIDENCE_RELEASE; LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure) || { echo "Evidence release not usable; stop."; false; } &&