@codyswann/lisa 2.352.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 (280) hide show
  1. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  2. package/dist/core/upstream-evidence-manifest.js +70 -43
  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/.github/workflows/maestro-e2e.yml +10 -1
  10. package/expo/create-only/.github/workflows/nightly-e2e-health.yml +5 -0
  11. package/expo/create-only/bdd/coverage-map.json +16 -0
  12. package/package.json +1 -1
  13. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  14. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  15. package/plugins/lisa/.codex-plugin/skills/lisa-agent-ready/SKILL.md +5 -3
  16. package/plugins/lisa/.codex-plugin/skills/lisa-confluence-to-tracker/SKILL.md +2 -1
  17. package/plugins/lisa/.codex-plugin/skills/lisa-debrief-apply/SKILL.md +2 -2
  18. package/plugins/lisa/.codex-plugin/skills/lisa-exploratory-qa/SKILL.md +7 -1
  19. package/plugins/lisa/.codex-plugin/skills/lisa-github-build-intake/SKILL.md +5 -0
  20. package/plugins/lisa/.codex-plugin/skills/lisa-github-create/SKILL.md +3 -1
  21. package/plugins/lisa/.codex-plugin/skills/lisa-github-to-tracker/SKILL.md +2 -1
  22. package/plugins/lisa/.codex-plugin/skills/lisa-github-validate-issue/SKILL.md +7 -3
  23. package/plugins/lisa/.codex-plugin/skills/lisa-github-write-issue/SKILL.md +16 -6
  24. package/plugins/lisa/.codex-plugin/skills/lisa-improve-harness/SKILL.md +1 -1
  25. package/plugins/lisa/.codex-plugin/skills/lisa-jira-build-intake/SKILL.md +5 -0
  26. package/plugins/lisa/.codex-plugin/skills/lisa-jira-create/SKILL.md +2 -0
  27. package/plugins/lisa/.codex-plugin/skills/lisa-jira-write-ticket/SKILL.md +12 -2
  28. package/plugins/lisa/.codex-plugin/skills/lisa-learnings-audit/SKILL.md +6 -1
  29. package/plugins/lisa/.codex-plugin/skills/lisa-linear-access/SKILL.md +34 -0
  30. package/plugins/lisa/.codex-plugin/skills/lisa-linear-build-intake/SKILL.md +5 -0
  31. package/plugins/lisa/.codex-plugin/skills/lisa-linear-create/SKILL.md +3 -1
  32. package/plugins/lisa/.codex-plugin/skills/lisa-linear-to-tracker/SKILL.md +2 -1
  33. package/plugins/lisa/.codex-plugin/skills/lisa-linear-write-issue/SKILL.md +13 -4
  34. package/plugins/lisa/.codex-plugin/skills/lisa-notion-to-tracker/SKILL.md +2 -1
  35. package/plugins/lisa/.codex-plugin/skills/lisa-persist-learning/SKILL.md +1 -1
  36. package/plugins/lisa/.codex-plugin/skills/lisa-prd-source-write/SKILL.md +4 -2
  37. package/plugins/lisa/.codex-plugin/skills/lisa-qa-fail/SKILL.md +3 -1
  38. package/plugins/lisa/.codex-plugin/skills/lisa-repair-intake/SKILL.md +28 -0
  39. package/plugins/lisa/.codex-plugin/skills/lisa-rework-triage/SKILL.md +2 -2
  40. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-build-intake/SKILL.md +1 -0
  41. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-create/SKILL.md +1 -0
  42. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-write/SKILL.md +1 -0
  43. package/plugins/lisa/.codex-plugin/skills/lisa-validate-tracker-mapping/SKILL.md +33 -4
  44. package/plugins/lisa/.codex-plugin/skills/lisa-verify/SKILL.md +1 -1
  45. package/plugins/lisa/rules/eager/bdd-e2e-coverage.md +3 -1
  46. package/plugins/lisa/rules/eager/claim-time-guards.md +30 -0
  47. package/plugins/lisa/rules/eager/ready-role-filing.md +22 -0
  48. package/plugins/lisa/rules/reference/automation-runbook-contract.md +8 -1
  49. package/plugins/lisa/rules/reference/bdd-e2e-coverage.md +42 -6
  50. package/plugins/lisa/rules/reference/claim-time-guards.md +69 -0
  51. package/plugins/lisa/rules/reference/config-resolution.md +7 -0
  52. package/plugins/lisa/rules/reference/ready-role-filing.md +66 -0
  53. package/plugins/lisa/scripts/queue-contract-resolution.mjs +50 -1
  54. package/plugins/lisa/skills/lisa-agent-ready/SKILL.md +5 -3
  55. package/plugins/lisa/skills/lisa-confluence-to-tracker/SKILL.md +2 -1
  56. package/plugins/lisa/skills/lisa-debrief-apply/SKILL.md +2 -2
  57. package/plugins/lisa/skills/lisa-exploratory-qa/SKILL.md +7 -1
  58. package/plugins/lisa/skills/lisa-github-build-intake/SKILL.md +5 -0
  59. package/plugins/lisa/skills/lisa-github-create/SKILL.md +3 -1
  60. package/plugins/lisa/skills/lisa-github-to-tracker/SKILL.md +2 -1
  61. package/plugins/lisa/skills/lisa-github-validate-issue/SKILL.md +7 -3
  62. package/plugins/lisa/skills/lisa-github-write-issue/SKILL.md +16 -6
  63. package/plugins/lisa/skills/lisa-improve-harness/SKILL.md +1 -1
  64. package/plugins/lisa/skills/lisa-jira-build-intake/SKILL.md +5 -0
  65. package/plugins/lisa/skills/lisa-jira-create/SKILL.md +2 -0
  66. package/plugins/lisa/skills/lisa-jira-write-ticket/SKILL.md +12 -2
  67. package/plugins/lisa/skills/lisa-learnings-audit/SKILL.md +6 -1
  68. package/plugins/lisa/skills/lisa-linear-access/SKILL.md +34 -0
  69. package/plugins/lisa/skills/lisa-linear-build-intake/SKILL.md +5 -0
  70. package/plugins/lisa/skills/lisa-linear-create/SKILL.md +3 -1
  71. package/plugins/lisa/skills/lisa-linear-to-tracker/SKILL.md +2 -1
  72. package/plugins/lisa/skills/lisa-linear-write-issue/SKILL.md +13 -4
  73. package/plugins/lisa/skills/lisa-notion-to-tracker/SKILL.md +2 -1
  74. package/plugins/lisa/skills/lisa-persist-learning/SKILL.md +1 -1
  75. package/plugins/lisa/skills/lisa-prd-source-write/SKILL.md +4 -2
  76. package/plugins/lisa/skills/lisa-qa-fail/SKILL.md +3 -1
  77. package/plugins/lisa/skills/lisa-repair-intake/SKILL.md +28 -0
  78. package/plugins/lisa/skills/lisa-rework-triage/SKILL.md +2 -2
  79. package/plugins/lisa/skills/lisa-tracker-build-intake/SKILL.md +1 -0
  80. package/plugins/lisa/skills/lisa-tracker-create/SKILL.md +1 -0
  81. package/plugins/lisa/skills/lisa-tracker-write/SKILL.md +1 -0
  82. package/plugins/lisa/skills/lisa-validate-tracker-mapping/SKILL.md +33 -4
  83. package/plugins/lisa/skills/lisa-verify/SKILL.md +1 -1
  84. package/plugins/lisa-agy/plugin.json +1 -1
  85. package/plugins/lisa-agy/scripts/queue-contract-resolution.mjs +50 -1
  86. package/plugins/lisa-agy/skills/lisa-agent-ready/SKILL.md +5 -3
  87. package/plugins/lisa-agy/skills/lisa-confluence-to-tracker/SKILL.md +2 -1
  88. package/plugins/lisa-agy/skills/lisa-debrief-apply/SKILL.md +2 -2
  89. package/plugins/lisa-agy/skills/lisa-exploratory-qa/SKILL.md +7 -1
  90. package/plugins/lisa-agy/skills/lisa-github-build-intake/SKILL.md +5 -0
  91. package/plugins/lisa-agy/skills/lisa-github-create/SKILL.md +3 -1
  92. package/plugins/lisa-agy/skills/lisa-github-to-tracker/SKILL.md +2 -1
  93. package/plugins/lisa-agy/skills/lisa-github-validate-issue/SKILL.md +7 -3
  94. package/plugins/lisa-agy/skills/lisa-github-write-issue/SKILL.md +16 -6
  95. package/plugins/lisa-agy/skills/lisa-improve-harness/SKILL.md +1 -1
  96. package/plugins/lisa-agy/skills/lisa-jira-build-intake/SKILL.md +5 -0
  97. package/plugins/lisa-agy/skills/lisa-jira-create/SKILL.md +2 -0
  98. package/plugins/lisa-agy/skills/lisa-jira-write-ticket/SKILL.md +12 -2
  99. package/plugins/lisa-agy/skills/lisa-learnings-audit/SKILL.md +6 -1
  100. package/plugins/lisa-agy/skills/lisa-linear-access/SKILL.md +34 -0
  101. package/plugins/lisa-agy/skills/lisa-linear-build-intake/SKILL.md +5 -0
  102. package/plugins/lisa-agy/skills/lisa-linear-create/SKILL.md +3 -1
  103. package/plugins/lisa-agy/skills/lisa-linear-to-tracker/SKILL.md +2 -1
  104. package/plugins/lisa-agy/skills/lisa-linear-write-issue/SKILL.md +13 -4
  105. package/plugins/lisa-agy/skills/lisa-notion-to-tracker/SKILL.md +2 -1
  106. package/plugins/lisa-agy/skills/lisa-persist-learning/SKILL.md +1 -1
  107. package/plugins/lisa-agy/skills/lisa-prd-source-write/SKILL.md +4 -2
  108. package/plugins/lisa-agy/skills/lisa-qa-fail/SKILL.md +3 -1
  109. package/plugins/lisa-agy/skills/lisa-repair-intake/SKILL.md +28 -0
  110. package/plugins/lisa-agy/skills/lisa-rework-triage/SKILL.md +2 -2
  111. package/plugins/lisa-agy/skills/lisa-tracker-build-intake/SKILL.md +1 -0
  112. package/plugins/lisa-agy/skills/lisa-tracker-create/SKILL.md +1 -0
  113. package/plugins/lisa-agy/skills/lisa-tracker-write/SKILL.md +1 -0
  114. package/plugins/lisa-agy/skills/lisa-validate-tracker-mapping/SKILL.md +33 -4
  115. package/plugins/lisa-agy/skills/lisa-verify/SKILL.md +1 -1
  116. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  117. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  118. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  119. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  120. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  121. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  122. package/plugins/lisa-copilot/rules/eager/bdd-e2e-coverage.md +3 -1
  123. package/plugins/lisa-copilot/rules/eager/claim-time-guards.md +30 -0
  124. package/plugins/lisa-copilot/rules/eager/ready-role-filing.md +22 -0
  125. package/plugins/lisa-copilot/rules/reference/automation-runbook-contract.md +8 -1
  126. package/plugins/lisa-copilot/rules/reference/bdd-e2e-coverage.md +42 -6
  127. package/plugins/lisa-copilot/rules/reference/claim-time-guards.md +69 -0
  128. package/plugins/lisa-copilot/rules/reference/config-resolution.md +7 -0
  129. package/plugins/lisa-copilot/rules/reference/ready-role-filing.md +66 -0
  130. package/plugins/lisa-copilot/scripts/queue-contract-resolution.mjs +50 -1
  131. package/plugins/lisa-copilot/skills/lisa-agent-ready/SKILL.md +5 -3
  132. package/plugins/lisa-copilot/skills/lisa-confluence-to-tracker/SKILL.md +2 -1
  133. package/plugins/lisa-copilot/skills/lisa-debrief-apply/SKILL.md +2 -2
  134. package/plugins/lisa-copilot/skills/lisa-exploratory-qa/SKILL.md +7 -1
  135. package/plugins/lisa-copilot/skills/lisa-github-build-intake/SKILL.md +5 -0
  136. package/plugins/lisa-copilot/skills/lisa-github-create/SKILL.md +3 -1
  137. package/plugins/lisa-copilot/skills/lisa-github-to-tracker/SKILL.md +2 -1
  138. package/plugins/lisa-copilot/skills/lisa-github-validate-issue/SKILL.md +7 -3
  139. package/plugins/lisa-copilot/skills/lisa-github-write-issue/SKILL.md +16 -6
  140. package/plugins/lisa-copilot/skills/lisa-improve-harness/SKILL.md +1 -1
  141. package/plugins/lisa-copilot/skills/lisa-jira-build-intake/SKILL.md +5 -0
  142. package/plugins/lisa-copilot/skills/lisa-jira-create/SKILL.md +2 -0
  143. package/plugins/lisa-copilot/skills/lisa-jira-write-ticket/SKILL.md +12 -2
  144. package/plugins/lisa-copilot/skills/lisa-learnings-audit/SKILL.md +6 -1
  145. package/plugins/lisa-copilot/skills/lisa-linear-access/SKILL.md +34 -0
  146. package/plugins/lisa-copilot/skills/lisa-linear-build-intake/SKILL.md +5 -0
  147. package/plugins/lisa-copilot/skills/lisa-linear-create/SKILL.md +3 -1
  148. package/plugins/lisa-copilot/skills/lisa-linear-to-tracker/SKILL.md +2 -1
  149. package/plugins/lisa-copilot/skills/lisa-linear-write-issue/SKILL.md +13 -4
  150. package/plugins/lisa-copilot/skills/lisa-notion-to-tracker/SKILL.md +2 -1
  151. package/plugins/lisa-copilot/skills/lisa-persist-learning/SKILL.md +1 -1
  152. package/plugins/lisa-copilot/skills/lisa-prd-source-write/SKILL.md +4 -2
  153. package/plugins/lisa-copilot/skills/lisa-qa-fail/SKILL.md +3 -1
  154. package/plugins/lisa-copilot/skills/lisa-repair-intake/SKILL.md +28 -0
  155. package/plugins/lisa-copilot/skills/lisa-rework-triage/SKILL.md +2 -2
  156. package/plugins/lisa-copilot/skills/lisa-tracker-build-intake/SKILL.md +1 -0
  157. package/plugins/lisa-copilot/skills/lisa-tracker-create/SKILL.md +1 -0
  158. package/plugins/lisa-copilot/skills/lisa-tracker-write/SKILL.md +1 -0
  159. package/plugins/lisa-copilot/skills/lisa-validate-tracker-mapping/SKILL.md +33 -4
  160. package/plugins/lisa-copilot/skills/lisa-verify/SKILL.md +1 -1
  161. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  162. package/plugins/lisa-cursor/rules/automation-runbook-contract-reference.mdc +8 -1
  163. package/plugins/lisa-cursor/rules/bdd-e2e-coverage-reference.mdc +42 -6
  164. package/plugins/lisa-cursor/rules/bdd-e2e-coverage.mdc +3 -1
  165. package/plugins/lisa-cursor/rules/claim-time-guards-reference.mdc +74 -0
  166. package/plugins/lisa-cursor/rules/claim-time-guards.mdc +35 -0
  167. package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +7 -0
  168. package/plugins/lisa-cursor/rules/ready-role-filing-reference.mdc +71 -0
  169. package/plugins/lisa-cursor/rules/ready-role-filing.mdc +27 -0
  170. package/plugins/lisa-cursor/scripts/queue-contract-resolution.mjs +50 -1
  171. package/plugins/lisa-cursor/skills/lisa-agent-ready/SKILL.md +5 -3
  172. package/plugins/lisa-cursor/skills/lisa-confluence-to-tracker/SKILL.md +2 -1
  173. package/plugins/lisa-cursor/skills/lisa-debrief-apply/SKILL.md +2 -2
  174. package/plugins/lisa-cursor/skills/lisa-exploratory-qa/SKILL.md +7 -1
  175. package/plugins/lisa-cursor/skills/lisa-github-build-intake/SKILL.md +5 -0
  176. package/plugins/lisa-cursor/skills/lisa-github-create/SKILL.md +3 -1
  177. package/plugins/lisa-cursor/skills/lisa-github-to-tracker/SKILL.md +2 -1
  178. package/plugins/lisa-cursor/skills/lisa-github-validate-issue/SKILL.md +7 -3
  179. package/plugins/lisa-cursor/skills/lisa-github-write-issue/SKILL.md +16 -6
  180. package/plugins/lisa-cursor/skills/lisa-improve-harness/SKILL.md +1 -1
  181. package/plugins/lisa-cursor/skills/lisa-jira-build-intake/SKILL.md +5 -0
  182. package/plugins/lisa-cursor/skills/lisa-jira-create/SKILL.md +2 -0
  183. package/plugins/lisa-cursor/skills/lisa-jira-write-ticket/SKILL.md +12 -2
  184. package/plugins/lisa-cursor/skills/lisa-learnings-audit/SKILL.md +6 -1
  185. package/plugins/lisa-cursor/skills/lisa-linear-access/SKILL.md +34 -0
  186. package/plugins/lisa-cursor/skills/lisa-linear-build-intake/SKILL.md +5 -0
  187. package/plugins/lisa-cursor/skills/lisa-linear-create/SKILL.md +3 -1
  188. package/plugins/lisa-cursor/skills/lisa-linear-to-tracker/SKILL.md +2 -1
  189. package/plugins/lisa-cursor/skills/lisa-linear-write-issue/SKILL.md +13 -4
  190. package/plugins/lisa-cursor/skills/lisa-notion-to-tracker/SKILL.md +2 -1
  191. package/plugins/lisa-cursor/skills/lisa-persist-learning/SKILL.md +1 -1
  192. package/plugins/lisa-cursor/skills/lisa-prd-source-write/SKILL.md +4 -2
  193. package/plugins/lisa-cursor/skills/lisa-qa-fail/SKILL.md +3 -1
  194. package/plugins/lisa-cursor/skills/lisa-repair-intake/SKILL.md +28 -0
  195. package/plugins/lisa-cursor/skills/lisa-rework-triage/SKILL.md +2 -2
  196. package/plugins/lisa-cursor/skills/lisa-tracker-build-intake/SKILL.md +1 -0
  197. package/plugins/lisa-cursor/skills/lisa-tracker-create/SKILL.md +1 -0
  198. package/plugins/lisa-cursor/skills/lisa-tracker-write/SKILL.md +1 -0
  199. package/plugins/lisa-cursor/skills/lisa-validate-tracker-mapping/SKILL.md +33 -4
  200. package/plugins/lisa-cursor/skills/lisa-verify/SKILL.md +1 -1
  201. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  202. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  203. package/plugins/lisa-expo-agy/plugin.json +1 -1
  204. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  205. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  206. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  207. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  208. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  209. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  210. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  211. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  212. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  213. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  214. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  215. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  216. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  217. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  218. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  219. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  220. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  221. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  222. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  223. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  224. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  225. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  226. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  227. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  228. package/plugins/lisa-rails-agy/plugin.json +1 -1
  229. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  230. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  231. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  232. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  233. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  234. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  235. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  236. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  237. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  238. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  239. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  240. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  241. package/plugins/src/base/rules/eager/bdd-e2e-coverage.md +3 -1
  242. package/plugins/src/base/rules/eager/claim-time-guards.md +30 -0
  243. package/plugins/src/base/rules/eager/ready-role-filing.md +22 -0
  244. package/plugins/src/base/rules/reference/automation-runbook-contract.md +8 -1
  245. package/plugins/src/base/rules/reference/bdd-e2e-coverage.md +42 -6
  246. package/plugins/src/base/rules/reference/claim-time-guards.md +69 -0
  247. package/plugins/src/base/rules/reference/config-resolution.md +7 -0
  248. package/plugins/src/base/rules/reference/ready-role-filing.md +66 -0
  249. package/plugins/src/base/scripts/queue-contract-resolution.mjs +50 -1
  250. package/plugins/src/base/skills/lisa-agent-ready/SKILL.md +5 -3
  251. package/plugins/src/base/skills/lisa-confluence-to-tracker/SKILL.md +2 -1
  252. package/plugins/src/base/skills/lisa-debrief-apply/SKILL.md +2 -2
  253. package/plugins/src/base/skills/lisa-exploratory-qa/SKILL.md +7 -1
  254. package/plugins/src/base/skills/lisa-github-build-intake/SKILL.md +5 -0
  255. package/plugins/src/base/skills/lisa-github-create/SKILL.md +3 -1
  256. package/plugins/src/base/skills/lisa-github-to-tracker/SKILL.md +2 -1
  257. package/plugins/src/base/skills/lisa-github-validate-issue/SKILL.md +7 -3
  258. package/plugins/src/base/skills/lisa-github-write-issue/SKILL.md +16 -6
  259. package/plugins/src/base/skills/lisa-improve-harness/SKILL.md +1 -1
  260. package/plugins/src/base/skills/lisa-jira-build-intake/SKILL.md +5 -0
  261. package/plugins/src/base/skills/lisa-jira-create/SKILL.md +2 -0
  262. package/plugins/src/base/skills/lisa-jira-write-ticket/SKILL.md +12 -2
  263. package/plugins/src/base/skills/lisa-learnings-audit/SKILL.md +6 -1
  264. package/plugins/src/base/skills/lisa-linear-access/SKILL.md +34 -0
  265. package/plugins/src/base/skills/lisa-linear-build-intake/SKILL.md +5 -0
  266. package/plugins/src/base/skills/lisa-linear-create/SKILL.md +3 -1
  267. package/plugins/src/base/skills/lisa-linear-to-tracker/SKILL.md +2 -1
  268. package/plugins/src/base/skills/lisa-linear-write-issue/SKILL.md +13 -4
  269. package/plugins/src/base/skills/lisa-notion-to-tracker/SKILL.md +2 -1
  270. package/plugins/src/base/skills/lisa-persist-learning/SKILL.md +1 -1
  271. package/plugins/src/base/skills/lisa-prd-source-write/SKILL.md +4 -2
  272. package/plugins/src/base/skills/lisa-qa-fail/SKILL.md +3 -1
  273. package/plugins/src/base/skills/lisa-repair-intake/SKILL.md +28 -0
  274. package/plugins/src/base/skills/lisa-rework-triage/SKILL.md +2 -2
  275. package/plugins/src/base/skills/lisa-tracker-build-intake/SKILL.md +1 -0
  276. package/plugins/src/base/skills/lisa-tracker-create/SKILL.md +1 -0
  277. package/plugins/src/base/skills/lisa-tracker-write/SKILL.md +1 -0
  278. package/plugins/src/base/skills/lisa-validate-tracker-mapping/SKILL.md +33 -4
  279. package/plugins/src/base/skills/lisa-verify/SKILL.md +1 -1
  280. package/typescript/copy-overwrite/scripts/check-nightly-e2e-health.mjs +76 -10
@@ -48,8 +48,10 @@ ideation_ledger_payload: # optional; forwarded unchanged to the ven
48
48
  - **`ready`** → the PRD is created in the source's `ready` PRD role (`prd-ready`), so the PRD-side of
49
49
  `lisa-intake` / the `*-prd-intake` scanner auto-claims it on the next cycle.
50
50
 
51
- There is no "omitted = legacy behavior" mode (unlike the ticket-side `build_ready`): there was no
52
- prior PRD-source-write behavior to preserve, so omitted means `draft`.
51
+ Omitted means `draft` the not-ready default. This matches the ticket-side `build_ready` contract
52
+ in `ready-role-filing`: on both sides of the pipeline, entering a queue is an **explicit claim** and
53
+ omission is the safe direction. (The ticket side reached that position by removing a per-vendor
54
+ legacy default; the PRD side never had one to remove.)
53
55
 
54
56
  ## Workflow
55
57
 
@@ -20,7 +20,9 @@ plus any screenshots).
20
20
  recently-closed tickets in the affected area, and the current QA-queue set. If an existing ticket
21
21
  covers it, that ticket is the target — update it, never file a twin. Only when the
22
22
  search documents no match, create a new Bug via `lisa-tracker-write` (which enforces
23
- the full quality gates) and treat it as the target. Report which path was taken.
23
+ the full quality gates) with explicit `build_ready: true` per the `ready-role-filing`
24
+ rule — omitted is NOT build-ready on any tracker, and a rework Bug nothing claims is
25
+ an incomplete handoff — and treat it as the target. Report which path was taken.
24
26
 
25
27
  ## Phase 2 — Structured failure report
26
28
 
@@ -752,6 +752,34 @@ with labels like `build-ready`, or with no Lisa status label at all, that are in
752
752
  applied. Include the normalization result in the loop-prevention fingerprint so repeated repair
753
753
  cycles do not spam comments.
754
754
 
755
+ ### Ungated non-ready filing → surface as an incomplete handoff (read-only)
756
+
757
+ The recovery net for the failure `ready-role-filing` prevents: an agent files a real defect it found
758
+ during other work, never gives it the ready role, and the ticket sits forever because build-intake
759
+ scans the ready lane and nothing else. Under that rule every filing declares either
760
+ `build_ready: true` or a `human_gate` reason; an item carrying neither is an **incomplete handoff**.
761
+
762
+ 1. Enumerate open items filed recently (within the configured staleness window — same resolution as
763
+ every other candidate class) that are **not** in the configured `ready` role for their lifecycle
764
+ and are not in a claimed / blocked / terminal role either. On GitHub that is the absence of the
765
+ configured build `ready` label; on JIRA and Linear it is a status/state outside the configured
766
+ `ready` role. Items whose role is simply "the tracker's default created lane" are the target.
767
+ 2. Exclude anything carrying the `[lisa-human-gate]` marker — those are deliberate holds and the rule
768
+ ratifies them. Exclude containers (their state rolls up per `leaf-only-lifecycle`), and exclude
769
+ `[lisa-exploratory-qa]`-marked findings, which are the rule's **named** human-gate exception even
770
+ on an older item written before the marker existed.
771
+ 3. **Report each survivor read-only; never promote it.** Name the item, when it was filed, and what
772
+ filed it, and state the two ways to resolve it — flip it to the configured `ready` role, or mark
773
+ it as a deliberate human gate. A filing whose readiness nobody declared is exactly the input the
774
+ gate model says a human should see, so guessing "it was probably meant to be ready" would
775
+ re-introduce the accidental-queue-entry failure this rule exists to eliminate.
776
+ 4. Post at most one idempotent `[lisa-repair-intake]` note per item and include the finding in the
777
+ loop-prevention fingerprint so repeated cycles do not spam.
778
+
779
+ This is distinct from the GitHub label-normalization repair above, which targets items carrying **no
780
+ Lisa lifecycle label at all** (created by older tools or by hand) and does normalize them. This sweep
781
+ targets items inside the Lisa lifecycle whose readiness was never declared.
782
+
755
783
  ## Blocker classification & clearing (conservative, vendor-specific extraction)
756
784
 
757
785
  A `blocked` build item is held by one or more of three blocker classes. Identify which are present
@@ -96,8 +96,8 @@ Lisa work item.
96
96
  |---------------|-------------|--------|
97
97
  | `decomposition-infidelity` | **Upstream Lisa issue** | The decomposition pipeline produced an unfaithful ticket and every gate passed it — that is a harness defect. File per "Filing upstream" below, citing the PRD text, the distorted ticket AC, and which gate should have caught it. |
98
98
  | `verification-gap` | **Upstream Lisa issue** | The verification lifecycle passed work it should have failed. File per "Filing upstream", citing the missed failure class and the weak/missing codified test. |
99
- | `missing-tool-access` | Project tracker | Create a provisioning ticket via `lisa-tracker-write` (`issue_type: Task`, labeled `type:tooling`) describing the missing tool/credential/environment and which flow needs it. Link it `blocks` the rework ticket. |
100
- | `environment-data` | Project tracker | Create an environment-hardening ticket via `lisa-tracker-write` citing the drift/fixture/shared-state evidence. Link `relates to` the rework ticket. |
99
+ | `missing-tool-access` | Project tracker | Create a provisioning ticket via `lisa-tracker-write` (`issue_type: Task`, labeled `type:tooling`) describing the missing tool/credential/environment and which flow needs it. Link it `blocks` the rework ticket. Pass `human_gate: "a human must grant the missing access"` per `ready-role-filing` — the factory cannot provision its own credentials, so this is a declared gate rather than an unclaimed filing. |
100
+ | `environment-data` | Project tracker | Create an environment-hardening ticket via `lisa-tracker-write` citing the drift/fixture/shared-state evidence. Link `relates to` the rework ticket. Pass `build_ready: true` when the hardening is a code/fixture change the factory can make, or `human_gate: "<the shared-environment decision a human owns>"` when it is not — per `ready-role-filing`, never neither. |
101
101
  | `prd-defect` | Source PRD | Comment on the PRD (via the `lisa-prd-backlink` lineage) quoting the defective requirement and the QA failure; flag for product review. Do NOT silently edit the PRD — spec changes are a human gate. |
102
102
  | `implementation-defect` (no secondary) | None | Normal fix path; the classification comment is the record. Pass the pattern to the `learner` phase — repeated implementation defects of the same shape escalate to `verification-gap`. |
103
103
 
@@ -83,4 +83,5 @@ If the canonical fix is merged but not yet on the production branch, the close c
83
83
  - **Leaf-only dispatch, every vendor.** Per the `leaf-only-lifecycle` rule, each vendor scanner dispatches leaf work units only and moves or safe-blocks a container (open child work, or a childless Epic) carrying a stale build-ready role according to its lifecycle semantics. This shim does not re-implement the gate — it relies on the vendor scanner's Phase 3a — but the contract is uniform across `jira`, `github`, and `linear` so behavior never drifts by tracker.
84
84
  - **Terminal native closure, every capable vendor.** Per the same rule, each vendor scanner finalizes native open/closed state only at the true terminal `done` value. This shim never performs native closure itself, but callers can rely on the dispatched vendor scanner to apply the contract.
85
85
  - **Duplicate already fixed, every vendor.** Auto-close without a PR is allowed only for `DUPLICATE_ALREADY_FIXED` with canonical reference and empirical base-branch evidence. Do not conflate this with `BLOCKED`.
86
+ - **Claim-time guards, every vendor.** Per the `claim-time-guards` rule, each vendor scanner runs both guards inside its Phase 3b before the claim transition: an item whose own key already appears in git history or an open/merged PR routes to **verify-and-close** rather than being built twice, and the **`two-failed-attempts`** valve moves an item with two `[lisa-build-attempt]` markers to the configured blocked role and stops the cycle. This shim does not re-implement either guard; it forwards the contract so behavior never drifts by tracker.
86
87
  - Never run two intake cycles concurrently against overlapping queues — the scheduling layer is responsible for serialization.
@@ -24,4 +24,5 @@ See the `config-resolution` rule for configuration and dispatch table.
24
24
  ## Rules
25
25
 
26
26
  - All vendor skills delegate every individual ticket write through `lisa-tracker-write`. They never call vendor-specific write tools directly.
27
+ - **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-tracker-write` rejects it.
27
28
  - This shim is for ad-hoc creation from code files / descriptions. PRD-driven creation goes through the `*-to-tracker` skills (notion / confluence / linear / github).
@@ -52,3 +52,4 @@ See the `config-resolution` rule for the full configuration schema and skill-map
52
52
  - Never accept a tracker value outside `{jira, github, linear}`.
53
53
  - Never mutate `$ARGUMENTS` between layers. The vendor skills define their own input contract.
54
54
  - Never inline gate logic here. All validation rules live in the vendor skills (`lisa-jira-validate-ticket` / `lisa-github-validate-issue` / `lisa-linear-validate-issue`); this skill only routes.
55
+ - **Readiness is the caller's explicit claim, not this shim's default.** Per the `ready-role-filing` rule, an omitted `build_ready` is **not build-ready** on every vendor, so a caller filing work it expects build-intake to pick up must pass `build_ready: true`, and a caller deliberately holding work outside the queue must pass a `human_gate` reason. This shim normalizes nothing — it forwards `$ARGUMENTS` verbatim and the vendor writers enforce the contract — which is exactly why the caller cannot rely on a vendor default here.
@@ -71,7 +71,8 @@ Resolve the **effective** role → name mapping using the same defaults `/lisa:i
71
71
  - **Missing / empty tracker**: report `UNRESOLVABLE` with setup guidance (`/lisa:setup:jira`, `/lisa:setup:github`, or `/lisa:setup:linear`). Do not default to JIRA.
72
72
  - **JIRA build workflow** (`jira.workflow`): `ready`, `claimed`, optional `review`, `blocked`, and each `done.<env>` (`dev` / `staging` / `production`). Defaults: `Ready`, `In Progress`, `Code Review`, `Blocked`, `{dev: "On Dev", staging: "On Stg", production: "Done"}`.
73
73
  - **GitHub build/prd labels** (`github.labels.build`, `github.labels.prd`): each configured label string.
74
- - **Linear build/prd labels** (`linear.labels.build`, `linear.labels.prd`): each configured label/state string.
74
+ - **Linear build workflow** (`linear.workflow`): `ready`, `claimed`, `review`, `blocked`, and each `done.<env>` — native workflow **states**, the Linear analogue of `jira.workflow`, not of `github.labels`. Defaults: `Ready`, `In Progress`, `In Review`, `Blocked`, `{dev: "On Dev", staging: "On Stg", production: "Done"}`.
75
+ - **Linear labels** (`linear.labels`): the `prd.*` map plus the one surviving build-lane key, the `human_needed` marker (`linear.labels.build.human_needed`). A config that predates the state model may still carry `ready` / `claimed` / `blocked` / `done` under `linear.labels.build`; those are **inert** — nothing reads them. Do not audit them against the live label set, and do not report them as drift. Report them once as a migration note pointing at `/lisa:setup:linear`, which removes them.
75
76
  - **Notion PRD values** (`notion.values`): each configured select-option value, validated against the `notion.statusProperty` property's options.
76
77
  - **Confluence PRD parents** (`confluence.parents`): each configured parent page id, validated by existence.
77
78
 
@@ -103,7 +104,9 @@ gh label list --repo "$REPO" --limit 200 --json name -q '.[].name'
103
104
 
104
105
  ### Linear / Notion / Confluence
105
106
 
106
- Enumerate via the corresponding access surface (Linear MCP workflow states + labels; Notion data-source select options for `notion.statusProperty`; Confluence page-exists check per parent id). Same compare-exact-case contract as JIRA.
107
+ Enumerate via the corresponding access surface (`lisa-linear-access` workflow states + labels; Notion data-source select options for `notion.statusProperty`; Confluence page-exists check per parent id). Same compare-exact-case contract as JIRA.
108
+
109
+ For Linear, `lisa-linear-access operation: list-workflow-states` returns each state's `name`, `type`, `position` and `isTeamDefault` (the access layer sets it from the team's `defaultIssueState`). **Keep `isTeamDefault`** — Step 4 needs it, and it is the only authoritative answer to "which state does this team create Issues into". Do not approximate it with a name guess: `Todo` is merely the stock name, and a team that renamed its `defaultIssueState` is exactly the case a name guess misses.
107
110
 
108
111
  ## Step 4 — Compare (exact case)
109
112
 
@@ -113,10 +116,14 @@ For each `(role, configured-name)` pair, classify against the live name set:
113
116
  - **CASE_DRIFT** — a case-insensitive match exists but no exact-case match (e.g. config `"On Stg"` vs live `"ON STG"`). Canonical = the live exact name.
114
117
  - **MISSING** — no case-insensitive match exists. The name was renamed beyond recognition or deleted.
115
118
 
119
+ One role carries a further check that name-existence cannot express:
120
+
121
+ - **INVERTED** — Linear only, `ready` only: the configured state exists, but it is the team's **default created state** (`isTeamDefault`). This is worse than a name that does not resolve. The name resolves perfectly, so every existence check passes while the gate runs backwards: `ready` is supposed to mean "a human moved this Issue here", and the team's default means "nobody has touched this". Build-intake claims from that lane, so an INVERTED mapping dispatches work no human ever approved. Measured on the first team it hit: 20 Issues in the claimable lane, 12 never marked ready — including decision tickets shaped like leaves, which the leaf-only gate cannot catch either. Report it even when every other role is VALID.
122
+
116
123
  A project's verdict:
117
124
 
118
125
  - **VALID** — every role is VALID.
119
- - **DRIFTED** — at least one CASE_DRIFT or MISSING role, none of which is UNRESOLVABLE.
126
+ - **DRIFTED** — at least one CASE_DRIFT, MISSING, or INVERTED role, none of which is UNRESOLVABLE. An INVERTED `ready` is never VALID, no matter how cleanly it resolves.
120
127
  - **UNRESOLVABLE** — the live set couldn't be enumerated (auth mismatch, missing tracker config, access failure). Distinguish this loudly from VALID — an unresolved audit is not a passing audit.
121
128
 
122
129
  ## Step 5 — Report
@@ -134,7 +141,17 @@ Per project, print a terminal-first section:
134
141
  done.production Done Done VALID
135
142
  ```
136
143
 
137
- End with a roll-up: counts of VALID / DRIFTED / UNRESOLVABLE projects and the exact next command (`… repair=true` when drift is auto-repairable; an admin note when a status is genuinely MISSING).
144
+ An INVERTED `ready` gets a full line rather than a one-word status, because the operator reading it is not necessarily an engineer and the word alone does not convey the stakes:
145
+
146
+ ```
147
+ ready Todo Todo INVERTED
148
+ "Todo" is the state this Linear team puts every NEW issue into, so the
149
+ build queue is currently claiming issues nobody marked ready. Pick or
150
+ create a state a person moves an issue into (Lisa's default is "Ready")
151
+ via /lisa:setup:linear, then set linear.workflow.ready to it.
152
+ ```
153
+
154
+ End with a roll-up: counts of VALID / DRIFTED / UNRESOLVABLE projects and the exact next command (`… repair=true` when drift is auto-repairable; an admin note when a status is genuinely MISSING; `/lisa:setup:linear` when a `ready` is INVERTED).
138
155
 
139
156
  ## Step 6 — Repair (only when `repair=true`)
140
157
 
@@ -166,6 +183,18 @@ Compute the closest live candidates (case-insensitive token/substring overlap, t
166
183
 
167
184
  Only write on an explicit pick. Never auto-select. If the user leaves it unchanged, keep the project `DRIFTED` and surface the admin remediation (add the status back, or fix it in the tracker).
168
185
 
186
+ ### INVERTED — never auto-repair
187
+
188
+ **Never auto-repair an INVERTED `ready`, even with `repair=true`.** Every other classification has one correct answer that the live tracker already knows: CASE_DRIFT has the canonical casing, MISSING has a shortlist of near-matches. INVERTED has neither. The configured name is live and correctly cased; what is wrong is which lane the project chose to mean "build-ready", and nothing in the config or the tracker records what the human intended instead. Guessing would silently repoint the queue at a lane that may hold nothing, or worse, at another lane the team fills automatically — swapping one wrong answer for a quieter one.
189
+
190
+ The team may also genuinely not have a dedicated ready lane yet, in which case the repair is to **create a state**, not to rewrite a string — `/lisa:validate-tracker-mapping` audits config, it does not mutate the tracker.
191
+
192
+ So: present the team's non-default states via `AskUserQuestion`, and write `linear.workflow.ready` only on an explicit pick. If none fits, or the user declines, leave the config untouched, keep the project `DRIFTED`, and hand off:
193
+
194
+ > Linear has no dedicated build-ready state on this team. Run `/lisa:setup:linear` — it offers to create `Ready` and records the mapping.
195
+
196
+ Until then, say plainly that the build queue is claiming unapproved work and that pausing build intake is the safe interim.
197
+
169
198
  ### Invalidate the verification cache
170
199
 
171
200
  After any JIRA repair, clear the `setup-jira` reachability cache so it re-verifies the new mapping:
@@ -35,7 +35,7 @@ Treat the first successful lead-spawn request (or, on the Codex fallback, the fi
35
35
 
36
36
  Execute the **Verify** flow as defined in the `intent-routing` rule (loaded via the lisa plugin). The flow includes:
37
37
 
38
- 1. **Pre-flight: codification gate** — confirm that every passing local empirical verification on this branch was codified as a regression test (the Implement flow's codify step). If any verification has no committed test and no allowed skip reason (PR / Documentation / Deploy / Investigate-Only), invoke `codify-verification` now and amend the PR before shipping. For frontend work the gate additionally enforces the `bdd-e2e-coverage` rule: the shipped behavior exists as a Gherkin scenario with a stable ID, every required scenario-platform obligation has aligned automation in the project's configured runner for that platform or a dated waiver, and the project's coverage gate passes with the matrix regenerated. A missing runner is never a bare recorded absence — it needs a dated `platformWaivers` entry (per the rule) and, where the runner could reasonably be added, a linked build-ready follow-up ticket referenced from it; never a silent skip. Missing BDD coverage is a verification failure that blocks the ship, not a warning. A change cannot ship until its verifications are guarded. For work that adds or changes persistent state the gate additionally enforces the `reset-seed-coverage` rule: every entity the work introduces or changes is classified in the project's state contract, anything `fixture-owned` has an ownership predicate and a sweep, and the state-classification check passes — an unclassified entity fails closed and blocks the ship exactly as missing BDD coverage does.
38
+ 1. **Pre-flight: codification gate** — confirm that every passing local empirical verification on this branch was codified as a regression test (the Implement flow's codify step). If any verification has no committed test and no allowed skip reason (PR / Documentation / Deploy / Investigate-Only), invoke `codify-verification` now and amend the PR before shipping. For frontend work the gate additionally enforces the `bdd-e2e-coverage` rule: the shipped behavior exists as a Gherkin scenario with a stable ID, every required scenario-platform obligation has aligned automation in the project's configured runner for that platform or a dated waiver, and the project's coverage gate passes with the matrix regenerated. A missing runner is never a bare recorded absence — it needs a dated `platformWaivers` entry (per the rule) and, where the runner could reasonably be added, a linked build-ready follow-up ticket referenced from it — filed through `lisa-tracker-write` with explicit `build_ready: true` per `ready-role-filing`, since an omitted flag is NOT build-ready on any tracker and the waiver would then point at work nothing claims; never a silent skip. Missing BDD coverage is a verification failure that blocks the ship, not a warning. A change cannot ship until its verifications are guarded. For work that adds or changes persistent state the gate additionally enforces the `reset-seed-coverage` rule: every entity the work introduces or changes is classified in the project's state contract, anything `fixture-owned` has an ownership predicate and a sweep, and the state-classification check passes — an unclassified entity fails closed and blocks the ship exactly as missing BDD coverage does.
39
39
  2. **Commit** any pending changes via `lisa-git-commit`
40
40
  3. **Push and PR** via `lisa-git-submit-pr`
41
41
  4. **PR Watch Loop** — drive the PR to MERGED via `lisa-drive-pr-to-merge`, the single source of truth for clearing every blocker: auto-merge with direct-merge fallback, `BEHIND` re-sync, conflict resolution, failing-check fixes, human + bot review-comment handling with thread resolution (it invokes `lisa-pull-request-review` itself), stale `CHANGES_REQUESTED` dismissal, and post-merge ancestry verification. Do not re-implement the loop or its terminal conditions.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.352.0",
3
+ "version": "3.0.0",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -32,6 +32,24 @@ const DEFAULT_LINEAR_BUILD_DONE = {
32
32
  production: "Done",
33
33
  };
34
34
 
35
+ // The state names a stock Linear team creates brand-new Issues into. `ready`
36
+ // must name a lane a human moves an Issue INTO, so it may never be one of
37
+ // these: the claimable lane would stop meaning "a human flipped this to
38
+ // build-ready" and start meaning "nobody has touched this", and build-intake
39
+ // would dispatch work nobody approved.
40
+ //
41
+ // This list is a STATIC backstop for the stock names, which is the case that
42
+ // actually bit us. It cannot see a team that renamed its default — only the
43
+ // live `Team.defaultIssueState` can, which is why `/lisa:validate-tracker-mapping`
44
+ // carries the authoritative arm (`INVERTED`) and this one carries the arm that
45
+ // needs no network and therefore always runs.
46
+ const LINEAR_STOCK_DEFAULT_CREATED_STATES = [
47
+ "todo",
48
+ "to do",
49
+ "backlog",
50
+ "triage",
51
+ ];
52
+
35
53
  const DEFAULT_GITHUB_LINEAR_PRD_ROLES = {
36
54
  draft: "prd-draft",
37
55
  ready: "prd-ready",
@@ -272,6 +290,35 @@ export function resolvePrdLifecycleRoles(
272
290
  }
273
291
  }
274
292
 
293
+ /**
294
+ * Reject a Linear `ready` override that names a state a stock team creates
295
+ * brand-new Issues into.
296
+ *
297
+ * Failing loudly is the safe direction. An operator staring at a hard error has
298
+ * a broken queue; an operator with a silently inverted gate has agents shipping
299
+ * work no human approved, which is the failure mode that produced this guard.
300
+ *
301
+ * @param {string} configured The resolved `linear.workflow.ready` name.
302
+ * @returns {string} The same name, once it is proven not to be a default lane.
303
+ * @throws {Error} When the name is a stock default created state.
304
+ */
305
+ function assertLinearReadyIsNotDefaultState(configured) {
306
+ const normalized = configured.trim().toLowerCase();
307
+
308
+ if (!LINEAR_STOCK_DEFAULT_CREATED_STATES.includes(normalized)) {
309
+ return configured;
310
+ }
311
+
312
+ throw new Error(
313
+ `linear.workflow.ready is set to "${configured.trim()}", which is where Linear puts a ` +
314
+ "brand-new Issue. That inverts the build-ready gate: the claimable lane would mean " +
315
+ '"nobody has touched this" instead of "a human marked this ready", so intake would ' +
316
+ "claim untouched backlog items. Point linear.workflow.ready at a dedicated state a " +
317
+ "human moves Issues into (the default is `Ready`), then re-run /lisa:setup:linear to " +
318
+ "create it if the team does not have one."
319
+ );
320
+ }
321
+
275
322
  /**
276
323
  * Resolve the build lifecycle roles for the configured tracker vendor.
277
324
  *
@@ -307,7 +354,9 @@ export function resolveBuildLifecycleRoles(
307
354
  vendor: "linear",
308
355
  kind: "workflow",
309
356
  roles: {
310
- ready: config.linear?.workflow?.ready || "Ready",
357
+ ready: assertLinearReadyIsNotDefaultState(
358
+ config.linear?.workflow?.ready || "Ready"
359
+ ),
311
360
  claimed: config.linear?.workflow?.claimed || "In Progress",
312
361
  review: config.linear?.workflow?.review || "In Review",
313
362
  blocked: config.linear?.workflow?.blocked || "Blocked",
@@ -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