@codyswann/lisa 2.353.0 → 3.0.0

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 (256) hide show
  1. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  2. package/dist/core/upstream-evidence-manifest.js +61 -36
  3. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  4. package/expo/copy-overwrite/scripts/bdd/discover.mjs +502 -0
  5. package/expo/copy-overwrite/scripts/bdd/envelope.mjs +10 -1
  6. package/expo/copy-overwrite/scripts/bdd/render.mjs +53 -0
  7. package/expo/copy-overwrite/scripts/bdd/report.mjs +46 -0
  8. package/expo/copy-overwrite/scripts/check-bdd-coverage.mjs +39 -4
  9. package/expo/create-only/bdd/coverage-map.json +16 -0
  10. package/package.json +1 -1
  11. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  12. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  13. package/plugins/lisa/.codex-plugin/skills/lisa-agent-ready/SKILL.md +5 -3
  14. package/plugins/lisa/.codex-plugin/skills/lisa-confluence-to-tracker/SKILL.md +2 -1
  15. package/plugins/lisa/.codex-plugin/skills/lisa-debrief-apply/SKILL.md +2 -2
  16. package/plugins/lisa/.codex-plugin/skills/lisa-exploratory-qa/SKILL.md +7 -1
  17. package/plugins/lisa/.codex-plugin/skills/lisa-github-build-intake/SKILL.md +5 -0
  18. package/plugins/lisa/.codex-plugin/skills/lisa-github-create/SKILL.md +3 -1
  19. package/plugins/lisa/.codex-plugin/skills/lisa-github-to-tracker/SKILL.md +2 -1
  20. package/plugins/lisa/.codex-plugin/skills/lisa-github-validate-issue/SKILL.md +7 -3
  21. package/plugins/lisa/.codex-plugin/skills/lisa-github-write-issue/SKILL.md +16 -6
  22. package/plugins/lisa/.codex-plugin/skills/lisa-improve-harness/SKILL.md +1 -1
  23. package/plugins/lisa/.codex-plugin/skills/lisa-jira-build-intake/SKILL.md +5 -0
  24. package/plugins/lisa/.codex-plugin/skills/lisa-jira-create/SKILL.md +2 -0
  25. package/plugins/lisa/.codex-plugin/skills/lisa-jira-write-ticket/SKILL.md +12 -2
  26. package/plugins/lisa/.codex-plugin/skills/lisa-learnings-audit/SKILL.md +6 -1
  27. package/plugins/lisa/.codex-plugin/skills/lisa-linear-build-intake/SKILL.md +5 -0
  28. package/plugins/lisa/.codex-plugin/skills/lisa-linear-create/SKILL.md +3 -1
  29. package/plugins/lisa/.codex-plugin/skills/lisa-linear-to-tracker/SKILL.md +2 -1
  30. package/plugins/lisa/.codex-plugin/skills/lisa-linear-write-issue/SKILL.md +13 -4
  31. package/plugins/lisa/.codex-plugin/skills/lisa-notion-to-tracker/SKILL.md +2 -1
  32. package/plugins/lisa/.codex-plugin/skills/lisa-persist-learning/SKILL.md +1 -1
  33. package/plugins/lisa/.codex-plugin/skills/lisa-prd-source-write/SKILL.md +4 -2
  34. package/plugins/lisa/.codex-plugin/skills/lisa-qa-fail/SKILL.md +3 -1
  35. package/plugins/lisa/.codex-plugin/skills/lisa-repair-intake/SKILL.md +28 -0
  36. package/plugins/lisa/.codex-plugin/skills/lisa-rework-triage/SKILL.md +2 -2
  37. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-build-intake/SKILL.md +1 -0
  38. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-create/SKILL.md +1 -0
  39. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-write/SKILL.md +1 -0
  40. package/plugins/lisa/.codex-plugin/skills/lisa-verify/SKILL.md +1 -1
  41. package/plugins/lisa/rules/eager/bdd-e2e-coverage.md +3 -1
  42. package/plugins/lisa/rules/eager/claim-time-guards.md +30 -0
  43. package/plugins/lisa/rules/eager/ready-role-filing.md +22 -0
  44. package/plugins/lisa/rules/reference/automation-runbook-contract.md +8 -1
  45. package/plugins/lisa/rules/reference/bdd-e2e-coverage.md +42 -6
  46. package/plugins/lisa/rules/reference/claim-time-guards.md +69 -0
  47. package/plugins/lisa/rules/reference/ready-role-filing.md +66 -0
  48. package/plugins/lisa/skills/lisa-agent-ready/SKILL.md +5 -3
  49. package/plugins/lisa/skills/lisa-confluence-to-tracker/SKILL.md +2 -1
  50. package/plugins/lisa/skills/lisa-debrief-apply/SKILL.md +2 -2
  51. package/plugins/lisa/skills/lisa-exploratory-qa/SKILL.md +7 -1
  52. package/plugins/lisa/skills/lisa-github-build-intake/SKILL.md +5 -0
  53. package/plugins/lisa/skills/lisa-github-create/SKILL.md +3 -1
  54. package/plugins/lisa/skills/lisa-github-to-tracker/SKILL.md +2 -1
  55. package/plugins/lisa/skills/lisa-github-validate-issue/SKILL.md +7 -3
  56. package/plugins/lisa/skills/lisa-github-write-issue/SKILL.md +16 -6
  57. package/plugins/lisa/skills/lisa-improve-harness/SKILL.md +1 -1
  58. package/plugins/lisa/skills/lisa-jira-build-intake/SKILL.md +5 -0
  59. package/plugins/lisa/skills/lisa-jira-create/SKILL.md +2 -0
  60. package/plugins/lisa/skills/lisa-jira-write-ticket/SKILL.md +12 -2
  61. package/plugins/lisa/skills/lisa-learnings-audit/SKILL.md +6 -1
  62. package/plugins/lisa/skills/lisa-linear-build-intake/SKILL.md +5 -0
  63. package/plugins/lisa/skills/lisa-linear-create/SKILL.md +3 -1
  64. package/plugins/lisa/skills/lisa-linear-to-tracker/SKILL.md +2 -1
  65. package/plugins/lisa/skills/lisa-linear-write-issue/SKILL.md +13 -4
  66. package/plugins/lisa/skills/lisa-notion-to-tracker/SKILL.md +2 -1
  67. package/plugins/lisa/skills/lisa-persist-learning/SKILL.md +1 -1
  68. package/plugins/lisa/skills/lisa-prd-source-write/SKILL.md +4 -2
  69. package/plugins/lisa/skills/lisa-qa-fail/SKILL.md +3 -1
  70. package/plugins/lisa/skills/lisa-repair-intake/SKILL.md +28 -0
  71. package/plugins/lisa/skills/lisa-rework-triage/SKILL.md +2 -2
  72. package/plugins/lisa/skills/lisa-tracker-build-intake/SKILL.md +1 -0
  73. package/plugins/lisa/skills/lisa-tracker-create/SKILL.md +1 -0
  74. package/plugins/lisa/skills/lisa-tracker-write/SKILL.md +1 -0
  75. package/plugins/lisa/skills/lisa-verify/SKILL.md +1 -1
  76. package/plugins/lisa-agy/plugin.json +1 -1
  77. package/plugins/lisa-agy/skills/lisa-agent-ready/SKILL.md +5 -3
  78. package/plugins/lisa-agy/skills/lisa-confluence-to-tracker/SKILL.md +2 -1
  79. package/plugins/lisa-agy/skills/lisa-debrief-apply/SKILL.md +2 -2
  80. package/plugins/lisa-agy/skills/lisa-exploratory-qa/SKILL.md +7 -1
  81. package/plugins/lisa-agy/skills/lisa-github-build-intake/SKILL.md +5 -0
  82. package/plugins/lisa-agy/skills/lisa-github-create/SKILL.md +3 -1
  83. package/plugins/lisa-agy/skills/lisa-github-to-tracker/SKILL.md +2 -1
  84. package/plugins/lisa-agy/skills/lisa-github-validate-issue/SKILL.md +7 -3
  85. package/plugins/lisa-agy/skills/lisa-github-write-issue/SKILL.md +16 -6
  86. package/plugins/lisa-agy/skills/lisa-improve-harness/SKILL.md +1 -1
  87. package/plugins/lisa-agy/skills/lisa-jira-build-intake/SKILL.md +5 -0
  88. package/plugins/lisa-agy/skills/lisa-jira-create/SKILL.md +2 -0
  89. package/plugins/lisa-agy/skills/lisa-jira-write-ticket/SKILL.md +12 -2
  90. package/plugins/lisa-agy/skills/lisa-learnings-audit/SKILL.md +6 -1
  91. package/plugins/lisa-agy/skills/lisa-linear-build-intake/SKILL.md +5 -0
  92. package/plugins/lisa-agy/skills/lisa-linear-create/SKILL.md +3 -1
  93. package/plugins/lisa-agy/skills/lisa-linear-to-tracker/SKILL.md +2 -1
  94. package/plugins/lisa-agy/skills/lisa-linear-write-issue/SKILL.md +13 -4
  95. package/plugins/lisa-agy/skills/lisa-notion-to-tracker/SKILL.md +2 -1
  96. package/plugins/lisa-agy/skills/lisa-persist-learning/SKILL.md +1 -1
  97. package/plugins/lisa-agy/skills/lisa-prd-source-write/SKILL.md +4 -2
  98. package/plugins/lisa-agy/skills/lisa-qa-fail/SKILL.md +3 -1
  99. package/plugins/lisa-agy/skills/lisa-repair-intake/SKILL.md +28 -0
  100. package/plugins/lisa-agy/skills/lisa-rework-triage/SKILL.md +2 -2
  101. package/plugins/lisa-agy/skills/lisa-tracker-build-intake/SKILL.md +1 -0
  102. package/plugins/lisa-agy/skills/lisa-tracker-create/SKILL.md +1 -0
  103. package/plugins/lisa-agy/skills/lisa-tracker-write/SKILL.md +1 -0
  104. package/plugins/lisa-agy/skills/lisa-verify/SKILL.md +1 -1
  105. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  106. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  107. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  108. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  109. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  110. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  111. package/plugins/lisa-copilot/rules/eager/bdd-e2e-coverage.md +3 -1
  112. package/plugins/lisa-copilot/rules/eager/claim-time-guards.md +30 -0
  113. package/plugins/lisa-copilot/rules/eager/ready-role-filing.md +22 -0
  114. package/plugins/lisa-copilot/rules/reference/automation-runbook-contract.md +8 -1
  115. package/plugins/lisa-copilot/rules/reference/bdd-e2e-coverage.md +42 -6
  116. package/plugins/lisa-copilot/rules/reference/claim-time-guards.md +69 -0
  117. package/plugins/lisa-copilot/rules/reference/ready-role-filing.md +66 -0
  118. package/plugins/lisa-copilot/skills/lisa-agent-ready/SKILL.md +5 -3
  119. package/plugins/lisa-copilot/skills/lisa-confluence-to-tracker/SKILL.md +2 -1
  120. package/plugins/lisa-copilot/skills/lisa-debrief-apply/SKILL.md +2 -2
  121. package/plugins/lisa-copilot/skills/lisa-exploratory-qa/SKILL.md +7 -1
  122. package/plugins/lisa-copilot/skills/lisa-github-build-intake/SKILL.md +5 -0
  123. package/plugins/lisa-copilot/skills/lisa-github-create/SKILL.md +3 -1
  124. package/plugins/lisa-copilot/skills/lisa-github-to-tracker/SKILL.md +2 -1
  125. package/plugins/lisa-copilot/skills/lisa-github-validate-issue/SKILL.md +7 -3
  126. package/plugins/lisa-copilot/skills/lisa-github-write-issue/SKILL.md +16 -6
  127. package/plugins/lisa-copilot/skills/lisa-improve-harness/SKILL.md +1 -1
  128. package/plugins/lisa-copilot/skills/lisa-jira-build-intake/SKILL.md +5 -0
  129. package/plugins/lisa-copilot/skills/lisa-jira-create/SKILL.md +2 -0
  130. package/plugins/lisa-copilot/skills/lisa-jira-write-ticket/SKILL.md +12 -2
  131. package/plugins/lisa-copilot/skills/lisa-learnings-audit/SKILL.md +6 -1
  132. package/plugins/lisa-copilot/skills/lisa-linear-build-intake/SKILL.md +5 -0
  133. package/plugins/lisa-copilot/skills/lisa-linear-create/SKILL.md +3 -1
  134. package/plugins/lisa-copilot/skills/lisa-linear-to-tracker/SKILL.md +2 -1
  135. package/plugins/lisa-copilot/skills/lisa-linear-write-issue/SKILL.md +13 -4
  136. package/plugins/lisa-copilot/skills/lisa-notion-to-tracker/SKILL.md +2 -1
  137. package/plugins/lisa-copilot/skills/lisa-persist-learning/SKILL.md +1 -1
  138. package/plugins/lisa-copilot/skills/lisa-prd-source-write/SKILL.md +4 -2
  139. package/plugins/lisa-copilot/skills/lisa-qa-fail/SKILL.md +3 -1
  140. package/plugins/lisa-copilot/skills/lisa-repair-intake/SKILL.md +28 -0
  141. package/plugins/lisa-copilot/skills/lisa-rework-triage/SKILL.md +2 -2
  142. package/plugins/lisa-copilot/skills/lisa-tracker-build-intake/SKILL.md +1 -0
  143. package/plugins/lisa-copilot/skills/lisa-tracker-create/SKILL.md +1 -0
  144. package/plugins/lisa-copilot/skills/lisa-tracker-write/SKILL.md +1 -0
  145. package/plugins/lisa-copilot/skills/lisa-verify/SKILL.md +1 -1
  146. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  147. package/plugins/lisa-cursor/rules/automation-runbook-contract-reference.mdc +8 -1
  148. package/plugins/lisa-cursor/rules/bdd-e2e-coverage-reference.mdc +42 -6
  149. package/plugins/lisa-cursor/rules/bdd-e2e-coverage.mdc +3 -1
  150. package/plugins/lisa-cursor/rules/claim-time-guards-reference.mdc +74 -0
  151. package/plugins/lisa-cursor/rules/claim-time-guards.mdc +35 -0
  152. package/plugins/lisa-cursor/rules/ready-role-filing-reference.mdc +71 -0
  153. package/plugins/lisa-cursor/rules/ready-role-filing.mdc +27 -0
  154. package/plugins/lisa-cursor/skills/lisa-agent-ready/SKILL.md +5 -3
  155. package/plugins/lisa-cursor/skills/lisa-confluence-to-tracker/SKILL.md +2 -1
  156. package/plugins/lisa-cursor/skills/lisa-debrief-apply/SKILL.md +2 -2
  157. package/plugins/lisa-cursor/skills/lisa-exploratory-qa/SKILL.md +7 -1
  158. package/plugins/lisa-cursor/skills/lisa-github-build-intake/SKILL.md +5 -0
  159. package/plugins/lisa-cursor/skills/lisa-github-create/SKILL.md +3 -1
  160. package/plugins/lisa-cursor/skills/lisa-github-to-tracker/SKILL.md +2 -1
  161. package/plugins/lisa-cursor/skills/lisa-github-validate-issue/SKILL.md +7 -3
  162. package/plugins/lisa-cursor/skills/lisa-github-write-issue/SKILL.md +16 -6
  163. package/plugins/lisa-cursor/skills/lisa-improve-harness/SKILL.md +1 -1
  164. package/plugins/lisa-cursor/skills/lisa-jira-build-intake/SKILL.md +5 -0
  165. package/plugins/lisa-cursor/skills/lisa-jira-create/SKILL.md +2 -0
  166. package/plugins/lisa-cursor/skills/lisa-jira-write-ticket/SKILL.md +12 -2
  167. package/plugins/lisa-cursor/skills/lisa-learnings-audit/SKILL.md +6 -1
  168. package/plugins/lisa-cursor/skills/lisa-linear-build-intake/SKILL.md +5 -0
  169. package/plugins/lisa-cursor/skills/lisa-linear-create/SKILL.md +3 -1
  170. package/plugins/lisa-cursor/skills/lisa-linear-to-tracker/SKILL.md +2 -1
  171. package/plugins/lisa-cursor/skills/lisa-linear-write-issue/SKILL.md +13 -4
  172. package/plugins/lisa-cursor/skills/lisa-notion-to-tracker/SKILL.md +2 -1
  173. package/plugins/lisa-cursor/skills/lisa-persist-learning/SKILL.md +1 -1
  174. package/plugins/lisa-cursor/skills/lisa-prd-source-write/SKILL.md +4 -2
  175. package/plugins/lisa-cursor/skills/lisa-qa-fail/SKILL.md +3 -1
  176. package/plugins/lisa-cursor/skills/lisa-repair-intake/SKILL.md +28 -0
  177. package/plugins/lisa-cursor/skills/lisa-rework-triage/SKILL.md +2 -2
  178. package/plugins/lisa-cursor/skills/lisa-tracker-build-intake/SKILL.md +1 -0
  179. package/plugins/lisa-cursor/skills/lisa-tracker-create/SKILL.md +1 -0
  180. package/plugins/lisa-cursor/skills/lisa-tracker-write/SKILL.md +1 -0
  181. package/plugins/lisa-cursor/skills/lisa-verify/SKILL.md +1 -1
  182. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  183. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  184. package/plugins/lisa-expo-agy/plugin.json +1 -1
  185. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  186. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  187. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  188. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  189. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  190. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  191. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  192. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  193. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  194. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  195. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  196. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  197. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  198. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  199. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  200. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  201. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  202. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  203. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  204. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  205. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  206. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  207. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  208. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  209. package/plugins/lisa-rails-agy/plugin.json +1 -1
  210. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  211. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  212. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  213. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  214. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  215. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  216. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  217. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  218. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  219. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  220. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  221. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  222. package/plugins/src/base/rules/eager/bdd-e2e-coverage.md +3 -1
  223. package/plugins/src/base/rules/eager/claim-time-guards.md +30 -0
  224. package/plugins/src/base/rules/eager/ready-role-filing.md +22 -0
  225. package/plugins/src/base/rules/reference/automation-runbook-contract.md +8 -1
  226. package/plugins/src/base/rules/reference/bdd-e2e-coverage.md +42 -6
  227. package/plugins/src/base/rules/reference/claim-time-guards.md +69 -0
  228. package/plugins/src/base/rules/reference/ready-role-filing.md +66 -0
  229. package/plugins/src/base/skills/lisa-agent-ready/SKILL.md +5 -3
  230. package/plugins/src/base/skills/lisa-confluence-to-tracker/SKILL.md +2 -1
  231. package/plugins/src/base/skills/lisa-debrief-apply/SKILL.md +2 -2
  232. package/plugins/src/base/skills/lisa-exploratory-qa/SKILL.md +7 -1
  233. package/plugins/src/base/skills/lisa-github-build-intake/SKILL.md +5 -0
  234. package/plugins/src/base/skills/lisa-github-create/SKILL.md +3 -1
  235. package/plugins/src/base/skills/lisa-github-to-tracker/SKILL.md +2 -1
  236. package/plugins/src/base/skills/lisa-github-validate-issue/SKILL.md +7 -3
  237. package/plugins/src/base/skills/lisa-github-write-issue/SKILL.md +16 -6
  238. package/plugins/src/base/skills/lisa-improve-harness/SKILL.md +1 -1
  239. package/plugins/src/base/skills/lisa-jira-build-intake/SKILL.md +5 -0
  240. package/plugins/src/base/skills/lisa-jira-create/SKILL.md +2 -0
  241. package/plugins/src/base/skills/lisa-jira-write-ticket/SKILL.md +12 -2
  242. package/plugins/src/base/skills/lisa-learnings-audit/SKILL.md +6 -1
  243. package/plugins/src/base/skills/lisa-linear-build-intake/SKILL.md +5 -0
  244. package/plugins/src/base/skills/lisa-linear-create/SKILL.md +3 -1
  245. package/plugins/src/base/skills/lisa-linear-to-tracker/SKILL.md +2 -1
  246. package/plugins/src/base/skills/lisa-linear-write-issue/SKILL.md +13 -4
  247. package/plugins/src/base/skills/lisa-notion-to-tracker/SKILL.md +2 -1
  248. package/plugins/src/base/skills/lisa-persist-learning/SKILL.md +1 -1
  249. package/plugins/src/base/skills/lisa-prd-source-write/SKILL.md +4 -2
  250. package/plugins/src/base/skills/lisa-qa-fail/SKILL.md +3 -1
  251. package/plugins/src/base/skills/lisa-repair-intake/SKILL.md +28 -0
  252. package/plugins/src/base/skills/lisa-rework-triage/SKILL.md +2 -2
  253. package/plugins/src/base/skills/lisa-tracker-build-intake/SKILL.md +1 -0
  254. package/plugins/src/base/skills/lisa-tracker-create/SKILL.md +1 -0
  255. package/plugins/src/base/skills/lisa-tracker-write/SKILL.md +1 -0
  256. package/plugins/src/base/skills/lisa-verify/SKILL.md +1 -1
@@ -68,16 +68,43 @@ platforms it requires and that each named platform has a configured runner.
68
68
  "level": "behavioral"
69
69
  }
70
70
  ],
71
+ "testDiscovery": {
72
+ "<runner>": {
73
+ "roots": ["<repo-relative directory>", "..."],
74
+ "extensions": [".<suffix>", "..."],
75
+ "ignore": ["<optional repo-relative path prefix>"],
76
+ "evidence": { "kind": "call-title", "functions": ["test", "it"] }
77
+ }
78
+ },
71
79
  "exclusions": [
72
- { "file": "<path>", "reason": "why this test aligns to no product behavior" }
80
+ {
81
+ "file": "<path>",
82
+ "evidence": "<optional exact title; omit to excuse the whole file>",
83
+ "reason": "why this test aligns to no product behavior"
84
+ }
73
85
  ]
74
86
  }
75
87
  ```
76
88
 
77
89
  `evidence` is what makes a mapping falsifiable: the gate reads the mapped file and confirms the
78
90
  string is still there, so renaming or deleting a test breaks the map loudly instead of leaving a
79
- scenario silently unguarded. `exclusions` records tests that deliberately map to nothing — starter
80
- templates, source-level corroboration — so "unmapped test" stays a meaningful signal.
91
+ scenario silently unguarded.
92
+
93
+ `testDiscovery` closes the other direction. Validating only what the map DECLARES can never see a
94
+ test file nobody declared, so the gate walks the project's own roots and requires **every test it
95
+ finds to be named by a mapping or excused by an exclusion**. Roots and the evidence grammar are
96
+ per-runner configuration — list every directory, including subflow and helper directories, because
97
+ a directory omitted here is structurally invisible to the gate. Evidence grammars are an allowlist
98
+ of two (`call-title` reads `test("…")`-style declarations; `line-field` reads a leading `name:`
99
+ field), never a project-supplied regular expression, and a template-literal title is used verbatim
100
+ from the source rather than rewritten. A missing block is a defect in enforced mode
101
+ (`discovery-missing`); a malformed one is refused in **every** state (`discovery-invalid`), because
102
+ discovery that silently finds nothing looks exactly like a clean repo.
103
+
104
+ `exclusions` records tests that deliberately map to nothing — starter templates, source-level
105
+ corroboration — so "unmapped test" stays a meaningful signal. Each entry states a `reason`, and an
106
+ exclusion whose file is gone, whose title was renamed, or that no discovery root covers is
107
+ `exclusion-stale`: a standing claim about nothing, never a permanent excuse.
81
108
 
82
109
  ## The gate
83
110
 
@@ -94,8 +121,14 @@ Two commands, wired into the project's script surface and into CI:
94
121
  - an invalid waiver (nonexistent scenario, undeclared platform, already-excluded scenario, a
95
122
  `runner` that does not cover the waived platform under `runnerPlatforms`, or one that masks an
96
123
  existing mapping);
124
+ - a discovered test named by no mapping and no exclusion, or an exclusion that no longer excuses
125
+ anything;
97
126
  - a regression against the project's committed `coverageFloor` per platform.
98
127
 
128
+ Regeneration is never blocked by the check: `--write` rewrites the report and burndown whenever a
129
+ report can be built at all, so a stale evidence string can never hold hostage the paperwork that
130
+ documents it.
131
+
99
132
  The percentage measures **aligned automation inventory, not the latest run result**. A mapped test
100
133
  that currently fails is a red CI check, a separate signal; the map only asserts the automation
101
134
  exists and still says what it claimed. Both facts are required — a green gate over a red suite is
@@ -157,9 +190,12 @@ A repo with no contract yet, taking its first frontend work item:
157
190
 
158
191
  1. **Detect runners.** Find the e2e harnesses the project actually has, per the Tool Discovery
159
192
  Process in `verification-lifecycle`. Record which platforms each covers.
160
- 2. **Scaffold the minimum** — `bdd/features/`, `bdd/coverage-map.json` (with `runnerPlatforms` from
161
- step 1 and a coverage floor of the current, honest number), the regenerate + check scripts wired
162
- into the project's script surface, and the CI invocation of the check.
193
+ 2. **Scaffold the minimum** — `bdd/features/`, `bdd/coverage-map.json` (with `runnerPlatforms` and
194
+ `testDiscovery` from step 1 every root each runner's tests actually live in, subflow and helper
195
+ directories included and a coverage floor of the current, honest number), the regenerate +
196
+ check scripts wired into the project's script surface, and the CI invocation of the check.
197
+ Pre-existing tests that align to no product behavior are recorded as `exclusions` with reasons
198
+ during this step, never left undisclosed.
163
199
  3. **Write only this item's scenarios.** The first item is not a backfill project. Pre-existing
164
200
  uncovered behavior becomes burndown in `docs/e2e-bdd-coverage.md`, and the floor starts where the
165
201
  repo actually is.
@@ -0,0 +1,69 @@
1
+ # Claim-Time Guards
2
+
3
+ Two guards that run when build-intake claims a ready item. Both come from geminisportsai's hand-rolled `sprint-loop` and both address failures actually observed there — an item built twice because it had already shipped, and a loop burning cycles re-attempting an item that was never going to succeed.
4
+
5
+ It is a **single vendor-neutral contract** consumed by all three build-intake skills (`lisa-github-build-intake`, `lisa-jira-build-intake`, `lisa-linear-build-intake`). Each arm cites this slug in its claim step rather than growing its own copy, exactly as the arms cite `leaf-only-lifecycle`, `repo-scope-split`, `rejection-detection`, and `claim-archaeology`. One slug is what keeps a guard that fires on GitHub from being absent on Linear.
6
+
7
+ ## Sequencing
8
+
9
+ The shared claim phase is `3a.0` repo-scope gate → `3a` leaf-only claim gate → `3b` Claim → `3c` run lifecycle → `3d` transition to done. Inside `3b`, the pre-transition window now runs four passes in a fixed order:
10
+
11
+ 1. **`rejection-detection`** — needs the current-lane signal the relabel destroys.
12
+ 2. **`claim-archaeology`** — consumes the rejection classification.
13
+ 3. **`two-failed-attempts` valve** (this rule) — may end the cycle before any claim happens.
14
+ 4. **`already-implemented` check** (this rule) — decides whether `3c` implements or verifies.
15
+
16
+ The valve runs before the already-implemented probe because it is cheaper and it is the only one of the four that can stop the claim outright: there is no point spending git and PR queries on an item that is about to be blocked.
17
+
18
+ ## Guard 1 — already-implemented → verify-and-close
19
+
20
+ **Why it exists.** A ready item may already be implemented. Agents ship without transitioning: the PR merges, the work is done, and the item sits in the ready lane looking untouched. Claiming it normally means building the same change a second time — at best a no-op PR, at worst a conflicting reimplementation of work that already landed.
21
+
22
+ **The probe.** Two deterministic searches for the item's **own** canonical key (the ref carried by the `Work-Item:` trailer), bounded and never interactive:
23
+
24
+ ```bash
25
+ # Commits anywhere in history — branches and merged work included — that carry the key.
26
+ git log --all --grep "<key>" --format='%H %aI %s' -n 10
27
+
28
+ # Open and merged PRs referencing the key (GitHub shown; JIRA and Linear use the
29
+ # equivalent search through their access layers, never a direct vendor API call).
30
+ gh pr list --repo <org>/<repo> --state all --search "<key>" --json number,state,mergedAt,url
31
+ ```
32
+
33
+ A hit counts only when it names **this** key. Branch-name coincidence, a similar title, or a reference from an unrelated item is not a hit — that is `claim-archaeology`'s job, not this one.
34
+
35
+ **The outcome.** On a hit, do not implement. Switch `3c` to **verify-and-close**:
36
+
37
+ 1. Read the referenced commits/PR and establish what actually shipped.
38
+ 2. Verify the shipped change against this item's acceptance criteria — the ordinary verification path, not a fresh build.
39
+ 3. On a pass: post evidence naming the shipping PR/commit, then run the normal `3d` transition (which still gates on the PR being merged) and the `3d.1` rollup.
40
+ 4. On a fail — the shipped change does not satisfy the criteria — record that the item is only **partially** implemented, and proceed with the ordinary implement path for the remaining gap. A partial hit must never close an item whose criteria are unmet.
41
+
42
+ **What this is not.** Three nearby behaviors it must not be conflated with:
43
+
44
+ - **`claim-archaeology`** answers "is this item round 2 of a *different* past failure?" — it looks for an **ancestor** issue. This guard looks for **this same item** already having shipped. Different question, different key, different outcome.
45
+ - **`DUPLICATE_ALREADY_FIXED`** (from `lisa-ticket-triage`) is about a **different canonical issue** whose fix covers this one; it closes as a duplicate. This guard finds work done **under this item's own key** and closes it as completed, not as a duplicate.
46
+ - **Rejection reclaim** is about work that shipped and was pushed back. Verify-and-close applies to work that shipped and nobody noticed.
47
+
48
+ **Never block.** An unreadable history, an absent `gh`, or a failed search degrades to "no hit" and the ordinary implement path proceeds. A speculative probe must never strand a ready item.
49
+
50
+ ## Guard 2 — two-failed-attempts → blocked
51
+
52
+ **Why it exists.** Without a valve, a scheduled loop re-claims the same failing item every cycle forever. Each attempt costs a full build flow, and the third attempt is not more likely to succeed than the second — what changed between them was nothing.
53
+
54
+ **The counter.** Attempts are counted from durable markers on the item itself, not from session memory (a cron process holds no state between cycles). On every **non-success terminal outcome** for a claimed item — errored, blocked by a gate, PR abandoned unmerged — the intake arm records a visible comment plus a marker:
55
+
56
+ ```text
57
+ Build attempt <N> did not complete: <one-line operator-readable reason>.
58
+ <!-- [lisa-build-attempt] n=<N> outcome=<outcome> -->
59
+ ```
60
+
61
+ The marker line is verbatim; the count is the number of `[lisa-build-attempt]` markers on the item. Match on the **marker, never the title**. A successful build records no marker, so an item that shipped after one bad attempt starts clean if it is ever re-filed.
62
+
63
+ **The threshold is two.** At the top of the claim, count existing markers. With **two or more**, do not claim:
64
+
65
+ 1. Move the item to the configured `blocked` role (`build.blocked` / `workflow.blocked`, resolved per `config-resolution` — never a hardcoded lane).
66
+ 2. Post an operator-readable comment naming both prior attempts, what each one hit, and what a human would need to decide or supply. Written for a non-technical operator, per `report-actionability`.
67
+ 3. **Stop the loop** — end the cycle without claiming anything else. Stopping is the point: the next scheduled invocation should not immediately pick up the next item as though nothing happened.
68
+
69
+ **Recovery is deliberate.** A blocked item returns to the queue only when a human (or `lisa-repair-intake`, once the named blocker is provably cleared) moves it back. The attempt markers stay on the item as history; re-entering the ready lane after a real fix is a fresh claim whose markers describe why it was hard, not a silent reset of the counter.
@@ -0,0 +1,66 @@
1
+ # Ready-Role Filing
2
+
3
+ A work item that is filed but never given the ready role is an **incomplete handoff**. No other agent will ever pick it up: build-intake scans the ready lane and nothing else. The originating failure is small and entirely typical — an agent closed a ticket it could not reproduce, filed the real defect it found beside it, and left the new ticket sitting. The defect was correct, the write succeeded, and the work still died.
4
+
5
+ This rule makes the ready role an **explicit claim** at every filing site, and makes omission mean the same thing on every tracker.
6
+
7
+ ## The one normalization
8
+
9
+ **An omitted `build_ready` means NOT build-ready — on JIRA, on GitHub, and on Linear alike.**
10
+
11
+ Before this rule the three writers disagreed, and the disagreement was invisible at the call site:
12
+
13
+ | Tracker | Omitted `build_ready` (before) | Omitted `build_ready` (now) |
14
+ |---|---|---|
15
+ | JIRA | project's default created status — **not ready** | unchanged — **not ready** |
16
+ | GitHub | `status:ready` applied — **ready** | **not ready** |
17
+ | Linear | created in the configured `ready` state — **ready** | **not ready** |
18
+
19
+ So the same vendor-neutral `lisa-tracker-write` call produced a different lifecycle outcome depending on which tracker a project had configured. That is a leak in the abstraction the shim exists to provide: switching trackers must not change behavior.
20
+
21
+ **This is a breaking change for GitHub and Linear callers.** Any caller that omitted `build_ready` and relied on implicit ready must now pass it explicitly. That is the point rather than a cost of it: the only paths affected are ones that were silently depending on a provider-specific default, which is exactly the class of bug this rule exists to eliminate. `lisa-github-validate-issue` F4's compensating normalization (omitted → `true`) is removed with it — a validator that re-introduces the old default would simply move the leak.
22
+
23
+ The safe direction is the implicit one. A ticket that reaches a build queue by accident is worse than one that waits, because the queue is what agents act on autonomously.
24
+
25
+ ## Every filing declares one of two things
26
+
27
+ A writer accepts a filing only when it carries **one** of:
28
+
29
+ - **`build_ready: true`** — the item is complete enough to build and enters the ready lane for auto-pickup. This is the correct answer for a complete defect found during other work.
30
+ - **`human_gate: "<why a human must judge this first>"`** — the item is deliberately held outside the queue because a human product call is pending. The writer stamps a visible marker on the item so the hold is auditable rather than indistinguishable from an accident:
31
+
32
+ ```text
33
+ Held for a human product call: <reason>.
34
+ <!-- [lisa-human-gate] reason=<short-slug> -->
35
+ ```
36
+
37
+ Filed, not ready, and no `human_gate` is the **incomplete handoff** case: the writer rejects it and names the two ways to resolve it. `build_ready: false` without a `human_gate` reason is the same failure spelled differently — it is not a gate, it is an omission with a value attached.
38
+
39
+ `build_ready` remains strictly subordinate to `leaf-only-lifecycle`: a container is never build-ready regardless of what a caller passes, and a container needs no `human_gate` because its state rolls up from its children rather than being claimed.
40
+
41
+ ## Complete defects found during other work are filed build-ready
42
+
43
+ Any defect discovered while doing something else, which is complete enough to build, is filed through `lisa-track` / `lisa-tracker-write` with **explicit `build_ready: true`**. It must be claimable by build-intake on the next cycle with no human flipping status. "Complete enough to build" is the `work-item-definition-of-ready` bar — reproduction, observed-versus-expected, and Gherkin acceptance criteria — not a placeholder to be fleshed out later.
44
+
45
+ The same explicitness applies in the other direction. A filing that is genuinely a human product call declares `human_gate`; it does not simply omit the flag and hope the tracker default is the merciful one.
46
+
47
+ ## The named exception: `lisa-exploratory-qa`
48
+
49
+ `lisa-exploratory-qa` files its findings **not** build-ready by default, and that is **correct** — it is the named human-gate exception under this rule, not drift to be repaired.
50
+
51
+ Exploratory QA is a first-time-user experience pass. Its findings are *candidate* defects and usability observations whose product significance a human should judge; auto-readying them would push judgment work into the build queue, which is precisely the failure the gate model exists to prevent. Its `ready=false` is therefore paired with an explicit `human_gate` reason and stamped with `[lisa-human-gate]` — an explicit human-gate marker, never a bare omission.
52
+
53
+ The sibling `e2e-coverage-gaps` skills are the contrast: a missing automated test is not a product question, so they file `build_ready: true` by default.
54
+
55
+ Other legitimate human-gate filings follow the same shape — `lisa-learnings-audit` promotion/demotion tickets, `lisa-improve-harness` intervention proposals, automation-retirement proposals, and provisioning tickets for access a human must grant. Each declares its `human_gate` reason rather than relying on a default.
56
+
57
+ ## Recovery
58
+
59
+ `lisa-repair-intake` sweeps for the failure this rule prevents: recently filed items that are open, not in the configured ready role, and carrying **no** `[lisa-human-gate]` marker. Each is an incomplete handoff — surfaced with its filing context so an operator can promote it or gate it deliberately. The sweep reports rather than guesses: it never silently promotes an item into the queue, because a filing whose readiness nobody declared is exactly the input the gate model says a human should see.
60
+
61
+ ## Related
62
+
63
+ - **`leaf-only-lifecycle`** — the prohibition `build_ready` is always subordinate to. Containers are never build-ready.
64
+ - **`work-item-definition-of-ready`** — what "complete enough to build" means.
65
+ - **`tracked-work`** — the filing entry point (`lisa-track`) this rule governs the readiness of.
66
+ - **`factory-model`** — why the ready flip is a gate standing outside the factory rather than a field inside it.
@@ -217,9 +217,11 @@ vocabulary; it consumes it.
217
217
 
218
218
  3. **File each standing blocker as a tracker work item — never an in-session question.** For every
219
219
  standing ship blocker, create **one** Lisa work item through the vendor-neutral `lisa-tracker-write`
220
- skill (never a vendor write skill directly), carrying the five finding fields in the body. Label it
221
- **build-ready** when the correction is mechanical; mark it **human-needed** when it is a genuine
222
- human decision. This is the skill's **only tracker write**, and it creates Lisa's *own* work item —
220
+ skill (never a vendor write skill directly), carrying the five finding fields in the body. Per the `ready-role-filing` rule each
221
+ create declares its readiness explicitly: pass **`build_ready: true`** when the correction is
222
+ mechanical (an omitted flag is NOT build-ready on any tracker, so the mechanical branch would
223
+ otherwise file work nothing ever claims), and pass **`human_gate: "<the decision only a human can
224
+ make>"`** plus the `human-needed` marker when it is a genuine human decision. This is the skill's **only tracker write**, and it creates Lisa's *own* work item —
223
225
  it **never edits, comments on, transitions, or otherwise mutates any ingested source** (see the
224
226
  connected-source safety boundary above). The shipped never-ask posture is preserved: a blocker
225
227
  becomes a filed ticket, **never** a prompt, and the session **never pauses to ask a human anything**,
@@ -356,7 +356,7 @@ Each sub-task MUST:
356
356
  2. **Include an Empirical Verification Plan** — real user-like verification, NOT unit tests, linting, or typechecking
357
357
  3. **Carry its own `## Source Requirement` section** (shared format above) with the full verbatim quote(s) from the Phase 1.4 register — a leaf claimed by build-intake in isolation must be self-explanatory. When a sub-task is split per-repo, every split child inherits the same requirement quote(s).
358
358
 
359
- **Leaf-only build-ready (`leaf-only-lifecycle`)**: Sub-tasks are the **leaf work units** of the decomposition — they are the ONLY items in the hierarchy that receive the build-ready role. `lisa-tracker-write` applies the build-ready role here so downstream build intake (`lisa-tracker-build-intake`) claims the leaves and never the Epic or Stories. Apply the build-ready role to each Sub-task; never to its parent Story or Epic (Phases 3–4). `lisa-tracker-write` enforces the same invariant on the write side, so a Sub-task split into per-repo children (the cross-repo case above) carries build-ready on the children, not on any intermediate parent that gains child work.
359
+ **Leaf-only build-ready (`leaf-only-lifecycle`)**: Sub-tasks are the **leaf work units** of the decomposition — they are the ONLY items in the hierarchy that receive the build-ready role. `lisa-tracker-write` applies the build-ready role here so downstream build intake (`lisa-tracker-build-intake`) claims the leaves and never the Epic or Stories. **Pass `build_ready: true` explicitly on every Sub-task create** — per the `ready-role-filing` rule an omitted `build_ready` is NOT build-ready on any tracker, so a decomposition that relies on a vendor default silently produces a queue nothing ever claims. Apply the build-ready role to each Sub-task; never to its parent Story or Epic (Phases 3–4). `lisa-tracker-write` enforces the same invariant on the write side, so a Sub-task split into per-repo children (the cross-repo case above) carries build-ready on the children, not on any intermediate parent that gains child work.
360
360
 
361
361
  Sub-tasks inherit their parent story's artifacts by reference (the parent link). Do not pass the same artifact list to every sub-task.
362
362
 
@@ -425,6 +425,7 @@ tickets that downstream skills (triage, journey, evidence) cannot use.
425
425
 
426
426
  For each sub-task, invoke `lisa-tracker-write` with:
427
427
  - issue_type: "Sub-task"
428
+ - build_ready: true # explicit per `ready-role-filing`; omitted is NOT build-ready on any tracker
428
429
  - prd_source: [the originating PRD URL — mandatory; arms the S16 traceability gate]
429
430
  - parent: the parent story key
430
431
  - project_key: [PROJECT]
@@ -29,11 +29,11 @@ For every row marked **Accept**:
29
29
  | Edge case | Edge Case Brainstorm checklist in `intent-routing.md` | Append the new pattern + question to the matching group (Navigation, Data, Failure, Input, Auth, or a new group if none fit). Use the row's `Summary` and `Evidence` link as a citation comment. |
30
30
  | Recurring gotcha | Committed learnings ledger (via contract) | Persist a ledger entry per [Ledger persistence](#ledger-persistence-knowledge-categories). The `rule` is the recurring gotcha and the guard against it; `why` is the causal claim. |
31
31
  | Process friction | Committed learnings ledger (via contract) | Persist a ledger entry per [Ledger persistence](#ledger-persistence-knowledge-categories). The `rule` is the friction-avoiding guideline; `why` names the friction it prevents. |
32
- | Tooling gap | Configured tracker — or upstream Lisa when harness-level | **Split by level.** Project-level (a missing project script, hook, or automation) → create a ticket via `lisa-tracker-write` with `issue_type: Task`, summary derived from the row's `Summary`, description citing the evidence and the originating debrief doc, labeled `type:tooling` / `lifecycle-improvement`. Harness-level (a Lisa skill/gate/agent that should have caught the issue but didn't) → file an upstream Lisa issue exactly per the "Filing upstream" procedure in `lisa-rework-triage` (dedupe search first, three-audience description, evidence chain, `self-hardening` label; repo from `.lisa.config.json` `hardening.upstreamRepo`, default `CodySwannGT/lisa`). |
32
+ | Tooling gap | Configured tracker — or upstream Lisa when harness-level | **Split by level.** Project-level (a missing project script, hook, or automation) → create a ticket via `lisa-tracker-write` with `issue_type: Task`, summary derived from the row's `Summary`, description citing the evidence and the originating debrief doc, labeled `type:tooling` / `lifecycle-improvement`, and explicit `build_ready: true` per `ready-role-filing` (a tooling gap the factory can close itself is queue work, and an omitted flag is NOT build-ready on any tracker). Harness-level (a Lisa skill/gate/agent that should have caught the issue but didn't) → file an upstream Lisa issue exactly per the "Filing upstream" procedure in `lisa-rework-triage` (dedupe search first, three-audience description, evidence chain, `self-hardening` label; repo from `.lisa.config.json` `hardening.upstreamRepo`, default `CodySwannGT/lisa`). |
33
33
  | Convention drift | Committed learnings ledger (via contract) | Persist a ledger entry per [Ledger persistence](#ledger-persistence-knowledge-categories). The `rule` is the correct convention; `why` records the drift it corrects. |
34
34
  | Decomposition infidelity | Upstream Lisa repo | File an upstream Lisa issue per the "Filing upstream" procedure in `lisa-rework-triage`, citing the PRD text vs. the distorted ticket AC and naming the gate that passed it. |
35
35
  | PRD defect | Source PRD | Comment on the PRD via the `lisa-prd-backlink` lineage quoting the defective requirement and the failure it missed; flag for product review. Never silently edit the spec. |
36
- | Missing tool access | Configured tracker | Create a provisioning ticket via `lisa-tracker-write` (`issue_type: Task`, `type:tooling`) describing the missing tool/credential/environment and which flow needs it. |
36
+ | Missing tool access | Configured tracker | Create a provisioning ticket via `lisa-tracker-write` (`issue_type: Task`, `type:tooling`) describing the missing tool/credential/environment and which flow needs it. Pass `human_gate: "a human must grant the missing access"` per `ready-role-filing` — the factory cannot provision its own credentials. |
37
37
  | Uncategorized | **No route — requires reclassification** | `Uncategorized` records that the synthesizer could not fit the finding to a category; it is not itself a destination. Do NOT guess a route and do NOT silently skip the row. Leave the row unapplied, mark it `[!] Needs reclassification — <the synthesizer's "why no category fit" note>`, and list it under its own heading in the run summary so the human can retag it to one of the eight and re-run `apply`. A row that stays `Uncategorized` across runs is a signal the category set itself is missing a case — worth an upstream Lisa issue, not a forced fit. |
38
38
 
39
39
  For every row marked **Reject** or **Defer**: no action. Defer is a no-op for `apply` but worth surfacing in the run summary — the human may want to revisit at the next debrief.
@@ -70,7 +70,13 @@ Kane never files the work item itself. Even when it marks a failure as a confirm
70
70
  | User-visible **bug** (broken behavior) | `Bug` | the `ready` flag (default `false`) |
71
71
  | **Usability / UX / clarity issue** | `Improvement` | the `ready` flag (default `false`) |
72
72
 
73
- Each finding is a flat leaf, so `build_ready` applies directly — pass it explicitly on every create. Each ticket MUST be a complete spec (the validator rejects thin tickets): a **three-audience description**; for a **bug**, exact reproduction steps, observed-vs-expected, the env / account / interface it occurred at, and evidence; for a **usability issue**, the observed friction, who it affects, **where**, and the proposed improvement; and **Gherkin acceptance criteria** for the fixed behavior.
73
+ Each finding is a flat leaf, so `build_ready` applies directly — pass it explicitly on every create.
74
+
75
+ **This skill is the named human-gate exception under `ready-role-filing`.** Everywhere else in Lisa, a complete defect found during other work is filed with explicit `build_ready: true` so build-intake claims it next cycle. Exploratory QA is deliberately different, and that difference is ratified rather than drift: its findings are *candidate* defects and usability observations whose **product significance is a human call**, so auto-readying them would push judgment work into the build queue — precisely the failure the gate model exists to prevent. Its default `ready=false` is therefore an **explicit human-gate marker, never a bare omission**: every not-ready create passes `human_gate: "exploratory finding — product significance is a human product call"` alongside `build_ready: false`, and the writer stamps the auditable `[lisa-human-gate]` marker. An operator who wants a pass to feed the queue directly opts in with `ready=true`.
76
+
77
+ (The sibling `e2e-coverage-gaps` skills are the contrast: a missing automated test is not a product question, so they file `build_ready: true` by default.)
78
+
79
+ Each ticket MUST be a complete spec (the validator rejects thin tickets): a **three-audience description**; for a **bug**, exact reproduction steps, observed-vs-expected, the env / account / interface it occurred at, and evidence; for a **usability issue**, the observed friction, who it affects, **where**, and the proposed improvement; and **Gherkin acceptance criteria** for the fixed behavior.
74
80
 
75
81
  ### Idempotency — don't spam duplicates
76
82
 
@@ -258,6 +258,11 @@ A blocker is active if it is open and has no cleared status label. Treat `status
258
258
 
259
259
  **Claim-time archaeology runs second — after rejection detection, still before the relabel below.** Classify this item per the vendor-neutral `claim-archaeology` rule, with the rejection classification above as its input. All shared semantics — ancestry signals, classification, learning-loop exclusion, cost budget, candidate derivation, marker dedupe, and the never-block degrade — live in that one slug; change them there, never here. GitHub wiring only: the typed relations and `closingIssuesReferences` are already in the read bundle; text-similarity searches use `gh search issues` over recently-closed issues; the fallback candidate comment is posted with `gh issue comment`.
260
260
 
261
+ **The two `claim-time-guards` run third and fourth — still before the relabel below.** Both semantics live in that one vendor-neutral slug; do not restate them here. GitHub wiring only:
262
+
263
+ 1. **`two-failed-attempts` valve.** Count `[lisa-build-attempt]` markers on the issue from the read bundle's comments (match on the marker, never the title). With two or more, do **not** claim: relabel to the configured blocked role (`gh issue edit <number> --repo <org>/<repo> --remove-label "$READY" --add-label "$BLOCKED"`, resolved from `github.labels.build.blocked` per `config-resolution`), post the operator-readable comment naming both attempts, and **stop the cycle** at Phase 3e. Every non-success terminal outcome recorded in 3c/3d also appends a fresh `<!-- [lisa-build-attempt] n=<N> outcome=<outcome> -->` marker so the next cycle can count it.
264
+ 2. **`already-implemented` check.** Probe for this issue's own key — `git log --all --grep "<org>/<repo>#<number>"` and `gh pr list --repo <org>/<repo> --state all --search "<org>/<repo>#<number>" --json number,state,mergedAt,url`. On a hit, claim as normal but route 3c to **verify-and-close** instead of `lisa-implement`: verify what shipped against the issue's acceptance criteria, post evidence via `lisa-github-evidence` naming the shipping PR/commit, then run the ordinary 3d transition and 3d.1 rollup. A partial hit implements only the remaining gap. An unreadable history degrades to "no hit" and the ordinary path proceeds — the guard never blocks the claim. This is not `DUPLICATE_ALREADY_FIXED` (a *different* canonical issue) and not `claim-archaeology` (a *different* ancestor issue); it is this issue's own work already having shipped without a transition.
265
+
261
266
  ```bash
262
267
  gh issue edit <number> --repo <org>/<repo> --remove-label "$READY" --add-label "$CLAIMED"
263
268
  # Assign to the authenticated user ONLY when the issue is currently unassigned (attributable claim;
@@ -80,7 +80,9 @@ Issues must be created in parent-before-child order:
80
80
 
81
81
  1. Invoke `lisa-github-write-issue` for the Epic. Capture the returned issue number.
82
82
  2. For each Story, invoke `lisa-github-write-issue` with the Epic ref as `parent_ref`. Capture each Story number.
83
- 3. For each Sub-task, invoke `lisa-github-write-issue` with the Story ref as `parent_ref`.
83
+ 3. For each Sub-task, invoke `lisa-github-write-issue` with the Story ref as `parent_ref` and explicit `build_ready: true`.
84
+
85
+ - **Declare readiness on every leaf write.** Per the `ready-role-filing` rule an omitted `build_ready` is **not build-ready** on any tracker, so pass `build_ready: true` on each Sub-task (the leaf work units this skill plans) and never on the Epic or Stories, which are containers per `leaf-only-lifecycle`. A leaf that is deliberately held instead passes `human_gate: "<why a human must judge this first>"`. Filing a leaf with neither is an incomplete handoff and `lisa-github-write-issue` rejects it.
84
86
 
85
87
  ### What to pass to each invocation
86
88
 
@@ -343,7 +343,7 @@ Each sub-task MUST:
343
343
  2. **Include an Empirical Verification Plan** — real user-like verification, NOT unit tests, linting, or typechecking.
344
344
  3. **Carry its own `## Source Requirement` section** (shared format above) with the full verbatim quote(s) from the Phase 1.4 register — a leaf claimed by build-intake in isolation must be self-explanatory. When a sub-task is split per-repo, every split child inherits the same requirement quote(s).
345
345
 
346
- **Leaf-only build-ready (`leaf-only-lifecycle`)**: Sub-tasks are the **leaf work units** of the decomposition — they are the ONLY items in the hierarchy that receive the build-ready label. `lisa-tracker-write` applies `status:ready` here so downstream build intake (`lisa-github-build-intake`) claims the leaves and never the Epic or Stories. Apply `status:ready` to each Sub-task; never to its parent Story or Epic (Phases 3–4). `lisa-github-write-issue` enforces the same invariant on the write side, so a Sub-task split into per-repo children (the cross-repo case above) carries build-ready on the children, not on any intermediate parent that gains child work.
346
+ **Leaf-only build-ready (`leaf-only-lifecycle`)**: Sub-tasks are the **leaf work units** of the decomposition — they are the ONLY items in the hierarchy that receive the build-ready label. `lisa-tracker-write` applies `status:ready` here so downstream build intake (`lisa-github-build-intake`) claims the leaves and never the Epic or Stories. **Pass `build_ready: true` explicitly on every Sub-task create** — per the `ready-role-filing` rule an omitted `build_ready` is NOT build-ready on any tracker, so a decomposition that relies on a vendor default silently produces a queue nothing ever claims. Apply `status:ready` to each Sub-task; never to its parent Story or Epic (Phases 3–4). `lisa-github-write-issue` enforces the same invariant on the write side, so a Sub-task split into per-repo children (the cross-repo case above) carries build-ready on the children, not on any intermediate parent that gains child work.
347
347
 
348
348
  Sub-tasks inherit their parent Story's artifacts by reference (the parent link). Do not pass the same artifact list to every sub-task.
349
349
 
@@ -412,6 +412,7 @@ that downstream skills (triage, journey, evidence) cannot use.
412
412
 
413
413
  For each sub-task, invoke `lisa-tracker-write` with:
414
414
  - issue_type: "Sub-task"
415
+ - build_ready: true # explicit per `ready-role-filing`; omitted is NOT build-ready on any tracker
415
416
  - prd_source: [the originating PRD URL — mandatory; arms the S16 traceability gate]
416
417
  - parent_ref: the parent story ref
417
418
  - summary: prefixed with the repo in brackets, e.g. "[backend-api] Add audit log table"
@@ -382,13 +382,17 @@ Per `Phase 5` of `lisa-github-write-issue`, every issue MUST carry
382
382
  missing from the proposed spec or live issue, FAIL with the missing label name.
383
383
 
384
384
  The `status:*` requirement uses this validator's S15 leaf/container classification while preserving
385
- the writer's documented `build_ready` control-input defaults:
385
+ the writer's documented `build_ready` control-input defaults, which the `ready-role-filing` rule
386
+ fixes at "omitted is NOT build-ready" for every vendor:
386
387
 
387
388
  1. Classify the issue structurally using the S15 child-resolution rules. A container (any issue
388
389
  with child work, plus a childless `Epic`) may omit `status:*`; its state rolls up rather than
389
390
  being assigned directly.
390
- 2. For a proposed leaf spec, normalize omitted `build_ready` to `true`, preserving the writer's
391
- backward-compatible default-ready behavior. Explicit `build_ready: false` means backlog mode.
391
+ 2. For a proposed leaf spec, normalize omitted `build_ready` to `false`, per `ready-role-filing`:
392
+ ready is an explicit claim, so only `build_ready: true` asserts it. Explicit `build_ready: false`
393
+ means the same backlog mode. (This validator previously normalized omitted → `true` to mirror
394
+ GitHub's implicit-ready writer default; both were removed together, and re-introducing either
395
+ here would just move the leak.)
392
396
  3. For a live issue ref, derive `build_ready` from the labels (`true` exactly when the S15-resolved
393
397
  `READY_ROLE` from `github.labels.build.ready`, default `status:ready`, is present). A live backlog leaf without a status label
394
398
  therefore validates as `build_ready: false`; live data cannot distinguish an explicit false from
@@ -253,12 +253,21 @@ For non-build-ready issues created fresh (Epics, Stories, and other containers),
253
253
 
254
254
  ### Build-ready control input (`build_ready`)
255
255
 
256
- `build_ready` is an optional write-control input (default: **omitted**). It governs whether a **leaf** work unit is stamped with the build-ready role on create. It never overrides `leaf-only-lifecycle` — a container is never stamped build-ready regardless of `build_ready`. "Not build-ready" is not a special status: it simply means the issue is created in its natural default (a plain open issue with **no `status:ready` label**), which a human can promote later.
256
+ `build_ready` is a write-control input governed by the `ready-role-filing` rule — cite that slug for the full contract; do not restate its per-vendor normalization table here. It decides whether a **leaf** work unit is stamped with the build-ready role on create. It never overrides `leaf-only-lifecycle` — a container is never stamped build-ready regardless of `build_ready`. "Not build-ready" is not a special status: it simply means the issue is created in its natural default (a plain open issue with **no `status:ready` label**), which a human can promote later.
257
257
 
258
- - **Omitted** → current behavior: a leaf work unit receives `status:ready`. Preserves what every existing caller (`lisa-plan`, the `*-to-tracker` skills) relies on.
258
+ - **Omitted** → **not build-ready**: the leaf is created without `status:ready`. Ready is an explicit claim, never a vendor default. **This is a breaking change** — GitHub previously applied `status:ready` on omission, so a caller that relied on that must now pass `build_ready: true`.
259
259
  - **`build_ready: false`** → create the leaf **without** `status:ready`, so it sits in the backlog for a human to review and promote into the queue.
260
260
  - **`build_ready: true`** → ensure the leaf carries `status:ready` so `lisa-intake` / `lisa-github-build-intake` auto-picks it up.
261
261
 
262
+ **A filing with neither is an incomplete handoff.** A leaf that is not build-ready must carry an explicit `human_gate: "<why a human must judge this first>"`; nothing in the ready lane means nothing ever claims it. When `human_gate` is supplied, stamp the hold on the issue so it is auditable — a visible line plus the verbatim marker:
263
+
264
+ ```text
265
+ Held for a human product call: <reason>.
266
+ <!-- [lisa-human-gate] reason=<short-slug> -->
267
+ ```
268
+
269
+ If a leaf arrives with `build_ready` omitted or `false` **and** no `human_gate`, do not create it: report the incomplete handoff and name both ways to resolve it (`build_ready: true`, or a `human_gate` reason). Containers are exempt — their state rolls up from children, so they need neither.
270
+
262
271
  ## Phase 5.5 — Validate (Pre-write Gate)
263
272
 
264
273
  Before any write, invoke `lisa-github-validate-issue` with the full proposed spec assembled from Phases 2 / 3 / 4 / 5. Pass it as a YAML block per the `lisa-github-validate-issue` schema, including `runtime_behavior_change`, `authenticated_surface`, and `artifacts_attached` flags so the right gates run.
@@ -271,9 +280,9 @@ If the validator reports `FAIL`, do NOT proceed to Phase 6. Fix the spec and re-
271
280
 
272
281
  ### CREATE
273
282
 
274
- 1. Compose the body markdown from Phases 2/3/4 in a temp file (avoid quoting hell). Apply `status:ready` **only for a leaf work unit** per the Phase 5 leaf-only rule (`leaf-only-lifecycle`) — omit it for `Epic` / `Story` / `Spike` and any issue that has child work, **and** only when `build_ready` is not `false` (a leaf with `build_ready: false` is created without `status:ready`; see the Build-ready control input):
283
+ 1. Compose the body markdown from Phases 2/3/4 in a temp file (avoid quoting hell). Apply `status:ready` **only for a leaf work unit** per the Phase 5 leaf-only rule (`leaf-only-lifecycle`) — omit it for `Epic` / `Story` / `Spike` and any issue that has child work, **and** only when `build_ready` is explicitly `true` (a leaf with `build_ready` omitted or `false` is created without `status:ready`; see the Build-ready control input):
275
284
  ```bash
276
- # Leaf work unit (Bug / Task / Sub-task / Improvement with no children), build_ready not false:
285
+ # Leaf work unit (Bug / Task / Sub-task / Improvement with no children), build_ready: true:
277
286
  gh issue create \
278
287
  --repo <org>/<repo> \
279
288
  --title "<summary>" \
@@ -282,9 +291,10 @@ If the validator reports `FAIL`, do NOT proceed to Phase 6. Fix the spec and re-
282
291
  [--label "component:<name>" ...] [--milestone "<milestone>"] \
283
292
  [--assignee "<login>"]
284
293
 
285
- # Container (Epic / Story / Spike / any issue with child work), OR a leaf with build_ready: false:
294
+ # Container (Epic / Story / Spike / any issue with child work), OR a leaf whose build_ready is
295
+ # omitted or false (and which therefore carries an explicit human_gate):
286
296
  # identical, but WITHOUT --label "status:ready" — a container's state rolls up from children;
287
- # a build_ready: false leaf waits in the backlog for a human to promote it.
297
+ # a human-gated leaf waits in the backlog for a human to promote it.
288
298
  gh issue create \
289
299
  --repo <org>/<repo> \
290
300
  --title "<summary>" \
@@ -191,7 +191,7 @@ authority — if any of these hold:
191
191
  **On any of those: file a proposed-intervention ticket via `lisa-tracker-write` and STOP.** The
192
192
  ticket carries the job contract, the earliest failed handoff, the gap classification with
193
193
  evidence, and the proposed change with its expected mechanism; labels `type:harness`,
194
- `status:blocked` (human-flipped to `status:ready` when approved). Post the result record with
194
+ `status:blocked` plus an explicit `human_gate: "a human approves the proposed harness intervention"` per `ready-role-filing` (human-flipped to `status:ready` when approved). Post the result record with
195
195
  `Verdict: bounded-authority-stop`, `Decision: n/a (proposed-intervention, <url>)`, and
196
196
  terminate. Implementing it anyway is the failure mode this phase exists to prevent.
197
197
 
@@ -202,6 +202,11 @@ This gate never blocks a legitimate flat Task/Bug: those have no open children a
202
202
 
203
203
  **Claim-time archaeology runs second — after rejection detection, still before the transition below.** Classify this ticket per the vendor-neutral `claim-archaeology` rule, with the rejection classification above as its input. All shared semantics — ancestry signals, classification, learning-loop exclusion, cost budget, candidate derivation, marker dedupe, and the never-block degrade — live in that one slug; change them there, never here. JIRA wiring only: the typed relations are already in the read bundle; text-similarity searches run through `lisa-atlassian-access operation: search-issues jql:` over recently-closed tickets; the fallback candidate comment is posted via `lisa-atlassian-access operation: comment`.
204
204
 
205
+ **The two `claim-time-guards` run third and fourth — still before the transition below.** Both semantics live in that one vendor-neutral slug; do not restate them here. JIRA wiring only:
206
+
207
+ 1. **`two-failed-attempts` valve.** Count `[lisa-build-attempt]` markers on the ticket from the read bundle's comments (match on the marker, never the summary). With two or more, do **not** claim: transition to the configured blocked status (`lisa-atlassian-access operation: transition to: "$BLOCKED"`, resolved from `jira.workflow.blocked` per `config-resolution`), post the operator-readable comment naming both attempts, and **stop the cycle** at Phase 3e. Every non-success terminal outcome recorded in 3c/3d also appends a fresh `<!-- [lisa-build-attempt] n=<N> outcome=<outcome> -->` marker so the next cycle can count it.
208
+ 2. **`already-implemented` check.** Probe for this ticket's own key — `git log --all --grep "<TICKET>"` and the merged/open PRs referencing `<TICKET>` (`gh pr list --state all --search "<TICKET>"` in the bound repo). On a hit, claim as normal but route 3c to **verify-and-close** instead of `lisa-implement`: verify what shipped against the ticket's acceptance criteria, post evidence via `lisa-jira-evidence` naming the shipping PR/commit, then run the ordinary 3d transition and rollup. A partial hit implements only the remaining gap. An unreadable history degrades to "no hit" and the ordinary path proceeds — the guard never blocks the claim. This is not `DUPLICATE_ALREADY_FIXED` (a *different* canonical ticket) and not `claim-archaeology` (a *different* ancestor ticket); it is this ticket's own work already having shipped without a transition.
209
+
205
210
  Transition the ticket from `$READY` to `$CLAIMED` by invoking `lisa-atlassian-access` `operation: transition key: <TICKET> to: "$CLAIMED"`.
206
211
  - **Assign to the authenticated user when the ticket is unassigned.** A claim must be attributable. If the ticket has no assignee, assign it to the authenticated account — prefer acli `--assignee @me` (resolves server-side to the authenticated user, which avoids the federated-`accountId` mis-assignment), or `write-ticket` with the `accountId` from the `/rest/api/3/myself` identity probe the access skill already documents. Leave an already-assigned ticket's assignee untouched — never reassign work that already has an owner.
207
212
  - Post a `[claude-build-intake]` comment via `lisa-atlassian-access` `operation: comment key: <TICKET> body: "Claimed by Claude. Starting build."`
@@ -125,6 +125,8 @@ Exclude unless requested: migration plans, performance tests
125
125
  - Sign-in account and target environment recorded in description
126
126
  - Post-create verification
127
127
 
128
+ **Declare readiness on every leaf write.** Per the `ready-role-filing` rule an omitted `build_ready` is **not build-ready** on any tracker, so pass `build_ready: true` on each Sub-task (the leaf work units this skill plans) and never on the Epic or Stories, which are containers per `leaf-only-lifecycle`. A leaf that is deliberately held instead passes `human_gate: "<why a human must judge this first>"`. Filing a leaf with neither is an incomplete handoff and `lisa-jira-write-ticket` rejects it.
129
+
128
130
  ### Invocation order
129
131
 
130
132
  Tickets must be created in parent-before-child order so each child can be passed its parent key:
@@ -238,11 +238,21 @@ Before create/update, verify each field is populated where applicable:
238
238
 
239
239
  ### Build-ready control input (`build_ready`)
240
240
 
241
- `build_ready` is an optional write-control input (default: **omitted**). It governs whether a **leaf** work unit is promoted to the build-ready role on create. It never overrides `leaf-only-lifecycle` — a container is never promoted regardless of `build_ready`. Unlike the label-based trackers, JIRA tickets are **already created not-ready** (in the project's default initial status, e.g. `TODO`/`Backlog`); the build-ready role is the configured `ready` status (`jira.workflow.ready`, default `Ready`), reached by an explicit transition.
241
+ `build_ready` is a write-control input governed by the `ready-role-filing` rule — cite that slug for the full contract; do not restate its per-vendor normalization table here. It decides whether a **leaf** work unit is promoted to the build-ready role on create. It never overrides `leaf-only-lifecycle` — a container is never promoted regardless of `build_ready`. Unlike the label-based trackers, JIRA tickets are **already created not-ready** (in the project's default initial status, e.g. `TODO`/`Backlog`); the build-ready role is the configured `ready` status (`jira.workflow.ready`, default `Ready`), reached by an explicit transition. JIRA is the vendor whose behavior the other two converged onto — this arm is unchanged by that normalization.
242
242
 
243
- - **Omitted** or **`build_ready: false`** current behavior: leave the ticket in the project's default created status. No transition. A human (or `build_ready: true`) promotes it to the `ready` status later.
243
+ - **Omitted** → **not build-ready**: leave the ticket in the project's default created status. No transition. Ready is an explicit claim, never a vendor default.
244
+ - **`build_ready: false`** → same outcome as omitted, stated deliberately: the ticket waits in the project's default status for a human to promote it.
244
245
  - **`build_ready: true`** → after create, transition the **leaf** to the resolved `ready` role so `lisa-intake` / `lisa-jira-build-intake` auto-picks it up (see Phase 6 CREATE step). Resolve the role name with the standard pattern (`.jira.workflow.ready` // `Ready`, local overrides global). Best-effort: if the transition is unreachable, record it and leave the ticket in its default status rather than failing the write.
245
246
 
247
+ **A filing with neither is an incomplete handoff.** A leaf that is not build-ready must carry an explicit `human_gate: "<why a human must judge this first>"`; nothing in the ready status means nothing ever claims it. When `human_gate` is supplied, stamp the hold on the ticket so it is auditable — a visible line plus the verbatim marker:
248
+
249
+ ```text
250
+ Held for a human product call: <reason>.
251
+ <!-- [lisa-human-gate] reason=<short-slug> -->
252
+ ```
253
+
254
+ If a leaf arrives with `build_ready` omitted or `false` **and** no `human_gate`, do not create it: report the incomplete handoff and name both ways to resolve it (`build_ready: true`, or a `human_gate` reason). Containers are exempt — their status rolls up from children, so they need neither.
255
+
246
256
  ## Phase 5.5 — Validate (Pre-write Gate)
247
257
 
248
258
  Before any write, invoke `lisa-jira-validate-ticket` with the full proposed spec assembled from Phases 2 / 3 / 4 / 5. Pass it as a YAML block per the `lisa-jira-validate-ticket` schema, including `runtime_behavior_change`, `authenticated_surface`, and `artifacts_attached` flags so the right gates run.
@@ -172,7 +172,12 @@ audits the auditor without re-running it.
172
172
 
173
173
  All project-tracker writes go through **`lisa-tracker-write`** so gardener
174
174
  tickets pass the same validation gates as all factory work. Nothing is created
175
- `status:ready` — the human flips.
175
+ `status:ready` — the human flips. Per `ready-role-filing` that hold is
176
+ **declared, not implied**: every gardener ticket passes
177
+ `human_gate: "a human decides whether this knowledge is promoted, demoted, or
178
+ retired"` so the writer stamps the auditable `[lisa-human-gate]` marker. An
179
+ omitted flag would be indistinguishable from the accidental non-ready filing
180
+ the rule exists to catch.
176
181
 
177
182
  **Per-item tickets — PROMOTE / DEMOTE** (`issue_type: Task`; GitHub trackers
178
183
  carry the `type:Task` label) — one ticket per recommendation, capped by
@@ -203,6 +203,11 @@ This gate never blocks a legitimate flat Task/Bug: those have no open children a
203
203
 
204
204
  **Claim-time archaeology runs second — after rejection detection, still before the transition below.** Classify this Issue per the vendor-neutral `claim-archaeology` rule, with the rejection classification above as its input. All shared semantics — ancestry signals, classification, learning-loop exclusion, cost budget, candidate derivation, marker dedupe, and the never-block degrade — live in that one slug; change them there, never here. Linear wiring only: the native relations are already in the read bundle; text-similarity searches run through `lisa-linear-access operation: list-issues` filtered to recently-closed Issues; the fallback candidate comment is posted via `lisa-linear-access operation: save-comment`.
205
205
 
206
+ **The two `claim-time-guards` run third and fourth — still before the transition below.** Both semantics live in that one vendor-neutral slug; do not restate them here. Linear wiring only:
207
+
208
+ 1. **`two-failed-attempts` valve.** Count `[lisa-build-attempt]` markers on the Issue from the read bundle's comments (match on the marker, never the title). With two or more, do **not** claim: set `stateId` to the configured blocked state via `lisa-linear-access operation: save-issue` (resolved from `linear.workflow.blocked` per `config-resolution`), post the operator-readable comment naming both attempts via `save-comment`, and **stop the cycle** at Phase 3e. Every non-success terminal outcome recorded in 3c/3d also appends a fresh `<!-- [lisa-build-attempt] n=<N> outcome=<outcome> -->` marker so the next cycle can count it.
209
+ 2. **`already-implemented` check.** Probe for this Issue's own key — `git log --all --grep "<IDENTIFIER>"` and the merged/open PRs referencing `<IDENTIFIER>` (`gh pr list --state all --search "<IDENTIFIER>"` in the bound repo; Linear's own GitHub attachments in the read bundle are the cheaper first look). On a hit, claim as normal but route 3c to **verify-and-close** instead of `lisa-implement`: verify what shipped against the Issue's acceptance criteria, post evidence via `lisa-linear-evidence` naming the shipping PR/commit, then run the ordinary 3d transition and rollup. A partial hit implements only the remaining gap. An unreadable history degrades to "no hit" and the ordinary path proceeds — the guard never blocks the claim. This is not `DUPLICATE_ALREADY_FIXED` (a *different* canonical Issue) and not `claim-archaeology` (a *different* ancestor Issue); it is this Issue's own work already having shipped without a transition.
210
+
206
211
  Transition the Issue via `lisa-linear-access operation: save-issue` by setting `stateId` to the `$CLAIMED` state. Resolve state IDs via `list-workflow-states`; a missing `$CLAIMED` state is a setup defect (see the pre-flight check) — never create one here.
207
212
 
208
213
  **Assign to the authenticated user when the Issue is unassigned.** A claim must be attributable. If the Issue has no assignee, set its `assigneeId` to the authenticated viewer (resolve the viewer's id via the Linear MCP identity — e.g. `get_user` for the current actor) through `lisa-linear-access operation: save-issue`. Leave an already-assigned Issue's assignee untouched — never reassign work that already has an owner.
@@ -124,7 +124,9 @@ Items must be created in parent-before-child order so each child can be passed i
124
124
 
125
125
  1. Invoke `lisa-linear-write-issue` for the Epic (Project). Capture the returned Project ID.
126
126
  2. For each Story, invoke `lisa-linear-write-issue` with the Project ID as `parent_project_id`. Capture each Issue identifier.
127
- 3. For each Sub-task, invoke `lisa-linear-write-issue` with the Story Issue ID as `parent_issue_id`.
127
+ 3. For each Sub-task, invoke `lisa-linear-write-issue` with the Story Issue ID as `parent_issue_id` and explicit `build_ready: true`.
128
+
129
+ - **Declare readiness on every leaf write.** Per the `ready-role-filing` rule an omitted `build_ready` is **not build-ready** on any tracker, so pass `build_ready: true` on each Sub-task (the leaf work units this skill plans) and never on the Epic or Stories, which are containers per `leaf-only-lifecycle`. A leaf that is deliberately held instead passes `human_gate: "<why a human must judge this first>"`. Filing a leaf with neither is an incomplete handoff and `lisa-linear-write-issue` rejects it.
128
130
 
129
131
  ### What to pass to each invocation
130
132
 
@@ -340,7 +340,7 @@ Each sub-task MUST:
340
340
  2. **Include an Empirical Verification Plan** — real user-like verification, NOT unit tests, linting, or typechecking
341
341
  3. **Carry its own `## Source Requirement` section** (shared format above) with the full verbatim quote(s) from the Phase 1.4 register — a leaf claimed by build-intake in isolation must be self-explanatory. When a sub-task is split per-repo, every split child inherits the same requirement quote(s).
342
342
 
343
- **Leaf-only build-ready (`leaf-only-lifecycle`)**: Sub-tasks are the **leaf work units** of the decomposition — they are the ONLY items in the hierarchy that receive the build-ready role. `lisa-tracker-write` applies the build-ready role here so downstream build intake (`lisa-tracker-build-intake`) claims the leaves and never the Epic or Stories. Apply the build-ready role to each Sub-task; never to its parent Story or Epic (Phases 3–4). `lisa-tracker-write` enforces the same invariant on the write side, so a Sub-task split into per-repo children (the cross-repo case above) carries build-ready on the children, not on any intermediate parent that gains child work.
343
+ **Leaf-only build-ready (`leaf-only-lifecycle`)**: Sub-tasks are the **leaf work units** of the decomposition — they are the ONLY items in the hierarchy that receive the build-ready role. `lisa-tracker-write` applies the build-ready role here so downstream build intake (`lisa-tracker-build-intake`) claims the leaves and never the Epic or Stories. **Pass `build_ready: true` explicitly on every Sub-task create** — per the `ready-role-filing` rule an omitted `build_ready` is NOT build-ready on any tracker, so a decomposition that relies on a vendor default silently produces a queue nothing ever claims. Apply the build-ready role to each Sub-task; never to its parent Story or Epic (Phases 3–4). `lisa-tracker-write` enforces the same invariant on the write side, so a Sub-task split into per-repo children (the cross-repo case above) carries build-ready on the children, not on any intermediate parent that gains child work.
344
344
 
345
345
  Sub-tasks inherit their parent story's artifacts by reference (the parent link). Do not pass the same artifact list to every sub-task.
346
346
 
@@ -408,6 +408,7 @@ produces broken tickets that downstream skills (triage, journey, evidence) canno
408
408
 
409
409
  For each sub-task, invoke `lisa-tracker-write` with:
410
410
  - issue_type: "Sub-task"
411
+ - build_ready: true # explicit per `ready-role-filing`; omitted is NOT build-ready on any tracker
411
412
  - prd_source: [the originating PRD URL — mandatory; arms the S16 traceability gate]
412
413
  - parent: the parent story key
413
414
  - project_key: [PROJECT]