@codyswann/lisa 4.99.4 → 4.99.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/all/copy-overwrite/scripts/lib/completion-proof-github.mjs +155 -3
- package/all/copy-overwrite/scripts/lib/completion-proof-publisher.mjs +153 -18
- package/all/copy-overwrite/scripts/lisa-work-item.mjs +46 -2
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +4 -3
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +20 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +41 -24
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/opencode/relative-imports.d.ts +59 -0
- package/dist/opencode/relative-imports.d.ts.map +1 -0
- package/dist/opencode/relative-imports.js +119 -0
- package/dist/opencode/relative-imports.js.map +1 -0
- package/dist/opencode/shared-scripts-cleanup.d.ts +43 -0
- package/dist/opencode/shared-scripts-cleanup.d.ts.map +1 -0
- package/dist/opencode/shared-scripts-cleanup.js +94 -0
- package/dist/opencode/shared-scripts-cleanup.js.map +1 -0
- package/dist/opencode/shared-scripts-emitter.d.ts +18 -0
- package/dist/opencode/shared-scripts-emitter.d.ts.map +1 -0
- package/dist/opencode/shared-scripts-emitter.js +173 -0
- package/dist/opencode/shared-scripts-emitter.js.map +1 -0
- package/dist/opencode/skills-installer.d.ts +4 -1
- package/dist/opencode/skills-installer.d.ts.map +1 -1
- package/dist/opencode/skills-installer.js +19 -3
- package/dist/opencode/skills-installer.js.map +1 -1
- package/package.json +4 -4
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-github-evidence/SKILL.md +19 -9
- package/plugins/lisa/.codex-plugin/skills/lisa-github-journey/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/SKILL.md +18 -5
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/agents/openai.yaml +2 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/SKILL.md +8 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-evidence/SKILL.md +3 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-journey/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-evidence/SKILL.md +4 -4
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-evidence/references/completion-authorization.md +32 -4
- package/plugins/lisa/.codex-plugin/skills/lisa-verify/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-verify-prd/SKILL.md +3 -3
- package/plugins/lisa/agents/github-agent.md +1 -1
- package/plugins/lisa/skills/lisa-github-evidence/SKILL.md +19 -9
- package/plugins/lisa/skills/lisa-github-evidence/agents/openai.yaml +2 -2
- package/plugins/lisa/skills/lisa-github-journey/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-jira-evidence/SKILL.md +17 -4
- package/plugins/lisa/skills/lisa-jira-evidence/agents/openai.yaml +2 -2
- package/plugins/lisa/skills/lisa-jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa/skills/lisa-jira-journey/SKILL.md +8 -0
- package/plugins/lisa/skills/lisa-jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa/skills/lisa-linear-evidence/SKILL.md +3 -3
- package/plugins/lisa/skills/lisa-linear-evidence/agents/openai.yaml +2 -2
- package/plugins/lisa/skills/lisa-linear-journey/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-tracker-evidence/SKILL.md +4 -4
- package/plugins/lisa/skills/lisa-tracker-evidence/references/completion-authorization.md +32 -4
- package/plugins/lisa/skills/lisa-verify/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-verify-prd/SKILL.md +3 -3
- package/plugins/lisa-agy/agents/github-agent.md +1 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-github-evidence/SKILL.md +19 -9
- package/plugins/lisa-agy/skills/lisa-github-journey/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-agy/skills/lisa-jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-agy/skills/lisa-jira-journey/SKILL.md +8 -0
- package/plugins/lisa-agy/skills/lisa-jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-agy/skills/lisa-linear-evidence/SKILL.md +3 -3
- package/plugins/lisa-agy/skills/lisa-linear-journey/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-tracker-evidence/SKILL.md +4 -4
- package/plugins/lisa-agy/skills/lisa-tracker-evidence/references/completion-authorization.md +32 -4
- package/plugins/lisa-agy/skills/lisa-verify/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-verify-prd/SKILL.md +3 -3
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/agents/github-agent.agent.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-github-evidence/SKILL.md +19 -9
- package/plugins/lisa-copilot/skills/lisa-github-journey/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-copilot/skills/lisa-jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-copilot/skills/lisa-jira-journey/SKILL.md +8 -0
- package/plugins/lisa-copilot/skills/lisa-jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-copilot/skills/lisa-linear-evidence/SKILL.md +3 -3
- package/plugins/lisa-copilot/skills/lisa-linear-journey/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-tracker-evidence/SKILL.md +4 -4
- package/plugins/lisa-copilot/skills/lisa-tracker-evidence/references/completion-authorization.md +32 -4
- package/plugins/lisa-copilot/skills/lisa-verify/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-verify-prd/SKILL.md +3 -3
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/agents/github-agent.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-github-evidence/SKILL.md +19 -9
- package/plugins/lisa-cursor/skills/lisa-github-journey/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-cursor/skills/lisa-jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-cursor/skills/lisa-jira-journey/SKILL.md +8 -0
- package/plugins/lisa-cursor/skills/lisa-jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-cursor/skills/lisa-linear-evidence/SKILL.md +3 -3
- package/plugins/lisa-cursor/skills/lisa-linear-journey/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-tracker-evidence/SKILL.md +4 -4
- package/plugins/lisa-cursor/skills/lisa-tracker-evidence/references/completion-authorization.md +32 -4
- package/plugins/lisa-cursor/skills/lisa-verify/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-verify-prd/SKILL.md +3 -3
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/agents/github-agent.md +1 -1
- package/plugins/lisa-devin/skills/lisa-github-evidence/SKILL.md +19 -9
- package/plugins/lisa-devin/skills/lisa-github-journey/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-devin/skills/lisa-jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-devin/skills/lisa-jira-journey/SKILL.md +8 -0
- package/plugins/lisa-devin/skills/lisa-jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-devin/skills/lisa-linear-evidence/SKILL.md +3 -3
- package/plugins/lisa-devin/skills/lisa-linear-journey/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-tracker-evidence/SKILL.md +4 -4
- package/plugins/lisa-devin/skills/lisa-tracker-evidence/references/completion-authorization.md +32 -4
- package/plugins/lisa-devin/skills/lisa-verify/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-verify-prd/SKILL.md +3 -3
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/SKILL.md +18 -5
- package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/agents/openai.yaml +2 -2
- package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/SKILL.md +8 -0
- package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-expo/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-expo/skills/jira-evidence/agents/openai.yaml +2 -2
- package/plugins/lisa-expo/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-expo/skills/jira-journey/SKILL.md +8 -0
- package/plugins/lisa-expo/skills/jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-agy/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-expo-agy/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-expo-agy/skills/jira-journey/SKILL.md +8 -0
- package/plugins/lisa-expo-agy/skills/jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-expo-copilot/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-expo-copilot/skills/jira-journey/SKILL.md +8 -0
- package/plugins/lisa-expo-copilot/skills/jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-expo-cursor/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-expo-cursor/skills/jira-journey/SKILL.md +8 -0
- package/plugins/lisa-expo-cursor/skills/jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-expo-devin/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-expo-devin/skills/jira-journey/SKILL.md +8 -0
- package/plugins/lisa-expo-devin/skills/jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/SKILL.md +18 -5
- package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/agents/openai.yaml +2 -2
- package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-rails/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-rails/skills/jira-evidence/agents/openai.yaml +2 -2
- package/plugins/lisa-rails/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-agy/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-rails-agy/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-rails-copilot/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-rails-cursor/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/lisa-rails-devin/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/agents/github-agent.md +1 -1
- package/plugins/src/base/skills/lisa-github-evidence/SKILL.md +19 -9
- package/plugins/src/base/skills/lisa-github-journey/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-implement/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-jira-evidence/SKILL.md +17 -4
- package/plugins/src/base/skills/lisa-jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/src/base/skills/lisa-jira-journey/SKILL.md +8 -0
- package/plugins/src/base/skills/lisa-jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/src/base/skills/lisa-linear-evidence/SKILL.md +3 -3
- package/plugins/src/base/skills/lisa-linear-journey/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-tracker-evidence/SKILL.md +4 -4
- package/plugins/src/base/skills/lisa-tracker-evidence/references/completion-authorization.md +32 -4
- package/plugins/src/base/skills/lisa-verify/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-verify-prd/SKILL.md +3 -3
- package/plugins/src/expo/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/src/expo/skills/jira-evidence/scripts/post-evidence.sh +22 -3
- package/plugins/src/expo/skills/jira-journey/SKILL.md +8 -0
- package/plugins/src/expo/skills/jira-journey/scripts/generate-templates.py +32 -1
- package/plugins/src/rails/skills/jira-evidence/SKILL.md +17 -4
- package/plugins/src/rails/skills/jira-evidence/scripts/post-evidence.sh +22 -3
|
@@ -209,7 +209,7 @@ The marked comment is the single canonical evidence comment for the PRD — a re
|
|
|
209
209
|
2. **AI disclosure** — lead with "PRD-level verification by Claude (AI agent, not a human)."
|
|
210
210
|
3. **Verdict line** — `shipped → verified — PASS`.
|
|
211
211
|
4. **Spec-conformance coverage matrix** — the section-by-section matrix from Phase 4 verbatim, with the `CONFORMS` verdict.
|
|
212
|
-
5. **Empirical proof artifacts** — the Phase 5 artifacts per surface: screenshots (upload via `gh release upload
|
|
212
|
+
5. **Empirical proof artifacts** — the Phase 5 artifacts per surface: screenshots (upload via `gh release upload "$RELEASE" <files> --clobber`, where `RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)`, and reference as plain URLs, per the `tracker-evidence` UI Evidence Checklist), request/response captures, query outputs, log excerpts, and the codified regression test(s) added.
|
|
213
213
|
6. **What was verified** — which PRD acceptance criteria each artifact covers, and the verification surface used.
|
|
214
214
|
|
|
215
215
|
Then emit the PASS output block (below).
|
|
@@ -280,7 +280,7 @@ Post a **failure report** comment back on the PRD, via the same vendor surface P
|
|
|
280
280
|
3. **Verdict line + round** — `shipped → ticketed — FAIL (re-opened for fixes)`, the cause (`CONFORMANCE_FAILED` or `EMPIRICAL_FAILED`), and `Round: N` — the count of failed verification rounds for this PRD. Read the prior in-place failure report's round and increment (start at 1). The loop **never auto-halts** on a high count, but surfacing it lets a human notice a PRD stuck across repeated fix-and-re-verify rounds.
|
|
281
281
|
4. **What failed, in plain language** — for each finding, name the **specific PRD requirement / acceptance criterion** that was not met, then **what was expected vs what was observed** (the empirical evidence: what was checked, what the shipped product did instead). One bullet per finding so product can follow each independently.
|
|
282
282
|
5. **Spec-conformance coverage matrix** — for a `CONFORMANCE_FAILED` cause, the section-by-section matrix from Phase 4 verbatim with the `PARTIAL`/`DIVERGES` verdict, so the missed/divergent/scope-crept rows are visible.
|
|
283
|
-
6. **Proof artifacts** — any captured empirical artifacts (screenshots uploaded via `gh release upload
|
|
283
|
+
6. **Proof artifacts** — any captured empirical artifacts (screenshots uploaded via `gh release upload "$RELEASE" <files> --clobber` to the configured evidence release and referenced as plain URLs per the `tracker-evidence` UI Evidence Checklist, request/response captures, query outputs, log excerpts).
|
|
284
284
|
7. **Fix issues** — a list of the fix issues created/referenced in 7.4 (filled in after 7.4 runs, or posted as a brief follow-up edit), so the report is the single product-facing index of "what's wrong and where it's being fixed."
|
|
285
285
|
|
|
286
286
|
### 7.4 — Create linked fix issues for the missing/incorrect behavior
|
|
@@ -381,7 +381,7 @@ shipped → ticketed (re-opened for fixes; round: N) fix tickets (ready): <
|
|
|
381
381
|
- `verification-lifecycle` — Phase 5 invokes it to run empirical verification of the shipped surface (classify → check tooling → plan → execute → codify → loop). It in turn invokes `codify-verification` and, for UI surfaces, `product-walkthrough`.
|
|
382
382
|
- `codify-verification` — turns each passing empirical verification into a regression test so the PRD's verified behavior cannot silently regress; invoked transitively via `verification-lifecycle`.
|
|
383
383
|
- `product-walkthrough` — drives the live product through a real browser to ground UI-surface verification and the evidence comment in what actually renders.
|
|
384
|
-
- `tracker-evidence` — the vendor-neutral evidence poster whose UI Evidence Checklist and
|
|
384
|
+
- `tracker-evidence` — the vendor-neutral evidence poster whose UI Evidence Checklist and evidence-release upload mechanics Phase 6.3 (PASS evidence) and Phase 7.3 (FAIL failure report) follow when commenting on the PRD.
|
|
385
385
|
- `tracker-write` — the vendor-neutral ticket writer Phase 7.4 invokes to create each linked fix issue (dispatching to `github-write-issue` / `jira-write-ticket` / `linear-write-issue` per config), so every fix issue clears the `tracker-validate` quality gate (Gherkin ACs, three-audience description, labels, relationships). This skill never hand-rolls issue creation.
|
|
386
386
|
- `prd-backlink` — the regenerate-in-place-via-marker idempotency pattern Phase 6.3 / 7.3 / 8 follow: it regenerates its `## Tickets` section from the current child set on every run (never appending) and dedupes by child-ref. The evidence/failure-report sentinel comments here apply the same discipline to PRD comments.
|
|
387
387
|
- `github-prd-intake` — the no-op-if-already-at-target-role guard Phase 6.2 / 7.2 / 8 mirror: its Phase 3f.1 rollup is a no-op on a PRD already carrying `$SHIPPED`, and it enforces the single-label invariant after every transition. This skill applies the same guard to the `verified` / `ticketed` hops.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: jira-evidence
|
|
3
|
-
description: "Upload screenshots to
|
|
3
|
+
description: "Upload screenshots to the…"
|
|
4
4
|
---
|
|
5
|
-
Upload screenshots to GitHub pr-assets
|
|
5
|
+
Upload screenshots to the configured GitHub evidence release (default pr-assets), update PR description with evidence, upload attachments to JIRA, post wiki markup comment, and move ticket to the configured review status only when `jira.workflow.review` is set (otherwise leave it in `claimed`). Reusable by any skill that captures screenshots and generates evidence/comment.txt + evidence/comment.md.
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
# JIRA Evidence Posting
|
|
@@ -45,10 +45,18 @@ bash .claude/skills/jira-evidence/scripts/post-evidence.sh <TICKET_ID> <EVIDENCE
|
|
|
45
45
|
bash .claude/skills/jira-evidence/scripts/post-evidence.sh PROJ-123 ./evidence 42
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
+
When `generate-templates.py` wrote the evidence links, run both with the same exported release so the links match the uploads:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
export LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
`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.
|
|
55
|
+
|
|
48
56
|
## What It Does
|
|
49
57
|
|
|
50
58
|
1. **Read JIRA config** — Resolves the jira-cli config (`$PROJECT_DIR/.lisa/jira-cli/.config.yml` first, then `~/.config/.jira/.config.yml`, announcing the fallback) and reads `server` and `login` from it dynamically — no hardcoded values. Exits 1 naming both paths when neither exists. The same resolved path is then passed to `jira issue move` as `--config`, so the CLI cannot end up on a different config than the one this script parsed.
|
|
51
|
-
2. **Upload to
|
|
59
|
+
2. **Upload to the configured evidence release (`node scripts/lisa-work-item.mjs evidence-release --ensure` prints it; default `pr-assets`)** — Uploads `NN-name-viewport.png` screenshots via `gh release upload --clobber`, creating CDN URLs that render in GitHub markdown
|
|
52
60
|
3. **Update PR description** — Replaces or appends the `## Evidence` section in the PR body using `gh pr edit`
|
|
53
61
|
4. **Upload JIRA attachments** — Uploads screenshots via REST API v3 so `!filename.png!` wiki markup renders inline
|
|
54
62
|
5. **Post JIRA comment** — Posts `comment.txt` as a new comment via REST API v2 (wiki markup with embedded images)
|
|
@@ -71,12 +79,17 @@ evidence/
|
|
|
71
79
|
|
|
72
80
|
### Images not rendering in GitHub PR
|
|
73
81
|
|
|
74
|
-
Images must be in the
|
|
82
|
+
Images (never committed to git) 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
|
|
83
|
+
check it is not at GitHub's 1000-file limit, with:
|
|
75
84
|
|
|
76
85
|
```bash
|
|
77
|
-
|
|
86
|
+
node scripts/lisa-work-item.mjs evidence-release --ensure
|
|
78
87
|
```
|
|
79
88
|
|
|
89
|
+
If it reports the release is nearly full, set
|
|
90
|
+
`verification.completion.evidenceRelease` in `.lisa.config.json` to a rotating
|
|
91
|
+
name such as `pr-assets-{YYYY-MM}`; older evidence keeps validating.
|
|
92
|
+
|
|
80
93
|
### JIRA comment shows `!filename.png!` as text (not image)
|
|
81
94
|
|
|
82
95
|
The screenshot must be uploaded as a JIRA attachment before posting the comment. The script uploads attachments first then posts the comment — always in that order.
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
# - gh CLI authenticated
|
|
15
15
|
#
|
|
16
16
|
# What it does:
|
|
17
|
-
# 1. Uploads evidence files to the
|
|
17
|
+
# 1. Uploads evidence files to the configured GitHub evidence release
|
|
18
|
+
# (default 'pr-assets'; see verification.completion.evidenceRelease)
|
|
18
19
|
# 2. Updates the GitHub PR description with evidence/comment.md
|
|
19
20
|
# 3. Uploads image evidence as JIRA attachments
|
|
20
21
|
# 4. Posts/updates the JIRA comment with evidence/comment.txt
|
|
@@ -106,7 +107,25 @@ PY_ORIGIN
|
|
|
106
107
|
)
|
|
107
108
|
|
|
108
109
|
GH_REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
|
|
109
|
-
|
|
110
|
+
# The evidence release comes from the one resolver every writer shares, so a
|
|
111
|
+
# project's `verification.completion.evidenceRelease` (for example the rotating
|
|
112
|
+
# `pr-assets-{YYYY-MM}`) moves this upload too. GitHub caps a release at 1000
|
|
113
|
+
# assets; a hardcoded `pr-assets` filled up and every upload then failed with a
|
|
114
|
+
# raw HTTP 422 (CodySwannGT/lisa#4692). `--ensure` creates the release when it
|
|
115
|
+
# is absent and refuses, in plain words, when it is nearly full. A host whose
|
|
116
|
+
# Lisa predates the resolver keeps the legacy release.
|
|
117
|
+
#
|
|
118
|
+
# LISA_EVIDENCE_RELEASE, when set, pins the release for this run so the links
|
|
119
|
+
# generate-templates.py wrote match these uploads. The resolver still checks
|
|
120
|
+
# that name and the release's capacity; it reads the variable itself.
|
|
121
|
+
RELEASE_TAG="${LISA_EVIDENCE_RELEASE:-pr-assets}"
|
|
122
|
+
WORK_ITEM_CLI="${PROJECT_DIR}/scripts/lisa-work-item.mjs"
|
|
123
|
+
if [[ -f "$WORK_ITEM_CLI" ]]; then
|
|
124
|
+
if ! RELEASE_TAG=$(cd "$PROJECT_DIR" && node "$WORK_ITEM_CLI" evidence-release --ensure); then
|
|
125
|
+
echo "ERROR: the GitHub evidence release is not usable (see the message above); no evidence was uploaded." >&2
|
|
126
|
+
exit 1
|
|
127
|
+
fi
|
|
128
|
+
fi
|
|
110
129
|
|
|
111
130
|
if [[ -z "${JIRA_API_TOKEN:-}" ]]; then
|
|
112
131
|
echo "ERROR: JIRA_API_TOKEN environment variable is not set" >&2
|
|
@@ -137,7 +156,7 @@ echo "Found ${#SCREENSHOTS[@]} screenshots and ${#TEXT_EVIDENCE[@]} text evidenc
|
|
|
137
156
|
# Compute JIRA auth early (used in steps 3 and 4)
|
|
138
157
|
JIRA_AUTH=$(printf '%s' "$JIRA_USER:$JIRA_API_TOKEN" | base64 | tr -d '\n')
|
|
139
158
|
|
|
140
|
-
# ── Step 1: Upload to GitHub
|
|
159
|
+
# ── Step 1: Upload to the GitHub evidence release ───────────────────────────
|
|
141
160
|
echo ""
|
|
142
161
|
echo "==> Uploading to GitHub release '$RELEASE_TAG'..."
|
|
143
162
|
|
|
@@ -132,6 +132,14 @@ This generates `evidence/comment.txt` (JIRA wiki markup) and `evidence/comment.m
|
|
|
132
132
|
- The verification journey steps
|
|
133
133
|
- Assertions as verification results
|
|
134
134
|
|
|
135
|
+
The GitHub links point at the evidence release. Resolve it once, before generating templates, and keep it exported for Step 5 so the links and the uploads name the same release even across a month boundary:
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
export LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
`--ensure` creates the release when it is missing and stops, in plain words, when it is nearly full. Both `generate-templates.py` and `post-evidence.sh` read `LISA_EVIDENCE_RELEASE`; `post-evidence.sh` still validates and capacity-checks it. Without it they resolve the configured release themselves (default `pr-assets`).
|
|
142
|
+
|
|
135
143
|
### Step 5: Post Evidence
|
|
136
144
|
|
|
137
145
|
Use the jira-evidence skill to post everything:
|
|
@@ -21,6 +21,37 @@ import sys
|
|
|
21
21
|
from pathlib import Path
|
|
22
22
|
|
|
23
23
|
|
|
24
|
+
def evidence_release():
|
|
25
|
+
"""The GitHub release evidence is uploaded to, matching post-evidence.sh.
|
|
26
|
+
|
|
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.
|
|
32
|
+
"""
|
|
33
|
+
configured = os.environ.get("LISA_EVIDENCE_RELEASE", "").strip()
|
|
34
|
+
if configured:
|
|
35
|
+
return configured
|
|
36
|
+
try:
|
|
37
|
+
root = subprocess.run(
|
|
38
|
+
["git", "rev-parse", "--show-toplevel"],
|
|
39
|
+
capture_output=True, text=True, check=True,
|
|
40
|
+
).stdout.strip()
|
|
41
|
+
except (OSError, subprocess.CalledProcessError):
|
|
42
|
+
root = os.getcwd()
|
|
43
|
+
cli = Path(root) / "scripts" / "lisa-work-item.mjs"
|
|
44
|
+
if cli.is_file():
|
|
45
|
+
result = subprocess.run(
|
|
46
|
+
["node", str(cli), "evidence-release"],
|
|
47
|
+
capture_output=True, text=True, cwd=root,
|
|
48
|
+
)
|
|
49
|
+
if result.returncode != 0:
|
|
50
|
+
sys.exit(f"ERROR: could not resolve the evidence release: {result.stderr.strip()}")
|
|
51
|
+
return result.stdout.strip()
|
|
52
|
+
return "pr-assets"
|
|
53
|
+
|
|
54
|
+
|
|
24
55
|
def get_jira_server():
|
|
25
56
|
"""Read JIRA server URL from jira-cli config."""
|
|
26
57
|
config_path = Path.home() / ".config" / ".jira" / ".config.yml"
|
|
@@ -162,7 +193,7 @@ def generate_jira_wiki(ticket_id, pr_number, branch, screenshots, journey, gh_re
|
|
|
162
193
|
def generate_github_md(ticket_id, pr_number, branch, screenshots, journey, gh_repo):
|
|
163
194
|
"""Generate GitHub markdown comment."""
|
|
164
195
|
jira_server = get_jira_server()
|
|
165
|
-
release_base = f"https://github.com/{gh_repo}/releases/download/
|
|
196
|
+
release_base = f"https://github.com/{gh_repo}/releases/download/{evidence_release()}"
|
|
166
197
|
|
|
167
198
|
lines = []
|
|
168
199
|
lines.append(f"## Evidence — PR #{pr_number}")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: jira-evidence
|
|
3
|
-
description: "Upload screenshots to GitHub pr-assets
|
|
3
|
+
description: "Upload screenshots to the configured GitHub evidence release (default pr-assets), update PR description with evidence, upload attachments to JIRA, post wiki markup comment, and move ticket to the configured review status only when `jira.workflow.review` is set (otherwise leave it in `claimed`). Reusable by any skill that captures screenshots and generates evidence/comment.txt + evidence/comment.md."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# JIRA Evidence Posting
|
|
@@ -43,10 +43,18 @@ bash .claude/skills/jira-evidence/scripts/post-evidence.sh <TICKET_ID> <EVIDENCE
|
|
|
43
43
|
bash .claude/skills/jira-evidence/scripts/post-evidence.sh PROJ-123 ./evidence 42
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
+
When `generate-templates.py` wrote the evidence links, run both with the same exported release so the links match the uploads:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
export LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
`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.
|
|
53
|
+
|
|
46
54
|
## What It Does
|
|
47
55
|
|
|
48
56
|
1. **Read JIRA config** — Resolves the jira-cli config (`$PROJECT_DIR/.lisa/jira-cli/.config.yml` first, then `~/.config/.jira/.config.yml`, announcing the fallback) and reads `server` and `login` from it dynamically — no hardcoded values. Exits 1 naming both paths when neither exists. The same resolved path is then passed to `jira issue move` as `--config`, so the CLI cannot end up on a different config than the one this script parsed.
|
|
49
|
-
2. **Upload to
|
|
57
|
+
2. **Upload to the configured evidence release (`node scripts/lisa-work-item.mjs evidence-release --ensure` prints it; default `pr-assets`)** — Uploads `NN-name-viewport.png` screenshots via `gh release upload --clobber`, creating CDN URLs that render in GitHub markdown
|
|
50
58
|
3. **Update PR description** — Replaces or appends the `## Evidence` section in the PR body using `gh pr edit`
|
|
51
59
|
4. **Upload JIRA attachments** — Uploads screenshots via REST API v3 so `!filename.png!` wiki markup renders inline
|
|
52
60
|
5. **Post JIRA comment** — Posts `comment.txt` as a new comment via REST API v2 (wiki markup with embedded images)
|
|
@@ -69,12 +77,17 @@ evidence/
|
|
|
69
77
|
|
|
70
78
|
### Images not rendering in GitHub PR
|
|
71
79
|
|
|
72
|
-
Images must be in the
|
|
80
|
+
Images (never committed to git) 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
|
|
81
|
+
check it is not at GitHub's 1000-file limit, with:
|
|
73
82
|
|
|
74
83
|
```bash
|
|
75
|
-
|
|
84
|
+
node scripts/lisa-work-item.mjs evidence-release --ensure
|
|
76
85
|
```
|
|
77
86
|
|
|
87
|
+
If it reports the release is nearly full, set
|
|
88
|
+
`verification.completion.evidenceRelease` in `.lisa.config.json` to a rotating
|
|
89
|
+
name such as `pr-assets-{YYYY-MM}`; older evidence keeps validating.
|
|
90
|
+
|
|
78
91
|
### JIRA comment shows `!filename.png!` as text (not image)
|
|
79
92
|
|
|
80
93
|
The screenshot must be uploaded as a JIRA attachment before posting the comment. The script uploads attachments first then posts the comment — always in that order.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
display_name: "Jira Evidence"
|
|
2
|
-
short_description: "Upload screenshots to GitHub pr-assets
|
|
2
|
+
short_description: "Upload screenshots to the configured GitHub evidence release (default pr-assets), update PR description with evidence, upload attachments…"
|
|
3
3
|
default_prompt:
|
|
4
|
-
- "Use $jira-evidence: Upload screenshots to GitHub pr-assets
|
|
4
|
+
- "Use $jira-evidence: Upload screenshots to the configured GitHub evidence release (default pr-assets), update PR description with evidence, upload attachments…."
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
# - gh CLI authenticated
|
|
15
15
|
#
|
|
16
16
|
# What it does:
|
|
17
|
-
# 1. Uploads evidence files to the
|
|
17
|
+
# 1. Uploads evidence files to the configured GitHub evidence release
|
|
18
|
+
# (default 'pr-assets'; see verification.completion.evidenceRelease)
|
|
18
19
|
# 2. Updates the GitHub PR description with evidence/comment.md
|
|
19
20
|
# 3. Uploads image evidence as JIRA attachments
|
|
20
21
|
# 4. Posts/updates the JIRA comment with evidence/comment.txt
|
|
@@ -106,7 +107,25 @@ PY_ORIGIN
|
|
|
106
107
|
)
|
|
107
108
|
|
|
108
109
|
GH_REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
|
|
109
|
-
|
|
110
|
+
# The evidence release comes from the one resolver every writer shares, so a
|
|
111
|
+
# project's `verification.completion.evidenceRelease` (for example the rotating
|
|
112
|
+
# `pr-assets-{YYYY-MM}`) moves this upload too. GitHub caps a release at 1000
|
|
113
|
+
# assets; a hardcoded `pr-assets` filled up and every upload then failed with a
|
|
114
|
+
# raw HTTP 422 (CodySwannGT/lisa#4692). `--ensure` creates the release when it
|
|
115
|
+
# is absent and refuses, in plain words, when it is nearly full. A host whose
|
|
116
|
+
# Lisa predates the resolver keeps the legacy release.
|
|
117
|
+
#
|
|
118
|
+
# LISA_EVIDENCE_RELEASE, when set, pins the release for this run so the links
|
|
119
|
+
# generate-templates.py wrote match these uploads. The resolver still checks
|
|
120
|
+
# that name and the release's capacity; it reads the variable itself.
|
|
121
|
+
RELEASE_TAG="${LISA_EVIDENCE_RELEASE:-pr-assets}"
|
|
122
|
+
WORK_ITEM_CLI="${PROJECT_DIR}/scripts/lisa-work-item.mjs"
|
|
123
|
+
if [[ -f "$WORK_ITEM_CLI" ]]; then
|
|
124
|
+
if ! RELEASE_TAG=$(cd "$PROJECT_DIR" && node "$WORK_ITEM_CLI" evidence-release --ensure); then
|
|
125
|
+
echo "ERROR: the GitHub evidence release is not usable (see the message above); no evidence was uploaded." >&2
|
|
126
|
+
exit 1
|
|
127
|
+
fi
|
|
128
|
+
fi
|
|
110
129
|
|
|
111
130
|
if [[ -z "${JIRA_API_TOKEN:-}" ]]; then
|
|
112
131
|
echo "ERROR: JIRA_API_TOKEN environment variable is not set" >&2
|
|
@@ -137,7 +156,7 @@ echo "Found ${#SCREENSHOTS[@]} screenshots and ${#TEXT_EVIDENCE[@]} text evidenc
|
|
|
137
156
|
# Compute JIRA auth early (used in steps 3 and 4)
|
|
138
157
|
JIRA_AUTH=$(printf '%s' "$JIRA_USER:$JIRA_API_TOKEN" | base64 | tr -d '\n')
|
|
139
158
|
|
|
140
|
-
# ── Step 1: Upload to GitHub
|
|
159
|
+
# ── Step 1: Upload to the GitHub evidence release ───────────────────────────
|
|
141
160
|
echo ""
|
|
142
161
|
echo "==> Uploading to GitHub release '$RELEASE_TAG'..."
|
|
143
162
|
|
|
@@ -130,6 +130,14 @@ This generates `evidence/comment.txt` (JIRA wiki markup) and `evidence/comment.m
|
|
|
130
130
|
- The verification journey steps
|
|
131
131
|
- Assertions as verification results
|
|
132
132
|
|
|
133
|
+
The GitHub links point at the evidence release. Resolve it once, before generating templates, and keep it exported for Step 5 so the links and the uploads name the same release even across a month boundary:
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
export LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
`--ensure` creates the release when it is missing and stops, in plain words, when it is nearly full. Both `generate-templates.py` and `post-evidence.sh` read `LISA_EVIDENCE_RELEASE`; `post-evidence.sh` still validates and capacity-checks it. Without it they resolve the configured release themselves (default `pr-assets`).
|
|
140
|
+
|
|
133
141
|
### Step 5: Post Evidence
|
|
134
142
|
|
|
135
143
|
Use the jira-evidence skill to post everything:
|
|
@@ -21,6 +21,37 @@ import sys
|
|
|
21
21
|
from pathlib import Path
|
|
22
22
|
|
|
23
23
|
|
|
24
|
+
def evidence_release():
|
|
25
|
+
"""The GitHub release evidence is uploaded to, matching post-evidence.sh.
|
|
26
|
+
|
|
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.
|
|
32
|
+
"""
|
|
33
|
+
configured = os.environ.get("LISA_EVIDENCE_RELEASE", "").strip()
|
|
34
|
+
if configured:
|
|
35
|
+
return configured
|
|
36
|
+
try:
|
|
37
|
+
root = subprocess.run(
|
|
38
|
+
["git", "rev-parse", "--show-toplevel"],
|
|
39
|
+
capture_output=True, text=True, check=True,
|
|
40
|
+
).stdout.strip()
|
|
41
|
+
except (OSError, subprocess.CalledProcessError):
|
|
42
|
+
root = os.getcwd()
|
|
43
|
+
cli = Path(root) / "scripts" / "lisa-work-item.mjs"
|
|
44
|
+
if cli.is_file():
|
|
45
|
+
result = subprocess.run(
|
|
46
|
+
["node", str(cli), "evidence-release"],
|
|
47
|
+
capture_output=True, text=True, cwd=root,
|
|
48
|
+
)
|
|
49
|
+
if result.returncode != 0:
|
|
50
|
+
sys.exit(f"ERROR: could not resolve the evidence release: {result.stderr.strip()}")
|
|
51
|
+
return result.stdout.strip()
|
|
52
|
+
return "pr-assets"
|
|
53
|
+
|
|
54
|
+
|
|
24
55
|
def get_jira_server():
|
|
25
56
|
"""Read JIRA server URL from jira-cli config."""
|
|
26
57
|
config_path = Path.home() / ".config" / ".jira" / ".config.yml"
|
|
@@ -162,7 +193,7 @@ def generate_jira_wiki(ticket_id, pr_number, branch, screenshots, journey, gh_re
|
|
|
162
193
|
def generate_github_md(ticket_id, pr_number, branch, screenshots, journey, gh_repo):
|
|
163
194
|
"""Generate GitHub markdown comment."""
|
|
164
195
|
jira_server = get_jira_server()
|
|
165
|
-
release_base = f"https://github.com/{gh_repo}/releases/download/
|
|
196
|
+
release_base = f"https://github.com/{gh_repo}/releases/download/{evidence_release()}"
|
|
166
197
|
|
|
167
198
|
lines = []
|
|
168
199
|
lines.append(f"## Evidence — PR #{pr_number}")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: jira-evidence
|
|
3
|
-
description: "Upload screenshots to GitHub pr-assets
|
|
3
|
+
description: "Upload screenshots to the configured GitHub evidence release (default pr-assets), update PR description with evidence, upload attachments to JIRA, post wiki markup comment, and move ticket to the configured review status only when `jira.workflow.review` is set (otherwise leave it in `claimed`). Reusable by any skill that captures screenshots and generates evidence/comment.txt + evidence/comment.md."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# JIRA Evidence Posting
|
|
@@ -43,10 +43,18 @@ bash .claude/skills/jira-evidence/scripts/post-evidence.sh <TICKET_ID> <EVIDENCE
|
|
|
43
43
|
bash .claude/skills/jira-evidence/scripts/post-evidence.sh PROJ-123 ./evidence 42
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
+
When `generate-templates.py` wrote the evidence links, run both with the same exported release so the links match the uploads:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
export LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
`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.
|
|
53
|
+
|
|
46
54
|
## What It Does
|
|
47
55
|
|
|
48
56
|
1. **Read JIRA config** — Resolves the jira-cli config (`$PROJECT_DIR/.lisa/jira-cli/.config.yml` first, then `~/.config/.jira/.config.yml`, announcing the fallback) and reads `server` and `login` from it dynamically — no hardcoded values. Exits 1 naming both paths when neither exists. The same resolved path is then passed to `jira issue move` as `--config`, so the CLI cannot end up on a different config than the one this script parsed.
|
|
49
|
-
2. **Upload to
|
|
57
|
+
2. **Upload to the configured evidence release (`node scripts/lisa-work-item.mjs evidence-release --ensure` prints it; default `pr-assets`)** — Uploads `NN-name-viewport.png` screenshots via `gh release upload --clobber`, creating CDN URLs that render in GitHub markdown
|
|
50
58
|
3. **Update PR description** — Replaces or appends the `## Evidence` section in the PR body using `gh pr edit`
|
|
51
59
|
4. **Upload JIRA attachments** — Uploads screenshots via REST API v3 so `!filename.png!` wiki markup renders inline
|
|
52
60
|
5. **Post JIRA comment** — Posts `comment.txt` as a new comment via REST API v2 (wiki markup with embedded images)
|
|
@@ -69,12 +77,17 @@ evidence/
|
|
|
69
77
|
|
|
70
78
|
### Images not rendering in GitHub PR
|
|
71
79
|
|
|
72
|
-
Images must be in the
|
|
80
|
+
Images (never committed to git) 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
|
|
81
|
+
check it is not at GitHub's 1000-file limit, with:
|
|
73
82
|
|
|
74
83
|
```bash
|
|
75
|
-
|
|
84
|
+
node scripts/lisa-work-item.mjs evidence-release --ensure
|
|
76
85
|
```
|
|
77
86
|
|
|
87
|
+
If it reports the release is nearly full, set
|
|
88
|
+
`verification.completion.evidenceRelease` in `.lisa.config.json` to a rotating
|
|
89
|
+
name such as `pr-assets-{YYYY-MM}`; older evidence keeps validating.
|
|
90
|
+
|
|
78
91
|
### JIRA comment shows `!filename.png!` as text (not image)
|
|
79
92
|
|
|
80
93
|
The screenshot must be uploaded as a JIRA attachment before posting the comment. The script uploads attachments first then posts the comment — always in that order.
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
# - gh CLI authenticated
|
|
15
15
|
#
|
|
16
16
|
# What it does:
|
|
17
|
-
# 1. Uploads evidence files to the
|
|
17
|
+
# 1. Uploads evidence files to the configured GitHub evidence release
|
|
18
|
+
# (default 'pr-assets'; see verification.completion.evidenceRelease)
|
|
18
19
|
# 2. Updates the GitHub PR description with evidence/comment.md
|
|
19
20
|
# 3. Uploads image evidence as JIRA attachments
|
|
20
21
|
# 4. Posts/updates the JIRA comment with evidence/comment.txt
|
|
@@ -106,7 +107,25 @@ PY_ORIGIN
|
|
|
106
107
|
)
|
|
107
108
|
|
|
108
109
|
GH_REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
|
|
109
|
-
|
|
110
|
+
# The evidence release comes from the one resolver every writer shares, so a
|
|
111
|
+
# project's `verification.completion.evidenceRelease` (for example the rotating
|
|
112
|
+
# `pr-assets-{YYYY-MM}`) moves this upload too. GitHub caps a release at 1000
|
|
113
|
+
# assets; a hardcoded `pr-assets` filled up and every upload then failed with a
|
|
114
|
+
# raw HTTP 422 (CodySwannGT/lisa#4692). `--ensure` creates the release when it
|
|
115
|
+
# is absent and refuses, in plain words, when it is nearly full. A host whose
|
|
116
|
+
# Lisa predates the resolver keeps the legacy release.
|
|
117
|
+
#
|
|
118
|
+
# LISA_EVIDENCE_RELEASE, when set, pins the release for this run so the links
|
|
119
|
+
# generate-templates.py wrote match these uploads. The resolver still checks
|
|
120
|
+
# that name and the release's capacity; it reads the variable itself.
|
|
121
|
+
RELEASE_TAG="${LISA_EVIDENCE_RELEASE:-pr-assets}"
|
|
122
|
+
WORK_ITEM_CLI="${PROJECT_DIR}/scripts/lisa-work-item.mjs"
|
|
123
|
+
if [[ -f "$WORK_ITEM_CLI" ]]; then
|
|
124
|
+
if ! RELEASE_TAG=$(cd "$PROJECT_DIR" && node "$WORK_ITEM_CLI" evidence-release --ensure); then
|
|
125
|
+
echo "ERROR: the GitHub evidence release is not usable (see the message above); no evidence was uploaded." >&2
|
|
126
|
+
exit 1
|
|
127
|
+
fi
|
|
128
|
+
fi
|
|
110
129
|
|
|
111
130
|
if [[ -z "${JIRA_API_TOKEN:-}" ]]; then
|
|
112
131
|
echo "ERROR: JIRA_API_TOKEN environment variable is not set" >&2
|
|
@@ -137,7 +156,7 @@ echo "Found ${#SCREENSHOTS[@]} screenshots and ${#TEXT_EVIDENCE[@]} text evidenc
|
|
|
137
156
|
# Compute JIRA auth early (used in steps 3 and 4)
|
|
138
157
|
JIRA_AUTH=$(printf '%s' "$JIRA_USER:$JIRA_API_TOKEN" | base64 | tr -d '\n')
|
|
139
158
|
|
|
140
|
-
# ── Step 1: Upload to GitHub
|
|
159
|
+
# ── Step 1: Upload to the GitHub evidence release ───────────────────────────
|
|
141
160
|
echo ""
|
|
142
161
|
echo "==> Uploading to GitHub release '$RELEASE_TAG'..."
|
|
143
162
|
|
|
@@ -130,6 +130,14 @@ This generates `evidence/comment.txt` (JIRA wiki markup) and `evidence/comment.m
|
|
|
130
130
|
- The verification journey steps
|
|
131
131
|
- Assertions as verification results
|
|
132
132
|
|
|
133
|
+
The GitHub links point at the evidence release. Resolve it once, before generating templates, and keep it exported for Step 5 so the links and the uploads name the same release even across a month boundary:
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
export LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
`--ensure` creates the release when it is missing and stops, in plain words, when it is nearly full. Both `generate-templates.py` and `post-evidence.sh` read `LISA_EVIDENCE_RELEASE`; `post-evidence.sh` still validates and capacity-checks it. Without it they resolve the configured release themselves (default `pr-assets`).
|
|
140
|
+
|
|
133
141
|
### Step 5: Post Evidence
|
|
134
142
|
|
|
135
143
|
Use the jira-evidence skill to post everything:
|
|
@@ -21,6 +21,37 @@ import sys
|
|
|
21
21
|
from pathlib import Path
|
|
22
22
|
|
|
23
23
|
|
|
24
|
+
def evidence_release():
|
|
25
|
+
"""The GitHub release evidence is uploaded to, matching post-evidence.sh.
|
|
26
|
+
|
|
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.
|
|
32
|
+
"""
|
|
33
|
+
configured = os.environ.get("LISA_EVIDENCE_RELEASE", "").strip()
|
|
34
|
+
if configured:
|
|
35
|
+
return configured
|
|
36
|
+
try:
|
|
37
|
+
root = subprocess.run(
|
|
38
|
+
["git", "rev-parse", "--show-toplevel"],
|
|
39
|
+
capture_output=True, text=True, check=True,
|
|
40
|
+
).stdout.strip()
|
|
41
|
+
except (OSError, subprocess.CalledProcessError):
|
|
42
|
+
root = os.getcwd()
|
|
43
|
+
cli = Path(root) / "scripts" / "lisa-work-item.mjs"
|
|
44
|
+
if cli.is_file():
|
|
45
|
+
result = subprocess.run(
|
|
46
|
+
["node", str(cli), "evidence-release"],
|
|
47
|
+
capture_output=True, text=True, cwd=root,
|
|
48
|
+
)
|
|
49
|
+
if result.returncode != 0:
|
|
50
|
+
sys.exit(f"ERROR: could not resolve the evidence release: {result.stderr.strip()}")
|
|
51
|
+
return result.stdout.strip()
|
|
52
|
+
return "pr-assets"
|
|
53
|
+
|
|
54
|
+
|
|
24
55
|
def get_jira_server():
|
|
25
56
|
"""Read JIRA server URL from jira-cli config."""
|
|
26
57
|
config_path = Path.home() / ".config" / ".jira" / ".config.yml"
|
|
@@ -162,7 +193,7 @@ def generate_jira_wiki(ticket_id, pr_number, branch, screenshots, journey, gh_re
|
|
|
162
193
|
def generate_github_md(ticket_id, pr_number, branch, screenshots, journey, gh_repo):
|
|
163
194
|
"""Generate GitHub markdown comment."""
|
|
164
195
|
jira_server = get_jira_server()
|
|
165
|
-
release_base = f"https://github.com/{gh_repo}/releases/download/
|
|
196
|
+
release_base = f"https://github.com/{gh_repo}/releases/download/{evidence_release()}"
|
|
166
197
|
|
|
167
198
|
lines = []
|
|
168
199
|
lines.append(f"## Evidence — PR #{pr_number}")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: jira-evidence
|
|
3
|
-
description: "Upload screenshots to GitHub pr-assets
|
|
3
|
+
description: "Upload screenshots to the configured GitHub evidence release (default pr-assets), update PR description with evidence, upload attachments to JIRA, post wiki markup comment, and move ticket to the configured review status only when `jira.workflow.review` is set (otherwise leave it in `claimed`). Reusable by any skill that captures screenshots and generates evidence/comment.txt + evidence/comment.md."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# JIRA Evidence Posting
|
|
@@ -43,10 +43,18 @@ bash .claude/skills/jira-evidence/scripts/post-evidence.sh <TICKET_ID> <EVIDENCE
|
|
|
43
43
|
bash .claude/skills/jira-evidence/scripts/post-evidence.sh PROJ-123 ./evidence 42
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
+
When `generate-templates.py` wrote the evidence links, run both with the same exported release so the links match the uploads:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
export LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
`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.
|
|
53
|
+
|
|
46
54
|
## What It Does
|
|
47
55
|
|
|
48
56
|
1. **Read JIRA config** — Resolves the jira-cli config (`$PROJECT_DIR/.lisa/jira-cli/.config.yml` first, then `~/.config/.jira/.config.yml`, announcing the fallback) and reads `server` and `login` from it dynamically — no hardcoded values. Exits 1 naming both paths when neither exists. The same resolved path is then passed to `jira issue move` as `--config`, so the CLI cannot end up on a different config than the one this script parsed.
|
|
49
|
-
2. **Upload to
|
|
57
|
+
2. **Upload to the configured evidence release (`node scripts/lisa-work-item.mjs evidence-release --ensure` prints it; default `pr-assets`)** — Uploads `NN-name-viewport.png` screenshots via `gh release upload --clobber`, creating CDN URLs that render in GitHub markdown
|
|
50
58
|
3. **Update PR description** — Replaces or appends the `## Evidence` section in the PR body using `gh pr edit`
|
|
51
59
|
4. **Upload JIRA attachments** — Uploads screenshots via REST API v3 so `!filename.png!` wiki markup renders inline
|
|
52
60
|
5. **Post JIRA comment** — Posts `comment.txt` as a new comment via REST API v2 (wiki markup with embedded images)
|
|
@@ -69,12 +77,17 @@ evidence/
|
|
|
69
77
|
|
|
70
78
|
### Images not rendering in GitHub PR
|
|
71
79
|
|
|
72
|
-
Images must be in the
|
|
80
|
+
Images (never committed to git) 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
|
|
81
|
+
check it is not at GitHub's 1000-file limit, with:
|
|
73
82
|
|
|
74
83
|
```bash
|
|
75
|
-
|
|
84
|
+
node scripts/lisa-work-item.mjs evidence-release --ensure
|
|
76
85
|
```
|
|
77
86
|
|
|
87
|
+
If it reports the release is nearly full, set
|
|
88
|
+
`verification.completion.evidenceRelease` in `.lisa.config.json` to a rotating
|
|
89
|
+
name such as `pr-assets-{YYYY-MM}`; older evidence keeps validating.
|
|
90
|
+
|
|
78
91
|
### JIRA comment shows `!filename.png!` as text (not image)
|
|
79
92
|
|
|
80
93
|
The screenshot must be uploaded as a JIRA attachment before posting the comment. The script uploads attachments first then posts the comment — always in that order.
|