@codyswann/lisa 2.247.2 → 2.250.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 (304) hide show
  1. package/README.md +5 -0
  2. package/all/copy-overwrite/scripts/lisa-work-item.mjs +1102 -0
  3. package/dist/cli/doctor-kane.d.ts +15 -0
  4. package/dist/cli/doctor-kane.d.ts.map +1 -0
  5. package/dist/cli/doctor-kane.js +28 -0
  6. package/dist/cli/doctor-kane.js.map +1 -0
  7. package/dist/cli/doctor-worker-epoch.d.ts +11 -0
  8. package/dist/cli/doctor-worker-epoch.d.ts.map +1 -0
  9. package/dist/cli/doctor-worker-epoch.js +234 -0
  10. package/dist/cli/doctor-worker-epoch.js.map +1 -0
  11. package/dist/cli/doctor.d.ts +3 -1
  12. package/dist/cli/doctor.d.ts.map +1 -1
  13. package/dist/cli/doctor.js +6 -0
  14. package/dist/cli/doctor.js.map +1 -1
  15. package/dist/cli/index.d.ts +7 -0
  16. package/dist/cli/index.d.ts.map +1 -1
  17. package/dist/cli/index.js +56 -8
  18. package/dist/cli/index.js.map +1 -1
  19. package/dist/cli/kane-cmd.d.ts +45 -0
  20. package/dist/cli/kane-cmd.d.ts.map +1 -0
  21. package/dist/cli/kane-cmd.js +91 -0
  22. package/dist/cli/kane-cmd.js.map +1 -0
  23. package/dist/cli/ui-lisa-version.d.ts.map +1 -1
  24. package/dist/cli/ui-lisa-version.js +1 -5
  25. package/dist/cli/ui-lisa-version.js.map +1 -1
  26. package/dist/core/kane-cli-parser.d.ts +9 -0
  27. package/dist/core/kane-cli-parser.d.ts.map +1 -0
  28. package/dist/core/kane-cli-parser.js +145 -0
  29. package/dist/core/kane-cli-parser.js.map +1 -0
  30. package/dist/core/kane-cli-process.d.ts +15 -0
  31. package/dist/core/kane-cli-process.d.ts.map +1 -0
  32. package/dist/core/kane-cli-process.js +77 -0
  33. package/dist/core/kane-cli-process.js.map +1 -0
  34. package/dist/core/kane-cli-types.d.ts +61 -0
  35. package/dist/core/kane-cli-types.d.ts.map +1 -0
  36. package/dist/core/kane-cli-types.js +3 -0
  37. package/dist/core/kane-cli-types.js.map +1 -0
  38. package/dist/core/kane-cli.d.ts +42 -0
  39. package/dist/core/kane-cli.d.ts.map +1 -0
  40. package/dist/core/kane-cli.js +253 -0
  41. package/dist/core/kane-cli.js.map +1 -0
  42. package/dist/core/kane-pilot-report.d.ts +21 -0
  43. package/dist/core/kane-pilot-report.d.ts.map +1 -0
  44. package/dist/core/kane-pilot-report.js +169 -0
  45. package/dist/core/kane-pilot-report.js.map +1 -0
  46. package/dist/core/kane-pilot-types.d.ts +60 -0
  47. package/dist/core/kane-pilot-types.d.ts.map +1 -0
  48. package/dist/core/kane-pilot-types.js +2 -0
  49. package/dist/core/kane-pilot-types.js.map +1 -0
  50. package/dist/core/kane-pilot.d.ts +25 -0
  51. package/dist/core/kane-pilot.d.ts.map +1 -0
  52. package/dist/core/kane-pilot.js +255 -0
  53. package/dist/core/kane-pilot.js.map +1 -0
  54. package/dist/core/project-config-kane.d.ts +27 -0
  55. package/dist/core/project-config-kane.d.ts.map +1 -0
  56. package/dist/core/project-config-kane.js +152 -0
  57. package/dist/core/project-config-kane.js.map +1 -0
  58. package/dist/core/project-config.d.ts +11 -0
  59. package/dist/core/project-config.d.ts.map +1 -1
  60. package/dist/core/project-config.js +7 -5
  61. package/dist/core/project-config.js.map +1 -1
  62. package/package.json +1 -1
  63. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  64. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  65. package/plugins/lisa/.codex-plugin/skills/lisa-codify-verification/SKILL.md +2 -0
  66. package/plugins/lisa/.codex-plugin/skills/lisa-doctor/SKILL.md +7 -0
  67. package/plugins/lisa/.codex-plugin/skills/lisa-exploratory-qa/SKILL.md +3 -0
  68. package/plugins/lisa/.codex-plugin/skills/lisa-github-claim/SKILL.md +27 -0
  69. package/plugins/lisa/.codex-plugin/skills/lisa-github-claim/agents/openai.yaml +4 -0
  70. package/plugins/lisa/.codex-plugin/skills/lisa-implement/SKILL.md +50 -14
  71. package/plugins/lisa/.codex-plugin/skills/lisa-improve-harness/SKILL.md +487 -0
  72. package/plugins/lisa/.codex-plugin/skills/lisa-improve-harness/agents/openai.yaml +4 -0
  73. package/plugins/lisa/.codex-plugin/skills/lisa-jira-claim/SKILL.md +27 -0
  74. package/plugins/lisa/.codex-plugin/skills/lisa-jira-claim/agents/openai.yaml +4 -0
  75. package/plugins/lisa/.codex-plugin/skills/lisa-kane-browser/SKILL.md +80 -0
  76. package/plugins/lisa/.codex-plugin/skills/lisa-kane-browser/agents/openai.yaml +4 -0
  77. package/plugins/lisa/.codex-plugin/skills/lisa-linear-claim/SKILL.md +27 -0
  78. package/plugins/lisa/.codex-plugin/skills/lisa-linear-claim/agents/openai.yaml +4 -0
  79. package/plugins/lisa/.codex-plugin/skills/lisa-monitor/SKILL.md +2 -0
  80. package/plugins/lisa/.codex-plugin/skills/lisa-parity-coderabbit/SKILL.md +10 -0
  81. package/plugins/lisa/.codex-plugin/skills/lisa-product-walkthrough/SKILL.md +2 -0
  82. package/plugins/lisa/.codex-plugin/skills/lisa-review-local/SKILL.md +11 -0
  83. package/plugins/lisa/.codex-plugin/skills/lisa-setup-kane/SKILL.md +96 -0
  84. package/plugins/lisa/.codex-plugin/skills/lisa-setup-kane/agents/openai.yaml +4 -0
  85. package/plugins/lisa/.codex-plugin/skills/lisa-track/SKILL.md +71 -0
  86. package/plugins/lisa/.codex-plugin/skills/lisa-track/agents/openai.yaml +4 -0
  87. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-claim/SKILL.md +35 -0
  88. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-claim/agents/openai.yaml +4 -0
  89. package/plugins/lisa/.codex-plugin/skills/lisa-use-the-product/SKILL.md +1 -1
  90. package/plugins/lisa/.codex-plugin/skills/lisa-verification-lifecycle/SKILL.md +3 -1
  91. package/plugins/lisa/.codex-plugin/skills/lisa-verify/SKILL.md +1 -0
  92. package/plugins/lisa/agents/product-specialist.md +2 -0
  93. package/plugins/lisa/agents/quality-specialist.md +4 -1
  94. package/plugins/lisa/agents/verification-specialist.md +2 -2
  95. package/plugins/lisa/commands/improve-harness.md +6 -0
  96. package/plugins/lisa/commands/track.md +6 -0
  97. package/plugins/lisa/rules/eager/config-resolution.md +9 -0
  98. package/plugins/lisa/rules/eager/convergent-review.md +19 -0
  99. package/plugins/lisa/rules/eager/tracked-work.md +7 -0
  100. package/plugins/lisa/rules/eager/verification.md +1 -1
  101. package/plugins/lisa/rules/reference/config-resolution.md +26 -1
  102. package/plugins/lisa/rules/reference/convergent-review.md +69 -0
  103. package/plugins/lisa/rules/reference/tracked-work.md +26 -0
  104. package/plugins/lisa/rules/reference/verification.md +4 -2
  105. package/plugins/lisa/skills/lisa-codify-verification/SKILL.md +2 -0
  106. package/plugins/lisa/skills/lisa-doctor/SKILL.md +7 -0
  107. package/plugins/lisa/skills/lisa-exploratory-qa/SKILL.md +3 -0
  108. package/plugins/lisa/skills/lisa-github-claim/SKILL.md +27 -0
  109. package/plugins/lisa/skills/lisa-github-claim/agents/openai.yaml +4 -0
  110. package/plugins/lisa/skills/lisa-implement/SKILL.md +50 -14
  111. package/plugins/lisa/skills/lisa-improve-harness/SKILL.md +487 -0
  112. package/plugins/lisa/skills/lisa-improve-harness/agents/openai.yaml +4 -0
  113. package/plugins/lisa/skills/lisa-jira-claim/SKILL.md +27 -0
  114. package/plugins/lisa/skills/lisa-jira-claim/agents/openai.yaml +4 -0
  115. package/plugins/lisa/skills/lisa-kane-browser/SKILL.md +80 -0
  116. package/plugins/lisa/skills/lisa-kane-browser/agents/openai.yaml +4 -0
  117. package/plugins/lisa/skills/lisa-linear-claim/SKILL.md +27 -0
  118. package/plugins/lisa/skills/lisa-linear-claim/agents/openai.yaml +4 -0
  119. package/plugins/lisa/skills/lisa-monitor/SKILL.md +2 -0
  120. package/plugins/lisa/skills/lisa-parity-coderabbit/SKILL.md +10 -0
  121. package/plugins/lisa/skills/lisa-product-walkthrough/SKILL.md +2 -0
  122. package/plugins/lisa/skills/lisa-review-local/SKILL.md +11 -0
  123. package/plugins/lisa/skills/lisa-setup-kane/SKILL.md +96 -0
  124. package/plugins/lisa/skills/lisa-setup-kane/agents/openai.yaml +4 -0
  125. package/plugins/lisa/skills/lisa-track/SKILL.md +71 -0
  126. package/plugins/lisa/skills/lisa-track/agents/openai.yaml +4 -0
  127. package/plugins/lisa/skills/lisa-tracker-claim/SKILL.md +35 -0
  128. package/plugins/lisa/skills/lisa-tracker-claim/agents/openai.yaml +4 -0
  129. package/plugins/lisa/skills/lisa-use-the-product/SKILL.md +1 -1
  130. package/plugins/lisa/skills/lisa-verification-lifecycle/SKILL.md +3 -1
  131. package/plugins/lisa/skills/lisa-verify/SKILL.md +1 -0
  132. package/plugins/lisa-agy/agents/product-specialist.md +2 -0
  133. package/plugins/lisa-agy/agents/quality-specialist.md +4 -1
  134. package/plugins/lisa-agy/agents/verification-specialist.md +2 -2
  135. package/plugins/lisa-agy/commands/lisa/improve-harness.md +6 -0
  136. package/plugins/lisa-agy/commands/lisa/track.md +6 -0
  137. package/plugins/lisa-agy/plugin.json +1 -1
  138. package/plugins/lisa-agy/skills/lisa-codify-verification/SKILL.md +2 -0
  139. package/plugins/lisa-agy/skills/lisa-doctor/SKILL.md +7 -0
  140. package/plugins/lisa-agy/skills/lisa-exploratory-qa/SKILL.md +3 -0
  141. package/plugins/lisa-agy/skills/lisa-github-claim/SKILL.md +27 -0
  142. package/plugins/lisa-agy/skills/lisa-implement/SKILL.md +50 -14
  143. package/plugins/lisa-agy/skills/lisa-improve-harness/SKILL.md +487 -0
  144. package/plugins/lisa-agy/skills/lisa-jira-claim/SKILL.md +27 -0
  145. package/plugins/lisa-agy/skills/lisa-kane-browser/SKILL.md +80 -0
  146. package/plugins/lisa-agy/skills/lisa-linear-claim/SKILL.md +27 -0
  147. package/plugins/lisa-agy/skills/lisa-monitor/SKILL.md +2 -0
  148. package/plugins/lisa-agy/skills/lisa-parity-coderabbit/SKILL.md +10 -0
  149. package/plugins/lisa-agy/skills/lisa-product-walkthrough/SKILL.md +2 -0
  150. package/plugins/lisa-agy/skills/lisa-review-local/SKILL.md +11 -0
  151. package/plugins/lisa-agy/skills/lisa-setup-kane/SKILL.md +96 -0
  152. package/plugins/lisa-agy/skills/lisa-track/SKILL.md +71 -0
  153. package/plugins/lisa-agy/skills/lisa-tracker-claim/SKILL.md +35 -0
  154. package/plugins/lisa-agy/skills/lisa-use-the-product/SKILL.md +1 -1
  155. package/plugins/lisa-agy/skills/lisa-verification-lifecycle/SKILL.md +3 -1
  156. package/plugins/lisa-agy/skills/lisa-verify/SKILL.md +1 -0
  157. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  158. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  159. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  160. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  161. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  162. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  163. package/plugins/lisa-copilot/agents/product-specialist.agent.md +2 -0
  164. package/plugins/lisa-copilot/agents/quality-specialist.agent.md +4 -1
  165. package/plugins/lisa-copilot/agents/verification-specialist.agent.md +2 -2
  166. package/plugins/lisa-copilot/commands/lisa/improve-harness.md +6 -0
  167. package/plugins/lisa-copilot/commands/lisa/track.md +6 -0
  168. package/plugins/lisa-copilot/rules/eager/config-resolution.md +9 -0
  169. package/plugins/lisa-copilot/rules/eager/convergent-review.md +19 -0
  170. package/plugins/lisa-copilot/rules/eager/tracked-work.md +7 -0
  171. package/plugins/lisa-copilot/rules/eager/verification.md +1 -1
  172. package/plugins/lisa-copilot/rules/reference/config-resolution.md +26 -1
  173. package/plugins/lisa-copilot/rules/reference/convergent-review.md +69 -0
  174. package/plugins/lisa-copilot/rules/reference/tracked-work.md +26 -0
  175. package/plugins/lisa-copilot/rules/reference/verification.md +4 -2
  176. package/plugins/lisa-copilot/skills/lisa-codify-verification/SKILL.md +2 -0
  177. package/plugins/lisa-copilot/skills/lisa-doctor/SKILL.md +7 -0
  178. package/plugins/lisa-copilot/skills/lisa-exploratory-qa/SKILL.md +3 -0
  179. package/plugins/lisa-copilot/skills/lisa-github-claim/SKILL.md +27 -0
  180. package/plugins/lisa-copilot/skills/lisa-implement/SKILL.md +50 -14
  181. package/plugins/lisa-copilot/skills/lisa-improve-harness/SKILL.md +487 -0
  182. package/plugins/lisa-copilot/skills/lisa-jira-claim/SKILL.md +27 -0
  183. package/plugins/lisa-copilot/skills/lisa-kane-browser/SKILL.md +80 -0
  184. package/plugins/lisa-copilot/skills/lisa-linear-claim/SKILL.md +27 -0
  185. package/plugins/lisa-copilot/skills/lisa-monitor/SKILL.md +2 -0
  186. package/plugins/lisa-copilot/skills/lisa-parity-coderabbit/SKILL.md +10 -0
  187. package/plugins/lisa-copilot/skills/lisa-product-walkthrough/SKILL.md +2 -0
  188. package/plugins/lisa-copilot/skills/lisa-review-local/SKILL.md +11 -0
  189. package/plugins/lisa-copilot/skills/lisa-setup-kane/SKILL.md +96 -0
  190. package/plugins/lisa-copilot/skills/lisa-track/SKILL.md +71 -0
  191. package/plugins/lisa-copilot/skills/lisa-tracker-claim/SKILL.md +35 -0
  192. package/plugins/lisa-copilot/skills/lisa-use-the-product/SKILL.md +1 -1
  193. package/plugins/lisa-copilot/skills/lisa-verification-lifecycle/SKILL.md +3 -1
  194. package/plugins/lisa-copilot/skills/lisa-verify/SKILL.md +1 -0
  195. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  196. package/plugins/lisa-cursor/agents/product-specialist.md +2 -0
  197. package/plugins/lisa-cursor/agents/quality-specialist.md +4 -1
  198. package/plugins/lisa-cursor/agents/verification-specialist.md +2 -2
  199. package/plugins/lisa-cursor/commands/lisa/improve-harness.md +6 -0
  200. package/plugins/lisa-cursor/commands/lisa/track.md +6 -0
  201. package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +26 -1
  202. package/plugins/lisa-cursor/rules/config-resolution.mdc +9 -0
  203. package/plugins/lisa-cursor/rules/convergent-review-reference.mdc +74 -0
  204. package/plugins/lisa-cursor/rules/convergent-review.mdc +24 -0
  205. package/plugins/lisa-cursor/rules/tracked-work-reference.mdc +31 -0
  206. package/plugins/lisa-cursor/rules/tracked-work.mdc +12 -0
  207. package/plugins/lisa-cursor/rules/verification-reference.mdc +4 -2
  208. package/plugins/lisa-cursor/rules/verification.mdc +1 -1
  209. package/plugins/lisa-cursor/skills/lisa-codify-verification/SKILL.md +2 -0
  210. package/plugins/lisa-cursor/skills/lisa-doctor/SKILL.md +7 -0
  211. package/plugins/lisa-cursor/skills/lisa-exploratory-qa/SKILL.md +3 -0
  212. package/plugins/lisa-cursor/skills/lisa-github-claim/SKILL.md +27 -0
  213. package/plugins/lisa-cursor/skills/lisa-implement/SKILL.md +50 -14
  214. package/plugins/lisa-cursor/skills/lisa-improve-harness/SKILL.md +487 -0
  215. package/plugins/lisa-cursor/skills/lisa-jira-claim/SKILL.md +27 -0
  216. package/plugins/lisa-cursor/skills/lisa-kane-browser/SKILL.md +80 -0
  217. package/plugins/lisa-cursor/skills/lisa-linear-claim/SKILL.md +27 -0
  218. package/plugins/lisa-cursor/skills/lisa-monitor/SKILL.md +2 -0
  219. package/plugins/lisa-cursor/skills/lisa-parity-coderabbit/SKILL.md +10 -0
  220. package/plugins/lisa-cursor/skills/lisa-product-walkthrough/SKILL.md +2 -0
  221. package/plugins/lisa-cursor/skills/lisa-review-local/SKILL.md +11 -0
  222. package/plugins/lisa-cursor/skills/lisa-setup-kane/SKILL.md +96 -0
  223. package/plugins/lisa-cursor/skills/lisa-track/SKILL.md +71 -0
  224. package/plugins/lisa-cursor/skills/lisa-tracker-claim/SKILL.md +35 -0
  225. package/plugins/lisa-cursor/skills/lisa-use-the-product/SKILL.md +1 -1
  226. package/plugins/lisa-cursor/skills/lisa-verification-lifecycle/SKILL.md +3 -1
  227. package/plugins/lisa-cursor/skills/lisa-verify/SKILL.md +1 -0
  228. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  229. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  230. package/plugins/lisa-expo-agy/plugin.json +1 -1
  231. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  232. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  233. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  234. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  235. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  236. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  237. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  238. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  239. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  240. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  241. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  242. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  243. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  244. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  245. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  246. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  247. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  248. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  249. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  250. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  251. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  252. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  253. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  254. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  255. package/plugins/lisa-rails-agy/plugin.json +1 -1
  256. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  257. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  258. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  259. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  260. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  261. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  262. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  263. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  264. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  265. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  266. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  267. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  268. package/plugins/src/base/agents/product-specialist.md +2 -0
  269. package/plugins/src/base/agents/quality-specialist.md +4 -1
  270. package/plugins/src/base/agents/verification-specialist.md +2 -2
  271. package/plugins/src/base/commands/improve-harness.md +6 -0
  272. package/plugins/src/base/commands/track.md +6 -0
  273. package/plugins/src/base/rules/eager/config-resolution.md +9 -0
  274. package/plugins/src/base/rules/eager/convergent-review.md +19 -0
  275. package/plugins/src/base/rules/eager/tracked-work.md +7 -0
  276. package/plugins/src/base/rules/eager/verification.md +1 -1
  277. package/plugins/src/base/rules/reference/config-resolution.md +26 -1
  278. package/plugins/src/base/rules/reference/convergent-review.md +69 -0
  279. package/plugins/src/base/rules/reference/tracked-work.md +26 -0
  280. package/plugins/src/base/rules/reference/verification.md +4 -2
  281. package/plugins/src/base/skills/lisa-codify-verification/SKILL.md +2 -0
  282. package/plugins/src/base/skills/lisa-doctor/SKILL.md +7 -0
  283. package/plugins/src/base/skills/lisa-exploratory-qa/SKILL.md +3 -0
  284. package/plugins/src/base/skills/lisa-github-claim/SKILL.md +27 -0
  285. package/plugins/src/base/skills/lisa-implement/SKILL.md +50 -14
  286. package/plugins/src/base/skills/lisa-improve-harness/SKILL.md +487 -0
  287. package/plugins/src/base/skills/lisa-jira-claim/SKILL.md +27 -0
  288. package/plugins/src/base/skills/lisa-kane-browser/SKILL.md +80 -0
  289. package/plugins/src/base/skills/lisa-linear-claim/SKILL.md +27 -0
  290. package/plugins/src/base/skills/lisa-monitor/SKILL.md +2 -0
  291. package/plugins/src/base/skills/lisa-parity-coderabbit/SKILL.md +10 -0
  292. package/plugins/src/base/skills/lisa-product-walkthrough/SKILL.md +2 -0
  293. package/plugins/src/base/skills/lisa-review-local/SKILL.md +11 -0
  294. package/plugins/src/base/skills/lisa-setup-kane/SKILL.md +96 -0
  295. package/plugins/src/base/skills/lisa-track/SKILL.md +71 -0
  296. package/plugins/src/base/skills/lisa-tracker-claim/SKILL.md +35 -0
  297. package/plugins/src/base/skills/lisa-use-the-product/SKILL.md +1 -1
  298. package/plugins/src/base/skills/lisa-verification-lifecycle/SKILL.md +3 -1
  299. package/plugins/src/base/skills/lisa-verify/SKILL.md +1 -0
  300. package/rails/copy-overwrite/lefthook.yml +10 -0
  301. package/scripts/lisa-work-item.mjs +5 -0
  302. package/typescript/copy-contents/.husky/commit-msg +9 -23
  303. package/typescript/copy-contents/.husky/pre-push +10 -0
  304. package/typescript/copy-contents/.husky/prepare-commit-msg +15 -0
@@ -0,0 +1,487 @@
1
+ ---
2
+ name: lisa-improve-harness
3
+ description: "Investigate ONE failed or expensive factory trajectory and prove whether a fix helped. Records the job contract, observes the baseline, locates the earliest failed handoff, classifies the gap as exactly one of context | capability | domain-ownership | authority | proof | feedback-delivery | worker-limitation, makes the smallest owning intervention at the authoritative owner (larger changes become a proposed-intervention ticket and the loop stops), verifies at both layers (native gates plus the operational journey), then reruns the same job class in a fresh session and isolated worktree behind a relevance gate — a rerun that never retrieved or invoked the intervention yields no-evidence-for-intervention, never retain. Terminates by posting a fingerprinted result record on the originating work item with decision retain, revise, remove, or test-without. Headless-safe, idempotent per trajectory, single-trajectory bounded claims only."
4
+ allowed-tools: ["Skill", "Bash", "Read", "Glob", "Grep", "Edit", "Write"]
5
+ ---
6
+
7
+ # Improve Harness
8
+
9
+ Run ONE bounded baseline → intervention → fresh-rerun loop on a single failed or expensive
10
+ trajectory. Trajectory: $ARGUMENTS
11
+
12
+ A factory that fails and moves on keeps failing the same way. This loop takes exactly one
13
+ trajectory, finds the earliest place a handoff produced something unusable, fixes that one
14
+ place at its owner, and then tries to prove — in a fresh session that knows nothing about the
15
+ investigation — that the fix is what made the difference. The discipline that makes it worth
16
+ anything is the refusal to claim more than one trajectory can support.
17
+
18
+ **Every terminal state posts a result record to the originating item before stopping — there is
19
+ no silent exit.** That includes `already-improved` (Phase 0), `no-checkable-outcome` (Phase 1),
20
+ `insufficient-evidence` (Phases 2–3), `unclassified` (Phase 4), `bounded-authority-stop`
21
+ (Phase 5), and `headless-proposal-only`. A stop with no record on the work item is a bug in the
22
+ run, not a quiet success.
23
+
24
+ ## Input — the trajectory
25
+
26
+ Accept the input as JSON or `key=value` fields. Exactly one of the first two is required.
27
+
28
+ - `item_ref` — a work-item ref: tracker URL/key, PR URL, or session/run ref. Resolve in order:
29
+ - **tracker key/URL** → `lisa-tracker-read` for the full context bundle (comments, linked
30
+ PRs, status history). This is also the **originating item** the result record posts to.
31
+ - **PR URL** → `gh pr view <pr-url-or-number> --json number,title,body,commits,files,reviews,comments`;
32
+ the originating item is the tracker item the PR links to, else the PR itself.
33
+ - **session/run ref** (CI run URL, automation run id, transcript path) → read the run or
34
+ transcript directly; the originating item is the tracker item it names, else `none`.
35
+ - `observed_failure` — a described failure in prose when no ref exists. The description IS the
36
+ baseline claim; Phase 2 must still find at least one durable artifact (commit, log, PR,
37
+ comment) corroborating it, or the loop stops with `Verdict: insufficient-evidence`.
38
+ - `job_class` — optional short slug naming the class of job (e.g. `implement-leaf-ticket`,
39
+ `verify-prd`). Derived in Phase 1 when absent.
40
+ - `mode` — optional `interactive` (default) | `headless`. See "Headless-safe mode".
41
+
42
+ **No originating item** (a bare `observed_failure` with no tracker item): run the Phase 0
43
+ marker search FIRST (see "Idempotency"); adopt any marker-bearing item found as the originating
44
+ item. Only when the search finds nothing, file ONE tracker item via `lisa-tracker-write`
45
+ (`issue_type: Task`, label `type:harness`) carrying the job contract, and that item becomes the
46
+ originating item. The result record is never posted nowhere, and a re-invocation never mints a
47
+ second item for the same trajectory.
48
+
49
+ **Missing tool access** at any point (no `gh`, no tracker credentials, no worktree): follow the
50
+ `tool-access-gate` rule's break-out protocol — report the missing access on the work item and
51
+ stop. Never substitute a weaker step.
52
+
53
+ ## Phase 0 — Idempotency check
54
+
55
+ Before anything else: compute the fingerprint (see "Idempotency"), search for the marker —
56
+ on the originating item's comments when one was supplied, and across the tracker when one was
57
+ not — and stop with `already-improved` on a match (posting nothing new; the existing record
58
+ stands). Nothing in Phases 1–8 runs on a duplicate invocation.
59
+
60
+ ## Phase 1 — Record the job contract
61
+
62
+ Write the job-contract block into the result-record draft. This is the loop's frame of
63
+ reference: everything later is measured against it. **The base revision is pinned here** — the
64
+ rerun in Phase 7 uses this exact revision, not `HEAD`.
65
+
66
+ ```text
67
+ [lisa-improve-harness] Job contract
68
+ Target: <repo / harness surface under improvement>
69
+ Revision: <base git sha> Lisa: <version or plugin stamp>
70
+ Worker config: <agent type / model / runtime / skill+plugin set that ran the job>
71
+ Representative job: <job_class> — <the exact input: ticket ref or prompt that stands for the class>
72
+ Accepted outcome: <what "done correctly" means, observable and checkable by someone who did not run it>
73
+ Evidence: <typed [EVIDENCE: <artifact-type>: <name>] markers proving the outcome>
74
+ Authority envelope:
75
+ - may change: <surfaces this loop may edit directly>
76
+ - may only propose against: <surfaces requiring a proposed-intervention ticket>
77
+ - upstream lane: <lisa | project | n/a>
78
+ Budget: 1 initial intervention + at most 1 revised attempt + their reruns
79
+ + 1 optional test-without rerun; wall-clock/token bound: <bound>
80
+ Stop conditions: bounded-authority breach | unclassified gap | missing tool access
81
+ (tool-access-gate) | insufficient baseline evidence | budget exhausted
82
+ ```
83
+
84
+ If the accepted outcome cannot be stated observably ("done correctly" is not checkable by
85
+ someone who did not run the job), stop: `Verdict: insufficient-evidence`, reason
86
+ `no-checkable-outcome`, and post the record. An unfalsifiable contract makes every later phase
87
+ unfalsifiable too.
88
+
89
+ ## Phase 2 — Observe the baseline trajectory
90
+
91
+ Reconstruct what actually happened, from artifacts only — never from reconstruction-by-
92
+ plausibility. Sources, in priority order:
93
+
94
+ 1. The run/session transcript.
95
+ 2. The PR: diff, commits (especially late `fix:` / `revert:` follow-ups), review threads.
96
+ 3. Tracker comments and status history.
97
+ 4. The `git-history-analyzer` agent for the surrounding file evolution.
98
+ 5. CI logs.
99
+
100
+ Per the `empirical-inquiry` rule, every claim about what the worker did or knew cites a concrete
101
+ artifact. Record which sources were reachable and which were not — an unreachable source is a
102
+ stated limit in the result record, never a silent gap.
103
+
104
+ ## Phase 3 — Locate the earliest failed handoff
105
+
106
+ A **handoff** is any point where work, information, or authority moves: intake → plan,
107
+ plan → ticket, ticket → worker, worker → gate, gate → next worker, worker → human.
108
+
109
+ Walk the baseline forward and name the **first** handoff whose output was already wrong,
110
+ incomplete, or unusable — not the point where the failure became visible. Record: the handoff
111
+ (from → to), the artifact that crossed it, what was wrong with it, and the citation.
112
+
113
+ Downstream symptoms are explicitly noted as symptoms of this handoff, not as separate findings.
114
+ If two handoffs are genuinely tied, take the earlier one. If the earliest cannot be established
115
+ from artifacts, stop with `Verdict: insufficient-evidence` and post the record.
116
+
117
+ ## Phase 4 — Classify the gap
118
+
119
+ Classify the earliest failed handoff into **exactly one** taxonomy gap, with cited evidence.
120
+
121
+ | Gap | Definition |
122
+ |---|---|
123
+ | `context` | The worker had the tools, ownership, and authority to do the step but lacked a fact it needed — a spec detail, convention, prior decision, or state of the world — at the moment it acted. |
124
+ | `capability` | The worker lacked a tool, command, skill, credential, or environment the step actually required, and proceeded degraded instead of stopping. |
125
+ | `domain-ownership` | The step crossed into a surface no configured worker owns, so the handoff had no responsible recipient and fell through. |
126
+ | `authority` | The worker knew what to do and could do it, but was not permitted to (gate, protected environment, approval boundary) and worked around the boundary instead of breaking out. |
127
+ | `proof` | The output was genuinely wrong and no gate, test, or check existed that would have observed that class of defect. |
128
+ | `feedback-delivery` | A signal that would have caught it did exist, but never reached the worker in a usable form or in time — buried in a log, emitted as a non-blocking warning, or produced after the decision was already made. |
129
+ | `worker-limitation` | The worker itself could not perform the step even with full context, tools, ownership, authority, proof, and feedback — the other six are affirmatively excluded. |
130
+
131
+ **The worker-limitation multi-failure guard (binding).** `worker-limitation` requires **≥2
132
+ comparable failed trajectories** — same job class, same handoff, same failed step, different
133
+ runs — each cited by ref, AND an explicit exclusion line for each of the other six gaps. A
134
+ single trajectory can **never** establish `worker-limitation`; this skill has exactly one
135
+ trajectory by construction, so reaching this classification requires citing prior recorded
136
+ trajectories. Find them by searching the originating repo/tracker for prior markers carrying the
137
+ same `job_class=<slug>` field (the marker, not prose — see "Idempotency"). When the second
138
+ comparable failure cannot be produced, classify as the best-supported of the other six, or
139
+ `unclassified`.
140
+
141
+ `unclassified` is a **surfaced terminal outcome**, never a silent default: the loop stops, posts
142
+ the result record with `Verdict: unclassified`, and no intervention is made. Guessing a gap to
143
+ avoid this outcome is forbidden.
144
+
145
+ **`lisa-attribute-failure` runs here.** Invoke it (Skill tool) on the failed handoff — `defect`,
146
+ `implicated_files`, `surface_in_play`, `failure_class` seeded from Phases 2–3 — to decide
147
+ whether the owning surface is **Lisa's** or the **project's**. That verdict does not choose the
148
+ taxonomy gap; it chooses the *owner* in Phase 5:
149
+
150
+ - `project` → the owner is a project surface; local intervention is in scope.
151
+ - `lisa` **and we are in a host project** → per the `upstream-to-lisa` rule the fix belongs
152
+ upstream. Do not edit Lisa-managed surfaces from the host: **submit** the finding to
153
+ `lisa-persist-learning` as a candidate whose evidence supports the `handoff-upstream`
154
+ disposition — that skill's hostile-default judge decides the disposition and owns the filing,
155
+ dedupe marker, per-run cap, and redaction; it is not caller-selectable, and it opens its own
156
+ branch/PR distinct from `harness/<fingerprint>`. Terminate with
157
+ `Verdict: bounded-authority-stop` and `Decision: n/a (routed upstream, <url>)`. If the judge
158
+ drops the candidate, record that in `Known limits` — never report it as routed or owned. Any
159
+ local stopgap is recorded as a stopgap, never as the intervention under test.
160
+ - `lisa` **and we are inside `CodySwannGT/lisa`** → the `upstream-to-lisa` rule does not apply;
161
+ the owning surface is local (`plugins/src/...`) and the intervention proceeds normally.
162
+ - `ambiguous` → terminal-local; no upstream filing. Continue only if a project-owned surface can
163
+ still be named; otherwise `unclassified`.
164
+
165
+ ## Phase 5 — The smallest owning intervention (bounded authority)
166
+
167
+ **Authoritative owner by gap** — the intervention lands where the gap lives, never where the
168
+ symptom appeared:
169
+
170
+ | Gap | Authoritative owner |
171
+ |---|---|
172
+ | `context` | The knowledge surface that should have carried the fact — wiki page, ticket/PRD template, the relevant rule, or a candidate submitted to `lisa-persist-learning` |
173
+ | `capability` | Tool/credential provisioning (a `type:tooling` ticket) or the skill that should have wrapped the tool |
174
+ | `domain-ownership` | The worker roster / routing config that assigns the surface |
175
+ | `authority` | The gate or authority-envelope configuration that should have stopped the worker |
176
+ | `proof` | The missing gate, test, lint, or ast-grep control (see the `promotion-contract` rule when prose is being replaced by a control) |
177
+ | `feedback-delivery` | Where the signal is emitted, escalated, or blocked — severity, timing, or delivery surface |
178
+ | `worker-limitation` | No local intervention; upstream/roster decision only |
179
+
180
+ **Smallest owning change** = the minimal edit at that one owner that closes this gap and nothing
181
+ else. An intervention is **larger than the smallest owning change** — and therefore out of
182
+ authority — if any of these hold:
183
+
184
+ 1. It touches more than one owning surface.
185
+ 2. It changes a contract other workers depend on (a shared schema, a status/label vocabulary, a
186
+ skill's input/output shape).
187
+ 3. It requires a new tool, dependency, credential, or environment.
188
+ 4. It changes product behavior, not harness behavior.
189
+ 5. It falls outside the authority envelope recorded in the job contract.
190
+
191
+ **On any of those: file a proposed-intervention ticket via `lisa-tracker-write` and STOP.** The
192
+ ticket carries the job contract, the earliest failed handoff, the gap classification with
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
195
+ `Verdict: bounded-authority-stop`, `Decision: n/a (proposed-intervention, <url>)`, and
196
+ terminate. Implementing it anyway is the failure mode this phase exists to prevent.
197
+
198
+ Otherwise: make the change on a branch (`harness/<fingerprint>`), never a direct commit to the
199
+ default branch, and state the **expected mechanism** — the specific causal chain by which this
200
+ change makes the failed handoff succeed — *before* verifying. An intervention with no stated
201
+ mechanism cannot be relevance-gated in Phase 7.
202
+
203
+ A durable lesson produced along the way is **submitted** to `lisa-persist-learning` as a
204
+ candidate; its judge decides whether anything persists. This skill never writes the learnings
205
+ surface itself and never assumes the candidate was kept.
206
+
207
+ ## Phase 6 — Two-layer verification
208
+
209
+ Both layers, in order, per the `verification` rule:
210
+
211
+ - **Layer 1 — native gates.** The project's own lint/typecheck/test/build for the changed
212
+ surface, plus (in the Lisa repo) `bun run build:plugins` + `bun run check:plugins` when the
213
+ surface is under `plugins/src/`. These are **quality checks, not verification** — the
214
+ `verification` rule is explicit that a green suite is a prerequisite and never the proof.
215
+ - **Layer 2 — the operational journey.** Exercise the harness the way the factory does: run the
216
+ representative job (or the smallest faithful slice of it) and observe the previously failing
217
+ handoff now producing a usable output. Delegate to `lisa-verification-lifecycle` where the
218
+ surface has one. Capture typed `[EVIDENCE: <artifact-type>: <name>]` artifacts from the
219
+ `verification` rule's fixed taxonomy.
220
+
221
+ Layer 1 red → fix or revert; never proceed to Phase 7 on red gates.
222
+
223
+ **Layer 2 unrunnable caps the Decision at `revise`, whatever Phase 7 returns** — a rerun cannot
224
+ promote an unverified journey to `retain`. Record the cap and its reason in `Known limits`, and
225
+ never claim a journey that was not run.
226
+
227
+ For a `proof`-gap intervention, `lisa-codify-verification` applies: the new control is the
228
+ codification.
229
+
230
+ ## Phase 7 — Fresh-session rerun + the relevance gate
231
+
232
+ 1. **Isolated starting state.** `git worktree add` off the base revision pinned in Phase 1, with
233
+ the intervention applied — and only the intervention. No investigator working-tree state
234
+ leaks in. Remove the worktree in a `finally`-equivalent step.
235
+ 2. **Fresh session.** Rerun in a session with no inherited context: a subagent where the runtime
236
+ provides one, otherwise a headless CLI re-invocation of the same runtime. The rerun session
237
+ receives the representative job and the worker config from the job contract — **not** the
238
+ investigation, not the gap classification, not the intervention's existence. Telling it about
239
+ the intervention contaminates the only evidence this phase produces.
240
+ 3. **Same job class, same worker config.** Any deviation from the job contract is recorded as a
241
+ limit.
242
+
243
+ **The relevance gate (binding).** A rerun credits the intervention **only** if the rerun
244
+ transcript shows the intervention was **retrieved or invoked** — the changed file was read, the
245
+ skill was called, the gate fired, the new message was surfaced, the added test ran. Positive
246
+ evidence is required; absence of evidence is not evidence. The gate applies to every rerun
247
+ outcome, not only the successful ones.
248
+
249
+ - Rerun **succeeded** and the intervention **was** retrieved/invoked →
250
+ `Verdict: intervention-supported`.
251
+ - Rerun **succeeded** and the intervention was **not** retrieved/invoked →
252
+ `Verdict: no-evidence-for-intervention`. **Never `retain`.** The success is attributed to
253
+ run-to-run variance until proven otherwise, and the honest next action is
254
+ `Decision: test-without` — rerun with the intervention deliberately withheld to see whether
255
+ the local evidence already suffices.
256
+ - Rerun **failed at the same handoff** → the intervention did not close the gap →
257
+ `Verdict: intervention-refuted`, `Decision: remove` (or `revise` when the mechanism was right
258
+ and the surface was wrong).
259
+ - Rerun **failed at a later handoff, with the relevance gate satisfied** → this gap closed and a
260
+ new one exists → `Verdict: intervention-supported`, `Decision: retain` for this gap, and the
261
+ new handoff is a *separate* trajectory: file it, do not chain a second loop inside this one.
262
+ Without the relevance gate, this case is `no-evidence-for-intervention` like any other.
263
+
264
+ ## Phase 8 — Decision, result record, learnings
265
+
266
+ Two fields, deliberately separate:
267
+
268
+ - `Verdict` (evidence status): `intervention-supported` | `intervention-refuted` |
269
+ `no-evidence-for-intervention` | `insufficient-evidence` | `unclassified` |
270
+ `bounded-authority-stop` | `headless-proposal-only`
271
+ - `Decision` (action): `retain` | `revise` | `remove` | `test-without`. A completed loop always
272
+ carries exactly one. Early terminations (`insufficient-evidence`, `unclassified`,
273
+ `bounded-authority-stop`, `headless-proposal-only`) carry `Decision: n/a (<reason>, <url>)`,
274
+ because the loop did not complete.
275
+
276
+ | Verdict | Rerun outcome | Decision |
277
+ |---|---|---|
278
+ | `intervention-supported` | succeeded, intervention invoked | `retain` — merge the branch through `lisa-git-submit-pr` |
279
+ | `intervention-supported` | failed at a later handoff (this gap closed) — relevance gate satisfied | `retain` (this gap) + file the new trajectory |
280
+ | `no-evidence-for-intervention` | succeeded, intervention never invoked | `test-without` |
281
+ | `intervention-refuted` | failed at the same handoff, mechanism wrong | `remove` — revert the branch |
282
+ | `intervention-refuted` | failed at the same handoff, mechanism right / surface wrong | `revise` — one revised attempt inside budget, else file a proposed-intervention ticket |
283
+
284
+ A Layer-2 journey that could not be run caps any of the above at `revise`.
285
+
286
+ ### `test-without` is deferred, not done
287
+
288
+ `test-without` leaves the loop **explicitly unfinished**: the branch stays unmerged, no PR is
289
+ opened, and nothing is claimed for the intervention. The follow-up is a re-invocation of this
290
+ skill on the same trajectory that posts under `key=<fingerprint>-r<N>` and runs the rerun with
291
+ the intervention deliberately **withheld**. Map its outcome:
292
+
293
+ | Withheld rerun | Reading | Decision |
294
+ |---|---|---|
295
+ | Fails the same way | The intervention was never what mattered — the original success was variance | `remove` |
296
+ | Succeeds without the intervention | The pre-existing state already sufficed | `remove` |
297
+ | Fails without it, where the earlier run with it succeeded | The intervention plausibly mattered after all | `retain` |
298
+
299
+ Until that follow-up runs, the trajectory's `What happens next` line says so explicitly.
300
+
301
+ ### The result record
302
+
303
+ Post it to the originating item, with its marker:
304
+
305
+ ```text
306
+ <!-- [lisa-improve-harness] key=<fingerprint> job_class=<slug> -->
307
+ [lisa-improve-harness] Result record (job class: <job_class>)
308
+
309
+ Target: <repo / harness surface under improvement>
310
+ Worker config: <agent type / model / runtime / skill+plugin set that ran the job>
311
+ Accepted outcome: <what "done correctly" meant for this job, verbatim from the job contract>
312
+ Gap: <gap> — <one plain-language sentence a non-technical operator can read>
313
+ Baseline evidence: <2-4 lines, each citing a concrete artifact (transcript line, commit sha, PR review, log)>
314
+ Earliest failed handoff: <from> -> <to>; artifact <what crossed>; wrong because <...>
315
+ Owner: <authoritative owner surface, path or name> (attribution: <lisa | project | ambiguous>)
316
+ Intervention: <the smallest owning change, with path> | none (<reason>)
317
+ Expected mechanism: <the causal chain by which this change makes the handoff succeed>
318
+ Change: <PR url | branch harness/<fingerprint> (unmerged) | none>
319
+ Verification:
320
+ - native gates: <commands run + result>
321
+ - operational journey: <what was run, what was observed, evidence artifacts>
322
+ Fresh rerun: worktree @ <base sha>, fresh session, same worker config
323
+ - outcome: <succeeded | failed at same handoff | failed at later handoff | not run (<why>)>
324
+ - relevance gate: <retrieved/invoked — cited proof> | <not retrieved/invoked>
325
+ Verdict: <intervention-supported | intervention-refuted | no-evidence-for-intervention | insufficient-evidence | unclassified | bounded-authority-stop | headless-proposal-only>
326
+ Decision: <retain | revise | remove | test-without> — <inline plain gloss> | n/a (<reason>, <url>)
327
+ What this means: <one plain sentence, no taxonomy terms>
328
+ What happens next: <concrete action + WHO (agent | human), or "nothing — closed">
329
+ Recorded owner: <who/what surface now owns this behavior>
330
+ Known limits: <what this record does NOT establish — always non-empty. This does not mean the
331
+ factory is fixed — one run, one job, one step.>
332
+ ```
333
+
334
+ The `Decision` gloss is written for someone who has never read this skill, e.g.
335
+ `test-without — not yet convinced the fix is what helped; re-run once without it to check`,
336
+ `retain — the fix was used and the step worked; keeping it`,
337
+ `remove — the fix did not help; taking it back out`,
338
+ `revise — the idea looks right but this version did not work; one more attempt`.
339
+
340
+ Any durable lesson the loop produced is **submitted** to `lisa-persist-learning` (the ledger's
341
+ only write path per the `project-learnings` rule) as a candidate; its hostile-default judge — not
342
+ this skill, and not the caller — decides the disposition. A dropped candidate is recorded in
343
+ `Known limits`, never reported as routed or owned. This skill never writes the learnings file,
344
+ `PROJECT_RULES.md`, or `CLAUDE.md` itself, and never promotes a learning to a higher rung (that
345
+ is the gardener's ticket-gated job).
346
+
347
+ ## Idempotency
348
+
349
+ The fingerprint is keyed to the **trajectory alone**, deliberately independent of the work item,
350
+ so it stays stable when this skill has to file the originating item itself:
351
+
352
+ ```text
353
+ fingerprint = "ih1-" + first 12 hex chars of sha1(normalized_trajectory_ref)
354
+ normalized_trajectory_ref = lowercased, whitespace runs collapsed to single spaces, trimmed
355
+ trajectory_ref = the failing run identifier (PR url/number, CI run URL, session/transcript id);
356
+ when none exists, the normalized `observed_failure` text
357
+ ```
358
+
359
+ ```bash
360
+ NORM_TRAJ=$(printf '%s' "$TRAJ_REF" | tr '[:upper:]' '[:lower:]' | tr -s '[:space:]' ' ' | sed 's/^ *//; s/ *$//')
361
+ FP="ih1-$(printf '%s' "$NORM_TRAJ" | { shasum -a 1 2>/dev/null || sha1sum; } | cut -c1-12)"
362
+ ```
363
+
364
+ Marker discipline follows `lisa-persist-learning`: match on the **marker, never the title or
365
+ text**; **exactly one marker per body**; **never write a markerless body**.
366
+
367
+ **Dedupe before write** (Phase 0, and again immediately before posting):
368
+
369
+ 1. **With an originating item**: read its comments and grep for the marker
370
+ (`gh issue view <n> --json comments --jq '.comments[].body'`, or the vendor comment read).
371
+ 2. **Without one**: search the tracker before filing anything —
372
+ `gh issue list --state all --search '"[lisa-improve-harness] key=<fingerprint>" in:body' --json number,state,url`
373
+ (all states: a closed marker-bearing item still owns this trajectory). Adopt any match as the
374
+ originating item.
375
+ 3. **Stale-index guard**: when the search returns nothing, also enumerate bodies directly
376
+ (`gh issue list --state all --json number,body`, plus the comment read above) and grep for
377
+ the marker before concluding no record exists.
378
+ 4. **Anchor the match** on the literal `key=<fingerprint> ` — including the trailing space
379
+ before `job_class=` — so a follow-up `key=<fingerprint>-r1` never matches the base
380
+ fingerprint. When several records match a trajectory, the highest `-rN` is the current one.
381
+ 5. Match found and its `Decision` is not `test-without` → report `already-improved` and stop;
382
+ make no mutation.
383
+ 6. Match found and its `Decision` **is** `test-without` → a follow-up run is the recorded next
384
+ action: post under `key=<fingerprint>-r<N>`, where `N` = 1 + the count of existing markers
385
+ with the `<fingerprint>-r` prefix.
386
+ 7. Branch and worktree names reuse the same key — `harness/<fingerprint>` for the first run and
387
+ `harness/<fingerprint>-r<N>` for follow-ups — so a re-entrant run collides with its own
388
+ artifacts instead of forking new ones.
389
+ 8. Prefer markers in comments authored by the running identity; a marker from another identity
390
+ is still honored (safety over noise) but the record notes it was foreign.
391
+
392
+ ## Headless-safe mode
393
+
394
+ Trigger, mechanically: `mode=headless` was passed explicitly, or the invocation context carries
395
+ an explicit automation marker (a cron/routine invocation, an intake or CI dispatch). Everything
396
+ else — including any human- or session-initiated run inside an agent harness — is
397
+ **interactive**. Terminal detection is not a trigger: agent harnesses routinely run without a
398
+ TTY, so a TTY test would make interactive mode unreachable.
399
+
400
+ In headless mode:
401
+
402
+ - **No mutation of the working tree, any managed surface, or the default branch.** Phase 5 does
403
+ not edit, branch, or commit; it *drafts* the smallest owning change and files it as a
404
+ proposed-intervention ticket via `lisa-tracker-write` (`type:harness`, `status:blocked`), with
405
+ the drafted diff sketch, the expected mechanism, and the verification plan.
406
+ - Phases 6 and 7 do not run (there is nothing applied to verify); the result record carries
407
+ `Verdict: headless-proposal-only`, `Decision: n/a (proposed-intervention, <url>)`, and a
408
+ `Known limits` line saying no rerun evidence exists. This verdict is deliberately distinct
409
+ from `bounded-authority-stop`, so an operator can tell "the fix was too big to make" from
410
+ "the automation never touches anything".
411
+ - **The only writes are the result record and the proposed-intervention ticket(s).** Anything
412
+ further requires a human flipping that ticket to `status:ready`, after which the normal
413
+ factory (or an interactive invocation) implements it.
414
+ - Never a prompt, never a question, never a blocked wait — anywhere in this skill, in either
415
+ mode.
416
+
417
+ Interactive mutation still never touches the default branch directly — it lands on
418
+ `harness/<fingerprint>` and ships through `lisa-git-submit-pr`.
419
+
420
+ ## Bounded-claim discipline
421
+
422
+ The result record **may** claim:
423
+
424
+ - What this one trajectory did, with cited artifacts.
425
+ - Which handoff failed earliest in it, and which single gap the evidence supports.
426
+ - That the intervention was, or was not, retrieved/invoked in one fresh rerun of one job.
427
+ - That one rerun of this job class, at this revision, with this worker config, succeeded or
428
+ failed.
429
+
430
+ The result record **may not** claim:
431
+
432
+ - **`worker-limitation` from one trajectory.** One failure never establishes it — the
433
+ multi-failure guard is not a formality.
434
+ - **That the intervention caused a rerun success it was never retrieved for.** No-retrieval
435
+ success is `no-evidence-for-intervention`, full stop.
436
+ - **Any comparative or longitudinal claim** — "better than", "improved the harness", "reduced
437
+ failures by", "the model is worse at X", pass-rate or eval framing. Those need a population
438
+ and a control; this loop has one trajectory.
439
+ - **Generalization to other job classes, workers, repos, or revisions** than the ones pinned in
440
+ the job contract.
441
+ - **That a green Layer-1 gate proves anything about behavior** — quality checks are not
442
+ verification (`verification` rule).
443
+
444
+ `Known limits` is a **required, never-empty** field. A record with nothing in it is invalid on
445
+ its face, because a single-trajectory loop always has limits.
446
+
447
+ ## Overlap boundaries
448
+
449
+ - **vs `lisa-attribute-failure`** — that skill answers one narrow question about a single event
450
+ (is this Lisa's fault or the project's) and is read-only; this skill **calls it** during
451
+ Phase 4 to pick the authoritative owner, and owns everything before and after it.
452
+ - **vs `lisa-rework-triage`** — that skill fires only on confirmed QA/staging bounces and
453
+ classifies the *previous agent attempt* into its six causes; this one is the generic
454
+ single-trajectory loop that runs on any failed or expensive run, bounce or not, and actually
455
+ makes and tests an intervention.
456
+ - **vs `lisa-debrief`** — that mines a whole shipped initiative across many tickets and PRs for
457
+ candidate learnings; this investigates exactly one trajectory in depth and proves a fix.
458
+ - **vs `lisa-persist-learning`** — that is the ledger's judged write path; this skill never
459
+ writes the learnings surface itself and submits every durable lesson (and every
460
+ Lisa-attributed upstream candidate) **to** it for judgment.
461
+ - **vs the gardener (`lisa-learnings-audit`)** — that is the periodic, ticket-gated
462
+ promotion/demotion/retirement pass over accumulated knowledge; out of scope here, and this
463
+ skill never promotes a learning to a higher rung.
464
+
465
+ ## Rules
466
+
467
+ - **Headless-safe.** No interactive prompts anywhere, in either mode. Under an automation the
468
+ skill proposes and reports; it does not mutate the working tree, a managed surface, or the
469
+ default branch.
470
+ - **Never block.** A failed investigation, unreachable evidence, missing tooling, or an
471
+ unrunnable rerun degrades to a stated verdict with the gap named — it never raises an error
472
+ that stops the caller's build, intake, or verification flow.
473
+ - **Always leave a record.** Every terminal state posts a result record to the originating item
474
+ before stopping; there is no silent exit.
475
+ - **Evidence-cited.** Every claim about the baseline, the handoff, the gap, and the rerun names
476
+ a concrete artifact. An uncited classification is `unclassified`; an uncited rerun is
477
+ `not run`.
478
+ - **Idempotent per trajectory.** Same trajectory in → same fingerprint → no duplicate record, no
479
+ duplicate ticket, no duplicate branch. Dedupe before every write.
480
+ - **Bounded authority.** Direct change only at the single authoritative owner, only within the
481
+ recorded authority envelope, only on a branch, only through a PR. Anything larger is a
482
+ proposed-intervention ticket and a full stop.
483
+ - **Bounded claims.** One trajectory supports one trajectory's claim. No comparative,
484
+ longitudinal, or population claims; `Known limits` is never empty.
485
+ - **One write path for learnings.** Durable lessons are submitted to `lisa-persist-learning` for
486
+ judgment; this skill never edits the learnings ledger, `PROJECT_RULES.md`, or a rules tree,
487
+ and never promotes a learning to a higher rung.
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: lisa-jira-claim
3
+ description: "Idempotently claims one live Jira leaf ticket for direct Lisa work. Reuses jira-build-intake Phase 3b semantics through lisa-atlassian-access: configured ready-to-claimed transition, assign-only-if-unassigned, stable managed comment, and post-write verification."
4
+ allowed-tools: ["Bash", "Skill", "Read"]
5
+ ---
6
+
7
+ # Claim Jira Ticket: $ARGUMENTS
8
+
9
+ Claim exactly one canonical Jira key. All Jira access goes through `lisa-atlassian-access`; do not call MCP tools or `acli` directly. This is the reusable direct-session counterpart of `lisa-jira-build-intake` Phase 3b.
10
+
11
+ 1. Resolve merged `atlassian.cloudId`, `jira.project`, and `jira.workflow` values from local-over-global config. Require the key's project prefix to equal the configured Jira project. Resolve ready, claimed, review, environment, and terminal roles from config; do not hardcode status decisions.
12
+ 2. Invoke `lisa-jira-read-ticket <key>` immediately before mutation. Reject a resolved/terminal ticket, active blocker, `repo:<other>` ticket, any item with open children/subtasks, or an Epic per `repo-scope-split` and `leaf-only-lifecycle`.
13
+ 3. Inspect the live workflow role:
14
+ - Already claimed, review, environment-done, or another configured later non-terminal role -> preserve it and set `claim_outcome: reused`.
15
+ - Ready or an unlaned backlog leaf -> invoke `lisa-atlassian-access operation: transition key: <key> to: <configured-claimed>` and require success. This is the idempotency lock.
16
+ - Terminal/resolved -> reject; never regress completed work.
17
+ 4. If and only if the ticket is unassigned, assign it to the authenticated account through `lisa-atlassian-access` (prefer the identity-probed account id / `@me` semantics documented by Jira build intake). Leave an existing assignee untouched.
18
+ 5. Post this stable comment once through `lisa-atlassian-access operation: comment`, deduped against all existing comments:
19
+
20
+ ```text
21
+ [lisa-tracker-claim] Claimed by Lisa. Starting implementation.
22
+ ```
23
+
24
+ 6. Invoke `lisa-jira-read-ticket <key>` again. Success requires an unresolved, current-repo leaf in claimed or a later non-terminal role. An unreachable transition or failed verification is a hard failure and must not authorize a binding.
25
+ 7. Return `tracker_provider: jira`, canonical `work_item_ref: <KEY>`, `claim_outcome: claimed|reused`, assignee outcome, and the post-write status evidence.
26
+
27
+ Never create a ticket here. Never bypass `lisa-atlassian-access`.
@@ -0,0 +1,80 @@
1
+ ---
2
+ name: lisa-kane-browser
3
+ description: "Optional Lisa-owned adapter for TestMu Kane CLI empirical browser runs. Enforces project opt-in, cloud-upload approval, non-production environment allow-lists, full-mutation rollout policy, pinned-version readiness, normalized outcomes, and durable Lisa evidence handling. Never replaces project-native Playwright, Cypress, or Maestro regression tests."
4
+ allowed-tools: ["Bash", "Read", "Glob", "Grep", "Skill"]
5
+ ---
6
+
7
+ # Kane empirical browser provider
8
+
9
+ Use this skill only when a parent Lisa workflow has already classified a DOM-web empirical
10
+ verification and selected Kane from the available browser-controller providers. Kane is an
11
+ optional implementation detail, not the owner of Lisa's verification verdict.
12
+
13
+ ## Hard preconditions
14
+
15
+ 1. Read the effective `.lisa.config.json` + `.lisa.config.local.json` configuration.
16
+ 2. Require `verification.browser.kane.enabled: true`.
17
+ 3. Require `verification.browser.kane.cloudUploadApproved: true`. Kane uploads objectives,
18
+ screenshots, action logs, variables in scope, metadata, and run artifacts to TestMu Test
19
+ Manager. If approval is absent, do not run it and do not ask from inside a factory.
20
+ 4. Require the selected environment in `allowedEnvironments`. `prod` and `production` are always
21
+ rejected even if listed.
22
+ 5. Require the `use-the-product` mutation policy to resolve to `full`. During the initial rollout,
23
+ Kane must not receive a broad objective in `read-only` or `forbidden` environments.
24
+ 6. Require a disposable test identity and cleanup plan. Never use real customer records.
25
+ 7. Run `lisa kane probe <project-root> --json`. A failed probe is a tooling blocker, not a product
26
+ failure. Do not start an interactive login from an unattended factory.
27
+
28
+ ## Execute
29
+
30
+ Build one self-contained objective from the parent workflow's Validation Journey. It must state the
31
+ starting URL, identity/persona, actions, observable assertions, and cleanup expectation. Do not put
32
+ credentials or secret values in the objective; use the project's existing Kane variable bindings.
33
+
34
+ Run:
35
+
36
+ ```bash
37
+ lisa kane run <project-root> \
38
+ --environment <environment> \
39
+ --mutation full \
40
+ --url <base-url> \
41
+ --objective "<self-contained objective>" \
42
+ --json
43
+ ```
44
+
45
+ The Lisa adapter always adds Kane's non-interactive `--agent --headless` flags, bounds time and
46
+ steps, and parses the evolving event stream behind a stable contract.
47
+
48
+ ## Interpret the normalized result
49
+
50
+ - `passed` — empirical journey passed. It is not complete until `lisa-codify-verification`
51
+ encodes the same behavior in every supported native regression runner.
52
+ - `product_failed` — the live journey or assertion failed. Diagnose from evidence; a Kane
53
+ `confirmedProductBug` flag is evidence, not permission to bypass Lisa's duplicate search or
54
+ tracker-write gate.
55
+ - `tool_failed` — Kane installation, auth, schema, upload, Chrome, or control-plane failure. Never
56
+ report this as a product regression.
57
+ - `timed_out` — provider timeout. Retry only under the parent workflow's bounded retry policy.
58
+
59
+ Progress events are informational and may change between Kane releases. Automation decisions use
60
+ only Lisa's normalized result, which is derived from the terminal event and process exit code.
61
+
62
+ ## Evidence
63
+
64
+ Use the local evidence pack as the source artifact. Extract the screenshots, HAR/network log,
65
+ console log, and result summary required by the ticket's evidence manifest. Route those artifacts
66
+ through `lisa-tracker-evidence` so they become durable PR/ticket evidence. A Test Manager share URL
67
+ is secondary convenience evidence and must never be the only proof because it can expire.
68
+
69
+ Do not commit Kane session directories, credentials, browser profiles, raw variable stores, or
70
+ unreviewed recordings. Redact secrets and sensitive person-level data before attaching evidence.
71
+
72
+ ## Non-goals
73
+
74
+ - Do not install the vendor's global skill or append its `agents.md` to project instructions.
75
+ - Do not tell agents to prefer Kane for every browser task.
76
+ - Do not replace interactive native browser control when it is safer for the selected mutation
77
+ policy.
78
+ - Do not replace Playwright, Cypress, Selenium, Maestro, or Detox regression coverage.
79
+ - Do not use `kane-cli generate`, `testmd`, code export, or auto-healing as an authoritative Lisa
80
+ regression gate during the initial rollout.
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: lisa-linear-claim
3
+ description: "Idempotently claims one live Linear leaf issue for direct Lisa work. Reuses linear-build-intake Phase 3b semantics through lisa-linear-access: configured ready-to-claimed relabel, assign-only-if-unassigned, stable managed comment, and post-write verification."
4
+ allowed-tools: ["Bash", "Skill", "Read"]
5
+ ---
6
+
7
+ # Claim Linear Issue: $ARGUMENTS
8
+
9
+ Claim exactly one canonical Linear identifier such as `ENG-123`. All Linear access goes through `lisa-linear-access`. This is the reusable direct-session counterpart of `lisa-linear-build-intake` Phase 3b.
10
+
11
+ 1. Resolve merged `linear.workspace`, `linear.teamKey`, and Linear build-label roles from local-over-global config. Require the identifier's team key to equal the configured team. Resolve ready and claimed roles from config (defaults `status:ready` and `status:in-progress`); do not hardcode lifecycle decisions.
12
+ 2. Invoke `lisa-linear-read-issue <identifier>` immediately before mutation. Reject a completed/canceled issue, active blocker, `repo:<other>` issue, any issue with open sub-Issues, or an Epic per `repo-scope-split` and `leaf-only-lifecycle`.
13
+ 3. Inspect live build labels/workflow state:
14
+ - Already claimed, review, environment-done, or another configured later non-terminal role -> preserve it and set `claim_outcome: reused`.
15
+ - Ready or no build lifecycle label -> invoke `lisa-linear-access operation: save-issue`, remove ready when present, and add claimed (resolve label IDs with `list-issue-labels`, creating claimed only when missing). This is the idempotency lock.
16
+ - Terminal/completed -> reject; never regress completed work.
17
+ 4. If and only if the Issue is unassigned, resolve the authenticated viewer and set its `assigneeId` through `lisa-linear-access operation: save-issue`. Leave an existing assignee untouched.
18
+ 5. Post this stable comment once through `lisa-linear-access operation: save-comment`, deduped against all existing comments:
19
+
20
+ ```text
21
+ [lisa-tracker-claim] Claimed by Lisa. Starting implementation.
22
+ ```
23
+
24
+ 6. Invoke `lisa-linear-read-issue <identifier>` again. Success requires a non-terminal, current-repo leaf in claimed or a later non-terminal role. A failed relabel or failed verification is a hard failure and must not authorize a binding.
25
+ 7. Return `tracker_provider: linear`, canonical `work_item_ref: <IDENTIFIER>`, `claim_outcome: claimed|reused`, assignee outcome, and the post-write status evidence.
26
+
27
+ Never create an Issue here. Never bypass `lisa-linear-access`.
@@ -122,6 +122,8 @@ Execute the **Monitor** sub-flow as defined in the `intent-routing` rule (loaded
122
122
 
123
123
  The **Rails** ops-specialist composes a different subset (`ops-run-local`, `ops-deploy`, `ops-check-logs`, `ops-verify-jobs`, `ops-verify-telemetry` — X-Ray/CloudWatch traces and metrics via `ops-verify-telemetry`). When no `ops-specialist` overlay is present (e.g. NestJS, CDK, or a generic TypeScript repo), fall back to **stack-agnostic base probing** — read manifests/config to discover what's wired, then probe live sources directly (Sentry CLI/REST, `aws logs` / `aws cloudwatch` / `aws xray`, the Playwright MCP for client-side console/network), exactly as the `observability-audit` "read-then-probe" detection prescribes. The agent decides which subset to run based on the env, the repo profile, and any extra context.
124
124
 
125
+ For a configured non-production DOM environment with mutation policy `full`, `ops-browser-uat` or the stack-agnostic fallback may invoke `lisa-kane-browser` after `lisa kane probe` succeeds. Use the normalized outcome and local evidence pack; a Kane tool/auth/upload/schema failure is `PRESENT (unverified)` or a tooling warning, never an application anomaly. Under `--report-only`, Kane remains report-only too and cannot file tickets directly.
126
+
125
127
  ## Ticket filing (standalone only)
126
128
 
127
129
  After report, file what was found — **only when run standalone**, never under `--report-only`/`--dry-run` and never when nested inside `lisa-verify` (which passes `--report-only`):