@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
@@ -0,0 +1,463 @@
1
+ /** Read the configured Linear or Jira issue before a readiness header exists. */
2
+ import { execFileSync } from "node:child_process";
3
+ import { lstatSync, unlinkSync, writeFileSync } from "node:fs";
4
+ import { join } from "node:path";
5
+ import { fileURLToPath } from "node:url";
6
+ import { AccessFailure, plainObject } from "./config-layers.mjs";
7
+ import { readTaskConfig } from "./surfaces.mjs";
8
+ import { configDigest, taskBinding } from "./task-requirements.mjs";
9
+ import { candidate, failure } from "./task-readiness.mjs";
10
+ import { fingerprint, resultObject } from "./task-native-contract.mjs";
11
+ import { gateDirectory } from "./task-native-lifecycle.mjs";
12
+ import { sessionKey } from "./task-native-state.mjs";
13
+
14
+ const issueKey = /^([A-Z][A-Z0-9]*)-[1-9]\d*$/u;
15
+ const pageSize = 100;
16
+ const maxPages = 100;
17
+ const maxReadBytes = 64 * 1024 * 1024;
18
+ const linearAdapter = fileURLToPath(
19
+ new URL("../../lisa-linear-access/scripts/linear-graphql.sh", import.meta.url)
20
+ );
21
+ const linearFields = "id identifier team{key}";
22
+ const linearIssue = `query($id:String!){issue(id:$id){${linearFields} title description url priority estimate dueDate createdAt updatedAt completedAt state{name type} assignee{id name} creator{id name} project{id name url} parent{id identifier title} children(first:100){pageInfo{hasNextPage endCursor} nodes{id identifier title}} labels(first:100){pageInfo{hasNextPage endCursor} nodes{name}} attachments(first:100){pageInfo{hasNextPage endCursor} nodes{id title url}} relations(first:100){pageInfo{hasNextPage endCursor} nodes{type relatedIssue{id identifier title}}} inverseRelations(first:100){pageInfo{hasNextPage endCursor} nodes{type issue{id identifier title}}}}}`;
23
+ const linearComments = `query($id:String!,$after:String){issue(id:$id){${linearFields} comments(first:${pageSize},after:$after){pageInfo{hasNextPage endCursor} nodes{id body createdAt url parent{id} user{id name} botActor{__typename}}}}}`;
24
+ const nativeLinearTool =
25
+ /^mcp__(linear-server|linear)__(list_teams|get_issue|list_comments)$/u;
26
+ const uuid = /^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$/iu;
27
+
28
+ function linearMarker(event, cfg, scope) {
29
+ const coordinate = fingerprint({
30
+ session: sessionKey(event, cfg.projectRoot),
31
+ config: configDigest(cfg),
32
+ server: event.mcp_server ?? nativeLinearTool.exec(event.tool_name)?.[1],
33
+ scope,
34
+ });
35
+ return join(gateDirectory(), `readiness-linear-${coordinate}.marker`);
36
+ }
37
+
38
+ function hasMarker(path) {
39
+ try {
40
+ const state = lstatSync(path);
41
+ return (
42
+ state.isFile() &&
43
+ state.size === 0 &&
44
+ !(state.mode & 0o077) &&
45
+ (!process.getuid || state.uid === process.getuid())
46
+ );
47
+ } catch {
48
+ return false;
49
+ }
50
+ }
51
+
52
+ function mark(path) {
53
+ if (hasMarker(path)) return;
54
+ writeFileSync(path, "", { flag: "wx", mode: 0o600 });
55
+ }
56
+
57
+ function linearCallMarker(event, cfg) {
58
+ if (
59
+ typeof event.tool_use_id !== "string" ||
60
+ !event.tool_use_id ||
61
+ event.tool_use_id.length > 512 ||
62
+ !event.session_id
63
+ )
64
+ return null;
65
+ return linearMarker(event, cfg, {
66
+ call: event.tool_use_id,
67
+ args: event.tool_input,
68
+ });
69
+ }
70
+
71
+ function scopedLinearRequest(event, cfg) {
72
+ const { tracker, linear } = cfg.effective ?? {};
73
+ const tool = nativeLinearTool.exec(event.tool_name);
74
+ const args = event.tool_input;
75
+ return tracker === "linear" &&
76
+ linear?.workspace &&
77
+ linear?.teamKey &&
78
+ tool &&
79
+ plainObject(args) &&
80
+ (event.mcp_server === undefined || event.mcp_server?.name === tool[1])
81
+ ? { linear, operation: tool[2], args }
82
+ : null;
83
+ }
84
+
85
+ function configuredLinearIssue(ref, team) {
86
+ return typeof ref === "string" && issueKey.exec(ref)?.[1] === team;
87
+ }
88
+
89
+ function scopedLinearIssueResult(event, cfg) {
90
+ const input = scopedLinearRequest(event, cfg);
91
+ if (input?.operation !== "get_issue") return;
92
+ const call = linearCallMarker(event, cfg);
93
+ if (!call || !hasMarker(call)) return;
94
+ unlinkSync(call);
95
+ if (event.hook_event_name !== "PostToolUse") return;
96
+ const issue = resultObject(event.tool_response);
97
+ if (
98
+ issue.identifier !== input.args.id ||
99
+ typeof issue.id !== "string" ||
100
+ !uuid.test(issue.id) ||
101
+ typeof issue.url !== "string"
102
+ )
103
+ return;
104
+ const url = new URL(issue.url);
105
+ const [, workspace, kind, ref] = url.pathname.split("/");
106
+ if (
107
+ url.origin !== "https://linear.app" ||
108
+ url.username ||
109
+ url.password ||
110
+ workspace !== input.linear.workspace ||
111
+ kind !== "issue" ||
112
+ ref !== issue.identifier
113
+ )
114
+ return;
115
+ mark(linearMarker(event, cfg, { uuid: issue.id.toLowerCase() }));
116
+ }
117
+
118
+ /** Bind a comment UUID only to a successful scoped result from the same native call. */
119
+ export function observeLinearIntake(event, cfg) {
120
+ try {
121
+ scopedLinearIssueResult(event, cfg);
122
+ } catch {
123
+ // Missing, malformed, or stale native results convey no issue identity.
124
+ }
125
+ }
126
+
127
+ /** Admit the documented Linear owner's read-only fallback. Calling it proves no work access. */
128
+ export function linearIntakeRead(event, cfg) {
129
+ const input = scopedLinearRequest(event, cfg);
130
+ if (!input) return false;
131
+ const { linear, operation, args } = input;
132
+ if (operation === "get_issue") {
133
+ const allowed =
134
+ configuredLinearIssue(args.id, linear.teamKey) &&
135
+ Object.keys(args).every(key =>
136
+ ["id", "includeRelations"].includes(key)
137
+ ) &&
138
+ (args.includeRelations === undefined ||
139
+ typeof args.includeRelations === "boolean");
140
+ if (allowed) {
141
+ const call = linearCallMarker(event, cfg);
142
+ if (call) mark(call);
143
+ }
144
+ return allowed;
145
+ }
146
+ if (
147
+ (args.limit !== undefined &&
148
+ (!Number.isInteger(args.limit) ||
149
+ args.limit < 1 ||
150
+ args.limit > pageSize)) ||
151
+ (args.cursor !== undefined &&
152
+ (typeof args.cursor !== "string" ||
153
+ args.cursor.length === 0 ||
154
+ args.cursor.length > 512)) ||
155
+ (args.orderBy !== undefined &&
156
+ !["createdAt", "updatedAt"].includes(args.orderBy))
157
+ )
158
+ return false;
159
+ if (operation === "list_teams") {
160
+ return (
161
+ args.query === linear.teamKey &&
162
+ Object.keys(args).every(key =>
163
+ ["query", "limit", "cursor", "orderBy"].includes(key)
164
+ )
165
+ );
166
+ }
167
+ // UUIDs have no team prefix. Only a native result scoped above can bind one.
168
+ return (
169
+ (configuredLinearIssue(args.issueId, linear.teamKey) ||
170
+ (typeof args.issueId === "string" &&
171
+ uuid.test(args.issueId) &&
172
+ event.session_id &&
173
+ hasMarker(
174
+ linearMarker(event, cfg, { uuid: args.issueId.toLowerCase() })
175
+ ))) &&
176
+ Object.keys(args).every(key =>
177
+ ["issueId", "limit", "cursor", "orderBy"].includes(key)
178
+ )
179
+ );
180
+ }
181
+
182
+ /** Parse only fixed read operations on an issue in the configured project. */
183
+ export function trackerIntakeRequest(args, cfg) {
184
+ const [mode, refFlag, ref, readFlag, operation] = args;
185
+ const c = cfg.effective;
186
+ const tracker = c?.tracker;
187
+ const project = tracker === "linear" ? c.linear?.teamKey : c?.jira?.project;
188
+ if (
189
+ args.length !== 5 ||
190
+ mode !== "--tracker-intake-read" ||
191
+ refFlag !== "--ref" ||
192
+ readFlag !== "--read" ||
193
+ !["linear", "jira"].includes(tracker) ||
194
+ !["issue", "comments"].includes(operation) ||
195
+ !project ||
196
+ issueKey.exec(ref)?.[1] !== project
197
+ )
198
+ return null;
199
+ return { ref, tracker, project, operation };
200
+ }
201
+
202
+ function transportFor(cfg) {
203
+ const deadline = performance.now() + 120000;
204
+ let remainingBytes = maxReadBytes;
205
+ return (command, args, input, exitCodes = {}) => {
206
+ const timeout = Math.floor(Math.min(25000, deadline - performance.now()));
207
+ if (timeout <= 0 || remainingBytes <= 0)
208
+ throw new AccessFailure("capability-unreachable");
209
+ try {
210
+ const raw = execFileSync(command, args, {
211
+ cwd: cfg.projectRoot,
212
+ input,
213
+ encoding: "utf8",
214
+ timeout,
215
+ maxBuffer: Math.min(8 * 1024 * 1024, remainingBytes),
216
+ stdio: ["pipe", "pipe", "pipe"],
217
+ });
218
+ remainingBytes -= Buffer.byteLength(raw);
219
+ return raw;
220
+ } catch (error) {
221
+ throw new AccessFailure(
222
+ error.code === "ENOENT"
223
+ ? "tool-missing"
224
+ : (exitCodes[error.status] ?? "capability-unreachable")
225
+ );
226
+ }
227
+ };
228
+ }
229
+
230
+ function response(raw) {
231
+ try {
232
+ return JSON.parse(raw);
233
+ } catch {
234
+ throw new AccessFailure("capability-unreachable");
235
+ }
236
+ }
237
+
238
+ function readLinear(cfg, { ref, project, operation }) {
239
+ const workspace = cfg.effective.linear.workspace;
240
+ if (typeof workspace !== "string" || !/^[A-Za-z0-9-]+$/u.test(workspace))
241
+ throw new AccessFailure("config-invalid");
242
+ const transport = transportFor(cfg);
243
+ const call = (query, after) => {
244
+ const raw = transport(
245
+ "bash",
246
+ [
247
+ linearAdapter,
248
+ "--workspace",
249
+ workspace,
250
+ "--team-key",
251
+ project,
252
+ "--query-file",
253
+ "-",
254
+ "--variables",
255
+ JSON.stringify({ id: ref, ...(after === undefined ? {} : { after }) }),
256
+ ],
257
+ query,
258
+ { 3: "credential-missing", 4: "identity-mismatch" }
259
+ );
260
+ const issue = response(raw)?.data?.issue;
261
+ if (issue?.identifier !== ref || issue.team?.key !== project)
262
+ throw new AccessFailure("identity-mismatch");
263
+ return issue;
264
+ };
265
+ if (operation === "issue") return call(linearIssue);
266
+ const comments = [];
267
+ const cursors = new Set();
268
+ let cursor = null;
269
+ for (let page = 0; page < maxPages; page++) {
270
+ const result = call(linearComments, cursor).comments;
271
+ if (
272
+ !Array.isArray(result?.nodes) ||
273
+ typeof result?.pageInfo?.hasNextPage !== "boolean"
274
+ )
275
+ break;
276
+ comments.push(...result.nodes);
277
+ if (!result.pageInfo.hasNextPage) return comments;
278
+ cursor = result.pageInfo.endCursor;
279
+ if (!cursor || typeof cursor !== "string" || cursors.has(cursor)) break;
280
+ cursors.add(cursor);
281
+ }
282
+ throw new AccessFailure("capability-unreachable");
283
+ }
284
+
285
+ function readJira(cfg, request) {
286
+ const { ref, project, operation } = request;
287
+ const { cloudId, email, site } = cfg.effective.atlassian ?? {};
288
+ if (
289
+ typeof cloudId !== "string" ||
290
+ !/^[A-Za-z0-9-]+$/u.test(cloudId) ||
291
+ typeof email !== "string" ||
292
+ !/^[^\s:@]+@[^\s:@]+$/u.test(email)
293
+ ) {
294
+ if (site) return readJiraWithAcli(cfg, request);
295
+ throw new AccessFailure("config-invalid");
296
+ }
297
+ const key = `ATLASSIAN_API_TOKEN_${email.toLowerCase().replaceAll(/[.@]/gu, "_")}`;
298
+ const env = process.env.ATLASSIAN_API_TOKEN?.trim()
299
+ ? process.env
300
+ : {
301
+ ...process.env,
302
+ ATLASSIAN_API_TOKEN: process.env[key],
303
+ };
304
+ const credential = jiraCredential(cfg, env);
305
+ if (!credential.available) {
306
+ if (!site) throw new AccessFailure(credential.code);
307
+ return readJiraWithAcli(cfg, request);
308
+ }
309
+ const encoded = Buffer.from(`${email}:${credential.value}`).toString(
310
+ "base64"
311
+ );
312
+ const base = `https://api.atlassian.com/ex/jira/${cloudId}/rest/api/3`;
313
+ const transport = transportFor(cfg);
314
+ const get = endpoint => {
315
+ const raw = transport(
316
+ "curl",
317
+ [
318
+ "-q",
319
+ "--silent",
320
+ "--show-error",
321
+ "--fail",
322
+ "--max-time",
323
+ "20",
324
+ "--header",
325
+ "@-",
326
+ "--header",
327
+ "Accept: application/json",
328
+ `${base}${endpoint}`,
329
+ ],
330
+ `Authorization: Basic ${encoded}\n`
331
+ );
332
+ if (raw.includes(credential.value) || raw.includes(encoded))
333
+ throw new AccessFailure("capability-unreachable");
334
+ return response(raw);
335
+ };
336
+ if (get("/myself")?.emailAddress?.toLowerCase() !== email.toLowerCase())
337
+ throw new AccessFailure("identity-mismatch");
338
+ const endpoint = `/issue/${ref}`;
339
+ const issue = get(`${endpoint}?fields=*all`);
340
+ if (issue?.key !== ref || issue.fields?.project?.key !== project)
341
+ throw new AccessFailure("identity-mismatch");
342
+ if (operation === "issue") {
343
+ const remoteLinks = get(`${endpoint}/remotelink`);
344
+ if (!Array.isArray(remoteLinks))
345
+ throw new AccessFailure("capability-unreachable");
346
+ return { issue, remoteLinks };
347
+ }
348
+ const comments = [];
349
+ let total;
350
+ for (let page = 0; page < maxPages; page++) {
351
+ const result = get(
352
+ `${endpoint}/comment?startAt=${comments.length}&maxResults=${pageSize}&orderBy=created`
353
+ );
354
+ if (
355
+ !Array.isArray(result?.comments) ||
356
+ result.startAt !== comments.length ||
357
+ !Number.isSafeInteger(result.total) ||
358
+ result.total < 0 ||
359
+ (total !== undefined && result.total !== total)
360
+ )
361
+ break;
362
+ total = result.total;
363
+ const size = comments.length;
364
+ comments.push(...result.comments);
365
+ if (comments.length === total) return comments;
366
+ if (comments.length > total || comments.length === size) break;
367
+ }
368
+ throw new AccessFailure("capability-unreachable");
369
+ }
370
+
371
+ function jiraCredential(cfg, env) {
372
+ try {
373
+ return candidate(cfg, "ATLASSIAN_API_TOKEN", { env });
374
+ } catch (error) {
375
+ if (
376
+ !(error instanceof AccessFailure) ||
377
+ !["bootstrap-missing", "provider-unreachable"].includes(error.code)
378
+ )
379
+ throw error;
380
+ return { available: false, code: error.code };
381
+ }
382
+ }
383
+
384
+ function jiraSite(value) {
385
+ if (typeof value !== "string" || !value) return null;
386
+ try {
387
+ const url = new URL(value.includes("://") ? value : `https://${value}`);
388
+ return url.protocol === "https:" && !url.username && !url.password
389
+ ? url.origin
390
+ : null;
391
+ } catch {
392
+ return null;
393
+ }
394
+ }
395
+
396
+ function readJiraWithAcli(cfg, { ref, project, operation }) {
397
+ const site = jiraSite(cfg.effective.atlassian.site);
398
+ if (!site) throw new AccessFailure("config-invalid");
399
+ const call = transportFor(cfg);
400
+ const confirmSite = () => {
401
+ const status = call("acli", ["jira", "auth", "status"], "");
402
+ const sites = [...status.matchAll(/^\s*Site:\s+(\S+)\s*$/gmu)];
403
+ if (sites.length !== 1 || jiraSite(sites[0][1]) !== site)
404
+ throw new AccessFailure("identity-mismatch");
405
+ };
406
+ confirmSite();
407
+ const issue = response(
408
+ call(
409
+ "acli",
410
+ ["jira", "workitem", "view", ref, "--fields", "*all", "--json"],
411
+ ""
412
+ )
413
+ );
414
+ confirmSite();
415
+ if (
416
+ issue?.key !== ref ||
417
+ issue.fields?.project?.key !== project ||
418
+ jiraSite(issue.self) !== site
419
+ )
420
+ throw new AccessFailure("identity-mismatch");
421
+ if (operation === "issue") return { issue, remoteLinks: null };
422
+ const page = issue.fields.comment;
423
+ if (
424
+ page?.startAt !== 0 ||
425
+ !Array.isArray(page.comments) ||
426
+ page.total !== page.comments.length
427
+ )
428
+ throw new AccessFailure("capability-unreachable");
429
+ return page.comments;
430
+ }
431
+
432
+ /** No results or partial comments are printed after a failed scoped read. */
433
+ export function runTrackerIntakeRead(args = process.argv.slice(2)) {
434
+ let cfg, tracker;
435
+ try {
436
+ cfg = readTaskConfig();
437
+ const request = trackerIntakeRequest(args, cfg);
438
+ if (!request) throw new AccessFailure("requirements-stale");
439
+ tracker = request.tracker;
440
+ const binding = taskBinding(cfg.projectRoot);
441
+ if (
442
+ binding &&
443
+ (binding.provider !== tracker ||
444
+ issueKey.exec(binding.ref)?.[1] !== request.project)
445
+ )
446
+ throw new AccessFailure("requirements-stale");
447
+ const data =
448
+ tracker === "linear" ? readLinear(cfg, request) : readJira(cfg, request);
449
+ console.log(JSON.stringify(data));
450
+ } catch (error) {
451
+ const diagnostic = failure(
452
+ error instanceof AccessFailure ? error.code : "config-invalid",
453
+ {
454
+ cfg,
455
+ name: tracker === "linear" ? "LINEAR_API_KEY" : "ATLASSIAN_API_TOKEN",
456
+ owner:
457
+ tracker === "linear" ? "lisa-linear-access" : "lisa-atlassian-access",
458
+ }
459
+ );
460
+ console.error(`${diagnostic.code}: ${diagnostic.action}`);
461
+ process.exitCode = 2;
462
+ }
463
+ }
@@ -1184,7 +1184,8 @@ export function validateConfig(cfg) {
1184
1184
  }
1185
1185
 
1186
1186
  /** Keys a parsed JSON layer may not contribute to a merged object. */
1187
- const UNSAFE_KEYS = new Set(["__proto__", "constructor", "prototype"]);
1187
+ export { mergeConfigLayers } from "./config-layers.mjs";
1188
+ import { mergeConfigLayers } from "./config-layers.mjs";
1188
1189
 
1189
1190
  /**
1190
1191
  * Merge config layers key by key, later layers winning — the
@@ -1199,26 +1200,6 @@ const UNSAFE_KEYS = new Set(["__proto__", "constructor", "prototype"]);
1199
1200
  * @param {...unknown} layers Lowest precedence first.
1200
1201
  * @returns {Record<string, unknown>} A new object; no layer is mutated.
1201
1202
  */
1202
- export function mergeConfigLayers(...layers) {
1203
- const objects = layers.filter(isPlainObject);
1204
- const keys = [...new Set(objects.flatMap(Object.keys))].filter(
1205
- key => !UNSAFE_KEYS.has(key)
1206
- );
1207
- return Object.fromEntries(
1208
- keys.map(key => {
1209
- const values = objects
1210
- .filter(layer => Object.hasOwn(layer, key))
1211
- .map(layer => layer[key]);
1212
- const top = values.at(-1);
1213
- return [
1214
- key,
1215
- isPlainObject(top)
1216
- ? mergeConfigLayers(...values.filter(isPlainObject))
1217
- : top,
1218
- ];
1219
- })
1220
- );
1221
- }
1222
1203
 
1223
1204
  /**
1224
1205
  * Read a JSON file, or undefined when it does not exist.
@@ -84,6 +84,8 @@ esac
84
84
 
85
85
  **Never accept the key via this skill's chat or stdin.** After the user confirms storage, retrieve via the lookup ladder (env → workspace-suffixed env → keychain) and validate against the GraphQL API:
86
86
 
87
+ When the key is in the environment or the project's secrets provider, validate it with `bash <lisa-linear-access dir>/scripts/linear-graphql.sh --whoami` instead (see `lisa-linear-access` — GraphQL Adapter for locating the script). It walks the same env and `lisa-secrets-access` rungs, prints the viewer and organization, and never puts the key in your command. The block below is the attended fallback for a key held only in the legacy OS keychain. Run it as a script file, not pasted inline: an inline command that captures the key and calls curl stops at an approval prompt.
88
+
87
89
  ```bash
88
90
  read_linear_key() { # $1=workspace slug
89
91
  local ws="$1"
@@ -54,6 +54,14 @@ two bundles declaring the same stages overwrite each other in the shared
54
54
  `~/.aws/config` — silently, because nothing about the surviving profile is
55
55
  malformed. The name is the only place the owner can be recorded.
56
56
 
57
+ `<stage>` is the bundle key with at most one leading `agent-` removed: keys
58
+ `agent-dev` and `dev` both yield `<project>-agent-dev`, never
59
+ `<project>-agent-agent-dev`. Keys naming the same stage twice are refused. An
60
+ earlier run's doubled names (`<project>-agent-agent-<stage>` assuming from this
61
+ project's `<project>-agent-bootstrap`) are removed automatically. This is the
62
+ same scheme `lisa-secrets-access` writes, so one tenant has one set of names
63
+ whichever writer ran.
64
+
57
65
  `default` cannot be namespaced. The script claims it only when nothing else
58
66
  owns it. Otherwise it still writes every named profile and verifies them as a
59
67
  normal run would (the default stage, or every stage under
@@ -233,6 +233,7 @@ Map each task to the skills needed to complete it. This enables delegation to sp
233
233
  - Any task proposing a new material dependency names its trust class, states that class's required evidence and whether human ratification is needed (never, when `dependencies.humanSignOff` is `"none"`), and updates `.lisa/DEPENDENCY_DECISIONS.md` in the same change (see step 4.5) -- a proposed material dependency with no named class is not ready to build
234
234
  - Any task removing, replacing, or internalizing a material dependency carries all seven confidence-rebuild kit criteria -- corpus, conformance, negative fixtures, coverage-as-gap-detector, provenance/license, migration/update plan, and rollback criteria (see step 4.6) -- unless it explicitly justifies why the dependency is non-material; a within-trust-class version bump does not carry the kit
235
235
  - Keep tasks ordered so that no task references work that has not been completed by a prior task
236
+ - Keep every shared branch promotable after each task merges (`coding-philosophy`, "Always Promotable"; skip when the project sets `release.liveUsers: false`). Give every runtime-changing leaf its `## Release Switch` line. Ask of each one: if this were promoted to production right now, would a user see something unfinished or unproven? If no, it is `Live — complete and proven at merge` and gets no switch: bug fixes, small tweaks, copy changes, refactors and dependency updates almost always are. The question decides, not the kind of work. If yes, which is the usual case for a feature or a fix split across several leaves, every leaf of that feature is `Switched off — <the same switch-name>; removed by <the last leaf's reference>`, and the last leaf's scope includes turning the feature on and removing the switch. The declaration needs that leaf's real reference, so create the last leaf first, or write `removed by this item` on it and fill its reference into the others once it exists. Never add a switch to work that is complete and proven when it merges
236
237
  - Flag any task that requires access, permissions, or external input not yet available
237
238
  - Prefer more small tasks over fewer large tasks -- smaller tasks are easier to verify and less risky to fail
238
239
  - Do not create placeholder or "TODO" tasks -- every task should describe concrete work
@@ -118,6 +118,16 @@ never overrides a new caller-declared hold or another eligibility check.
118
118
 
119
119
  Otherwise:
120
120
 
121
+ **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.
122
+
123
+ For a native tool without structured terminal stdin, use the exact canonical
124
+ ignored-context `Write` data adapter in `tool-access-gate`: supply the validated
125
+ leading requirements-only header and complete unedited body as tool data. The
126
+ existing atomic0600 owner prepares that file and DENIES the redundant raw Write
127
+ with "Context prepared; run readiness". Read back the context, then run readiness;
128
+ do not retry the raw Write or put private context/comments into Bash/heredoc argv.
129
+ The permission to load Write does not authorize other files or bypass the guard.
130
+
121
131
  1. Invoke `lisa-tracker-claim <canonical-ref>`. Require its post-read verified `claim_outcome: claimed|reused`; no binding may be written after a failed/unverified claim.
122
132
  2. Persist only the canonical reference in worktree-local machine state:
123
133
 
@@ -135,7 +145,8 @@ Otherwise:
135
145
  Exit 1 because a present estimate is malformed → re-render it the same way.
136
146
 
137
147
  An estimate failure never blocks the work. The item is already claimed, and stopping here would strand it in the claimed state with no trace of why. When a check exits 2, calibration or rendering fails, or the written body does not read back with a passing claim-phase check, continue to step 5 with `estimate_outcome: failed` and `estimate_failure: <reason>`, and post one comment on the item through `lisa-tracker-write` that a non-technical reader can follow, for example: "Lisa could not record a cost estimate for this item before starting work, because the project's estimate settings could not be read. The work is going ahead without one. What it actually cost will still be recorded when it is done." Name the real reason in plain words, not an exit code. Record `estimate_outcome: present|written|failed|n/a` in the result.
138
- 5. **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`. Then write the full resolved work-item context — the live vendor read bundle, unedited, every comment included — to the worktree-local, git-ignored `<worktree root>/.lisa/work-item-context.md`, then return this structured result (the file is the context; a summary in the reply never substitutes for it). When a `caller_bundle_path` was forwarded for this work item and the file already exists, do not overwrite it — it holds the caller's bundle (or a previous run's) and is left for the resolver step. Otherwise this is the first write; when `lisa-implement` forwarded a `caller_bundle_path`, its resolver step then keeps the bundle at that path as the base and appends only what this live read adds, and in every case finishes it with the `## Comment inventory` section:
148
+ **Release switch before any work** (`work-item-definition-of-ready`, gate S22; `coding-philosophy`, "Always Promotable"). Run `node scripts/lisa-release-switch.mjs check --existing true --body-file <file>` on the same stored body. `PASS`, or `N/A` because the item changes no runtime behavior or the project sets `release.liveUsers: false` → continue. `N/A` with a repair note (a runtime-changing item with no `## Release Switch` section) → decide it now, yourself, with one question: 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; the question decides, not the kind of work); if yes, it is switched off behind a switch you name, removed by this item unless a later item of the same feature removes it. A new name must appear nowhere else in the repository: `node scripts/lisa-release-switch.mjs references --switch <name>` must report none. Render it with `node scripts/lisa-release-switch.mjs render --mode live --body-file <file>`, or `--mode off --switch <name> --removed-by "this item"` when this item removes the switch, or `--removed-by <work-item ref>` naming the later item when that one does (writing `this item` on an earlier item would make it look like the remover, and the remover is the item that turns the feature on). Write the body back through `lisa-tracker-write` (update), and re-run the check on the stored body. `FAIL` (a malformed declaration) → re-render it the same way; if the check still fails because other text follows the declaration in that section, move that text into another section. Never ask a person which form applies. For work you judged live, a failure to write the declaration never blocks the work: continue with `release_switch_outcome: failed` and post one plain-English comment saying why. For work you judged switched off, the declaration must be on the item before any work starts, because without it the item is treated as live and the done gate cannot hold its switch: a declaration that cannot be put on the item (the tracker write fails, or `render` refuses the body) stops the flow here. Keep the claim and the binding so the item stays attributable, post one plain-English comment saying the declaration could not be written and why, record `release_switch_outcome: failed`, and report it as a tracker write failure. Record `release_switch_outcome: present|written|failed|n/a` in the result. Where the script is absent (a host that has not received it yet), record `n/a`.
149
+ 5. **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`. Keep the preclaim full vendor context and requirements header intact. Append the complete post-claim live read without trimming earlier body/comments, then refresh that same header through the preflight owner's `--prepare` mode and recheck task readiness. The live vendor read bundle stays unedited, every comment included, in the worktree-local, git-ignored `<worktree root>/.lisa/work-item-context.md`, then return this structured result (the file is the context; a summary in the reply never substitutes for it). When a `caller_bundle_path` was forwarded for this work item and the file already exists, do not overwrite it — it holds the caller's bundle (or a previous run's) and is left for the resolver step. Otherwise this is the first write; when `lisa-implement` forwarded a `caller_bundle_path`, its resolver step then keeps the bundle at that path as the base and appends only what this live read adds, and in every case finishes it with the `## Comment inventory` section:
139
150
 
140
151
  ```text
141
152
  tracker_provider: jira|github|linear
@@ -148,6 +159,7 @@ Otherwise:
148
159
  binding_outcome: verified|skipped-human-gate|skipped-ci-loop
149
160
  estimate_outcome: present|written|failed|n/a
150
161
  estimate_failure: <plain-English reason>|null
162
+ release_switch_outcome: present|written|failed|n/a
151
163
  route: implement|ci-rework pr=<n>|blocked pr=<n>
152
164
  failing_checks: <comma-separated check names from the marker comment>|none
153
165
  head_ref: <the pull request's head branch>|null
@@ -12,6 +12,8 @@ Thin dispatcher. `$ARGUMENTS` must contain exactly one canonical work-item refer
12
12
 
13
13
  ## Workflow
14
14
 
15
+ **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.
16
+
15
17
  1. Resolve merged tracker config exactly as `lisa-tracker-write` does:
16
18
 
17
19
  ```bash
@@ -24,12 +24,15 @@ Execute the **Verify** flow as defined in the `intent-routing` reference rule (r
24
24
  3. **Push and PR** via `lisa-git-submit-pr`
25
25
  4. **PR Watch Loop** — drive the PR to MERGED via `lisa-drive-pr-to-merge`, the single source of truth for clearing every blocker: auto-merge with direct-merge fallback, `BEHIND` re-sync, conflict resolution, failing-check fixes, human + bot review-comment handling with thread resolution (it invokes `lisa-pull-request-review` itself), stale `CHANGES_REQUESTED` dismissal, and post-merge ancestry verification. Do not re-implement the loop or its terminal conditions.
26
26
  5. **Merge** — owned by `lisa-drive-pr-to-merge`, including the auto-merge race and zero-deploy-run checks
27
- 6. **Remote verification** — invoke the `lisa-monitor` skill against the target environment **in report-only mode** (`lisa-monitor <env> --report-only`) to confirm the deploy actually works (health endpoints, recent logs/errors, Validation Journey replay if defined). `--report-only` is required here: it keeps the post-deploy check a pure health/audit report and prevents monitor's standalone ticket-filing from creating issues during a verify run. If remote verification surfaces a behavioral gap that the existing codified tests do not guard, invoke `codify-verification` to add coverage and open a follow-up PR.
27
+ 6. **Remote verification** — invoke the `lisa-monitor` skill against the target environment **in report-only mode** (`lisa-monitor <env> --report-only`) to confirm the deploy actually works (health endpoints, recent logs/errors, Validation Journey replay if defined). `--report-only` is required here: it keeps the post-deploy check a pure health/audit report and prevents monitor's standalone ticket-filing from creating issues during a verify run. **When the deploy or remote verification fails and the failure is live, revert first** (the "Keep the branch promotable" point below): the revert comes before any coverage or follow-up work, so a failed change is never left active while that work is done. Then, if remote verification surfaced a behavioral gap that the existing codified tests do not guard, invoke `codify-verification` to add coverage and open a follow-up PR.
28
28
  - When the Validation Journey is DOM-web, the target is an allowed non-production environment with mutation policy `full`, and `lisa kane probe` succeeds, verification may invoke `lisa-kane-browser`. Import the local evidence pack into Lisa's evidence flow; the Test Manager URL is secondary. Kane does not replace the pre-flight Playwright/Maestro codification gate.
29
29
  - When remote verification needs credentials, follow the shared `verification-lifecycle` credential lookup order before declaring them missing: project e2e / Playwright config and fixtures first, then `.lisa.config.local.json` / environment variables, then documented ticket credentials such as a `Sign-in Required` section.
30
30
  - Should credentials remain genuinely unavailable after those sources are exhausted, do not complete the item on artifact-only evidence. Post a tracker comment stating what could not be verified and why, transition the work item to the configured blocked state, and apply the configured `needs-human` / `human-review` label, creating it if the tracker supports label creation and it is missing.
31
31
  - **Telemetry arrives.** When the change adds or changes instrumentation — logs, metrics, traces, error reporting, analytics events — follow that instrumentation in the code to wherever it sends data: the SDK it initializes, the exporter or transport it configures, the environment variables it reads. Trigger the instrumented path in the target environment and confirm the signal arrived at that destination. Do not assume a vendor; a project may send to several, or to one Lisa has no access skill for. Use the destination's `*-access` skill when one exists, otherwise its CLI or API with credentials resolved through `lisa-secrets-access`. If the destination cannot be reached, that is a missing-access stop: name the destination and the credential, and never report the telemetry as verified.
32
32
  - Evidence must explicitly distinguish `verified empirically` from `artifact-only / verification deferred`.
33
+ - **Keep the branch promotable** (`coding-philosophy`, "Always Promotable"; skip when `node scripts/lisa-release-switch.mjs config` reports `"liveUsers": false`). Read the work item's `## Release Switch` declaration.
34
+ - `Switched off — <switch-name>`: verify with the switch **on** outside production (in a single-environment project, locally or for a test account only), and read back that it is **off** in production. 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, when verification passes, first confirm that the version you verified is what production is running, then turn it on in production yourself, unless the same command reports `"turnOn": "human"` (the project lists `feature-release` in `humanGate.humanOnly`); then say in plain English that the feature is verified and waiting to be turned on, and hold the item at that declared gate with a human-gate reason that names the class, for example `feature-release: turn <switch-name> on in production`. If the command lists a `humanGate.humanOnly` problem, report it and do not turn the feature on. Remove the switch only after it is on in production and healthy, never while verification is failing or the turn-on is waiting at the human gate; the item that removes it is not done while tracked source still references it. When verifying the removal change itself, the switch is on or already gone, so do not look for it off in production: verify that the feature works in production with the switch removed.
35
+ - A failure that is live: `Live — complete and proven at merge` or no declaration, a switched-off change whose failure shows with the switch **off**, any change that broke the deploy, or any failure of a feature whose switch is already **on** in production (turn the switch off again at once, then revert the removal change if it has shipped). If the deploy or remote verification **fails** because of this change, revert the merged change at once (a revert pull request driven to merge through `lisa-drive-pr-to-merge`) and return the work item to the ready queue with the failure evidence. Do not fix it forward in place, and never hold a promotion for it.
33
36
  7. **Evidence usage** — before posting, route the generated evidence artifact through `lisa-usage-accounting` so the comment body / PR evidence section / markdown proof carries a direct `lisa-verify` usage entry in the canonical `## Lisa Usage` section. If the originating work item or PRD parentage is known, prefer `record_and_rollup` so ancestor totals refresh in the same pass. If runtime usage is unavailable, still write `source: unavailable` with nullable token/cost fields instead of skipping the row.
34
37
  8. **Evidence** — post results to the originating ticket 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 captured through the interactive browser controller per step uploaded to the configured GitHub evidence release (default `pr-assets`) as plain URLs, and an explicit invitation to be corrected.
35
38