@codyswann/lisa 5.14.0 → 5.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  2. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  3. package/dist/core/upstream-evidence-manifest.js +5 -138
  4. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  5. package/package.json +4 -4
  6. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  7. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  8. package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/SKILL.md +10 -4
  9. package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/SKILL.md +2 -2
  10. package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
  11. package/plugins/lisa/skills/lisa-jira-evidence/SKILL.md +10 -4
  12. package/plugins/lisa/skills/lisa-jira-journey/SKILL.md +2 -2
  13. package/plugins/lisa/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
  14. package/plugins/lisa-agy/plugin.json +1 -1
  15. package/plugins/lisa-agy/skills/lisa-jira-evidence/SKILL.md +10 -4
  16. package/plugins/lisa-agy/skills/lisa-jira-journey/SKILL.md +2 -2
  17. package/plugins/lisa-agy/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
  18. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  19. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  20. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  21. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  22. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  23. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  24. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  25. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  26. package/plugins/lisa-copilot/skills/lisa-jira-evidence/SKILL.md +10 -4
  27. package/plugins/lisa-copilot/skills/lisa-jira-journey/SKILL.md +2 -2
  28. package/plugins/lisa-copilot/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
  29. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  30. package/plugins/lisa-cursor/skills/lisa-jira-evidence/SKILL.md +10 -4
  31. package/plugins/lisa-cursor/skills/lisa-jira-journey/SKILL.md +2 -2
  32. package/plugins/lisa-cursor/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
  33. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  34. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  35. package/plugins/lisa-devin/skills/lisa-jira-evidence/SKILL.md +10 -4
  36. package/plugins/lisa-devin/skills/lisa-jira-journey/SKILL.md +2 -2
  37. package/plugins/lisa-devin/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
  38. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  39. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  40. package/plugins/lisa-expo/.codex-plugin/skills/journey-guidance/SKILL.md +8 -3
  41. package/plugins/lisa-expo/skills/journey-guidance/SKILL.md +8 -3
  42. package/plugins/lisa-expo-agy/plugin.json +1 -1
  43. package/plugins/lisa-expo-agy/skills/journey-guidance/SKILL.md +8 -3
  44. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  45. package/plugins/lisa-expo-copilot/skills/journey-guidance/SKILL.md +8 -3
  46. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  47. package/plugins/lisa-expo-cursor/skills/journey-guidance/SKILL.md +8 -3
  48. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  49. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  50. package/plugins/lisa-expo-devin/skills/journey-guidance/SKILL.md +8 -3
  51. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  52. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  53. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  54. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  55. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  57. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  58. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  59. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  60. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  61. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  62. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  63. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  64. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  65. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  66. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  67. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  68. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  69. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  70. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  71. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  72. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  73. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  74. package/plugins/lisa-rails/.codex-plugin/skills/journey-guidance/SKILL.md +3 -1
  75. package/plugins/lisa-rails/skills/journey-guidance/SKILL.md +3 -1
  76. package/plugins/lisa-rails-agy/plugin.json +1 -1
  77. package/plugins/lisa-rails-agy/skills/journey-guidance/SKILL.md +3 -1
  78. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  79. package/plugins/lisa-rails-copilot/skills/journey-guidance/SKILL.md +3 -1
  80. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  81. package/plugins/lisa-rails-cursor/skills/journey-guidance/SKILL.md +3 -1
  82. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  83. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  84. package/plugins/lisa-rails-devin/skills/journey-guidance/SKILL.md +3 -1
  85. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  86. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  87. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  88. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  89. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  90. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  91. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  92. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  93. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  94. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  95. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  96. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  97. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  98. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  99. package/plugins/src/base/skills/lisa-jira-evidence/SKILL.md +10 -4
  100. package/plugins/src/base/skills/lisa-jira-journey/SKILL.md +2 -2
  101. package/plugins/src/base/skills/lisa-jira-journey/scripts/generate-templates.py +70 -9
  102. package/plugins/src/expo/skills/journey-guidance/SKILL.md +8 -3
  103. package/plugins/src/rails/skills/journey-guidance/SKILL.md +3 -1
  104. package/plugins/lisa-expo/.codex-plugin/skills/jira-add-journey/SKILL.md +0 -142
  105. package/plugins/lisa-expo/.codex-plugin/skills/jira-add-journey/agents/openai.yaml +0 -4
  106. package/plugins/lisa-expo/.codex-plugin/skills/jira-create/SKILL.md +0 -163
  107. package/plugins/lisa-expo/.codex-plugin/skills/jira-create/agents/openai.yaml +0 -4
  108. package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/SKILL.md +0 -112
  109. package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/agents/openai.yaml +0 -4
  110. package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  111. package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/SKILL.md +0 -209
  112. package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/agents/openai.yaml +0 -4
  113. package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/scripts/generate-templates.py +0 -323
  114. package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/scripts/parse-plan.py +0 -400
  115. package/plugins/lisa-expo/.codex-plugin/skills/jira-verify/SKILL.md +0 -29
  116. package/plugins/lisa-expo/.codex-plugin/skills/jira-verify/agents/openai.yaml +0 -4
  117. package/plugins/lisa-expo/skills/jira-add-journey/SKILL.md +0 -140
  118. package/plugins/lisa-expo/skills/jira-add-journey/agents/openai.yaml +0 -4
  119. package/plugins/lisa-expo/skills/jira-create/SKILL.md +0 -161
  120. package/plugins/lisa-expo/skills/jira-create/agents/openai.yaml +0 -4
  121. package/plugins/lisa-expo/skills/jira-evidence/SKILL.md +0 -110
  122. package/plugins/lisa-expo/skills/jira-evidence/agents/openai.yaml +0 -4
  123. package/plugins/lisa-expo/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  124. package/plugins/lisa-expo/skills/jira-journey/SKILL.md +0 -207
  125. package/plugins/lisa-expo/skills/jira-journey/agents/openai.yaml +0 -4
  126. package/plugins/lisa-expo/skills/jira-journey/scripts/generate-templates.py +0 -323
  127. package/plugins/lisa-expo/skills/jira-journey/scripts/parse-plan.py +0 -400
  128. package/plugins/lisa-expo/skills/jira-verify/SKILL.md +0 -27
  129. package/plugins/lisa-expo/skills/jira-verify/agents/openai.yaml +0 -4
  130. package/plugins/lisa-expo-agy/skills/jira-add-journey/SKILL.md +0 -140
  131. package/plugins/lisa-expo-agy/skills/jira-create/SKILL.md +0 -161
  132. package/plugins/lisa-expo-agy/skills/jira-evidence/SKILL.md +0 -110
  133. package/plugins/lisa-expo-agy/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  134. package/plugins/lisa-expo-agy/skills/jira-journey/SKILL.md +0 -207
  135. package/plugins/lisa-expo-agy/skills/jira-journey/scripts/generate-templates.py +0 -323
  136. package/plugins/lisa-expo-agy/skills/jira-journey/scripts/parse-plan.py +0 -400
  137. package/plugins/lisa-expo-agy/skills/jira-verify/SKILL.md +0 -27
  138. package/plugins/lisa-expo-copilot/skills/jira-add-journey/SKILL.md +0 -140
  139. package/plugins/lisa-expo-copilot/skills/jira-create/SKILL.md +0 -161
  140. package/plugins/lisa-expo-copilot/skills/jira-evidence/SKILL.md +0 -110
  141. package/plugins/lisa-expo-copilot/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  142. package/plugins/lisa-expo-copilot/skills/jira-journey/SKILL.md +0 -207
  143. package/plugins/lisa-expo-copilot/skills/jira-journey/scripts/generate-templates.py +0 -323
  144. package/plugins/lisa-expo-copilot/skills/jira-journey/scripts/parse-plan.py +0 -400
  145. package/plugins/lisa-expo-copilot/skills/jira-verify/SKILL.md +0 -27
  146. package/plugins/lisa-expo-cursor/skills/jira-add-journey/SKILL.md +0 -140
  147. package/plugins/lisa-expo-cursor/skills/jira-create/SKILL.md +0 -161
  148. package/plugins/lisa-expo-cursor/skills/jira-evidence/SKILL.md +0 -110
  149. package/plugins/lisa-expo-cursor/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  150. package/plugins/lisa-expo-cursor/skills/jira-journey/SKILL.md +0 -207
  151. package/plugins/lisa-expo-cursor/skills/jira-journey/scripts/generate-templates.py +0 -323
  152. package/plugins/lisa-expo-cursor/skills/jira-journey/scripts/parse-plan.py +0 -400
  153. package/plugins/lisa-expo-cursor/skills/jira-verify/SKILL.md +0 -27
  154. package/plugins/lisa-expo-devin/skills/jira-add-journey/SKILL.md +0 -140
  155. package/plugins/lisa-expo-devin/skills/jira-create/SKILL.md +0 -161
  156. package/plugins/lisa-expo-devin/skills/jira-evidence/SKILL.md +0 -110
  157. package/plugins/lisa-expo-devin/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  158. package/plugins/lisa-expo-devin/skills/jira-journey/SKILL.md +0 -207
  159. package/plugins/lisa-expo-devin/skills/jira-journey/scripts/generate-templates.py +0 -323
  160. package/plugins/lisa-expo-devin/skills/jira-journey/scripts/parse-plan.py +0 -400
  161. package/plugins/lisa-expo-devin/skills/jira-verify/SKILL.md +0 -27
  162. package/plugins/lisa-rails/.codex-plugin/skills/jira-add-journey/SKILL.md +0 -81
  163. package/plugins/lisa-rails/.codex-plugin/skills/jira-add-journey/agents/openai.yaml +0 -4
  164. package/plugins/lisa-rails/.codex-plugin/skills/jira-create/SKILL.md +0 -102
  165. package/plugins/lisa-rails/.codex-plugin/skills/jira-create/agents/openai.yaml +0 -4
  166. package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/SKILL.md +0 -103
  167. package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/agents/openai.yaml +0 -4
  168. package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  169. package/plugins/lisa-rails/.codex-plugin/skills/jira-journey/SKILL.md +0 -67
  170. package/plugins/lisa-rails/.codex-plugin/skills/jira-journey/agents/openai.yaml +0 -4
  171. package/plugins/lisa-rails/.codex-plugin/skills/jira-verify/SKILL.md +0 -28
  172. package/plugins/lisa-rails/.codex-plugin/skills/jira-verify/agents/openai.yaml +0 -4
  173. package/plugins/lisa-rails/skills/jira-add-journey/SKILL.md +0 -79
  174. package/plugins/lisa-rails/skills/jira-add-journey/agents/openai.yaml +0 -4
  175. package/plugins/lisa-rails/skills/jira-create/SKILL.md +0 -100
  176. package/plugins/lisa-rails/skills/jira-create/agents/openai.yaml +0 -4
  177. package/plugins/lisa-rails/skills/jira-evidence/SKILL.md +0 -101
  178. package/plugins/lisa-rails/skills/jira-evidence/agents/openai.yaml +0 -4
  179. package/plugins/lisa-rails/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  180. package/plugins/lisa-rails/skills/jira-journey/SKILL.md +0 -65
  181. package/plugins/lisa-rails/skills/jira-journey/agents/openai.yaml +0 -4
  182. package/plugins/lisa-rails/skills/jira-verify/SKILL.md +0 -26
  183. package/plugins/lisa-rails/skills/jira-verify/agents/openai.yaml +0 -4
  184. package/plugins/lisa-rails-agy/skills/jira-add-journey/SKILL.md +0 -79
  185. package/plugins/lisa-rails-agy/skills/jira-create/SKILL.md +0 -100
  186. package/plugins/lisa-rails-agy/skills/jira-evidence/SKILL.md +0 -101
  187. package/plugins/lisa-rails-agy/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  188. package/plugins/lisa-rails-agy/skills/jira-journey/SKILL.md +0 -65
  189. package/plugins/lisa-rails-agy/skills/jira-verify/SKILL.md +0 -26
  190. package/plugins/lisa-rails-copilot/skills/jira-add-journey/SKILL.md +0 -79
  191. package/plugins/lisa-rails-copilot/skills/jira-create/SKILL.md +0 -100
  192. package/plugins/lisa-rails-copilot/skills/jira-evidence/SKILL.md +0 -101
  193. package/plugins/lisa-rails-copilot/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  194. package/plugins/lisa-rails-copilot/skills/jira-journey/SKILL.md +0 -65
  195. package/plugins/lisa-rails-copilot/skills/jira-verify/SKILL.md +0 -26
  196. package/plugins/lisa-rails-cursor/skills/jira-add-journey/SKILL.md +0 -79
  197. package/plugins/lisa-rails-cursor/skills/jira-create/SKILL.md +0 -100
  198. package/plugins/lisa-rails-cursor/skills/jira-evidence/SKILL.md +0 -101
  199. package/plugins/lisa-rails-cursor/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  200. package/plugins/lisa-rails-cursor/skills/jira-journey/SKILL.md +0 -65
  201. package/plugins/lisa-rails-cursor/skills/jira-verify/SKILL.md +0 -26
  202. package/plugins/lisa-rails-devin/skills/jira-add-journey/SKILL.md +0 -79
  203. package/plugins/lisa-rails-devin/skills/jira-create/SKILL.md +0 -100
  204. package/plugins/lisa-rails-devin/skills/jira-evidence/SKILL.md +0 -101
  205. package/plugins/lisa-rails-devin/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  206. package/plugins/lisa-rails-devin/skills/jira-journey/SKILL.md +0 -65
  207. package/plugins/lisa-rails-devin/skills/jira-verify/SKILL.md +0 -26
  208. package/plugins/src/expo/skills/jira-add-journey/SKILL.md +0 -140
  209. package/plugins/src/expo/skills/jira-create/SKILL.md +0 -161
  210. package/plugins/src/expo/skills/jira-evidence/SKILL.md +0 -110
  211. package/plugins/src/expo/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  212. package/plugins/src/expo/skills/jira-journey/SKILL.md +0 -207
  213. package/plugins/src/expo/skills/jira-journey/scripts/generate-templates.py +0 -323
  214. package/plugins/src/expo/skills/jira-journey/scripts/parse-plan.py +0 -400
  215. package/plugins/src/expo/skills/jira-verify/SKILL.md +0 -27
  216. package/plugins/src/rails/skills/jira-add-journey/SKILL.md +0 -79
  217. package/plugins/src/rails/skills/jira-create/SKILL.md +0 -100
  218. package/plugins/src/rails/skills/jira-evidence/SKILL.md +0 -101
  219. package/plugins/src/rails/skills/jira-evidence/scripts/post-evidence.sh +0 -397
  220. package/plugins/src/rails/skills/jira-journey/SKILL.md +0 -65
  221. package/plugins/src/rails/skills/jira-verify/SKILL.md +0 -26
@@ -1,397 +0,0 @@
1
- #!/usr/bin/env bash
2
- # post-evidence.sh — Upload evidence and post to JIRA + GitHub PR description
3
- #
4
- # Usage:
5
- # bash post-evidence.sh <TICKET_ID> <EVIDENCE_DIR> <PR_NUMBER>
6
- #
7
- # Prerequisites:
8
- # - JIRA_API_TOKEN env var set
9
- # - a jira-cli config, resolved in this order (see "CONFIG RESOLUTION" below):
10
- # 1. ${PROJECT_DIR}/.lisa/jira-cli/.config.yml (written by the
11
- # setup-jira-cli SessionStart hook from the JIRA_* environment)
12
- # 2. ~/.config/.jira/.config.yml (a developer's own
13
- # `jira init` config; announced on stderr when it is used)
14
- # - gh CLI authenticated
15
- #
16
- # What it does:
17
- # 1. Uploads evidence files to the configured GitHub evidence release
18
- # (default 'pr-assets'; see verification.completion.evidenceRelease) as
19
- # pr-<PR_NUMBER>-<file>, then confirms every one is listed there
20
- # 2. Updates the GitHub PR description with evidence/comment.md
21
- # 3. Uploads image evidence as JIRA attachments
22
- # 4. Posts/updates the JIRA comment with evidence/comment.txt
23
- # 5. Moves the JIRA ticket to the configured jira.workflow.review status
24
- # (skipped entirely when review is unconfigured — stays in claimed)
25
-
26
- set -euo pipefail
27
-
28
- TICKET_ID="${1:?Usage: post-evidence.sh <TICKET_ID> <EVIDENCE_DIR> <PR_NUMBER>}"
29
- EVIDENCE_DIR="${2:?Usage: post-evidence.sh <TICKET_ID> <EVIDENCE_DIR> <PR_NUMBER>}"
30
- PR_NUMBER="${3:?Usage: post-evidence.sh <TICKET_ID> <EVIDENCE_DIR> <PR_NUMBER>}"
31
-
32
- # Every release asset is named pr-${PR_NUMBER}-<file>, so the number must be a
33
- # canonical positive integer before anything is uploaded: an empty, signed or
34
- # padded value would produce a name another pull request could also produce.
35
- if [[ ! "$PR_NUMBER" =~ ^[1-9][0-9]*$ ]]; then
36
- echo "ERROR: PR_NUMBER must be a positive integer, got '$PR_NUMBER'" >&2
37
- exit 1
38
- fi
39
-
40
- # ─────────────────────────────────────────────────────────────────────────────
41
- # CONFIG RESOLUTION
42
- #
43
- # The setup-jira-cli SessionStart hook writes ${PROJECT_DIR}/.lisa/jira-cli/
44
- # .config.yml. Nothing read it — this script looked only at the developer's own
45
- # ~/.config/.jira/.config.yml and exited 1 telling the operator to run
46
- # `jira init`, so on a headless JIRA project the hook was an inert control.
47
- # See CodySwannGT/lisa#2767.
48
- #
49
- # PROJECT_DIR is resolved with the same rule as the hook that writes the file,
50
- # deliberately character-for-character: CLAUDE_PROJECT_DIR (the harness's own
51
- # declaration of the root, inert on harnesses that never set it), then the git
52
- # toplevel, then pwd. A session launched from a subdirectory otherwise reads a
53
- # directory it never wrote — the #2768 defect, on the read side.
54
- #
55
- # Nothing here writes to ~/.config/.jira. That file is a developer's personal
56
- # jira-cli state; it is read as a fallback and never created or modified.
57
- #
58
- # NOTE: the `.lisa.config.json` reads in Step 5 below are still resolved from
59
- # the process working directory. That is pre-existing and out of scope here.
60
- # ─────────────────────────────────────────────────────────────────────────────
61
- PROJECT_DIR="${CLAUDE_PROJECT_DIR:-}"
62
- if [[ -z "${PROJECT_DIR}" || ! -d "${PROJECT_DIR}" ]]; then
63
- PROJECT_DIR="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
64
- fi
65
- PROJECT_JIRA_CONFIG="${PROJECT_DIR}/.lisa/jira-cli/.config.yml"
66
- HOME_JIRA_CONFIG="${HOME}/.config/.jira/.config.yml"
67
-
68
- if [[ -f "$PROJECT_JIRA_CONFIG" ]]; then
69
- JIRA_CONFIG="$PROJECT_JIRA_CONFIG"
70
- elif [[ -f "$HOME_JIRA_CONFIG" ]]; then
71
- # Announced, never silent. A silent fall-through to the developer's own file
72
- # is precisely how the Lisa-written config stayed unconsumed without anyone
73
- # noticing, and on a headless runner there is no such file to fall back to.
74
- echo "NOTE: no Lisa-written jira-cli config at $PROJECT_JIRA_CONFIG" >&2
75
- echo " falling back to the developer config at $HOME_JIRA_CONFIG" >&2
76
- JIRA_CONFIG="$HOME_JIRA_CONFIG"
77
- else
78
- echo "ERROR: jira-cli config not found." >&2
79
- echo " Lisa-written config (expected): $PROJECT_JIRA_CONFIG" >&2
80
- echo " developer config (fallback): $HOME_JIRA_CONFIG" >&2
81
- echo " Fix: export JIRA_SERVER, JIRA_LOGIN (and JIRA_INSTALLATION," >&2
82
- echo " JIRA_PROJECT) and start a new session so the setup-jira-cli hook" >&2
83
- echo " writes the project config — or run 'jira init' locally." >&2
84
- exit 1
85
- fi
86
- JIRA_SERVER=$(sed -n 's/^server:[[:space:]]*//p' "$JIRA_CONFIG")
87
- JIRA_USER=$(grep '^login:' "$JIRA_CONFIG" | awk '{print $2}')
88
- # Validate before constructing credentials; use only the approved HTTPS origin.
89
- JIRA_SERVER=$(python3 - "$JIRA_SERVER" <<'PY_ORIGIN'
90
- import ipaddress
91
- import re
92
- import sys
93
- from urllib.parse import urlsplit
94
-
95
- raw = sys.argv[1]
96
- try:
97
- if not raw or any(c <= " " or c >= "\x7f" for c in raw):
98
- raise ValueError()
99
- url = urlsplit(raw)
100
- if (url.scheme != "https" or "@" in url.netloc or "?" in raw
101
- or "#" in raw or url.path not in ("", "/") or not url.hostname):
102
- raise ValueError()
103
- host = url.hostname
104
- if url.netloc.startswith("["):
105
- host = f"[{ipaddress.IPv6Address(host).compressed}]"
106
- elif not re.fullmatch(r"[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*", host):
107
- raise ValueError()
108
- port = url.port
109
- if port == 0:
110
- raise ValueError()
111
- suffix = f":{port}" if port is not None and port != 443 else ""
112
- print(f"https://{host}{suffix}")
113
- except ValueError:
114
- sys.exit("ERROR: JIRA_SERVER must be a bare HTTPS origin without userinfo, path, query or fragment.")
115
- PY_ORIGIN
116
- )
117
-
118
- GH_REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
119
- # The evidence release comes from the one resolver every writer shares, so a
120
- # project's `verification.completion.evidenceRelease` (for example the rotating
121
- # `pr-assets-{YYYY-MM}`) moves this upload too. GitHub caps a release at 1000
122
- # assets; a hardcoded `pr-assets` filled up and every upload then failed with a
123
- # raw HTTP 422 (CodySwannGT/lisa#4692). `--ensure` creates the release when it
124
- # is absent and, when it is nearly full, rolls over to the next overflow
125
- # release (`<release>-2`, `-3`, …) and prints that one (CodySwannGT/lisa#4838).
126
- # It refuses, in plain words, only when a pinned release is full, every
127
- # overflow release is full, the release name is too long to take an overflow
128
- # suffix, or the release cannot be created. generate-templates.py asks the same `--ensure`, so its links
129
- # name the release uploaded here. A host whose Lisa predates the resolver keeps
130
- # the legacy release.
131
- #
132
- # LISA_EVIDENCE_RELEASE, when set, pins the release for this run so the links
133
- # generate-templates.py wrote match these uploads. The resolver still checks
134
- # that name and the release's capacity; it reads the variable itself.
135
- RELEASE_TAG="${LISA_EVIDENCE_RELEASE:-pr-assets}"
136
- WORK_ITEM_CLI="${PROJECT_DIR}/scripts/lisa-work-item.mjs"
137
- if [[ -f "$WORK_ITEM_CLI" ]]; then
138
- if ! RELEASE_TAG=$(cd "$PROJECT_DIR" && node "$WORK_ITEM_CLI" evidence-release --ensure); then
139
- echo "ERROR: the GitHub evidence release is not usable (see the message above); no evidence was uploaded." >&2
140
- exit 1
141
- fi
142
- fi
143
-
144
- if [[ -z "${JIRA_API_TOKEN:-}" ]]; then
145
- echo "ERROR: JIRA_API_TOKEN environment variable is not set" >&2
146
- exit 1
147
- fi
148
-
149
- # Collect numbered evidence files (images + text)
150
- SCREENSHOTS=()
151
- while IFS= read -r -d '' f; do
152
- SCREENSHOTS+=("$f")
153
- done < <(find "$EVIDENCE_DIR" -maxdepth 1 -name '[0-9][0-9]-*.png' -print0 | sort -z)
154
-
155
- TEXT_EVIDENCE=()
156
- while IFS= read -r -d '' f; do
157
- TEXT_EVIDENCE+=("$f")
158
- done < <(find "$EVIDENCE_DIR" -maxdepth 1 \( -name '[0-9][0-9]-*.txt' -o -name '[0-9][0-9]-*.json' \) ! -name 'comment.txt' -print0 | sort -z)
159
-
160
- # Bash 3.2 treats an empty array as unset under nounset.
161
- ALL_EVIDENCE=(${SCREENSHOTS[@]+"${SCREENSHOTS[@]}"} ${TEXT_EVIDENCE[@]+"${TEXT_EVIDENCE[@]}"})
162
-
163
- if [[ ${#ALL_EVIDENCE[@]} -eq 0 ]]; then
164
- echo "ERROR: No numbered evidence files found in $EVIDENCE_DIR (expected NN-*.png, NN-*.txt, or NN-*.json)" >&2
165
- exit 1
166
- fi
167
-
168
- echo "Found ${#SCREENSHOTS[@]} screenshots and ${#TEXT_EVIDENCE[@]} text evidence files to upload"
169
-
170
- # GitHub rewrites special characters (spaces, brackets, non-ASCII) in release
171
- # asset names, so a link built from the local name would point at an asset that
172
- # does not exist under that name. Refuse such names before anything is uploaded.
173
- for FILE in "${ALL_EVIDENCE[@]}"; do
174
- if [[ ! "$(basename "$FILE")" =~ ^[0-9]{2}-[A-Za-z0-9._-]+\.(png|txt|json)$ ]]; then
175
- echo "ERROR: evidence file name '$(basename "$FILE")' is not release-safe." >&2
176
- echo " Rename it to NN-name.ext using only letters, digits, '.', '_' and '-'" >&2
177
- echo " (e.g. '01-search step.png' -> '01-search-step.png'), then re-run generate-templates.py." >&2
178
- exit 1
179
- fi
180
- done
181
-
182
- # The description's links are checked before uploading and again against the
183
- # release after uploading, so it must exist before anything is uploaded.
184
- COMMENT_MD="$EVIDENCE_DIR/comment.md"
185
- if [[ ! -f "$COMMENT_MD" ]]; then
186
- echo "ERROR: $COMMENT_MD not found — run generate-templates.py first" >&2
187
- exit 1
188
- fi
189
-
190
- # Print every Markdown link or image target in comment.md, one per line. Every
191
- # Markdown target form counts:
192
- # inline ](url) ](url "title") ](<url>) ](<url> "title")
193
- # reference [ref]: url [ref]: <url> "title" (up to 3 leading spaces)
194
- # Only link targets count: text evidence inlined into comment.md may quote a
195
- # release URL as plain text, and that must not fail the run.
196
- comment_links() {
197
- { grep -oE '\]\(<?[^)<>[:space:]]+' "$COMMENT_MD" || true; } | sed -E 's/^\]\(<?//'
198
- { grep -oE '^ {0,3}\[[^]]+\]:[[:space:]]*<?[^<>[:space:]]+' "$COMMENT_MD" || true; } |
199
- sed -E 's/^ {0,3}\[[^]]+\]:[[:space:]]*<?//'
200
- }
201
-
202
- # A link to THIS pull request's own pr-${PR_NUMBER}- asset in a different
203
- # release of this repository means the templates were generated against one
204
- # release and this run uploads to another (a roll-over to `<release>-2` in
205
- # between, CodySwannGT/lisa#4838): the link would 404, so refuse it. The check
206
- # runs before anything is uploaded, so a refused run leaves no copies behind in
207
- # a release the operator then re-pins away from (CodySwannGT/lisa#4856).
208
- # Any other cross-release link (another PR's evidence, or an older release's
209
- # asset linked on purpose) passes through untouched: regenerating the
210
- # templates cannot remove a hand-written link, so refusing it would loop.
211
- RELEASE_PREFIX="github.com/${GH_REPO}/releases/download/"
212
- CROSS_RELEASE_LINKS=0
213
- while IFS= read -r LINK; do
214
- [[ "$LINK" == *"$RELEASE_PREFIX"* ]] || continue
215
- LINK_TAG="${LINK#*"$RELEASE_PREFIX"}"
216
- LINK_TAG="${LINK_TAG%%/*}"
217
- [[ "$LINK_TAG" != "$RELEASE_TAG" ]] || continue
218
- [[ "${LINK##*/}" == "pr-${PR_NUMBER}-"* ]] || continue
219
- echo "ERROR: $COMMENT_MD links $LINK in release '$LINK_TAG', but this run uploads to release '$RELEASE_TAG'. Regenerate the templates with LISA_EVIDENCE_RELEASE=$RELEASE_TAG and re-run this script with the same LISA_EVIDENCE_RELEASE=$RELEASE_TAG. If this link was written by hand, remove it or re-upload the asset to '$RELEASE_TAG'." >&2
220
- CROSS_RELEASE_LINKS=1
221
- done < <(comment_links)
222
- if [[ $CROSS_RELEASE_LINKS -ne 0 ]]; then
223
- echo "No evidence was uploaded." >&2
224
- exit 1
225
- fi
226
-
227
- # Compute JIRA auth early (used in steps 3 and 4)
228
- JIRA_AUTH=$(printf '%s' "$JIRA_USER:$JIRA_API_TOKEN" | base64 | tr -d '\n')
229
-
230
- # ── Step 1: Upload to the GitHub evidence release ───────────────────────────
231
- echo ""
232
- echo "==> Uploading to GitHub release '$RELEASE_TAG'..."
233
-
234
- # Every pull request shares this one release, and --clobber deletes a
235
- # same-named asset before uploading. Bare NN- names collided across pull
236
- # requests, so a later upload destroyed an earlier one's evidence
237
- # (CodySwannGT/lisa#4639). Each asset is therefore uploaded as
238
- # pr-${PR_NUMBER}-<file>: --clobber can then replace only this pull request's
239
- # own earlier upload. Local evidence files keep their NN- names; the scoped
240
- # copies live in a private directory removed on exit.
241
- UPLOAD_DIR=$(mktemp -d)
242
- trap 'rm -rf "$UPLOAD_DIR"' EXIT
243
- UPLOADED_ASSETS=()
244
- for FILE in "${ALL_EVIDENCE[@]}"; do
245
- ASSET_NAME="pr-${PR_NUMBER}-$(basename "$FILE")"
246
- cp "$FILE" "$UPLOAD_DIR/$ASSET_NAME"
247
- echo " ↑ $ASSET_NAME"
248
- gh release upload "$RELEASE_TAG" "$UPLOAD_DIR/$ASSET_NAME" --repo "$GH_REPO" --clobber
249
- UPLOADED_ASSETS+=("$ASSET_NAME")
250
- done
251
-
252
- # The description links these names, so confirm each one is really in the
253
- # release before pointing anything at it.
254
- RELEASE_ASSETS=$(gh release view "$RELEASE_TAG" --repo "$GH_REPO" --json assets --jq '.assets[].name')
255
- MISSING_ASSETS=0
256
- for ASSET_NAME in "${UPLOADED_ASSETS[@]}"; do
257
- if ! grep -qxF "$ASSET_NAME" <<< "$RELEASE_ASSETS"; then
258
- echo "ERROR: $ASSET_NAME is missing from release '$RELEASE_TAG' after upload" >&2
259
- MISSING_ASSETS=1
260
- fi
261
- done
262
- if [[ $MISSING_ASSETS -ne 0 ]]; then
263
- exit 1
264
- fi
265
-
266
- echo " ✓ GitHub release assets uploaded"
267
-
268
- # Every Markdown link or image target that points into the release must name
269
- # an asset THIS run uploaded, and therefore one the check above just found in
270
- # the release. A bare or other-PR name would show some other pull request's
271
- # evidence, and a pr-<n>- asset left over from an earlier run would show
272
- # evidence this run did not produce. Links into other releases were already
273
- # checked before uploading.
274
- THIS_RUN_ASSETS=$(printf '%s\n' "${UPLOADED_ASSETS[@]}")
275
- BAD_LINKS=0
276
- while IFS= read -r LINK; do
277
- # Only this repository's release counts: another repository's release of the
278
- # same name holds assets this run never uploaded.
279
- [[ "$LINK" == *"${RELEASE_PREFIX}${RELEASE_TAG}/"* ]] || continue
280
- LINK_NAME="${LINK##*/}"
281
- if [[ "$LINK_NAME" != "pr-${PR_NUMBER}-"* ]]; then
282
- echo "ERROR: $COMMENT_MD links $LINK, which is not scoped to PR #$PR_NUMBER (expected pr-${PR_NUMBER}-<file>)" >&2
283
- BAD_LINKS=1
284
- elif ! grep -qxF "$LINK_NAME" <<< "$THIS_RUN_ASSETS"; then
285
- echo "ERROR: $COMMENT_MD links $LINK, which this run did not upload to release '$RELEASE_TAG'" >&2
286
- BAD_LINKS=1
287
- fi
288
- done < <(comment_links)
289
- if [[ $BAD_LINKS -ne 0 ]]; then
290
- exit 1
291
- fi
292
-
293
- # ── Step 2: Update GitHub PR description with evidence ──────────────────────
294
- echo ""
295
- echo "==> Updating GitHub PR #$PR_NUMBER description..."
296
-
297
- CURRENT_BODY=$(gh pr view "$PR_NUMBER" --json body --jq '.body')
298
-
299
- # Replace or append the Evidence section
300
- if echo "$CURRENT_BODY" | grep -q "^## Evidence"; then
301
- # Replace from "## Evidence" to end of file
302
- NEW_BODY=$(echo "$CURRENT_BODY" | sed '/^## Evidence/,$d')
303
- EVIDENCE_SECTION=$(cat "$COMMENT_MD")
304
- UPDATED_BODY="${NEW_BODY}
305
- ${EVIDENCE_SECTION}"
306
- else
307
- EVIDENCE_SECTION=$(cat "$COMMENT_MD")
308
- UPDATED_BODY="${CURRENT_BODY}
309
-
310
- ${EVIDENCE_SECTION}"
311
- fi
312
-
313
- gh pr edit "$PR_NUMBER" --body "$UPDATED_BODY"
314
- echo " ✓ PR description updated with evidence"
315
-
316
- # ── Step 3: Upload image evidence as JIRA attachments ───────────────────────
317
- if [[ ${#SCREENSHOTS[@]} -gt 0 ]]; then
318
- echo ""
319
- echo "==> Uploading image attachments to JIRA $TICKET_ID..."
320
-
321
- for IMG in "${SCREENSHOTS[@]}"; do
322
- FILENAME=$(basename "$IMG")
323
- echo " ↑ $FILENAME"
324
- RESP=$(curl -s -w "\nHTTP_CODE:%{http_code}" \
325
- -X POST \
326
- -H "Authorization: Basic $JIRA_AUTH" \
327
- -H "X-Atlassian-Token: no-check" \
328
- -F "file=@$IMG" \
329
- "$JIRA_SERVER/rest/api/3/issue/$TICKET_ID/attachments")
330
- HTTP_CODE=$(echo "$RESP" | grep "HTTP_CODE:" | cut -d: -f2)
331
- if [[ "$HTTP_CODE" != "200" ]]; then
332
- echo " WARNING: Failed to upload $FILENAME (HTTP $HTTP_CODE)" >&2
333
- fi
334
- done
335
-
336
- echo " ✓ JIRA attachments uploaded"
337
- fi
338
-
339
- # ── Step 4: Post JIRA comment ────────────────────────────────────────────────
340
- COMMENT_TXT="$EVIDENCE_DIR/comment.txt"
341
- if [[ ! -f "$COMMENT_TXT" ]]; then
342
- echo "ERROR: $COMMENT_TXT not found — run generate-templates.py first" >&2
343
- exit 1
344
- fi
345
-
346
- echo ""
347
- echo "==> Posting JIRA comment on $TICKET_ID..."
348
-
349
- COMMENT_BODY=$(cat "$COMMENT_TXT")
350
- COMMENT_JSON=$(python3 -c "import sys, json; print(json.dumps(sys.stdin.read()))" <<< "$COMMENT_BODY")
351
-
352
- RESP=$(curl -s -w "\nHTTP_CODE:%{http_code}" \
353
- -X POST \
354
- -H "Authorization: Basic $JIRA_AUTH" \
355
- -H "Content-Type: application/json" \
356
- "$JIRA_SERVER/rest/api/2/issue/$TICKET_ID/comment" \
357
- -d "{\"body\": $COMMENT_JSON}")
358
- HTTP_CODE=$(echo "$RESP" | grep "HTTP_CODE:" | cut -d: -f2)
359
-
360
- if [[ "$HTTP_CODE" == "201" ]]; then
361
- echo " ✓ JIRA comment posted"
362
- else
363
- echo " WARNING: JIRA comment returned HTTP $HTTP_CODE" >&2
364
- echo "$RESP" | grep -v "HTTP_CODE:" | head -3
365
- fi
366
-
367
- # ── Step 5: Move ticket to the configured review status (if any) ────────────
368
- # A transition may target only a status named in .lisa.config.json jira.workflow.
369
- # `review` is OPTIONAL: when it is not configured, the build lifecycle stays in
370
- # `claimed` until `done` — do NOT invent a transition. (See config-resolution.md.)
371
- REVIEW=""
372
- if [ -f .lisa.config.json ]; then
373
- _cfg=$(jq -r '.jira.workflow.review // .jira.workflow.code_review // empty' .lisa.config.json 2>/dev/null)
374
- [ -n "$_cfg" ] && REVIEW="$_cfg"
375
- fi
376
- if [ -f .lisa.config.local.json ]; then
377
- _local=$(jq -r '.jira.workflow.review // .jira.workflow.code_review // empty' .lisa.config.local.json 2>/dev/null)
378
- [ -n "$_local" ] && REVIEW="$_local"
379
- fi
380
- echo ""
381
- if [ -n "$REVIEW" ]; then
382
- echo "==> Moving $TICKET_ID to $REVIEW..."
383
- # --config pins jira-cli to the same file this script parsed above.
384
- # jira-cli resolves --config > JIRA_CONFIG_FILE > ~/.config/.jira/
385
- # .config.yml, and a --config path that does not exist fails closed
386
- # rather than falling back (measured against jira-cli v1.7.0). The flag
387
- # needs no environment export, so this works identically on every
388
- # harness — see the harness note in the setup-jira-cli hook.
389
- jira --config "$JIRA_CONFIG" issue move "$TICKET_ID" "$REVIEW" 2>&1 && echo " ✓ Ticket moved to $REVIEW" || echo " WARNING: Could not move ticket to $REVIEW (not a valid transition?); leaving in current status" >&2
390
- else
391
- echo "==> No jira.workflow.review configured; leaving $TICKET_ID in its current (claimed) status per config-resolution."
392
- fi
393
-
394
- echo ""
395
- echo "==> Done!"
396
- echo " JIRA: $JIRA_SERVER/browse/$TICKET_ID"
397
- echo " GitHub: https://github.com/$GH_REPO/pull/$PR_NUMBER"
@@ -1,209 +0,0 @@
1
- ---
2
- name: jira-journey
3
- description: "Read a JIRA ticket's Validation…"
4
- ---
5
- Read a JIRA ticket's Validation Journey section, execute the steps using Playwright MCP browser tools across all defined viewports, capture screenshots at each marker, generate evidence templates, and post to JIRA + GitHub PR using the jira-evidence skill.
6
-
7
-
8
- # JIRA Validation Journey
9
-
10
- Read a JIRA ticket's Validation Journey, execute it via Playwright MCP browser tools, capture screenshots at every `[SCREENSHOT: name]` marker across all viewports, and post evidence to both JIRA and GitHub PR.
11
-
12
- ## Arguments
13
-
14
- `$ARGUMENTS`: `<TICKET_ID> [PR_NUMBER]`
15
-
16
- - `TICKET_ID` (required): JIRA ticket key (e.g., `PROJ-123`)
17
- - `PR_NUMBER` (optional): GitHub PR number to update description
18
-
19
- ## Prerequisites
20
-
21
- - `JIRA_API_TOKEN` environment variable set
22
- - `jira-cli` configured in the operator's `~/.config/.jira/.config.yml`.
23
- This Expo parser deliberately remains home-config-only: it does not consume
24
- checkout configuration or a `JIRA_SERVER` environment override. Its server must
25
- be a bare HTTPS origin with no userinfo, query, fragment, or path prefix.
26
- ASCII DNS names, IPv4, and bracketed IPv6 are supported; default port `443`
27
- and a root slash are canonicalized away. Whitespace, controls, encoded or
28
- non-ASCII hosts, trailing dots, and port zero are rejected before the token is read.
29
- - `gh` CLI authenticated
30
- - Playwright MCP server running (browser tools available)
31
- - Dev server running
32
-
33
- ## Workflow
34
-
35
- ### Step 1: Parse the Validation Journey
36
-
37
- Run the parser script to extract the Validation Journey from the JIRA ticket description:
38
-
39
- ```bash
40
- python3 .claude/skills/jira-journey/scripts/parse-plan.py <TICKET_ID>
41
- ```
42
-
43
- The script outputs JSON to stdout:
44
-
45
- ```json
46
- {
47
- "ticket": "PROJ-123",
48
- "prerequisites": [
49
- "Backend dev server running",
50
- "Admin user with test credentials"
51
- ],
52
- "steps": [
53
- {"number": 1, "text": "Navigate to Players page", "screenshot": null},
54
- {"number": 5, "text": "Open transfer modal", "screenshot": "confirm-step-disabled"}
55
- ],
56
- "viewports": [
57
- {"name": "Desktop", "width": 1512, "height": 768},
58
- {"name": "Mobile", "width": 375, "height": 812}
59
- ],
60
- "assertions": [
61
- "Modal fills entire screen on mobile (no horizontal overflow)"
62
- ]
63
- }
64
- ```
65
-
66
- Read the JSON output and use it to drive the Playwright session.
67
-
68
- ### Step 2: Satisfy Prerequisites
69
-
70
- Before starting the journey, verify each prerequisite:
71
-
72
- 1. Check if the dev server is running (try `browser_navigate` to the app URL)
73
- 2. Authenticate if needed (use test credentials from `.env.localhost` or `.env.local`)
74
- 3. Navigate to the starting point described in step 1
75
-
76
- ### Step 3: Execute Steps at Each Viewport
77
-
78
- For **each viewport** defined in the journey:
79
-
80
- 1. Use `browser_resize` to set the viewport dimensions
81
- 2. Execute each step sequentially using Playwright MCP tools
82
- 3. At each step with a `screenshot` marker, use `browser_take_screenshot` to capture the screenshot
83
-
84
- #### Screenshot Naming Convention
85
-
86
- Screenshots are named: `{NN}-{screenshot-name}-{viewport-name}.png`
87
-
88
- - `NN`: zero-padded sequential number (01, 02, 03...)
89
- - `screenshot-name`: the value from `[SCREENSHOT: name]` in the JIRA step
90
- - `viewport-name`: lowercase viewport name from the Viewports table
91
-
92
- Example: For a journey with 3 screenshot markers and 2 viewports:
93
-
94
- ```text
95
- evidence/
96
- 01-search-step-desktop.png
97
- 02-confirm-step-desktop.png
98
- 03-success-step-desktop.png
99
- 04-search-step-mobile.png
100
- 05-confirm-step-mobile.png
101
- 06-success-step-mobile.png
102
- comment.txt
103
- comment.md
104
- ```
105
-
106
- #### Viewport Execution Strategy
107
-
108
- Execute the **full journey once per viewport**. Between viewports:
109
-
110
- 1. Resize the browser using `browser_resize`
111
- 2. Navigate back to the starting point
112
- 3. Re-execute all steps from the beginning
113
-
114
- This ensures each screenshot is captured at the correct viewport dimensions with the correct application state.
115
-
116
- ### Step 4: Generate Evidence Templates
117
-
118
- The GitHub links point at the evidence release. Resolve it once, before generating templates, so the links and the uploads in Step 5 name the same release even across a month boundary. `--ensure` creates the release when it is missing. If the release cannot be used (for example, a pinned release is full, every overflow release is full, the release name is too long to roll over, or the publisher cannot create releases), the step prints `Evidence release not usable; stop.` and fails: stop there and report it instead of continuing.
119
-
120
- ```bash
121
- unset LISA_EVIDENCE_RELEASE; LISA_EVIDENCE_RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure) || { echo "Evidence release not usable; stop."; false; } &&
122
- export LISA_EVIDENCE_RELEASE && echo "Evidence release: $LISA_EVIDENCE_RELEASE"
123
- ```
124
-
125
- Some agent runtimes start a new shell for every command, and a new shell forgets an exported value. So put the printed release name in front of every later command that reads it, as `LISA_EVIDENCE_RELEASE=<name>`; the commands below show where.
126
-
127
- After capturing all screenshots, run the template generator with that release name:
128
-
129
- ```bash
130
- LISA_EVIDENCE_RELEASE=<name> python3 .claude/skills/jira-journey/scripts/generate-templates.py \
131
- <TICKET_ID> \
132
- <PR_NUMBER> \
133
- <BRANCH_NAME> \
134
- ./evidence
135
- ```
136
-
137
- This generates `evidence/comment.txt` (JIRA wiki markup) and `evidence/comment.md` (GitHub markdown) with:
138
-
139
- - PR and branch metadata
140
- - All screenshots organized by viewport
141
- - The verification journey steps
142
- - Assertions as verification results
143
-
144
- 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`).
145
-
146
- ### Step 5: Post Evidence
147
-
148
- Use the jira-evidence skill to post everything, with the same release name as Step 4:
149
-
150
- ```bash
151
- LISA_EVIDENCE_RELEASE=<name> bash .claude/skills/jira-evidence/scripts/post-evidence.sh <TICKET_ID> ./evidence <PR_NUMBER>
152
- ```
153
-
154
- ### Step 6: Verify
155
-
156
- Confirm images render inline at both the JIRA ticket and GitHub PR.
157
-
158
- ## Validation Journey Format in JIRA
159
-
160
- The JIRA ticket description must contain a section with this structure:
161
-
162
- ### ADF Structure
163
-
164
- ```text
165
- h2. Validation Journey
166
-
167
- h3. Prerequisites
168
- - App running locally or on dev
169
- - Authenticated as test user
170
- - Required feature flags enabled
171
-
172
- h3. Steps
173
- 1. Navigate to the relevant page
174
- 2. Perform the first action
175
- 3. Click on the element [SCREENSHOT: element-state]
176
- 4. Complete the flow
177
- 5. Verify the final state [SCREENSHOT: final-state]
178
-
179
- h3. Viewports
180
- ||Name||Width||Height||
181
- |Desktop|1512|768|
182
- |Mobile|375|812|
183
-
184
- h3. Assertions
185
- - Visual assertion about expected behavior
186
- - Another assertion about responsive layout
187
- ```
188
-
189
- ### Key Rules
190
-
191
- 1. **`[SCREENSHOT: name]`** markers define where to capture. The `name` is used in the filename.
192
- 2. **Steps without markers** are executed but not captured.
193
- 3. **Viewports** define all resolutions to test. Each viewport runs the full journey.
194
- 4. **Assertions** describe what to verify visually in each screenshot.
195
- 5. **Prerequisites** describe what must be true before starting.
196
-
197
- ## Troubleshooting
198
-
199
- ### Modal closes on viewport resize
200
-
201
- Some modals close when the viewport changes. The viewport execution strategy (full journey per viewport) handles this — each viewport starts fresh.
202
-
203
- ### Authentication required at each viewport
204
-
205
- If the app requires re-authentication after resize/navigation, include the auth steps in the journey.
206
-
207
- ### Screenshot markers in conditional steps
208
-
209
- If a step is conditional, capture the screenshot at the state described in the step text, not after the conditional action.
@@ -1,4 +0,0 @@
1
- display_name: "Jira Journey"
2
- short_description: "Read a JIRA ticket's Validation…"
3
- default_prompt:
4
- - "Use $jira-journey: Read a JIRA ticket's Validation…."