@codyswann/lisa 8.8.0 → 8.10.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 (332) hide show
  1. package/README.md +21 -0
  2. package/all/copy-overwrite/scripts/lib/completion-authorization.mjs +54 -0
  3. package/all/copy-overwrite/scripts/lib/completion-proof-adapters.mjs +59 -0
  4. package/all/copy-overwrite/scripts/lib/completion-proof-markdown.mjs +1 -1
  5. package/all/copy-overwrite/scripts/lib/npm-update-helper-inventory.mjs +1 -0
  6. package/all/copy-overwrite/scripts/lib/release-switch.d.mts +91 -0
  7. package/all/copy-overwrite/scripts/lib/release-switch.mjs +1049 -0
  8. package/all/copy-overwrite/scripts/lisa-release-switch.mjs +203 -0
  9. package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +18 -5
  10. package/dist/cli/doctor-release-setting.d.ts +8 -0
  11. package/dist/cli/doctor-release-setting.d.ts.map +1 -0
  12. package/dist/cli/doctor-release-setting.js +71 -0
  13. package/dist/cli/doctor-release-setting.js.map +1 -0
  14. package/dist/cli/doctor.d.ts.map +1 -1
  15. package/dist/cli/doctor.js +2 -0
  16. package/dist/cli/doctor.js.map +1 -1
  17. package/dist/core/lisa-owned-hash-ledger.json +118 -4
  18. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  19. package/dist/core/nightly-e2e-guard-behavior-certificate.js.map +1 -1
  20. package/dist/core/upstream-evidence-manifest.json +107 -44
  21. package/package.json +4 -4
  22. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  23. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  24. package/plugins/lisa/.codex-plugin/scripts/intake-blocker-reprobe.mjs +195 -23
  25. package/plugins/lisa/.codex-plugin/scripts/operator-id-kinds.mjs +41 -2
  26. package/plugins/lisa/.codex-plugin/scripts/ready-queue-order.mjs +69 -0
  27. package/plugins/lisa/.codex-plugin/skills/lisa-doctor/SKILL.md +10 -0
  28. package/plugins/lisa/.codex-plugin/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
  29. package/plugins/lisa/.codex-plugin/skills/lisa-git-submit-pr/SKILL.md +1 -0
  30. package/plugins/lisa/.codex-plugin/skills/lisa-github-build-intake/SKILL.md +10 -0
  31. package/plugins/lisa/.codex-plugin/skills/lisa-github-validate-issue/SKILL.md +27 -1
  32. package/plugins/lisa/.codex-plugin/skills/lisa-github-write-issue/SKILL.md +34 -1
  33. package/plugins/lisa/.codex-plugin/skills/lisa-implement/SKILL.md +10 -2
  34. package/plugins/lisa/.codex-plugin/skills/lisa-jira-build-intake/SKILL.md +10 -0
  35. package/plugins/lisa/.codex-plugin/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
  36. package/plugins/lisa/.codex-plugin/skills/lisa-jira-write-ticket/SKILL.md +34 -1
  37. package/plugins/lisa/.codex-plugin/skills/lisa-linear-build-intake/SKILL.md +10 -0
  38. package/plugins/lisa/.codex-plugin/skills/lisa-linear-validate-issue/SKILL.md +26 -0
  39. package/plugins/lisa/.codex-plugin/skills/lisa-linear-write-issue/SKILL.md +34 -1
  40. package/plugins/lisa/.codex-plugin/skills/lisa-repair-intake/SKILL.md +10 -0
  41. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/validate-config.mjs +94 -4
  42. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/SKILL.md +11 -0
  43. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-cycle.mjs +3 -3
  44. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-human.mjs +3 -1
  45. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-orphans.mjs +4 -1
  46. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-queue.mjs +8 -5
  47. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/config.mjs +28 -4
  48. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/orphan-sweep.mjs +2 -1
  49. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/queue-github.mjs +4 -1
  50. package/plugins/lisa/.codex-plugin/skills/lisa-task-decomposition/SKILL.md +1 -0
  51. package/plugins/lisa/.codex-plugin/skills/lisa-track/SKILL.md +13 -1
  52. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-build-intake/SKILL.md +11 -1
  53. package/plugins/lisa/.codex-plugin/skills/lisa-verify/SKILL.md +4 -1
  54. package/plugins/lisa/hooks/inject-resolved-config.mjs +235 -3
  55. package/plugins/lisa/rules/eager/coding-philosophy.md +7 -6
  56. package/plugins/lisa/rules/reference/coding-philosophy.md +48 -0
  57. package/plugins/lisa/rules/reference/config-resolution.md +5 -2
  58. package/plugins/lisa/rules/reference/intent-routing.md +2 -2
  59. package/plugins/lisa/rules/reference/ready-role-filing.md +55 -5
  60. package/plugins/lisa/rules/reference/work-item-definition-of-ready.md +31 -0
  61. package/plugins/lisa/scripts/intake-blocker-reprobe.mjs +195 -23
  62. package/plugins/lisa/scripts/operator-id-kinds.mjs +41 -2
  63. package/plugins/lisa/scripts/ready-queue-order.mjs +69 -0
  64. package/plugins/lisa/skills/lisa-doctor/SKILL.md +10 -0
  65. package/plugins/lisa/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
  66. package/plugins/lisa/skills/lisa-git-submit-pr/SKILL.md +1 -0
  67. package/plugins/lisa/skills/lisa-github-build-intake/SKILL.md +10 -0
  68. package/plugins/lisa/skills/lisa-github-validate-issue/SKILL.md +27 -1
  69. package/plugins/lisa/skills/lisa-github-write-issue/SKILL.md +34 -1
  70. package/plugins/lisa/skills/lisa-implement/SKILL.md +10 -2
  71. package/plugins/lisa/skills/lisa-jira-build-intake/SKILL.md +10 -0
  72. package/plugins/lisa/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
  73. package/plugins/lisa/skills/lisa-jira-write-ticket/SKILL.md +34 -1
  74. package/plugins/lisa/skills/lisa-linear-build-intake/SKILL.md +10 -0
  75. package/plugins/lisa/skills/lisa-linear-validate-issue/SKILL.md +26 -0
  76. package/plugins/lisa/skills/lisa-linear-write-issue/SKILL.md +34 -1
  77. package/plugins/lisa/skills/lisa-repair-intake/SKILL.md +10 -0
  78. package/plugins/lisa/skills/lisa-secrets-access/scripts/validate-config.mjs +94 -4
  79. package/plugins/lisa/skills/lisa-session-manager/SKILL.md +11 -0
  80. package/plugins/lisa/skills/lisa-session-manager/scripts/cli-cycle.mjs +3 -3
  81. package/plugins/lisa/skills/lisa-session-manager/scripts/cli-human.mjs +3 -1
  82. package/plugins/lisa/skills/lisa-session-manager/scripts/cli-orphans.mjs +4 -1
  83. package/plugins/lisa/skills/lisa-session-manager/scripts/cli-queue.mjs +8 -5
  84. package/plugins/lisa/skills/lisa-session-manager/scripts/config.mjs +28 -4
  85. package/plugins/lisa/skills/lisa-session-manager/scripts/orphan-sweep.mjs +2 -1
  86. package/plugins/lisa/skills/lisa-session-manager/scripts/queue-github.mjs +4 -1
  87. package/plugins/lisa/skills/lisa-task-decomposition/SKILL.md +1 -0
  88. package/plugins/lisa/skills/lisa-track/SKILL.md +13 -1
  89. package/plugins/lisa/skills/lisa-tracker-build-intake/SKILL.md +11 -1
  90. package/plugins/lisa/skills/lisa-verify/SKILL.md +4 -1
  91. package/plugins/lisa-agy/plugin.json +1 -1
  92. package/plugins/lisa-agy/scripts/intake-blocker-reprobe.mjs +195 -23
  93. package/plugins/lisa-agy/scripts/operator-id-kinds.mjs +41 -2
  94. package/plugins/lisa-agy/scripts/ready-queue-order.mjs +69 -0
  95. package/plugins/lisa-agy/skills/lisa-doctor/SKILL.md +10 -0
  96. package/plugins/lisa-agy/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
  97. package/plugins/lisa-agy/skills/lisa-git-submit-pr/SKILL.md +1 -0
  98. package/plugins/lisa-agy/skills/lisa-github-build-intake/SKILL.md +10 -0
  99. package/plugins/lisa-agy/skills/lisa-github-validate-issue/SKILL.md +27 -1
  100. package/plugins/lisa-agy/skills/lisa-github-write-issue/SKILL.md +34 -1
  101. package/plugins/lisa-agy/skills/lisa-implement/SKILL.md +10 -2
  102. package/plugins/lisa-agy/skills/lisa-jira-build-intake/SKILL.md +10 -0
  103. package/plugins/lisa-agy/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
  104. package/plugins/lisa-agy/skills/lisa-jira-write-ticket/SKILL.md +34 -1
  105. package/plugins/lisa-agy/skills/lisa-linear-build-intake/SKILL.md +10 -0
  106. package/plugins/lisa-agy/skills/lisa-linear-validate-issue/SKILL.md +26 -0
  107. package/plugins/lisa-agy/skills/lisa-linear-write-issue/SKILL.md +34 -1
  108. package/plugins/lisa-agy/skills/lisa-repair-intake/SKILL.md +10 -0
  109. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/validate-config.mjs +94 -4
  110. package/plugins/lisa-agy/skills/lisa-session-manager/SKILL.md +11 -0
  111. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-cycle.mjs +3 -3
  112. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-human.mjs +3 -1
  113. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-orphans.mjs +4 -1
  114. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-queue.mjs +8 -5
  115. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/config.mjs +28 -4
  116. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/orphan-sweep.mjs +2 -1
  117. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/queue-github.mjs +4 -1
  118. package/plugins/lisa-agy/skills/lisa-task-decomposition/SKILL.md +1 -0
  119. package/plugins/lisa-agy/skills/lisa-track/SKILL.md +13 -1
  120. package/plugins/lisa-agy/skills/lisa-tracker-build-intake/SKILL.md +11 -1
  121. package/plugins/lisa-agy/skills/lisa-verify/SKILL.md +4 -1
  122. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  123. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  124. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  125. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  126. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  127. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  128. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  129. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  130. package/plugins/lisa-copilot/hooks/inject-resolved-config.mjs +235 -3
  131. package/plugins/lisa-copilot/rules/eager/coding-philosophy.md +7 -6
  132. package/plugins/lisa-copilot/rules/reference/coding-philosophy.md +48 -0
  133. package/plugins/lisa-copilot/rules/reference/config-resolution.md +5 -2
  134. package/plugins/lisa-copilot/rules/reference/intent-routing.md +2 -2
  135. package/plugins/lisa-copilot/rules/reference/ready-role-filing.md +55 -5
  136. package/plugins/lisa-copilot/rules/reference/work-item-definition-of-ready.md +31 -0
  137. package/plugins/lisa-copilot/scripts/intake-blocker-reprobe.mjs +195 -23
  138. package/plugins/lisa-copilot/scripts/operator-id-kinds.mjs +41 -2
  139. package/plugins/lisa-copilot/scripts/ready-queue-order.mjs +69 -0
  140. package/plugins/lisa-copilot/skills/lisa-doctor/SKILL.md +10 -0
  141. package/plugins/lisa-copilot/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
  142. package/plugins/lisa-copilot/skills/lisa-git-submit-pr/SKILL.md +1 -0
  143. package/plugins/lisa-copilot/skills/lisa-github-build-intake/SKILL.md +10 -0
  144. package/plugins/lisa-copilot/skills/lisa-github-validate-issue/SKILL.md +27 -1
  145. package/plugins/lisa-copilot/skills/lisa-github-write-issue/SKILL.md +34 -1
  146. package/plugins/lisa-copilot/skills/lisa-implement/SKILL.md +10 -2
  147. package/plugins/lisa-copilot/skills/lisa-jira-build-intake/SKILL.md +10 -0
  148. package/plugins/lisa-copilot/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
  149. package/plugins/lisa-copilot/skills/lisa-jira-write-ticket/SKILL.md +34 -1
  150. package/plugins/lisa-copilot/skills/lisa-linear-build-intake/SKILL.md +10 -0
  151. package/plugins/lisa-copilot/skills/lisa-linear-validate-issue/SKILL.md +26 -0
  152. package/plugins/lisa-copilot/skills/lisa-linear-write-issue/SKILL.md +34 -1
  153. package/plugins/lisa-copilot/skills/lisa-repair-intake/SKILL.md +10 -0
  154. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/validate-config.mjs +94 -4
  155. package/plugins/lisa-copilot/skills/lisa-session-manager/SKILL.md +11 -0
  156. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-cycle.mjs +3 -3
  157. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-human.mjs +3 -1
  158. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-orphans.mjs +4 -1
  159. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-queue.mjs +8 -5
  160. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/config.mjs +28 -4
  161. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/orphan-sweep.mjs +2 -1
  162. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/queue-github.mjs +4 -1
  163. package/plugins/lisa-copilot/skills/lisa-task-decomposition/SKILL.md +1 -0
  164. package/plugins/lisa-copilot/skills/lisa-track/SKILL.md +13 -1
  165. package/plugins/lisa-copilot/skills/lisa-tracker-build-intake/SKILL.md +11 -1
  166. package/plugins/lisa-copilot/skills/lisa-verify/SKILL.md +4 -1
  167. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  168. package/plugins/lisa-cursor/hooks/inject-resolved-config.mjs +235 -3
  169. package/plugins/lisa-cursor/rules/coding-philosophy-reference.mdc +48 -0
  170. package/plugins/lisa-cursor/rules/coding-philosophy.mdc +7 -6
  171. package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +5 -2
  172. package/plugins/lisa-cursor/rules/intent-routing-reference.mdc +2 -2
  173. package/plugins/lisa-cursor/rules/ready-role-filing-reference.mdc +55 -5
  174. package/plugins/lisa-cursor/rules/work-item-definition-of-ready-reference.mdc +31 -0
  175. package/plugins/lisa-cursor/scripts/intake-blocker-reprobe.mjs +195 -23
  176. package/plugins/lisa-cursor/scripts/operator-id-kinds.mjs +41 -2
  177. package/plugins/lisa-cursor/scripts/ready-queue-order.mjs +69 -0
  178. package/plugins/lisa-cursor/skills/lisa-doctor/SKILL.md +10 -0
  179. package/plugins/lisa-cursor/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
  180. package/plugins/lisa-cursor/skills/lisa-git-submit-pr/SKILL.md +1 -0
  181. package/plugins/lisa-cursor/skills/lisa-github-build-intake/SKILL.md +10 -0
  182. package/plugins/lisa-cursor/skills/lisa-github-validate-issue/SKILL.md +27 -1
  183. package/plugins/lisa-cursor/skills/lisa-github-write-issue/SKILL.md +34 -1
  184. package/plugins/lisa-cursor/skills/lisa-implement/SKILL.md +10 -2
  185. package/plugins/lisa-cursor/skills/lisa-jira-build-intake/SKILL.md +10 -0
  186. package/plugins/lisa-cursor/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
  187. package/plugins/lisa-cursor/skills/lisa-jira-write-ticket/SKILL.md +34 -1
  188. package/plugins/lisa-cursor/skills/lisa-linear-build-intake/SKILL.md +10 -0
  189. package/plugins/lisa-cursor/skills/lisa-linear-validate-issue/SKILL.md +26 -0
  190. package/plugins/lisa-cursor/skills/lisa-linear-write-issue/SKILL.md +34 -1
  191. package/plugins/lisa-cursor/skills/lisa-repair-intake/SKILL.md +10 -0
  192. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/validate-config.mjs +94 -4
  193. package/plugins/lisa-cursor/skills/lisa-session-manager/SKILL.md +11 -0
  194. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-cycle.mjs +3 -3
  195. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-human.mjs +3 -1
  196. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-orphans.mjs +4 -1
  197. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-queue.mjs +8 -5
  198. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/config.mjs +28 -4
  199. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/orphan-sweep.mjs +2 -1
  200. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/queue-github.mjs +4 -1
  201. package/plugins/lisa-cursor/skills/lisa-task-decomposition/SKILL.md +1 -0
  202. package/plugins/lisa-cursor/skills/lisa-track/SKILL.md +13 -1
  203. package/plugins/lisa-cursor/skills/lisa-tracker-build-intake/SKILL.md +11 -1
  204. package/plugins/lisa-cursor/skills/lisa-verify/SKILL.md +4 -1
  205. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  206. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  207. package/plugins/lisa-devin/hooks/inject-resolved-config.mjs +235 -3
  208. package/plugins/lisa-devin/rules/eager/coding-philosophy.md +7 -6
  209. package/plugins/lisa-devin/rules/reference/coding-philosophy.md +48 -0
  210. package/plugins/lisa-devin/rules/reference/config-resolution.md +5 -2
  211. package/plugins/lisa-devin/rules/reference/intent-routing.md +2 -2
  212. package/plugins/lisa-devin/rules/reference/ready-role-filing.md +55 -5
  213. package/plugins/lisa-devin/rules/reference/work-item-definition-of-ready.md +31 -0
  214. package/plugins/lisa-devin/scripts/intake-blocker-reprobe.mjs +195 -23
  215. package/plugins/lisa-devin/scripts/operator-id-kinds.mjs +41 -2
  216. package/plugins/lisa-devin/scripts/ready-queue-order.mjs +69 -0
  217. package/plugins/lisa-devin/skills/lisa-doctor/SKILL.md +10 -0
  218. package/plugins/lisa-devin/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
  219. package/plugins/lisa-devin/skills/lisa-git-submit-pr/SKILL.md +1 -0
  220. package/plugins/lisa-devin/skills/lisa-github-build-intake/SKILL.md +10 -0
  221. package/plugins/lisa-devin/skills/lisa-github-validate-issue/SKILL.md +27 -1
  222. package/plugins/lisa-devin/skills/lisa-github-write-issue/SKILL.md +34 -1
  223. package/plugins/lisa-devin/skills/lisa-implement/SKILL.md +10 -2
  224. package/plugins/lisa-devin/skills/lisa-jira-build-intake/SKILL.md +10 -0
  225. package/plugins/lisa-devin/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
  226. package/plugins/lisa-devin/skills/lisa-jira-write-ticket/SKILL.md +34 -1
  227. package/plugins/lisa-devin/skills/lisa-linear-build-intake/SKILL.md +10 -0
  228. package/plugins/lisa-devin/skills/lisa-linear-validate-issue/SKILL.md +26 -0
  229. package/plugins/lisa-devin/skills/lisa-linear-write-issue/SKILL.md +34 -1
  230. package/plugins/lisa-devin/skills/lisa-repair-intake/SKILL.md +10 -0
  231. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/validate-config.mjs +94 -4
  232. package/plugins/lisa-devin/skills/lisa-session-manager/SKILL.md +11 -0
  233. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-cycle.mjs +3 -3
  234. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-human.mjs +3 -1
  235. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-orphans.mjs +4 -1
  236. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-queue.mjs +8 -5
  237. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/config.mjs +28 -4
  238. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/orphan-sweep.mjs +2 -1
  239. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/queue-github.mjs +4 -1
  240. package/plugins/lisa-devin/skills/lisa-task-decomposition/SKILL.md +1 -0
  241. package/plugins/lisa-devin/skills/lisa-track/SKILL.md +13 -1
  242. package/plugins/lisa-devin/skills/lisa-tracker-build-intake/SKILL.md +11 -1
  243. package/plugins/lisa-devin/skills/lisa-verify/SKILL.md +4 -1
  244. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  245. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  246. package/plugins/lisa-expo-agy/plugin.json +1 -1
  247. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  248. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  249. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  250. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  251. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  252. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  253. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  254. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  255. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  256. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  257. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  258. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  259. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  260. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  261. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  262. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  263. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  264. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  265. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  266. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  267. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  268. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  269. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  270. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  271. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  272. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  273. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  274. package/plugins/lisa-rails-agy/plugin.json +1 -1
  275. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  276. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  277. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  278. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  279. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  280. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  281. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  282. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  283. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  284. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  285. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  286. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  287. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  288. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  289. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  290. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  291. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  292. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  293. package/plugins/src/base/hooks/inject-resolved-config.mjs +235 -3
  294. package/plugins/src/base/rules/eager/coding-philosophy.md +7 -6
  295. package/plugins/src/base/rules/reference/coding-philosophy.md +48 -0
  296. package/plugins/src/base/rules/reference/config-resolution.md +5 -2
  297. package/plugins/src/base/rules/reference/intent-routing.md +2 -2
  298. package/plugins/src/base/rules/reference/ready-role-filing.md +55 -5
  299. package/plugins/src/base/rules/reference/work-item-definition-of-ready.md +31 -0
  300. package/plugins/src/base/scripts/intake-blocker-reprobe.mjs +195 -23
  301. package/plugins/src/base/scripts/operator-id-kinds.mjs +41 -2
  302. package/plugins/src/base/scripts/ready-queue-order.mjs +69 -0
  303. package/plugins/src/base/skills/lisa-doctor/SKILL.md +10 -0
  304. package/plugins/src/base/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
  305. package/plugins/src/base/skills/lisa-git-submit-pr/SKILL.md +1 -0
  306. package/plugins/src/base/skills/lisa-github-build-intake/SKILL.md +10 -0
  307. package/plugins/src/base/skills/lisa-github-validate-issue/SKILL.md +27 -1
  308. package/plugins/src/base/skills/lisa-github-write-issue/SKILL.md +34 -1
  309. package/plugins/src/base/skills/lisa-implement/SKILL.md +10 -2
  310. package/plugins/src/base/skills/lisa-jira-build-intake/SKILL.md +10 -0
  311. package/plugins/src/base/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
  312. package/plugins/src/base/skills/lisa-jira-write-ticket/SKILL.md +34 -1
  313. package/plugins/src/base/skills/lisa-linear-build-intake/SKILL.md +10 -0
  314. package/plugins/src/base/skills/lisa-linear-validate-issue/SKILL.md +26 -0
  315. package/plugins/src/base/skills/lisa-linear-write-issue/SKILL.md +34 -1
  316. package/plugins/src/base/skills/lisa-repair-intake/SKILL.md +10 -0
  317. package/plugins/src/base/skills/lisa-secrets-access/scripts/validate-config.mjs +94 -4
  318. package/plugins/src/base/skills/lisa-session-manager/SKILL.md +11 -0
  319. package/plugins/src/base/skills/lisa-session-manager/scripts/cli-cycle.mjs +3 -3
  320. package/plugins/src/base/skills/lisa-session-manager/scripts/cli-human.mjs +3 -1
  321. package/plugins/src/base/skills/lisa-session-manager/scripts/cli-orphans.mjs +4 -1
  322. package/plugins/src/base/skills/lisa-session-manager/scripts/cli-queue.mjs +8 -5
  323. package/plugins/src/base/skills/lisa-session-manager/scripts/config.mjs +28 -4
  324. package/plugins/src/base/skills/lisa-session-manager/scripts/orphan-sweep.mjs +2 -1
  325. package/plugins/src/base/skills/lisa-session-manager/scripts/queue-github.mjs +4 -1
  326. package/plugins/src/base/skills/lisa-task-decomposition/SKILL.md +1 -0
  327. package/plugins/src/base/skills/lisa-track/SKILL.md +13 -1
  328. package/plugins/src/base/skills/lisa-tracker-build-intake/SKILL.md +11 -1
  329. package/plugins/src/base/skills/lisa-verify/SKILL.md +4 -1
  330. package/scripts/lisa-release-switch.mjs +9 -0
  331. package/scripts/two-channel-couplings.json +1 -1
  332. package/typescript/copy-overwrite/.prettierignore +2 -0
package/README.md CHANGED
@@ -547,6 +547,27 @@ Lisa can watch a queue of ready work and dispatch each item through the lifecycl
547
547
  > **Prompt for your coding agent**
548
548
  > "Which commands let this Lisa scan a work queue, dispatch ready items, repair stuck ones, and report on scheduled-automation health? Show me how I'd point one at my queue and what it expects in configuration."
549
549
 
550
+ ### Keeping every branch promotable
551
+
552
+ A piece of work should never block a deployment. Lisa holds agents to one rule: whatever is on a shared branch can be promoted to the next environment as it stands, so promoting staging to production is one step and never a job of picking out the changes that are ready.
553
+
554
+ Most work meets the rule with no extra effort. A bug fix, a small tweak or a refactor is finished and proven when it merges. Only new behavior that merges before it is finished or verified is switched off, and the switch comes out once the feature is on. A change that turns out to be wrong after it merges is reverted straight away.
555
+
556
+ Each ticket says which case it is, and Lisa checks that a switch is really gone from what is in production before it closes the ticket that removes it. Lisa does not ship a feature-flag tool: your project keeps whatever it already uses.
557
+
558
+ Three settings in `.lisa.config.json` control this. All are optional:
559
+
560
+ | Setting | What it means |
561
+ | --- | --- |
562
+ | `release.liveUsers` | Whether the project has live users. Leave it out, or set `true`, and the rule applies. Set `false` for a project that is not launched yet and the rule is off. Lisa reminds you of the setting whenever a production deployment happens while it is `false`. |
563
+ | `release.switch.mechanism` | The name of what your project uses to switch work off, for example a hosted flag service or a config file. Left out, agents use a plain configuration value that defaults to off. |
564
+ | `release.switch.guide` | Where your own instructions for adding and removing a switch live. |
565
+
566
+ An agent turns a finished feature on in production by itself once its verification passes. To keep that step for a person, add `"feature-release"` to `humanGate.humanOnly`.
567
+
568
+ > **Prompt for your coding agent**
569
+ > "Show me how this project's always-promotable setting resolved: does Lisa treat the project as having live users, which switch mechanism will agents use, and who turns a finished feature on in production? Run the project's release-switch script, don't answer from memory."
570
+
550
571
  ### Running several agents on one machine
551
572
 
552
573
  Test runners size themselves to the machine, not to what else is running on it. Left alone, each run claims roughly one worker per core, so *k* agents working at once claim *k* × cores. That is not merely slow: past a certain point the machine starts terminating processes, and a gate that was killed looks exactly like a gate that failed — so an agent "fixes" a phantom, retries, and adds the load that kills the next run.
@@ -35,6 +35,7 @@ import {
35
35
  } from "./completion-proof-source.mjs";
36
36
  import { validateConformance } from "./completion-proof-conformance.mjs";
37
37
  import { checkEstimate } from "./work-item-estimate-check.mjs";
38
+ import { removalObligation } from "./release-switch.mjs";
38
39
 
39
40
  const PENDING_PROOF = "pending-proof";
40
41
 
@@ -60,6 +61,49 @@ function validateEstimateTally(body, documents, context) {
60
61
  );
61
62
  }
62
63
 
64
+ /** How many leftover references a refusal names before it counts the rest. */
65
+ const NAMED_REFERENCES = 10;
66
+
67
+ /**
68
+ * The switch-removal done gate (CodySwannGT/lisa#5188). Work that merges
69
+ * switched off is only finished once its switch is gone: a switch left behind
70
+ * is a second code path nobody owns. So the item that declares it removes a
71
+ * switch (`## Release Switch`: `Switched off — <name>; removed by this item`)
72
+ * cannot reach done while the production commit the accepted proof names still
73
+ * references that name.
74
+ *
75
+ * It is pending, not invalid: the proof is fine and the item is simply not
76
+ * finished yet. A project marked as having no live users has turned the rule
77
+ * off, and a hand-built context that carries no search has made no claim.
78
+ */
79
+ function validateSwitchRemoved(body, context, snapshot) {
80
+ if (!context.switchReferences || context.release?.liveUsers === false) return;
81
+ const obligation = removalObligation(body, context.ref);
82
+ if (!obligation) return;
83
+ // A declaration that cannot be read is not evidence that the item removes
84
+ // nothing. Refusing here is what keeps a mangled section from switching the
85
+ // gate off.
86
+ requireProof(
87
+ !obligation.invalid,
88
+ `This item's ## Release Switch declaration cannot be read: ${(obligation.invalid ?? []).join(" ")} Correct it to one line (Live — complete and proven at merge, or Switched off — <switch-name>; removed by this item), then finish this item again.`,
89
+ PENDING_PROOF
90
+ );
91
+ const { files, searched } = context.switchReferences(
92
+ obligation.switchName,
93
+ snapshot
94
+ );
95
+ const named = files.slice(0, NAMED_REFERENCES).join(", ");
96
+ const more =
97
+ files.length > NAMED_REFERENCES
98
+ ? ` and ${files.length - NAMED_REFERENCES} more`
99
+ : "";
100
+ requireProof(
101
+ files.length === 0,
102
+ `This item removes release switch ${JSON.stringify(obligation.switchName)}, which is still referenced in ${files.length} tracked file(s) at ${searched}: ${named}${more}. Remove the switch, merge that change, then finish this item again.`,
103
+ PENDING_PROOF
104
+ );
105
+ }
106
+
63
107
  /** Stable user-facing next action, without declaring merely pending delivery failed. */
64
108
  const NEXT =
65
109
  "Run canonical Verify/evidence, publish the accepted completion proof, then retry completion.";
@@ -247,6 +291,16 @@ export function authorizeCompletion(context) {
247
291
  "Completion proof changed while it was being verified; run canonical Verify/evidence again.",
248
292
  PENDING_PROOF
249
293
  );
294
+ // The switch search reads the local repository, which takes time. It runs
295
+ // here, before the final native reads, so that a proof revoked while it
296
+ // ran is still caught by the locator-history comparison below. The
297
+ // requirement-digest check after that proves the declaration it judged is
298
+ // the one still on the item.
299
+ validateSwitchRemoved(
300
+ subject.body,
301
+ context,
302
+ chosen.record.source.production_snapshot_sha
303
+ );
250
304
  // All slow source, delivery, asset and issuer reads precede these final
251
305
  // native reads. No provider read intervenes between local final checks and
252
306
  // the caller's lifecycle-policy check/first terminal write.
@@ -11,6 +11,12 @@ import {
11
11
  MAX_NATIVE_JSON_BYTES,
12
12
  requireProof,
13
13
  } from "./completion-proof-shape.mjs";
14
+ import {
15
+ NO_REPLACE,
16
+ ReleaseSwitchError,
17
+ resolveReleaseSetting,
18
+ switchReferences,
19
+ } from "./release-switch.mjs";
14
20
 
15
21
  const READ_ERROR = "read-error";
16
22
  const WRITE_ERROR = "write-error";
@@ -32,6 +38,56 @@ function estimateSettings(config) {
32
38
  }
33
39
  }
34
40
 
41
+ /**
42
+ * Where a release switch is still referenced, for the switch-removal done gate
43
+ * (CodySwannGT/lisa#5188).
44
+ *
45
+ * It searches the production commit the accepted proof names, never a branch
46
+ * or the working tree. A finish often runs from a checkout that is behind, or
47
+ * on a feature branch that still carries the switch; a local `origin/<branch>`
48
+ * that predates the merge would answer "no references" for a switch that is in
49
+ * production. The proof's snapshot is the one tree the verification actually
50
+ * covered. When this checkout does not have that commit, or the search cannot
51
+ * run, that is a read error, never "no references".
52
+ */
53
+ function trackedSwitchReferences(run, switchName, snapshot) {
54
+ const known =
55
+ typeof snapshot === "string" &&
56
+ run("git", [NO_REPLACE, "cat-file", "-e", `${snapshot}^{commit}`], {
57
+ allowFailure: true,
58
+ }).status === 0;
59
+ if (!known)
60
+ throw new CompletionProofError(
61
+ READ_ERROR,
62
+ `This checkout does not have the production commit the accepted proof names (${String(snapshot)}), so it cannot be searched for release switch ${JSON.stringify(switchName)}. Get that exact commit, then finish this item again: run git fetch origin, and in a shallow checkout deepen it (git fetch --unshallow) or use a full clone.`
63
+ );
64
+ try {
65
+ return {
66
+ searched: `production commit ${snapshot.slice(0, 12)}`,
67
+ files: switchReferences(switchName, {
68
+ revision: snapshot,
69
+ run: args => {
70
+ const result = run("git", args, {
71
+ allowFailure: true,
72
+ maxBuffer: MAX_NATIVE_JSON_BYTES,
73
+ });
74
+ // Any diagnostic on stderr is a failure, whatever the exit status:
75
+ // a search that skipped an unreadable object is not an answer.
76
+ if (result.status === 0 && result.stderr.trim() === "")
77
+ return result.stdout;
78
+ throw Object.assign(new Error(result.stderr), {
79
+ status: result.status,
80
+ stderr: result.stderr,
81
+ });
82
+ },
83
+ }),
84
+ };
85
+ } catch (error) {
86
+ if (!(error instanceof ReleaseSwitchError)) throw error;
87
+ throw new CompletionProofError(READ_ERROR, error.message);
88
+ }
89
+ }
90
+
35
91
  export function completionContext(options) {
36
92
  const { ref, contract, run, declares, hasBacklink } = options;
37
93
  const github = contract.provider === "github";
@@ -185,6 +241,9 @@ export function completionContext(options) {
185
241
  suppliedPrUrl: options.prUrl,
186
242
  policy: options.config.verification?.completion ?? {},
187
243
  estimate: estimateSettings(options.config),
244
+ release: resolveReleaseSetting(options.config),
245
+ switchReferences: (switchName, snapshot) =>
246
+ trackedSwitchReferences(run, switchName, snapshot),
188
247
  run,
189
248
  declares,
190
249
  readSubject,
@@ -61,7 +61,7 @@ export function topLevelLines(body) {
61
61
  * @param {string} text - Trimmed top-level heading line
62
62
  * @returns {string} Comparable heading key
63
63
  */
64
- function headingKey(text) {
64
+ export function headingKey(text) {
65
65
  return withoutClosingHashes(text.replace(/^##[ \t]+/, ""))
66
66
  .trim()
67
67
  .replace(/\s+/g, " ")
@@ -37,6 +37,7 @@ const COMMON = [
37
37
  "lib/work-item-estimate-check.mjs",
38
38
  "lib/work-item-estimate-config.mjs",
39
39
  "lib/work-item-estimate-tally.mjs",
40
+ "lib/release-switch.mjs",
40
41
  "lib/process-tree-runner.mjs",
41
42
  "lib/windows-process-job.mjs",
42
43
  "lib/windows-process-job.ps1",
@@ -0,0 +1,91 @@
1
+ // This file is managed by Lisa and IS replaced on each `lisa` run.
2
+ // Do not edit directly — durable changes belong upstream in Lisa.
3
+
4
+ /** The effective `release.*` setting for a project. */
5
+ export interface ReleaseSetting {
6
+ readonly liveUsers: boolean;
7
+ readonly liveUsersSource: "declared" | "default" | "invalid";
8
+ readonly mechanism: string;
9
+ readonly mechanismSource: "declared" | "default";
10
+ readonly guide: string | null;
11
+ readonly problems: readonly string[];
12
+ }
13
+ /** A parsed `## Release Switch` declaration. */
14
+ export type ReleaseDeclaration =
15
+ | { readonly mode: "live" }
16
+ | {
17
+ readonly mode: "off";
18
+ readonly switchName: string;
19
+ readonly removedBy: string;
20
+ }
21
+ | { readonly mode: "invalid"; readonly problems: readonly string[] };
22
+ /** A gate S22 result. */
23
+ export interface ReleaseCheck {
24
+ readonly verdict: "PASS" | "FAIL" | "N/A";
25
+ readonly lines: readonly string[];
26
+ }
27
+ /** Heading of the work-item section that carries the declaration. */
28
+ export declare const RELEASE_SWITCH_HEADING: string;
29
+ /** Decision class a project lists in `humanGate.humanOnly` to reserve the production turn-on for a person. */
30
+ export declare const RELEASE_DECISION_CLASS: string;
31
+ /** Mechanism used when a project names none. */
32
+ export declare const FALLBACK_MECHANISM: string;
33
+ /** The exact text of the live declaration. */
34
+ export declare const LIVE_DECLARATION: string;
35
+ /** A switch-removal owner written as the item itself. */
36
+ export declare const THIS_ITEM: string;
37
+ /** A rejected setting value as it may safely be shown. */
38
+ export function shown(value: unknown): string;
39
+ /** Git's global option that ignores local replacement refs. */
40
+ export declare const NO_REPLACE: string;
41
+ /** Input this module cannot act on. */
42
+ export declare class ReleaseSwitchError extends Error {}
43
+ /** The project's Lisa config with `.lisa.config.local.json` layered on top. */
44
+ export function readProjectConfig(cwd: string): unknown;
45
+ /** Who turns a finished, switched-off feature on in production. */
46
+ export function turnOnOwner(config?: unknown): "agent" | "human";
47
+ /** Problems with `humanGate.humanOnly` that affect the production turn-on. */
48
+ export function turnOnProblems(config?: unknown): string[];
49
+ /** Every problem with how a project set this rule up. */
50
+ export function setupProblems(config?: unknown): string[];
51
+ /** Resolve `release.*` from an effective project config. */
52
+ export function resolveReleaseSetting(config?: unknown): ReleaseSetting;
53
+ /** Whether an item changes runtime behavior, from its stored declaration. */
54
+ export function runtimeScope(body: string): "runtime" | "none" | "underivable";
55
+ /** Parse an item's `## Release Switch` declaration; `null` when absent. */
56
+ export function parseDeclaration(body: string): ReleaseDeclaration | null;
57
+ /** Gate S22: does this item say how it is safe to promote? */
58
+ export function checkDeclaration(
59
+ body: string,
60
+ setting: { readonly liveUsers: boolean },
61
+ options?: { readonly existing?: boolean }
62
+ ): ReleaseCheck;
63
+ /** Render the `## Release Switch` section. */
64
+ export function renderDeclaration(input: {
65
+ readonly mode?: string;
66
+ readonly switchName?: string;
67
+ readonly removedBy?: string;
68
+ }): string;
69
+ /** Put a rendered declaration into a body, replacing the one that is there. */
70
+ export function upsertDeclaration(body: string, section: string): string;
71
+ /** The switch this item must remove before it can finish, if any. */
72
+ export function removalObligation(
73
+ body: string,
74
+ ref?: string
75
+ ):
76
+ | { readonly switchName: string }
77
+ | { readonly invalid: readonly string[] }
78
+ | null;
79
+ /** Tracked files that still reference a switch. */
80
+ export function switchReferences(
81
+ switchName: string,
82
+ options?: {
83
+ readonly cwd?: string;
84
+ readonly revision?: string;
85
+ readonly run?: (args: readonly string[], cwd: string) => string;
86
+ }
87
+ ): string[];
88
+ /** The branch that deploys to production, from `deploy.branches`. */
89
+ export function productionBranch(config?: unknown): string | null;
90
+ /** The notice for a production deployment in a project without live users. */
91
+ export function productionNotice(config: unknown, base: string): string | null;