@codyswann/lisa 4.103.6 → 4.103.7

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 (172) hide show
  1. package/all/merge/.claude/settings.json +1 -11
  2. package/cdk/merge/.claude/settings.json +0 -3
  3. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  4. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  5. package/dist/core/upstream-evidence-manifest.js +23 -57
  6. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  7. package/dist/migrations/index.d.ts +1 -0
  8. package/dist/migrations/index.d.ts.map +1 -1
  9. package/dist/migrations/index.js +3 -0
  10. package/dist/migrations/index.js.map +1 -1
  11. package/dist/migrations/prune-retired-third-party-plugins.d.ts +67 -0
  12. package/dist/migrations/prune-retired-third-party-plugins.d.ts.map +1 -0
  13. package/dist/migrations/prune-retired-third-party-plugins.js +120 -0
  14. package/dist/migrations/prune-retired-third-party-plugins.js.map +1 -0
  15. package/expo/merge/.claude/settings.json +1 -11
  16. package/harper-fabric/merge/.claude/settings.json +0 -3
  17. package/nestjs/merge/.claude/settings.json +0 -3
  18. package/package.json +4 -4
  19. package/phaser/merge/.claude/settings.json +0 -3
  20. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  21. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  22. package/plugins/lisa/.codex-plugin/skills/lisa-parity-code-review/SKILL.md +3 -6
  23. package/plugins/lisa/.codex-plugin/skills/lisa-parity-coderabbit/SKILL.md +1 -1
  24. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-evidence/SKILL.md +8 -1
  25. package/plugins/lisa/rules/eager/coding-philosophy.md +1 -0
  26. package/plugins/lisa/rules/eager/tool-access-gate.md +6 -5
  27. package/plugins/lisa/rules/eager/verification.md +1 -1
  28. package/plugins/lisa/rules/reference/claim-evidence-mapping.md +3 -2
  29. package/plugins/lisa/rules/reference/tool-access-gate.md +17 -7
  30. package/plugins/lisa/rules/reference/verification.md +36 -1
  31. package/plugins/lisa/skills/lisa-parity-code-review/SKILL.md +3 -6
  32. package/plugins/lisa/skills/lisa-parity-coderabbit/SKILL.md +1 -1
  33. package/plugins/lisa/skills/lisa-tracker-evidence/SKILL.md +8 -1
  34. package/plugins/lisa-agy/plugin.json +1 -1
  35. package/plugins/lisa-agy/skills/lisa-parity-code-review/SKILL.md +3 -6
  36. package/plugins/lisa-agy/skills/lisa-parity-coderabbit/SKILL.md +1 -1
  37. package/plugins/lisa-agy/skills/lisa-tracker-evidence/SKILL.md +8 -1
  38. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  39. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  40. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  41. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  42. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  43. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  44. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  45. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  46. package/plugins/lisa-copilot/rules/eager/coding-philosophy.md +1 -0
  47. package/plugins/lisa-copilot/rules/eager/tool-access-gate.md +6 -5
  48. package/plugins/lisa-copilot/rules/eager/verification.md +1 -1
  49. package/plugins/lisa-copilot/rules/reference/claim-evidence-mapping.md +3 -2
  50. package/plugins/lisa-copilot/rules/reference/tool-access-gate.md +17 -7
  51. package/plugins/lisa-copilot/rules/reference/verification.md +36 -1
  52. package/plugins/lisa-copilot/skills/lisa-parity-code-review/SKILL.md +3 -6
  53. package/plugins/lisa-copilot/skills/lisa-parity-coderabbit/SKILL.md +1 -1
  54. package/plugins/lisa-copilot/skills/lisa-tracker-evidence/SKILL.md +8 -1
  55. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-cursor/rules/claim-evidence-mapping-reference.mdc +3 -2
  57. package/plugins/lisa-cursor/rules/coding-philosophy.mdc +1 -0
  58. package/plugins/lisa-cursor/rules/tool-access-gate-reference.mdc +17 -7
  59. package/plugins/lisa-cursor/rules/tool-access-gate.mdc +6 -5
  60. package/plugins/lisa-cursor/rules/verification-reference.mdc +36 -1
  61. package/plugins/lisa-cursor/rules/verification.mdc +1 -1
  62. package/plugins/lisa-cursor/skills/lisa-parity-code-review/SKILL.md +3 -6
  63. package/plugins/lisa-cursor/skills/lisa-parity-coderabbit/SKILL.md +1 -1
  64. package/plugins/lisa-cursor/skills/lisa-tracker-evidence/SKILL.md +8 -1
  65. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  66. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  67. package/plugins/lisa-devin/rules/eager/coding-philosophy.md +1 -0
  68. package/plugins/lisa-devin/rules/eager/tool-access-gate.md +6 -5
  69. package/plugins/lisa-devin/rules/eager/verification.md +1 -1
  70. package/plugins/lisa-devin/rules/reference/claim-evidence-mapping.md +3 -2
  71. package/plugins/lisa-devin/rules/reference/tool-access-gate.md +17 -7
  72. package/plugins/lisa-devin/rules/reference/verification.md +36 -1
  73. package/plugins/lisa-devin/skills/lisa-parity-code-review/SKILL.md +3 -6
  74. package/plugins/lisa-devin/skills/lisa-parity-coderabbit/SKILL.md +1 -1
  75. package/plugins/lisa-devin/skills/lisa-tracker-evidence/SKILL.md +8 -1
  76. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  77. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  78. package/plugins/lisa-expo-agy/plugin.json +1 -1
  79. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  80. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  81. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  82. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  83. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  84. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  85. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  86. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  87. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  88. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  89. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  90. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  91. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  92. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  93. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  94. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  95. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  96. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  97. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  98. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  99. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  100. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  101. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  102. package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
  103. package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
  104. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  105. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  106. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  107. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  108. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  109. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  110. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  111. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  112. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  113. package/plugins/lisa-rails-agy/plugin.json +1 -1
  114. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  115. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  116. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  117. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  118. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  119. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  120. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  121. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  122. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  123. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  124. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  125. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  126. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  127. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  128. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  129. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  130. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  131. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  132. package/plugins/src/base/rules/eager/coding-philosophy.md +1 -0
  133. package/plugins/src/base/rules/eager/tool-access-gate.md +6 -5
  134. package/plugins/src/base/rules/eager/verification.md +1 -1
  135. package/plugins/src/base/rules/reference/claim-evidence-mapping.md +3 -2
  136. package/plugins/src/base/rules/reference/tool-access-gate.md +17 -7
  137. package/plugins/src/base/rules/reference/verification.md +36 -1
  138. package/plugins/src/base/skills/lisa-parity-code-review/SKILL.md +3 -6
  139. package/plugins/src/base/skills/lisa-parity-coderabbit/SKILL.md +1 -1
  140. package/plugins/src/base/skills/lisa-tracker-evidence/SKILL.md +8 -1
  141. package/rails/merge/.claude/settings.json +1 -11
  142. package/scripts/install-claude-plugins.sh +19 -4
  143. package/typescript/merge/.claude/settings.json +0 -3
  144. package/ui/index.html +1 -9
  145. package/plugins/lisa/.codex-plugin/skills/lisa-parity-code-simplifier/SKILL.md +0 -78
  146. package/plugins/lisa/.codex-plugin/skills/lisa-parity-code-simplifier/agents/openai.yaml +0 -4
  147. package/plugins/lisa/.codex-plugin/skills/lisa-parity-skill-creator/SKILL.md +0 -157
  148. package/plugins/lisa/.codex-plugin/skills/lisa-parity-skill-creator/agents/openai.yaml +0 -4
  149. package/plugins/lisa/commands/parity-code-simplifier.md +0 -6
  150. package/plugins/lisa/commands/parity-skill-creator.md +0 -6
  151. package/plugins/lisa/skills/lisa-parity-code-simplifier/SKILL.md +0 -76
  152. package/plugins/lisa/skills/lisa-parity-code-simplifier/agents/openai.yaml +0 -4
  153. package/plugins/lisa/skills/lisa-parity-skill-creator/SKILL.md +0 -155
  154. package/plugins/lisa/skills/lisa-parity-skill-creator/agents/openai.yaml +0 -4
  155. package/plugins/lisa-agy/commands/lisa/parity-code-simplifier.md +0 -6
  156. package/plugins/lisa-agy/commands/lisa/parity-skill-creator.md +0 -6
  157. package/plugins/lisa-agy/skills/lisa-parity-code-simplifier/SKILL.md +0 -76
  158. package/plugins/lisa-agy/skills/lisa-parity-skill-creator/SKILL.md +0 -155
  159. package/plugins/lisa-copilot/commands/lisa/parity-code-simplifier.md +0 -6
  160. package/plugins/lisa-copilot/commands/lisa/parity-skill-creator.md +0 -6
  161. package/plugins/lisa-copilot/skills/lisa-parity-code-simplifier/SKILL.md +0 -76
  162. package/plugins/lisa-copilot/skills/lisa-parity-skill-creator/SKILL.md +0 -155
  163. package/plugins/lisa-cursor/commands/lisa/parity-code-simplifier.md +0 -6
  164. package/plugins/lisa-cursor/commands/lisa/parity-skill-creator.md +0 -6
  165. package/plugins/lisa-cursor/skills/lisa-parity-code-simplifier/SKILL.md +0 -76
  166. package/plugins/lisa-cursor/skills/lisa-parity-skill-creator/SKILL.md +0 -155
  167. package/plugins/lisa-devin/skills/lisa-parity-code-simplifier/SKILL.md +0 -76
  168. package/plugins/lisa-devin/skills/lisa-parity-skill-creator/SKILL.md +0 -155
  169. package/plugins/src/base/commands/parity-code-simplifier.md +0 -6
  170. package/plugins/src/base/commands/parity-skill-creator.md +0 -6
  171. package/plugins/src/base/skills/lisa-parity-code-simplifier/SKILL.md +0 -76
  172. package/plugins/src/base/skills/lisa-parity-skill-creator/SKILL.md +0 -155
@@ -164,12 +164,15 @@ The committed verdict carries the machine-readable half:
164
164
  evidence/<ticket>/verdict.json
165
165
  not_established: [] # what was NOT proved; may be empty
166
166
  not_established_reviewed: true # attests the list was reviewed; may NEVER be omitted
167
+ evidence_committed: true # false when git ignores any of evidence/<ticket>/ — see
168
+ # "When the repository ignores evidence" below
167
169
  drift: none # live-environment baseline-vs-now drift classification:
168
170
  # none | progress | regression | unrelated_churn
169
171
  artifact: { repository, base_sha, head_sha, build_id, environment, observed_at }
170
172
  evidence: [ { evidence_id, kind, locator,
171
173
  artifact_head_sha, # the head_sha in force when THIS artifact was captured
172
- sha256, # content digest of the committed evidence file
174
+ sha256, # content digest of the committed evidence file, or of the
175
+ # uploaded evidence-release copy when git ignores the evidence
173
176
  captured_at } ]
174
177
  ```
175
178
 
@@ -257,6 +260,38 @@ evidence/<ticket>/
257
260
 
258
261
  `evidence/**` is ignored by lint/format/knip/coverage — it is proof, not source.
259
262
 
263
+ **When the repository ignores evidence.** Some repositories gitignore
264
+ `evidence/` on purpose, because screenshots and recordings bloat history. Others
265
+ ignore file patterns such as `*.png` or `*.mp4` that the evidence uses. Either way,
266
+ `git add` skips those files without any error, and the PR carries no proof of
267
+ them. So before treating `evidence/<ticket>/` as the committed record, run:
268
+
269
+ ```bash
270
+ git ls-files --others --ignored --exclude-standard -- evidence/<ticket>/
271
+ ```
272
+
273
+ - **It prints one or more files.** Git ignores that evidence, and then:
274
+ - The directory is **not** the durable record. The durable record is the tracker
275
+ evidence comment plus the configured evidence release uploads that
276
+ `lisa-tracker-evidence` makes. Every manifest artifact must be uploaded there,
277
+ including `verdict.json` and `state.json`, not only the screenshots.
278
+ - `verdict.json` records `"evidence_committed": false`. Each `evidence[].locator`
279
+ is the uploaded asset's URL, not a repository path. So each `sha256` is a digest
280
+ of bytes that anyone with read access to the repository can fetch and re-check.
281
+ - A digest of a file that exists only in one session's working tree is a
282
+ **session-local integrity anchor**. Never present it as something a third party
283
+ can re-verify.
284
+ - Reports, PR text, and tracker comments never say the evidence was "committed".
285
+ They say it was uploaded, and they name the tracker comment as the record of
286
+ truth.
287
+ - **It prints nothing, exits 0, and the directory holds the manifest files.**
288
+ Nothing is ignored. Commit the directory as described above and record
289
+ `"evidence_committed": true`. An empty result for a missing or mistyped
290
+ directory proves nothing: check that the files exist first.
291
+ - **It exits non-zero.** The check itself failed, for example because the path is
292
+ outside the repository or there is no repository. Stop and report the failure.
293
+ Never treat it as tracked.
294
+
260
295
  **3. Per-change verification is enforced.** Every `feat`/`fix` adds or extends a
261
296
  verification (e2e) spec mapped to its acceptance criteria. CI's
262
297
  `verification-coverage` check requires that delta. The sole exception is a
@@ -2,16 +2,13 @@
2
2
  name: lisa-parity-code-review
3
3
  description: "Lisa-native code review of the current git diff. Walks every changed hunk and reports correctness bugs, security issues, and obvious defects as severity-ranked findings with file:line references. Vendor-neutral — the cross-agent equivalent of the upstream code-review command, runnable on Codex, agy, Copilot, Cursor, and Claude."
4
4
  allowed-tools: ["Read", "Bash", "Grep", "Glob"]
5
- synced-from: code-review@claude-plugins-official@1.0.1
6
5
  ---
7
6
 
8
7
  # Parity Code Review
9
8
 
10
- Review the code that is *about to ship* — the current uncommitted/branch diff — for defects a reviewer would block on. This is a focused **defect hunt**: correctness, security, and obvious mistakes. It is not a style audit and not a refactor pass (use `parity-code-simplifier` for quality-only cleanup).
9
+ Review the code that is *about to ship* — the current uncommitted/branch diff — for defects a reviewer would block on. This is a focused **defect hunt**: correctness, security, and obvious mistakes. It is not a style audit and not a refactor pass; simplification is covered by the coding-philosophy rule.
11
10
 
12
- > **Drift tracking.** Pinned to `code-review@claude-plugins-official@1.0.1`. Upstream published no semver until 1.0.1, so this skill used to carry no pin and was reviewed by hand; it is now tracked by the Lisa repository's `scripts/plugin-parity-drift.mjs` (a Lisa-repository maintainer check that host projects do not ship, so it does not run in a host checkout), which flags the pin as stale when the plugin cache holds a newer upstream version. This is a Lisa-native reimplementation, **not** a port of upstream code.
13
- >
14
- > **Reviewed against 1.0.1, partly diverged.** Adopted from upstream 1.0.1: findings print to the terminal only; every candidate finding is validated before it is reported (Step 4); and a high-signal bar governs what is blocking (relaxed to admit an input-dependent defect once its triggering input is shown to be reachable; see Step 4). Deliberately not reimplemented: upstream's `--comment` mode, which posts inline PR comments through `mcp__github_inline_comment__create_inline_comment` (use `lisa-pull-request-review` to act on a pull request), and its four-reviewer subagent pipeline. This skill is one reviewer over the local diff, because the agents it serves (Codex, agy, Copilot, Cursor, Devin) have no common subagent or inline-comment surface. The `synced-from` scalar cannot record that split, so this note does.
11
+ > **Lisa-owned.** This began as a reimplementation of the upstream `code-review@claude-plugins-official` command and was last reviewed against its 1.0.1. Lisa stopped enabling that plugin (CodySwannGT/lisa#4799) because Claude Code now ships a built-in `/code-review`, so this skill is no longer pinned to or drift-tracked against upstream. It stays as the vendor-neutral review for agents without a built-in equivalent. It is one reviewer over the local diff, because the agents it serves (Codex, agy, Copilot, Cursor, Devin) have no common subagent or inline-comment surface; use `lisa-pull-request-review` to act on a pull request.
15
12
 
16
13
  ## Step 1: Establish the diff
17
14
 
@@ -106,4 +103,4 @@ Example:
106
103
  - **Ground every finding in the diff.** No speculative findings, no generic best-practice lectures unrelated to the change.
107
104
  - **Be honest about coverage.** If you deprioritized files or couldn't fully trace a path, say so.
108
105
  - **If the diff is clean, say so clearly** — "No blocking issues found across N changed files" — do not manufacture problems.
109
- - This is review-only: report findings, do **not** edit files. Apply fixes via the normal implementation flow or `parity-code-simplifier` (quality) after triage.
106
+ - This is review-only: report findings, do **not** edit files. Apply fixes via the normal implementation flow after triage.
@@ -83,5 +83,5 @@ Call out what's done well. A credible review is balanced, not only critical.
83
83
  - **Malformed blockers do not block.** If you cannot name a concrete failure scenario and evidence, report it as non-blocking context or omit it.
84
84
  - **Concrete fixes only.** "Consider improving error handling" is not a finding; "wrap the `fetch` in try/catch and return a 502 on network error at `api/proxy.ts:31`" is.
85
85
  - **No external review service.** Use only local git/tooling and the model — this is an independent review, not a CodeRabbit proxy.
86
- - **Review-only.** Report findings; do not edit files. Route fixes through the implementation flow, `parity-code-simplifier` (quality), or a follow-up.
86
+ - **Review-only.** Report findings; do not edit files. Route fixes through the implementation flow or a follow-up.
87
87
  - **If the diff is clean, approve it plainly** and say why — do not invent problems to look thorough.
@@ -33,12 +33,19 @@ omit the plugin rules tree; do not assume a runtime-specific rules directory.
33
33
  ## Rules
34
34
 
35
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
+ - **Ignored evidence.** Before dispatching, run `git ls-files --others --ignored --exclude-standard -- "$EVIDENCE_DIR"`. If it exits non-zero, the check itself failed. Stop and report that; never read it as "tracked". An empty result means "tracked" only when the manifest files actually exist in `$EVIDENCE_DIR`. If it prints any file, git ignores that evidence, either the whole directory or a pattern such as `*.png`. That evidence will never reach the PR, so the tracker comment becomes the record of truth. The vendor skills upload only some files (`lisa-github-evidence` takes numbered `.txt` and `*.json`, `lisa-jira-evidence` takes `NN-name.(png|txt|json)`, and `lisa-linear-evidence` takes `evidence/files/`), so this wrapper does the rest itself, **before** dispatching:
37
+ 1. Resolve `RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)`. Never hard-code `pr-assets`.
38
+ 2. Upload every manifest artifact except `verdict.json`, including `state.json`, images, recordings, transcripts, and logs. Upload the files the vendor skill also uploads too, so that every locator points at a copy this step made. Stage each file as a copy under a ticket-scoped asset name, so one ticket can never overwrite another's file: `pr-<PR_NUMBER>-<ticket>-<file>` for GitHub and Jira, and `<IDENTIFIER>-<file>` for Linear. `<ticket>` is a `[a-z0-9-]` slug: the GitHub issue number, or the lowercased Jira key. Never use `org/repo#N` or a URL, because `/` and `#` are not valid in an asset name. Upload with `gh release upload "$RELEASE" <copies> --clobber`, which is safe because the names are ticket-scoped and lets a re-run succeed. If any upload fails, stop before dispatching.
39
+ 3. Rewrite each `verdict.json` `evidence[].locator` to its uploaded URL, set `"evidence_committed": false`, and upload `verdict.json` last the same way. Stop if that upload fails.
40
+ 4. In the comment, list each artifact's uploaded URL next to its `sha256` under `## Artifact identity` as a **plain URL**, not a Markdown link. Say plainly that the evidence was uploaded, not committed, and that this comment is the durable record.
41
+
42
+ Never describe ignored evidence as "committed". A digest of a file that was neither committed nor uploaded is a session-local anchor, not something a reviewer can re-check.
36
43
  - Never post evidence to a different ticket than the one named — `$ARGUMENTS` is the source of truth.
37
44
  - 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
45
  - **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.
39
46
  - **Claim↔boundary binding (S14 upgrade).** Satisfying the manifest by *type* is not enough: each `[EVIDENCE: <artifact-type>: <name>]` marker is also cited for a **claim**, and the marker's artifact type must **reach the boundary that claim declares** per the `claim-evidence-mapping` rule's taxonomy. A `browser` claim (user-visible UI behavior) is reached by `screenshot` / `recording` and never by a unit `test-run-log`; an `http-api` claim needs an `http-transcript`; a `deploy-health` claim needs a `deploy-log` and no pre-deploy artifact. On a mismatch, report the offending marker **by name** together with the claim, its boundary, and the **required evidence kinds** for that boundary — e.g. `[EVIDENCE: test-run-log: unit-suite] cited for claim AC-2 [boundary browser] — required evidence kinds: screenshot, recording`. Swapping in a marker of a reaching kind with a real captured artifact satisfies the gate. **Advisory-first:** until `verification.gate.enforceBoundaries` is `true` in `.lisa.config.json` (the same ratchet flag the Stop-hook gate reads, default `false`), a boundary mismatch is reported to the operator but does not block the post; once ratcheted on it refuses the post exactly like a missing or wrong-type artifact. Missing/empty/wrong-type artifacts keep refusing the post regardless of the flag.
40
47
  - **The "Not established" section is required.** Before posting, confirm `evidence/comment.md` (and `comment.txt` where the vendor uses it) contains a `## Not established` heading and that the verdict carries `not_established_reviewed: true`. The heading is **never omitted and never blank**: with nothing outstanding it still renders `None outstanding — reviewed`; otherwise it lists, in plain operator language, each thing the verification did not prove — boundaries not exercised, environments not tested, behavior consciously out of scope. A comment with no such heading, a heading with nothing under it, or a verdict whose `not_established_reviewed` flag is absent is **refused**: stop and report the missing Not-established review instead of posting. (The list may be empty; the flag may never be omitted.) Definition and exemplars live in the `claim-evidence-mapping` rule; this generalizes `lisa-improve-harness`'s required, never-empty `Known limits` field.
41
- - **Artifact identity is required, with values (S14 extension).** Before posting, confirm the comment body carries a `## Artifact identity` heading populated with **values, not placeholders**: the `repository`, the `head_sha` the verification observed, the `environment`, and for each committed artifact its `sha256` digest and `captured_at`. Then check both identity failures. **`artifact_mismatch`** — an evidence entry whose recorded `artifact_head_sha` differs from the verdict's `artifact.head_sha`: refuse the post and report the offending evidence id together with **both SHAs** (the one the artifact was captured at and the one the verdict claims), e.g. `EV-2 captured at 4f1c9ab but artifact.head_sha is 9de0c31`. **`evidence_digest_mismatch`** — recompute the `sha256` of each committed evidence file on read; if the bytes no longer match the recorded digest (or the file is absent), stop and report the evidence id by name. Never summarize either as "verification failed" — name the field, the ids, and both SHAs so a non-engineer can read it at the gate. **Advisory-first:** until `verification.gate.enforceBoundaries` is `true` in `.lisa.config.json`, an identity failure is reported to the operator but does not block the post; once ratcheted on it refuses the post exactly like a missing artifact. Definition: the `claim-evidence-mapping` rule.
48
+ - **Artifact identity is required, with values (S14 extension).** Before posting, confirm the comment body carries a `## Artifact identity` heading populated with **values, not placeholders**: the `repository`, the `head_sha` the verification observed, the `environment`, and for each committed or uploaded artifact its `sha256` digest and `captured_at`. Then check both identity failures. **`artifact_mismatch`** — an evidence entry whose recorded `artifact_head_sha` differs from the verdict's `artifact.head_sha`: refuse the post and report the offending evidence id together with **both SHAs** (the one the artifact was captured at and the one the verdict claims), e.g. `EV-2 captured at 4f1c9ab but artifact.head_sha is 9de0c31`. **`evidence_digest_mismatch`** — recompute the `sha256` of each committed evidence file on read, or of the fetched bytes when its locator is an uploaded URL; if the bytes no longer match the recorded digest (or the file is absent), stop and report the evidence id by name. Never summarize either as "verification failed" — name the field, the ids, and both SHAs so a non-engineer can read it at the gate. **Advisory-first:** until `verification.gate.enforceBoundaries` is `true` in `.lisa.config.json`, an identity failure is reported to the operator but does not block the post; once ratcheted on it refuses the post exactly like a missing artifact. Definition: the `claim-evidence-mapping` rule.
42
49
  - **Merge-race reconciliation (at completion, not at post).** The evidence's pinned `head_sha` is reconciled against the merged head using the ancestry + deploy-run definition of "what shipped" that `lisa-drive-pr-to-merge` already owns — cite that skill, never re-implement or restate its checks here. Pre-merge evidence counts for the merge commit only when its head is a parent of the merge, ancestry alone never justifies reporting shipped, and on a mismatch verification re-runs against the merged head before completion is declared.
43
50
  - **Evidence references are not manifest entries.** Extract obligations using the exact `[EVIDENCE:` prefix (and the legacy local `[SCREENSHOT:` form). Exclude both the canonical `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` and the Lisa 2.223.0 legacy alias `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` from artifact lookup, missing-artifact reporting, and duplicate-name checks: either belongs to another work item and cannot satisfy this item's S14 gate. A runtime-changing leaf with references but no local claiming marker must be rejected before dispatch. Linear returns stored Markdown with brackets escaped (`\[EVIDENCE: cli-output: name\]`): decode one Markdown escape layer outside code before matching, as `localMarkers` in `completion-proof-shape.mjs` does, so escaped and unescaped markers bind the same manifest.
44
51
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "4.103.6",
3
+ "version": "4.103.7",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -2,16 +2,13 @@
2
2
  name: lisa-parity-code-review
3
3
  description: "Lisa-native code review of the current git diff. Walks every changed hunk and reports correctness bugs, security issues, and obvious defects as severity-ranked findings with file:line references. Vendor-neutral — the cross-agent equivalent of the upstream code-review command, runnable on Codex, agy, Copilot, Cursor, and Claude."
4
4
  allowed-tools: ["Read", "Bash", "Grep", "Glob"]
5
- synced-from: code-review@claude-plugins-official@1.0.1
6
5
  ---
7
6
 
8
7
  # Parity Code Review
9
8
 
10
- Review the code that is *about to ship* — the current uncommitted/branch diff — for defects a reviewer would block on. This is a focused **defect hunt**: correctness, security, and obvious mistakes. It is not a style audit and not a refactor pass (use `parity-code-simplifier` for quality-only cleanup).
9
+ Review the code that is *about to ship* — the current uncommitted/branch diff — for defects a reviewer would block on. This is a focused **defect hunt**: correctness, security, and obvious mistakes. It is not a style audit and not a refactor pass; simplification is covered by the coding-philosophy rule.
11
10
 
12
- > **Drift tracking.** Pinned to `code-review@claude-plugins-official@1.0.1`. Upstream published no semver until 1.0.1, so this skill used to carry no pin and was reviewed by hand; it is now tracked by the Lisa repository's `scripts/plugin-parity-drift.mjs` (a Lisa-repository maintainer check that host projects do not ship, so it does not run in a host checkout), which flags the pin as stale when the plugin cache holds a newer upstream version. This is a Lisa-native reimplementation, **not** a port of upstream code.
13
- >
14
- > **Reviewed against 1.0.1, partly diverged.** Adopted from upstream 1.0.1: findings print to the terminal only; every candidate finding is validated before it is reported (Step 4); and a high-signal bar governs what is blocking (relaxed to admit an input-dependent defect once its triggering input is shown to be reachable; see Step 4). Deliberately not reimplemented: upstream's `--comment` mode, which posts inline PR comments through `mcp__github_inline_comment__create_inline_comment` (use `lisa-pull-request-review` to act on a pull request), and its four-reviewer subagent pipeline. This skill is one reviewer over the local diff, because the agents it serves (Codex, agy, Copilot, Cursor, Devin) have no common subagent or inline-comment surface. The `synced-from` scalar cannot record that split, so this note does.
11
+ > **Lisa-owned.** This began as a reimplementation of the upstream `code-review@claude-plugins-official` command and was last reviewed against its 1.0.1. Lisa stopped enabling that plugin (CodySwannGT/lisa#4799) because Claude Code now ships a built-in `/code-review`, so this skill is no longer pinned to or drift-tracked against upstream. It stays as the vendor-neutral review for agents without a built-in equivalent. It is one reviewer over the local diff, because the agents it serves (Codex, agy, Copilot, Cursor, Devin) have no common subagent or inline-comment surface; use `lisa-pull-request-review` to act on a pull request.
15
12
 
16
13
  ## Step 1: Establish the diff
17
14
 
@@ -106,4 +103,4 @@ Example:
106
103
  - **Ground every finding in the diff.** No speculative findings, no generic best-practice lectures unrelated to the change.
107
104
  - **Be honest about coverage.** If you deprioritized files or couldn't fully trace a path, say so.
108
105
  - **If the diff is clean, say so clearly** — "No blocking issues found across N changed files" — do not manufacture problems.
109
- - This is review-only: report findings, do **not** edit files. Apply fixes via the normal implementation flow or `parity-code-simplifier` (quality) after triage.
106
+ - This is review-only: report findings, do **not** edit files. Apply fixes via the normal implementation flow after triage.
@@ -83,5 +83,5 @@ Call out what's done well. A credible review is balanced, not only critical.
83
83
  - **Malformed blockers do not block.** If you cannot name a concrete failure scenario and evidence, report it as non-blocking context or omit it.
84
84
  - **Concrete fixes only.** "Consider improving error handling" is not a finding; "wrap the `fetch` in try/catch and return a 502 on network error at `api/proxy.ts:31`" is.
85
85
  - **No external review service.** Use only local git/tooling and the model — this is an independent review, not a CodeRabbit proxy.
86
- - **Review-only.** Report findings; do not edit files. Route fixes through the implementation flow, `parity-code-simplifier` (quality), or a follow-up.
86
+ - **Review-only.** Report findings; do not edit files. Route fixes through the implementation flow or a follow-up.
87
87
  - **If the diff is clean, approve it plainly** and say why — do not invent problems to look thorough.
@@ -33,12 +33,19 @@ omit the plugin rules tree; do not assume a runtime-specific rules directory.
33
33
  ## Rules
34
34
 
35
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
+ - **Ignored evidence.** Before dispatching, run `git ls-files --others --ignored --exclude-standard -- "$EVIDENCE_DIR"`. If it exits non-zero, the check itself failed. Stop and report that; never read it as "tracked". An empty result means "tracked" only when the manifest files actually exist in `$EVIDENCE_DIR`. If it prints any file, git ignores that evidence, either the whole directory or a pattern such as `*.png`. That evidence will never reach the PR, so the tracker comment becomes the record of truth. The vendor skills upload only some files (`lisa-github-evidence` takes numbered `.txt` and `*.json`, `lisa-jira-evidence` takes `NN-name.(png|txt|json)`, and `lisa-linear-evidence` takes `evidence/files/`), so this wrapper does the rest itself, **before** dispatching:
37
+ 1. Resolve `RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)`. Never hard-code `pr-assets`.
38
+ 2. Upload every manifest artifact except `verdict.json`, including `state.json`, images, recordings, transcripts, and logs. Upload the files the vendor skill also uploads too, so that every locator points at a copy this step made. Stage each file as a copy under a ticket-scoped asset name, so one ticket can never overwrite another's file: `pr-<PR_NUMBER>-<ticket>-<file>` for GitHub and Jira, and `<IDENTIFIER>-<file>` for Linear. `<ticket>` is a `[a-z0-9-]` slug: the GitHub issue number, or the lowercased Jira key. Never use `org/repo#N` or a URL, because `/` and `#` are not valid in an asset name. Upload with `gh release upload "$RELEASE" <copies> --clobber`, which is safe because the names are ticket-scoped and lets a re-run succeed. If any upload fails, stop before dispatching.
39
+ 3. Rewrite each `verdict.json` `evidence[].locator` to its uploaded URL, set `"evidence_committed": false`, and upload `verdict.json` last the same way. Stop if that upload fails.
40
+ 4. In the comment, list each artifact's uploaded URL next to its `sha256` under `## Artifact identity` as a **plain URL**, not a Markdown link. Say plainly that the evidence was uploaded, not committed, and that this comment is the durable record.
41
+
42
+ Never describe ignored evidence as "committed". A digest of a file that was neither committed nor uploaded is a session-local anchor, not something a reviewer can re-check.
36
43
  - Never post evidence to a different ticket than the one named — `$ARGUMENTS` is the source of truth.
37
44
  - 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
45
  - **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.
39
46
  - **Claim↔boundary binding (S14 upgrade).** Satisfying the manifest by *type* is not enough: each `[EVIDENCE: <artifact-type>: <name>]` marker is also cited for a **claim**, and the marker's artifact type must **reach the boundary that claim declares** per the `claim-evidence-mapping` rule's taxonomy. A `browser` claim (user-visible UI behavior) is reached by `screenshot` / `recording` and never by a unit `test-run-log`; an `http-api` claim needs an `http-transcript`; a `deploy-health` claim needs a `deploy-log` and no pre-deploy artifact. On a mismatch, report the offending marker **by name** together with the claim, its boundary, and the **required evidence kinds** for that boundary — e.g. `[EVIDENCE: test-run-log: unit-suite] cited for claim AC-2 [boundary browser] — required evidence kinds: screenshot, recording`. Swapping in a marker of a reaching kind with a real captured artifact satisfies the gate. **Advisory-first:** until `verification.gate.enforceBoundaries` is `true` in `.lisa.config.json` (the same ratchet flag the Stop-hook gate reads, default `false`), a boundary mismatch is reported to the operator but does not block the post; once ratcheted on it refuses the post exactly like a missing or wrong-type artifact. Missing/empty/wrong-type artifacts keep refusing the post regardless of the flag.
40
47
  - **The "Not established" section is required.** Before posting, confirm `evidence/comment.md` (and `comment.txt` where the vendor uses it) contains a `## Not established` heading and that the verdict carries `not_established_reviewed: true`. The heading is **never omitted and never blank**: with nothing outstanding it still renders `None outstanding — reviewed`; otherwise it lists, in plain operator language, each thing the verification did not prove — boundaries not exercised, environments not tested, behavior consciously out of scope. A comment with no such heading, a heading with nothing under it, or a verdict whose `not_established_reviewed` flag is absent is **refused**: stop and report the missing Not-established review instead of posting. (The list may be empty; the flag may never be omitted.) Definition and exemplars live in the `claim-evidence-mapping` rule; this generalizes `lisa-improve-harness`'s required, never-empty `Known limits` field.
41
- - **Artifact identity is required, with values (S14 extension).** Before posting, confirm the comment body carries a `## Artifact identity` heading populated with **values, not placeholders**: the `repository`, the `head_sha` the verification observed, the `environment`, and for each committed artifact its `sha256` digest and `captured_at`. Then check both identity failures. **`artifact_mismatch`** — an evidence entry whose recorded `artifact_head_sha` differs from the verdict's `artifact.head_sha`: refuse the post and report the offending evidence id together with **both SHAs** (the one the artifact was captured at and the one the verdict claims), e.g. `EV-2 captured at 4f1c9ab but artifact.head_sha is 9de0c31`. **`evidence_digest_mismatch`** — recompute the `sha256` of each committed evidence file on read; if the bytes no longer match the recorded digest (or the file is absent), stop and report the evidence id by name. Never summarize either as "verification failed" — name the field, the ids, and both SHAs so a non-engineer can read it at the gate. **Advisory-first:** until `verification.gate.enforceBoundaries` is `true` in `.lisa.config.json`, an identity failure is reported to the operator but does not block the post; once ratcheted on it refuses the post exactly like a missing artifact. Definition: the `claim-evidence-mapping` rule.
48
+ - **Artifact identity is required, with values (S14 extension).** Before posting, confirm the comment body carries a `## Artifact identity` heading populated with **values, not placeholders**: the `repository`, the `head_sha` the verification observed, the `environment`, and for each committed or uploaded artifact its `sha256` digest and `captured_at`. Then check both identity failures. **`artifact_mismatch`** — an evidence entry whose recorded `artifact_head_sha` differs from the verdict's `artifact.head_sha`: refuse the post and report the offending evidence id together with **both SHAs** (the one the artifact was captured at and the one the verdict claims), e.g. `EV-2 captured at 4f1c9ab but artifact.head_sha is 9de0c31`. **`evidence_digest_mismatch`** — recompute the `sha256` of each committed evidence file on read, or of the fetched bytes when its locator is an uploaded URL; if the bytes no longer match the recorded digest (or the file is absent), stop and report the evidence id by name. Never summarize either as "verification failed" — name the field, the ids, and both SHAs so a non-engineer can read it at the gate. **Advisory-first:** until `verification.gate.enforceBoundaries` is `true` in `.lisa.config.json`, an identity failure is reported to the operator but does not block the post; once ratcheted on it refuses the post exactly like a missing artifact. Definition: the `claim-evidence-mapping` rule.
42
49
  - **Merge-race reconciliation (at completion, not at post).** The evidence's pinned `head_sha` is reconciled against the merged head using the ancestry + deploy-run definition of "what shipped" that `lisa-drive-pr-to-merge` already owns — cite that skill, never re-implement or restate its checks here. Pre-merge evidence counts for the merge commit only when its head is a parent of the merge, ancestry alone never justifies reporting shipped, and on a mismatch verification re-runs against the merged head before completion is declared.
43
50
  - **Evidence references are not manifest entries.** Extract obligations using the exact `[EVIDENCE:` prefix (and the legacy local `[SCREENSHOT:` form). Exclude both the canonical `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` and the Lisa 2.223.0 legacy alias `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` from artifact lookup, missing-artifact reporting, and duplicate-name checks: either belongs to another work item and cannot satisfy this item's S14 gate. A runtime-changing leaf with references but no local claiming marker must be rejected before dispatch. Linear returns stored Markdown with brackets escaped (`\[EVIDENCE: cli-output: name\]`): decode one Markdown escape layer outside code before matching, as `localMarkers` in `completion-proof-shape.mjs` does, so escaped and unescaped markers bind the same manifest.
44
51
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "4.103.6",
3
+ "version": "4.103.7",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "4.103.6",
3
+ "version": "4.103.7",
4
4
  "description": "AWS CDK-specific Lisa plugin.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "4.103.6",
3
+ "version": "4.103.7",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "4.103.6",
3
+ "version": "4.103.7",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "4.103.6",
3
+ "version": "4.103.7",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "4.103.6",
3
+ "version": "4.103.7",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "4.103.6",
3
+ "version": "4.103.7",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "4.103.6",
3
+ "version": "4.103.7",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -18,6 +18,7 @@ When writing or modifying code, follow these principles. Examples, hook structur
18
18
  - **Function structure order**: (1) variables & derived state, (2) side effects, (3) return. Never interleave.
19
19
  - **Functional transformations.** Prefer `map`/`filter`/`reduce` over imperative loops with mutation.
20
20
  - **Clean deletion.** When replacing code, delete the old version completely. No `V2`/`Old`/`New` suffixes, no `@deprecated` comments, no migration shims unless explicitly requested. Trust git history.
21
+ - **Simplify before you finish.** Before calling a change done, re-read your own diff and simplify it without changing behaviour: reuse existing helpers instead of new ones, remove duplication, dead code and needless indirection, and prefer clearer names and flatter control flow. Re-run the tests afterwards.
21
22
 
22
23
  ## What NOT to write
23
24
 
@@ -7,11 +7,12 @@ missing in your next message and stop.
7
7
 
8
8
  Only take on work you can finish. Before implementation starts — and again the
9
9
  moment a new requirement surfaces mid-flow — enumerate every external tool the
10
- work item needs (implementation, proof command, remote verification: AWS CLI,
11
- Figma, Jam, Sentry, SonarCloud, PostHog, device/browser harnesses, databases,
12
- deploy targets, …) and **prove access with a cheap read-only probe**, routing
13
- through the matching `*-access` skill where one exists. Resolve credentials through the documented access path before probing;
14
- presence on PATH is not access. If that path or the probe cannot provide the
10
+ work item needs (implementation, proof command, remote verification: AWS,
11
+ Figma, Sentry, browsers, databases, deploy targets, …) and **prove access with
12
+ a cheap read-only probe**, routing through the matching `*-access` skill where
13
+ one exists. Resolve credentials first, including `lisa-secrets-access` and the
14
+ recovery it documents (allowed, not a forbidden write); presence on PATH is not
15
+ access. If that path or the probe cannot provide the
15
16
  required access, report the gap and stop.
16
17
 
17
18
  The message must name the missing resource, the operation it blocks, and any
@@ -15,7 +15,7 @@
15
15
  - **Before starting implementation, state your verification plan** — how you will USE the resulting software to prove it works. A plan that only lists `test`/`typecheck`/`lint` commands is not a plan. Do not begin until confirmed.
16
16
  - **After verifying empirically, codify it as a regression test** via the `codify-verification` skill — Playwright for UI, integration test for API/DB/auth, benchmark for performance. Codification is mandatory for every verification type except PR/Documentation/Deploy and Investigate-Only spikes. For **frontend work**, codification is multi-runner and governed by the `bdd-e2e-coverage` rule: the verified journey is encoded in the project's configured runner for **every** platform the behavior's scenario requires — one runner is never a substitute for another, because they guard different platforms of the same behavior. Cite that rule; do not restate its obligations or name a runner as though the contract mandated one.
17
17
  - **The codified proof re-runs in CI.** Codified runtime verification lives wherever the project's own configured e2e runner(s) already look for tests — its own config and conventions, never a Lisa-assumed path or tool — and runs as a required CI check for types with verification enforced, so the proof re-runs on every PR, not once by hand. For **frontend work** specifically, where that runner lives and how many runners are required is governed by the `bdd-e2e-coverage` rule, not this bullet.
18
- - **Commit the evidence.** Write a durable artifact to `evidence/<ticket>/` — the acceptance criteria with per-criterion pass/fail + note, the observed state, screenshots/recording, and a `verdict.json`. The transient `.lisa/verification-status.json` is the session gate; `evidence/<ticket>/` is the committed proof.
18
+ - **Commit the evidence** to `evidence/<ticket>/`: per-criterion pass/fail + note, observed state, screenshots/recording, `verdict.json`. `.lisa/verification-status.json` is only the session gate. Git may ignore evidence: run the reference rule's ignored-evidence check first; never call ignored evidence committed.
19
19
  - **Evidence markers are typed artifacts, not assertion labels.** A Validation Journey marker is `[EVIDENCE: <artifact-type>: <name>]` where the type (screenshot, recording, http-transcript, cli-output, log-snippet, db-query-output, perf-trace, test-run-log, deploy-log, state-dump) says HOW the proof is captured and the name says WHAT it proves. `[EVIDENCE: works-gracefully]` is a claim, not evidence — write `[EVIDENCE: screenshot: load-failure-error-state]`. Completion requires a captured artifact **of the declared type** per marker. To cite another work item's artifact without claiming it, write `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]`. The Lisa 2.223.0 colon form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` remains accepted as a legacy non-claiming alias but must not be newly authored. A reference never enters or satisfies the local S14 manifest; malformed references fail S14, and agents must not quote sibling `[EVIDENCE: ...]` markers directly.
20
20
  - **Per-change verification is mandatory.** Every `feat`/`fix` adds or extends a verification (e2e) spec mapped to its acceptance criteria. The only exception is a genuinely non-behavioral change explicitly marked with the **logged** `verification-exempt` label — never a silent skip.
21
21
  - **Frontend work also seals its behavior contract.** Per the `bdd-e2e-coverage` rule, a work item that adds or changes a user-observable surface is not done until its behavior exists as Gherkin scenarios with stable IDs, every required scenario-platform obligation is mapped to aligned e2e automation (or carries a dated waiver), and the coverage gate passes with the matrix regenerated. Missing BDD coverage is a verification failure, not a warning.
@@ -216,7 +216,7 @@ Identity is carried in two places, and they must agree:
216
216
  | | `environment` | where it ran (local, preview, staging, production) |
217
217
  | | `observed_at` | when the run observed it (ISO-8601 UTC) |
218
218
  | `evidence[]` (per artifact) | `artifact_head_sha` | the `head_sha` in force **when that artifact was captured** |
219
- | | `sha256` | content digest of the committed evidence file |
219
+ | | `sha256` | content digest of the committed evidence file, or of its uploaded evidence-release copy when git ignores the evidence (`evidence_committed: false`; see the `verification` rule) |
220
220
  | | `captured_at` | when that artifact was captured (ISO-8601 UTC) |
221
221
 
222
222
  `head_sha` pins the *build*; `sha256` pins the *bytes*. Together they answer both identity questions:
@@ -230,7 +230,8 @@ is cited as prior art here, not reinvented.
230
230
  `artifact.head_sha`. The evidence describes a different build than the one the verdict claims. The
231
231
  identity check fails **loudly, naming both SHAs** (the evidence's and the verdict's) so an operator
232
232
  can see which build each half is talking about.
233
- - **`evidence_digest_mismatch`** — on read, recompute the `sha256` of each committed evidence file. If
233
+ - **`evidence_digest_mismatch`** — on read, recompute the `sha256` of each committed evidence file (or,
234
+ when its locator is an uploaded URL, of the bytes fetched from that URL). If
234
235
  the bytes no longer match the recorded digest, the artifact has changed since it was recorded: the
235
236
  check fails, it names the evidence id, and blocks completion. A digest that cannot be recomputed
236
237
  (file absent) is the same failure.
@@ -51,8 +51,9 @@ authenticated surface** — tool presence on PATH is not access.
51
51
  (see the `integration-access-layer` rule): `lisa-atlassian-access`,
52
52
  `lisa-notion-access`, `lisa-linear-access`, `lisa-jam-access`,
53
53
  `lisa-sonarcloud-access`, `lisa-sentry-access`, `lisa-posthog-access`,
54
- `lisa-expo:play-store-access`. A loud access-skill failure naming a missing
55
- env var IS a failed probe.
54
+ `lisa-secrets-access` (credentials held in the configured secret provider,
55
+ including AWS), `lisa-expo:play-store-access`. A loud access-skill failure
56
+ naming a missing env var IS a failed probe.
56
57
  - Vendors without an access layer are probed with the cheapest authenticated
57
58
  read the runtime offers (an MCP tool call, a CLI read, a REST GET).
58
59
 
@@ -60,7 +61,7 @@ Example probes:
60
61
 
61
62
  | Tool | Probe |
62
63
  |---|---|
63
- | AWS CLI | `aws sts get-caller-identity`, plus the service-level read the task needs (e.g. `aws logs describe-log-groups --max-items 1`) |
64
+ | AWS CLI | In order, when default credentials are missing or expired: (1) resolve `LISA_AWS_BOOTSTRAP_JSON` through `lisa-secrets-access`; (2) if it resolves, run `remote-agent-aws-setup.sh` with account verification, per that skill's "Recovering AWS access during a task" (never `aws sso login`); (3) `aws sts get-caller-identity`, asserting the caller account equals the project's expected account; (4) the service-level read the task needs (e.g. `aws logs describe-log-groups --max-items 1`). With working credentials, start at (3). An unresolvable bundle or an account mismatch is the failure to report. A project explicitly configured for a different AWS access method keeps that method; do not invent a bootstrap bundle for it. |
64
65
  | GitHub | a repository-scoped read against the target repo (e.g. `gh api repos/<owner>/<repo> --jq .full_name`, or the exact read the work item needs) — `gh auth status` alone only proves host auth, not access to the repository |
65
66
  | Figma | a read call against the linked file via the available Figma MCP/API surface |
66
67
  | Sentry / Jam / SonarCloud / PostHog / Atlassian / Linear / Notion | the matching `*-access` skill's resolve/auth check |
@@ -69,10 +70,19 @@ Example probes:
69
70
  | Device/browser harness | the harness's own doctor/smoke entry (e.g. `playwright --version` plus a trivial headless launch) |
70
71
 
71
72
  Resolve credentials through the documented sources before probing: project
72
- e2e config/fixtures, `.lisa.config.local.json` and environment variables, then
73
- documented work-item credentials (e.g. `Sign-in Required`). If the documented
74
- access path or probe cannot provide the required access, report the gap and
75
- stop. Do not continue exploring substitute sources after confirming the gap.
73
+ e2e config/fixtures, `.lisa.config.local.json` and environment variables, the
74
+ configured secret provider through `lisa-secrets-access`, then documented
75
+ work-item credentials (e.g. `Sign-in Required`). If the documented access path
76
+ or probe cannot provide the required access, report the gap and stop. Do not
77
+ continue exploring substitute sources after confirming the gap — the gap is
78
+ confirmed only once the secret provider and any recovery step its access skill
79
+ documents have been tried.
80
+
81
+ Running a documented recovery step — an access skill's own procedure that
82
+ materializes credentials, such as `remote-agent-aws-setup.sh` writing the AWS
83
+ profile — is part of resolving credentials, and is not a forbidden write. It
84
+ needs no human permission. The probe that follows stays read-only. This holds
85
+ for every vendor whose access skill documents a recovery step, not only AWS.
76
86
 
77
87
  Record successful probes in the flow's plan/tracker artifact
78
88
  (and task `metadata.required_access` where the flow's task contract carries
@@ -164,12 +164,15 @@ The committed verdict carries the machine-readable half:
164
164
  evidence/<ticket>/verdict.json
165
165
  not_established: [] # what was NOT proved; may be empty
166
166
  not_established_reviewed: true # attests the list was reviewed; may NEVER be omitted
167
+ evidence_committed: true # false when git ignores any of evidence/<ticket>/ — see
168
+ # "When the repository ignores evidence" below
167
169
  drift: none # live-environment baseline-vs-now drift classification:
168
170
  # none | progress | regression | unrelated_churn
169
171
  artifact: { repository, base_sha, head_sha, build_id, environment, observed_at }
170
172
  evidence: [ { evidence_id, kind, locator,
171
173
  artifact_head_sha, # the head_sha in force when THIS artifact was captured
172
- sha256, # content digest of the committed evidence file
174
+ sha256, # content digest of the committed evidence file, or of the
175
+ # uploaded evidence-release copy when git ignores the evidence
173
176
  captured_at } ]
174
177
  ```
175
178
 
@@ -257,6 +260,38 @@ evidence/<ticket>/
257
260
 
258
261
  `evidence/**` is ignored by lint/format/knip/coverage — it is proof, not source.
259
262
 
263
+ **When the repository ignores evidence.** Some repositories gitignore
264
+ `evidence/` on purpose, because screenshots and recordings bloat history. Others
265
+ ignore file patterns such as `*.png` or `*.mp4` that the evidence uses. Either way,
266
+ `git add` skips those files without any error, and the PR carries no proof of
267
+ them. So before treating `evidence/<ticket>/` as the committed record, run:
268
+
269
+ ```bash
270
+ git ls-files --others --ignored --exclude-standard -- evidence/<ticket>/
271
+ ```
272
+
273
+ - **It prints one or more files.** Git ignores that evidence, and then:
274
+ - The directory is **not** the durable record. The durable record is the tracker
275
+ evidence comment plus the configured evidence release uploads that
276
+ `lisa-tracker-evidence` makes. Every manifest artifact must be uploaded there,
277
+ including `verdict.json` and `state.json`, not only the screenshots.
278
+ - `verdict.json` records `"evidence_committed": false`. Each `evidence[].locator`
279
+ is the uploaded asset's URL, not a repository path. So each `sha256` is a digest
280
+ of bytes that anyone with read access to the repository can fetch and re-check.
281
+ - A digest of a file that exists only in one session's working tree is a
282
+ **session-local integrity anchor**. Never present it as something a third party
283
+ can re-verify.
284
+ - Reports, PR text, and tracker comments never say the evidence was "committed".
285
+ They say it was uploaded, and they name the tracker comment as the record of
286
+ truth.
287
+ - **It prints nothing, exits 0, and the directory holds the manifest files.**
288
+ Nothing is ignored. Commit the directory as described above and record
289
+ `"evidence_committed": true`. An empty result for a missing or mistyped
290
+ directory proves nothing: check that the files exist first.
291
+ - **It exits non-zero.** The check itself failed, for example because the path is
292
+ outside the repository or there is no repository. Stop and report the failure.
293
+ Never treat it as tracked.
294
+
260
295
  **3. Per-change verification is enforced.** Every `feat`/`fix` adds or extends a
261
296
  verification (e2e) spec mapped to its acceptance criteria. CI's
262
297
  `verification-coverage` check requires that delta. The sole exception is a
@@ -2,16 +2,13 @@
2
2
  name: lisa-parity-code-review
3
3
  description: "Lisa-native code review of the current git diff. Walks every changed hunk and reports correctness bugs, security issues, and obvious defects as severity-ranked findings with file:line references. Vendor-neutral — the cross-agent equivalent of the upstream code-review command, runnable on Codex, agy, Copilot, Cursor, and Claude."
4
4
  allowed-tools: ["Read", "Bash", "Grep", "Glob"]
5
- synced-from: code-review@claude-plugins-official@1.0.1
6
5
  ---
7
6
 
8
7
  # Parity Code Review
9
8
 
10
- Review the code that is *about to ship* — the current uncommitted/branch diff — for defects a reviewer would block on. This is a focused **defect hunt**: correctness, security, and obvious mistakes. It is not a style audit and not a refactor pass (use `parity-code-simplifier` for quality-only cleanup).
9
+ Review the code that is *about to ship* — the current uncommitted/branch diff — for defects a reviewer would block on. This is a focused **defect hunt**: correctness, security, and obvious mistakes. It is not a style audit and not a refactor pass; simplification is covered by the coding-philosophy rule.
11
10
 
12
- > **Drift tracking.** Pinned to `code-review@claude-plugins-official@1.0.1`. Upstream published no semver until 1.0.1, so this skill used to carry no pin and was reviewed by hand; it is now tracked by the Lisa repository's `scripts/plugin-parity-drift.mjs` (a Lisa-repository maintainer check that host projects do not ship, so it does not run in a host checkout), which flags the pin as stale when the plugin cache holds a newer upstream version. This is a Lisa-native reimplementation, **not** a port of upstream code.
13
- >
14
- > **Reviewed against 1.0.1, partly diverged.** Adopted from upstream 1.0.1: findings print to the terminal only; every candidate finding is validated before it is reported (Step 4); and a high-signal bar governs what is blocking (relaxed to admit an input-dependent defect once its triggering input is shown to be reachable; see Step 4). Deliberately not reimplemented: upstream's `--comment` mode, which posts inline PR comments through `mcp__github_inline_comment__create_inline_comment` (use `lisa-pull-request-review` to act on a pull request), and its four-reviewer subagent pipeline. This skill is one reviewer over the local diff, because the agents it serves (Codex, agy, Copilot, Cursor, Devin) have no common subagent or inline-comment surface. The `synced-from` scalar cannot record that split, so this note does.
11
+ > **Lisa-owned.** This began as a reimplementation of the upstream `code-review@claude-plugins-official` command and was last reviewed against its 1.0.1. Lisa stopped enabling that plugin (CodySwannGT/lisa#4799) because Claude Code now ships a built-in `/code-review`, so this skill is no longer pinned to or drift-tracked against upstream. It stays as the vendor-neutral review for agents without a built-in equivalent. It is one reviewer over the local diff, because the agents it serves (Codex, agy, Copilot, Cursor, Devin) have no common subagent or inline-comment surface; use `lisa-pull-request-review` to act on a pull request.
15
12
 
16
13
  ## Step 1: Establish the diff
17
14
 
@@ -106,4 +103,4 @@ Example:
106
103
  - **Ground every finding in the diff.** No speculative findings, no generic best-practice lectures unrelated to the change.
107
104
  - **Be honest about coverage.** If you deprioritized files or couldn't fully trace a path, say so.
108
105
  - **If the diff is clean, say so clearly** — "No blocking issues found across N changed files" — do not manufacture problems.
109
- - This is review-only: report findings, do **not** edit files. Apply fixes via the normal implementation flow or `parity-code-simplifier` (quality) after triage.
106
+ - This is review-only: report findings, do **not** edit files. Apply fixes via the normal implementation flow after triage.
@@ -83,5 +83,5 @@ Call out what's done well. A credible review is balanced, not only critical.
83
83
  - **Malformed blockers do not block.** If you cannot name a concrete failure scenario and evidence, report it as non-blocking context or omit it.
84
84
  - **Concrete fixes only.** "Consider improving error handling" is not a finding; "wrap the `fetch` in try/catch and return a 502 on network error at `api/proxy.ts:31`" is.
85
85
  - **No external review service.** Use only local git/tooling and the model — this is an independent review, not a CodeRabbit proxy.
86
- - **Review-only.** Report findings; do not edit files. Route fixes through the implementation flow, `parity-code-simplifier` (quality), or a follow-up.
86
+ - **Review-only.** Report findings; do not edit files. Route fixes through the implementation flow or a follow-up.
87
87
  - **If the diff is clean, approve it plainly** and say why — do not invent problems to look thorough.
@@ -33,12 +33,19 @@ omit the plugin rules tree; do not assume a runtime-specific rules directory.
33
33
  ## Rules
34
34
 
35
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
+ - **Ignored evidence.** Before dispatching, run `git ls-files --others --ignored --exclude-standard -- "$EVIDENCE_DIR"`. If it exits non-zero, the check itself failed. Stop and report that; never read it as "tracked". An empty result means "tracked" only when the manifest files actually exist in `$EVIDENCE_DIR`. If it prints any file, git ignores that evidence, either the whole directory or a pattern such as `*.png`. That evidence will never reach the PR, so the tracker comment becomes the record of truth. The vendor skills upload only some files (`lisa-github-evidence` takes numbered `.txt` and `*.json`, `lisa-jira-evidence` takes `NN-name.(png|txt|json)`, and `lisa-linear-evidence` takes `evidence/files/`), so this wrapper does the rest itself, **before** dispatching:
37
+ 1. Resolve `RELEASE=$(node scripts/lisa-work-item.mjs evidence-release --ensure)`. Never hard-code `pr-assets`.
38
+ 2. Upload every manifest artifact except `verdict.json`, including `state.json`, images, recordings, transcripts, and logs. Upload the files the vendor skill also uploads too, so that every locator points at a copy this step made. Stage each file as a copy under a ticket-scoped asset name, so one ticket can never overwrite another's file: `pr-<PR_NUMBER>-<ticket>-<file>` for GitHub and Jira, and `<IDENTIFIER>-<file>` for Linear. `<ticket>` is a `[a-z0-9-]` slug: the GitHub issue number, or the lowercased Jira key. Never use `org/repo#N` or a URL, because `/` and `#` are not valid in an asset name. Upload with `gh release upload "$RELEASE" <copies> --clobber`, which is safe because the names are ticket-scoped and lets a re-run succeed. If any upload fails, stop before dispatching.
39
+ 3. Rewrite each `verdict.json` `evidence[].locator` to its uploaded URL, set `"evidence_committed": false`, and upload `verdict.json` last the same way. Stop if that upload fails.
40
+ 4. In the comment, list each artifact's uploaded URL next to its `sha256` under `## Artifact identity` as a **plain URL**, not a Markdown link. Say plainly that the evidence was uploaded, not committed, and that this comment is the durable record.
41
+
42
+ Never describe ignored evidence as "committed". A digest of a file that was neither committed nor uploaded is a session-local anchor, not something a reviewer can re-check.
36
43
  - Never post evidence to a different ticket than the one named — `$ARGUMENTS` is the source of truth.
37
44
  - 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
45
  - **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.
39
46
  - **Claim↔boundary binding (S14 upgrade).** Satisfying the manifest by *type* is not enough: each `[EVIDENCE: <artifact-type>: <name>]` marker is also cited for a **claim**, and the marker's artifact type must **reach the boundary that claim declares** per the `claim-evidence-mapping` rule's taxonomy. A `browser` claim (user-visible UI behavior) is reached by `screenshot` / `recording` and never by a unit `test-run-log`; an `http-api` claim needs an `http-transcript`; a `deploy-health` claim needs a `deploy-log` and no pre-deploy artifact. On a mismatch, report the offending marker **by name** together with the claim, its boundary, and the **required evidence kinds** for that boundary — e.g. `[EVIDENCE: test-run-log: unit-suite] cited for claim AC-2 [boundary browser] — required evidence kinds: screenshot, recording`. Swapping in a marker of a reaching kind with a real captured artifact satisfies the gate. **Advisory-first:** until `verification.gate.enforceBoundaries` is `true` in `.lisa.config.json` (the same ratchet flag the Stop-hook gate reads, default `false`), a boundary mismatch is reported to the operator but does not block the post; once ratcheted on it refuses the post exactly like a missing or wrong-type artifact. Missing/empty/wrong-type artifacts keep refusing the post regardless of the flag.
40
47
  - **The "Not established" section is required.** Before posting, confirm `evidence/comment.md` (and `comment.txt` where the vendor uses it) contains a `## Not established` heading and that the verdict carries `not_established_reviewed: true`. The heading is **never omitted and never blank**: with nothing outstanding it still renders `None outstanding — reviewed`; otherwise it lists, in plain operator language, each thing the verification did not prove — boundaries not exercised, environments not tested, behavior consciously out of scope. A comment with no such heading, a heading with nothing under it, or a verdict whose `not_established_reviewed` flag is absent is **refused**: stop and report the missing Not-established review instead of posting. (The list may be empty; the flag may never be omitted.) Definition and exemplars live in the `claim-evidence-mapping` rule; this generalizes `lisa-improve-harness`'s required, never-empty `Known limits` field.
41
- - **Artifact identity is required, with values (S14 extension).** Before posting, confirm the comment body carries a `## Artifact identity` heading populated with **values, not placeholders**: the `repository`, the `head_sha` the verification observed, the `environment`, and for each committed artifact its `sha256` digest and `captured_at`. Then check both identity failures. **`artifact_mismatch`** — an evidence entry whose recorded `artifact_head_sha` differs from the verdict's `artifact.head_sha`: refuse the post and report the offending evidence id together with **both SHAs** (the one the artifact was captured at and the one the verdict claims), e.g. `EV-2 captured at 4f1c9ab but artifact.head_sha is 9de0c31`. **`evidence_digest_mismatch`** — recompute the `sha256` of each committed evidence file on read; if the bytes no longer match the recorded digest (or the file is absent), stop and report the evidence id by name. Never summarize either as "verification failed" — name the field, the ids, and both SHAs so a non-engineer can read it at the gate. **Advisory-first:** until `verification.gate.enforceBoundaries` is `true` in `.lisa.config.json`, an identity failure is reported to the operator but does not block the post; once ratcheted on it refuses the post exactly like a missing artifact. Definition: the `claim-evidence-mapping` rule.
48
+ - **Artifact identity is required, with values (S14 extension).** Before posting, confirm the comment body carries a `## Artifact identity` heading populated with **values, not placeholders**: the `repository`, the `head_sha` the verification observed, the `environment`, and for each committed or uploaded artifact its `sha256` digest and `captured_at`. Then check both identity failures. **`artifact_mismatch`** — an evidence entry whose recorded `artifact_head_sha` differs from the verdict's `artifact.head_sha`: refuse the post and report the offending evidence id together with **both SHAs** (the one the artifact was captured at and the one the verdict claims), e.g. `EV-2 captured at 4f1c9ab but artifact.head_sha is 9de0c31`. **`evidence_digest_mismatch`** — recompute the `sha256` of each committed evidence file on read, or of the fetched bytes when its locator is an uploaded URL; if the bytes no longer match the recorded digest (or the file is absent), stop and report the evidence id by name. Never summarize either as "verification failed" — name the field, the ids, and both SHAs so a non-engineer can read it at the gate. **Advisory-first:** until `verification.gate.enforceBoundaries` is `true` in `.lisa.config.json`, an identity failure is reported to the operator but does not block the post; once ratcheted on it refuses the post exactly like a missing artifact. Definition: the `claim-evidence-mapping` rule.
42
49
  - **Merge-race reconciliation (at completion, not at post).** The evidence's pinned `head_sha` is reconciled against the merged head using the ancestry + deploy-run definition of "what shipped" that `lisa-drive-pr-to-merge` already owns — cite that skill, never re-implement or restate its checks here. Pre-merge evidence counts for the merge commit only when its head is a parent of the merge, ancestry alone never justifies reporting shipped, and on a mismatch verification re-runs against the merged head before completion is declared.
43
50
  - **Evidence references are not manifest entries.** Extract obligations using the exact `[EVIDENCE:` prefix (and the legacy local `[SCREENSHOT:` form). Exclude both the canonical `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` and the Lisa 2.223.0 legacy alias `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` from artifact lookup, missing-artifact reporting, and duplicate-name checks: either belongs to another work item and cannot satisfy this item's S14 gate. A runtime-changing leaf with references but no local claiming marker must be rejected before dispatch. Linear returns stored Markdown with brackets escaped (`\[EVIDENCE: cli-output: name\]`): decode one Markdown escape layer outside code before matching, as `localMarkers` in `completion-proof-shape.mjs` does, so escaped and unescaped markers bind the same manifest.
44
51
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "4.103.6",
3
+ "version": "4.103.7",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -221,7 +221,7 @@ Identity is carried in two places, and they must agree:
221
221
  | | `environment` | where it ran (local, preview, staging, production) |
222
222
  | | `observed_at` | when the run observed it (ISO-8601 UTC) |
223
223
  | `evidence[]` (per artifact) | `artifact_head_sha` | the `head_sha` in force **when that artifact was captured** |
224
- | | `sha256` | content digest of the committed evidence file |
224
+ | | `sha256` | content digest of the committed evidence file, or of its uploaded evidence-release copy when git ignores the evidence (`evidence_committed: false`; see the `verification` rule) |
225
225
  | | `captured_at` | when that artifact was captured (ISO-8601 UTC) |
226
226
 
227
227
  `head_sha` pins the *build*; `sha256` pins the *bytes*. Together they answer both identity questions:
@@ -235,7 +235,8 @@ is cited as prior art here, not reinvented.
235
235
  `artifact.head_sha`. The evidence describes a different build than the one the verdict claims. The
236
236
  identity check fails **loudly, naming both SHAs** (the evidence's and the verdict's) so an operator
237
237
  can see which build each half is talking about.
238
- - **`evidence_digest_mismatch`** — on read, recompute the `sha256` of each committed evidence file. If
238
+ - **`evidence_digest_mismatch`** — on read, recompute the `sha256` of each committed evidence file (or,
239
+ when its locator is an uploaded URL, of the bytes fetched from that URL). If
239
240
  the bytes no longer match the recorded digest, the artifact has changed since it was recorded: the
240
241
  check fails, it names the evidence id, and blocks completion. A digest that cannot be recomputed
241
242
  (file absent) is the same failure.
@@ -23,6 +23,7 @@ When writing or modifying code, follow these principles. Examples, hook structur
23
23
  - **Function structure order**: (1) variables & derived state, (2) side effects, (3) return. Never interleave.
24
24
  - **Functional transformations.** Prefer `map`/`filter`/`reduce` over imperative loops with mutation.
25
25
  - **Clean deletion.** When replacing code, delete the old version completely. No `V2`/`Old`/`New` suffixes, no `@deprecated` comments, no migration shims unless explicitly requested. Trust git history.
26
+ - **Simplify before you finish.** Before calling a change done, re-read your own diff and simplify it without changing behaviour: reuse existing helpers instead of new ones, remove duplication, dead code and needless indirection, and prefer clearer names and flatter control flow. Re-run the tests afterwards.
26
27
 
27
28
  ## What NOT to write
28
29