@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: jira-evidence
|
|
3
|
-
description: "Upload evidence to GitHub pr-assets
|
|
3
|
+
description: "Upload evidence to the configured GitHub evidence release (default pr-assets), update PR description, upload attachments to JIRA, post 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 evidence 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 evidence files via `gh release upload --clobber`, creating CDN URLs
|
|
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 image evidence 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)
|
|
@@ -61,12 +69,17 @@ bash .claude/skills/jira-evidence/scripts/post-evidence.sh PROJ-123 ./evidence 4
|
|
|
61
69
|
|
|
62
70
|
### Images not rendering in GitHub PR
|
|
63
71
|
|
|
64
|
-
Images must be in the `pr-assets`
|
|
72
|
+
Images 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
|
|
73
|
+
check it is not at GitHub's 1000-file limit, with:
|
|
65
74
|
|
|
66
75
|
```bash
|
|
67
|
-
|
|
76
|
+
node scripts/lisa-work-item.mjs evidence-release --ensure
|
|
68
77
|
```
|
|
69
78
|
|
|
79
|
+
If it reports the release is nearly full, set
|
|
80
|
+
`verification.completion.evidenceRelease` in `.lisa.config.json` to a rotating
|
|
81
|
+
name such as `pr-assets-{YYYY-MM}`; older evidence keeps validating.
|
|
82
|
+
|
|
70
83
|
### JIRA comment shows `!filename.png!` as text (not image)
|
|
71
84
|
|
|
72
85
|
The screenshot must be uploaded as a JIRA attachment before posting the comment. The script uploads attachments first then posts the comment.
|
|
@@ -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
|
|
|
@@ -129,7 +129,7 @@ Use the `github-sync` skill to update the issue at these milestones:
|
|
|
129
129
|
### 7. Post Evidence at Completion
|
|
130
130
|
|
|
131
131
|
Use the `github-evidence` skill to:
|
|
132
|
-
- Upload verification evidence to the
|
|
132
|
+
- Upload verification evidence to the configured evidence release (`node scripts/lisa-work-item.mjs evidence-release --ensure` prints it; default `pr-assets`), in the implementation repo
|
|
133
133
|
- Update the PR description's `## Evidence` section
|
|
134
134
|
- Post a comment on the originating issue with the evidence summary
|
|
135
135
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: lisa-github-evidence
|
|
3
|
-
description: "Upload text evidence to the GitHub `pr-assets`
|
|
3
|
+
description: "Upload text evidence to the configured GitHub evidence release (default `pr-assets`), update PR description, and post a GitHub Issue comment with code blocks. Reusable by any skill that captures evidence and generates evidence/comment.md (and optionally evidence/comment.txt). The GitHub counterpart of lisa-jira-evidence."
|
|
4
4
|
allowed-tools: ["Bash"]
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -40,21 +40,30 @@ If either is missing, **refuse to post**: stop and report the missing Not-establ
|
|
|
40
40
|
|
|
41
41
|
Parse `ISSUE_REF` into `<issue-org>/<issue-repo>#<issue-number>`. Parse the local repo (where the PR lives) via `gh repo view --json nameWithOwner --jq '.nameWithOwner'`.
|
|
42
42
|
|
|
43
|
-
2. **
|
|
43
|
+
2. **Resolve and ensure the evidence release in the IMPLEMENTATION repo**
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
Evidence goes to the configured evidence release:
|
|
46
|
+
`verification.completion.evidenceRelease` in `.lisa.config.json`, default
|
|
47
|
+
`pr-assets`. A rotating name such as `pr-assets-{YYYY-MM}` keeps each
|
|
48
|
+
release under GitHub's 1000-file limit. It is the asset CDN for evidence
|
|
49
|
+
files; each PR's evidence carries the PR number prefix in the asset name to
|
|
50
|
+
keep it addressable. From the implementation repo's root:
|
|
46
51
|
|
|
47
52
|
```bash
|
|
48
|
-
|
|
49
|
-
|| gh release create pr-assets --repo <impl-org>/<impl-repo> --title "PR Assets" --notes "CDN for PR evidence"
|
|
53
|
+
RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure) || exit 1
|
|
50
54
|
```
|
|
51
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
|
|
58
|
+
without `scripts/lisa-work-item.mjs` uses `RELEASE=pr-assets`.
|
|
59
|
+
|
|
52
60
|
3. **Upload each evidence file**
|
|
53
61
|
|
|
54
62
|
```bash
|
|
55
63
|
(
|
|
56
64
|
set -e
|
|
57
65
|
export LC_ALL=C
|
|
66
|
+
: "${RELEASE:?Resolve the evidence release in step 2 first}"
|
|
58
67
|
upload_dir=$(mktemp -d "${TMPDIR:-/tmp}/lisa-github-evidence.XXXXXXXX")
|
|
59
68
|
trap 'rm -rf "$upload_dir"' EXIT
|
|
60
69
|
expected_names="$upload_dir/expected-names.txt"
|
|
@@ -75,11 +84,11 @@ If either is missing, **refuse to post**: stop and report the missing Not-establ
|
|
|
75
84
|
while IFS= read -r base; do
|
|
76
85
|
name="pr-${PR_NUMBER}-${base}"
|
|
77
86
|
cp "$EVIDENCE_DIR/$base" "$upload_dir/$name"
|
|
78
|
-
gh release upload
|
|
87
|
+
gh release upload "$RELEASE" --repo <impl-org>/<impl-repo> --clobber "$upload_dir/$name"
|
|
79
88
|
printf '%s\n' "$name" >> "$expected_names"
|
|
80
89
|
done < "$basenames"
|
|
81
90
|
|
|
82
|
-
gh release view
|
|
91
|
+
gh release view "$RELEASE" --repo <impl-org>/<impl-repo> \
|
|
83
92
|
--json assets --jq '.assets[].name' > "$upload_dir/asset-names.txt"
|
|
84
93
|
while IFS= read -r name; do
|
|
85
94
|
if ! grep -Fxq -- "$name" "$upload_dir/asset-names.txt"; then
|
|
@@ -110,7 +119,8 @@ If either is missing, **refuse to post**: stop and report the missing Not-establ
|
|
|
110
119
|
`--clobber` replaces an existing asset with that same PR-prefixed name.
|
|
111
120
|
|
|
112
121
|
Link to the actual name:
|
|
113
|
-
`https://github.com/<impl-org>/<impl-repo>/releases/download
|
|
122
|
+
`https://github.com/<impl-org>/<impl-repo>/releases/download/<release>/pr-<number>-<file>`,
|
|
123
|
+
where `<release>` is the `$RELEASE` resolved in step 2.
|
|
114
124
|
|
|
115
125
|
4. **Update the PR description**
|
|
116
126
|
|
|
@@ -159,7 +169,7 @@ Asset names in the release are prefixed with `pr-<number>-` so multiple PRs' evi
|
|
|
159
169
|
Check:
|
|
160
170
|
- `gh auth status` succeeds.
|
|
161
171
|
- The PR / issue refs are correct.
|
|
162
|
-
-
|
|
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).
|
|
163
173
|
|
|
164
174
|
### `gh issue edit` returns 404
|
|
165
175
|
|
|
@@ -102,7 +102,7 @@ Use `lisa-github-evidence` to post everything:
|
|
|
102
102
|
# Equivalent of: bash scripts/post-evidence.sh — but invoked via the Skill tool
|
|
103
103
|
```
|
|
104
104
|
|
|
105
|
-
Invoke the skill with `<ISSUE_REF> ./evidence <PR_NUMBER>`. It uploads the files to the `pr-assets`
|
|
105
|
+
Invoke the skill with `<ISSUE_REF> ./evidence <PR_NUMBER>`. It uploads the files to the configured evidence release (`node scripts/lisa-work-item.mjs evidence-release --ensure` prints it; default `pr-assets`), edits the PR's `## Evidence` section, and posts a comment on the issue. The build-intake owner performs the direct `claimed` → `done` lifecycle transition after success.
|
|
106
106
|
|
|
107
107
|
### Step 6: Verify
|
|
108
108
|
|
|
@@ -394,7 +394,7 @@ Before shutting down the team, execute the Verify flow:
|
|
|
394
394
|
12. Remote verification: `verification-specialist` verifies in target environment (same checks as local verification, but on remote), and refreshes the verdict (step 2a) to reflect the remote result. Resolve credentials through the `verification-lifecycle` lookup order before declaring any missing. If they remain genuinely unavailable, do not complete on artifact-only evidence: post a tracker comment naming every credential source checked and what could not be verified as a result, transition the work item to the configured blocked state, and apply the configured `needs-human` / `human-review` label (creating it when the tracker supports label creation and it is missing). The comment is what makes the escalation auditable — a label alone records that something stopped, not what was tried or why. Evidence must explicitly distinguish `verified empirically` from `artifact-only / verification deferred`.
|
|
395
395
|
13. `ops-specialist`: post-deploy health check via `lisa-monitor <env> --report-only`, monitor for errors in first minutes. `--report-only` is REQUIRED: it keeps the post-deploy check a pure health/audit report so monitor's standalone ticket-filing never fires inside this flow.
|
|
396
396
|
14. If remote verification fails, create a task for the agent team to find out why it failed, fix it and return to step 5. **Bound this loop**: after a small number of full fix→deploy→reverify cycles without reaching a passing remote verdict (treat ~3 as the ceiling unless the work item states otherwise), stop retrying — file a build-ready fix ticket, write the verdict with `status: "blocked"` and the diagnosis, and move the work item to blocked rather than looping indefinitely. The completion gate releases on a `blocked` verdict, so the flow ends with a recorded outcome instead of a silent spin or a self-declared success.
|
|
397
|
-
15. **Post evidence to the originating work item** via `lisa-tracker-evidence` (vendor-neutral; dispatches to `lisa-jira-evidence`, `lisa-github-evidence`, or `lisa-linear-evidence` per `.lisa.config.json` `tracker`), including the list of codified tests added on this branch. **If the work is UI-visible** (any verification step ran in a browser, or the change touches a user-facing surface), author `evidence/comment.md` per the **UI Evidence Checklist** in `lisa-tracker-evidence` — numbered live-session steps, one screenshot per step captured through the interactive browser controller and uploaded to the GitHub `pr-assets`
|
|
397
|
+
15. **Post evidence to the originating work item** via `lisa-tracker-evidence` (vendor-neutral; dispatches to `lisa-jira-evidence`, `lisa-github-evidence`, or `lisa-linear-evidence` per `.lisa.config.json` `tracker`), including the list of codified tests added on this branch. **If the work is UI-visible** (any verification step ran in a browser, or the change touches a user-facing surface), author `evidence/comment.md` per the **UI Evidence Checklist** in `lisa-tracker-evidence` — numbered live-session steps, one screenshot per step captured through the interactive browser controller and uploaded to the configured GitHub evidence release (default `pr-assets`) as plain URLs, and an explicit invitation to be corrected. This step is what makes the proof visible to a non-technical operator standing at the gate; a terminal work item with no posted evidence is an incomplete flow, not a finished one.
|
|
398
398
|
16. After true terminal completion — required merge/deploy/verification passed, usage/evidence and two-way PR linkage are recorded, and the work item is terminal — run `node scripts/lisa-work-item.mjs clear`, delete the work-item context file (`rm -f .lisa/work-item-context.md` from the worktree root) so comment-borne secrets do not outlive the work, and verify the worktree has no current binding and no context file. Do not clear on an interruption or blocked outcome; preserving the binding is what keeps resumed work attributable.
|
|
399
399
|
|
|
400
400
|
**Ticket status transitions throughout this flow are config-bound** per the **Tracker status vocabulary** section of the `config-resolution` rule: whoever performs the tracker write — the lead included, in runtimes where the tracker MCP is lead-only — may only target statuses named in the configured workflow map (`claimed`, `blocked`, env-keyed `done`, and `review`/`qa` when configured). Never adopt a status discovered from the tracker's live workflow; a lifecycle stage with no configured status gets a comment, not a transition.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: lisa-jira-evidence
|
|
3
|
-
description: "Upload text evidence to GitHub pr-assets
|
|
3
|
+
description: "Upload text evidence to the configured GitHub evidence release (default pr-assets), update PR description, post JIRA comment with code blocks, 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 evidence and generates evidence/comment.txt + evidence/comment.md."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# JIRA Evidence Posting
|
|
@@ -70,10 +70,18 @@ bash .claude/skills/jira-evidence/scripts/post-evidence.sh <TICKET_ID> <EVIDENCE
|
|
|
70
70
|
bash .claude/skills/jira-evidence/scripts/post-evidence.sh PROJ-123 ./evidence 42
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
+
When `generate-templates.py` wrote the evidence links, run both with the same exported release so the links match the uploads:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
export LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
`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.
|
|
80
|
+
|
|
73
81
|
## What It Does
|
|
74
82
|
|
|
75
83
|
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.
|
|
76
|
-
2. **Upload to
|
|
84
|
+
2. **Upload to the configured evidence release (`node scripts/lisa-work-item.mjs evidence-release --ensure` prints it; default `pr-assets`)** — Uploads evidence files via `gh release upload --clobber`
|
|
77
85
|
3. **Update PR description** — Replaces or appends the `## Evidence` section in the PR body
|
|
78
86
|
4. **Post JIRA comment** — Posts `comment.txt` as a new comment (wiki markup with code blocks)
|
|
79
87
|
5. **Move ticket to the configured review status** — Transitions the JIRA ticket to `$REVIEW` (default: `Code Review`).
|
|
@@ -95,12 +103,17 @@ evidence/
|
|
|
95
103
|
|
|
96
104
|
### Evidence not appearing in GitHub PR
|
|
97
105
|
|
|
98
|
-
Evidence files must be in the `pr-assets`
|
|
106
|
+
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
|
|
107
|
+
check it is not at GitHub's 1000-file limit, with:
|
|
99
108
|
|
|
100
109
|
```bash
|
|
101
|
-
|
|
110
|
+
node scripts/lisa-work-item.mjs evidence-release --ensure
|
|
102
111
|
```
|
|
103
112
|
|
|
113
|
+
If it reports the release is nearly full, set
|
|
114
|
+
`verification.completion.evidenceRelease` in `.lisa.config.json` to a rotating
|
|
115
|
+
name such as `pr-assets-{YYYY-MM}`; older evidence keeps validating.
|
|
116
|
+
|
|
104
117
|
### JIRA API returns 403
|
|
105
118
|
|
|
106
119
|
Ensure `JIRA_API_TOKEN` is set and `login` in the resolved jira-cli config (`.lisa/jira-cli/.config.yml`, else `~/.config/.jira/.config.yml`) matches your Atlassian account email.
|
|
@@ -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 @@ python3 .claude/skills/jira-journey/scripts/generate-templates.py \
|
|
|
132
132
|
|
|
133
133
|
This generates `evidence/comment.txt` (JIRA wiki markup) and `evidence/comment.md` (GitHub markdown) with evidence formatted as code blocks.
|
|
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:
|
|
@@ -27,6 +27,37 @@ from pathlib import Path
|
|
|
27
27
|
LOCAL_EVIDENCE_PATTERN = re.compile(r'\s*\[(SCREENSHOT|EVIDENCE):\s*[^\]]+\]')
|
|
28
28
|
|
|
29
29
|
|
|
30
|
+
def evidence_release():
|
|
31
|
+
"""The GitHub release evidence is uploaded to, matching post-evidence.sh.
|
|
32
|
+
|
|
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.
|
|
38
|
+
"""
|
|
39
|
+
configured = os.environ.get("LISA_EVIDENCE_RELEASE", "").strip()
|
|
40
|
+
if configured:
|
|
41
|
+
return configured
|
|
42
|
+
try:
|
|
43
|
+
root = subprocess.run(
|
|
44
|
+
["git", "rev-parse", "--show-toplevel"],
|
|
45
|
+
capture_output=True, text=True, check=True,
|
|
46
|
+
).stdout.strip()
|
|
47
|
+
except (OSError, subprocess.CalledProcessError):
|
|
48
|
+
root = os.getcwd()
|
|
49
|
+
cli = Path(root) / "scripts" / "lisa-work-item.mjs"
|
|
50
|
+
if cli.is_file():
|
|
51
|
+
result = subprocess.run(
|
|
52
|
+
["node", str(cli), "evidence-release"],
|
|
53
|
+
capture_output=True, text=True, cwd=root,
|
|
54
|
+
)
|
|
55
|
+
if result.returncode != 0:
|
|
56
|
+
sys.exit(f"ERROR: could not resolve the evidence release: {result.stderr.strip()}")
|
|
57
|
+
return result.stdout.strip()
|
|
58
|
+
return "pr-assets"
|
|
59
|
+
|
|
60
|
+
|
|
30
61
|
def get_jira_server():
|
|
31
62
|
"""Read JIRA server URL from jira-cli config."""
|
|
32
63
|
config_path = Path.home() / ".config" / ".jira" / ".config.yml"
|
|
@@ -130,7 +161,7 @@ def generate_jira_wiki(ticket_id, pr_number, branch, evidence_files, journey, gh
|
|
|
130
161
|
|
|
131
162
|
def generate_github_md(ticket_id, pr_number, branch, evidence_files, journey, gh_repo, jira_server):
|
|
132
163
|
"""Generate GitHub markdown comment with code block evidence."""
|
|
133
|
-
release_base = f"https://github.com/{gh_repo}/releases/download/
|
|
164
|
+
release_base = f"https://github.com/{gh_repo}/releases/download/{evidence_release()}"
|
|
134
165
|
|
|
135
166
|
lines = []
|
|
136
167
|
lines.append(f"## Evidence — PR #{pr_number}")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: lisa-linear-evidence
|
|
3
|
-
description: "Uploads text evidence to the GitHub `pr-assets`
|
|
3
|
+
description: "Uploads text evidence to the configured GitHub evidence release (default `pr-assets`), updates the PR description, posts a comment on the originating Linear Issue with code blocks, and transitions the Issue from the configured `claimed` workflow state to the configured `review` workflow state. Reusable by any skill that captures evidence and generates evidence/comment.txt + evidence/code-blocks.md. Linear counterpart of lisa-jira-evidence and lisa-github-evidence."
|
|
4
4
|
allowed-tools: ["Bash", "Skill"]
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -46,7 +46,7 @@ The caller must produce:
|
|
|
46
46
|
|
|
47
47
|
- `evidence/comment.txt` — the human-readable comment body posted on the Linear Issue.
|
|
48
48
|
- `evidence/code-blocks.md` — fenced code blocks (test outputs, command output, log excerpts) appended to the comment.
|
|
49
|
-
- `evidence/files/` (optional) — any text files that should be uploaded to the
|
|
49
|
+
- `evidence/files/` (optional) — any text files that should be uploaded to the configured evidence release (`node scripts/lisa-work-item.mjs evidence-release --ensure` prints it; default `pr-assets`) for permalink-style references.
|
|
50
50
|
|
|
51
51
|
If any of these are missing, stop and report.
|
|
52
52
|
|
|
@@ -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,
|
|
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.
|
|
71
71
|
|
|
72
72
|
For each uploaded file, capture the public release URL.
|
|
73
73
|
|
|
@@ -106,7 +106,7 @@ After capturing all evidence, build:
|
|
|
106
106
|
|
|
107
107
|
Invoke `lisa-linear-evidence` with `<IDENTIFIER> ./evidence` to:
|
|
108
108
|
|
|
109
|
-
1. Upload large evidence files to the
|
|
109
|
+
1. Upload large evidence files to the configured evidence release (`node scripts/lisa-work-item.mjs evidence-release --ensure` prints it; default `pr-assets`) (if files present in `evidence/files/`).
|
|
110
110
|
2. Update the GitHub PR description with an Evidence section (when a PR is open).
|
|
111
111
|
3. Post the Linear comment (`comment.txt` + collapsible `code-blocks.md`).
|
|
112
112
|
4. Transition labels: remove `In Progress`, add `In Review`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: lisa-tracker-evidence
|
|
3
|
-
description: "Vendor-neutral wrapper for posting verification evidence. Reads the required `tracker` from .lisa.config.json and dispatches to lisa-jira-evidence, lisa-github-evidence, or lisa-linear-evidence. Uploads evidence to the GitHub `pr-assets`
|
|
3
|
+
description: "Vendor-neutral wrapper for posting verification evidence. Reads the required `tracker` from .lisa.config.json and dispatches to lisa-jira-evidence, lisa-github-evidence, or lisa-linear-evidence. Uploads evidence to the configured GitHub evidence release (default `pr-assets`), updates the PR description, posts a comment on the originating ticket/issue, and leaves workflow transitions to the tracker-specific lifecycle owner."
|
|
4
4
|
allowed-tools: ["Skill", "Bash", "Read"]
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -27,12 +27,12 @@ omit the plugin rules tree; do not assume a runtime-specific rules directory.
|
|
|
27
27
|
- `github` → invoke `lisa-github-evidence` with `$ARGUMENTS` verbatim. Arg shape: `<ISSUE_REF> <EVIDENCE_DIR> <PR_NUMBER>` where `ISSUE_REF` is `org/repo#<number>` or a GitHub issue URL.
|
|
28
28
|
- `linear` → invoke `lisa-linear-evidence` with `$ARGUMENTS` verbatim. Arg shape: `<IDENTIFIER> <EVIDENCE_DIR>` where `IDENTIFIER` is a Linear Issue identifier (e.g., `ENG-123`).
|
|
29
29
|
- Anything else → stop and report `"Unknown tracker '<value>' in .lisa.config.json. Expected 'jira', 'github', or 'linear'."`
|
|
30
|
-
5. For supported GitHub/Linear production completion, after actual uploads and exact native readbacks, prepare the accepted-for-completion input from the observed source/delivery, schema2 verdicts, actual typed attachment pointers, complete requirement conjunction map, structured CONFORMS report, canonical Verify usage, linkage and explicit acceptance. Apply the shipped `completion-authorization` reference; the executable validates the contract in every installed host. Run `node scripts/lisa-work-item.mjs publish-completion-proof --ref <exact-work-item> --record <evidence-dir>/completion-record.json`. It uploads immutable hash-named acceptance bytes to the implementation repository's
|
|
30
|
+
5. For supported GitHub/Linear production completion, after actual uploads and exact native readbacks, prepare the accepted-for-completion input from the observed source/delivery, schema2 verdicts, actual typed attachment pointers, complete requirement conjunction map, structured CONFORMS report, canonical Verify usage, linkage and explicit acceptance. Apply the shipped `completion-authorization` reference; the executable validates the contract in every installed host. Run `node scripts/lisa-work-item.mjs publish-completion-proof --ref <exact-work-item> --record <evidence-dir>/completion-record.json`. It uploads immutable hash-named acceptance bytes to the implementation repository's configured evidence release, reads them back and publishes the exact-item native locator. Never construct a locator manually or treat a narrative evidence comment as acceptance. Jira completion remains unsupported.
|
|
31
31
|
6. Pass through both the vendor output and actual producer category. `published/pending-producer` means the pinned configured automation attempt must finish successfully before completion; do not rewrite the asset after the job or invent a successful future outcome. A User publisher does not require a producer workflow run. Only after accepted publication may the canonical lifecycle owner retry `complete`; pending proof preserves ownership and state and names the Verify/evidence action. Capture actual terminal readback/usage acceptedAt afterward, not as a circular publication prerequisite. A required pending-state journey artifact is immutable Phase-A proof captured before completion; the later actual terminal readback is a separate Phase-B supplement.
|
|
32
32
|
|
|
33
33
|
## Rules
|
|
34
34
|
|
|
35
|
-
- The GitHub `pr-assets`
|
|
35
|
+
- The configured GitHub evidence release (`node scripts/lisa-work-item.mjs evidence-release --ensure` prints it; default `pr-assets`) lives on the implementation repo (the one with the PR), regardless of which tracker hosts the ticket/issue. All vendor skills upload there.
|
|
36
36
|
- Never post evidence to a different ticket than the one named — `$ARGUMENTS` is the source of truth.
|
|
37
37
|
- Never invent a verify-specific usage footer. Evidence artifact usage must flow through `lisa-usage-accounting`, preserve the canonical `## Lisa Usage` section, and surface `source: unavailable` explicitly when the runtime cannot provide trustworthy numbers.
|
|
38
38
|
- **Evidence-manifest gate (leaf work units).** Before dispatching to a vendor skill that transitions the ticket, confirm `EVIDENCE_DIR` contains a non-empty artifact **of the declared type** for every typed `[EVIDENCE: <artifact-type>: <name>]` marker declared in the ticket's Validation Journey — a `screenshot` marker needs an actual image, an `http-transcript` marker needs the request + response text, a `perf-trace` marker needs measured numbers; a prose claim satisfies nothing. If any declared marker has no captured artifact, an empty one, or one whose content/extension does not match its declared type, stop and report the offending markers by name instead of posting — a leaf work unit (Bug / Task / Sub-task / Improvement) may not advance to its review/Done state with an unsatisfied manifest (see the "Per-Work-Unit Evidence Contract" in the `verification` rule). Epics / Stories / Spikes, and leaf units without a Validation Journey, are exempt.
|
|
@@ -55,7 +55,7 @@ The checklist is tracker-agnostic — the same shape works on JIRA, GitHub Issue
|
|
|
55
55
|
- Login creds shape — e.g. `(000) 000-0002` + OTP `555555`
|
|
56
56
|
- Exact record/player name, exact button labels as they appear on screen
|
|
57
57
|
- Full happy-path **and** any non-obvious edge state worth showing (empty state, loading, post-completion)
|
|
58
|
-
4. **One screenshot per step**, captured live through the interactive browser controller at the matching viewport. The controller may be an in-app Browser/Chrome tool, interactive Playwright control, CDP, computer use, or an equivalent; do not require one named backend. Upload via `gh release upload
|
|
58
|
+
4. **One screenshot per step**, captured live through the interactive browser controller at the matching viewport. The controller may be an in-app Browser/Chrome tool, interactive Playwright control, CDP, computer use, or an equivalent; do not require one named backend. Upload via `gh release upload "$RELEASE" <files> --clobber` (where `RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)`) and reference each one as a **plain URL** in the comment body — *not* `` markdown embeds. Plain URLs render as smartlinks/auto-embeds across all three trackers and stay individually viewable; markdown embeds collapse on JIRA when there are ≥2.
|
|
59
59
|
5. **"What this shows" section.** Tailor to ticket type:
|
|
60
60
|
- **Bug repro:** state plainly whether the bug reproduces or not, and the most likely 1–2 reasons their retest still failed (different env, native app vs. web, stuck backend row, etc.).
|
|
61
61
|
- **Feature/UX completion:** state plainly which acceptance criteria each screenshot covers, and call out any deferred or out-of-scope surface explicitly so QA/PM doesn't have to infer.
|