@codyswann/lisa 5.1.0 → 5.1.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 (106) 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 +9 -6
  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-github-validate-issue/SKILL.md +2 -0
  9. package/plugins/lisa/.codex-plugin/skills/lisa-jira-validate-ticket/SKILL.md +2 -0
  10. package/plugins/lisa/.codex-plugin/skills/lisa-linear-validate-issue/SKILL.md +2 -0
  11. package/plugins/lisa/.codex-plugin/skills/lisa-task-decomposition/SKILL.md +18 -0
  12. package/plugins/lisa/rules/reference/stale-state-claims.md +1 -0
  13. package/plugins/lisa/rules/reference/work-item-definition-of-ready.md +2 -0
  14. package/plugins/lisa/skills/lisa-github-validate-issue/SKILL.md +2 -0
  15. package/plugins/lisa/skills/lisa-jira-validate-ticket/SKILL.md +2 -0
  16. package/plugins/lisa/skills/lisa-linear-validate-issue/SKILL.md +2 -0
  17. package/plugins/lisa/skills/lisa-task-decomposition/SKILL.md +18 -0
  18. package/plugins/lisa-agy/plugin.json +1 -1
  19. package/plugins/lisa-agy/skills/lisa-github-validate-issue/SKILL.md +2 -0
  20. package/plugins/lisa-agy/skills/lisa-jira-validate-ticket/SKILL.md +2 -0
  21. package/plugins/lisa-agy/skills/lisa-linear-validate-issue/SKILL.md +2 -0
  22. package/plugins/lisa-agy/skills/lisa-task-decomposition/SKILL.md +18 -0
  23. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  24. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  25. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  26. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  27. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  28. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  29. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  30. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  31. package/plugins/lisa-copilot/rules/reference/stale-state-claims.md +1 -0
  32. package/plugins/lisa-copilot/rules/reference/work-item-definition-of-ready.md +2 -0
  33. package/plugins/lisa-copilot/skills/lisa-github-validate-issue/SKILL.md +2 -0
  34. package/plugins/lisa-copilot/skills/lisa-jira-validate-ticket/SKILL.md +2 -0
  35. package/plugins/lisa-copilot/skills/lisa-linear-validate-issue/SKILL.md +2 -0
  36. package/plugins/lisa-copilot/skills/lisa-task-decomposition/SKILL.md +18 -0
  37. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  38. package/plugins/lisa-cursor/rules/stale-state-claims-reference.mdc +1 -0
  39. package/plugins/lisa-cursor/rules/work-item-definition-of-ready-reference.mdc +2 -0
  40. package/plugins/lisa-cursor/skills/lisa-github-validate-issue/SKILL.md +2 -0
  41. package/plugins/lisa-cursor/skills/lisa-jira-validate-ticket/SKILL.md +2 -0
  42. package/plugins/lisa-cursor/skills/lisa-linear-validate-issue/SKILL.md +2 -0
  43. package/plugins/lisa-cursor/skills/lisa-task-decomposition/SKILL.md +18 -0
  44. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  45. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  46. package/plugins/lisa-devin/rules/reference/stale-state-claims.md +1 -0
  47. package/plugins/lisa-devin/rules/reference/work-item-definition-of-ready.md +2 -0
  48. package/plugins/lisa-devin/skills/lisa-github-validate-issue/SKILL.md +2 -0
  49. package/plugins/lisa-devin/skills/lisa-jira-validate-ticket/SKILL.md +2 -0
  50. package/plugins/lisa-devin/skills/lisa-linear-validate-issue/SKILL.md +2 -0
  51. package/plugins/lisa-devin/skills/lisa-task-decomposition/SKILL.md +18 -0
  52. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  53. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  54. package/plugins/lisa-expo-agy/plugin.json +1 -1
  55. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  57. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  58. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  59. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  60. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  61. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  62. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  63. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  64. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  65. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  66. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  67. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  68. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  69. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  70. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  71. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  72. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  73. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  74. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  75. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  76. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  77. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  78. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  79. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  80. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  81. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  82. package/plugins/lisa-rails-agy/plugin.json +1 -1
  83. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  84. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  85. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  86. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  87. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  88. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  89. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  90. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  91. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  92. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  93. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  94. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  95. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  96. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  97. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  98. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  99. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  100. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  101. package/plugins/src/base/rules/reference/stale-state-claims.md +1 -0
  102. package/plugins/src/base/rules/reference/work-item-definition-of-ready.md +2 -0
  103. package/plugins/src/base/skills/lisa-github-validate-issue/SKILL.md +2 -0
  104. package/plugins/src/base/skills/lisa-jira-validate-ticket/SKILL.md +2 -0
  105. package/plugins/src/base/skills/lisa-linear-validate-issue/SKILL.md +2 -0
  106. package/plugins/src/base/skills/lisa-task-decomposition/SKILL.md +18 -0
package/package.json CHANGED
@@ -188,7 +188,7 @@
188
188
  "qs": "^6.16.0"
189
189
  },
190
190
  "name": "@codyswann/lisa",
191
- "version": "5.1.0",
191
+ "version": "5.1.1",
192
192
  "description": "Governance-as-code for AI coding agents: turns a repository into agent-operated software factories with guardrails, guidance and automated enforcement for Claude Code, Codex, Cursor, OpenCode, Antigravity, Copilot and Devin",
193
193
  "main": "dist/index.js",
194
194
  "exports": {
@@ -351,7 +351,7 @@
351
351
  "test": "tests"
352
352
  },
353
353
  "types": "./dist/index.d.ts",
354
- "lisaReleaseCommit": "8d2385d27d06c9e98131cf816e1f688045ab923d",
355
- "gitHead": "8d2385d27d06c9e98131cf816e1f688045ab923d",
356
- "lisaReleaseTag": "v5.1.0"
354
+ "lisaReleaseCommit": "a83486810a9f0fce470b45616738684d61208178",
355
+ "gitHead": "a83486810a9f0fce470b45616738684d61208178",
356
+ "lisaReleaseTag": "v5.1.1"
357
357
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
4
4
  "description": "Universal governance: agents, skills, commands, hooks, and rules for all projects.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -260,6 +260,8 @@ The issue must EITHER have at least one entry in `links`, OR the body must conta
260
260
 
261
261
  An issue with zero links and no documented search: FAIL.
262
262
 
263
+ **Shipped-prerequisite check.** For every prerequisite the body calls already shipped, existing, or delivered (a symbol, resolver, mutation, file, migration…; for a route, its handler symbol or file), verify it is present on `origin/<default>` by running the command block in `lisa-task-decomposition` step 4. Exit 0 means present and 1 means absent; anything else means the check failed — S13 cannot pass, so report FAIL naming the error (fix the default-branch lookup or access and re-run), never read it as absent. An absent prerequisite with no `is blocked by` link (a `links` entry, or a `Blocked by #<n>` body line) to the issue that owns delivering it: FAIL. Remediation: add `Blocked by #<n>` for the owning issue, or file one build-ready and link it, or correct the body so it no longer claims the prerequisite shipped.
264
+
263
265
  #### S14 — Evidence manifest binding (leaf work units)
264
266
 
265
267
  When `issue_type ∈ {Bug, Task, Sub-task, Improvement}` AND `runtime_behavior_change = true`, the `## Validation Journey` must declare at least one **typed** `[EVIDENCE: <artifact-type>: <name>]` marker. These markers are the work unit's **evidence manifest** — the exact, enumerated set of artifacts that must be captured and attached before the issue may be closed (see the "Per-Work-Unit Evidence Contract" section of the `verification` rule, the Definition of Done in `verification-lifecycle`, and the evidence-manifest gate in `tracker-evidence`).
@@ -263,6 +263,8 @@ The ticket must EITHER have at least one issue link in `links`, OR the descripti
263
263
 
264
264
  A ticket with zero links and no documented search: FAIL.
265
265
 
266
+ **Shipped-prerequisite check.** For every prerequisite the description calls already shipped, existing, or delivered (a symbol, resolver, mutation, file, migration…; for a route, its handler symbol or file), verify it is present on `origin/<default>` by running the command block in `lisa-task-decomposition` step 4. Exit 0 means present and 1 means absent; anything else means the check failed — S13 cannot pass, so report FAIL naming the error (fix the default-branch lookup or access and re-run), never read it as absent. An absent prerequisite with no `is blocked by` link to the ticket that owns delivering it: FAIL. Remediation: link the owning ticket as `is blocked by`, or file one build-ready and link it, or correct the description so it no longer claims the prerequisite shipped.
267
+
266
268
  #### S14 — Evidence manifest binding (leaf work units)
267
269
 
268
270
  When `issue_type ∈ {Bug, Task, Sub-task, Improvement}` AND `runtime_behavior_change = true`, the `h2. Validation Journey` must declare at least one **typed** `[EVIDENCE: <artifact-type>: <name>]` marker. These markers are the work unit's **evidence manifest** — the exact, enumerated set of artifacts that must be captured and attached before the ticket may be marked complete (see the "Per-Work-Unit Evidence Contract" section of the `verification` rule, the Definition of Done in `verification-lifecycle`, and the evidence-manifest gate in `tracker-evidence`).
@@ -249,6 +249,8 @@ The item must EITHER have at least one entry in `relations`, OR the description
249
249
 
250
250
  An item with zero relations and no documented search: FAIL.
251
251
 
252
+ **Shipped-prerequisite check.** For every prerequisite the description calls already shipped, existing, or delivered (a symbol, resolver, mutation, file, migration…; for a route, its handler symbol or file), verify it is present on `origin/<default>` by running the command block in `lisa-task-decomposition` step 4. Exit 0 means present and 1 means absent; anything else means the check failed — S13 cannot pass, so report FAIL naming the error (fix the default-branch lookup or access and re-run), never read it as absent. An absent prerequisite with no `blocked by` relation to the issue that owns delivering it: FAIL. Remediation: add a `blocked by` relation to the owning issue, or file one build-ready and relate it, or correct the description so it no longer claims the prerequisite shipped.
253
+
252
254
  #### S14 — Evidence manifest binding (leaf work units)
253
255
 
254
256
  When `issue_type ∈ {Bug, Task, Sub-task, Improvement}` AND `runtime_behavior_change = true`, the `## Validation Journey` must declare at least one **typed** `[EVIDENCE: <artifact-type>: <name>]` marker. These markers are the work unit's **evidence manifest** — the exact, enumerated set of artifacts that must be captured and attached before the item may be closed (see the "Per-Work-Unit Evidence Contract" section of the `verification` rule, the Definition of Done in `verification-lifecycle`, and the evidence-manifest gate in `tracker-evidence`).
@@ -99,6 +99,24 @@ Each task must have a verification method. Choose the most appropriate:
99
99
  - Order tasks so that each builds on a stable foundation
100
100
  - Prefer independent tasks that can run in parallel where possible
101
101
  - Flag external dependencies (other teams, services, permissions, data) that may block progress
102
+ - Run the **shipped-prerequisite check** on every leaf. Ticket text is often written ahead of delivery, so a prerequisite it calls already shipped, existing, or delivered (a symbol, resolver, mutation, file, migration…; for a route, check its handler symbol or file) is a claim, not a fact (`empirical-inquiry`). Verify each one on the remote default branch, never the working tree. Run the whole block as one script (`bash -c`) with exactly one of `SYMBOL` or `FILE` set:
103
+
104
+ ```bash
105
+ # shipped-prerequisite check: exit 0 = present, 1 = absent, anything else = the check failed
106
+ default=$(git symbolic-ref --short -q refs/remotes/origin/HEAD | sed 's|^origin/||')
107
+ default=${default:-$(gh repo view --json defaultBranchRef --jq .defaultBranchRef.name)}
108
+ git fetch --quiet origin "+refs/heads/$default:refs/remotes/origin/$default" || exit 2
109
+ git rev-parse --verify -q "origin/$default" >/dev/null || exit 2
110
+ if [ -n "${SYMBOL-}" ]; then
111
+ git grep -F -n -w "$SYMBOL" "origin/$default" -- ':/' ':(top,exclude,glob)**/docs/**' ':(top,exclude,glob)**/wiki/**' ':(top,exclude,glob)**/plans/**' ':(top,exclude,glob)**/tests/**' ':(top,exclude,glob)**/__tests__/**' ':(top,exclude,glob)**/*.test.*' ':(top,exclude,glob)**/*.spec.*' ':(top,exclude,glob)**/*.md'
112
+ elif [ -n "${FILE-}" ]; then
113
+ git cat-file -e "origin/$default:$FILE" 2>/dev/null || exit 1
114
+ else
115
+ exit 2
116
+ fi
117
+ ```
118
+
119
+ Exit 0 means present and 1 means absent; anything else means the check failed (neither variable set, default branch unresolved, fetch refused, bad ref) — stop and report it, never read it as absent. The search is repository-wide whatever the working directory (`':/'`). `FILE` passes for a file or directory at that path. `-F` matches the name literally, so a dotted name such as `Query.createUser` cannot match `QueryXcreateUser`. A hit only in documentation or tests is not shipped: the pathspec excludes, at any depth, `docs/`, `wiki/`, `plans/`, `tests/`, and `__tests__/` directories, `*.test.*` and `*.spec.*` files, and every Markdown file. Exit 0 still only proves the name appears somewhere else: one hit inside a comment, a TODO, a fixture, or a stub is not proof it shipped, so read the `-n` output lines before treating it as present, and drop an exclude when this repository ships source under one of those paths. For each absent prerequisite, find the item that owns delivering it and link this leaf `is blocked by` that item before the leaf is marked ready. If no item owns it, file one (build-ready) and link it; otherwise the leaf fails the ready gate (S13). This is the mirror of `stale-state-claims`: that rule distrusts a stale *not-yet* note, this check distrusts a premature *done* one.
102
120
 
103
121
  ### 4.5. Classify Any New Material Dependency
104
122
 
@@ -85,6 +85,7 @@ And when you are the one clearing a condition: sweep for the notes that describe
85
85
  - **`empirical-inquiry`** — supplies the discipline this rule depends on: settle the fact with the cheapest probe rather than reasoning from what is written down. A stale note is exactly the "confident-sounding answer from a prior assumption" that rule forbids.
86
86
  - **`verification`** — a status derived from a comment is not runtime evidence. Reporting "still blocked" on the strength of a note is the same error as reporting "works" on the strength of the code looking correct.
87
87
  - **`tracked-work`** — the destination for any prediction that survives its item's closure: one live leaf, explicit blocking link, carried on the branch and PR.
88
+ - **`work-item-definition-of-ready`** (S13, shipped-prerequisite check) — the opposite direction: a premature *done* claim ("already shipped") that the default branch does not back. Verify it on `origin/<default>` and link the owning item as `is blocked by`.
88
89
  - **`claim-archaeology`** — the recovery path once mode 3 has already happened. Lifecycles are one-way, so a warning lost to closure resurfaces only as a fresh item whose ancestry has to be reconstructed. Archaeology is the cleanup; this rule is the prevention.
89
90
 
90
91
  ## Summary of obligations (formerly the always-loaded head)
@@ -12,6 +12,8 @@
12
12
 
13
13
  Three-audience description · Gherkin acceptance criteria (except Spike) · Out of Scope · single-repo scope · relationship search · typed evidence manifest on runtime changes · Source Requirement traceability when PRD-sourced · provable read access to every named external surface · declared reachability for any **existing** test the item pins as a red-before-green control (`control-reachability`, gate S20 — `N/A` when the item introduces a new test instead).
14
14
 
15
+ **Shipped-prerequisite check (S13).** Relationship search includes verifying every prerequisite a leaf calls already shipped (a symbol, file, migration…; for a route, its handler symbol or file) on `origin/<default>` — ticket text written ahead of delivery is a claim, not a fact. An absent prerequisite needs an `is blocked by` link to the item that owns delivering it before the leaf is ready; the commands live in `lisa-task-decomposition` step 4. It mirrors `stale-state-claims`: a premature *done* claim instead of a stale *not-yet* one.
16
+
15
17
  ## Per-type additions
16
18
 
17
19
  | Type | Must additionally carry | Terminal state is |
@@ -258,6 +258,8 @@ The issue must EITHER have at least one entry in `links`, OR the body must conta
258
258
 
259
259
  An issue with zero links and no documented search: FAIL.
260
260
 
261
+ **Shipped-prerequisite check.** For every prerequisite the body calls already shipped, existing, or delivered (a symbol, resolver, mutation, file, migration…; for a route, its handler symbol or file), verify it is present on `origin/<default>` by running the command block in `lisa-task-decomposition` step 4. Exit 0 means present and 1 means absent; anything else means the check failed — S13 cannot pass, so report FAIL naming the error (fix the default-branch lookup or access and re-run), never read it as absent. An absent prerequisite with no `is blocked by` link (a `links` entry, or a `Blocked by #<n>` body line) to the issue that owns delivering it: FAIL. Remediation: add `Blocked by #<n>` for the owning issue, or file one build-ready and link it, or correct the body so it no longer claims the prerequisite shipped.
262
+
261
263
  #### S14 — Evidence manifest binding (leaf work units)
262
264
 
263
265
  When `issue_type ∈ {Bug, Task, Sub-task, Improvement}` AND `runtime_behavior_change = true`, the `## Validation Journey` must declare at least one **typed** `[EVIDENCE: <artifact-type>: <name>]` marker. These markers are the work unit's **evidence manifest** — the exact, enumerated set of artifacts that must be captured and attached before the issue may be closed (see the "Per-Work-Unit Evidence Contract" section of the `verification` rule, the Definition of Done in `verification-lifecycle`, and the evidence-manifest gate in `tracker-evidence`).
@@ -261,6 +261,8 @@ The ticket must EITHER have at least one issue link in `links`, OR the descripti
261
261
 
262
262
  A ticket with zero links and no documented search: FAIL.
263
263
 
264
+ **Shipped-prerequisite check.** For every prerequisite the description calls already shipped, existing, or delivered (a symbol, resolver, mutation, file, migration…; for a route, its handler symbol or file), verify it is present on `origin/<default>` by running the command block in `lisa-task-decomposition` step 4. Exit 0 means present and 1 means absent; anything else means the check failed — S13 cannot pass, so report FAIL naming the error (fix the default-branch lookup or access and re-run), never read it as absent. An absent prerequisite with no `is blocked by` link to the ticket that owns delivering it: FAIL. Remediation: link the owning ticket as `is blocked by`, or file one build-ready and link it, or correct the description so it no longer claims the prerequisite shipped.
265
+
264
266
  #### S14 — Evidence manifest binding (leaf work units)
265
267
 
266
268
  When `issue_type ∈ {Bug, Task, Sub-task, Improvement}` AND `runtime_behavior_change = true`, the `h2. Validation Journey` must declare at least one **typed** `[EVIDENCE: <artifact-type>: <name>]` marker. These markers are the work unit's **evidence manifest** — the exact, enumerated set of artifacts that must be captured and attached before the ticket may be marked complete (see the "Per-Work-Unit Evidence Contract" section of the `verification` rule, the Definition of Done in `verification-lifecycle`, and the evidence-manifest gate in `tracker-evidence`).
@@ -247,6 +247,8 @@ The item must EITHER have at least one entry in `relations`, OR the description
247
247
 
248
248
  An item with zero relations and no documented search: FAIL.
249
249
 
250
+ **Shipped-prerequisite check.** For every prerequisite the description calls already shipped, existing, or delivered (a symbol, resolver, mutation, file, migration…; for a route, its handler symbol or file), verify it is present on `origin/<default>` by running the command block in `lisa-task-decomposition` step 4. Exit 0 means present and 1 means absent; anything else means the check failed — S13 cannot pass, so report FAIL naming the error (fix the default-branch lookup or access and re-run), never read it as absent. An absent prerequisite with no `blocked by` relation to the issue that owns delivering it: FAIL. Remediation: add a `blocked by` relation to the owning issue, or file one build-ready and relate it, or correct the description so it no longer claims the prerequisite shipped.
251
+
250
252
  #### S14 — Evidence manifest binding (leaf work units)
251
253
 
252
254
  When `issue_type ∈ {Bug, Task, Sub-task, Improvement}` AND `runtime_behavior_change = true`, the `## Validation Journey` must declare at least one **typed** `[EVIDENCE: <artifact-type>: <name>]` marker. These markers are the work unit's **evidence manifest** — the exact, enumerated set of artifacts that must be captured and attached before the item may be closed (see the "Per-Work-Unit Evidence Contract" section of the `verification` rule, the Definition of Done in `verification-lifecycle`, and the evidence-manifest gate in `tracker-evidence`).
@@ -97,6 +97,24 @@ Each task must have a verification method. Choose the most appropriate:
97
97
  - Order tasks so that each builds on a stable foundation
98
98
  - Prefer independent tasks that can run in parallel where possible
99
99
  - Flag external dependencies (other teams, services, permissions, data) that may block progress
100
+ - Run the **shipped-prerequisite check** on every leaf. Ticket text is often written ahead of delivery, so a prerequisite it calls already shipped, existing, or delivered (a symbol, resolver, mutation, file, migration…; for a route, check its handler symbol or file) is a claim, not a fact (`empirical-inquiry`). Verify each one on the remote default branch, never the working tree. Run the whole block as one script (`bash -c`) with exactly one of `SYMBOL` or `FILE` set:
101
+
102
+ ```bash
103
+ # shipped-prerequisite check: exit 0 = present, 1 = absent, anything else = the check failed
104
+ default=$(git symbolic-ref --short -q refs/remotes/origin/HEAD | sed 's|^origin/||')
105
+ default=${default:-$(gh repo view --json defaultBranchRef --jq .defaultBranchRef.name)}
106
+ git fetch --quiet origin "+refs/heads/$default:refs/remotes/origin/$default" || exit 2
107
+ git rev-parse --verify -q "origin/$default" >/dev/null || exit 2
108
+ if [ -n "${SYMBOL-}" ]; then
109
+ git grep -F -n -w "$SYMBOL" "origin/$default" -- ':/' ':(top,exclude,glob)**/docs/**' ':(top,exclude,glob)**/wiki/**' ':(top,exclude,glob)**/plans/**' ':(top,exclude,glob)**/tests/**' ':(top,exclude,glob)**/__tests__/**' ':(top,exclude,glob)**/*.test.*' ':(top,exclude,glob)**/*.spec.*' ':(top,exclude,glob)**/*.md'
110
+ elif [ -n "${FILE-}" ]; then
111
+ git cat-file -e "origin/$default:$FILE" 2>/dev/null || exit 1
112
+ else
113
+ exit 2
114
+ fi
115
+ ```
116
+
117
+ Exit 0 means present and 1 means absent; anything else means the check failed (neither variable set, default branch unresolved, fetch refused, bad ref) — stop and report it, never read it as absent. The search is repository-wide whatever the working directory (`':/'`). `FILE` passes for a file or directory at that path. `-F` matches the name literally, so a dotted name such as `Query.createUser` cannot match `QueryXcreateUser`. A hit only in documentation or tests is not shipped: the pathspec excludes, at any depth, `docs/`, `wiki/`, `plans/`, `tests/`, and `__tests__/` directories, `*.test.*` and `*.spec.*` files, and every Markdown file. Exit 0 still only proves the name appears somewhere else: one hit inside a comment, a TODO, a fixture, or a stub is not proof it shipped, so read the `-n` output lines before treating it as present, and drop an exclude when this repository ships source under one of those paths. For each absent prerequisite, find the item that owns delivering it and link this leaf `is blocked by` that item before the leaf is marked ready. If no item owns it, file one (build-ready) and link it; otherwise the leaf fails the ready gate (S13). This is the mirror of `stale-state-claims`: that rule distrusts a stale *not-yet* note, this check distrusts a premature *done* one.
100
118
 
101
119
  ### 4.5. Classify Any New Material Dependency
102
120
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -258,6 +258,8 @@ The issue must EITHER have at least one entry in `links`, OR the body must conta
258
258
 
259
259
  An issue with zero links and no documented search: FAIL.
260
260
 
261
+ **Shipped-prerequisite check.** For every prerequisite the body calls already shipped, existing, or delivered (a symbol, resolver, mutation, file, migration…; for a route, its handler symbol or file), verify it is present on `origin/<default>` by running the command block in `lisa-task-decomposition` step 4. Exit 0 means present and 1 means absent; anything else means the check failed — S13 cannot pass, so report FAIL naming the error (fix the default-branch lookup or access and re-run), never read it as absent. An absent prerequisite with no `is blocked by` link (a `links` entry, or a `Blocked by #<n>` body line) to the issue that owns delivering it: FAIL. Remediation: add `Blocked by #<n>` for the owning issue, or file one build-ready and link it, or correct the body so it no longer claims the prerequisite shipped.
262
+
261
263
  #### S14 — Evidence manifest binding (leaf work units)
262
264
 
263
265
  When `issue_type ∈ {Bug, Task, Sub-task, Improvement}` AND `runtime_behavior_change = true`, the `## Validation Journey` must declare at least one **typed** `[EVIDENCE: <artifact-type>: <name>]` marker. These markers are the work unit's **evidence manifest** — the exact, enumerated set of artifacts that must be captured and attached before the issue may be closed (see the "Per-Work-Unit Evidence Contract" section of the `verification` rule, the Definition of Done in `verification-lifecycle`, and the evidence-manifest gate in `tracker-evidence`).
@@ -261,6 +261,8 @@ The ticket must EITHER have at least one issue link in `links`, OR the descripti
261
261
 
262
262
  A ticket with zero links and no documented search: FAIL.
263
263
 
264
+ **Shipped-prerequisite check.** For every prerequisite the description calls already shipped, existing, or delivered (a symbol, resolver, mutation, file, migration…; for a route, its handler symbol or file), verify it is present on `origin/<default>` by running the command block in `lisa-task-decomposition` step 4. Exit 0 means present and 1 means absent; anything else means the check failed — S13 cannot pass, so report FAIL naming the error (fix the default-branch lookup or access and re-run), never read it as absent. An absent prerequisite with no `is blocked by` link to the ticket that owns delivering it: FAIL. Remediation: link the owning ticket as `is blocked by`, or file one build-ready and link it, or correct the description so it no longer claims the prerequisite shipped.
265
+
264
266
  #### S14 — Evidence manifest binding (leaf work units)
265
267
 
266
268
  When `issue_type ∈ {Bug, Task, Sub-task, Improvement}` AND `runtime_behavior_change = true`, the `h2. Validation Journey` must declare at least one **typed** `[EVIDENCE: <artifact-type>: <name>]` marker. These markers are the work unit's **evidence manifest** — the exact, enumerated set of artifacts that must be captured and attached before the ticket may be marked complete (see the "Per-Work-Unit Evidence Contract" section of the `verification` rule, the Definition of Done in `verification-lifecycle`, and the evidence-manifest gate in `tracker-evidence`).
@@ -247,6 +247,8 @@ The item must EITHER have at least one entry in `relations`, OR the description
247
247
 
248
248
  An item with zero relations and no documented search: FAIL.
249
249
 
250
+ **Shipped-prerequisite check.** For every prerequisite the description calls already shipped, existing, or delivered (a symbol, resolver, mutation, file, migration…; for a route, its handler symbol or file), verify it is present on `origin/<default>` by running the command block in `lisa-task-decomposition` step 4. Exit 0 means present and 1 means absent; anything else means the check failed — S13 cannot pass, so report FAIL naming the error (fix the default-branch lookup or access and re-run), never read it as absent. An absent prerequisite with no `blocked by` relation to the issue that owns delivering it: FAIL. Remediation: add a `blocked by` relation to the owning issue, or file one build-ready and relate it, or correct the description so it no longer claims the prerequisite shipped.
251
+
250
252
  #### S14 — Evidence manifest binding (leaf work units)
251
253
 
252
254
  When `issue_type ∈ {Bug, Task, Sub-task, Improvement}` AND `runtime_behavior_change = true`, the `## Validation Journey` must declare at least one **typed** `[EVIDENCE: <artifact-type>: <name>]` marker. These markers are the work unit's **evidence manifest** — the exact, enumerated set of artifacts that must be captured and attached before the item may be closed (see the "Per-Work-Unit Evidence Contract" section of the `verification` rule, the Definition of Done in `verification-lifecycle`, and the evidence-manifest gate in `tracker-evidence`).
@@ -97,6 +97,24 @@ Each task must have a verification method. Choose the most appropriate:
97
97
  - Order tasks so that each builds on a stable foundation
98
98
  - Prefer independent tasks that can run in parallel where possible
99
99
  - Flag external dependencies (other teams, services, permissions, data) that may block progress
100
+ - Run the **shipped-prerequisite check** on every leaf. Ticket text is often written ahead of delivery, so a prerequisite it calls already shipped, existing, or delivered (a symbol, resolver, mutation, file, migration…; for a route, check its handler symbol or file) is a claim, not a fact (`empirical-inquiry`). Verify each one on the remote default branch, never the working tree. Run the whole block as one script (`bash -c`) with exactly one of `SYMBOL` or `FILE` set:
101
+
102
+ ```bash
103
+ # shipped-prerequisite check: exit 0 = present, 1 = absent, anything else = the check failed
104
+ default=$(git symbolic-ref --short -q refs/remotes/origin/HEAD | sed 's|^origin/||')
105
+ default=${default:-$(gh repo view --json defaultBranchRef --jq .defaultBranchRef.name)}
106
+ git fetch --quiet origin "+refs/heads/$default:refs/remotes/origin/$default" || exit 2
107
+ git rev-parse --verify -q "origin/$default" >/dev/null || exit 2
108
+ if [ -n "${SYMBOL-}" ]; then
109
+ git grep -F -n -w "$SYMBOL" "origin/$default" -- ':/' ':(top,exclude,glob)**/docs/**' ':(top,exclude,glob)**/wiki/**' ':(top,exclude,glob)**/plans/**' ':(top,exclude,glob)**/tests/**' ':(top,exclude,glob)**/__tests__/**' ':(top,exclude,glob)**/*.test.*' ':(top,exclude,glob)**/*.spec.*' ':(top,exclude,glob)**/*.md'
110
+ elif [ -n "${FILE-}" ]; then
111
+ git cat-file -e "origin/$default:$FILE" 2>/dev/null || exit 1
112
+ else
113
+ exit 2
114
+ fi
115
+ ```
116
+
117
+ Exit 0 means present and 1 means absent; anything else means the check failed (neither variable set, default branch unresolved, fetch refused, bad ref) — stop and report it, never read it as absent. The search is repository-wide whatever the working directory (`':/'`). `FILE` passes for a file or directory at that path. `-F` matches the name literally, so a dotted name such as `Query.createUser` cannot match `QueryXcreateUser`. A hit only in documentation or tests is not shipped: the pathspec excludes, at any depth, `docs/`, `wiki/`, `plans/`, `tests/`, and `__tests__/` directories, `*.test.*` and `*.spec.*` files, and every Markdown file. Exit 0 still only proves the name appears somewhere else: one hit inside a comment, a TODO, a fixture, or a stub is not proof it shipped, so read the `-n` output lines before treating it as present, and drop an exclude when this repository ships source under one of those paths. For each absent prerequisite, find the item that owns delivering it and link this leaf `is blocked by` that item before the leaf is marked ready. If no item owns it, file one (build-ready) and link it; otherwise the leaf fails the ready gate (S13). This is the mirror of `stale-state-claims`: that rule distrusts a stale *not-yet* note, this check distrusts a premature *done* one.
100
118
 
101
119
  ### 4.5. Classify Any New Material Dependency
102
120
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
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": "5.1.0",
3
+ "version": "5.1.1",
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": "5.1.0",
3
+ "version": "5.1.1",
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": "5.1.0",
3
+ "version": "5.1.1",
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": "5.1.0",
3
+ "version": "5.1.1",
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": "5.1.0",
3
+ "version": "5.1.1",
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": "5.1.0",
3
+ "version": "5.1.1",
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": "5.1.0",
3
+ "version": "5.1.1",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -85,6 +85,7 @@ And when you are the one clearing a condition: sweep for the notes that describe
85
85
  - **`empirical-inquiry`** — supplies the discipline this rule depends on: settle the fact with the cheapest probe rather than reasoning from what is written down. A stale note is exactly the "confident-sounding answer from a prior assumption" that rule forbids.
86
86
  - **`verification`** — a status derived from a comment is not runtime evidence. Reporting "still blocked" on the strength of a note is the same error as reporting "works" on the strength of the code looking correct.
87
87
  - **`tracked-work`** — the destination for any prediction that survives its item's closure: one live leaf, explicit blocking link, carried on the branch and PR.
88
+ - **`work-item-definition-of-ready`** (S13, shipped-prerequisite check) — the opposite direction: a premature *done* claim ("already shipped") that the default branch does not back. Verify it on `origin/<default>` and link the owning item as `is blocked by`.
88
89
  - **`claim-archaeology`** — the recovery path once mode 3 has already happened. Lifecycles are one-way, so a warning lost to closure resurfaces only as a fresh item whose ancestry has to be reconstructed. Archaeology is the cleanup; this rule is the prevention.
89
90
 
90
91
  ## Summary of obligations (formerly the always-loaded head)
@@ -12,6 +12,8 @@
12
12
 
13
13
  Three-audience description · Gherkin acceptance criteria (except Spike) · Out of Scope · single-repo scope · relationship search · typed evidence manifest on runtime changes · Source Requirement traceability when PRD-sourced · provable read access to every named external surface · declared reachability for any **existing** test the item pins as a red-before-green control (`control-reachability`, gate S20 — `N/A` when the item introduces a new test instead).
14
14
 
15
+ **Shipped-prerequisite check (S13).** Relationship search includes verifying every prerequisite a leaf calls already shipped (a symbol, file, migration…; for a route, its handler symbol or file) on `origin/<default>` — ticket text written ahead of delivery is a claim, not a fact. An absent prerequisite needs an `is blocked by` link to the item that owns delivering it before the leaf is ready; the commands live in `lisa-task-decomposition` step 4. It mirrors `stale-state-claims`: a premature *done* claim instead of a stale *not-yet* one.
16
+
15
17
  ## Per-type additions
16
18
 
17
19
  | Type | Must additionally carry | Terminal state is |
@@ -258,6 +258,8 @@ The issue must EITHER have at least one entry in `links`, OR the body must conta
258
258
 
259
259
  An issue with zero links and no documented search: FAIL.
260
260
 
261
+ **Shipped-prerequisite check.** For every prerequisite the body calls already shipped, existing, or delivered (a symbol, resolver, mutation, file, migration…; for a route, its handler symbol or file), verify it is present on `origin/<default>` by running the command block in `lisa-task-decomposition` step 4. Exit 0 means present and 1 means absent; anything else means the check failed — S13 cannot pass, so report FAIL naming the error (fix the default-branch lookup or access and re-run), never read it as absent. An absent prerequisite with no `is blocked by` link (a `links` entry, or a `Blocked by #<n>` body line) to the issue that owns delivering it: FAIL. Remediation: add `Blocked by #<n>` for the owning issue, or file one build-ready and link it, or correct the body so it no longer claims the prerequisite shipped.
262
+
261
263
  #### S14 — Evidence manifest binding (leaf work units)
262
264
 
263
265
  When `issue_type ∈ {Bug, Task, Sub-task, Improvement}` AND `runtime_behavior_change = true`, the `## Validation Journey` must declare at least one **typed** `[EVIDENCE: <artifact-type>: <name>]` marker. These markers are the work unit's **evidence manifest** — the exact, enumerated set of artifacts that must be captured and attached before the issue may be closed (see the "Per-Work-Unit Evidence Contract" section of the `verification` rule, the Definition of Done in `verification-lifecycle`, and the evidence-manifest gate in `tracker-evidence`).
@@ -261,6 +261,8 @@ The ticket must EITHER have at least one issue link in `links`, OR the descripti
261
261
 
262
262
  A ticket with zero links and no documented search: FAIL.
263
263
 
264
+ **Shipped-prerequisite check.** For every prerequisite the description calls already shipped, existing, or delivered (a symbol, resolver, mutation, file, migration…; for a route, its handler symbol or file), verify it is present on `origin/<default>` by running the command block in `lisa-task-decomposition` step 4. Exit 0 means present and 1 means absent; anything else means the check failed — S13 cannot pass, so report FAIL naming the error (fix the default-branch lookup or access and re-run), never read it as absent. An absent prerequisite with no `is blocked by` link to the ticket that owns delivering it: FAIL. Remediation: link the owning ticket as `is blocked by`, or file one build-ready and link it, or correct the description so it no longer claims the prerequisite shipped.
265
+
264
266
  #### S14 — Evidence manifest binding (leaf work units)
265
267
 
266
268
  When `issue_type ∈ {Bug, Task, Sub-task, Improvement}` AND `runtime_behavior_change = true`, the `h2. Validation Journey` must declare at least one **typed** `[EVIDENCE: <artifact-type>: <name>]` marker. These markers are the work unit's **evidence manifest** — the exact, enumerated set of artifacts that must be captured and attached before the ticket may be marked complete (see the "Per-Work-Unit Evidence Contract" section of the `verification` rule, the Definition of Done in `verification-lifecycle`, and the evidence-manifest gate in `tracker-evidence`).
@@ -247,6 +247,8 @@ The item must EITHER have at least one entry in `relations`, OR the description
247
247
 
248
248
  An item with zero relations and no documented search: FAIL.
249
249
 
250
+ **Shipped-prerequisite check.** For every prerequisite the description calls already shipped, existing, or delivered (a symbol, resolver, mutation, file, migration…; for a route, its handler symbol or file), verify it is present on `origin/<default>` by running the command block in `lisa-task-decomposition` step 4. Exit 0 means present and 1 means absent; anything else means the check failed — S13 cannot pass, so report FAIL naming the error (fix the default-branch lookup or access and re-run), never read it as absent. An absent prerequisite with no `blocked by` relation to the issue that owns delivering it: FAIL. Remediation: add a `blocked by` relation to the owning issue, or file one build-ready and relate it, or correct the description so it no longer claims the prerequisite shipped.
251
+
250
252
  #### S14 — Evidence manifest binding (leaf work units)
251
253
 
252
254
  When `issue_type ∈ {Bug, Task, Sub-task, Improvement}` AND `runtime_behavior_change = true`, the `## Validation Journey` must declare at least one **typed** `[EVIDENCE: <artifact-type>: <name>]` marker. These markers are the work unit's **evidence manifest** — the exact, enumerated set of artifacts that must be captured and attached before the item may be closed (see the "Per-Work-Unit Evidence Contract" section of the `verification` rule, the Definition of Done in `verification-lifecycle`, and the evidence-manifest gate in `tracker-evidence`).
@@ -97,6 +97,24 @@ Each task must have a verification method. Choose the most appropriate:
97
97
  - Order tasks so that each builds on a stable foundation
98
98
  - Prefer independent tasks that can run in parallel where possible
99
99
  - Flag external dependencies (other teams, services, permissions, data) that may block progress
100
+ - Run the **shipped-prerequisite check** on every leaf. Ticket text is often written ahead of delivery, so a prerequisite it calls already shipped, existing, or delivered (a symbol, resolver, mutation, file, migration…; for a route, check its handler symbol or file) is a claim, not a fact (`empirical-inquiry`). Verify each one on the remote default branch, never the working tree. Run the whole block as one script (`bash -c`) with exactly one of `SYMBOL` or `FILE` set:
101
+
102
+ ```bash
103
+ # shipped-prerequisite check: exit 0 = present, 1 = absent, anything else = the check failed
104
+ default=$(git symbolic-ref --short -q refs/remotes/origin/HEAD | sed 's|^origin/||')
105
+ default=${default:-$(gh repo view --json defaultBranchRef --jq .defaultBranchRef.name)}
106
+ git fetch --quiet origin "+refs/heads/$default:refs/remotes/origin/$default" || exit 2
107
+ git rev-parse --verify -q "origin/$default" >/dev/null || exit 2
108
+ if [ -n "${SYMBOL-}" ]; then
109
+ git grep -F -n -w "$SYMBOL" "origin/$default" -- ':/' ':(top,exclude,glob)**/docs/**' ':(top,exclude,glob)**/wiki/**' ':(top,exclude,glob)**/plans/**' ':(top,exclude,glob)**/tests/**' ':(top,exclude,glob)**/__tests__/**' ':(top,exclude,glob)**/*.test.*' ':(top,exclude,glob)**/*.spec.*' ':(top,exclude,glob)**/*.md'
110
+ elif [ -n "${FILE-}" ]; then
111
+ git cat-file -e "origin/$default:$FILE" 2>/dev/null || exit 1
112
+ else
113
+ exit 2
114
+ fi
115
+ ```
116
+
117
+ Exit 0 means present and 1 means absent; anything else means the check failed (neither variable set, default branch unresolved, fetch refused, bad ref) — stop and report it, never read it as absent. The search is repository-wide whatever the working directory (`':/'`). `FILE` passes for a file or directory at that path. `-F` matches the name literally, so a dotted name such as `Query.createUser` cannot match `QueryXcreateUser`. A hit only in documentation or tests is not shipped: the pathspec excludes, at any depth, `docs/`, `wiki/`, `plans/`, `tests/`, and `__tests__/` directories, `*.test.*` and `*.spec.*` files, and every Markdown file. Exit 0 still only proves the name appears somewhere else: one hit inside a comment, a TODO, a fixture, or a stub is not proof it shipped, so read the `-n` output lines before treating it as present, and drop an exclude when this repository ships source under one of those paths. For each absent prerequisite, find the item that owns delivering it and link this leaf `is blocked by` that item before the leaf is marked ready. If no item owns it, file one (build-ready) and link it; otherwise the leaf fails the ready gate (S13). This is the mirror of `stale-state-claims`: that rule distrusts a stale *not-yet* note, this check distrusts a premature *done* one.
100
118
 
101
119
  ### 4.5. Classify Any New Material Dependency
102
120
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -90,6 +90,7 @@ And when you are the one clearing a condition: sweep for the notes that describe
90
90
  - **`empirical-inquiry`** — supplies the discipline this rule depends on: settle the fact with the cheapest probe rather than reasoning from what is written down. A stale note is exactly the "confident-sounding answer from a prior assumption" that rule forbids.
91
91
  - **`verification`** — a status derived from a comment is not runtime evidence. Reporting "still blocked" on the strength of a note is the same error as reporting "works" on the strength of the code looking correct.
92
92
  - **`tracked-work`** — the destination for any prediction that survives its item's closure: one live leaf, explicit blocking link, carried on the branch and PR.
93
+ - **`work-item-definition-of-ready`** (S13, shipped-prerequisite check) — the opposite direction: a premature *done* claim ("already shipped") that the default branch does not back. Verify it on `origin/<default>` and link the owning item as `is blocked by`.
93
94
  - **`claim-archaeology`** — the recovery path once mode 3 has already happened. Lifecycles are one-way, so a warning lost to closure resurfaces only as a fresh item whose ancestry has to be reconstructed. Archaeology is the cleanup; this rule is the prevention.
94
95
 
95
96
  ## Summary of obligations (formerly the always-loaded head)
@@ -17,6 +17,8 @@ alwaysApply: false
17
17
 
18
18
  Three-audience description · Gherkin acceptance criteria (except Spike) · Out of Scope · single-repo scope · relationship search · typed evidence manifest on runtime changes · Source Requirement traceability when PRD-sourced · provable read access to every named external surface · declared reachability for any **existing** test the item pins as a red-before-green control (`control-reachability`, gate S20 — `N/A` when the item introduces a new test instead).
19
19
 
20
+ **Shipped-prerequisite check (S13).** Relationship search includes verifying every prerequisite a leaf calls already shipped (a symbol, file, migration…; for a route, its handler symbol or file) on `origin/<default>` — ticket text written ahead of delivery is a claim, not a fact. An absent prerequisite needs an `is blocked by` link to the item that owns delivering it before the leaf is ready; the commands live in `lisa-task-decomposition` step 4. It mirrors `stale-state-claims`: a premature *done* claim instead of a stale *not-yet* one.
21
+
20
22
  ## Per-type additions
21
23
 
22
24
  | Type | Must additionally carry | Terminal state is |
@@ -258,6 +258,8 @@ The issue must EITHER have at least one entry in `links`, OR the body must conta
258
258
 
259
259
  An issue with zero links and no documented search: FAIL.
260
260
 
261
+ **Shipped-prerequisite check.** For every prerequisite the body calls already shipped, existing, or delivered (a symbol, resolver, mutation, file, migration…; for a route, its handler symbol or file), verify it is present on `origin/<default>` by running the command block in `lisa-task-decomposition` step 4. Exit 0 means present and 1 means absent; anything else means the check failed — S13 cannot pass, so report FAIL naming the error (fix the default-branch lookup or access and re-run), never read it as absent. An absent prerequisite with no `is blocked by` link (a `links` entry, or a `Blocked by #<n>` body line) to the issue that owns delivering it: FAIL. Remediation: add `Blocked by #<n>` for the owning issue, or file one build-ready and link it, or correct the body so it no longer claims the prerequisite shipped.
262
+
261
263
  #### S14 — Evidence manifest binding (leaf work units)
262
264
 
263
265
  When `issue_type ∈ {Bug, Task, Sub-task, Improvement}` AND `runtime_behavior_change = true`, the `## Validation Journey` must declare at least one **typed** `[EVIDENCE: <artifact-type>: <name>]` marker. These markers are the work unit's **evidence manifest** — the exact, enumerated set of artifacts that must be captured and attached before the issue may be closed (see the "Per-Work-Unit Evidence Contract" section of the `verification` rule, the Definition of Done in `verification-lifecycle`, and the evidence-manifest gate in `tracker-evidence`).
@@ -261,6 +261,8 @@ The ticket must EITHER have at least one issue link in `links`, OR the descripti
261
261
 
262
262
  A ticket with zero links and no documented search: FAIL.
263
263
 
264
+ **Shipped-prerequisite check.** For every prerequisite the description calls already shipped, existing, or delivered (a symbol, resolver, mutation, file, migration…; for a route, its handler symbol or file), verify it is present on `origin/<default>` by running the command block in `lisa-task-decomposition` step 4. Exit 0 means present and 1 means absent; anything else means the check failed — S13 cannot pass, so report FAIL naming the error (fix the default-branch lookup or access and re-run), never read it as absent. An absent prerequisite with no `is blocked by` link to the ticket that owns delivering it: FAIL. Remediation: link the owning ticket as `is blocked by`, or file one build-ready and link it, or correct the description so it no longer claims the prerequisite shipped.
265
+
264
266
  #### S14 — Evidence manifest binding (leaf work units)
265
267
 
266
268
  When `issue_type ∈ {Bug, Task, Sub-task, Improvement}` AND `runtime_behavior_change = true`, the `h2. Validation Journey` must declare at least one **typed** `[EVIDENCE: <artifact-type>: <name>]` marker. These markers are the work unit's **evidence manifest** — the exact, enumerated set of artifacts that must be captured and attached before the ticket may be marked complete (see the "Per-Work-Unit Evidence Contract" section of the `verification` rule, the Definition of Done in `verification-lifecycle`, and the evidence-manifest gate in `tracker-evidence`).
@@ -247,6 +247,8 @@ The item must EITHER have at least one entry in `relations`, OR the description
247
247
 
248
248
  An item with zero relations and no documented search: FAIL.
249
249
 
250
+ **Shipped-prerequisite check.** For every prerequisite the description calls already shipped, existing, or delivered (a symbol, resolver, mutation, file, migration…; for a route, its handler symbol or file), verify it is present on `origin/<default>` by running the command block in `lisa-task-decomposition` step 4. Exit 0 means present and 1 means absent; anything else means the check failed — S13 cannot pass, so report FAIL naming the error (fix the default-branch lookup or access and re-run), never read it as absent. An absent prerequisite with no `blocked by` relation to the issue that owns delivering it: FAIL. Remediation: add a `blocked by` relation to the owning issue, or file one build-ready and relate it, or correct the description so it no longer claims the prerequisite shipped.
251
+
250
252
  #### S14 — Evidence manifest binding (leaf work units)
251
253
 
252
254
  When `issue_type ∈ {Bug, Task, Sub-task, Improvement}` AND `runtime_behavior_change = true`, the `## Validation Journey` must declare at least one **typed** `[EVIDENCE: <artifact-type>: <name>]` marker. These markers are the work unit's **evidence manifest** — the exact, enumerated set of artifacts that must be captured and attached before the item may be closed (see the "Per-Work-Unit Evidence Contract" section of the `verification` rule, the Definition of Done in `verification-lifecycle`, and the evidence-manifest gate in `tracker-evidence`).
@@ -97,6 +97,24 @@ Each task must have a verification method. Choose the most appropriate:
97
97
  - Order tasks so that each builds on a stable foundation
98
98
  - Prefer independent tasks that can run in parallel where possible
99
99
  - Flag external dependencies (other teams, services, permissions, data) that may block progress
100
+ - Run the **shipped-prerequisite check** on every leaf. Ticket text is often written ahead of delivery, so a prerequisite it calls already shipped, existing, or delivered (a symbol, resolver, mutation, file, migration…; for a route, check its handler symbol or file) is a claim, not a fact (`empirical-inquiry`). Verify each one on the remote default branch, never the working tree. Run the whole block as one script (`bash -c`) with exactly one of `SYMBOL` or `FILE` set:
101
+
102
+ ```bash
103
+ # shipped-prerequisite check: exit 0 = present, 1 = absent, anything else = the check failed
104
+ default=$(git symbolic-ref --short -q refs/remotes/origin/HEAD | sed 's|^origin/||')
105
+ default=${default:-$(gh repo view --json defaultBranchRef --jq .defaultBranchRef.name)}
106
+ git fetch --quiet origin "+refs/heads/$default:refs/remotes/origin/$default" || exit 2
107
+ git rev-parse --verify -q "origin/$default" >/dev/null || exit 2
108
+ if [ -n "${SYMBOL-}" ]; then
109
+ git grep -F -n -w "$SYMBOL" "origin/$default" -- ':/' ':(top,exclude,glob)**/docs/**' ':(top,exclude,glob)**/wiki/**' ':(top,exclude,glob)**/plans/**' ':(top,exclude,glob)**/tests/**' ':(top,exclude,glob)**/__tests__/**' ':(top,exclude,glob)**/*.test.*' ':(top,exclude,glob)**/*.spec.*' ':(top,exclude,glob)**/*.md'
110
+ elif [ -n "${FILE-}" ]; then
111
+ git cat-file -e "origin/$default:$FILE" 2>/dev/null || exit 1
112
+ else
113
+ exit 2
114
+ fi
115
+ ```
116
+
117
+ Exit 0 means present and 1 means absent; anything else means the check failed (neither variable set, default branch unresolved, fetch refused, bad ref) — stop and report it, never read it as absent. The search is repository-wide whatever the working directory (`':/'`). `FILE` passes for a file or directory at that path. `-F` matches the name literally, so a dotted name such as `Query.createUser` cannot match `QueryXcreateUser`. A hit only in documentation or tests is not shipped: the pathspec excludes, at any depth, `docs/`, `wiki/`, `plans/`, `tests/`, and `__tests__/` directories, `*.test.*` and `*.spec.*` files, and every Markdown file. Exit 0 still only proves the name appears somewhere else: one hit inside a comment, a TODO, a fixture, or a stub is not proof it shipped, so read the `-n` output lines before treating it as present, and drop an exclude when this repository ships source under one of those paths. For each absent prerequisite, find the item that owns delivering it and link this leaf `is blocked by` that item before the leaf is marked ready. If no item owns it, file one (build-ready) and link it; otherwise the leaf fails the ready gate (S13). This is the mirror of `stale-state-claims`: that rule distrusts a stale *not-yet* note, this check distrusts a premature *done* one.
100
118
 
101
119
  ### 4.5. Classify Any New Material Dependency
102
120
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -85,6 +85,7 @@ And when you are the one clearing a condition: sweep for the notes that describe
85
85
  - **`empirical-inquiry`** — supplies the discipline this rule depends on: settle the fact with the cheapest probe rather than reasoning from what is written down. A stale note is exactly the "confident-sounding answer from a prior assumption" that rule forbids.
86
86
  - **`verification`** — a status derived from a comment is not runtime evidence. Reporting "still blocked" on the strength of a note is the same error as reporting "works" on the strength of the code looking correct.
87
87
  - **`tracked-work`** — the destination for any prediction that survives its item's closure: one live leaf, explicit blocking link, carried on the branch and PR.
88
+ - **`work-item-definition-of-ready`** (S13, shipped-prerequisite check) — the opposite direction: a premature *done* claim ("already shipped") that the default branch does not back. Verify it on `origin/<default>` and link the owning item as `is blocked by`.
88
89
  - **`claim-archaeology`** — the recovery path once mode 3 has already happened. Lifecycles are one-way, so a warning lost to closure resurfaces only as a fresh item whose ancestry has to be reconstructed. Archaeology is the cleanup; this rule is the prevention.
89
90
 
90
91
  ## Summary of obligations (formerly the always-loaded head)
@@ -12,6 +12,8 @@
12
12
 
13
13
  Three-audience description · Gherkin acceptance criteria (except Spike) · Out of Scope · single-repo scope · relationship search · typed evidence manifest on runtime changes · Source Requirement traceability when PRD-sourced · provable read access to every named external surface · declared reachability for any **existing** test the item pins as a red-before-green control (`control-reachability`, gate S20 — `N/A` when the item introduces a new test instead).
14
14
 
15
+ **Shipped-prerequisite check (S13).** Relationship search includes verifying every prerequisite a leaf calls already shipped (a symbol, file, migration…; for a route, its handler symbol or file) on `origin/<default>` — ticket text written ahead of delivery is a claim, not a fact. An absent prerequisite needs an `is blocked by` link to the item that owns delivering it before the leaf is ready; the commands live in `lisa-task-decomposition` step 4. It mirrors `stale-state-claims`: a premature *done* claim instead of a stale *not-yet* one.
16
+
15
17
  ## Per-type additions
16
18
 
17
19
  | Type | Must additionally carry | Terminal state is |
@@ -258,6 +258,8 @@ The issue must EITHER have at least one entry in `links`, OR the body must conta
258
258
 
259
259
  An issue with zero links and no documented search: FAIL.
260
260
 
261
+ **Shipped-prerequisite check.** For every prerequisite the body calls already shipped, existing, or delivered (a symbol, resolver, mutation, file, migration…; for a route, its handler symbol or file), verify it is present on `origin/<default>` by running the command block in `lisa-task-decomposition` step 4. Exit 0 means present and 1 means absent; anything else means the check failed — S13 cannot pass, so report FAIL naming the error (fix the default-branch lookup or access and re-run), never read it as absent. An absent prerequisite with no `is blocked by` link (a `links` entry, or a `Blocked by #<n>` body line) to the issue that owns delivering it: FAIL. Remediation: add `Blocked by #<n>` for the owning issue, or file one build-ready and link it, or correct the body so it no longer claims the prerequisite shipped.
262
+
261
263
  #### S14 — Evidence manifest binding (leaf work units)
262
264
 
263
265
  When `issue_type ∈ {Bug, Task, Sub-task, Improvement}` AND `runtime_behavior_change = true`, the `## Validation Journey` must declare at least one **typed** `[EVIDENCE: <artifact-type>: <name>]` marker. These markers are the work unit's **evidence manifest** — the exact, enumerated set of artifacts that must be captured and attached before the issue may be closed (see the "Per-Work-Unit Evidence Contract" section of the `verification` rule, the Definition of Done in `verification-lifecycle`, and the evidence-manifest gate in `tracker-evidence`).
@@ -261,6 +261,8 @@ The ticket must EITHER have at least one issue link in `links`, OR the descripti
261
261
 
262
262
  A ticket with zero links and no documented search: FAIL.
263
263
 
264
+ **Shipped-prerequisite check.** For every prerequisite the description calls already shipped, existing, or delivered (a symbol, resolver, mutation, file, migration…; for a route, its handler symbol or file), verify it is present on `origin/<default>` by running the command block in `lisa-task-decomposition` step 4. Exit 0 means present and 1 means absent; anything else means the check failed — S13 cannot pass, so report FAIL naming the error (fix the default-branch lookup or access and re-run), never read it as absent. An absent prerequisite with no `is blocked by` link to the ticket that owns delivering it: FAIL. Remediation: link the owning ticket as `is blocked by`, or file one build-ready and link it, or correct the description so it no longer claims the prerequisite shipped.
265
+
264
266
  #### S14 — Evidence manifest binding (leaf work units)
265
267
 
266
268
  When `issue_type ∈ {Bug, Task, Sub-task, Improvement}` AND `runtime_behavior_change = true`, the `h2. Validation Journey` must declare at least one **typed** `[EVIDENCE: <artifact-type>: <name>]` marker. These markers are the work unit's **evidence manifest** — the exact, enumerated set of artifacts that must be captured and attached before the ticket may be marked complete (see the "Per-Work-Unit Evidence Contract" section of the `verification` rule, the Definition of Done in `verification-lifecycle`, and the evidence-manifest gate in `tracker-evidence`).