@codyswann/lisa 8.7.1 → 8.9.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 (678) 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-enforcement-fallback.sh +3 -3
  9. package/all/copy-overwrite/scripts/lisa-enforcement-freshness.mjs +1 -0
  10. package/all/copy-overwrite/scripts/lisa-gates.mjs +90 -5
  11. package/all/copy-overwrite/scripts/lisa-hooks/task-readiness-guard.sh +54 -0
  12. package/all/copy-overwrite/scripts/lisa-release-switch.mjs +203 -0
  13. package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +18 -5
  14. package/dist/cli/doctor-release-setting.d.ts +8 -0
  15. package/dist/cli/doctor-release-setting.d.ts.map +1 -0
  16. package/dist/cli/doctor-release-setting.js +71 -0
  17. package/dist/cli/doctor-release-setting.js.map +1 -0
  18. package/dist/cli/doctor.d.ts.map +1 -1
  19. package/dist/cli/doctor.js +2 -0
  20. package/dist/cli/doctor.js.map +1 -1
  21. package/dist/controls/before-enforce-observe.d.ts +1 -1
  22. package/dist/controls/before-enforce-observe.d.ts.map +1 -1
  23. package/dist/controls/before-enforce-observe.js +3 -7
  24. package/dist/controls/before-enforce-observe.js.map +1 -1
  25. package/dist/controls/before-enforce-workspace.d.ts.map +1 -1
  26. package/dist/controls/before-enforce-workspace.js +16 -1
  27. package/dist/controls/before-enforce-workspace.js.map +1 -1
  28. package/dist/controls/commands/proof-check.d.ts +1 -1
  29. package/dist/controls/commands/proof-check.d.ts.map +1 -1
  30. package/dist/controls/commands/proof-check.js +11 -11
  31. package/dist/controls/commands/seed.d.ts.map +1 -1
  32. package/dist/controls/commands/seed.js +14 -30
  33. package/dist/controls/commands/seed.js.map +1 -1
  34. package/dist/controls/proof-check-plan.d.ts +5 -6
  35. package/dist/controls/proof-check-plan.d.ts.map +1 -1
  36. package/dist/controls/proof-check-plan.js +11 -10
  37. package/dist/controls/proof-check-plan.js.map +1 -1
  38. package/dist/controls/proof-check-report.d.ts.map +1 -1
  39. package/dist/controls/proof-check-report.js +2 -4
  40. package/dist/controls/proof-check-report.js.map +1 -1
  41. package/dist/controls/proof-copy-source.d.ts +24 -0
  42. package/dist/controls/proof-copy-source.d.ts.map +1 -0
  43. package/dist/controls/proof-copy-source.js +60 -0
  44. package/dist/controls/proof-copy-source.js.map +1 -0
  45. package/dist/controls/proof-copy-wording.d.ts +10 -1
  46. package/dist/controls/proof-copy-wording.d.ts.map +1 -1
  47. package/dist/controls/proof-copy-wording.js +23 -2
  48. package/dist/controls/proof-copy-wording.js.map +1 -1
  49. package/dist/controls/proof-copy-workspace.d.ts +4 -3
  50. package/dist/controls/proof-copy-workspace.d.ts.map +1 -1
  51. package/dist/controls/proof-copy-workspace.js +39 -23
  52. package/dist/controls/proof-copy-workspace.js.map +1 -1
  53. package/dist/controls/proof-copy.d.ts +1 -9
  54. package/dist/controls/proof-copy.d.ts.map +1 -1
  55. package/dist/controls/proof-copy.js +3 -45
  56. package/dist/controls/proof-copy.js.map +1 -1
  57. package/dist/controls/proof-half-run.d.ts +1 -1
  58. package/dist/controls/proof-half-run.d.ts.map +1 -1
  59. package/dist/controls/proof-half-run.js +6 -9
  60. package/dist/controls/proof-half-run.js.map +1 -1
  61. package/dist/controls/proof-plan.d.ts +17 -2
  62. package/dist/controls/proof-plan.d.ts.map +1 -1
  63. package/dist/controls/proof-plan.js +47 -3
  64. package/dist/controls/proof-plan.js.map +1 -1
  65. package/dist/controls/proof-push-fixture.d.ts +16 -0
  66. package/dist/controls/proof-push-fixture.d.ts.map +1 -0
  67. package/dist/controls/proof-push-fixture.js +137 -0
  68. package/dist/controls/proof-push-fixture.js.map +1 -0
  69. package/dist/controls/proof-types.d.ts +4 -0
  70. package/dist/controls/proof-types.d.ts.map +1 -1
  71. package/dist/controls/register-entries.d.ts.map +1 -1
  72. package/dist/controls/register-entries.js +23 -2
  73. package/dist/controls/register-entries.js.map +1 -1
  74. package/dist/controls/register-types.d.ts +4 -0
  75. package/dist/controls/register-types.d.ts.map +1 -1
  76. package/dist/controls/register-types.js.map +1 -1
  77. package/dist/controls/shipped-parts.d.ts +8 -6
  78. package/dist/controls/shipped-parts.d.ts.map +1 -1
  79. package/dist/controls/shipped-parts.js +19 -1
  80. package/dist/controls/shipped-parts.js.map +1 -1
  81. package/dist/controls/shipped-task-proofs.d.ts +24 -0
  82. package/dist/controls/shipped-task-proofs.d.ts.map +1 -0
  83. package/dist/controls/shipped-task-proofs.js +191 -0
  84. package/dist/controls/shipped-task-proofs.js.map +1 -0
  85. package/dist/core/lisa-owned-hash-ledger.json +148 -4
  86. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  87. package/dist/core/upstream-evidence-manifest.json +391 -66
  88. package/dist/migrations/ensure-seeded-gates.d.ts.map +1 -1
  89. package/dist/migrations/ensure-seeded-gates.js +4 -1
  90. package/dist/migrations/ensure-seeded-gates.js.map +1 -1
  91. package/dist/opencode/hooks-installer.d.ts.map +1 -1
  92. package/dist/opencode/hooks-installer.js +2 -0
  93. package/dist/opencode/hooks-installer.js.map +1 -1
  94. package/dist/opencode/plugin-catalog.d.ts.map +1 -1
  95. package/dist/opencode/plugin-catalog.js +5 -0
  96. package/dist/opencode/plugin-catalog.js.map +1 -1
  97. package/dist/opencode/plugin-templates/lisa-task-readiness.ts +47 -0
  98. package/dist/opencode/plugin-templates/task-readiness-guard.mjs +99 -0
  99. package/dist/opencode/plugin-templates/task-readiness-guard.sh +54 -0
  100. package/package.json +5 -4
  101. package/plugins/lisa/.claude-plugin/plugin.json +49 -2
  102. package/plugins/lisa/.codex-plugin/hooks.json +48 -1
  103. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  104. package/plugins/lisa/.codex-plugin/skills/lisa-atlassian-access/SKILL.md +13 -0
  105. package/plugins/lisa/.codex-plugin/skills/lisa-configure/SKILL.md +19 -7
  106. package/plugins/lisa/.codex-plugin/skills/lisa-doctor/SKILL.md +10 -0
  107. package/plugins/lisa/.codex-plugin/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
  108. package/plugins/lisa/.codex-plugin/skills/lisa-git-submit-pr/SKILL.md +1 -0
  109. package/plugins/lisa/.codex-plugin/skills/lisa-github-build-intake/SKILL.md +2 -0
  110. package/plugins/lisa/.codex-plugin/skills/lisa-github-claim/SKILL.md +2 -0
  111. package/plugins/lisa/.codex-plugin/skills/lisa-github-read-issue/SKILL.md +29 -0
  112. package/plugins/lisa/.codex-plugin/skills/lisa-github-read-issue/read-contract.mjs +70 -0
  113. package/plugins/lisa/.codex-plugin/skills/lisa-github-validate-issue/SKILL.md +27 -1
  114. package/plugins/lisa/.codex-plugin/skills/lisa-github-write-issue/SKILL.md +23 -0
  115. package/plugins/lisa/.codex-plugin/skills/lisa-implement/SKILL.md +15 -2
  116. package/plugins/lisa/.codex-plugin/skills/lisa-jira-build-intake/SKILL.md +2 -0
  117. package/plugins/lisa/.codex-plugin/skills/lisa-jira-claim/SKILL.md +2 -0
  118. package/plugins/lisa/.codex-plugin/skills/lisa-jira-read-ticket/SKILL.md +9 -0
  119. package/plugins/lisa/.codex-plugin/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
  120. package/plugins/lisa/.codex-plugin/skills/lisa-jira-write-ticket/SKILL.md +23 -0
  121. package/plugins/lisa/.codex-plugin/skills/lisa-linear-access/SKILL.md +102 -103
  122. package/plugins/lisa/.codex-plugin/skills/lisa-linear-access/scripts/linear-graphql.sh +428 -0
  123. package/plugins/lisa/.codex-plugin/skills/lisa-linear-build-intake/SKILL.md +2 -0
  124. package/plugins/lisa/.codex-plugin/skills/lisa-linear-claim/SKILL.md +3 -1
  125. package/plugins/lisa/.codex-plugin/skills/lisa-linear-read-issue/SKILL.md +13 -0
  126. package/plugins/lisa/.codex-plugin/skills/lisa-linear-validate-issue/SKILL.md +26 -0
  127. package/plugins/lisa/.codex-plugin/skills/lisa-linear-write-issue/SKILL.md +27 -0
  128. package/plugins/lisa/.codex-plugin/skills/lisa-notion-access/SKILL.md +37 -0
  129. package/plugins/lisa/.codex-plugin/skills/lisa-notion-access/scripts/readiness-probe.mjs +83 -0
  130. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/SKILL.md +8 -26
  131. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +89 -117
  132. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/config-files.mjs +42 -0
  133. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/config-layers.mjs +139 -0
  134. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/materialize-secrets.mjs +138 -125
  135. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +98 -10
  136. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/providers.mjs +24 -1
  137. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/routing-floor.mjs +21 -0
  138. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/surfaces.mjs +111 -36
  139. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-access.mjs +205 -0
  140. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-action.mjs +218 -0
  141. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-atlassian-native.mjs +181 -0
  142. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-context-data.mjs +75 -0
  143. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-context-write.mjs +158 -0
  144. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-github.mjs +92 -0
  145. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-intake-read.mjs +171 -0
  146. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-intake.mjs +155 -0
  147. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-native-context.mjs +71 -0
  148. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-native-contract.mjs +156 -0
  149. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-native-flow.mjs +253 -0
  150. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-native-lifecycle.mjs +106 -0
  151. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-native-state.mjs +171 -0
  152. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-readiness.mjs +347 -0
  153. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-requirements.mjs +279 -0
  154. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs +463 -0
  155. package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/validate-config.mjs +2 -21
  156. package/plugins/lisa/.codex-plugin/skills/lisa-setup-linear/SKILL.md +2 -0
  157. package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-aws/SKILL.md +8 -0
  158. package/plugins/lisa/.codex-plugin/skills/lisa-task-decomposition/SKILL.md +1 -0
  159. package/plugins/lisa/.codex-plugin/skills/lisa-track/SKILL.md +13 -1
  160. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-claim/SKILL.md +2 -0
  161. package/plugins/lisa/.codex-plugin/skills/lisa-verify/SKILL.md +4 -1
  162. package/plugins/lisa/hooks/inject-resolved-config.mjs +235 -3
  163. package/plugins/lisa/hooks/secrets-preflight.agy.sh +19 -0
  164. package/plugins/lisa/hooks/secrets-preflight.sh +42 -0
  165. package/plugins/lisa/hooks/task-readiness-guard.mjs +96 -0
  166. package/plugins/lisa/hooks/task-readiness-guard.sh +54 -0
  167. package/plugins/lisa/rules/eager/coding-philosophy.md +7 -6
  168. package/plugins/lisa/rules/reference/coding-philosophy.md +48 -0
  169. package/plugins/lisa/rules/reference/config-resolution.md +4 -1
  170. package/plugins/lisa/rules/reference/intent-routing.md +2 -2
  171. package/plugins/lisa/rules/reference/tool-access-gate.md +160 -0
  172. package/plugins/lisa/rules/reference/tracked-work.md +2 -0
  173. package/plugins/lisa/rules/reference/work-item-definition-of-ready.md +31 -0
  174. package/plugins/lisa/scripts/install-remote-agent-aws.mjs +3 -2
  175. package/plugins/lisa/scripts/remote-agent-aws-setup.sh +123 -10
  176. package/plugins/lisa/skills/lisa-atlassian-access/SKILL.md +13 -0
  177. package/plugins/lisa/skills/lisa-configure/SKILL.md +19 -7
  178. package/plugins/lisa/skills/lisa-doctor/SKILL.md +10 -0
  179. package/plugins/lisa/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
  180. package/plugins/lisa/skills/lisa-git-submit-pr/SKILL.md +1 -0
  181. package/plugins/lisa/skills/lisa-github-build-intake/SKILL.md +2 -0
  182. package/plugins/lisa/skills/lisa-github-claim/SKILL.md +2 -0
  183. package/plugins/lisa/skills/lisa-github-read-issue/SKILL.md +29 -0
  184. package/plugins/lisa/skills/lisa-github-read-issue/read-contract.mjs +70 -0
  185. package/plugins/lisa/skills/lisa-github-validate-issue/SKILL.md +27 -1
  186. package/plugins/lisa/skills/lisa-github-write-issue/SKILL.md +23 -0
  187. package/plugins/lisa/skills/lisa-implement/SKILL.md +15 -2
  188. package/plugins/lisa/skills/lisa-jira-build-intake/SKILL.md +2 -0
  189. package/plugins/lisa/skills/lisa-jira-claim/SKILL.md +2 -0
  190. package/plugins/lisa/skills/lisa-jira-read-ticket/SKILL.md +9 -0
  191. package/plugins/lisa/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
  192. package/plugins/lisa/skills/lisa-jira-write-ticket/SKILL.md +23 -0
  193. package/plugins/lisa/skills/lisa-linear-access/SKILL.md +102 -103
  194. package/plugins/lisa/skills/lisa-linear-access/scripts/linear-graphql.sh +428 -0
  195. package/plugins/lisa/skills/lisa-linear-build-intake/SKILL.md +2 -0
  196. package/plugins/lisa/skills/lisa-linear-claim/SKILL.md +3 -1
  197. package/plugins/lisa/skills/lisa-linear-read-issue/SKILL.md +13 -0
  198. package/plugins/lisa/skills/lisa-linear-validate-issue/SKILL.md +26 -0
  199. package/plugins/lisa/skills/lisa-linear-write-issue/SKILL.md +27 -0
  200. package/plugins/lisa/skills/lisa-notion-access/SKILL.md +37 -0
  201. package/plugins/lisa/skills/lisa-notion-access/scripts/readiness-probe.mjs +83 -0
  202. package/plugins/lisa/skills/lisa-secrets-access/SKILL.md +8 -26
  203. package/plugins/lisa/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +89 -117
  204. package/plugins/lisa/skills/lisa-secrets-access/scripts/config-files.mjs +42 -0
  205. package/plugins/lisa/skills/lisa-secrets-access/scripts/config-layers.mjs +139 -0
  206. package/plugins/lisa/skills/lisa-secrets-access/scripts/materialize-secrets.mjs +138 -125
  207. package/plugins/lisa/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +98 -10
  208. package/plugins/lisa/skills/lisa-secrets-access/scripts/providers.mjs +24 -1
  209. package/plugins/lisa/skills/lisa-secrets-access/scripts/routing-floor.mjs +21 -0
  210. package/plugins/lisa/skills/lisa-secrets-access/scripts/surfaces.mjs +111 -36
  211. package/plugins/lisa/skills/lisa-secrets-access/scripts/task-access.mjs +205 -0
  212. package/plugins/lisa/skills/lisa-secrets-access/scripts/task-action.mjs +218 -0
  213. package/plugins/lisa/skills/lisa-secrets-access/scripts/task-atlassian-native.mjs +181 -0
  214. package/plugins/lisa/skills/lisa-secrets-access/scripts/task-context-data.mjs +75 -0
  215. package/plugins/lisa/skills/lisa-secrets-access/scripts/task-context-write.mjs +158 -0
  216. package/plugins/lisa/skills/lisa-secrets-access/scripts/task-github.mjs +92 -0
  217. package/plugins/lisa/skills/lisa-secrets-access/scripts/task-intake-read.mjs +171 -0
  218. package/plugins/lisa/skills/lisa-secrets-access/scripts/task-intake.mjs +155 -0
  219. package/plugins/lisa/skills/lisa-secrets-access/scripts/task-native-context.mjs +71 -0
  220. package/plugins/lisa/skills/lisa-secrets-access/scripts/task-native-contract.mjs +156 -0
  221. package/plugins/lisa/skills/lisa-secrets-access/scripts/task-native-flow.mjs +253 -0
  222. package/plugins/lisa/skills/lisa-secrets-access/scripts/task-native-lifecycle.mjs +106 -0
  223. package/plugins/lisa/skills/lisa-secrets-access/scripts/task-native-state.mjs +171 -0
  224. package/plugins/lisa/skills/lisa-secrets-access/scripts/task-readiness.mjs +347 -0
  225. package/plugins/lisa/skills/lisa-secrets-access/scripts/task-requirements.mjs +279 -0
  226. package/plugins/lisa/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs +463 -0
  227. package/plugins/lisa/skills/lisa-secrets-access/scripts/validate-config.mjs +2 -21
  228. package/plugins/lisa/skills/lisa-setup-linear/SKILL.md +2 -0
  229. package/plugins/lisa/skills/lisa-setup-remote-aws/SKILL.md +8 -0
  230. package/plugins/lisa/skills/lisa-task-decomposition/SKILL.md +1 -0
  231. package/plugins/lisa/skills/lisa-track/SKILL.md +13 -1
  232. package/plugins/lisa/skills/lisa-tracker-claim/SKILL.md +2 -0
  233. package/plugins/lisa/skills/lisa-verify/SKILL.md +4 -1
  234. package/plugins/lisa-agy/hooks/secrets-preflight.agy.sh +19 -0
  235. package/plugins/lisa-agy/hooks/secrets-preflight.sh +114 -0
  236. package/plugins/lisa-agy/hooks.json +13 -0
  237. package/plugins/lisa-agy/plugin.json +1 -1
  238. package/plugins/lisa-agy/scripts/install-remote-agent-aws.mjs +3 -2
  239. package/plugins/lisa-agy/scripts/remote-agent-aws-setup.sh +123 -10
  240. package/plugins/lisa-agy/skills/lisa-atlassian-access/SKILL.md +13 -0
  241. package/plugins/lisa-agy/skills/lisa-configure/SKILL.md +19 -7
  242. package/plugins/lisa-agy/skills/lisa-doctor/SKILL.md +10 -0
  243. package/plugins/lisa-agy/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
  244. package/plugins/lisa-agy/skills/lisa-git-submit-pr/SKILL.md +1 -0
  245. package/plugins/lisa-agy/skills/lisa-github-build-intake/SKILL.md +2 -0
  246. package/plugins/lisa-agy/skills/lisa-github-claim/SKILL.md +2 -0
  247. package/plugins/lisa-agy/skills/lisa-github-read-issue/SKILL.md +29 -0
  248. package/plugins/lisa-agy/skills/lisa-github-read-issue/read-contract.mjs +70 -0
  249. package/plugins/lisa-agy/skills/lisa-github-validate-issue/SKILL.md +27 -1
  250. package/plugins/lisa-agy/skills/lisa-github-write-issue/SKILL.md +23 -0
  251. package/plugins/lisa-agy/skills/lisa-implement/SKILL.md +15 -2
  252. package/plugins/lisa-agy/skills/lisa-jira-build-intake/SKILL.md +2 -0
  253. package/plugins/lisa-agy/skills/lisa-jira-claim/SKILL.md +2 -0
  254. package/plugins/lisa-agy/skills/lisa-jira-read-ticket/SKILL.md +9 -0
  255. package/plugins/lisa-agy/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
  256. package/plugins/lisa-agy/skills/lisa-jira-write-ticket/SKILL.md +23 -0
  257. package/plugins/lisa-agy/skills/lisa-linear-access/SKILL.md +102 -103
  258. package/plugins/lisa-agy/skills/lisa-linear-access/scripts/linear-graphql.sh +428 -0
  259. package/plugins/lisa-agy/skills/lisa-linear-build-intake/SKILL.md +2 -0
  260. package/plugins/lisa-agy/skills/lisa-linear-claim/SKILL.md +3 -1
  261. package/plugins/lisa-agy/skills/lisa-linear-read-issue/SKILL.md +13 -0
  262. package/plugins/lisa-agy/skills/lisa-linear-validate-issue/SKILL.md +26 -0
  263. package/plugins/lisa-agy/skills/lisa-linear-write-issue/SKILL.md +27 -0
  264. package/plugins/lisa-agy/skills/lisa-notion-access/SKILL.md +37 -0
  265. package/plugins/lisa-agy/skills/lisa-notion-access/scripts/readiness-probe.mjs +83 -0
  266. package/plugins/lisa-agy/skills/lisa-secrets-access/SKILL.md +8 -26
  267. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +89 -117
  268. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/config-files.mjs +42 -0
  269. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/config-layers.mjs +139 -0
  270. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/materialize-secrets.mjs +138 -125
  271. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +98 -10
  272. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/providers.mjs +24 -1
  273. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/routing-floor.mjs +21 -0
  274. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/surfaces.mjs +111 -36
  275. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-access.mjs +205 -0
  276. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-action.mjs +218 -0
  277. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-atlassian-native.mjs +181 -0
  278. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-context-data.mjs +75 -0
  279. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-context-write.mjs +158 -0
  280. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-github.mjs +92 -0
  281. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-intake-read.mjs +171 -0
  282. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-intake.mjs +155 -0
  283. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-native-context.mjs +71 -0
  284. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-native-contract.mjs +156 -0
  285. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-native-flow.mjs +253 -0
  286. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-native-lifecycle.mjs +106 -0
  287. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-native-state.mjs +171 -0
  288. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-readiness.mjs +347 -0
  289. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-requirements.mjs +279 -0
  290. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs +463 -0
  291. package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/validate-config.mjs +2 -21
  292. package/plugins/lisa-agy/skills/lisa-setup-linear/SKILL.md +2 -0
  293. package/plugins/lisa-agy/skills/lisa-setup-remote-aws/SKILL.md +8 -0
  294. package/plugins/lisa-agy/skills/lisa-task-decomposition/SKILL.md +1 -0
  295. package/plugins/lisa-agy/skills/lisa-track/SKILL.md +13 -1
  296. package/plugins/lisa-agy/skills/lisa-tracker-claim/SKILL.md +2 -0
  297. package/plugins/lisa-agy/skills/lisa-verify/SKILL.md +4 -1
  298. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  299. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  300. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  301. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  302. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  303. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  304. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  305. package/plugins/lisa-copilot/.claude-plugin/plugin.json +49 -2
  306. package/plugins/lisa-copilot/hooks/inject-resolved-config.mjs +235 -3
  307. package/plugins/lisa-copilot/hooks/secrets-preflight.sh +42 -0
  308. package/plugins/lisa-copilot/hooks/task-readiness-guard.mjs +96 -0
  309. package/plugins/lisa-copilot/hooks/task-readiness-guard.sh +54 -0
  310. package/plugins/lisa-copilot/rules/eager/coding-philosophy.md +7 -6
  311. package/plugins/lisa-copilot/rules/reference/coding-philosophy.md +48 -0
  312. package/plugins/lisa-copilot/rules/reference/config-resolution.md +4 -1
  313. package/plugins/lisa-copilot/rules/reference/intent-routing.md +2 -2
  314. package/plugins/lisa-copilot/rules/reference/tool-access-gate.md +160 -0
  315. package/plugins/lisa-copilot/rules/reference/tracked-work.md +2 -0
  316. package/plugins/lisa-copilot/rules/reference/work-item-definition-of-ready.md +31 -0
  317. package/plugins/lisa-copilot/scripts/install-remote-agent-aws.mjs +3 -2
  318. package/plugins/lisa-copilot/scripts/remote-agent-aws-setup.sh +123 -10
  319. package/plugins/lisa-copilot/skills/lisa-atlassian-access/SKILL.md +13 -0
  320. package/plugins/lisa-copilot/skills/lisa-configure/SKILL.md +19 -7
  321. package/plugins/lisa-copilot/skills/lisa-doctor/SKILL.md +10 -0
  322. package/plugins/lisa-copilot/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
  323. package/plugins/lisa-copilot/skills/lisa-git-submit-pr/SKILL.md +1 -0
  324. package/plugins/lisa-copilot/skills/lisa-github-build-intake/SKILL.md +2 -0
  325. package/plugins/lisa-copilot/skills/lisa-github-claim/SKILL.md +2 -0
  326. package/plugins/lisa-copilot/skills/lisa-github-read-issue/SKILL.md +29 -0
  327. package/plugins/lisa-copilot/skills/lisa-github-read-issue/read-contract.mjs +70 -0
  328. package/plugins/lisa-copilot/skills/lisa-github-validate-issue/SKILL.md +27 -1
  329. package/plugins/lisa-copilot/skills/lisa-github-write-issue/SKILL.md +23 -0
  330. package/plugins/lisa-copilot/skills/lisa-implement/SKILL.md +15 -2
  331. package/plugins/lisa-copilot/skills/lisa-jira-build-intake/SKILL.md +2 -0
  332. package/plugins/lisa-copilot/skills/lisa-jira-claim/SKILL.md +2 -0
  333. package/plugins/lisa-copilot/skills/lisa-jira-read-ticket/SKILL.md +9 -0
  334. package/plugins/lisa-copilot/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
  335. package/plugins/lisa-copilot/skills/lisa-jira-write-ticket/SKILL.md +23 -0
  336. package/plugins/lisa-copilot/skills/lisa-linear-access/SKILL.md +102 -103
  337. package/plugins/lisa-copilot/skills/lisa-linear-access/scripts/linear-graphql.sh +428 -0
  338. package/plugins/lisa-copilot/skills/lisa-linear-build-intake/SKILL.md +2 -0
  339. package/plugins/lisa-copilot/skills/lisa-linear-claim/SKILL.md +3 -1
  340. package/plugins/lisa-copilot/skills/lisa-linear-read-issue/SKILL.md +13 -0
  341. package/plugins/lisa-copilot/skills/lisa-linear-validate-issue/SKILL.md +26 -0
  342. package/plugins/lisa-copilot/skills/lisa-linear-write-issue/SKILL.md +27 -0
  343. package/plugins/lisa-copilot/skills/lisa-notion-access/SKILL.md +37 -0
  344. package/plugins/lisa-copilot/skills/lisa-notion-access/scripts/readiness-probe.mjs +83 -0
  345. package/plugins/lisa-copilot/skills/lisa-secrets-access/SKILL.md +8 -26
  346. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +89 -117
  347. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/config-files.mjs +42 -0
  348. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/config-layers.mjs +139 -0
  349. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/materialize-secrets.mjs +138 -125
  350. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +98 -10
  351. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/providers.mjs +24 -1
  352. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/routing-floor.mjs +21 -0
  353. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/surfaces.mjs +111 -36
  354. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-access.mjs +205 -0
  355. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-action.mjs +218 -0
  356. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-atlassian-native.mjs +181 -0
  357. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-context-data.mjs +75 -0
  358. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-context-write.mjs +158 -0
  359. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-github.mjs +92 -0
  360. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-intake-read.mjs +171 -0
  361. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-intake.mjs +155 -0
  362. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-native-context.mjs +71 -0
  363. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-native-contract.mjs +156 -0
  364. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-native-flow.mjs +253 -0
  365. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-native-lifecycle.mjs +106 -0
  366. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-native-state.mjs +171 -0
  367. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-readiness.mjs +347 -0
  368. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-requirements.mjs +279 -0
  369. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs +463 -0
  370. package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/validate-config.mjs +2 -21
  371. package/plugins/lisa-copilot/skills/lisa-setup-linear/SKILL.md +2 -0
  372. package/plugins/lisa-copilot/skills/lisa-setup-remote-aws/SKILL.md +8 -0
  373. package/plugins/lisa-copilot/skills/lisa-task-decomposition/SKILL.md +1 -0
  374. package/plugins/lisa-copilot/skills/lisa-track/SKILL.md +13 -1
  375. package/plugins/lisa-copilot/skills/lisa-tracker-claim/SKILL.md +2 -0
  376. package/plugins/lisa-copilot/skills/lisa-verify/SKILL.md +4 -1
  377. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  378. package/plugins/lisa-cursor/hooks/hooks.json +18 -1
  379. package/plugins/lisa-cursor/hooks/inject-resolved-config.mjs +235 -3
  380. package/plugins/lisa-cursor/hooks/secrets-preflight.sh +42 -0
  381. package/plugins/lisa-cursor/hooks/task-readiness-guard.mjs +96 -0
  382. package/plugins/lisa-cursor/hooks/task-readiness-guard.sh +54 -0
  383. package/plugins/lisa-cursor/rules/coding-philosophy-reference.mdc +48 -0
  384. package/plugins/lisa-cursor/rules/coding-philosophy.mdc +7 -6
  385. package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +4 -1
  386. package/plugins/lisa-cursor/rules/intent-routing-reference.mdc +2 -2
  387. package/plugins/lisa-cursor/rules/tool-access-gate-reference.mdc +160 -0
  388. package/plugins/lisa-cursor/rules/tracked-work-reference.mdc +2 -0
  389. package/plugins/lisa-cursor/rules/work-item-definition-of-ready-reference.mdc +31 -0
  390. package/plugins/lisa-cursor/scripts/install-remote-agent-aws.mjs +3 -2
  391. package/plugins/lisa-cursor/scripts/remote-agent-aws-setup.sh +123 -10
  392. package/plugins/lisa-cursor/skills/lisa-atlassian-access/SKILL.md +13 -0
  393. package/plugins/lisa-cursor/skills/lisa-configure/SKILL.md +19 -7
  394. package/plugins/lisa-cursor/skills/lisa-doctor/SKILL.md +10 -0
  395. package/plugins/lisa-cursor/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
  396. package/plugins/lisa-cursor/skills/lisa-git-submit-pr/SKILL.md +1 -0
  397. package/plugins/lisa-cursor/skills/lisa-github-build-intake/SKILL.md +2 -0
  398. package/plugins/lisa-cursor/skills/lisa-github-claim/SKILL.md +2 -0
  399. package/plugins/lisa-cursor/skills/lisa-github-read-issue/SKILL.md +29 -0
  400. package/plugins/lisa-cursor/skills/lisa-github-read-issue/read-contract.mjs +70 -0
  401. package/plugins/lisa-cursor/skills/lisa-github-validate-issue/SKILL.md +27 -1
  402. package/plugins/lisa-cursor/skills/lisa-github-write-issue/SKILL.md +23 -0
  403. package/plugins/lisa-cursor/skills/lisa-implement/SKILL.md +15 -2
  404. package/plugins/lisa-cursor/skills/lisa-jira-build-intake/SKILL.md +2 -0
  405. package/plugins/lisa-cursor/skills/lisa-jira-claim/SKILL.md +2 -0
  406. package/plugins/lisa-cursor/skills/lisa-jira-read-ticket/SKILL.md +9 -0
  407. package/plugins/lisa-cursor/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
  408. package/plugins/lisa-cursor/skills/lisa-jira-write-ticket/SKILL.md +23 -0
  409. package/plugins/lisa-cursor/skills/lisa-linear-access/SKILL.md +102 -103
  410. package/plugins/lisa-cursor/skills/lisa-linear-access/scripts/linear-graphql.sh +428 -0
  411. package/plugins/lisa-cursor/skills/lisa-linear-build-intake/SKILL.md +2 -0
  412. package/plugins/lisa-cursor/skills/lisa-linear-claim/SKILL.md +3 -1
  413. package/plugins/lisa-cursor/skills/lisa-linear-read-issue/SKILL.md +13 -0
  414. package/plugins/lisa-cursor/skills/lisa-linear-validate-issue/SKILL.md +26 -0
  415. package/plugins/lisa-cursor/skills/lisa-linear-write-issue/SKILL.md +27 -0
  416. package/plugins/lisa-cursor/skills/lisa-notion-access/SKILL.md +37 -0
  417. package/plugins/lisa-cursor/skills/lisa-notion-access/scripts/readiness-probe.mjs +83 -0
  418. package/plugins/lisa-cursor/skills/lisa-secrets-access/SKILL.md +8 -26
  419. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +89 -117
  420. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/config-files.mjs +42 -0
  421. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/config-layers.mjs +139 -0
  422. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/materialize-secrets.mjs +138 -125
  423. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +98 -10
  424. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/providers.mjs +24 -1
  425. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/routing-floor.mjs +21 -0
  426. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/surfaces.mjs +111 -36
  427. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-access.mjs +205 -0
  428. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-action.mjs +218 -0
  429. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-atlassian-native.mjs +181 -0
  430. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-context-data.mjs +75 -0
  431. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-context-write.mjs +158 -0
  432. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-github.mjs +92 -0
  433. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-intake-read.mjs +171 -0
  434. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-intake.mjs +155 -0
  435. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-native-context.mjs +71 -0
  436. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-native-contract.mjs +156 -0
  437. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-native-flow.mjs +253 -0
  438. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-native-lifecycle.mjs +106 -0
  439. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-native-state.mjs +171 -0
  440. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-readiness.mjs +347 -0
  441. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-requirements.mjs +279 -0
  442. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs +463 -0
  443. package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/validate-config.mjs +2 -21
  444. package/plugins/lisa-cursor/skills/lisa-setup-linear/SKILL.md +2 -0
  445. package/plugins/lisa-cursor/skills/lisa-setup-remote-aws/SKILL.md +8 -0
  446. package/plugins/lisa-cursor/skills/lisa-task-decomposition/SKILL.md +1 -0
  447. package/plugins/lisa-cursor/skills/lisa-track/SKILL.md +13 -1
  448. package/plugins/lisa-cursor/skills/lisa-tracker-claim/SKILL.md +2 -0
  449. package/plugins/lisa-cursor/skills/lisa-verify/SKILL.md +4 -1
  450. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  451. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  452. package/plugins/lisa-devin/hooks/inject-resolved-config.mjs +235 -3
  453. package/plugins/lisa-devin/hooks/secrets-preflight.sh +42 -0
  454. package/plugins/lisa-devin/hooks/task-readiness-guard.mjs +96 -0
  455. package/plugins/lisa-devin/hooks/task-readiness-guard.sh +54 -0
  456. package/plugins/lisa-devin/hooks.json +43 -1
  457. package/plugins/lisa-devin/rules/eager/coding-philosophy.md +7 -6
  458. package/plugins/lisa-devin/rules/reference/coding-philosophy.md +48 -0
  459. package/plugins/lisa-devin/rules/reference/config-resolution.md +4 -1
  460. package/plugins/lisa-devin/rules/reference/intent-routing.md +2 -2
  461. package/plugins/lisa-devin/rules/reference/tool-access-gate.md +160 -0
  462. package/plugins/lisa-devin/rules/reference/tracked-work.md +2 -0
  463. package/plugins/lisa-devin/rules/reference/work-item-definition-of-ready.md +31 -0
  464. package/plugins/lisa-devin/scripts/install-remote-agent-aws.mjs +3 -2
  465. package/plugins/lisa-devin/scripts/remote-agent-aws-setup.sh +123 -10
  466. package/plugins/lisa-devin/skills/lisa-atlassian-access/SKILL.md +13 -0
  467. package/plugins/lisa-devin/skills/lisa-configure/SKILL.md +19 -7
  468. package/plugins/lisa-devin/skills/lisa-doctor/SKILL.md +10 -0
  469. package/plugins/lisa-devin/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
  470. package/plugins/lisa-devin/skills/lisa-git-submit-pr/SKILL.md +1 -0
  471. package/plugins/lisa-devin/skills/lisa-github-build-intake/SKILL.md +2 -0
  472. package/plugins/lisa-devin/skills/lisa-github-claim/SKILL.md +2 -0
  473. package/plugins/lisa-devin/skills/lisa-github-read-issue/SKILL.md +29 -0
  474. package/plugins/lisa-devin/skills/lisa-github-read-issue/read-contract.mjs +70 -0
  475. package/plugins/lisa-devin/skills/lisa-github-validate-issue/SKILL.md +27 -1
  476. package/plugins/lisa-devin/skills/lisa-github-write-issue/SKILL.md +23 -0
  477. package/plugins/lisa-devin/skills/lisa-implement/SKILL.md +15 -2
  478. package/plugins/lisa-devin/skills/lisa-jira-build-intake/SKILL.md +2 -0
  479. package/plugins/lisa-devin/skills/lisa-jira-claim/SKILL.md +2 -0
  480. package/plugins/lisa-devin/skills/lisa-jira-read-ticket/SKILL.md +9 -0
  481. package/plugins/lisa-devin/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
  482. package/plugins/lisa-devin/skills/lisa-jira-write-ticket/SKILL.md +23 -0
  483. package/plugins/lisa-devin/skills/lisa-linear-access/SKILL.md +102 -103
  484. package/plugins/lisa-devin/skills/lisa-linear-access/scripts/linear-graphql.sh +428 -0
  485. package/plugins/lisa-devin/skills/lisa-linear-build-intake/SKILL.md +2 -0
  486. package/plugins/lisa-devin/skills/lisa-linear-claim/SKILL.md +3 -1
  487. package/plugins/lisa-devin/skills/lisa-linear-read-issue/SKILL.md +13 -0
  488. package/plugins/lisa-devin/skills/lisa-linear-validate-issue/SKILL.md +26 -0
  489. package/plugins/lisa-devin/skills/lisa-linear-write-issue/SKILL.md +27 -0
  490. package/plugins/lisa-devin/skills/lisa-notion-access/SKILL.md +37 -0
  491. package/plugins/lisa-devin/skills/lisa-notion-access/scripts/readiness-probe.mjs +83 -0
  492. package/plugins/lisa-devin/skills/lisa-secrets-access/SKILL.md +8 -26
  493. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +89 -117
  494. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/config-files.mjs +42 -0
  495. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/config-layers.mjs +139 -0
  496. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/materialize-secrets.mjs +138 -125
  497. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +98 -10
  498. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/providers.mjs +24 -1
  499. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/routing-floor.mjs +21 -0
  500. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/surfaces.mjs +111 -36
  501. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-access.mjs +205 -0
  502. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-action.mjs +218 -0
  503. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-atlassian-native.mjs +181 -0
  504. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-context-data.mjs +75 -0
  505. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-context-write.mjs +158 -0
  506. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-github.mjs +92 -0
  507. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-intake-read.mjs +171 -0
  508. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-intake.mjs +155 -0
  509. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-native-context.mjs +71 -0
  510. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-native-contract.mjs +156 -0
  511. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-native-flow.mjs +253 -0
  512. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-native-lifecycle.mjs +106 -0
  513. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-native-state.mjs +171 -0
  514. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-readiness.mjs +347 -0
  515. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-requirements.mjs +279 -0
  516. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs +463 -0
  517. package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/validate-config.mjs +2 -21
  518. package/plugins/lisa-devin/skills/lisa-setup-linear/SKILL.md +2 -0
  519. package/plugins/lisa-devin/skills/lisa-setup-remote-aws/SKILL.md +8 -0
  520. package/plugins/lisa-devin/skills/lisa-task-decomposition/SKILL.md +1 -0
  521. package/plugins/lisa-devin/skills/lisa-track/SKILL.md +13 -1
  522. package/plugins/lisa-devin/skills/lisa-tracker-claim/SKILL.md +2 -0
  523. package/plugins/lisa-devin/skills/lisa-verify/SKILL.md +4 -1
  524. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  525. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  526. package/plugins/lisa-expo-agy/plugin.json +1 -1
  527. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  528. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  529. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  530. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  531. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  532. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  533. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  534. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  535. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  536. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  537. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  538. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  539. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  540. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  541. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  542. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  543. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  544. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  545. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  546. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  547. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  548. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  549. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  550. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  551. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  552. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  553. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  554. package/plugins/lisa-rails-agy/plugin.json +1 -1
  555. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  556. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  557. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  558. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  559. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  560. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  561. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  562. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  563. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  564. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  565. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  566. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  567. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  568. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  569. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  570. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  571. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  572. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  573. package/plugins/materialized-artifacts.json +2 -0
  574. package/plugins/src/base/.claude-plugin/plugin.json +25 -1
  575. package/plugins/src/base/hooks/inject-resolved-config.mjs +235 -3
  576. package/plugins/src/base/hooks/secrets-preflight.agy.sh +19 -0
  577. package/plugins/src/base/hooks/secrets-preflight.sh +42 -0
  578. package/plugins/src/base/hooks/task-readiness-guard.mjs +96 -0
  579. package/plugins/src/base/hooks/task-readiness-guard.sh +51 -0
  580. package/plugins/src/base/rules/eager/coding-philosophy.md +7 -6
  581. package/plugins/src/base/rules/reference/coding-philosophy.md +48 -0
  582. package/plugins/src/base/rules/reference/config-resolution.md +4 -1
  583. package/plugins/src/base/rules/reference/intent-routing.md +2 -2
  584. package/plugins/src/base/rules/reference/tool-access-gate.md +160 -0
  585. package/plugins/src/base/rules/reference/tracked-work.md +2 -0
  586. package/plugins/src/base/rules/reference/work-item-definition-of-ready.md +31 -0
  587. package/plugins/src/base/scripts/install-remote-agent-aws.mjs +3 -2
  588. package/plugins/src/base/scripts/remote-agent-aws-setup.sh +123 -10
  589. package/plugins/src/base/skills/lisa-atlassian-access/SKILL.md +13 -0
  590. package/plugins/src/base/skills/lisa-configure/SKILL.md +19 -7
  591. package/plugins/src/base/skills/lisa-doctor/SKILL.md +10 -0
  592. package/plugins/src/base/skills/lisa-drive-pr-to-merge/SKILL.md +9 -0
  593. package/plugins/src/base/skills/lisa-git-submit-pr/SKILL.md +1 -0
  594. package/plugins/src/base/skills/lisa-github-build-intake/SKILL.md +2 -0
  595. package/plugins/src/base/skills/lisa-github-claim/SKILL.md +2 -0
  596. package/plugins/src/base/skills/lisa-github-read-issue/SKILL.md +29 -0
  597. package/plugins/src/base/skills/lisa-github-read-issue/read-contract.mjs +70 -0
  598. package/plugins/src/base/skills/lisa-github-validate-issue/SKILL.md +27 -1
  599. package/plugins/src/base/skills/lisa-github-write-issue/SKILL.md +23 -0
  600. package/plugins/src/base/skills/lisa-implement/SKILL.md +15 -2
  601. package/plugins/src/base/skills/lisa-jira-build-intake/SKILL.md +2 -0
  602. package/plugins/src/base/skills/lisa-jira-claim/SKILL.md +2 -0
  603. package/plugins/src/base/skills/lisa-jira-read-ticket/SKILL.md +9 -0
  604. package/plugins/src/base/skills/lisa-jira-validate-ticket/SKILL.md +27 -1
  605. package/plugins/src/base/skills/lisa-jira-write-ticket/SKILL.md +23 -0
  606. package/plugins/src/base/skills/lisa-linear-access/SKILL.md +102 -103
  607. package/plugins/src/base/skills/lisa-linear-access/scripts/linear-graphql.sh +428 -0
  608. package/plugins/src/base/skills/lisa-linear-build-intake/SKILL.md +2 -0
  609. package/plugins/src/base/skills/lisa-linear-claim/SKILL.md +3 -1
  610. package/plugins/src/base/skills/lisa-linear-read-issue/SKILL.md +13 -0
  611. package/plugins/src/base/skills/lisa-linear-validate-issue/SKILL.md +26 -0
  612. package/plugins/src/base/skills/lisa-linear-write-issue/SKILL.md +27 -0
  613. package/plugins/src/base/skills/lisa-notion-access/SKILL.md +37 -0
  614. package/plugins/src/base/skills/lisa-notion-access/scripts/readiness-probe.mjs +83 -0
  615. package/plugins/src/base/skills/lisa-secrets-access/SKILL.md +8 -26
  616. package/plugins/src/base/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +89 -117
  617. package/plugins/src/base/skills/lisa-secrets-access/scripts/config-files.mjs +42 -0
  618. package/plugins/src/base/skills/lisa-secrets-access/scripts/config-layers.mjs +139 -0
  619. package/plugins/src/base/skills/lisa-secrets-access/scripts/materialize-secrets.mjs +138 -125
  620. package/plugins/src/base/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +98 -10
  621. package/plugins/src/base/skills/lisa-secrets-access/scripts/providers.mjs +24 -1
  622. package/plugins/src/base/skills/lisa-secrets-access/scripts/routing-floor.mjs +21 -0
  623. package/plugins/src/base/skills/lisa-secrets-access/scripts/surfaces.mjs +111 -36
  624. package/plugins/src/base/skills/lisa-secrets-access/scripts/task-access.mjs +205 -0
  625. package/plugins/src/base/skills/lisa-secrets-access/scripts/task-action.mjs +218 -0
  626. package/plugins/src/base/skills/lisa-secrets-access/scripts/task-atlassian-native.mjs +181 -0
  627. package/plugins/src/base/skills/lisa-secrets-access/scripts/task-context-data.mjs +75 -0
  628. package/plugins/src/base/skills/lisa-secrets-access/scripts/task-context-write.mjs +158 -0
  629. package/plugins/src/base/skills/lisa-secrets-access/scripts/task-github.mjs +92 -0
  630. package/plugins/src/base/skills/lisa-secrets-access/scripts/task-intake-read.mjs +171 -0
  631. package/plugins/src/base/skills/lisa-secrets-access/scripts/task-intake.mjs +155 -0
  632. package/plugins/src/base/skills/lisa-secrets-access/scripts/task-native-context.mjs +71 -0
  633. package/plugins/src/base/skills/lisa-secrets-access/scripts/task-native-contract.mjs +156 -0
  634. package/plugins/src/base/skills/lisa-secrets-access/scripts/task-native-flow.mjs +253 -0
  635. package/plugins/src/base/skills/lisa-secrets-access/scripts/task-native-lifecycle.mjs +106 -0
  636. package/plugins/src/base/skills/lisa-secrets-access/scripts/task-native-state.mjs +171 -0
  637. package/plugins/src/base/skills/lisa-secrets-access/scripts/task-readiness.mjs +347 -0
  638. package/plugins/src/base/skills/lisa-secrets-access/scripts/task-requirements.mjs +279 -0
  639. package/plugins/src/base/skills/lisa-secrets-access/scripts/task-tracker-intake.mjs +463 -0
  640. package/plugins/src/base/skills/lisa-secrets-access/scripts/validate-config.mjs +2 -21
  641. package/plugins/src/base/skills/lisa-setup-linear/SKILL.md +2 -0
  642. package/plugins/src/base/skills/lisa-setup-remote-aws/SKILL.md +8 -0
  643. package/plugins/src/base/skills/lisa-task-decomposition/SKILL.md +1 -0
  644. package/plugins/src/base/skills/lisa-track/SKILL.md +13 -1
  645. package/plugins/src/base/skills/lisa-tracker-claim/SKILL.md +2 -0
  646. package/plugins/src/base/skills/lisa-verify/SKILL.md +4 -1
  647. package/scripts/build-plugins.sh +1 -1
  648. package/scripts/copy-opencode-plugin-templates.mjs +2 -0
  649. package/scripts/generate-agy-plugin-artifacts.mjs +8 -0
  650. package/scripts/lib/per-agent-hook-filter.mjs +1 -1
  651. package/scripts/lisa-enforcement-fallback.sh +3 -3
  652. package/scripts/lisa-enforcement-freshness.mjs +1 -0
  653. package/scripts/lisa-release-switch.mjs +9 -0
  654. package/scripts/two-channel-couplings.json +2 -2
  655. package/typescript/copy-overwrite/.prettierignore +2 -0
  656. package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-code-style-slow.clean.patch +25 -0
  657. package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-code-style-slow.violation.patch +28 -0
  658. package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-code-style.clean.patch +13 -0
  659. package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-code-style.violation.patch +13 -0
  660. package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-coverage-adequacy.clean.patch +6 -0
  661. package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-coverage-adequacy.violation.patch +7 -0
  662. package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-dead-code.clean.patch +7 -0
  663. package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-dead-code.violation.patch +7 -0
  664. package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-dependency-vulnerability.clean.patch +6 -0
  665. package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-dependency-vulnerability.violation.patch +6 -0
  666. package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-format-conformance.clean.patch +8 -0
  667. package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-format-conformance.violation.patch +7 -0
  668. package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-structural-rules.clean.patch +14 -0
  669. package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-structural-rules.violation.patch +14 -0
  670. package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-test-correctness.clean.patch +10 -0
  671. package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-test-correctness.violation.patch +10 -0
  672. package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-test-integration.clean.patch +10 -0
  673. package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-test-integration.violation.patch +10 -0
  674. package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-traceability.clean.patch +6 -0
  675. package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-traceability.violation.patch +6 -0
  676. package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-type-correctness.clean.patch +10 -0
  677. package/typescript/create-only/.lisa/controls/proofs/lisa-typescript-type-correctness.violation.patch +10 -0
  678. package/typescript/package-lisa/package.lisa.json +2 -3
@@ -259,6 +259,29 @@ const LOW_CONFIDENCE_VALUES = ["human-triage", "auto-merge"];
259
259
  /** The mode in force when `humanGate.mode` is absent. */
260
260
  const DEFAULT_MODE = HUMAN_GATE_MODE_VALUES[0];
261
261
 
262
+ /**
263
+ * Whether the project has live users (CodySwannGT/lisa#5188). It decides
264
+ * whether the always-promotable rule applies, so a session must see how it
265
+ * resolved even when the project declares nothing. Absent means `true`; a value
266
+ * that is not a boolean is treated as `true`, the stricter option. Both, and
267
+ * the fallback switch mechanism below, are copied from
268
+ * `all/copy-overwrite/scripts/lib/release-switch.mjs` (not importable from a
269
+ * plugin payload) and pinned against it by this hook's wiring test.
270
+ */
271
+ const LIVE_USERS_PATH = "release.liveUsers";
272
+
273
+ /** What `release.liveUsers` resolves to when absent or invalid. */
274
+ const DEFAULT_LIVE_USERS = "true";
275
+
276
+ /** The switch mechanism a project names, if any. */
277
+ const SWITCH_MECHANISM_PATH = "release.switch.mechanism";
278
+
279
+ /** The mechanism in force when none is named: a plain configuration value that defaults to off. */
280
+ const DEFAULT_SWITCH_MECHANISM = "config-value";
281
+
282
+ /** The module that owns the `release.*` setting. */
283
+ const RELEASE_OWNER = "all/copy-overwrite/scripts/lib/release-switch.mjs";
284
+
262
285
  /**
263
286
  * Keys Lisa supplies a built-in value for when a project declares none.
264
287
  *
@@ -315,6 +338,12 @@ export const BUILT_IN_DEFAULTS = [
315
338
  strict: "default",
316
339
  owner: "src/core/project-config-dependencies.ts",
317
340
  },
341
+ { path: LIVE_USERS_PATH, value: DEFAULT_LIVE_USERS, owner: RELEASE_OWNER },
342
+ {
343
+ path: SWITCH_MECHANISM_PATH,
344
+ value: DEFAULT_SWITCH_MECHANISM,
345
+ owner: RELEASE_OWNER,
346
+ },
318
347
  ];
319
348
 
320
349
  /**
@@ -341,6 +370,7 @@ const SUBTREE_ORDER = [
341
370
  "repo",
342
371
  "workItem",
343
372
  "deploy",
373
+ "release",
344
374
  "github",
345
375
  "jira",
346
376
  "linear",
@@ -812,12 +842,25 @@ function invalidModeLine(config, owner) {
812
842
  function renderHumanGate(config, out) {
813
843
  const block = config.humanGate;
814
844
  if (!isObject(block)) return;
815
- const { mode: _mode, ...rest } = block;
845
+ const { mode: _mode, humanOnly, ...rest } = block;
816
846
  const resolution = modeResolution(config);
817
847
  if (resolution.declared && resolution.rejected.length === 0) {
818
848
  out.push(`${HUMAN_GATE_MODE_PATH}: ${resolution.mode}`);
819
849
  }
820
- renderSubtree(rest, "humanGate", out);
850
+ // `humanOnly` is a list of decision classes. Anything else names none, and
851
+ // is stated by kind only: its contents are not ours to print into a session.
852
+ if (humanOnly !== undefined && !Array.isArray(humanOnly)) {
853
+ out.push(
854
+ `humanGate.humanOnly: INVALID — this project declares ${shownRejected(humanOnly)}, which is not a list of decision classes.`
855
+ );
856
+ renderSubtree(rest, "humanGate", out);
857
+ return;
858
+ }
859
+ renderSubtree(
860
+ humanOnly === undefined ? rest : { ...rest, humanOnly },
861
+ "humanGate",
862
+ out
863
+ );
821
864
  }
822
865
 
823
866
  /**
@@ -848,6 +891,176 @@ function invalidLowConfidenceLine(config, fallback, owner) {
848
891
  return `${LOW_CONFIDENCE_PATH}: ${fallback} [INVALID — this project declares ${JSON.stringify(config.learnings.lowConfidence)}, which is not one of ${accepted}; treated as ${fallback}; owner: ${owner}]`;
849
892
  }
850
893
 
894
+ /**
895
+ * A rejected `release.*` value as it may be put in a session's context. An
896
+ * object or a list is named by its kind only: this block is injected into
897
+ * every session, and whatever sits inside a setting that should have been a
898
+ * word or a yes/no could be a credential that no pattern recognises.
899
+ * @param {unknown} value The declared value.
900
+ * @returns {string} Text safe to render.
901
+ */
902
+ function shownRejected(value) {
903
+ if (Array.isArray(value)) return "a list";
904
+ if (isObject(value)) return "an object";
905
+ if (typeof value !== "string") return JSON.stringify(value);
906
+ // A mistyped yes/no or mechanism name is a short plain word, and showing it
907
+ // helps. Anything else is described, never quoted, and never cut short: the
908
+ // credential scrub runs on whole values, and a connection string with its
909
+ // host sliced off no longer looks like one to it.
910
+ return REJECTED_PLAIN_WORD.test(value)
911
+ ? JSON.stringify(value)
912
+ : `a string of ${value.length} characters`;
913
+ }
914
+
915
+ /** A short value made only of letters, digits, spaces, dots, underscores and hyphens. */
916
+ const REJECTED_PLAIN_WORD = /^[\w .-]{0,40}$/;
917
+
918
+ /**
919
+ * Whether a present `release.liveUsers` is unusable. Only a boolean says
920
+ * anything; `"false"` in quotes must not turn the rule off.
921
+ * @param {unknown} release The resolved `release` value.
922
+ * @returns {boolean} True when the key is present and not a boolean.
923
+ */
924
+ function liveUsersInvalid(release) {
925
+ return (
926
+ isObject(release) &&
927
+ "liveUsers" in release &&
928
+ typeof release.liveUsers !== "boolean"
929
+ );
930
+ }
931
+
932
+ /**
933
+ * The INVALID line for an unusable `release.liveUsers`.
934
+ * @param {object} config Resolved config.
935
+ * @param {string} owner Module that owns the setting.
936
+ * @returns {string|null} The line, or null when the value is absent or valid.
937
+ */
938
+ function invalidLiveUsersLine(config, owner) {
939
+ const release = config.release;
940
+ // A `release` that is not an object says nothing, so nothing under it is in
941
+ // force. Printing it as `release: false` would read as "the rule is off".
942
+ if (release !== undefined && !isObject(release)) {
943
+ return `${LIVE_USERS_PATH}: ${DEFAULT_LIVE_USERS} [INVALID — this project declares release as ${shownRejected(release)}, which is not an object; treated as ${DEFAULT_LIVE_USERS} (the project has live users); owner: ${owner}]`;
944
+ }
945
+ if (liveUsersInvalid(release)) {
946
+ return `${LIVE_USERS_PATH}: ${DEFAULT_LIVE_USERS} [INVALID — this project declares ${shownRejected(release.liveUsers)}, which is not true or false; treated as ${DEFAULT_LIVE_USERS} (the project has live users); owner: ${owner}]`;
947
+ }
948
+ // A key that differs only by letter case is not read at all, and it is the
949
+ // quietest way to believe the rule is off when it is on.
950
+ const misspelt = misspeltLiveUsersKey(release);
951
+ return misspelt === null || "liveUsers" in release
952
+ ? null
953
+ : `${LIVE_USERS_PATH}: ${DEFAULT_LIVE_USERS} [INVALID — this project declares release.${misspelt}, which Lisa does not read (the key is ${LIVE_USERS_PATH}); treated as ${DEFAULT_LIVE_USERS} (the project has live users); owner: ${owner}]`;
954
+ }
955
+
956
+ /**
957
+ * A `release` key that spells `liveUsers` with different letter case.
958
+ * @param {unknown} release The resolved `release` value.
959
+ * @returns {string|null} The key as written, or null when there is none.
960
+ */
961
+ function misspeltLiveUsersKey(release) {
962
+ if (!isObject(release)) return null;
963
+ return (
964
+ Object.keys(release).find(
965
+ key => key !== "liveUsers" && key.toLowerCase() === "liveusers"
966
+ ) ?? null
967
+ );
968
+ }
969
+
970
+ /**
971
+ * Whether the declared switch mechanism is unusable: `release.switch` that is
972
+ * not an object, or a mechanism that is not a non-empty string.
973
+ * @param {unknown} release The resolved `release` value.
974
+ * @returns {boolean} True when a mechanism was declared and cannot be used.
975
+ */
976
+ function switchMechanismInvalid(release) {
977
+ if (!isObject(release) || !("switch" in release)) return false;
978
+ const block = release.switch;
979
+ if (!isObject(block)) return true;
980
+ return (
981
+ "mechanism" in block &&
982
+ !(typeof block.mechanism === "string" && block.mechanism.trim() !== "")
983
+ );
984
+ }
985
+
986
+ /**
987
+ * The INVALID line for an unusable `release.switch.mechanism`.
988
+ * @param {object} config Resolved config.
989
+ * @param {string} owner Module that owns the setting.
990
+ * @returns {string|null} The line, or null when the value is absent or valid.
991
+ */
992
+ function invalidSwitchMechanismLine(config, owner) {
993
+ if (!switchMechanismInvalid(config.release)) return null;
994
+ const block = config.release.switch;
995
+ const declared = isObject(block) ? block.mechanism : block;
996
+ const subject = isObject(block) ? "" : "release.switch as ";
997
+ return `${SWITCH_MECHANISM_PATH}: ${DEFAULT_SWITCH_MECHANISM} [INVALID — this project declares ${subject}${shownRejected(declared)}, which is not ${isObject(block) ? "a non-empty string" : "an object"}; treated as ${DEFAULT_SWITCH_MECHANISM}; owner: ${owner}]`;
998
+ }
999
+
1000
+ /**
1001
+ * The INVALID line for a `release.switch.guide` that is not a non-empty
1002
+ * string. The guide has no default, so nothing else would mention it, and
1003
+ * dropping it in silence would hide a problem the doctor check reports.
1004
+ * @param {object} config Resolved config.
1005
+ * @returns {string|null} The line, or null when the guide is absent or usable.
1006
+ */
1007
+ function invalidSwitchGuideLine(config) {
1008
+ const block = isObject(config.release) ? config.release.switch : undefined;
1009
+ if (!isObject(block) || !("guide" in block)) return null;
1010
+ const usable = typeof block.guide === "string" && block.guide.trim() !== "";
1011
+ return usable
1012
+ ? null
1013
+ : `release.switch.guide: not set [INVALID — this project declares ${shownRejected(block.guide)}, which is not a non-empty string; treated as not set; owner: ${RELEASE_OWNER}]`;
1014
+ }
1015
+
1016
+ /**
1017
+ * Dotted names of the keys under `release` and `release.switch` that Lisa does
1018
+ * not read, the misspelt live-users key excluded (its own INVALID line names
1019
+ * it).
1020
+ * @param {unknown} release The resolved `release` value.
1021
+ * @returns {string[]} Key paths, in declaration order.
1022
+ */
1023
+ function unreadReleaseKeys(release) {
1024
+ if (!isObject(release)) return [];
1025
+ const misspelt = misspeltLiveUsersKey(release);
1026
+ const block = isObject(release.switch) ? release.switch : {};
1027
+ return [
1028
+ ...Object.keys(release)
1029
+ .filter(key => !["liveUsers", "switch", misspelt].includes(key))
1030
+ .map(key => `release.${key}`),
1031
+ ...Object.keys(block)
1032
+ .filter(key => !["mechanism", "guide"].includes(key))
1033
+ .map(key => `release.switch.${key}`),
1034
+ ].filter(path => !path.split(".").at(-1).startsWith("_"));
1035
+ }
1036
+
1037
+ /**
1038
+ * The `release` block with every unusable value removed, so the subtree
1039
+ * renderer never prints a rejected value as if it were in force. Each removed
1040
+ * value is stated once, by its INVALID gap line.
1041
+ * @param {unknown} release The resolved `release` value.
1042
+ * @returns {object|null} What may be rendered, or null when nothing may.
1043
+ */
1044
+ function usableRelease(release) {
1045
+ if (!isObject(release)) return null;
1046
+ const { liveUsers, switch: block } = release;
1047
+ const text = value => typeof value === "string" && value.trim() !== "";
1048
+ // Only the keys Lisa reads are rendered with their values. A key it does not
1049
+ // read (a misspelling, or anything else) would otherwise be printed in full
1050
+ // and look like a setting in force; those are named by key in one line.
1051
+ const usableSwitch = isObject(block)
1052
+ ? Object.fromEntries(
1053
+ ["mechanism", "guide"]
1054
+ .filter(key => text(block[key]))
1055
+ .map(key => [key, block[key]])
1056
+ )
1057
+ : {};
1058
+ return {
1059
+ ...(typeof liveUsers === "boolean" ? { liveUsers } : {}),
1060
+ ...(Object.keys(usableSwitch).length > 0 ? { switch: usableSwitch } : {}),
1061
+ };
1062
+ }
1063
+
851
1064
  /**
852
1065
  * Render the `dependencies` block.
853
1066
  *
@@ -889,7 +1102,11 @@ function renderDefaults(config) {
889
1102
  ? invalidModeLine(config, owner)
890
1103
  : path === LOW_CONFIDENCE_PATH
891
1104
  ? invalidLowConfidenceLine(config, strict ?? value, owner)
892
- : null;
1105
+ : path === LIVE_USERS_PATH
1106
+ ? invalidLiveUsersLine(config, owner)
1107
+ : path === SWITCH_MECHANISM_PATH
1108
+ ? invalidSwitchMechanismLine(config, owner)
1109
+ : null;
893
1110
  if (invalid !== null) {
894
1111
  lines.push(invalid);
895
1112
  continue;
@@ -954,6 +1171,8 @@ function renderBody(config) {
954
1171
  // so it is the line that must survive.
955
1172
  /** @type {string[]} */
956
1173
  const lines = renderDefaults(config);
1174
+ const guide = invalidSwitchGuideLine(config);
1175
+ if (guide !== null) lines.push(guide);
957
1176
  const notification = renderNotificationLevel(config.sessionManager);
958
1177
  if (notification !== null) lines.push(notification);
959
1178
  const gapLines = lines.length;
@@ -991,6 +1210,19 @@ function renderBody(config) {
991
1210
  renderHumanGate(config, lines);
992
1211
  continue;
993
1212
  }
1213
+ if (key === "release") {
1214
+ // Invalid values are stated once, by their INVALID gap lines; never as
1215
+ // if they were in force.
1216
+ const usable = usableRelease(config.release);
1217
+ if (usable !== null) renderSubtree(usable, key, lines);
1218
+ const unread = unreadReleaseKeys(config.release);
1219
+ if (unread.length > 0) {
1220
+ lines.push(
1221
+ `release: keys Lisa does not read (values not shown): ${unread.join(", ")}`
1222
+ );
1223
+ }
1224
+ continue;
1225
+ }
994
1226
  if (key === "learnings" && lowConfidenceInvalid(config.learnings)) {
995
1227
  // Stated once, by the INVALID gap line; never as if it were in force.
996
1228
  const { lowConfidence: _invalid, ...rest } = config.learnings;
@@ -33,6 +33,48 @@ ROOT="${CLAUDE_PLUGIN_ROOT:-${PLUGIN_ROOT:-$(cd "$(dirname "${BASH_SOURCE[0]}")/
33
33
  SECRETS="$ROOT/skills/lisa-secrets-access/scripts/preflight-secrets.mjs"
34
34
  TOOLS="$ROOT/skills/lisa-setup-remote-env/scripts/preflight-tools.mjs"
35
35
 
36
+ # Event decoding has no jq dependency: losing jq must never turn a native
37
+ # PreToolUse request into an advisory SessionStart request.
38
+ if [ -n "$INPUT" ] && command -v node >/dev/null 2>&1; then
39
+ HOOK_EVENT=$(printf '%s' "$INPUT" | node -e 'const fs=require("node:fs");try{const e=JSON.parse(fs.readFileSync(0,"utf8")).hook_event_name;process.stdout.write(["SessionStart","UserPromptSubmit","PostToolUse","PostToolUseFailure","SessionEnd"].includes(e)?e:"PreToolUse");}catch{process.stdout.write("PreToolUse");}')
40
+ fi
41
+ # A registered before hook cannot be downgraded by an envelope's event spelling.
42
+ if [ "${1:-}" = "--task-hook" ]; then HOOK_EVENT="PreToolUse"; fi
43
+ if [ "${1:-}" = "--reset-native" ]; then
44
+ if command -v node >/dev/null 2>&1 && [ -f "$SECRETS" ] && [ -n "$INPUT" ]; then
45
+ printf '%s' "$INPUT" | node "$SECRETS" --reset-native
46
+ fi
47
+ exit 0
48
+ fi
49
+ if [ "${1:-}" = "--session-start" ]; then HOOK_EVENT="SessionStart"; fi
50
+ case "$HOOK_EVENT" in
51
+ SessionStart|UserPromptSubmit|SessionEnd)
52
+ if command -v node >/dev/null 2>&1 && [ -f "$SECRETS" ] && [ -n "$INPUT" ]; then
53
+ printf '%s' "$INPUT" | node "$SECRETS" --reset-native
54
+ fi
55
+ [ "$HOOK_EVENT" = SessionStart ] || exit 0
56
+ ;;
57
+ esac
58
+ # The manifest supplies the event arm independently of optional JSON decoders.
59
+ # Missing Node AND jq cannot downgrade a real before-tool call to advisory.
60
+ if [ "${1:-}" = "--observe-native" ]; then
61
+ if command -v node >/dev/null 2>&1 && [ -f "$SECRETS" ]; then
62
+ printf '%s' "$INPUT" | node "$SECRETS" --observe-native
63
+ fi
64
+ exit 0
65
+ fi
66
+
67
+ # Task checks are blocking; SessionStart keeps its existing advisory contract.
68
+ # Node parses the native envelope and invokes the same preclaim decision owner.
69
+ if [ "$HOOK_EVENT" = "PreToolUse" ]; then
70
+ if ! command -v node >/dev/null 2>&1 || [ ! -f "$SECRETS" ]; then
71
+ printf '%s\n' 'tool-missing: Restore the Lisa readiness tool before affected work.' >&2
72
+ exit 2
73
+ fi
74
+ printf '%s' "$INPUT" | node "$SECRETS" --hook
75
+ exit $?
76
+ fi
77
+
36
78
  command -v node >/dev/null 2>&1 || exit 0
37
79
  # The hook's whole output is one `jq -n` document. Without jq there is nothing
38
80
  # to write, so exiting is the only honest outcome — the alternative is a hook
@@ -0,0 +1,96 @@
1
+ /** Portable native-envelope adapter. Policy remains in the secrets preflight. */
2
+ import { spawnSync } from "node:child_process";
3
+ import { existsSync, readFileSync } from "node:fs";
4
+ import { dirname, join } from "node:path";
5
+ import { fileURLToPath } from "node:url";
6
+
7
+ try {
8
+ const payload = JSON.parse(readFileSync(0, "utf8"));
9
+ const root = payload.cwd ?? process.cwd();
10
+ const event = {
11
+ ...payload,
12
+ hook_event_name: payload.hook_event_name ?? "PreToolUse",
13
+ };
14
+ // Fixed orientation is safe even before a package exists; no access is attested.
15
+ if (
16
+ ["Read", "Glob", "Grep", "read", "glob", "grep"].includes(
17
+ event.tool_name
18
+ ) ||
19
+ (event.tool_name === "Bash" &&
20
+ [
21
+ "pwd",
22
+ "ls -la",
23
+ "git status --short",
24
+ "git status --porcelain=v1",
25
+ "git rev-parse HEAD",
26
+ ].includes(event.tool_input?.command))
27
+ ) {
28
+ process.exitCode = 0;
29
+ } else {
30
+ const here = dirname(fileURLToPath(import.meta.url));
31
+ const candidates = [
32
+ join(here, "../skills/lisa-secrets-access/scripts"),
33
+ join(root, "plugins/lisa/skills/lisa-secrets-access/scripts"),
34
+ join(
35
+ root,
36
+ "node_modules/@codyswann/lisa/plugins/lisa/skills/lisa-secrets-access/scripts"
37
+ ),
38
+ ];
39
+ const owner = candidates.find(
40
+ dir =>
41
+ existsSync(join(dir, "task-readiness.mjs")) &&
42
+ existsSync(join(dir, "preflight-secrets.mjs"))
43
+ );
44
+ if (!owner) {
45
+ console.error(
46
+ "tool-missing: Update the installed Lisa readiness tool before affected work."
47
+ );
48
+ process.exitCode = 2;
49
+ } else {
50
+ const result = spawnSync(
51
+ process.execPath,
52
+ [
53
+ join(owner, "preflight-secrets.mjs"),
54
+ process.argv.includes("--observe-native")
55
+ ? "--observe-native"
56
+ : "--hook",
57
+ ],
58
+ {
59
+ cwd: root,
60
+ env: process.env,
61
+ input: JSON.stringify(event),
62
+ encoding: "utf8",
63
+ timeout: 120000,
64
+ killSignal: "SIGKILL",
65
+ maxBuffer: 1024 * 1024,
66
+ }
67
+ );
68
+ if (
69
+ result.status !== 0 &&
70
+ result.stderr?.startsWith("NATIVE_OWNER_REQUIRED: ")
71
+ ) {
72
+ console.error(
73
+ "native-proof-needed: The ordinary action is withheld until required native access is proved."
74
+ );
75
+ process.exitCode = 2;
76
+ } else if (result.status !== 0) {
77
+ // Only the fixed owner result is published. Environment errors never echo.
78
+ const safe =
79
+ /^(?:credential-missing|provider-unreachable|capability-unreachable|bootstrap-missing|tool-missing|config-invalid|config-unreadable|config-undiscovered|config-unknown|identity-mismatch|adapter-unsupported|requirements-stale|requirements-prepared|native-proof-needed|native-response-unrepresented): [^\n]*\n?$/.test(
80
+ result.stderr ?? ""
81
+ );
82
+ console.error(
83
+ safe
84
+ ? result.stderr.trim()
85
+ : "tool-missing: Restore the Lisa readiness tool before affected work."
86
+ );
87
+ process.exitCode = 2;
88
+ }
89
+ }
90
+ }
91
+ } catch {
92
+ console.error(
93
+ "requirements-stale: Refresh complete task requirements before affected work."
94
+ );
95
+ process.exitCode = 2;
96
+ }
@@ -0,0 +1,54 @@
1
+ #!/usr/bin/env bash
2
+ # This file is managed by Lisa and IS replaced on each `lisa` run.
3
+ # Do not edit directly — durable changes belong upstream in Lisa.
4
+
5
+ # Thin adapter; the same task decision owns plugin and fallback enforcement.
6
+ set -uo pipefail
7
+ if ! command -v node >/dev/null 2>&1; then
8
+ printf '%s\n' 'tool-missing: Install the documented Node runtime before affected work.' >&2
9
+ exit 2
10
+ fi
11
+ # Package-backed on host projects; plugin and OpenCode installs carry the sibling.
12
+ exec node --input-type=module -e '
13
+ import { readFileSync, existsSync, lstatSync } from "node:fs";
14
+ import { dirname, join } from "node:path";
15
+ import { spawnSync } from "node:child_process";
16
+ try {
17
+ const input = readFileSync(0, "utf8");
18
+ const event = JSON.parse(input);
19
+ const root = event.cwd ?? process.cwd();
20
+ const candidates = [
21
+ join(dirname(process.argv[1]), "task-readiness-guard.mjs"),
22
+ join(root, "plugins/lisa/hooks/task-readiness-guard.mjs"),
23
+ join(root, "node_modules/@codyswann/lisa/plugins/lisa/hooks/task-readiness-guard.mjs")
24
+ ];
25
+ const owner = candidates.find(path => existsSync(path));
26
+ if (owner) {
27
+ const result = spawnSync(process.execPath, [owner], {
28
+ input, cwd: root, encoding: "utf8", timeout: 120000,
29
+ killSignal: "SIGKILL", maxBuffer: 1048576
30
+ });
31
+ if (result.stderr) process.stderr.write(result.stderr);
32
+ process.exitCode = result.status === 0 ? 0 : 2;
33
+ } else if (!["Read", "Glob", "Grep", "read", "glob", "grep"].includes(event.tool_name) &&
34
+ !(event.tool_name === "Bash" && ["pwd", "ls -la", "git status --short", "git status --porcelain=v1", "git rev-parse HEAD"].includes(event.tool_input?.command))) {
35
+ const git = spawnSync("git", ["rev-parse", "--path-format=absolute", "--show-toplevel", "--git-path", "lisa/work-item.json"], {
36
+ cwd: root, encoding: "utf8", timeout: 2000, killSignal: "SIGKILL"
37
+ });
38
+ const [project, binding] = git.status === 0 ? git.stdout.trim().split("\n") : [];
39
+ const declared = path => {
40
+ try { lstatSync(path); return true; }
41
+ catch (error) { return !["ENOENT", "ENOTDIR"].includes(error.code); }
42
+ };
43
+ const scopeFiles = [".lisa/work-item-context.md", ".lisa.config.json", ".lisa.config.local.json"];
44
+ const active = [root, project].some(dir => dir && scopeFiles.some(file => declared(join(dir, file)))) || (binding && declared(binding));
45
+ if (active) {
46
+ console.error("tool-missing: Update the installed Lisa readiness tool before affected work.");
47
+ process.exitCode = 2;
48
+ }
49
+ }
50
+ } catch {
51
+ console.error("requirements-stale: Refresh complete task requirements before affected work.");
52
+ process.exitCode = 2;
53
+ }
54
+ ' "${BASH_SOURCE[0]}"
@@ -1,6 +1,14 @@
1
1
  {
2
2
  "hooks": {
3
3
  "UserPromptSubmit": [
4
+ {
5
+ "hooks": [
6
+ {
7
+ "type": "command",
8
+ "command": "${CLAUDE_PLUGIN_ROOT}/hooks/devin-tool-name-shim.sh ${CLAUDE_PLUGIN_ROOT}/hooks/secrets-preflight.sh --reset-native"
9
+ }
10
+ ]
11
+ },
4
12
  {
5
13
  "hooks": [
6
14
  {
@@ -11,6 +19,14 @@
11
19
  }
12
20
  ],
13
21
  "PostToolUse": [
22
+ {
23
+ "hooks": [
24
+ {
25
+ "type": "command",
26
+ "command": "${CLAUDE_PLUGIN_ROOT}/hooks/devin-tool-name-shim.sh ${CLAUDE_PLUGIN_ROOT}/hooks/secrets-preflight.sh --observe-native"
27
+ }
28
+ ]
29
+ },
14
30
  {
15
31
  "matcher": "^(exec)$",
16
32
  "hooks": [
@@ -67,6 +83,14 @@
67
83
  }
68
84
  ],
69
85
  "PreToolUse": [
86
+ {
87
+ "hooks": [
88
+ {
89
+ "type": "command",
90
+ "command": "${CLAUDE_PLUGIN_ROOT}/hooks/devin-tool-name-shim.sh ${CLAUDE_PLUGIN_ROOT}/hooks/secrets-preflight.sh --task-hook"
91
+ }
92
+ ]
93
+ },
70
94
  {
71
95
  "matcher": "^(exec)$",
72
96
  "hooks": [
@@ -223,7 +247,7 @@
223
247
  "hooks": [
224
248
  {
225
249
  "type": "command",
226
- "command": "${CLAUDE_PLUGIN_ROOT}/hooks/devin-tool-name-shim.sh ${CLAUDE_PLUGIN_ROOT}/hooks/secrets-preflight.sh"
250
+ "command": "${CLAUDE_PLUGIN_ROOT}/hooks/devin-tool-name-shim.sh ${CLAUDE_PLUGIN_ROOT}/hooks/secrets-preflight.sh --session-start"
227
251
  }
228
252
  ]
229
253
  },
@@ -236,7 +260,25 @@
236
260
  ]
237
261
  }
238
262
  ],
263
+ "PostToolUseFailure": [
264
+ {
265
+ "hooks": [
266
+ {
267
+ "type": "command",
268
+ "command": "${CLAUDE_PLUGIN_ROOT}/hooks/devin-tool-name-shim.sh ${CLAUDE_PLUGIN_ROOT}/hooks/secrets-preflight.sh --observe-native"
269
+ }
270
+ ]
271
+ }
272
+ ],
239
273
  "SessionEnd": [
274
+ {
275
+ "hooks": [
276
+ {
277
+ "type": "command",
278
+ "command": "${CLAUDE_PLUGIN_ROOT}/hooks/devin-tool-name-shim.sh ${CLAUDE_PLUGIN_ROOT}/hooks/secrets-preflight.sh --reset-native"
279
+ }
280
+ ]
281
+ },
240
282
  {
241
283
  "hooks": [
242
284
  {
@@ -1,12 +1,13 @@
1
1
  # Coding Philosophy (load-bearing)
2
2
 
3
- - **KISS settles ties. YAGNI:** build what today's problem needs, with no speculative abstraction or options. Extract shared code only when it repeats 3+ times and the abstraction is simpler than the duplication.
4
- - **Hill-climbability.** Make localized changes with clear contracts and low coupling, and leave a working baseline. A later agent should be able to find what to change, change it, verify the effect, and keep or revert it on its own.
5
- - **Immutability.** Create new values instead of mutating, and prefer `map`/`filter`/`reduce`. On a hot path where a stack rule forbids allocation, such as a game's `update()`, the stack rule wins.
3
+ - **KISS settles ties. YAGNI:** build what today's problem needs, no speculative abstraction or options. Extract shared code only when it repeats 3+ times and the abstraction is simpler than the duplication.
4
+ - **Hill-climbability.** Make localized, low-coupling changes with clear contracts, and leave a working baseline a later agent can find, change, verify, and keep or revert alone.
5
+ - **Immutability.** Create new values, never mutate; prefer `map`/`filter`/`reduce`. Where a stack rule forbids allocation on a hot path, the stack rule wins.
6
6
  - **TDD for behavior changes.** Write the failing test first, make it pass, then refactor. Learn real behavior by running code before you write expectations.
7
7
  - **Delete replaced code completely**, with no `V2` copies or compatibility shims. Framework migrations, such as Rails migrations, are ordinary code. Simplify your diff before you finish.
8
8
  - **No technical debt.** Fix failures in the change that surfaces them. Never add quarantine, baseline or exemption lists, silence a check, or defer part of the job as "follow-up". Split a large backlog across parallel changes; the check still turns on strict.
9
- - **No assumed human.** No one is inside the factory. Unless a person was explicitly asked for, do the work, decide and record a default, or file a ticket; never advise a person to act. Only `when-to-stop` and declared human gates wait for one.
10
- - **Comments preserve intent.** Explain why, not what: the requirement behind a non-obvious choice, the rejected alternative, the invariant a change must respect, and what breaks if someone simplifies it. Keep comments true when code changes, and do not invent a rationale. If you do not know why code exists, find out (`history-audit`). This overrides any default to match surrounding comment density: future agents keep no memory of today.
9
+ - **No assumed human.** Unless a person was explicitly asked for, do the work, decide and record a default, or file a ticket; never advise a person to act. Only `when-to-stop` and declared human gates wait for one.
10
+ - **Comments preserve intent.** Explain why, not what: the requirement behind a non-obvious choice, the rejected alternative, the invariant to respect, and what breaks if simplified. Keep comments true when code changes; never invent a rationale. If you do not know why code exists, find out (`history-audit`). This overrides any default to match surrounding comment density.
11
+ - **Always promotable.** A shared branch is promotable as it stands. Merge work complete and proven; switch off only unfinished or unverified new behavior, then remove it. Revert a failed live change; unblock the branch first.
11
12
 
12
- Examples, documentation guidelines, and anti-patterns: [reference/coding-philosophy.md](../reference/coding-philosophy.md).
13
+ Detail and examples: [reference/coding-philosophy.md](../reference/coding-philosophy.md).
@@ -188,6 +188,52 @@ Right: create the label. Stop only if the tracker refuses for lack of permission
188
188
 
189
189
  This does not conflict with writing for a non-technical reader (`communication`). That rule is about who reads a report, not about giving them to-dos.
190
190
 
191
+ ### 8. Always Promotable
192
+
193
+ **Always promotable.** Whatever is on a shared branch can be promoted to the next environment as it stands. Most changes meet this by being complete and proven when they merge, and need nothing more. Only new behavior that merges before it is finished or verified is switched off, and that switch is removed once it is. If the branch is not promotable, fixing or reverting that comes before any other work.
194
+
195
+ A piece of work must never block a deployment. Promoting one environment to the next is a single step, never a sorting job: nobody works out which changes are ready and cherry-picks them. The established names are keeping the main line always releasable and separating deployment from release: code can be in production without being switched on.
196
+
197
+ **One question decides whether a change needs a switch:** if this were promoted to production right now, would a user see something unfinished or unproven?
198
+
199
+ - **No: the change is live and needs no switch.** Bug fixes, small tweaks, copy changes, refactors and dependency updates are almost always complete and proven when they merge, and reverting is their off switch. Never add a switch to work that is complete and proven when it merges. A switch on every change is machinery nobody needs (YAGNI).
200
+ - **Yes: the change is switched off.** The question decides, not the kind of work: a feature or a fix that lands across several merges, or new behavior that merges before its verification has passed, merges behind a switch that is off in production.
201
+
202
+ Live work is proven **before** it merges, not after. That is what lets it skip the switch. Proven means its local verification passed before the merge. The check in the target environment after the deploy confirms that proof, and a change is not "unverified" merely because that later check has not run yet. Work is unverified when it cannot be proven before it merges: it needs a piece that has not landed, an environment it cannot reach locally, or a decision that has not been made.
203
+
204
+ **Changes that cannot be switched off must be safe on their own**, because they are live the moment they ship:
205
+
206
+ - Database changes add before they remove. Old and new code both work against the same data.
207
+ - API changes are additive. A caller that has not been updated keeps working.
208
+
209
+ **A switch is temporary.** The work is not done while its switch exists: removing it is part of finishing the feature, not a follow-up, so this rule does not conflict with Clean Deletion or with No Technical Debt. A switch and an add-before-remove change that this rule requires are not the compatibility shims Clean Deletion forbids.
210
+
211
+ **Name the switch so it can be found and removed.** Give it a name that appears nowhere else in the repository and is not the start of another switch's name; `node scripts/lisa-release-switch.mjs references --switch <name>` must report none before the first use. Use one spelling of the name everywhere it is read: the done gate searches every tracked file for the name as a whole token, in any letter case, and cannot find a different spelling such as `NEW_CHECKOUT` for `new-checkout`. A second switch called `<name>-v2` counts as a reference and keeps the removing item open. Records do not count: committed evidence (`evidence/<ticket>/…` at the repository root), a changelog file (`CHANGELOG`, `CHANGELOG.md`), and Lisa's machine state under `.lisa/`. Recording that a switch is off, or saying in the changelog that it was removed, holds nothing open. Everything in those two folders is treated as a record, code included, so keep nothing that reads a switch there. Every other file counts, documentation and other release notes included: update documentation with the removal, and describe the removal elsewhere without the switch's name.
212
+
213
+ **The mechanism is the project's choice.** Lisa wraps no flag tool. A project names what it uses in `release.switch.mechanism` (a hosted flag service, a cloud configuration service, a product-analytics flag, a plain configuration value) and may point `release.switch.guide` at its own convention. With nothing named, use a plain configuration value that defaults to off. Whatever the mechanism, a switch must be settable per environment, on outside production while off in production, so the work can be verified. A project with one environment verifies switched-off work locally or for a test account only. An agent must be able to do three things with it:
214
+
215
+ 1. add a switch;
216
+ 2. confirm it is off in production;
217
+ 3. remove it.
218
+
219
+ If you cannot confirm the production value, you cannot claim the work is dark.
220
+
221
+ **Turning a finished feature on.** A feature is turned on once, by the work item that removes its switch, after the whole feature is verified. An earlier item of the same feature verifies its own part with the switch on outside production and leaves it off in production. Then, having confirmed that production is running the verified version, the agent turns the switch on in production. The switch is removed only after that, never while the turn-on is still waiting. No person is needed, unless the project lists the decision class `feature-release` in `humanGate.humanOnly`; then that one step is a declared human gate.
222
+
223
+ **When the branch is not promotable.** A change whose failure is live on a shared branch is reverted at once: one that shipped without a switch and fails at verification, one that is switched off but breaks something with the switch off, and any change that breaks the build or the deployment, which no switch can turn off. A feature that fails after its switch was turned on in production is live too: the switch is turned off again at once. It is reworked, and the work item goes back to the ready queue with the failure evidence. It is never left in place to be fixed forward, and it never holds a promotion.
224
+
225
+ **Work items and pull requests say which.** A leaf work item that changes runtime behavior carries a `## Release Switch` section with exactly one line (gate S22 in the `*-validate-*` skills, checked by `scripts/lisa-release-switch.mjs check`):
226
+
227
+ ```text
228
+ Live — complete and proven at merge
229
+ Switched off — <switch-name>; removed by this item
230
+ Switched off — <switch-name>; removed by <work-item ref>
231
+ ```
232
+
233
+ The item that removes a switch cannot be finished while tracked source still references it (`lisa-work-item.mjs finish`). A pull request states the same thing next to how to undo it.
234
+
235
+ **A project without live users.** `release.liveUsers` in `.lisa.config.json` is a fact about the project: absent means it has live users and this rule applies. A project that is not launched sets it to `false`; then nothing in this section applies, including the add-before-remove and additive requirements, because there are no users and no live data to protect. Lisa names the setting whenever a production deployment happens while it is `false`, so the opt-out is seen on launch day. A value that is not `true` or `false` is reported and treated as `true`. `node scripts/lisa-release-switch.mjs config` prints how it resolved.
236
+
191
237
  ---
192
238
 
193
239
  ## Quick Reference
@@ -500,6 +546,8 @@ Structure the code so future agents can easily identify what to change, make a t
500
546
 
501
547
  Write comments and docstrings that preserve engineering intent, not merely implementation details.
502
548
 
549
+ This overrides any default to match the comment density of the surrounding code: future agents keep no memory of today, so intent that is not written down is lost.
550
+
503
551
  Code should generally explain **what** happens. Comments and docstrings should explain **why it happens that way**, especially when the reasoning is not obvious from the implementation.
504
552
 
505
553
  When adding, modifying, or removing code: