@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,114 @@
1
+ #!/usr/bin/env bash
2
+ # Prove at session start that this agent can actually do the work: that the
3
+ # credentials the project needs resolve, and that the CLIs it needs are on PATH.
4
+ #
5
+ # One hook for both because it is one question — can this agent do the work —
6
+ # and an operator reading two separate reports has to assemble the answer
7
+ # themselves. Both halves also share the same failure mode if split: two hooks
8
+ # means two subprocess spawns on every session start, for a check that is silent
9
+ # almost every time.
10
+ #
11
+ # Injects rather than blocks, and that is deliberate. The right response to a
12
+ # missing credential or tool is for the agent to know before it claims work and
13
+ # to route the item to blocked with a reason a human can act on — not for the
14
+ # session to die. A session that cannot reach the vault can still write code,
15
+ # review a PR, or answer a question; killing it would tax every session for a
16
+ # minority need, and a control people route around enforces nothing.
17
+ #
18
+ # The hard gates live where they can afford to be hard: `lisa doctor` and CI
19
+ # run the same two scripts and exit non-zero on them.
20
+ #
21
+ # Silent on success on purpose. A control that announces itself when everything
22
+ # is fine trains its readers to skim past it, and then it is decoration.
23
+ set -uo pipefail
24
+
25
+ INPUT=$(cat 2>/dev/null || true)
26
+ if [ -n "$INPUT" ]; then
27
+ HOOK_EVENT=$(printf '%s' "$INPUT" | jq -r '.hook_event_name // "SessionStart"' 2>/dev/null || echo "SessionStart")
28
+ else
29
+ HOOK_EVENT="SessionStart"
30
+ fi
31
+
32
+ ROOT="${CLAUDE_PLUGIN_ROOT:-${PLUGIN_ROOT:-$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)}}"
33
+ SECRETS="$ROOT/skills/lisa-secrets-access/scripts/preflight-secrets.mjs"
34
+ TOOLS="$ROOT/skills/lisa-setup-remote-env/scripts/preflight-tools.mjs"
35
+
36
+ # Event decoding has no jq dependency: losing jq must never turn a native
37
+ # PreToolUse request into an advisory SessionStart request.
38
+ if [ -n "$INPUT" ] && command -v node >/dev/null 2>&1; then
39
+ HOOK_EVENT=$(printf '%s' "$INPUT" | node -e 'const fs=require("node:fs");try{const e=JSON.parse(fs.readFileSync(0,"utf8")).hook_event_name;process.stdout.write(["SessionStart","UserPromptSubmit","PostToolUse","PostToolUseFailure","SessionEnd"].includes(e)?e:"PreToolUse");}catch{process.stdout.write("PreToolUse");}')
40
+ fi
41
+ # A registered before hook cannot be downgraded by an envelope's event spelling.
42
+ if [ "${1:-}" = "--task-hook" ]; then HOOK_EVENT="PreToolUse"; fi
43
+ if [ "${1:-}" = "--reset-native" ]; then
44
+ if command -v node >/dev/null 2>&1 && [ -f "$SECRETS" ] && [ -n "$INPUT" ]; then
45
+ printf '%s' "$INPUT" | node "$SECRETS" --reset-native
46
+ fi
47
+ exit 0
48
+ fi
49
+ if [ "${1:-}" = "--session-start" ]; then HOOK_EVENT="SessionStart"; fi
50
+ case "$HOOK_EVENT" in
51
+ SessionStart|UserPromptSubmit|SessionEnd)
52
+ if command -v node >/dev/null 2>&1 && [ -f "$SECRETS" ] && [ -n "$INPUT" ]; then
53
+ printf '%s' "$INPUT" | node "$SECRETS" --reset-native
54
+ fi
55
+ [ "$HOOK_EVENT" = SessionStart ] || exit 0
56
+ ;;
57
+ esac
58
+ # The manifest supplies the event arm independently of optional JSON decoders.
59
+ # Missing Node AND jq cannot downgrade a real before-tool call to advisory.
60
+ if [ "${1:-}" = "--observe-native" ]; then
61
+ if command -v node >/dev/null 2>&1 && [ -f "$SECRETS" ]; then
62
+ printf '%s' "$INPUT" | node "$SECRETS" --observe-native
63
+ fi
64
+ exit 0
65
+ fi
66
+
67
+ # Task checks are blocking; SessionStart keeps its existing advisory contract.
68
+ # Node parses the native envelope and invokes the same preclaim decision owner.
69
+ if [ "$HOOK_EVENT" = "PreToolUse" ]; then
70
+ if ! command -v node >/dev/null 2>&1 || [ ! -f "$SECRETS" ]; then
71
+ printf '%s\n' 'tool-missing: Restore the Lisa readiness tool before affected work.' >&2
72
+ exit 2
73
+ fi
74
+ printf '%s' "$INPUT" | node "$SECRETS" --hook
75
+ exit $?
76
+ fi
77
+
78
+ command -v node >/dev/null 2>&1 || exit 0
79
+ # The hook's whole output is one `jq -n` document. Without jq there is nothing
80
+ # to write, so exiting is the only honest outcome — the alternative is a hook
81
+ # that prints `jq: command not found` and exits 127, which reports a failure
82
+ # from a check designed never to block. The doctor and CI gates run the same
83
+ # two scripts without jq involved.
84
+ command -v jq >/dev/null 2>&1 || exit 0
85
+
86
+ # stderr carries each report; stdout is reserved for the hook's JSON. A script
87
+ # that is absent (partial or older install) or fails to run at all contributes
88
+ # nothing, because a broken hook must not manufacture a finding.
89
+ REPORT=""
90
+ for script in "$SECRETS" "$TOOLS"; do
91
+ [ -f "$script" ] || continue
92
+ # An escape hatch that is honest about what it costs, and scoped to what it
93
+ # names. Set when a surface has no secrets provider by design and the noise is
94
+ # not worth it; the doctor and CI gates are unaffected, so opting out here
95
+ # does not opt out of the check entirely. It must not also silence the
96
+ # TOOLING half — a variable about secrets that hides a missing `gh` or
97
+ # `maestro` is an opt-out from a check nobody opted out of.
98
+ if [ "$script" = "$SECRETS" ] && [ "${LISA_SKIP_SECRETS_PREFLIGHT:-}" = "1" ]; then
99
+ continue
100
+ fi
101
+ OUT=$(node "$script" 2>&1 >/dev/null) || true
102
+ [ -n "$OUT" ] || continue
103
+ [ -n "$REPORT" ] && REPORT+=$'\n\n'
104
+ REPORT+="$OUT"
105
+ done
106
+
107
+ [ -n "$REPORT" ] || exit 0
108
+
109
+ CONTEXT="## Readiness preflight
110
+
111
+ $REPORT"
112
+
113
+ jq -n --arg event "$HOOK_EVENT" --arg ctx "$CONTEXT" \
114
+ '{"hookSpecificOutput": {"hookEventName": $event, "additionalContext": $ctx}}'
@@ -1,4 +1,17 @@
1
1
  {
2
+ "lisa-task-readiness": {
3
+ "PreToolUse": [
4
+ {
5
+ "matcher": "run_command",
6
+ "hooks": [
7
+ {
8
+ "type": "command",
9
+ "command": "bash \"$HOME/.gemini/config/plugins/lisa/hooks/secrets-preflight.agy.sh\""
10
+ }
11
+ ]
12
+ }
13
+ ]
14
+ },
2
15
  "lisa-block-no-verify": {
3
16
  "PreToolUse": [
4
17
  {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "8.7.1",
3
+ "version": "8.9.0",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -316,8 +316,9 @@ Generated for: \`${platform}\`.
316
316
  Profiles are named \`<project>-agent-<stage>\`, not bare \`dev\` or
317
317
  \`production\`. The bundle supplies the stage; the project component comes from
318
318
  \`LISA_AWS_PROFILE_NAMESPACE\`, then the bundle's \`namespace\`, then
319
- \`<owner>-<repository>\` from this checkout's git origin. Select an account
320
- explicitly, for example:
319
+ \`<owner>-<repository>\` from this checkout's git origin. A bundle key that
320
+ already begins with \`agent-\` is not doubled: \`agent-dev\` and \`dev\` both become
321
+ \`<project>-agent-dev\`. Select an account explicitly, for example:
321
322
 
322
323
  \`\`\`bash
323
324
  aws --profile <project>-agent-staging sts get-caller-identity
@@ -187,6 +187,9 @@ remove_profile_section() {
187
187
 
188
188
  temporary_file="$(mktemp "${file}.XXXXXX")"
189
189
  awk -v section="$section" '
190
+ /^# >>> managed by lisa-secrets-access/ { managed = 1; in_section = 0 }
191
+ /^# <<< managed by lisa-secrets-access/ { managed = 0; in_section = 0 }
192
+ managed { print; next }
190
193
  /^\[[^]]*\][[:space:]]*$/ {
191
194
  current = $0
192
195
  sub(/^\[[[:space:]]*/, "", current)
@@ -225,16 +228,21 @@ profile_setting_value() {
225
228
  ' "$file"
226
229
  }
227
230
 
228
- # Every section written by the OLD, unnamespaced convention.
231
+ # Find profiles still using the old unnamespaced bootstrap. When selecting
232
+ # sections for deletion, omit managed blocks handled by a different writer.
229
233
  #
230
234
  # Identified by the retired bootstrap profile name, which only Lisa ever wrote,
231
235
  # so an operator's own `[profile dev]` can never be mistaken for ours.
232
236
  legacy_profile_sections() {
233
- local file
237
+ local file selection
234
238
  file="$1"
239
+ selection="$2"
235
240
  [ -f "$file" ] || return 0
236
241
 
237
- awk -v bootstrap="$LEGACY_BOOTSTRAP_PROFILE" '
242
+ awk -v bootstrap="$LEGACY_BOOTSTRAP_PROFILE" -v selection="$selection" '
243
+ /^# >>> managed by lisa-secrets-access/ { managed = 1; section = ""; next }
244
+ /^# <<< managed by lisa-secrets-access/ { managed = 0; section = ""; next }
245
+ selection == "prune" && managed { next }
238
246
  /^\[[^]]*\][[:space:]]*$/ {
239
247
  current = $0
240
248
  sub(/^\[[[:space:]]*/, "", current)
@@ -242,15 +250,82 @@ legacy_profile_sections() {
242
250
  section = current
243
251
  next
244
252
  }
245
- $0 ~ "^[[:space:]]*source_profile[[:space:]]*=" {
253
+ # Dependency checks accept AWS CLI option casing and both INI delimiters.
254
+ # Retain the historical selector for reporting and pruning.
255
+ /^[[:space:]]*source_profile[[:space:]]*=/ ||
256
+ (selection == "references" && tolower($0) ~ /^[[:space:]]*source_profile[[:space:]]*[:=]/) {
246
257
  value = $0
247
- sub(/^[^=]*=[[:space:]]*/, "", value)
258
+ sub(/^[^:=]*[:=][[:space:]]*/, "", value)
248
259
  sub(/[[:space:]]*$/, "", value)
249
260
  if (value == bootstrap && section != "") print section
250
261
  }
251
262
  ' "$file"
252
263
  }
253
264
 
265
+ # Sections an earlier run of THIS script wrote under the doubled spelling.
266
+ #
267
+ # Before stage keys were normalized, a bundle key `agent-dev` became
268
+ # `<namespace>-agent-agent-dev`. Those sections assume from this project's own
269
+ # bootstrap profile, so they are provably this project's output — not another
270
+ # tenant's (a different source profile) and not an operator's (who would not
271
+ # name this project's bootstrap profile). Names this run is about to write are
272
+ # excluded, so a bundle that genuinely names a stage `agent-x` keeps it.
273
+ # Retire one only when this run wrote a replacement with matching role and
274
+ # declared settings. An inactive stage can share this spelling and bootstrap.
275
+ doubled_profile_sections() {
276
+ local file
277
+ file="$1"
278
+ [ -f "$file" ] || return 0
279
+
280
+ awk -v canonical="profile ${PROFILE_NAMESPACE}-agent-" \
281
+ -v bootstrap="$BOOTSTRAP_PROFILE" \
282
+ -v keep="$canonical_sections" '
283
+ function matches_when_declared(prior, current, key) {
284
+ return !((prior, key) in settings) || settings[prior, key] == settings[current, key]
285
+ }
286
+ BEGIN {
287
+ doubled = canonical "agent-"
288
+ count = split(keep, names, "|")
289
+ for (i = 1; i <= count; i++) wanted[names[i]] = 1
290
+ }
291
+ # A lisa-secrets-access managed block is regenerated by that writer only.
292
+ /^# >>> managed by lisa-secrets-access/ { managed = 1; section = ""; next }
293
+ /^# <<< managed by lisa-secrets-access/ { managed = 0; section = ""; next }
294
+ managed { next }
295
+ /^\[[^]]*\][[:space:]]*$/ {
296
+ current = $0
297
+ sub(/^\[[[:space:]]*/, "", current)
298
+ sub(/[[:space:]]*\][[:space:]]*$/, "", current)
299
+ section = current
300
+ sections[++section_count] = section
301
+ seen[section]++
302
+ next
303
+ }
304
+ section != "" && tolower($0) ~ /^[[:space:]]*(source_profile|role_arn|region|external_id)[[:space:]]*[:=]/ {
305
+ key = tolower($0)
306
+ sub(/^[[:space:]]*/, "", key)
307
+ sub(/[[:space:]]*[:=].*$/, "", key)
308
+ value = $0
309
+ sub(/^[^:=]*[:=][[:space:]]*/, "", value)
310
+ sub(/[[:space:]]*$/, "", value)
311
+ settings[section, key] = value
312
+ }
313
+ END {
314
+ for (i = 1; i <= section_count; i++) {
315
+ section = sections[i]
316
+ replacement = canonical substr(section, length(doubled) + 1)
317
+ if (index(section, doubled) == 1 && !(section in wanted) &&
318
+ (replacement in wanted) && seen[section] == 1 && seen[replacement] == 1 &&
319
+ settings[section, "source_profile"] == bootstrap &&
320
+ settings[section, "role_arn"] != "" &&
321
+ settings[section, "role_arn"] == settings[replacement, "role_arn"] &&
322
+ matches_when_declared(section, replacement, "region") &&
323
+ matches_when_declared(section, replacement, "external_id")) print section
324
+ }
325
+ }
326
+ ' "$file"
327
+ }
328
+
254
329
  sanitize_session_name() {
255
330
  local candidate
256
331
  candidate="$(printf '%s' "${LISA_REMOTE_AGENT:-remote-agent}" \
@@ -526,6 +601,21 @@ profiles_json="$(printf '%s' "$bootstrap_json" | jq -c '
526
601
  end
527
602
  ')"
528
603
 
604
+ # One canonical name per stage: `<namespace>-agent-<stage>`, where `<stage>` is
605
+ # the bundle key with at most ONE leading `agent-` removed. Infra kits publish
606
+ # keys that already say `agent-` (`agent-dev`), so prefixing without normalizing
607
+ # produced `acme-agent-agent-dev`. This is the same rule as `stageOf` in
608
+ # lisa-secrets-access/scripts/aws-bootstrap.mjs — the other Lisa writer of these
609
+ # files — so one tenant gets one set of names whichever writer ran. Normalized
610
+ # once, here, so every later use of a stage (names, the default, the observer
611
+ # check) sees the same value.
612
+ printf '%s' "$profiles_json" | jq -e '
613
+ (type != "object") or
614
+ ([keys[] | ltrimstr("agent-")] | (length == (unique | length)) and all(length > 0))
615
+ ' >/dev/null || fail \
616
+ "bootstrap profile keys must name distinct stages: \"dev\" and \"agent-dev\" are the same stage, and \"agent-\" alone names none"
617
+ profiles_json="$(printf '%s' "$profiles_json" | jq -c 'if type == "object" then with_entries(.key |= ltrimstr("agent-")) else . end')"
618
+
529
619
  namespace_resolution="$(resolve_namespace)"
530
620
  PROFILE_NAMESPACE="${namespace_resolution%%$'\t'*}"
531
621
  namespace_source="${namespace_resolution#*$'\t'}"
@@ -558,6 +648,7 @@ done < <(printf '%s' "$profiles_json" | jq -r '
558
648
  ')
559
649
 
560
650
  default_stage="${LISA_AWS_DEFAULT_PROFILE:-dev}"
651
+ default_stage="${default_stage#agent-}"
561
652
  if ! printf '%s' "$profiles_json" | jq -e --arg stage "$default_stage" 'has($stage)' >/dev/null; then
562
653
  default_stage="$(printf '%s' "$profiles_json" | jq -r 'keys[0]')"
563
654
  fi
@@ -580,23 +671,33 @@ chmod 700 "$HOME/.aws"
580
671
 
581
672
  profile_names="$(printf '%s' "$profiles_json" \
582
673
  | jq -r --arg namespace "$PROFILE_NAMESPACE" 'keys | map($namespace + "-agent-" + .) | join(", ")')"
674
+ canonical_sections="$(printf '%s' "$profiles_json" \
675
+ | jq -r --arg namespace "$PROFILE_NAMESPACE" 'keys | map("profile " + $namespace + "-agent-" + .) | join("|")')"
583
676
 
584
677
  # Migration: the previous convention's profiles are still on this workstation.
585
678
  #
586
679
  # They are reported rather than removed, because deleting a profile an operator
587
680
  # may still be using is its own silent surprise. Pruning is opt-in and says
588
681
  # exactly what it removed.
589
- legacy_sections="$(legacy_profile_sections "$config_file")"
682
+ prune_legacy="${LISA_AWS_PRUNE_LEGACY_PROFILES:-0}"
683
+ legacy_selection="report"
684
+ if [ "$prune_legacy" = "1" ]; then legacy_selection="prune"; fi
685
+ legacy_sections="$(legacy_profile_sections "$config_file" "$legacy_selection")"
590
686
  legacy_names=""
591
687
  if [ -n "$legacy_sections" ]; then
592
688
  legacy_names="$(printf '%s\n' "$legacy_sections" | sed 's/^profile //' | paste -sd ',' - | sed 's/,/, /g')"
593
- if [ "${LISA_AWS_PRUNE_LEGACY_PROFILES:-0}" = "1" ]; then
689
+ if [ "$prune_legacy" = "1" ]; then
594
690
  printf '%s\n' "$legacy_sections" | while IFS= read -r section; do
595
691
  [ -n "$section" ] || continue
596
692
  remove_profile_section "$config_file" "$section"
597
693
  done
598
- remove_profile_section "$config_file" "profile ${LEGACY_BOOTSTRAP_PROFILE}"
599
- remove_profile_section "$credentials_file" "$LEGACY_BOOTSTRAP_PROFILE"
694
+ remaining_legacy_sections="$(legacy_profile_sections "$config_file" references)"
695
+ if [ -z "$remaining_legacy_sections" ]; then
696
+ remove_profile_section "$config_file" "profile ${LEGACY_BOOTSTRAP_PROFILE}"
697
+ remove_profile_section "$credentials_file" "$LEGACY_BOOTSTRAP_PROFILE"
698
+ else
699
+ echo "remote-agent-aws-setup: retained legacy bootstrap ${LEGACY_BOOTSTRAP_PROFILE} because remaining profiles use it" >&2
700
+ fi
600
701
  fi
601
702
  fi
602
703
 
@@ -640,6 +741,18 @@ while IFS="$(printf '\t')" read -r stage role_arn region; do
640
741
  aws configure set region "$region" --profile "$profile_name"
641
742
  done < <(printf '%s' "$profiles_json" | jq -r 'to_entries[] | [.key, .value.roleArn, .value.region] | @tsv')
642
743
 
744
+ # Retire doubled names for the stages this run just wrote. Writing the
745
+ # replacements first keeps a usable profile if a write fails. A doubled name
746
+ # for a stage outside this bundle or with different settings remains available.
747
+ doubled_sections="$(doubled_profile_sections "$config_file")"
748
+ if [ -n "$doubled_sections" ]; then
749
+ printf '%s\n' "$doubled_sections" | while IFS= read -r section; do
750
+ [ -n "$section" ] || continue
751
+ remove_profile_section "$config_file" "$section"
752
+ done
753
+ echo "remote-agent-aws-setup: removed doubled profile names left by an earlier bootstrap: $(printf '%s\n' "$doubled_sections" | sed 's/^profile //' | paste -sd ',' - | sed 's/,/, /g')" >&2
754
+ fi
755
+
643
756
  default_profile="${PROFILE_NAMESPACE}-agent-${default_stage}"
644
757
  if [ "$claim_default" = "1" ]; then
645
758
  aws configure set role_arn "$default_role_arn" --profile default
@@ -681,7 +794,7 @@ if [ "${LISA_AWS_SKIP_VERIFY:-0}" != "1" ]; then
681
794
  fi
682
795
 
683
796
  if [ -n "$legacy_names" ]; then
684
- if [ "${LISA_AWS_PRUNE_LEGACY_PROFILES:-0}" = "1" ]; then
797
+ if [ "$prune_legacy" = "1" ]; then
685
798
  echo "remote-agent-aws-setup: removed unnamespaced profiles left by an earlier bootstrap: ${legacy_names}" >&2
686
799
  else
687
800
  echo "remote-agent-aws-setup: ${config_file} still contains unnamespaced profiles written by an earlier Lisa bootstrap: ${legacy_names}. They name a stage but no owner, so on a workstation carrying more than one organisation they can resolve to another tenant's account. Review them, or re-run with LISA_AWS_PRUNE_LEGACY_PROFILES=1 to delete the ones Lisa wrote." >&2
@@ -6,6 +6,19 @@ allowed-tools: ["Bash", "Read", "Skill"]
6
6
 
7
7
  # Atlassian Access: $ARGUMENTS
8
8
 
9
+ The shared readiness before/after owner represents the existing native
10
+ `issue-type-metadata` and `list-spaces` reads. After the ordinary action is
11
+ withheld, the approved Atlassian plugin's exact
12
+ `getAccessibleAtlassianResources {}` must return the configured cloud ID and
13
+ site. Then `getJiraProjectIssueTypesMetadata {cloudId,projectIdOrKey}` must return
14
+ the documented typed issue-types page, or `getConfluenceSpaces {cloudId}` the
15
+ typed spaces results. Returned tenant/resource identity must match where present.
16
+ Every required row is proved on the same connection/call/session/action scope;
17
+ only then can the identical ordinary action consume one observation. Discovery
18
+ admission alone grants nothing. Unrecognized result variants remain an exact
19
+ representation gap, not an authentication or platform-impossibility claim.
20
+ Independent `secrets.require` and credential-only assertions are still mandatory.
21
+
9
22
  Single chokepoint for all Atlassian operations. Routes each op to a substrate, enforces connection match, returns structured result. Caller skills (`jira-*`, `confluence-*`) MUST go through this — they MUST NOT invoke `acli` directly, call Atlassian MCP tools directly, or curl the Atlassian REST API themselves.
10
23
 
11
24
  ## Invocation contract
@@ -348,9 +348,16 @@ part left without them stays unproved however well everything else is set up. Wr
348
348
  knowing the tool, which is why you write them. Code then tries them and tells you whether they
349
349
  work.
350
350
 
351
- **On the paved road, skip this step.** This release writes no test changes for the checks Lisa
352
- ships for a supported project type. Those checks read unproved until a proof is declared for them,
353
- and your closing message says so plainly.
351
+ **On the paved road, reuse the installed proof pairs.** Lisa seeds a pair when its installed files
352
+ and task match the shipped template. The traceability pair uses the native push gate in a
353
+ disposable copy. Its clean case reads the live work item from the baseline commit, so run that
354
+ proof with `--acknowledge-external-effects` after confirming tracker read access. A check without
355
+ an applicable pair reads unproved. The shipped test and coverage recipes require Vitest.
356
+
357
+ The production dependency pair uses a Bun text lockfile. It changes the version of an existing
358
+ transitive dependency to a version with a public advisory and a patched version in separate
359
+ disposable lockfiles. Dependency installation and lifecycle scripts are disabled. The pair reads
360
+ registry metadata and the live advisory service when external effects are acknowledged.
354
361
 
355
362
  Take the parts you declared in this run one at a time.
356
363
 
@@ -439,6 +446,13 @@ identify the commands. For example, a Bun project with Lefthook may need
439
446
  `[["bun", "install", "--frozen-lockfile"], ["./node_modules/.bin/lefthook", "install"]]`.
440
447
  Record the approved commands in the committed config before trying the pairs.
441
448
 
449
+ The whole-repository TypeScript setup includes pairs for staged lint, formatting, structural rules,
450
+ slow lint, type checking, dead code, unit tests, integration tests, and coverage when the installed
451
+ tasks and patch files match the template. The formatting pair starts with CSS the formatter cannot parse.
452
+ Add a proof for each remaining required control. Commit the current work item and attribution
453
+ trailers with the proof setup. The temporary commit uses those trailers so the installed Git hooks
454
+ can validate it through their usual path.
455
+
442
456
  Before the first run that uses those commands, show their exact arguments and
443
457
  ask the operator once. For example, “May I run these setup commands in the
444
458
  temporary copy? They can use this machine's network and credentials.” Carry
@@ -541,10 +555,8 @@ In plain language, for someone who does not code:
541
555
  3. Each threshold: what is measured, the value measured today, and the value the operator
542
556
  confirmed.
543
557
  4. For each check, in one sentence, that a test change showed it catches a problem: it refused a
544
- small change that breaks its rule and let a harmless one through. Name each check that has no
545
- test changes and say why: on the paved road, because this release does not write them for the
546
- checks that come with the project type; otherwise, what stood in the way. A check without them
547
- stays unproved.
558
+ small change that breaks its rule and let a harmless one through. Name each unproved check
559
+ and state the reason the proof did not apply or could not run.
548
560
  5. What was **not** declared and why: each open question, with who is likely to know the answer,
549
561
  and that it is answered by typing on its answer line in `.lisa/audit/report.md` and running
550
562
  `/lisa:audit` again; each proposal the operator declined; each decision still waiting because
@@ -157,6 +157,16 @@ this order:
157
157
  - `PASS` otherwise, naming the declared environments.
158
158
  - `lisa doctor` reports this as the `CDK delivery proof configured?` check.
159
159
 
160
+ 8. **Always-promotable setting audit** (`coding-philosophy`, "Always Promotable")
161
+ - Run `node scripts/lisa-release-switch.mjs config` and report how `release.liveUsers` resolved.
162
+ - `FAIL` when it lists any problem: a `release.*` value that is present and unusable is named,
163
+ with the value treated in its place (an invalid `release.liveUsers` is treated as `true`).
164
+ - `PASS`, saying so in plain words, when `release.liveUsers` is `false`: the project is marked as
165
+ having no live users and the rule is off. Name the setting so the opt-out stays visible.
166
+ - `PASS` otherwise, naming the switch mechanism in force (`release.switch.mechanism`, or the
167
+ fallback: a plain configuration value that defaults to off).
168
+ - `lisa doctor` reports this as the `Always-promotable setting` check.
169
+
160
170
  Locality findings are advisory unless the merged config is unusable. Missing shared keys after the
161
171
  merge are `FAIL`; shared keys that exist only locally are `WARN`.
162
172
 
@@ -1617,6 +1617,15 @@ a workflow is an action, so do **not** run `gh workflow run` / `workflow_dispatc
1617
1617
  it for the caller to act on, consistent with the report-mode contract (steps b–f
1618
1618
  of section 2 are diagnose-only).
1619
1619
 
1620
+ **No-live-users notice.** Whenever this step confirmed a deploy run, run
1621
+ `node scripts/lisa-release-switch.mjs notice --base <baseRefName>` and copy
1622
+ anything it prints, word for word, into your report to the operator. It prints
1623
+ only when the base is the project's production branch and the project sets
1624
+ `release.liveUsers: false`, to keep that opt-out from the always-promotable
1625
+ rule (`coding-philosophy`) visible on the day the project launches. It always
1626
+ exits 0 and never blocks, delays or changes the outcome of the merge. Skip it
1627
+ silently where the script is absent.
1628
+
1620
1629
  ### c. Linear native-state reconciliation (non-terminal merges only)
1621
1630
 
1622
1631
  Linear's GitHub integration completes a linked Issue on merge to **any** branch
@@ -132,6 +132,7 @@ Include in the PR description:
132
132
  - **Issue / Tracker link**: The provider-specific native linkage line when a source work item is available, placed after the summary and before the test plan.
133
133
  - **How we'll know it works in production**: the signal that will show this change working or failing once deployed — the log line, metric, trace, error-report grouping, or analytics event, and where it lands. For a change with no runtime effect (docs, tests, tooling), say so in one line.
134
134
  - **How to undo**: the fastest safe way back if it misbehaves — revert this PR, flip a named flag, roll back a migration (and whether that loses data), or anything else a non-author would need to know.
135
+ - **Safe to promote**: one line saying how this change can be promoted to the next environment as it stands, matching the work item's `## Release Switch` declaration (`coding-philosophy`, "Always Promotable"): either `Live — complete and proven at merge`, or `Switched off — <switch-name>`, naming where the switch is set and confirming it is off in production. Omit the line for a change with no runtime effect, and in a project that sets `release.liveUsers: false`.
135
136
  - **Also fixed**: any defect in code this change touches or depends on that was fixed along the way, one line each (omit the section when there are none).
136
137
 
137
138
  ### Never
@@ -495,6 +495,8 @@ Judge each blocker with the one shared rule every tracker uses, never a GitHub-l
495
495
 
496
496
  #### 3b. Claim
497
497
 
498
+ **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.
499
+
498
500
  Before the claim mutation, apply `claim-time-guards` — **Value before claim**, or **Worth doing** in `lisa-track` on runtimes without the rule tree (Antigravity). A ready label establishes neither value nor permission to expand scope. Respect the preceding human-hold gate; a declined incidental item consumes this cycle's one processed disposition.
499
501
 
500
502
  **CI rework is read before everything else in 3b — before rejection detection, and before this phase posts its own claim comment.** When a required check fails on an agent's PR, the `lisa-ci-failure-redispatch` workflow moves the item from `$CLAIMED` back to `$READY` and comments a visible line plus `<!-- [lisa-ci-failed] pr=<n> sha=<head> -->`. A marker counts **only when its comment is authored by `github-actions[bot]`** (the workflow's identity) — anyone can type the marker, so a comment from any other author is ignored. A marker is **uncleared** while its comment carries no `<!-- [lisa-ci-cleared] run=<id> -->`; a later all-green run on the PR clears it, and a marker whose PR has merged or closed counts as cleared. From the read bundle's comments, take the **newest** comment carrying any Lisa marker (`[lisa-…]` or `[claude-build-intake]`; claim comments and session-manager notes (`[lisa-tracker-claim]`, `[claude-build-intake]`, `[lisa-session-manager]`) never count as Lisa markers for this purpose, failure markers count only from `github-actions[bot]`, and any other later Lisa marker counts only from a trusted author — `github-actions[bot]`, the item's author, or a configured `sessionManager.trustedAuthorIds` entry; only entries committed in `.lisa.config.json` count, never `.lisa.config.local.json`, because the producer runs in CI on a fresh checkout, and the account Lisa posts as counts as trusted only when it is the item's author or is listed in `sessionManager.trustedAuthorIds`); when it is an uncleared, bot-authored `[lisa-ci-failed]` marker, **verify the PR it names** before trusting it: `gh pr view <n> --repo <org>/<repo> --json state,isCrossRepository,body` must show `state` is `OPEN`, `isCrossRepository` is `false`, and a body whose `Work-Item:` binds this item (`<org>/<repo>#<number>`). If any check fails or the read errors, treat the item as carrying no marker and continue with ordinary 3b. These checks and the loop bound below are implemented once in `scripts/lisa-ci-rework-route.mjs`, which `lisa-track` also runs on the `lisa-implement` dispatch path so the two paths cannot disagree; where that script exists (the Lisa repository — it is not shipped to hosts), run `node scripts/lisa-ci-rework-route.mjs --item <org>/<repo>#<number>` and act on its printed `route` — `ci-rework`, `blocked` (the loop bound), or `implement` (no marker) — instead of re-deriving the checks. When every check passes, classify the item **`ci-rework`**. Read it first so the route is decided from the comments as they stood before this claim; claim comments are ignored by the rule above, so even a re-posted claim cannot hide the signal, and a Lisa marker typed by an untrusted commenter cannot either. A `ci-rework` item is **CI rework, not a QA rejection**: its claimed-to-ready move is the workflow's, not a reviewer's, so rejection detection treats it as `forward-only` and **no rejection learning** is filed — no `lisa-persist-learning` candidate, no `[lisa-rejection-candidate]` marker (the `rejection-detection` rule's CI-rework exemption). It also skips claim-time archaeology and takes precedence over the `already-implemented` route below: the open PR that check finds is the one to fix, not proof that the work shipped. Carry `ci-rework` and the marker's `pr=<n>` into 3c. **Bound the loop.** Every claimed-to-ready bounce gives the item a fresh ready-lane entry, which resets the `two-failed-attempts` valve below, so a PR that keeps failing would be re-dispatched forever. When the item carries 3 or more bot-authored `[lisa-ci-failed]` markers for the same PR, intake does not re-dispatch: it does not claim, moves the item to the configured blocked role and adds the `human_needed` label (`github.labels.build.blocked` and `github.labels.build.human_needed`, per `config-resolution`), posts a plain-English comment naming the PR and its failing checks (for example: "Pull request #<n> has failed its required checks <k> times (<check names>). Lisa has stopped retrying; a person needs to look at why it keeps failing."), and stops this item's cycle. **Agent work is not complete while the named PR's required checks are failing** — no success outcome, done label, or close may be recorded for the item until that PR merges with its required checks green.
@@ -6,6 +6,8 @@ allowed-tools: ["Bash", "Skill", "Read"]
6
6
 
7
7
  # Claim GitHub Issue: $ARGUMENTS
8
8
 
9
+ **Required-access preclaim gate.** Before this claim mutation, follow `tool-access-gate` → Task readiness. Enumerate the live body, all comments, proof and delivery requirements into the leading requirements-only header in the ignored context; run the existing secrets preflight `--task --ref <canonical-ref>`. `ESTABLISHED` proves only its exercised scope. `DENIED` stops affected work. `NATIVE_OWNER_REQUIRED` (CLI exit3, not PASS) hands the remaining route to its documented native access owner: that owner must perform the actual immediate identity/resource probe before claim or the affected continuation, retaining write/readback duties. Do not repeat an unobservable shell probe forever or accept a stored passed field. Report the exact shell/native enforcement gap. Only the bounded local intake metadata write may precede this gate. Held/leaf/scope/idempotency and failed tracker-read/write stops remain independent.
10
+
9
11
  Claim exactly one canonical `org/repo#<number>` reference. This is the reusable direct-session counterpart of `lisa-github-build-intake` Phase 3b.
10
12
 
11
13
  1. Resolve merged `.github.org`, `.github.repo`, optional `.github.queueRepo`, and `github.labels.build` values from local-over-global config. Resolve current-repository identity independently using `repo-scope-split` / `config-resolution` (`.repo` -> `.github.repo` -> `git remote get-url origin` basename). The queue repository defaults to `<github.org>/<github.repo>`; it is only the tracker storage/scan target and never replaces current-repository identity. Resolve the ready and claimed roles from config (defaults `status:ready` and `status:in-progress`); do not hardcode lifecycle decisions.
@@ -16,6 +16,35 @@ Repository name for scoped comments and logs: `basename $(git rev-parse --show-t
16
16
 
17
17
  Pass the issue number, `<org>/<repo>#<number>`, or GitHub issue URL to the reader from the Lisa checkout. The reader resolves `.lisa.config.local.json` over `.lisa.config.json` before any GitHub request. A bare number uses `github.org` and `github.repo`. Configuration or syntax failure stops the read.
18
18
 
19
+ ### Pre-header configured-source reader
20
+
21
+ Before the complete issue is known, invoke this exact installed owner command
22
+ with only the configured canonical ref, fixed read name and issue/PR number:
23
+
24
+ ```text
25
+ node '<absolute installed lisa-secrets-access>/scripts/preflight-secrets.mjs' --intake-read --ref <org>/<repo>#<primary-number> --read <operation> --number <read-number>
26
+ ```
27
+
28
+ Use `issue`, `comments`, `comment-count`, `graph`, `history`, `closing-prs`,
29
+ `blocked-by`, `blocking`, `pr`, or `review-threads`. For `thread-comments` ONLY,
30
+ replace `--number <read-number>` with `--thread <returned-thread-node-id>`.
31
+ The installed reader verifies the thread's repository before retrieving its comments. Use the installed reader for thread comments.
32
+ Each invocation freshly proves the configured repository scope, validates any
33
+ observed actor, then executes only its fixed read. A selected credential is carried in child environment
34
+ memory, never command arguments/output/files or context. Comments are returned
35
+ as one flattened array; graph/history/thread connections retain all raw pages.
36
+ Read related issue/comment and PR/thread inputs with the same fixed operations;
37
+ compare comment counts and terminal pagination before declaring completeness.
38
+ Run the shipped hold classifier with the complete body/comments/actor inputs,
39
+ then prepare the truthful private context/header and evaluate full task readiness
40
+ before claim or implementation. This bounded repository read grants no mutation
41
+ and proves no unrelated task capability or provider health.
42
+
43
+ The installed reader owns the fixed API queries and pagination. The native
44
+ `gh` examples below support read-only orientation. Use the installed reader
45
+ for complete intake because it resolves configured credentials. Route
46
+ cross-repository and other-tracker access through the documented access owner.
47
+
19
48
  ## Phase 2 — Fetch Primary Issue
20
49
 
21
50
  ```bash
@@ -0,0 +1,70 @@
1
+ /** Fixed read-only request spellings used by the existing GitHub intake owner. */
2
+ export const issueFields =
3
+ "number,title,body,state,stateReason,author,assignees,labels,milestone,createdAt,updatedAt,closedAt,url,comments,reactionGroups,projectItems";
4
+ export const relatedFields = "number,title,state,labels,assignees,url";
5
+ export const prFields =
6
+ "number,title,state,reviewDecision,mergedAt,url,reviewRequests,reviews,comments";
7
+ export const graphQuery =
8
+ "query($org:String!,$repo:String!,$number:Int!,$endCursor:String){repository(owner:$org,name:$repo){issue(number:$number){id parent{number title state url repository{nameWithOwner}} subIssues(first:100,after:$endCursor){pageInfo{hasNextPage endCursor} nodes{number title body state url repository{nameWithOwner} labels(first:50){nodes{name}} assignees(first:5){nodes{login}}}}}}}";
9
+ export const historyQuery =
10
+ "query($org:String!,$repo:String!,$number:Int!,$endCursor:String){repository(owner:$org,name:$repo){issue(number:$number){timelineItems(first:100,after:$endCursor,itemTypes:[CROSS_REFERENCED_EVENT,LABELED_EVENT,UNLABELED_EVENT]){pageInfo{hasNextPage endCursor} nodes{__typename ...on CrossReferencedEvent{createdAt actor{login} source{...on PullRequest{number title state url repository{nameWithOwner}}}} ...on LabeledEvent{createdAt actor{login} label{name}} ...on UnlabeledEvent{createdAt actor{login} label{name}}}}}}}";
11
+ export const pullRequestsQuery =
12
+ "query($org:String!,$repo:String!,$number:Int!,$endCursor:String){repository(owner:$org,name:$repo){issue(number:$number){closedByPullRequestsReferences(first:50,after:$endCursor){pageInfo{hasNextPage endCursor} nodes{number title state merged mergedAt url repository{nameWithOwner}}}}}}";
13
+ export const queries = [graphQuery, historyQuery, pullRequestsQuery];
14
+ export const intakeReads = [
15
+ "issue",
16
+ "comments",
17
+ "comment-count",
18
+ "graph",
19
+ "history",
20
+ "closing-prs",
21
+ "blocked-by",
22
+ "blocking",
23
+ "pr",
24
+ "review-threads",
25
+ "thread-comments",
26
+ ];
27
+
28
+ /** Select the configured issue repository before allowing tracker reads. */
29
+ export function configuredIssueRepository(github) {
30
+ if (!github) return null;
31
+ const { org, repo, queueRepo } = github;
32
+ if (queueRepo != null && typeof queueRepo !== "string") return null;
33
+ const owner = typeof org === "string" ? org : "";
34
+ const name = typeof repo === "string" ? repo : "";
35
+ const selected = queueRepo?.includes("/")
36
+ ? queueRepo
37
+ : `${owner}/${queueRepo || name}`;
38
+ return /^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(selected) ? selected : null;
39
+ }
40
+
41
+ /** Strict data-only argv for the existing scoped access owner, never arbitrary gh arguments. */
42
+ export function intakeRequest(args, cfg) {
43
+ const [mode, refFlag, ref, readFlag, operation, valueFlag, value] = args,
44
+ repo = configuredIssueRepository(cfg.effective?.github);
45
+ if (
46
+ args.length !== 7 ||
47
+ mode !== "--intake-read" ||
48
+ refFlag !== "--ref" ||
49
+ readFlag !== "--read" ||
50
+ !intakeReads.includes(operation) ||
51
+ !repo ||
52
+ !ref?.startsWith(`${repo}#`) ||
53
+ !/^[1-9]\d*$/.test(ref.slice(repo.length + 1)) ||
54
+ (cfg.effective.tracker && cfg.effective.tracker !== "github")
55
+ )
56
+ return null;
57
+ if (
58
+ operation === "thread-comments"
59
+ ? valueFlag !== "--thread" || !/^[A-Za-z0-9_+/=-]{1,256}$/.test(value)
60
+ : valueFlag !== "--number" || !/^[1-9]\d*$/.test(value)
61
+ )
62
+ return null;
63
+ return { ref, operation, value, repo };
64
+ }
65
+ export const reviewThreadsQuery =
66
+ "query($org:String!,$repo:String!,$number:Int!,$endCursor:String){repository(owner:$org,name:$repo){pullRequest(number:$number){reviewThreads(first:100,after:$endCursor){pageInfo{hasNextPage endCursor} nodes{id isResolved isOutdated comments(first:100){pageInfo{hasNextPage endCursor} nodes{body author{login} createdAt url}}}}}}}";
67
+ export const threadCommentsQuery =
68
+ "query($id:ID!,$endCursor:String){node(id:$id){...on PullRequestReviewThread{repository{nameWithOwner} comments(first:100,after:$endCursor){pageInfo{hasNextPage endCursor} nodes{body author{login} createdAt url}}}}}";
69
+ export const threadRepositoryQuery =
70
+ "query($id:ID!){node(id:$id){...on PullRequestReviewThread{repository{nameWithOwner}}}}";