@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
@@ -6,6 +6,8 @@ allowed-tools: ["Bash", "Skill", "Read"]
6
6
 
7
7
  # Claim GitHub Issue: $ARGUMENTS
8
8
 
9
+ **Required-access preclaim gate.** Before this claim mutation, follow `tool-access-gate` → Task readiness. Enumerate the live body, all comments, proof and delivery requirements into the leading requirements-only header in the ignored context; run the existing secrets preflight `--task --ref <canonical-ref>`. `ESTABLISHED` proves only its exercised scope. `DENIED` stops affected work. `NATIVE_OWNER_REQUIRED` (CLI exit3, not PASS) hands the remaining route to its documented native access owner: that owner must perform the actual immediate identity/resource probe before claim or the affected continuation, retaining write/readback duties. Do not repeat an unobservable shell probe forever or accept a stored passed field. Report the exact shell/native enforcement gap. Only the bounded local intake metadata write may precede this gate. Held/leaf/scope/idempotency and failed tracker-read/write stops remain independent.
10
+
9
11
  Claim exactly one canonical `org/repo#<number>` reference. This is the reusable direct-session counterpart of `lisa-github-build-intake` Phase 3b.
10
12
 
11
13
  1. Resolve merged `.github.org`, `.github.repo`, optional `.github.queueRepo`, and `github.labels.build` values from local-over-global config. Resolve current-repository identity independently using `repo-scope-split` / `config-resolution` (`.repo` -> `.github.repo` -> `git remote get-url origin` basename). The queue repository defaults to `<github.org>/<github.repo>`; it is only the tracker storage/scan target and never replaces current-repository identity. Resolve the ready and claimed roles from config (defaults `status:ready` and `status:in-progress`); do not hardcode lifecycle decisions.
@@ -16,6 +16,35 @@ Repository name for scoped comments and logs: `basename $(git rev-parse --show-t
16
16
 
17
17
  Pass the issue number, `<org>/<repo>#<number>`, or GitHub issue URL to the reader from the Lisa checkout. The reader resolves `.lisa.config.local.json` over `.lisa.config.json` before any GitHub request. A bare number uses `github.org` and `github.repo`. Configuration or syntax failure stops the read.
18
18
 
19
+ ### Pre-header configured-source reader
20
+
21
+ Before the complete issue is known, invoke this exact installed owner command
22
+ with only the configured canonical ref, fixed read name and issue/PR number:
23
+
24
+ ```text
25
+ node '<absolute installed lisa-secrets-access>/scripts/preflight-secrets.mjs' --intake-read --ref <org>/<repo>#<primary-number> --read <operation> --number <read-number>
26
+ ```
27
+
28
+ Use `issue`, `comments`, `comment-count`, `graph`, `history`, `closing-prs`,
29
+ `blocked-by`, `blocking`, `pr`, or `review-threads`. For `thread-comments` ONLY,
30
+ replace `--number <read-number>` with `--thread <returned-thread-node-id>`.
31
+ The installed reader verifies the thread's repository before retrieving its comments. Use the installed reader for thread comments.
32
+ Each invocation freshly proves the configured repository scope, validates any
33
+ observed actor, then executes only its fixed read. A selected credential is carried in child environment
34
+ memory, never command arguments/output/files or context. Comments are returned
35
+ as one flattened array; graph/history/thread connections retain all raw pages.
36
+ Read related issue/comment and PR/thread inputs with the same fixed operations;
37
+ compare comment counts and terminal pagination before declaring completeness.
38
+ Run the shipped hold classifier with the complete body/comments/actor inputs,
39
+ then prepare the truthful private context/header and evaluate full task readiness
40
+ before claim or implementation. This bounded repository read grants no mutation
41
+ and proves no unrelated task capability or provider health.
42
+
43
+ The installed reader owns the fixed API queries and pagination. The native
44
+ `gh` examples below support read-only orientation. Use the installed reader
45
+ for complete intake because it resolves configured credentials. Route
46
+ cross-repository and other-tracker access through the documented access owner.
47
+
19
48
  ## Phase 2 — Fetch Primary Issue
20
49
 
21
50
  ```bash
@@ -0,0 +1,70 @@
1
+ /** Fixed read-only request spellings used by the existing GitHub intake owner. */
2
+ export const issueFields =
3
+ "number,title,body,state,stateReason,author,assignees,labels,milestone,createdAt,updatedAt,closedAt,url,comments,reactionGroups,projectItems";
4
+ export const relatedFields = "number,title,state,labels,assignees,url";
5
+ export const prFields =
6
+ "number,title,state,reviewDecision,mergedAt,url,reviewRequests,reviews,comments";
7
+ export const graphQuery =
8
+ "query($org:String!,$repo:String!,$number:Int!,$endCursor:String){repository(owner:$org,name:$repo){issue(number:$number){id parent{number title state url repository{nameWithOwner}} subIssues(first:100,after:$endCursor){pageInfo{hasNextPage endCursor} nodes{number title body state url repository{nameWithOwner} labels(first:50){nodes{name}} assignees(first:5){nodes{login}}}}}}}";
9
+ export const historyQuery =
10
+ "query($org:String!,$repo:String!,$number:Int!,$endCursor:String){repository(owner:$org,name:$repo){issue(number:$number){timelineItems(first:100,after:$endCursor,itemTypes:[CROSS_REFERENCED_EVENT,LABELED_EVENT,UNLABELED_EVENT]){pageInfo{hasNextPage endCursor} nodes{__typename ...on CrossReferencedEvent{createdAt actor{login} source{...on PullRequest{number title state url repository{nameWithOwner}}}} ...on LabeledEvent{createdAt actor{login} label{name}} ...on UnlabeledEvent{createdAt actor{login} label{name}}}}}}}";
11
+ export const pullRequestsQuery =
12
+ "query($org:String!,$repo:String!,$number:Int!,$endCursor:String){repository(owner:$org,name:$repo){issue(number:$number){closedByPullRequestsReferences(first:50,after:$endCursor){pageInfo{hasNextPage endCursor} nodes{number title state merged mergedAt url repository{nameWithOwner}}}}}}";
13
+ export const queries = [graphQuery, historyQuery, pullRequestsQuery];
14
+ export const intakeReads = [
15
+ "issue",
16
+ "comments",
17
+ "comment-count",
18
+ "graph",
19
+ "history",
20
+ "closing-prs",
21
+ "blocked-by",
22
+ "blocking",
23
+ "pr",
24
+ "review-threads",
25
+ "thread-comments",
26
+ ];
27
+
28
+ /** Select the configured issue repository before allowing tracker reads. */
29
+ export function configuredIssueRepository(github) {
30
+ if (!github) return null;
31
+ const { org, repo, queueRepo } = github;
32
+ if (queueRepo != null && typeof queueRepo !== "string") return null;
33
+ const owner = typeof org === "string" ? org : "";
34
+ const name = typeof repo === "string" ? repo : "";
35
+ const selected = queueRepo?.includes("/")
36
+ ? queueRepo
37
+ : `${owner}/${queueRepo || name}`;
38
+ return /^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(selected) ? selected : null;
39
+ }
40
+
41
+ /** Strict data-only argv for the existing scoped access owner, never arbitrary gh arguments. */
42
+ export function intakeRequest(args, cfg) {
43
+ const [mode, refFlag, ref, readFlag, operation, valueFlag, value] = args,
44
+ repo = configuredIssueRepository(cfg.effective?.github);
45
+ if (
46
+ args.length !== 7 ||
47
+ mode !== "--intake-read" ||
48
+ refFlag !== "--ref" ||
49
+ readFlag !== "--read" ||
50
+ !intakeReads.includes(operation) ||
51
+ !repo ||
52
+ !ref?.startsWith(`${repo}#`) ||
53
+ !/^[1-9]\d*$/.test(ref.slice(repo.length + 1)) ||
54
+ (cfg.effective.tracker && cfg.effective.tracker !== "github")
55
+ )
56
+ return null;
57
+ if (
58
+ operation === "thread-comments"
59
+ ? valueFlag !== "--thread" || !/^[A-Za-z0-9_+/=-]{1,256}$/.test(value)
60
+ : valueFlag !== "--number" || !/^[1-9]\d*$/.test(value)
61
+ )
62
+ return null;
63
+ return { ref, operation, value, repo };
64
+ }
65
+ export const reviewThreadsQuery =
66
+ "query($org:String!,$repo:String!,$number:Int!,$endCursor:String){repository(owner:$org,name:$repo){pullRequest(number:$number){reviewThreads(first:100,after:$endCursor){pageInfo{hasNextPage endCursor} nodes{id isResolved isOutdated comments(first:100){pageInfo{hasNextPage endCursor} nodes{body author{login} createdAt url}}}}}}}";
67
+ export const threadCommentsQuery =
68
+ "query($id:ID!,$endCursor:String){node(id:$id){...on PullRequestReviewThread{repository{nameWithOwner} comments(first:100,after:$endCursor){pageInfo{hasNextPage endCursor} nodes{body author{login} createdAt url}}}}}";
69
+ export const threadRepositoryQuery =
70
+ "query($id:ID!){node(id:$id){...on PullRequestReviewThread{repository{nameWithOwner}}}}";
@@ -143,6 +143,7 @@ Per-type content requirements are defined once in the vendor-neutral `work-item-
143
143
  | S19 Branch Plan derivation | `technical` | false |
144
144
  | S20 Named-control reachability | `acceptance-criteria` | true |
145
145
  | S21 Token estimate (ready time) | `technical` | false |
146
+ | S22 Release switch declaration | `technical` | false |
146
147
  | F1 Issue type label exists in repo | `structural` | false |
147
148
  | F2 Parent sub-issue exists and is the right type | `structural` | false |
148
149
  | F3 Linked issues exist | `structural` | false |
@@ -414,6 +415,30 @@ Remediation: re-render the section with `node scripts/lisa-estimate.mjs render -
414
415
 
415
416
  `product_relevant: false` — the estimate is produced by agents, not by whoever wrote the item.
416
417
 
418
+ #### S22 — Release switch declaration
419
+
420
+ Enforces the always-promotable rule (`coding-philosophy`, "Always Promotable"): whatever is on a shared branch can be promoted to the next environment as it stands, so every issue that changes runtime behavior says how it is safe to promote.
421
+
422
+ **When the gate applies.** On a leaf whose `## Target Backend Environment` names an environment (`runtime_behavior_change = true`, derived from the stored declaration exactly as S8 derives it), in a project with live users (`release.liveUsers` absent or `true`). `N/A` when that declaration is a `None —` form (no runtime behavior change, or a container), and whenever the project sets `release.liveUsers: false`; then nothing about release switches blocks.
423
+
424
+ **How to run it.** Write the body to a file and run `node scripts/lisa-release-switch.mjs check --body-file <file>` for a proposed spec, adding `--existing true` when the issue already exists in the tracker. Report its verdict line and reasons verbatim: exit 0 is PASS or N/A, exit 1 is FAIL, exit 2 means the config or the call is broken, which fails the gate with the error.
425
+
426
+ **What it checks.** The body carries a `## Release Switch` section whose entire content is one line, in one of these forms:
427
+
428
+ ```text
429
+ Live — complete and proven at merge
430
+ Switched off — <switch-name>; removed by this item
431
+ Switched off — <switch-name>; removed by <work-item ref>
432
+ ```
433
+
434
+ A **proposed spec** with no section FAILs: `lisa-github-write-issue` renders it before the write. A **live legacy issue** with no section is `N/A` with a repair note routed to claim time, the same asymmetry S8 and S19 use, because failing every existing issue would turn a legacy queue red for a section nobody had a way to add. A section that **is** present FAILs, on a proposed spec and on a live issue alike, when it is neither form: no switch name, no work item that removes the switch, a second line, or free text.
435
+
436
+ **Which form.** One question decides: if this were promoted to production right now, would a user see something unfinished or unproven? If no, the work is live. Bug fixes, small tweaks, copy changes, refactors and dependency updates almost always are, and this gate never asks for a switch on work that is complete and proven when it merges. If yes (a feature or a fix that lands across several merges, or new behavior that merges before its verification has passed), the work is switched off, and the declaration names the switch and the work item that removes it. The question decides, not the kind of work.
437
+
438
+ Remediation: render the section with `node scripts/lisa-release-switch.mjs render --mode live --body-file <file>`, or `--mode off --switch <name> --removed-by "this item"` (or a work-item ref), and write the result back. Decide the form from the item; never ask a person for it.
439
+
440
+ `product_relevant: false` — how work is made safe to promote is an engineering decision the agent makes, not a product question.
441
+
417
442
  ### Feasibility Gates (require GitHub lookups; skip in `--spec-only`)
418
443
 
419
444
  #### F1 — Issue type label exists in repo
@@ -577,6 +602,7 @@ Output is a single fenced text block. Callers parse it; do not add free-form pro
577
602
  - [PASS|FAIL|N/A] S19 Branch Plan derivation — <one-line reason>
578
603
  - [PASS|FAIL|N/A] S20 Named-control reachability — <one-line reason>
579
604
  - [PASS|FAIL|N/A] S21 Token estimate (ready time) — <one-line reason>
605
+ - [PASS|FAIL|N/A] S22 Release switch declaration — <one-line reason>
580
606
 
581
607
  ### Feasibility Gates (omit this section when --spec-only)
582
608
  - [PASS|FAIL|N/A] F1 Issue type label exists in repo — <one-line reason>
@@ -603,7 +629,7 @@ The verdict is `PASS` if every applicable gate is `PASS`. Any `FAIL` makes the v
603
629
 
604
630
  Same shape and meaning as `lisa-jira-validate-ticket` so downstream PRD-intake skills (Notion, Confluence, Linear, GitHub) can format comments uniformly:
605
631
 
606
- - **gate**: the gate ID (`S1`–`S21`, `F1`–`F5`).
632
+ - **gate**: the gate ID (`S1`–`S22`, `F1`–`F5`).
607
633
  - **category**: the gate's fixed category from the table.
608
634
  - **product_relevant**: matches the gate's table entry. `false` means the failure is an internal data-quality problem the caller should fix without bothering product.
609
635
  - **what**: plain-language, product-readable.
@@ -94,6 +94,7 @@ Resolve `<ORG>` and `<REPO>` from the ref or from `.lisa.config.json`.
94
94
  | Acceptance criteria | Story, Task, Bug, Sub-task, Improvement | Gherkin in `## Acceptance Criteria` — see Phase 3. |
95
95
  | Validation Journey | Runtime-behavior changes | Delegate to `/github-add-journey`. |
96
96
  | Target backend environment | Runtime-behavior changes | For every work type, use an exact `deploy.branches` key when an environment is known. Human: bare key or `Confirmed: <env>`. Automation: `Inferred: <env> — evidence: <title\|body\|reproduction\|hostname>`, `Assumption: <env> — remote default branch <branch>` for a unique reverse-map, or `Assumption: remote default branch <branch>` otherwise. Human confirmation replaces an automated annotation with the bare key or `Confirmed: <env>`. |
97
+ | Release switch | Runtime-behavior changes, in a project with live users | `Live — complete and proven at merge`, or `Switched off — <switch-name>; removed by this item` (or a work-item ref). Rendered under `## Release Switch` by `scripts/lisa-release-switch.mjs render`; see Phase 3 and validator gate S22. |
97
98
  | Sign-in account / credentials | Authenticated-surface tickets | Recorded under `## Sign-in Required`. |
98
99
  | Repository | Bug, Task, Sub-task | GitHub Issues live in exactly one repo by definition — record the repo name under `## Repository`, and reject any AC bullet that references a different repo. |
99
100
  | Source Requirement | PRD-sourced issues (`prd_source` provided) | `## Source Requirement` with PRD link + verbatim requirement quote(s) — see Phase 3; enforced at every level, sub-issues included. |
@@ -184,6 +185,28 @@ Scenario: <name>
184
185
  non-unique mapping, or a branch absent from the remote, STOPS the write —
185
186
  never default to `main` or the remote default to keep the write alive.]
186
187
 
188
+ ## Release Switch
189
+ [GENERATED by `node scripts/lisa-release-switch.mjs render`, exactly one line.
190
+ Render it on every leaf that has a Target Backend Environment, in a project
191
+ with live users (`release.liveUsers` absent or `true`); omit it entirely when
192
+ `runtime_behavior_change = false`, for an Epic/container, or when the project
193
+ sets `release.liveUsers: false`. It says how the work is safe to promote
194
+ (`coding-philosophy`, "Always Promotable"; validator gate S22):
195
+ Live — complete and proven at merge
196
+ Switched off — <switch-name>; removed by this item
197
+ Switched off — <switch-name>; removed by <work-item ref>
198
+ Decide it with one question: if this were promoted to production right now,
199
+ would a user see something unfinished or unproven? If no, it is live: bug
200
+ fixes, small tweaks, copy changes, refactors and dependency updates almost
201
+ always are, and work that is complete and proven when it merges never gets a
202
+ switch. If yes (a feature or a fix that lands across several merges, or
203
+ new behavior that merges before its verification has passed), it is switched
204
+ off: name the switch, and name the work item that removes it. Every item of a
205
+ multi-item feature names the same switch and the same removing item. Pick a
206
+ switch name that appears nowhere else in the repository and is not the start
207
+ of another switch's name: the done gate searches tracked source for it as a
208
+ whole token. Never ask a person which form applies.]
209
+
187
210
  ## Sign-in Required
188
211
  [Include this section ONLY if the work touches authenticated surfaces.
189
212
  Specify: the account/role, where to get the credentials (1Password item,
@@ -49,11 +49,15 @@ $ARGUMENTS is either a URL/key for an existing work item, a pointer to a file co
49
49
 
50
50
  Resolve the input before any other work. Invoke `lisa-track $ARGUMENTS` (with `managedBy=` already stripped); it owns the complete resolve -> claim -> bind transaction:
51
51
 
52
+ When Linear uses token access, `lisa-linear-access` calls its shipped `scripts/linear-graphql.sh` by absolute path. The adapter resolves the key and checks which workspace it belongs to before sending the requested operation.
53
+
52
54
  **Forward a caller-supplied bundle by path only.** A build-intake or repair-intake dispatch has already written the bundle it read, verbatim, to the git-ignored `.lisa/work-item-context.md` and invokes this skill with `caller_bundle_path=<absolute path>`. Pass only `caller_bundle_path: <absolute path>` to `lisa-track`, next to `$ARGUMENTS`. Bundle text, and any credential value in it, never appears in a subagent prompt, task description, or Skill argument — only its path.
53
55
 
54
56
  - **Explicit ticket:** call `lisa-tracker-read` against the configured tracker and require a live open/unresolved current-project leaf. **Mismatch guard:** if the ticket format/project does not match the configured tracker (for example, a GitHub URL when `tracker` is `jira`), stop — never auto-translate vendors or trust pasted/stale ticket text. The read captures comments, graph, and metadata, not just the description.
55
57
  - **Specification file:** read the entire file without offset or limit, preserve it as the resolved input, and follow the plain-text resolution path below.
56
58
  - **Plain text or file contents:** search the configured project conservatively for open leaves describing the same outcome. Live-validate every candidate through `lisa-tracker-read`; reuse only exactly one high-confidence match. When there is no unique match (zero or ambiguous candidates), synthesize one complete single-repository leaf and invoke `lisa-tracker-write` exactly once with `build_ready: true`, then live-read its canonical returned ref. Never create a thin placeholder, hierarchy, or container.
59
+ - **Preclaim required access:** follow `tool-access-gate` Task readiness before claiming. Resolve the complete live item and enumeration, write only the bounded requirements header in ignored context, and evaluate ESTABLISHED / DENIED / NATIVE_OWNER_REQUIRED. Native-owner handoff requires that owner's actual immediate identity/resource probe before the affected continuation, not a cached pass or an endless shell refusal. Keep the continuous new-requirement check later in this flow.
60
+
57
61
  - **Claim:** invoke `lisa-tracker-claim <canonical-ref>` and require the provider skill's post-read verified `claimed|reused` result. A failed or inaccessible claim blocks the flow.
58
62
  - **Bind before durable work:** only after the verified claim, run:
59
63
 
@@ -65,6 +69,7 @@ Resolve the input before any other work. Invoke `lisa-track $ARGUMENTS` (with `m
65
69
  - **Persist the bundle verbatim to `.lisa/work-item-context.md`.** **Ignore guard before any write.** A host can receive these skills before its shipped `.gitignore` entry, so prove the path is ignored first, from the worktree root: `git check-ignore -q .lisa/work-item-context.md || printf '%s\n' '.lisa/work-item-context.md' >> "$(git rev-parse --git-common-dir)/info/exclude"`, then re-run `git check-ignore -q .lisa/work-item-context.md`. If it is still not ignored, stop and report — do not write the bundle. If an `.easignore` exists and `grep -qxF '.lisa/work-item-context.md' .easignore` fails, stop and report instead of writing: EAS uploads read `.easignore`, which is derived from `.gitignore`, not from `info/exclude`. There is one writer order. `lisa-track` has already written its live read, unedited, to `<worktree root>/.lisa/work-item-context.md`. With no `caller_bundle_path`, keep that file as written. With a `caller_bundle_path`, `lisa-track` leaves an existing file untouched, and this step persists the caller-supplied bundle instead of discarding it: refuse a `caller_bundle_path` that does not end in `/.lisa/work-item-context.md` — do not read it, report the refusal, and keep the live read as the file; otherwise read the file at that path and keep it as the base (copy it verbatim to the worktree's `.lisa/work-item-context.md` first if the path differs), then append under `## Added by live read` only what the live read carries that the caller bundle lacks (newer comments, changed status or graph). Either way the live validation and claim still run exactly as above. Never summarize, trim, or paraphrase the bundle; downstream agents act on this file, so anything left out of it is lost to them. The file is worktree-local and git-ignored; never stage it.
66
70
  - **Append the per-comment inventory to the file.** Finish the file with a trailing `## Comment inventory` section: one line per comment with author, date, one-line gist, and flags from `decision|constraint|credential|repro` for each decision, constraint, credential/access note, or reproduction step it carries. The inventory indexes the bundle above it; it never replaces it. **A `credential` gist names only the kind and the location** — for example `staging API token — see comment 4 in the context file` — never the secret value or identifier. The value stays only in the git-ignored context file: never copy it into task descriptions, subagent prompts, plan files, tracker comments, or PR text.
67
71
  - Keep `work_item_context: <absolute path of the file>`, the per-comment inventory, `tracker_provider`, canonical `work_item_ref`, resolution outcome, claim outcome, verified binding, and `lisa-track`'s `route` (with `failing_checks` and `head_ref`). Then continue — or, for `route: ci-rework` or `route: blocked`, take the CI-rework route below.
72
+ - Validate task readiness from the leading requirements section in the ignored context bundle before durable project work. If the shared probe needs a native access owner, that owner must verify the account and resource when it performs the operation.
68
73
 
69
74
  These tracker and local-binding operations come first because they establish what work this flow is allowed to do. No project source, documentation, plan artifact, branch, or task may be created or changed before this transaction succeeds. Read-only discussion/orientation outside an Implement flow remains exempt per the `tracked-work` rule.
70
75
 
@@ -173,6 +178,13 @@ When the control shows the surface is not locally exercisable, that is exit 2 be
173
178
 
174
179
  If the required regression spec is still in flight on an auto-merge-enabled PR, pause auto-merge or use an equivalent merge gate until the spec commit is pushed and its execution proof is available. The flow must not allow the PR to merge before this non-demotable deliverable is satisfied or formally blocked through the linked follow-up path above.
175
180
 
181
+ **Decide how the work stays promotable** (`coding-philosophy`, "Always Promotable"): whatever is on a shared branch can be promoted to the next environment as it stands, so no piece of work may block a deployment. Read the item's `## Release Switch` declaration (gate S22; `lisa-track` wrote one when the item had none) and `node scripts/lisa-release-switch.mjs config`. When the project sets `release.liveUsers: false`, skip this paragraph. Otherwise one question decides: if this were promoted to production right now, would a user see something unfinished or unproven?
182
+
183
+ - **No → the work is live.** Bug fixes, small tweaks, copy changes, refactors and dependency updates almost always are. Never add a switch to work that is complete and proven when it merges. Prove the change **before** it merges (the local verification below), because it is live the moment it ships; the check in the target environment after the deploy confirms that proof, and its not having run yet does not make the work unverified; if it changes a database or an API, add before you remove and keep the change additive, so old and new code work side by side.
184
+ - **Yes → the work 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. Use the project's mechanism (`release.switch.mechanism`, with its convention at `release.switch.guide`); with none named, use a plain configuration value that defaults to off. Give the switch 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 its 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; records do not count (`evidence/<ticket>/…` at the repository root, a `CHANGELOG` file, and `.lisa/`), so recording that the switch is off holds nothing open. Every other file counts, documentation included. Lisa wraps no flag tool: follow the project's existing pattern and never introduce a second one. The switch must be settable per environment. Plan tasks for all three things: add the switch, confirm it is off in production, and remove it. Removing it is part of finishing, not a follow-up: the item that removes the switch is not done while the switch exists.
185
+
186
+ If the declaration no longer matches the work, update it through `lisa-tracker-write` before building.
187
+
176
188
  Determine how you will know that the task is fully complete. Write this as an **effective completion condition** — one an independent verifier could confirm from observed output alone, not from your assertion that it works. A strong condition has:
177
189
 
178
190
  - **One measurable end state** — a status code, an exit code, a row count, an observable UI state, an empty queue. Not "it looks right" or "the code is correct".
@@ -343,10 +355,11 @@ Before finishing, execute the Verify flow:
343
355
  8. PR Watch Loop: Drive the PR to merge via the `drive-pr-to-merge` skill — the single source of truth for clearing every blocker (auto-merge with direct-merge fallback, `BEHIND` re-sync, conflict resolution, failing-check fixes, human + bot review-comment handling with thread resolution, stale `CHANGES_REQUESTED` dismissal, and post-merge ancestry verification). `git-submit-pr` already invokes it; if you reach this step with a PR already open, invoke `drive-pr-to-merge` directly with the PR number. For a large review backlog you may delegate independent code fixes to subagents, but `drive-pr-to-merge` owns the loop and the terminal conditions — do not re-implement them.
344
356
  9. Merge the PR, then refresh the ticket-side backlink with `lisa-tracker-sync <work_item_ref> pr-merged pr_url=<url> merge_sha=<sha> tracker_provider=<provider>`.
345
357
  10. Monitor the deploy action that triggers automatically from the successful merge, in the own turn of the agent running this flow (the lead) with a bounded foreground watch. Do not look the run up again: `lisa-drive-pr-to-merge` already confirmed it during step 8 (its deploy-run check). If step 8 returned `blocked:deploy` or `blocked:no-deploy-run`, no deploy run fired, and that is not a code failure: treat it as blocked under the blocked-deploy rule below, and never open a fix PR for it. Otherwise watch the run step 8 confirmed. The ceiling is 60 minutes from the merge, unless the work item or the deploy workflow's own `timeout-minutes` sets another. Before each watch, first read `gh run view <run id> --json status,conclusion`: a run that has already concluded is judged by its conclusion, whatever the time. Only for a run still in progress, compute the seconds remaining before the ceiling; if none remain, stop watching and apply the blocked-deploy rule. Otherwise watch with `timeout <n> gh run watch <run id> --interval 30 --exit-status`, where `<n>` is the smaller of 540 and the seconds remaining (`timeout <n>` where the `timeout` utility exists; otherwise rely on the harness's own command timeout), give the tool call a timeout just above `<n>` (at most 600000 ms on Claude Code), and re-poll `gh run view <run id> --json status,conclusion` after each return until the run concludes. A run that concluded successfully proceeds to step 12; one that concluded unsuccessfully is a deploy failure — go to step 11. A run still in progress at the ceiling is not a code failure: treat it as blocked under the blocked-deploy rule, and never open a fix PR for it. Blocked-deploy rule: diagnose why no run fired or why the run did not finish. A repository-owned technical gap (a misconfigured trigger, a missing `workflow_dispatch`, a deploy job that hangs) is an actionable blocker under step 2a — file and link the build-ready ticket. Missing access, credentials or a human decision is a human-only blocker under step 2a. Either way, record the blocked verdict and end the flow there: skip steps 11–14, still post evidence (step 15), and keep the binding (step 16). **Never wait on the deploy with a detached or background watcher** — no trailing `&`, no `nohup`, no harness background task, no scheduled re-check — because its result reaches only the agent that started it, never the lead, which then sits idle after the deploy has finished. This is the same rule `lisa-drive-pr-to-merge` applies to the CI wait. If a watcher subagent is used anyway, it must `SendMessage` the lead the moment the run succeeds or fails, and the lead's turn may end only to wait for that message. On runtimes without cross-agent messaging, the foreground watch is the only option.
346
- 11. If deploy fails, fix the failure, open a new PR and then go back to step 7
358
+ 11. If deploy fails, find out why. When the merged change is what broke the deploy, revert it at once exactly as step 14 describes, whatever its `## Release Switch` says: a switch cannot turn off a failed build or deployment, and the shared branch must stay promotable while the rework happens. Otherwise (a failure the change did not cause, or a project that sets `release.liveUsers: false`) fix the failure, open a new PR and then go back to step 7
347
359
  12. Remote verification: `verification-specialist` verifies in target environment (same checks as local verification, but on remote), and refreshes the verdict (step 2a) to reflect the remote result. Resolve credentials through the `verification-lifecycle` lookup order before declaring any missing. If they remain genuinely unavailable, do not complete on artifact-only evidence: post a tracker comment naming every credential source checked and what could not be verified as a result, transition the work item to the configured blocked state, and apply the configured `needs-human` / `human-review` label (creating it when the tracker supports label creation and it is missing). The comment is what makes the escalation auditable — a label alone records that something stopped, not what was tried or why. Evidence must explicitly distinguish `verified empirically` from `artifact-only / verification deferred`.
348
360
  13. `ops-specialist`: post-deploy health check via `lisa-monitor <env> --report-only`, monitor for errors in first minutes. `--report-only` is REQUIRED: it keeps the post-deploy check a pure health/audit report so monitor's standalone ticket-filing never fires inside this flow.
349
- 14. If remote verification fails, find out why, fix it and return to step 5. **Bound this loop**: after a small number of full fix→deploy→reverify cycles without reaching a passing remote verdict (treat ~3 as the ceiling unless the work item states otherwise), stop retrying — file a build-ready fix ticket, write the verdict with `status: "blocked"` and the diagnosis, and move the work item to blocked rather than looping indefinitely. The completion gate releases on a `blocked` verdict, so the flow ends with a recorded outcome instead of a silent spin or a self-declared success.
361
+ 13a. **Switched-off work** (the item's `## Release Switch` says `Switched off — <switch-name>`, in a project with live users): steps 12 and 13 verify it with the switch **on** in a non-production environment, or, in a project with one environment, locally or for a test account only. Read back that the switch is **off** in production and record that read as evidence; if you cannot read the production value, you cannot claim the work is dark, so treat it as missing access (`tool-access-gate`). Only the item that removes the switch turns the feature on, and only once the whole feature is verified: when the declaration names another item as the remover, verify this item's part and leave the switch off in production. For the removing item, once verification passes, first confirm that the version you verified is what production is running (the production deployment includes the feature's last merge), because turning the switch on over an earlier, incomplete version shows users unfinished work. Then turn the switch on in production yourself. No person is needed, unless `node scripts/lisa-release-switch.mjs config` reports `"turnOn": "human"` (the project lists `feature-release` in `humanGate.humanOnly`); then that one step is a declared human gate: post a plain-English comment saying the feature is verified and waiting to be turned on, and hold the item there with a human-gate reason that names the class, for example `feature-release: turn <switch-name> on in production` (a reason that does not name `feature-release` is refused as a decision the agent should make). If the same command lists a `humanGate.humanOnly` problem, the project's setting is malformed: report it and do not turn the feature on. Remove the switch only after it is on in production and healthy, in a follow-on change on the same work item (or the item the declaration names): never while verification is failing or the turn-on is still waiting at the human gate, because removing the guard keeps the enabled path. That removal change is verified differently: the switch is on, or already gone, so there is no "off in production" to read back. Verify instead that the feature works in production with the switch removed and that nothing still reads it. `lisa-work-item.mjs finish` refuses the removing item while tracked source still references the switch.
362
+ 14. If remote verification fails, find out why. **A change whose failure is live is reverted, not fixed forward** (`coding-philosophy`, "Always Promotable"). Judge that by what users can reach, not only by the declaration: the failure is live when the item's `## Release Switch` says `Live` (or it has none), and also when the item is switched off but the failure shows with the switch off (it broke existing behavior). In a project with live users, that change is on a shared branch that must stay promotable. Revert it at once: open a pull request that reverts the merged change, drive it to merge with `lisa-drive-pr-to-merge`, then return the work item to the ready queue with the failure evidence so the rework arrives as a fresh claim. Never leave the change in place while you fix it, and never hold a promotion for it. Write the verdict with `status: "blocked"`, marking each criterion the failure affects as `blocked` with the failure and the revert as its evidence, and end the flow there: the completion gate releases on a `blocked` verdict, and the rework is already back in the ready queue. Once the switch is on in production, every failure of the feature is live: turn the switch off again at once, which is the fastest way back, and revert the removal change if it has already shipped. **A failure that only shows with the switch on while the switch is still off in production, and any failure in a project that sets `release.liveUsers: false`, is fixed forward**: nothing users can reach is broken and nothing is blocked, so fix it and return to step 5. **Bound this loop**: after a small number of full fix→deploy→reverify cycles without reaching a passing remote verdict (treat ~3 as the ceiling unless the work item states otherwise), stop retrying — file a build-ready fix ticket, write the verdict with `status: "blocked"` and the diagnosis, and move the work item to blocked rather than looping indefinitely. The completion gate releases on a `blocked` verdict, so the flow ends with a recorded outcome instead of a silent spin or a self-declared success.
350
363
  15. **Post evidence to the originating work item** via `lisa-tracker-evidence` (vendor-neutral; dispatches to `lisa-jira-evidence`, `lisa-github-evidence`, or `lisa-linear-evidence` per `.lisa.config.json` `tracker`), including the list of codified tests added on this branch. **If the work is UI-visible** (any verification step ran in a browser, or the change touches a user-facing surface), author `evidence/comment.md` per the **UI Evidence Checklist** in `lisa-tracker-evidence` — numbered live-session steps, one screenshot per step captured through the interactive browser controller and uploaded to the configured GitHub evidence release (default `pr-assets`) as plain URLs, and an explicit invitation to be corrected. This step is what makes the proof visible to a non-technical operator standing at the gate; a terminal work item with no posted evidence is an incomplete flow, not a finished one.
351
364
  16. After true terminal completion — required merge/deploy/verification passed, usage/evidence and two-way PR linkage are recorded, and the work item is terminal (terminal completion is `lisa-work-item.mjs finish`, run by `lisa-drive-pr-to-merge` §3d) — run `node scripts/lisa-work-item.mjs clear`, delete the work-item context file (`rm -f .lisa/work-item-context.md` from the worktree root) so comment-borne secrets do not outlive the work, and verify the worktree has no current binding and no context file. Do not clear on an interruption or blocked outcome; preserving the binding is what keeps resumed work attributable.
352
365
 
@@ -382,6 +382,8 @@ This gate never blocks a legitimate flat Task/Bug: those have no open children a
382
382
 
383
383
  #### 3b. Claim
384
384
 
385
+ **Required-access preclaim gate.** Before this claim mutation, follow `tool-access-gate` → Task readiness. Enumerate the live body, all comments, proof and delivery requirements into the leading requirements-only header in the ignored context; run the existing secrets preflight `--task --ref <canonical-ref>`. `ESTABLISHED` proves only its exercised scope. `DENIED` stops affected work. `NATIVE_OWNER_REQUIRED` (CLI exit3, not PASS) hands the remaining route to its documented native access owner: that owner must perform the actual immediate identity/resource probe before claim or the affected continuation, retaining write/readback duties. Do not repeat an unobservable shell probe forever or accept a stored passed field. Report the exact shell/native enforcement gap. Only the bounded local intake metadata write may precede this gate. Held/leaf/scope/idempotency and failed tracker-read/write stops remain independent.
386
+
385
387
  Before the claim mutation, apply `claim-time-guards` — **Value before claim**, or **Worth doing** in `lisa-track` on runtimes without the rule tree (Antigravity). A ready label establishes neither value nor permission to expand scope. Respect the preceding human-hold gate; a declined incidental item consumes this cycle's one processed disposition.
386
388
 
387
389
 
@@ -6,6 +6,8 @@ allowed-tools: ["Bash", "Skill", "Read"]
6
6
 
7
7
  # Claim Jira Ticket: $ARGUMENTS
8
8
 
9
+ **Required-access preclaim gate.** Before this claim mutation, follow `tool-access-gate` → Task readiness. Enumerate the live body, all comments, proof and delivery requirements into the leading requirements-only header in the ignored context; run the existing secrets preflight `--task --ref <canonical-ref>`. `ESTABLISHED` proves only its exercised scope. `DENIED` stops affected work. `NATIVE_OWNER_REQUIRED` (CLI exit3, not PASS) hands the remaining route to its documented native access owner: that owner must perform the actual immediate identity/resource probe before claim or the affected continuation, retaining write/readback duties. Do not repeat an unobservable shell probe forever or accept a stored passed field. Report the exact shell/native enforcement gap. Only the bounded local intake metadata write may precede this gate. Held/leaf/scope/idempotency and failed tracker-read/write stops remain independent.
10
+
9
11
  Claim exactly one canonical Jira key. All Jira access goes through `lisa-atlassian-access`; do not call MCP tools or `acli` directly. This is the reusable direct-session counterpart of `lisa-jira-build-intake` Phase 3b.
10
12
 
11
13
  1. Resolve merged `atlassian.cloudId`, `jira.project`, and `jira.workflow` values from local-over-global config. Require the key's project prefix to equal the configured Jira project. Resolve ready, claimed, review, environment, and terminal roles from config; do not hardcode status decisions.
@@ -12,6 +12,15 @@ Fetch the full scope of the ticket AND its related graph. Downstream agents must
12
12
 
13
13
  Repository name for scoped comments and logs: `basename $(git rev-parse --show-toplevel)`.
14
14
 
15
+ When preparing the first task context for a configured Jira issue, use the scoped intake command from the installed `lisa-secrets-access` skill. Use the literal absolute path to its script and the configured project's issue key.
16
+
17
+ ```bash
18
+ node /absolute/lisa-secrets-access/scripts/preflight-secrets.mjs --tracker-intake-read --ref PROJ-123 --read issue
19
+ node /absolute/lisa-secrets-access/scripts/preflight-secrets.mjs --tracker-intake-read --ref PROJ-123 --read comments
20
+ ```
21
+
22
+ The token route returns the full issue and remote links, and the comments command reads all pages in order. If the token is unavailable, the command can read the issue through an already authenticated `acli` session on the configured site. That route reports `remoteLinks: null` and returns comments only when the embedded page is complete. Use the Atlassian access owner's native Jira issue and remote-link reads against the configured cloud and issue key to fill missing data. Check the embedded comment total before treating native context as complete.
23
+
15
24
  ## Phase 1 — Resolve Context
16
25
 
17
26
  1. Invoke `lisa-atlassian-access` via the Skill tool with `operation: list-sites` to confirm the configured site is reachable and resolve the cloud ID.
@@ -140,6 +140,7 @@ Per-type content requirements are defined once in the vendor-neutral `work-item-
140
140
  | S19 Branch Plan derivation | `technical` | false |
141
141
  | S20 Named-control reachability | `acceptance-criteria` | true |
142
142
  | S21 Token estimate (ready time) | `technical` | false |
143
+ | S22 Release switch declaration | `technical` | false |
143
144
  | F1 Issue type valid in project | `structural` | false |
144
145
  | F2 Epic parent exists and is an Epic | `structural` | false |
145
146
  | F3 Linked tickets exist | `structural` | false |
@@ -416,6 +417,30 @@ Remediation: re-render the section with `node scripts/lisa-estimate.mjs render -
416
417
 
417
418
  `product_relevant: false` — the estimate is produced by agents, not by whoever wrote the item.
418
419
 
420
+ #### S22 — Release switch declaration
421
+
422
+ Enforces the always-promotable rule (`coding-philosophy`, "Always Promotable"): whatever is on a shared branch can be promoted to the next environment as it stands, so every ticket that changes runtime behavior says how it is safe to promote.
423
+
424
+ **When the gate applies.** On a leaf whose `## Target Backend Environment` names an environment (`runtime_behavior_change = true`, derived from the stored declaration exactly as S8 derives it), in a project with live users (`release.liveUsers` absent or `true`). `N/A` when that declaration is a `None —` form (no runtime behavior change, or a container), and whenever the project sets `release.liveUsers: false`; then nothing about release switches blocks.
425
+
426
+ **How to run it.** Write the body to a file and run `node scripts/lisa-release-switch.mjs check --body-file <file>` for a proposed spec, adding `--existing true` when the ticket already exists in the tracker. Report its verdict line and reasons verbatim: exit 0 is PASS or N/A, exit 1 is FAIL, exit 2 means the config or the call is broken, which fails the gate with the error.
427
+
428
+ **What it checks.** The body carries a `## Release Switch` section whose entire content is one line, in one of these forms:
429
+
430
+ ```text
431
+ Live — complete and proven at merge
432
+ Switched off — <switch-name>; removed by this item
433
+ Switched off — <switch-name>; removed by <work-item ref>
434
+ ```
435
+
436
+ A **proposed spec** with no section FAILs: `lisa-jira-write-ticket` renders it before the write. A **live legacy ticket** with no section is `N/A` with a repair note routed to claim time, the same asymmetry S8 and S19 use, because failing every existing ticket would turn a legacy queue red for a section nobody had a way to add. A section that **is** present FAILs, on a proposed spec and on a live ticket alike, when it is neither form: no switch name, no work item that removes the switch, a second line, or free text.
437
+
438
+ **Which form.** One question decides: if this were promoted to production right now, would a user see something unfinished or unproven? If no, the work is live. Bug fixes, small tweaks, copy changes, refactors and dependency updates almost always are, and this gate never asks for a switch on work that is complete and proven when it merges. If yes (a feature or a fix that lands across several merges, or new behavior that merges before its verification has passed), the work is switched off, and the declaration names the switch and the work item that removes it. The question decides, not the kind of work.
439
+
440
+ Remediation: render the section with `node scripts/lisa-release-switch.mjs render --mode live --body-file <file>`, or `--mode off --switch <name> --removed-by "this item"` (or a work-item ref), and write the result back. Decide the form from the item; never ask a person for it.
441
+
442
+ `product_relevant: false` — how work is made safe to promote is an engineering decision the agent makes, not a product question.
443
+
419
444
  ### Feasibility Gates (require JIRA lookups; skip in dry-run if requested)
420
445
 
421
446
  #### F1 — Issue type valid in project
@@ -506,6 +531,7 @@ Output is a single fenced text block. Callers parse it; do not add free-form pro
506
531
  - [PASS|FAIL|N/A] S19 Branch Plan derivation — <one-line reason>
507
532
  - [PASS|FAIL|N/A] S20 Named-control reachability — <one-line reason>
508
533
  - [PASS|FAIL|N/A] S21 Token estimate (ready time) — <one-line reason>
534
+ - [PASS|FAIL|N/A] S22 Release switch declaration — <one-line reason>
509
535
 
510
536
  ### Feasibility Gates (omit this section when --spec-only)
511
537
  - [PASS|FAIL|N/A] F1 Issue type valid in project — <one-line reason>
@@ -531,7 +557,7 @@ The verdict is `PASS` if and only if every applicable gate is `PASS`. Any `FAIL`
531
557
 
532
558
  ### Failure-detail fields
533
559
 
534
- - **gate**: the gate ID (`S1`–`S21`, `F1`–`F5`).
560
+ - **gate**: the gate ID (`S1`–`S22`, `F1`–`F5`).
535
561
  - **category**: the gate's fixed category from the table above. Callers use this to label or filter comments — `product-clarity`, `acceptance-criteria`, `design-ux`, `scope`, `dependency`, `data`, `technical`, or `structural`.
536
562
  - **product_relevant**: matches the gate's table entry. `false` means the failure is an internal data-quality problem (e.g., the agent built a malformed spec, an issue type is invalid in the project) and the caller should fix it without bothering the product team. `true` means the PRD needs product input to resolve.
537
563
  - **what**: plain-language description of the issue. No gate IDs, no JIRA jargon, no engineering shorthand. A product owner reading this on a Notion comment should understand what is unclear and why.
@@ -91,6 +91,7 @@ Required fields. Derive a missing one from config, the caller's spec and the evi
91
91
  | Acceptance criteria | Story, Task, Bug, Sub-task, Improvement | Gherkin — see Phase 3 |
92
92
  | Validation Journey | Runtime-behavior changes | Delegate to `/jira-add-journey` |
93
93
  | Target backend environment | Runtime-behavior changes | For every work type, use an exact `deploy.branches` key when an environment is known. Human: bare key or `Confirmed: <env>`. Automation: `Inferred: <env> — evidence: <title\|body\|reproduction\|hostname>`, `Assumption: <env> — remote default branch <branch>` for a unique reverse-map, or `Assumption: remote default branch <branch>` otherwise. Human confirmation replaces an automated annotation with the bare key or `Confirmed: <env>`. |
94
+ | Release switch | Runtime-behavior changes, in a project with live users | `Live — complete and proven at merge`, or `Switched off — <switch-name>; removed by this item` (or a work-item ref). Rendered under `## Release Switch` by `scripts/lisa-release-switch.mjs render`; see Phase 3 and validator gate S22. |
94
95
  | Sign-in account / credentials | Tickets that touch authenticated surfaces | Name the account (or source — 1Password item, env var, seeded fixture) and role; recorded in description (Phase 3). Omit when sign-in is not required. |
95
96
  | Single-repo scope | Bug, Task, Sub-task, Improvement | These leaf work units MUST cover one repo only. If the work crosses repos, split it before creating. Epic / Spike / Story may span repos. |
96
97
  | Source Requirement | PRD-sourced tickets (`prd_source` provided) | `h2. Source Requirement` with PRD link + verbatim requirement quote(s) — see Phase 3; enforced at every level, sub-tasks included |
@@ -176,6 +177,28 @@ h2. Branch Plan
176
177
  non-unique mapping, or a branch absent from the remote, STOPS the write —
177
178
  never default to `main` or the remote default to keep the write alive.]
178
179
 
180
+ h2. Release Switch
181
+ [GENERATED by `node scripts/lisa-release-switch.mjs render`, exactly one line.
182
+ Render it on every leaf that has a Target Backend Environment, in a project
183
+ with live users (`release.liveUsers` absent or `true`); omit it entirely when
184
+ `runtime_behavior_change = false`, for an Epic/container, or when the project
185
+ sets `release.liveUsers: false`. It says how the work is safe to promote
186
+ (`coding-philosophy`, "Always Promotable"; validator gate S22):
187
+ Live — complete and proven at merge
188
+ Switched off — <switch-name>; removed by this item
189
+ Switched off — <switch-name>; removed by <work-item ref>
190
+ Decide it with one question: if this were promoted to production right now,
191
+ would a user see something unfinished or unproven? If no, it is live: bug
192
+ fixes, small tweaks, copy changes, refactors and dependency updates almost
193
+ always are, and work that is complete and proven when it merges never gets a
194
+ switch. If yes (a feature or a fix that lands across several merges, or
195
+ new behavior that merges before its verification has passed), it is switched
196
+ off: name the switch, and name the work item that removes it. Every item of a
197
+ multi-item feature names the same switch and the same removing item. Pick a
198
+ switch name that appears nowhere else in the repository and is not the start
199
+ of another switch's name: the done gate searches tracked source for it as a
200
+ whole token. Never ask a person which form applies.]
201
+
179
202
  h2. Sign-in Required
180
203
  [Include this section ONLY if the work touches authenticated surfaces.
181
204
  Specify: the account/role to sign in as, where to get the credentials