@codyswann/lisa 4.109.1 → 4.110.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 (591) hide show
  1. package/all/copy-overwrite/scripts/check-threshold-ratchet.mjs +4 -2
  2. package/all/copy-overwrite/scripts/lib/completion-proof-github.mjs +58 -3
  3. package/all/copy-overwrite/scripts/lib/completion-proof-publisher.mjs +58 -141
  4. package/all/copy-overwrite/scripts/lib/evidence-prune-records.mjs +57 -11
  5. package/all/copy-overwrite/scripts/lib/evidence-release-capacity.mjs +228 -0
  6. package/all/copy-overwrite/scripts/lib/npm-update-helper-inventory.mjs +1 -0
  7. package/all/copy-overwrite/scripts/lisa-hooks/block-direct-issue-create.sh +10 -5
  8. package/all/copy-overwrite/scripts/lisa-hooks/block-no-verify.sh +4 -3
  9. package/all/copy-overwrite/scripts/lisa-work-item.mjs +16 -15
  10. package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +16 -6
  11. package/all/create-only/.agents/rules/README.md +3 -2
  12. package/all/create-only/.lisa/ACCOUNTABILITY.md +16 -10
  13. package/all/create-only/.lisa/DEPENDENCY_DECISIONS.md +15 -12
  14. package/dist/codex/scripts/block-no-verify.sh +1 -1
  15. package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  16. package/dist/core/lisa-owned-hash-ledger.js +56 -0
  17. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  18. package/dist/core/lisa.d.ts +4 -3
  19. package/dist/core/lisa.d.ts.map +1 -1
  20. package/dist/core/lisa.js +12 -5
  21. package/dist/core/lisa.js.map +1 -1
  22. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  23. package/dist/core/project-config-dependencies.d.ts +29 -8
  24. package/dist/core/project-config-dependencies.d.ts.map +1 -1
  25. package/dist/core/project-config-dependencies.js +55 -15
  26. package/dist/core/project-config-dependencies.js.map +1 -1
  27. package/dist/core/project-config-human-gate.d.ts +105 -0
  28. package/dist/core/project-config-human-gate.d.ts.map +1 -0
  29. package/dist/core/project-config-human-gate.js +178 -0
  30. package/dist/core/project-config-human-gate.js.map +1 -0
  31. package/dist/core/project-config-learnings.d.ts +28 -9
  32. package/dist/core/project-config-learnings.d.ts.map +1 -1
  33. package/dist/core/project-config-learnings.js +51 -13
  34. package/dist/core/project-config-learnings.js.map +1 -1
  35. package/dist/core/project-config.d.ts +13 -3
  36. package/dist/core/project-config.d.ts.map +1 -1
  37. package/dist/core/project-config.js +6 -2
  38. package/dist/core/project-config.js.map +1 -1
  39. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  40. package/dist/core/upstream-evidence-manifest.js +111 -89
  41. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  42. package/dist/opencode/plugin-templates/block-no-verify.sh +4 -3
  43. package/dist/opencode/plugin-templates/lisa-block-direct-issue-create.ts +10 -4
  44. package/dist/utils/usage-accounting.d.ts +13 -0
  45. package/dist/utils/usage-accounting.d.ts.map +1 -1
  46. package/dist/utils/usage-accounting.js +67 -4
  47. package/dist/utils/usage-accounting.js.map +1 -1
  48. package/dist/utils/usage-artifact-ref.d.ts +30 -0
  49. package/dist/utils/usage-artifact-ref.d.ts.map +1 -0
  50. package/dist/utils/usage-artifact-ref.js +55 -0
  51. package/dist/utils/usage-artifact-ref.js.map +1 -0
  52. package/package.json +4 -4
  53. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  54. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  55. package/plugins/lisa/.codex-plugin/scripts/blocker-edge-resolution.mjs +9 -5
  56. package/plugins/lisa/.codex-plugin/scripts/human-gate-act.mjs +278 -0
  57. package/plugins/lisa/.codex-plugin/scripts/intake-blocker-reprobe.mjs +215 -39
  58. package/plugins/lisa/.codex-plugin/scripts/ready-queue-order.mjs +9 -3
  59. package/plugins/lisa/.codex-plugin/skills/lisa-confluence-to-tracker/SKILL.md +1 -1
  60. package/plugins/lisa/.codex-plugin/skills/lisa-debrief-apply/SKILL.md +4 -4
  61. package/plugins/lisa/.codex-plugin/skills/lisa-debrief-apply/agents/openai.yaml +2 -2
  62. package/plugins/lisa/.codex-plugin/skills/lisa-drive-pr-to-merge/SKILL.md +18 -7
  63. package/plugins/lisa/.codex-plugin/skills/lisa-exploratory-qa/SKILL.md +23 -12
  64. package/plugins/lisa/.codex-plugin/skills/lisa-github-build-intake/SKILL.md +14 -9
  65. package/plugins/lisa/.codex-plugin/skills/lisa-github-evidence/SKILL.md +7 -3
  66. package/plugins/lisa/.codex-plugin/skills/lisa-github-to-tracker/SKILL.md +1 -1
  67. package/plugins/lisa/.codex-plugin/skills/lisa-github-write-issue/SKILL.md +2 -2
  68. package/plugins/lisa/.codex-plugin/skills/lisa-improve-harness/SKILL.md +24 -7
  69. package/plugins/lisa/.codex-plugin/skills/lisa-jira-build-intake/SKILL.md +14 -10
  70. package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/SKILL.md +10 -7
  71. package/plugins/lisa/.codex-plugin/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
  72. package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/SKILL.md +1 -1
  73. package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
  74. package/plugins/lisa/.codex-plugin/skills/lisa-jira-write-ticket/SKILL.md +4 -4
  75. package/plugins/lisa/.codex-plugin/skills/lisa-learnings-audit/SKILL.md +64 -32
  76. package/plugins/lisa/.codex-plugin/skills/lisa-linear-build-intake/SKILL.md +9 -9
  77. package/plugins/lisa/.codex-plugin/skills/lisa-linear-evidence/SKILL.md +1 -1
  78. package/plugins/lisa/.codex-plugin/skills/lisa-linear-to-tracker/SKILL.md +1 -1
  79. package/plugins/lisa/.codex-plugin/skills/lisa-linear-write-issue/SKILL.md +5 -5
  80. package/plugins/lisa/.codex-plugin/skills/lisa-monitor/SKILL.md +10 -4
  81. package/plugins/lisa/.codex-plugin/skills/lisa-notion-to-tracker/SKILL.md +1 -1
  82. package/plugins/lisa/.codex-plugin/skills/lisa-persist-learning/SKILL.md +5 -5
  83. package/plugins/lisa/.codex-plugin/skills/lisa-project-ideation/SKILL.md +10 -4
  84. package/plugins/lisa/.codex-plugin/skills/lisa-repair-intake/SKILL.md +24 -13
  85. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/SKILL.md +19 -2
  86. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/references/runbook-template.md +8 -4
  87. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-cycle.mjs +9 -0
  88. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-queue.mjs +6 -0
  89. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-usage.mjs +1 -1
  90. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/escalation-overruled.mjs +1 -1
  91. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/human-needed.mjs +16 -5
  92. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/reconcile.mjs +76 -9
  93. package/plugins/lisa/.codex-plugin/skills/lisa-setup-automations/SKILL.md +7 -5
  94. package/plugins/lisa/.codex-plugin/skills/lisa-track/SKILL.md +3 -3
  95. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
  96. package/plugins/lisa/.codex-plugin/skills/lisa-usage-accounting/SKILL.md +5 -1
  97. package/plugins/lisa/agents/learning-judge.md +5 -5
  98. package/plugins/lisa/agents/skill-evaluator.md +4 -4
  99. package/plugins/lisa/commands/debrief/apply.md +1 -1
  100. package/plugins/lisa/commands/learnings/audit.md +2 -2
  101. package/plugins/lisa/commands/persist-learning.md +1 -1
  102. package/plugins/lisa/hooks/block-direct-issue-create.sh +10 -5
  103. package/plugins/lisa/hooks/block-no-verify.agy.sh +1 -1
  104. package/plugins/lisa/hooks/block-no-verify.sh +4 -3
  105. package/plugins/lisa/hooks/inject-resolved-config.mjs +236 -14
  106. package/plugins/lisa/hooks/threshold-ratchet.mjs +4 -2
  107. package/plugins/lisa/rules/eager/base-rules.md +1 -1
  108. package/plugins/lisa/rules/eager/do-it-now.md +2 -2
  109. package/plugins/lisa/rules/eager/learnings-ladder.md +1 -1
  110. package/plugins/lisa/rules/eager/security-audit-handling.md +5 -5
  111. package/plugins/lisa/rules/reference/automation-runbook-contract.md +37 -22
  112. package/plugins/lisa/rules/reference/base-rules.md +1 -1
  113. package/plugins/lisa/rules/reference/config-resolution.md +7 -6
  114. package/plugins/lisa/rules/reference/dependency-trust-classes.md +28 -18
  115. package/plugins/lisa/rules/reference/factory-model.md +17 -8
  116. package/plugins/lisa/rules/reference/intent-routing.md +3 -3
  117. package/plugins/lisa/rules/reference/learnings-ladder.md +1 -1
  118. package/plugins/lisa/rules/reference/promotion-contract.md +5 -2
  119. package/plugins/lisa/rules/reference/ready-role-filing.md +32 -22
  120. package/plugins/lisa/rules/reference/security-audit-handling.md +9 -6
  121. package/plugins/lisa/rules/reference/usage-accounting.md +29 -1
  122. package/plugins/lisa/scripts/blocker-edge-resolution.mjs +9 -5
  123. package/plugins/lisa/scripts/human-gate-act.mjs +104 -8
  124. package/plugins/lisa/scripts/human-gate-lift.mjs +14 -7
  125. package/plugins/lisa/scripts/intake-blocker-reprobe.mjs +215 -39
  126. package/plugins/lisa/scripts/ready-queue-order.mjs +9 -3
  127. package/plugins/lisa/skills/lisa-confluence-to-tracker/SKILL.md +1 -1
  128. package/plugins/lisa/skills/lisa-debrief-apply/SKILL.md +3 -3
  129. package/plugins/lisa/skills/lisa-debrief-apply/agents/openai.yaml +2 -2
  130. package/plugins/lisa/skills/lisa-drive-pr-to-merge/SKILL.md +18 -7
  131. package/plugins/lisa/skills/lisa-exploratory-qa/SKILL.md +23 -12
  132. package/plugins/lisa/skills/lisa-github-build-intake/SKILL.md +14 -9
  133. package/plugins/lisa/skills/lisa-github-evidence/SKILL.md +7 -3
  134. package/plugins/lisa/skills/lisa-github-to-tracker/SKILL.md +1 -1
  135. package/plugins/lisa/skills/lisa-github-write-issue/SKILL.md +2 -2
  136. package/plugins/lisa/skills/lisa-improve-harness/SKILL.md +24 -7
  137. package/plugins/lisa/skills/lisa-jira-build-intake/SKILL.md +14 -10
  138. package/plugins/lisa/skills/lisa-jira-evidence/SKILL.md +10 -7
  139. package/plugins/lisa/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
  140. package/plugins/lisa/skills/lisa-jira-journey/SKILL.md +1 -1
  141. package/plugins/lisa/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
  142. package/plugins/lisa/skills/lisa-jira-write-ticket/SKILL.md +4 -4
  143. package/plugins/lisa/skills/lisa-learnings-audit/SKILL.md +64 -32
  144. package/plugins/lisa/skills/lisa-linear-build-intake/SKILL.md +9 -9
  145. package/plugins/lisa/skills/lisa-linear-evidence/SKILL.md +1 -1
  146. package/plugins/lisa/skills/lisa-linear-to-tracker/SKILL.md +1 -1
  147. package/plugins/lisa/skills/lisa-linear-write-issue/SKILL.md +5 -5
  148. package/plugins/lisa/skills/lisa-monitor/SKILL.md +10 -4
  149. package/plugins/lisa/skills/lisa-notion-to-tracker/SKILL.md +1 -1
  150. package/plugins/lisa/skills/lisa-persist-learning/SKILL.md +5 -5
  151. package/plugins/lisa/skills/lisa-project-ideation/SKILL.md +10 -4
  152. package/plugins/lisa/skills/lisa-repair-intake/SKILL.md +24 -13
  153. package/plugins/lisa/skills/lisa-session-manager/SKILL.md +19 -2
  154. package/plugins/lisa/skills/lisa-session-manager/references/runbook-template.md +8 -4
  155. package/plugins/lisa/skills/lisa-session-manager/scripts/cli-cycle.mjs +9 -0
  156. package/plugins/lisa/skills/lisa-session-manager/scripts/cli-queue.mjs +6 -0
  157. package/plugins/lisa/skills/lisa-session-manager/scripts/cli-usage.mjs +1 -1
  158. package/plugins/lisa/skills/lisa-session-manager/scripts/escalation-overruled.mjs +1 -1
  159. package/plugins/lisa/skills/lisa-session-manager/scripts/human-needed.mjs +16 -5
  160. package/plugins/lisa/skills/lisa-session-manager/scripts/reconcile.mjs +76 -9
  161. package/plugins/lisa/skills/lisa-setup-automations/SKILL.md +7 -5
  162. package/plugins/lisa/skills/lisa-track/SKILL.md +3 -3
  163. package/plugins/lisa/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
  164. package/plugins/lisa/skills/lisa-usage-accounting/SKILL.md +5 -1
  165. package/plugins/lisa-agy/agents/learning-judge.md +5 -5
  166. package/plugins/lisa-agy/agents/skill-evaluator.md +4 -4
  167. package/plugins/lisa-agy/commands/lisa/debrief/apply.md +1 -1
  168. package/plugins/lisa-agy/commands/lisa/learnings/audit.md +2 -2
  169. package/plugins/lisa-agy/commands/lisa/persist-learning.md +1 -1
  170. package/plugins/lisa-agy/hooks/block-direct-issue-create.sh +10 -5
  171. package/plugins/lisa-agy/hooks/block-no-verify.agy.sh +1 -1
  172. package/plugins/lisa-agy/plugin.json +1 -1
  173. package/plugins/lisa-agy/scripts/blocker-edge-resolution.mjs +9 -5
  174. package/plugins/lisa-agy/scripts/human-gate-act.mjs +104 -8
  175. package/plugins/lisa-agy/scripts/human-gate-lift.mjs +14 -7
  176. package/plugins/lisa-agy/scripts/intake-blocker-reprobe.mjs +215 -39
  177. package/plugins/lisa-agy/scripts/ready-queue-order.mjs +9 -3
  178. package/plugins/lisa-agy/skills/lisa-confluence-to-tracker/SKILL.md +1 -1
  179. package/plugins/lisa-agy/skills/lisa-debrief-apply/SKILL.md +3 -3
  180. package/plugins/lisa-agy/skills/lisa-drive-pr-to-merge/SKILL.md +18 -7
  181. package/plugins/lisa-agy/skills/lisa-exploratory-qa/SKILL.md +23 -12
  182. package/plugins/lisa-agy/skills/lisa-github-build-intake/SKILL.md +14 -9
  183. package/plugins/lisa-agy/skills/lisa-github-evidence/SKILL.md +7 -3
  184. package/plugins/lisa-agy/skills/lisa-github-to-tracker/SKILL.md +1 -1
  185. package/plugins/lisa-agy/skills/lisa-github-write-issue/SKILL.md +2 -2
  186. package/plugins/lisa-agy/skills/lisa-improve-harness/SKILL.md +24 -7
  187. package/plugins/lisa-agy/skills/lisa-jira-build-intake/SKILL.md +14 -10
  188. package/plugins/lisa-agy/skills/lisa-jira-evidence/SKILL.md +10 -7
  189. package/plugins/lisa-agy/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
  190. package/plugins/lisa-agy/skills/lisa-jira-journey/SKILL.md +1 -1
  191. package/plugins/lisa-agy/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
  192. package/plugins/lisa-agy/skills/lisa-jira-write-ticket/SKILL.md +4 -4
  193. package/plugins/lisa-agy/skills/lisa-learnings-audit/SKILL.md +64 -32
  194. package/plugins/lisa-agy/skills/lisa-linear-build-intake/SKILL.md +9 -9
  195. package/plugins/lisa-agy/skills/lisa-linear-evidence/SKILL.md +1 -1
  196. package/plugins/lisa-agy/skills/lisa-linear-to-tracker/SKILL.md +1 -1
  197. package/plugins/lisa-agy/skills/lisa-linear-write-issue/SKILL.md +5 -5
  198. package/plugins/lisa-agy/skills/lisa-monitor/SKILL.md +10 -4
  199. package/plugins/lisa-agy/skills/lisa-notion-to-tracker/SKILL.md +1 -1
  200. package/plugins/lisa-agy/skills/lisa-persist-learning/SKILL.md +5 -5
  201. package/plugins/lisa-agy/skills/lisa-project-ideation/SKILL.md +10 -4
  202. package/plugins/lisa-agy/skills/lisa-repair-intake/SKILL.md +24 -13
  203. package/plugins/lisa-agy/skills/lisa-session-manager/SKILL.md +19 -2
  204. package/plugins/lisa-agy/skills/lisa-session-manager/references/runbook-template.md +8 -4
  205. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-cycle.mjs +9 -0
  206. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-queue.mjs +6 -0
  207. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-usage.mjs +1 -1
  208. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/escalation-overruled.mjs +1 -1
  209. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/human-needed.mjs +16 -5
  210. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/reconcile.mjs +76 -9
  211. package/plugins/lisa-agy/skills/lisa-setup-automations/SKILL.md +7 -5
  212. package/plugins/lisa-agy/skills/lisa-track/SKILL.md +3 -3
  213. package/plugins/lisa-agy/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
  214. package/plugins/lisa-agy/skills/lisa-usage-accounting/SKILL.md +5 -1
  215. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  216. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  217. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  218. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  219. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  220. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  221. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  222. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  223. package/plugins/lisa-copilot/agents/learning-judge.agent.md +5 -5
  224. package/plugins/lisa-copilot/agents/skill-evaluator.agent.md +4 -4
  225. package/plugins/lisa-copilot/commands/lisa/debrief/apply.md +1 -1
  226. package/plugins/lisa-copilot/commands/lisa/learnings/audit.md +2 -2
  227. package/plugins/lisa-copilot/commands/lisa/persist-learning.md +1 -1
  228. package/plugins/lisa-copilot/hooks/block-direct-issue-create.sh +10 -5
  229. package/plugins/lisa-copilot/hooks/block-no-verify.sh +4 -3
  230. package/plugins/lisa-copilot/hooks/inject-resolved-config.mjs +236 -14
  231. package/plugins/lisa-copilot/hooks/threshold-ratchet.mjs +4 -2
  232. package/plugins/lisa-copilot/rules/eager/base-rules.md +1 -1
  233. package/plugins/lisa-copilot/rules/eager/do-it-now.md +2 -2
  234. package/plugins/lisa-copilot/rules/eager/learnings-ladder.md +1 -1
  235. package/plugins/lisa-copilot/rules/eager/security-audit-handling.md +5 -5
  236. package/plugins/lisa-copilot/rules/reference/automation-runbook-contract.md +37 -22
  237. package/plugins/lisa-copilot/rules/reference/base-rules.md +1 -1
  238. package/plugins/lisa-copilot/rules/reference/config-resolution.md +7 -6
  239. package/plugins/lisa-copilot/rules/reference/dependency-trust-classes.md +28 -18
  240. package/plugins/lisa-copilot/rules/reference/factory-model.md +17 -8
  241. package/plugins/lisa-copilot/rules/reference/intent-routing.md +3 -3
  242. package/plugins/lisa-copilot/rules/reference/learnings-ladder.md +1 -1
  243. package/plugins/lisa-copilot/rules/reference/promotion-contract.md +5 -2
  244. package/plugins/lisa-copilot/rules/reference/ready-role-filing.md +32 -22
  245. package/plugins/lisa-copilot/rules/reference/security-audit-handling.md +9 -6
  246. package/plugins/lisa-copilot/rules/reference/usage-accounting.md +29 -1
  247. package/plugins/lisa-copilot/scripts/blocker-edge-resolution.mjs +9 -5
  248. package/plugins/lisa-copilot/scripts/human-gate-act.mjs +104 -8
  249. package/plugins/lisa-copilot/scripts/human-gate-lift.mjs +14 -7
  250. package/plugins/lisa-copilot/scripts/intake-blocker-reprobe.mjs +215 -39
  251. package/plugins/lisa-copilot/scripts/ready-queue-order.mjs +9 -3
  252. package/plugins/lisa-copilot/skills/lisa-confluence-to-tracker/SKILL.md +1 -1
  253. package/plugins/lisa-copilot/skills/lisa-debrief-apply/SKILL.md +3 -3
  254. package/plugins/lisa-copilot/skills/lisa-drive-pr-to-merge/SKILL.md +18 -7
  255. package/plugins/lisa-copilot/skills/lisa-exploratory-qa/SKILL.md +23 -12
  256. package/plugins/lisa-copilot/skills/lisa-github-build-intake/SKILL.md +14 -9
  257. package/plugins/lisa-copilot/skills/lisa-github-evidence/SKILL.md +7 -3
  258. package/plugins/lisa-copilot/skills/lisa-github-to-tracker/SKILL.md +1 -1
  259. package/plugins/lisa-copilot/skills/lisa-github-write-issue/SKILL.md +2 -2
  260. package/plugins/lisa-copilot/skills/lisa-improve-harness/SKILL.md +24 -7
  261. package/plugins/lisa-copilot/skills/lisa-jira-build-intake/SKILL.md +14 -10
  262. package/plugins/lisa-copilot/skills/lisa-jira-evidence/SKILL.md +10 -7
  263. package/plugins/lisa-copilot/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
  264. package/plugins/lisa-copilot/skills/lisa-jira-journey/SKILL.md +1 -1
  265. package/plugins/lisa-copilot/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
  266. package/plugins/lisa-copilot/skills/lisa-jira-write-ticket/SKILL.md +4 -4
  267. package/plugins/lisa-copilot/skills/lisa-learnings-audit/SKILL.md +64 -32
  268. package/plugins/lisa-copilot/skills/lisa-linear-build-intake/SKILL.md +9 -9
  269. package/plugins/lisa-copilot/skills/lisa-linear-evidence/SKILL.md +1 -1
  270. package/plugins/lisa-copilot/skills/lisa-linear-to-tracker/SKILL.md +1 -1
  271. package/plugins/lisa-copilot/skills/lisa-linear-write-issue/SKILL.md +5 -5
  272. package/plugins/lisa-copilot/skills/lisa-monitor/SKILL.md +10 -4
  273. package/plugins/lisa-copilot/skills/lisa-notion-to-tracker/SKILL.md +1 -1
  274. package/plugins/lisa-copilot/skills/lisa-persist-learning/SKILL.md +5 -5
  275. package/plugins/lisa-copilot/skills/lisa-project-ideation/SKILL.md +10 -4
  276. package/plugins/lisa-copilot/skills/lisa-repair-intake/SKILL.md +24 -13
  277. package/plugins/lisa-copilot/skills/lisa-session-manager/SKILL.md +19 -2
  278. package/plugins/lisa-copilot/skills/lisa-session-manager/references/runbook-template.md +8 -4
  279. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-cycle.mjs +9 -0
  280. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-queue.mjs +6 -0
  281. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-usage.mjs +1 -1
  282. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/escalation-overruled.mjs +1 -1
  283. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/human-needed.mjs +16 -5
  284. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/reconcile.mjs +76 -9
  285. package/plugins/lisa-copilot/skills/lisa-setup-automations/SKILL.md +7 -5
  286. package/plugins/lisa-copilot/skills/lisa-track/SKILL.md +3 -3
  287. package/plugins/lisa-copilot/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
  288. package/plugins/lisa-copilot/skills/lisa-usage-accounting/SKILL.md +5 -1
  289. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  290. package/plugins/lisa-cursor/agents/learning-judge.md +5 -5
  291. package/plugins/lisa-cursor/agents/skill-evaluator.md +4 -4
  292. package/plugins/lisa-cursor/commands/lisa/debrief/apply.md +1 -1
  293. package/plugins/lisa-cursor/commands/lisa/learnings/audit.md +2 -2
  294. package/plugins/lisa-cursor/commands/lisa/persist-learning.md +1 -1
  295. package/plugins/lisa-cursor/hooks/block-direct-issue-create.sh +10 -5
  296. package/plugins/lisa-cursor/hooks/block-no-verify.sh +4 -3
  297. package/plugins/lisa-cursor/hooks/inject-resolved-config.mjs +236 -14
  298. package/plugins/lisa-cursor/hooks/threshold-ratchet.mjs +4 -2
  299. package/plugins/lisa-cursor/rules/automation-runbook-contract-reference.mdc +37 -22
  300. package/plugins/lisa-cursor/rules/base-rules-reference.mdc +1 -1
  301. package/plugins/lisa-cursor/rules/base-rules.mdc +1 -1
  302. package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +7 -6
  303. package/plugins/lisa-cursor/rules/dependency-trust-classes-reference.mdc +28 -18
  304. package/plugins/lisa-cursor/rules/do-it-now.mdc +2 -2
  305. package/plugins/lisa-cursor/rules/factory-model-reference.mdc +17 -8
  306. package/plugins/lisa-cursor/rules/intent-routing-reference.mdc +3 -3
  307. package/plugins/lisa-cursor/rules/learnings-ladder-reference.mdc +1 -1
  308. package/plugins/lisa-cursor/rules/learnings-ladder.mdc +1 -1
  309. package/plugins/lisa-cursor/rules/promotion-contract-reference.mdc +5 -2
  310. package/plugins/lisa-cursor/rules/ready-role-filing-reference.mdc +32 -22
  311. package/plugins/lisa-cursor/rules/security-audit-handling-reference.mdc +9 -6
  312. package/plugins/lisa-cursor/rules/security-audit-handling.mdc +5 -5
  313. package/plugins/lisa-cursor/rules/usage-accounting-reference.mdc +29 -1
  314. package/plugins/lisa-cursor/scripts/blocker-edge-resolution.mjs +9 -5
  315. package/plugins/lisa-cursor/scripts/human-gate-act.mjs +104 -8
  316. package/plugins/lisa-cursor/scripts/human-gate-lift.mjs +14 -7
  317. package/plugins/lisa-cursor/scripts/intake-blocker-reprobe.mjs +215 -39
  318. package/plugins/lisa-cursor/scripts/ready-queue-order.mjs +9 -3
  319. package/plugins/lisa-cursor/skills/lisa-confluence-to-tracker/SKILL.md +1 -1
  320. package/plugins/lisa-cursor/skills/lisa-debrief-apply/SKILL.md +3 -3
  321. package/plugins/lisa-cursor/skills/lisa-drive-pr-to-merge/SKILL.md +18 -7
  322. package/plugins/lisa-cursor/skills/lisa-exploratory-qa/SKILL.md +23 -12
  323. package/plugins/lisa-cursor/skills/lisa-github-build-intake/SKILL.md +14 -9
  324. package/plugins/lisa-cursor/skills/lisa-github-evidence/SKILL.md +7 -3
  325. package/plugins/lisa-cursor/skills/lisa-github-to-tracker/SKILL.md +1 -1
  326. package/plugins/lisa-cursor/skills/lisa-github-write-issue/SKILL.md +2 -2
  327. package/plugins/lisa-cursor/skills/lisa-improve-harness/SKILL.md +24 -7
  328. package/plugins/lisa-cursor/skills/lisa-jira-build-intake/SKILL.md +14 -10
  329. package/plugins/lisa-cursor/skills/lisa-jira-evidence/SKILL.md +10 -7
  330. package/plugins/lisa-cursor/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
  331. package/plugins/lisa-cursor/skills/lisa-jira-journey/SKILL.md +1 -1
  332. package/plugins/lisa-cursor/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
  333. package/plugins/lisa-cursor/skills/lisa-jira-write-ticket/SKILL.md +4 -4
  334. package/plugins/lisa-cursor/skills/lisa-learnings-audit/SKILL.md +64 -32
  335. package/plugins/lisa-cursor/skills/lisa-linear-build-intake/SKILL.md +9 -9
  336. package/plugins/lisa-cursor/skills/lisa-linear-evidence/SKILL.md +1 -1
  337. package/plugins/lisa-cursor/skills/lisa-linear-to-tracker/SKILL.md +1 -1
  338. package/plugins/lisa-cursor/skills/lisa-linear-write-issue/SKILL.md +5 -5
  339. package/plugins/lisa-cursor/skills/lisa-monitor/SKILL.md +10 -4
  340. package/plugins/lisa-cursor/skills/lisa-notion-to-tracker/SKILL.md +1 -1
  341. package/plugins/lisa-cursor/skills/lisa-persist-learning/SKILL.md +5 -5
  342. package/plugins/lisa-cursor/skills/lisa-project-ideation/SKILL.md +10 -4
  343. package/plugins/lisa-cursor/skills/lisa-repair-intake/SKILL.md +24 -13
  344. package/plugins/lisa-cursor/skills/lisa-session-manager/SKILL.md +19 -2
  345. package/plugins/lisa-cursor/skills/lisa-session-manager/references/runbook-template.md +8 -4
  346. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-cycle.mjs +9 -0
  347. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-queue.mjs +6 -0
  348. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-usage.mjs +1 -1
  349. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/escalation-overruled.mjs +1 -1
  350. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/human-needed.mjs +16 -5
  351. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/reconcile.mjs +76 -9
  352. package/plugins/lisa-cursor/skills/lisa-setup-automations/SKILL.md +7 -5
  353. package/plugins/lisa-cursor/skills/lisa-track/SKILL.md +3 -3
  354. package/plugins/lisa-cursor/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
  355. package/plugins/lisa-cursor/skills/lisa-usage-accounting/SKILL.md +5 -1
  356. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  357. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  358. package/plugins/lisa-devin/agents/learning-judge.md +5 -5
  359. package/plugins/lisa-devin/agents/skill-evaluator.md +4 -4
  360. package/plugins/lisa-devin/hooks/block-direct-issue-create.sh +10 -5
  361. package/plugins/lisa-devin/hooks/block-no-verify.sh +4 -3
  362. package/plugins/lisa-devin/hooks/inject-resolved-config.mjs +236 -14
  363. package/plugins/lisa-devin/hooks/threshold-ratchet.mjs +4 -2
  364. package/plugins/lisa-devin/rules/eager/base-rules.md +1 -1
  365. package/plugins/lisa-devin/rules/eager/do-it-now.md +2 -2
  366. package/plugins/lisa-devin/rules/eager/learnings-ladder.md +1 -1
  367. package/plugins/lisa-devin/rules/eager/security-audit-handling.md +5 -5
  368. package/plugins/lisa-devin/rules/reference/automation-runbook-contract.md +37 -22
  369. package/plugins/lisa-devin/rules/reference/base-rules.md +1 -1
  370. package/plugins/lisa-devin/rules/reference/config-resolution.md +7 -6
  371. package/plugins/lisa-devin/rules/reference/dependency-trust-classes.md +28 -18
  372. package/plugins/lisa-devin/rules/reference/factory-model.md +17 -8
  373. package/plugins/lisa-devin/rules/reference/intent-routing.md +3 -3
  374. package/plugins/lisa-devin/rules/reference/learnings-ladder.md +1 -1
  375. package/plugins/lisa-devin/rules/reference/promotion-contract.md +5 -2
  376. package/plugins/lisa-devin/rules/reference/ready-role-filing.md +32 -22
  377. package/plugins/lisa-devin/rules/reference/security-audit-handling.md +9 -6
  378. package/plugins/lisa-devin/rules/reference/usage-accounting.md +29 -1
  379. package/plugins/lisa-devin/scripts/blocker-edge-resolution.mjs +9 -5
  380. package/plugins/lisa-devin/scripts/human-gate-act.mjs +104 -8
  381. package/plugins/lisa-devin/scripts/human-gate-lift.mjs +14 -7
  382. package/plugins/lisa-devin/scripts/intake-blocker-reprobe.mjs +215 -39
  383. package/plugins/lisa-devin/scripts/ready-queue-order.mjs +9 -3
  384. package/plugins/lisa-devin/skills/lisa-confluence-to-tracker/SKILL.md +1 -1
  385. package/plugins/lisa-devin/skills/lisa-debrief-apply/SKILL.md +3 -3
  386. package/plugins/lisa-devin/skills/lisa-drive-pr-to-merge/SKILL.md +18 -7
  387. package/plugins/lisa-devin/skills/lisa-exploratory-qa/SKILL.md +23 -12
  388. package/plugins/lisa-devin/skills/lisa-github-build-intake/SKILL.md +14 -9
  389. package/plugins/lisa-devin/skills/lisa-github-evidence/SKILL.md +7 -3
  390. package/plugins/lisa-devin/skills/lisa-github-to-tracker/SKILL.md +1 -1
  391. package/plugins/lisa-devin/skills/lisa-github-write-issue/SKILL.md +2 -2
  392. package/plugins/lisa-devin/skills/lisa-improve-harness/SKILL.md +24 -7
  393. package/plugins/lisa-devin/skills/lisa-jira-build-intake/SKILL.md +14 -10
  394. package/plugins/lisa-devin/skills/lisa-jira-evidence/SKILL.md +10 -7
  395. package/plugins/lisa-devin/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
  396. package/plugins/lisa-devin/skills/lisa-jira-journey/SKILL.md +1 -1
  397. package/plugins/lisa-devin/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
  398. package/plugins/lisa-devin/skills/lisa-jira-write-ticket/SKILL.md +4 -4
  399. package/plugins/lisa-devin/skills/lisa-learnings-audit/SKILL.md +64 -32
  400. package/plugins/lisa-devin/skills/lisa-linear-build-intake/SKILL.md +9 -9
  401. package/plugins/lisa-devin/skills/lisa-linear-evidence/SKILL.md +1 -1
  402. package/plugins/lisa-devin/skills/lisa-linear-to-tracker/SKILL.md +1 -1
  403. package/plugins/lisa-devin/skills/lisa-linear-write-issue/SKILL.md +5 -5
  404. package/plugins/lisa-devin/skills/lisa-monitor/SKILL.md +10 -4
  405. package/plugins/lisa-devin/skills/lisa-notion-to-tracker/SKILL.md +1 -1
  406. package/plugins/lisa-devin/skills/lisa-persist-learning/SKILL.md +5 -5
  407. package/plugins/lisa-devin/skills/lisa-project-ideation/SKILL.md +10 -4
  408. package/plugins/lisa-devin/skills/lisa-repair-intake/SKILL.md +24 -13
  409. package/plugins/lisa-devin/skills/lisa-session-manager/SKILL.md +19 -2
  410. package/plugins/lisa-devin/skills/lisa-session-manager/references/runbook-template.md +8 -4
  411. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-cycle.mjs +9 -0
  412. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-queue.mjs +6 -0
  413. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-usage.mjs +1 -1
  414. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/escalation-overruled.mjs +1 -1
  415. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/human-needed.mjs +16 -5
  416. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/reconcile.mjs +76 -9
  417. package/plugins/lisa-devin/skills/lisa-setup-automations/SKILL.md +7 -5
  418. package/plugins/lisa-devin/skills/lisa-track/SKILL.md +3 -3
  419. package/plugins/lisa-devin/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
  420. package/plugins/lisa-devin/skills/lisa-usage-accounting/SKILL.md +5 -1
  421. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  422. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  423. package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/SKILL.md +11 -5
  424. package/plugins/lisa-expo/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  425. package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/SKILL.md +1 -1
  426. package/plugins/lisa-expo/.codex-plugin/skills/jira-journey/scripts/generate-templates.py +10 -5
  427. package/plugins/lisa-expo/skills/jira-evidence/SKILL.md +11 -5
  428. package/plugins/lisa-expo/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  429. package/plugins/lisa-expo/skills/jira-journey/SKILL.md +1 -1
  430. package/plugins/lisa-expo/skills/jira-journey/scripts/generate-templates.py +10 -5
  431. package/plugins/lisa-expo-agy/plugin.json +1 -1
  432. package/plugins/lisa-expo-agy/skills/jira-evidence/SKILL.md +11 -5
  433. package/plugins/lisa-expo-agy/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  434. package/plugins/lisa-expo-agy/skills/jira-journey/SKILL.md +1 -1
  435. package/plugins/lisa-expo-agy/skills/jira-journey/scripts/generate-templates.py +10 -5
  436. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  437. package/plugins/lisa-expo-copilot/skills/jira-evidence/SKILL.md +11 -5
  438. package/plugins/lisa-expo-copilot/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  439. package/plugins/lisa-expo-copilot/skills/jira-journey/SKILL.md +1 -1
  440. package/plugins/lisa-expo-copilot/skills/jira-journey/scripts/generate-templates.py +10 -5
  441. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  442. package/plugins/lisa-expo-cursor/skills/jira-evidence/SKILL.md +11 -5
  443. package/plugins/lisa-expo-cursor/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  444. package/plugins/lisa-expo-cursor/skills/jira-journey/SKILL.md +1 -1
  445. package/plugins/lisa-expo-cursor/skills/jira-journey/scripts/generate-templates.py +10 -5
  446. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  447. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  448. package/plugins/lisa-expo-devin/skills/jira-evidence/SKILL.md +11 -5
  449. package/plugins/lisa-expo-devin/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  450. package/plugins/lisa-expo-devin/skills/jira-journey/SKILL.md +1 -1
  451. package/plugins/lisa-expo-devin/skills/jira-journey/scripts/generate-templates.py +10 -5
  452. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  453. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  454. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  455. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  456. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  457. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  458. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  459. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  460. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  461. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  462. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  463. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  464. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  465. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  466. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  467. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  468. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  469. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  470. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  471. package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
  472. package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
  473. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  474. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  475. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  476. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  477. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  478. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  479. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  480. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  481. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  482. package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/SKILL.md +11 -5
  483. package/plugins/lisa-rails/.codex-plugin/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  484. package/plugins/lisa-rails/skills/jira-evidence/SKILL.md +11 -5
  485. package/plugins/lisa-rails/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  486. package/plugins/lisa-rails-agy/plugin.json +1 -1
  487. package/plugins/lisa-rails-agy/skills/jira-evidence/SKILL.md +11 -5
  488. package/plugins/lisa-rails-agy/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  489. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  490. package/plugins/lisa-rails-copilot/skills/jira-evidence/SKILL.md +11 -5
  491. package/plugins/lisa-rails-copilot/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  492. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  493. package/plugins/lisa-rails-cursor/skills/jira-evidence/SKILL.md +11 -5
  494. package/plugins/lisa-rails-cursor/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  495. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  496. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  497. package/plugins/lisa-rails-devin/skills/jira-evidence/SKILL.md +11 -5
  498. package/plugins/lisa-rails-devin/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  499. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  500. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  501. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  502. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  503. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  504. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  505. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  506. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  507. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  508. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  509. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  510. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  511. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  512. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  513. package/plugins/src/base/agents/learning-judge.md +5 -5
  514. package/plugins/src/base/agents/skill-evaluator.md +4 -4
  515. package/plugins/src/base/commands/debrief/apply.md +1 -1
  516. package/plugins/src/base/commands/learnings/audit.md +2 -2
  517. package/plugins/src/base/commands/persist-learning.md +1 -1
  518. package/plugins/src/base/hooks/block-direct-issue-create.sh +10 -5
  519. package/plugins/src/base/hooks/block-no-verify.agy.sh +1 -1
  520. package/plugins/src/base/hooks/block-no-verify.sh +4 -3
  521. package/plugins/src/base/hooks/inject-resolved-config.mjs +236 -14
  522. package/plugins/src/base/hooks/threshold-ratchet.mjs +4 -2
  523. package/plugins/src/base/rules/eager/base-rules.md +1 -1
  524. package/plugins/src/base/rules/eager/do-it-now.md +2 -2
  525. package/plugins/src/base/rules/eager/learnings-ladder.md +1 -1
  526. package/plugins/src/base/rules/eager/security-audit-handling.md +5 -5
  527. package/plugins/src/base/rules/reference/automation-runbook-contract.md +37 -22
  528. package/plugins/src/base/rules/reference/base-rules.md +1 -1
  529. package/plugins/src/base/rules/reference/config-resolution.md +7 -6
  530. package/plugins/src/base/rules/reference/dependency-trust-classes.md +28 -18
  531. package/plugins/src/base/rules/reference/factory-model.md +17 -8
  532. package/plugins/src/base/rules/reference/intent-routing.md +3 -3
  533. package/plugins/src/base/rules/reference/learnings-ladder.md +1 -1
  534. package/plugins/src/base/rules/reference/promotion-contract.md +5 -2
  535. package/plugins/src/base/rules/reference/ready-role-filing.md +32 -22
  536. package/plugins/src/base/rules/reference/security-audit-handling.md +9 -6
  537. package/plugins/src/base/rules/reference/usage-accounting.md +29 -1
  538. package/plugins/src/base/scripts/blocker-edge-resolution.mjs +9 -5
  539. package/plugins/src/base/scripts/human-gate-act.mjs +104 -8
  540. package/plugins/src/base/scripts/human-gate-lift.mjs +14 -7
  541. package/plugins/src/base/scripts/intake-blocker-reprobe.mjs +215 -39
  542. package/plugins/src/base/scripts/ready-queue-order.mjs +9 -3
  543. package/plugins/src/base/skills/lisa-confluence-to-tracker/SKILL.md +1 -1
  544. package/plugins/src/base/skills/lisa-debrief-apply/SKILL.md +3 -3
  545. package/plugins/src/base/skills/lisa-drive-pr-to-merge/SKILL.md +18 -7
  546. package/plugins/src/base/skills/lisa-exploratory-qa/SKILL.md +23 -12
  547. package/plugins/src/base/skills/lisa-github-build-intake/SKILL.md +14 -9
  548. package/plugins/src/base/skills/lisa-github-evidence/SKILL.md +7 -3
  549. package/plugins/src/base/skills/lisa-github-to-tracker/SKILL.md +1 -1
  550. package/plugins/src/base/skills/lisa-github-write-issue/SKILL.md +2 -2
  551. package/plugins/src/base/skills/lisa-improve-harness/SKILL.md +24 -7
  552. package/plugins/src/base/skills/lisa-jira-build-intake/SKILL.md +14 -10
  553. package/plugins/src/base/skills/lisa-jira-evidence/SKILL.md +10 -7
  554. package/plugins/src/base/skills/lisa-jira-evidence/scripts/post-evidence.sh +21 -2
  555. package/plugins/src/base/skills/lisa-jira-journey/SKILL.md +1 -1
  556. package/plugins/src/base/skills/lisa-jira-journey/scripts/generate-templates.py +10 -5
  557. package/plugins/src/base/skills/lisa-jira-write-ticket/SKILL.md +4 -4
  558. package/plugins/src/base/skills/lisa-learnings-audit/SKILL.md +64 -32
  559. package/plugins/src/base/skills/lisa-linear-build-intake/SKILL.md +9 -9
  560. package/plugins/src/base/skills/lisa-linear-evidence/SKILL.md +1 -1
  561. package/plugins/src/base/skills/lisa-linear-to-tracker/SKILL.md +1 -1
  562. package/plugins/src/base/skills/lisa-linear-write-issue/SKILL.md +5 -5
  563. package/plugins/src/base/skills/lisa-monitor/SKILL.md +10 -4
  564. package/plugins/src/base/skills/lisa-notion-to-tracker/SKILL.md +1 -1
  565. package/plugins/src/base/skills/lisa-persist-learning/SKILL.md +5 -5
  566. package/plugins/src/base/skills/lisa-project-ideation/SKILL.md +10 -4
  567. package/plugins/src/base/skills/lisa-repair-intake/SKILL.md +24 -13
  568. package/plugins/src/base/skills/lisa-session-manager/SKILL.md +19 -2
  569. package/plugins/src/base/skills/lisa-session-manager/references/runbook-template.md +8 -4
  570. package/plugins/src/base/skills/lisa-session-manager/scripts/cli-cycle.mjs +9 -0
  571. package/plugins/src/base/skills/lisa-session-manager/scripts/cli-queue.mjs +6 -0
  572. package/plugins/src/base/skills/lisa-session-manager/scripts/cli-usage.mjs +1 -1
  573. package/plugins/src/base/skills/lisa-session-manager/scripts/escalation-overruled.mjs +1 -1
  574. package/plugins/src/base/skills/lisa-session-manager/scripts/human-needed.mjs +16 -5
  575. package/plugins/src/base/skills/lisa-session-manager/scripts/reconcile.mjs +76 -9
  576. package/plugins/src/base/skills/lisa-setup-automations/SKILL.md +7 -5
  577. package/plugins/src/base/skills/lisa-track/SKILL.md +3 -3
  578. package/plugins/src/base/skills/lisa-tracker-evidence/references/completion-authorization.md +27 -8
  579. package/plugins/src/base/skills/lisa-usage-accounting/SKILL.md +5 -1
  580. package/plugins/src/expo/skills/jira-evidence/SKILL.md +11 -5
  581. package/plugins/src/expo/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  582. package/plugins/src/expo/skills/jira-journey/SKILL.md +1 -1
  583. package/plugins/src/expo/skills/jira-journey/scripts/generate-templates.py +10 -5
  584. package/plugins/src/rails/skills/jira-evidence/SKILL.md +11 -5
  585. package/plugins/src/rails/skills/jira-evidence/scripts/post-evidence.sh +21 -2
  586. package/rails/copy-overwrite/scripts/check-threshold-ratchet.mjs +4 -2
  587. package/scripts/two-channel-couplings.json +1 -1
  588. package/typescript/copy-contents/.husky/pre-commit +3 -2
  589. package/typescript/copy-overwrite/.github/GITHUB_ACTIONS.md +2 -1
  590. package/typescript/copy-overwrite/.prettierignore +1 -0
  591. package/typescript/copy-overwrite/scripts/check-threshold-ratchet.mjs +4 -2
@@ -16,6 +16,15 @@
16
16
  * (`humanGate.humanOnly`). Anything else is a decision: the agent picks the
17
17
  * reasonable default, records it on the item, and files it build-ready.
18
18
  *
19
+ * Which acts count depends on `humanGate.mode` (CodySwannGT/lisa#4687). Under
20
+ * the default `access-only` mode an agent performs every act it has access to,
21
+ * so only an act it genuinely lacks access to is a gate: an interactive login
22
+ * or a credential only a person holds, spending money, opening an external
23
+ * account, a legal signature, an account only a person holds, a system the
24
+ * agent cannot reach, or a hold the operator explicitly asked for. `strict`
25
+ * also holds a compliance judgement, naming an accountable person, and Lisa's
26
+ * own policy calls. `humanGate.humanOnly` widens the gate in either mode.
27
+ *
19
28
  * Refusal is the default, deliberately. A closed vocabulary of acts can be
20
29
  * audited; an open vocabulary of "topics that feel important" is exactly the
21
30
  * reading that produced the false gates.
@@ -29,8 +38,17 @@
29
38
  * Usage:
30
39
  * node human-gate-act.mjs check --reason "<human_gate reason>" \
31
40
  * [--config .lisa.config.json] [--local .lisa.config.local.json]
32
- * Prints a JSON verdict. Exit 0 when the gate is legitimate, 1 when refused,
33
- * 2 on a usage or config error.
41
+ * node human-gate-act.mjs policy \
42
+ * [--config .lisa.config.json] [--local .lisa.config.local.json]
43
+ * `check` prints a JSON verdict carrying the `mode` it was judged under. Exit 0
44
+ * when the gate is legitimate, 1 when refused, 2 on a usage or config error.
45
+ * `policy` prints the resolved `{ mode, humanOnly }` a sweep passes to
46
+ * `planHumanGateLift` as `humanGateMode` and `humanOnly`; it exits 0.
47
+ * `humanGate.mode` is read case- and whitespace-insensitively. A value that is
48
+ * still not a mode is reported on stderr, never fatal. It resolves to the
49
+ * global file's valid mode when only the local one is wrong; with no valid
50
+ * value anywhere it fails safe, to `strict`: a typo must never quietly loosen
51
+ * the gate. Only an absent mode means `access-only`.
34
52
  * @module human-gate-act
35
53
  */
36
54
  import { readFileSync, realpathSync } from "node:fs";
@@ -38,9 +56,12 @@ import { fileURLToPath } from "node:url";
38
56
 
39
57
  import {
40
58
  DECIDE_AND_RECORD,
59
+ DEFAULT_HUMAN_GATE_MODE,
41
60
  HUMAN_GATE_ACTS,
61
+ HUMAN_GATE_MODES,
42
62
  classifyHumanGateReason,
43
63
  normalizeGateText,
64
+ normalizeHumanGateMode,
44
65
  } from "./intake-blocker-reprobe.mjs";
45
66
 
46
67
  // The classifier lives in `intake-blocker-reprobe.mjs` so the hold verdict
@@ -49,7 +70,9 @@ import {
49
70
  // and adds the writer-side CLI and config resolution.
50
71
  export {
51
72
  DECIDE_AND_RECORD,
73
+ DEFAULT_HUMAN_GATE_MODE,
52
74
  HUMAN_GATE_ACTS,
75
+ HUMAN_GATE_MODES,
53
76
  classifyHumanGateReason,
54
77
  normalizeGateText,
55
78
  };
@@ -105,6 +128,66 @@ export function resolveHumanOnly(local, global) {
105
128
  return Array.isArray(value) ? value : [];
106
129
  }
107
130
 
131
+ /**
132
+ * The effective `humanGate.mode`: a valid local declaration replaces the
133
+ * global one, the same way {@link resolveHumanOnly} does. Values are compared
134
+ * trimmed and lower-cased. An invalid local value falls back to a valid
135
+ * global one, so a typo in a personal override cannot silently hide a
136
+ * committed `strict`. When a value is present but none is valid, the mode
137
+ * fails safe, to `"strict"`; only when no value is declared at all does
138
+ * {@link DEFAULT_HUMAN_GATE_MODE} apply. The first rejected value is returned
139
+ * as `rejected` (its JSON spelling) so the caller can report it.
140
+ * @param {unknown} local - Parsed local config
141
+ * @param {unknown} global - Parsed global config
142
+ * @returns {{ mode: string, rejected?: string }} The mode in force
143
+ */
144
+ export function resolveHumanGateMode(local, global) {
145
+ const pick = config =>
146
+ config && typeof config === "object" ? config.humanGate?.mode : undefined;
147
+ // Every declaration is judged, so a typo in the committed file is reported
148
+ // even while a valid local value is in force.
149
+ const declared = [pick(local), pick(global)].filter(
150
+ value => value !== undefined
151
+ );
152
+ const valid = declared
153
+ .map(normalizeHumanGateMode)
154
+ .find(mode => HUMAN_GATE_MODES.includes(mode));
155
+ const invalid = declared.find(
156
+ value => !HUMAN_GATE_MODES.includes(normalizeHumanGateMode(value))
157
+ );
158
+ const mode =
159
+ valid ?? (invalid === undefined ? DEFAULT_HUMAN_GATE_MODE : "strict");
160
+ return invalid === undefined
161
+ ? { mode }
162
+ : { mode, rejected: JSON.stringify(invalid) };
163
+ }
164
+
165
+ /**
166
+ * The whole human-gate policy a reader passes on: the mode and the declared
167
+ * human-only classes, each resolved local-then-global.
168
+ * @param {unknown} local - Parsed local config
169
+ * @param {unknown} global - Parsed global config
170
+ * @returns {{ mode: string, humanOnly: unknown[], rejected?: string }} Policy
171
+ */
172
+ export function resolveHumanGatePolicy(local, global) {
173
+ const { mode, rejected } = resolveHumanGateMode(local, global);
174
+ return {
175
+ mode,
176
+ humanOnly: resolveHumanOnly(local, global),
177
+ ...(rejected === undefined ? {} : { rejected }),
178
+ };
179
+ }
180
+
181
+ /**
182
+ * The stderr line for an invalid `humanGate.mode`.
183
+ * @param {string} rejected - JSON spelling of the declared value
184
+ * @returns {string} One warning line
185
+ */
186
+ function invalidModeWarning(rejected) {
187
+ const accepted = HUMAN_GATE_MODES.map(value => `"${value}"`).join(" | ");
188
+ return `Invalid humanGate.mode: ${rejected} is not one of ${accepted}; ignored.\n`;
189
+ }
190
+
108
191
  /**
109
192
  * Parse `--key value` / `--key=value` flags.
110
193
  * @param {string[]} argv - Raw arguments
@@ -148,9 +231,12 @@ export function main(argv, io = {}) {
148
231
  const missing = ["reason", "config", "local"].filter(
149
232
  key => key in flags && (flags[key] === null || flags[key].trim() === "")
150
233
  );
151
- if (command !== "check" || !flags.reason || missing.length > 0) {
234
+ const usable =
235
+ command === "policy" || (command === "check" && Boolean(flags.reason));
236
+ if (!usable || missing.length > 0) {
152
237
  error(
153
- "usage: human-gate-act.mjs check --reason <text> [--config <path>] [--local <path>]\n"
238
+ "usage: human-gate-act.mjs check --reason <text> [--config <path>] [--local <path>]\n" +
239
+ " human-gate-act.mjs policy [--config <path>] [--local <path>]\n"
154
240
  );
155
241
  return 2;
156
242
  }
@@ -161,10 +247,20 @@ export function main(argv, io = {}) {
161
247
  error(`${failed.error}\n`);
162
248
  return 2;
163
249
  }
164
- const verdict = classifyHumanGateReason(flags.reason, {
165
- humanOnly: resolveHumanOnly(local.value, global.value),
166
- });
167
- write(`${JSON.stringify(verdict)}\n`);
250
+ const { rejected, ...policy } = resolveHumanGatePolicy(
251
+ local.value,
252
+ global.value
253
+ );
254
+ if (rejected !== undefined) {
255
+ error(invalidModeWarning(rejected));
256
+ error(`humanGate.mode in force: "${policy.mode}".\n`);
257
+ }
258
+ if (command === "policy") {
259
+ write(`${JSON.stringify(policy)}\n`);
260
+ return 0;
261
+ }
262
+ const verdict = classifyHumanGateReason(flags.reason, policy);
263
+ write(`${JSON.stringify({ ...verdict, mode: policy.mode })}\n`);
168
264
  return verdict.valid ? 0 : 1;
169
265
  }
170
266
 
@@ -5,15 +5,18 @@
5
5
  * stalling items, and the operator should never have to comment to release
6
6
  * one (CodySwannGT/lisa#4658, item 5). The intake and repair sweeps call
7
7
  * {@link planHumanGateLift} on every open item carrying a `[lisa-human-gate]`
8
- * hold. A hold whose reason names no act an agent cannot perform (see
9
- * `human-gate-act.mjs`) is lifted: the sweep posts a visible
8
+ * hold. A hold that is not valid under the project's `humanGate.mode` and
9
+ * `humanGate.humanOnly` (see `human-gate-act.mjs`) is lifted: the sweep posts a visible
10
10
  * `[lisa-human-gate-lifted] reason=<slug>` comment saying why, removes the
11
11
  * human-needed marker, and moves the item to the build-ready role.
12
12
  *
13
13
  * This is not a forged human release. A release records a person's answer; a
14
14
  * lift records that there was no question a person had to answer. A valid
15
- * hold — a credential, spend, a sign-off — is never lifted and still waits for
16
- * its act. A label-only hold (access blocked, a blocked verdict) has no
15
+ * hold — a credential, spend, a legal signature — is never lifted and still
16
+ * waits for its act. Pass `humanGateMode` (`humanGate.mode`) alongside
17
+ * `humanOnly`: under `"strict"` a pre-#4687 gate such as naming an accountable
18
+ * person is valid and kept; omitted, the default `access-only` mode lifts it
19
+ * (CodySwannGT/lisa#4687). A label-only hold (access blocked, a blocked verdict) has no
17
20
  * declared reason to judge and is never lifted either.
18
21
  * @module human-gate-lift
19
22
  */
@@ -42,8 +45,9 @@ export function formatHumanGateLift(lift = {}) {
42
45
  return [
43
46
  declaration,
44
47
  `Hold lifted: ${named} is a decision an agent can make, not an act only a ` +
45
- "person can perform (a credential, spend, an external account, a legal " +
46
- "sign-off, or a system the agent cannot reach), so this item is back in " +
48
+ "person can perform (a login or credential, spend, an external account, " +
49
+ "a legal signature, an account only a person holds, or a system the " +
50
+ "agent cannot reach), so this item is back in " +
47
51
  "the build queue and whoever builds it decides and records the call; " +
48
52
  "the description is unchanged.",
49
53
  ].join("\n");
@@ -64,6 +68,7 @@ export function formatHumanGateLift(lift = {}) {
64
68
  * trustedHumanActorIds?: unknown
65
69
  * humanNeededLabel?: unknown
66
70
  * humanOnly?: unknown
71
+ * humanGateMode?: unknown
67
72
  * readyLabel?: unknown
68
73
  * lifecycleLabels?: unknown
69
74
  * }} input - Candidate surfaces plus lane vocabulary and project policy
@@ -75,7 +80,9 @@ export function planHumanGateLift(input = {}) {
75
80
  addReadyLabel: null,
76
81
  });
77
82
  const verdict = humanGateVerdict(input);
78
- const liftable = new Set(invalidHumanGateHolds(input.body, input.humanOnly));
83
+ const liftable = new Set(
84
+ invalidHumanGateHolds(input.body, input.humanOnly, input.humanGateMode)
85
+ );
79
86
  const toLift = verdict.outstanding.filter(reason => liftable.has(reason));
80
87
  const kept = verdict.outstanding.filter(reason => !toLift.includes(reason));
81
88
  const comments = toLift.map(reason => formatHumanGateLift({ reason }));
@@ -278,30 +278,100 @@ export function humanGateHolds(body) {
278
278
 
279
279
  /**
280
280
  * What a `human_gate` must name: an ACT an agent cannot perform
281
- * (CodySwannGT/lisa#4658). A reason is legitimate only when it names one of
282
- * the acts below, or a decision class the project declared human-only
283
- * (`humanGate.humanOnly`). Anything else is a decision the agent makes and
284
- * records. The writer-side CLI is `human-gate-act.mjs`; the sweep is
285
- * `human-gate-lift.mjs`. It lives here so the hold verdict can judge a lift
286
- * without a new dependency edge (the npm updater pins this file's dependency graph).
281
+ * (CodySwannGT/lisa#4658). An agent performs every act it has access to
282
+ * perform (CodySwannGT/lisa#4687), so a reason is legitimate only when it
283
+ * names one of the access acts below, or a decision class the project
284
+ * declared human-only (`humanGate.humanOnly`). Anything else is a decision the
285
+ * agent makes and records. The writer-side CLI is `human-gate-act.mjs`; the
286
+ * sweep is `human-gate-lift.mjs`. It lives here so the hold verdict can judge
287
+ * a lift without a new dependency edge (the npm updater pins this file's
288
+ * dependency graph).
287
289
  */
288
290
 
289
291
  /**
290
- * The acts an agent cannot perform. Each `label` is phrased so it completes
292
+ * The closed vocabulary of `humanGate.mode` (CodySwannGT/lisa#4687).
293
+ *
294
+ * `access-only` (the default): a person is needed only for an act the agent
295
+ * genuinely lacks access to. `strict`: the pre-#4687 gates come back, so a
296
+ * compliance judgement, naming an accountable person and Lisa's own policy
297
+ * calls (learnings promotion, harness interventions, automation retirement,
298
+ * exploratory-QA significance, operator prioritization) are held again. The
299
+ * TypeScript config reader keeps the same vocabulary in
300
+ * `src/core/project-config-human-gate.ts`; a test pins the two together.
301
+ */
302
+ export const HUMAN_GATE_MODES = Object.freeze(["access-only", "strict"]);
303
+
304
+ /** The mode in force when `humanGate.mode` is absent or invalid. */
305
+ export const DEFAULT_HUMAN_GATE_MODE = "access-only";
306
+
307
+ /**
308
+ * The comparable form of a `humanGate.mode` value: trimmed and lower-cased, so
309
+ * a project that typed `"Strict"` gets strict rather than a silent downgrade
310
+ * (CodySwannGT/lisa#4687 review). A non-string is returned unchanged and so
311
+ * never matches a mode.
312
+ * @param {unknown} mode - A raw `humanGate.mode` value
313
+ * @returns {unknown} The normalized value
314
+ */
315
+ export function normalizeHumanGateMode(mode) {
316
+ return typeof mode === "string" ? mode.trim().toLowerCase() : mode;
317
+ }
318
+
319
+ /**
320
+ * Whether a mode value selects the strict gate, after normalization.
321
+ *
322
+ * Fails safe: only an ABSENT mode (undefined or null) or one that normalizes
323
+ * to `"access-only"` is the default. A mode that is present but invalid — a
324
+ * typo such as `"strcit"` — reads as strict, because a typo must never quietly
325
+ * loosen the gate; the readers report it so the project can fix it.
326
+ * @param {unknown} mode - A `humanGate.mode` value
327
+ * @returns {boolean} True unless the mode is absent or `"access-only"`
328
+ */
329
+ export function isStrictHumanGateMode(mode) {
330
+ if (mode === undefined || mode === null) return false;
331
+ return normalizeHumanGateMode(mode) !== "access-only";
332
+ }
333
+
334
+ /**
335
+ * The acts a person must perform. Each `label` is phrased so it completes
291
336
  * "Held for a person to …", which is how the writers render the visible line.
292
337
  *
338
+ * An entry with `strictOnly: true` is a human gate only under
339
+ * `humanGate.mode: "strict"`; under the default `access-only` mode it is a
340
+ * decision the agent makes and records. Every other entry is an act the agent
341
+ * genuinely lacks access to: a login or credential only a person holds,
342
+ * spending money, opening an account in a person's or the company's name, a
343
+ * legal signature, an account only a person holds, a system the agent cannot
344
+ * reach, and a hold the operator explicitly asked for. One more entry is valid
345
+ * in both modes without being an access gate: a change to a surface the
346
+ * project declared human-authored, which the authorship rule keeps free of
347
+ * automated writes.
348
+ *
293
349
  * The patterns run over a normalized reason (lower case, hyphens and
294
350
  * underscores read as spaces) so a slug and its prose spelling match alike.
295
351
  * They are intentionally narrow: a word that is also an everyday topic
296
352
  * ("token", "login", "billing page") is left out, because a pattern that
297
- * matches a topic re-opens the gate this module closes.
353
+ * matches a topic re-opens the gate this module closes. Order matters: the
354
+ * first match wins, so the access acts come before the strict-only ones and a
355
+ * BAA reads as a legal signature, not as a compliance judgement.
298
356
  */
299
357
  export const HUMAN_GATE_ACTS = Object.freeze([
300
358
  Object.freeze({
301
359
  act: "credential",
302
- label: "supply a credential only a person holds",
360
+ label: "complete a login or supply a credential only a person holds",
361
+ // A secret is never a topic: this entry is exempt from the topic veto.
362
+ secret: true,
363
+ pattern:
364
+ /\b(credentials?|secrets?|passwords?|passphrases?|api keys?|access keys?|private keys?|deploy keys?|ssh keys?|signing keys?|auth tokens?|2fa|mfa|otp|one time codes?)\b/u,
365
+ }),
366
+ Object.freeze({
367
+ act: "credential",
368
+ label: "complete a login or supply a credential only a person holds",
369
+ // A login provider IS a topic as often as an act ("sso-provider-choice",
370
+ // "sso login button design"), so these words get the topic veto in prose
371
+ // as well as in a slug: a topic word with no act verb beside it refuses.
372
+ proseVeto: true,
303
373
  pattern:
304
- /\b(credentials?|secrets?|passwords?|passphrases?|api keys?|access keys?|private keys?|deploy keys?|ssh keys?|signing keys?|auth tokens?|oauth|2fa|mfa|otp|one time codes?)\b/u,
374
+ /\b(oauth|sso|single sign on|interactive ([a-z]+ ){0,4}(login|log in|sign in)|console (login|log in|sign in)|(log|sign)(ging)? in(to)?( to)?( the)?( [a-z]+){0,4} (console|portal|app store connect)|app store connect (login|log in|sign in))\b/u,
305
375
  }),
306
376
  Object.freeze({
307
377
  act: "spend",
@@ -317,15 +387,30 @@ export const HUMAN_GATE_ACTS = Object.freeze([
317
387
  }),
318
388
  Object.freeze({
319
389
  act: "legal-signoff",
320
- label: "give a legal or compliance sign-off",
390
+ // A legal SIGNATURE only: a contract, BAA, DPA or license accepted on the
391
+ // company's behalf. A compliance judgement is not a signature; it is the
392
+ // strict-only `compliance-signoff` below (CodySwannGT/lisa#4687).
393
+ label: "sign a legal agreement on the company's behalf",
321
394
  pattern:
322
- /\b(baa|business associate agreement|sign (a|an|the) [a-z ]{0,30}(agreement|contract|baa|dpa)|legal|lawyer|counsel|compliance|regulatory|hipaa|gdpr|soc ?2|contracts?|terms of service|licen[cs]e agreements?|protected (deploy|deployment|environment)s?)\b/u,
395
+ /\b(baa|business associate agreement|dpa|data processing (agreement|addendum)|master services agreement|non disclosure agreement|(sign|signs|signed|signing|countersign\w*|execute\w*) ((a|an|the|our|this) )?([a-z]+ ){0,4}(agreement|contract|baa|dpa|nda|msa|license|licence|terms)|accept\w* ((a|an|the|our|this) )?([a-z]+ ){0,4}(licen[cs]e|terms|agreement)|legal signature|contract signature|licen[cs]e acceptance|(sign|accept|agree|execut|countersign)\w*( [a-z]+){0,6} on behalf of the company)\b/u,
323
396
  }),
324
397
  Object.freeze({
325
- act: "accountable-person",
326
- label: "name an accountable person",
398
+ act: "person-only-account",
399
+ label: "act from an account only a person holds",
400
+ // A protected-deployment required reviewer or a ruleset approval that must
401
+ // come from a person: the agent has no such account, so it cannot act.
327
402
  pattern:
328
- /\b(accountable (person|owner|party)|name (an|the) (owner|approver|accountable)|(owner|approver) who answers|answers for)\b/u,
403
+ /\b((approv\w*|sign\w* off on|act as) (the |a |this )?([a-z]+ ){0,3}(deploy|deployment|release|environment)s?|(deploy|deployment|release|production) approvals?|required reviewers? (must |to |should |has to )?(approv\w*|sign\w* off)|ruleset approvals?|accounts? only (a|the) (person|human|founder|owner|operator) (holds|has)|person only accounts?)\b/u,
404
+ }),
405
+ Object.freeze({
406
+ act: "person-only-account",
407
+ label: "act from an account only a person holds",
408
+ // A bare protected deployment or environment, valid before #4687: its
409
+ // approval comes from a required reviewer, a person. As often a topic
410
+ // ("protected-environment-cdk-setup"), so a topic word with no act verb
411
+ // refuses it, in prose as well as in a slug (history review C).
412
+ proseVeto: true,
413
+ pattern: /\bprotected (deploy|deployment|environment)s?\b/u,
329
414
  }),
330
415
  Object.freeze({
331
416
  act: "unreachable-system",
@@ -333,15 +418,60 @@ export const HUMAN_GATE_ACTS = Object.freeze([
333
418
  pattern:
334
419
  /\b(admin (rights|access|permissions?|role)|grant admin|physically|invite ([a-z]+ ){0,4}to (the |a |our )?([a-z]+ )?(workspace|org|organization|team|repo|repository|project)|add (the |a |our )?(bot|app|agent|integration) to|workspace admin|physical|hardware|on site|in person|unreachable|cannot reach|can ?not reach|cant reach|no access|outside (the )?agent|grant(s|ed|ing)? ([a-z]+ ){0,3}(access|permissions?|roles?)|give (the )?agent ([a-z]+ ){0,3}access|access (the )?agent (lacks|does not have|doesnt have|cannot get)|agent (lacks|does not have|doesnt have) ([a-z]+ ){0,4}access|tool access|missing access|access grant|provision(ing)? access|phone call)\b/u,
335
420
  }),
421
+ Object.freeze({
422
+ act: "operator-hold",
423
+ label: "release a hold the operator explicitly asked for",
424
+ // The operator's own hold: an existing behaviour, valid in every mode.
425
+ // It must name a HOLD: "the customer explicitly asked for dark mode" is
426
+ // a request to build something, not a request to stop (review finding).
427
+ pattern:
428
+ /\b(operator( [a-z]+){0,10} (hold|held|paused?|parked?)|(hold|held|paused?|parked?)( [a-z]+){0,4} (by|for) (the )?operator|(hold|held)( [a-z]+){0,4} (the )?operator (explicitly )?(asked|requested)|explicitly (held|paused|parked)|(asked|requested) by (the )?operator|explicitly (asked|requested) for by (the )?operator)\b/u,
429
+ }),
430
+ Object.freeze({
431
+ act: "operator-hold",
432
+ label: "release a hold the operator explicitly asked for",
433
+ // The legacy slug form (`operator-requested-wait`), valid before #4687.
434
+ // Slug only: in prose "the operator requested a dark mode toggle" names
435
+ // a feature to build, not a hold (history review).
436
+ slugOnly: true,
437
+ pattern: /\boperator requested\b/u,
438
+ }),
439
+ Object.freeze({
440
+ act: "human-authored-surface",
441
+ // Not missing access: the authorship rule. A surface declared
442
+ // human-authored (a host's `.agents/rules/`, `PROJECT_RULES.md`,
443
+ // `AGENTS.md`) receives no automated writes in either mode, so a change
444
+ // to one waits on the person who authors it (CodySwannGT/lisa#4687).
445
+ // Plain words for a non-technical operator; the reason is the authorship
446
+ // rule, not missing access.
447
+ label: "edit a file the project says only people write",
448
+ pattern:
449
+ /\b(declared human authored|human authored (surfaces?|files?|rules?)|project rules( md)?|agents md|agents rules|claude rules)\b/u,
450
+ }),
451
+ Object.freeze({
452
+ act: "compliance-signoff",
453
+ label: "give a compliance sign-off",
454
+ strictOnly: true,
455
+ pattern:
456
+ /\b(legal|lawyer|counsel|compliance|regulatory|hipaa|gdpr|soc ?2|contracts?|terms of service|licen[cs]e agreements?)\b/u,
457
+ }),
458
+ Object.freeze({
459
+ act: "accountable-person",
460
+ label: "name an accountable person",
461
+ strictOnly: true,
462
+ pattern:
463
+ /\b(accountable (person|owner|party)|name (an|the) (owner|approver|accountable)|(owner|approver) who answers|answers for)\b/u,
464
+ }),
336
465
  Object.freeze({
337
466
  act: "lisa-policy",
338
467
  label: "make a call Lisa's own policy reserves for a person",
339
- // Lisa's own human-only gates: exploratory-QA findings (the named exception
340
- // in `ready-role-filing`), learnings promotion/demotion, harness
341
- // interventions, automation retirement, and a hold the operator explicitly
342
- // asked for. Each is a gate the factory model places outside the factory.
468
+ strictOnly: true,
469
+ // Lisa's pre-#4687 human-only calls: exploratory-QA findings, learnings
470
+ // promotion/demotion, harness interventions, automation retirement and
471
+ // operator prioritization. Under `access-only` the agent makes each one
472
+ // and records why; the operator's explicit hold is `operator-hold` above.
343
473
  pattern:
344
- /\b(exploratory (finding|qa)|harness intervention|(promot|demot|retir)\w*\b.{0,80}?\b(knowledge|learnings?)|(knowledge|learnings?)\b.{0,80}?\b(promot|demot|retir)\w*|automation retirement|retire (an |the )?automations?|operator (prioriti[sz]ation|requested)|operator (explicitly )?(asked|requested)|explicitly asked for|requested by (the )?operator)\b/u,
474
+ /\b(exploratory (finding|qa)|harness intervention|(promot|demot|retir)\w*\b.{0,80}?\b(knowledge|learnings?)|(knowledge|learnings?)\b.{0,80}?\b(promot|demot|retir)\w*|automation retirement|retire (an |the )?([a-z]+ )?automations?|operator prioriti[sz]ation)\b/u,
345
475
  }),
346
476
  ]);
347
477
 
@@ -349,21 +479,25 @@ export const HUMAN_GATE_ACTS = Object.freeze([
349
479
  * Acts whose keyword alone could be a topic. A slug such as
350
480
  * `compliance-dashboard-triage` or `oauth-provider-choice` carries an act
351
481
  * keyword but names a decision about a topic, so for these acts a topic word
352
- * with no act verb beside it is refused. Lisa's own policy gates and
353
- * project-declared classes are exempt: they are already named decisions.
482
+ * with no act verb beside it is refused. Lisa's own policy gates, the
483
+ * operator's hold and project-declared classes are exempt: they are already
484
+ * named decisions.
354
485
  */
355
486
  const KEYWORD_ACTS = new Set([
356
487
  "credential",
357
488
  "spend",
358
489
  "external-account",
359
490
  "legal-signoff",
491
+ "person-only-account",
492
+ "human-authored-surface",
493
+ "compliance-signoff",
360
494
  "accountable-person",
361
495
  "unreachable-system",
362
496
  ]);
363
497
 
364
498
  /** Words that mark a reason as being about a topic, not an act. */
365
499
  const TOPIC_WORDS =
366
- /\b(triage|dispatch|naming|rename|choice|choose|design|copy|colou?r|layout|wording|migration|refactor|classification|classify|cleanup|dashboard|page|button|ui|ux|docs?|documentation|schema|decision|selection|split|labels?|error message|policy|strategy|approach|format|field|template|structure|flag|adoption|list|pagination|conversion|settings|framework|pick|banner|placement|table|flow|storage|rotation|scope|folder|report|logging|tests?)\b/u;
500
+ /\b(triage|dispatch|naming|rename|choice|choose|design|copy|colou?r|layout|wording|migration|refactor|classification|classify|cleanup|dashboard|page|button|ui|ux|docs?|documentation|schema|decision|selection|split|labels?|error message|policy|strategy|approach|format|field|template|structure|flag|adoption|list|pagination|conversion|settings|framework|pick|banner|placement|table|flow|storage|rotation|scope|folder|report|logging|tests?|setup|stack|config|configuration|infra|infrastructure)\b/u;
367
501
 
368
502
  /** Verbs that say what a person must actually do. */
369
503
  const ACT_VERBS =
@@ -404,8 +538,10 @@ function normalizeClasses(classes) {
404
538
  /**
405
539
  * Classify a `human_gate` reason.
406
540
  * @param {unknown} reason - The reason (slug or prose) a filing gives
407
- * @param {{ humanOnly?: unknown }} [options] - `humanOnly`: project-declared
408
- * human-only decision classes (`humanGate.humanOnly`)
541
+ * @param {{ humanOnly?: unknown, mode?: unknown }} [options] - `humanOnly`:
542
+ * project-declared human-only decision classes (`humanGate.humanOnly`),
543
+ * which widen the gate in either mode; `mode`: `humanGate.mode`, where only
544
+ * `"strict"` admits the strict-only acts
409
545
  * @returns {{ valid: boolean, act: string | null, label: string | null, matched: string | null, remedy: string | null }} Verdict
410
546
  */
411
547
  export function classifyHumanGateReason(reason, options = {}) {
@@ -418,11 +554,18 @@ export function classifyHumanGateReason(reason, options = {}) {
418
554
  // hold rather than lifting one.
419
555
  const slug = !/\s/u.test(String(reason ?? "").trim());
420
556
  const topicOnly = slug && TOPIC_WORDS.test(text) && !ACT_VERBS.test(text);
557
+ const strict = isStrictHumanGateMode(options.mode);
421
558
  for (const entry of HUMAN_GATE_ACTS) {
559
+ if (entry.strictOnly && !strict) continue;
560
+ if (entry.slugOnly && !slug) continue;
422
561
  const match = entry.pattern.exec(text);
423
- // A secret is never a topic: a credential match always wins.
424
- const vetoed =
425
- topicOnly && entry.act !== "credential" && KEYWORD_ACTS.has(entry.act);
562
+ // A secret is never a topic: the secret entry always wins. A login
563
+ // word is a topic unless an act verb says otherwise, in prose too.
564
+ const vetoed = entry.secret
565
+ ? false
566
+ : entry.proseVeto
567
+ ? TOPIC_WORDS.test(text) && !ACT_VERBS.test(text)
568
+ : topicOnly && KEYWORD_ACTS.has(entry.act);
426
569
  if (match && !vetoed) {
427
570
  return {
428
571
  valid: true,
@@ -486,7 +629,20 @@ const HOLD_TEXT_CAP = 2000;
486
629
  * deliberately broader than the act patterns.
487
630
  */
488
631
  const HOLD_SAFETY_TOKENS =
489
- /\b(credentials?|passwords?|passphrases?|passcodes?|mfa|2fa|otp|one time codes?|api keys?|keys?|tokens?|secrets?|oauth|sign|signs|signed|signing|signatures?|signoff|sign off|baa|contracts?|agreements?|admin|administrator|access|accounts?|spend\w*|budgets?|payments?|pay|paid|money|purchase|buy|billing|invoice|legal|lawyer|counsel|compliance|regulatory|hipaa|gdpr|soc ?2|physical|hardware|device)\b/u;
632
+ /\b(operator|project rules|agents md|agents rules|claude rules|human authored|credentials?|passwords?|passphrases?|passcodes?|mfa|2fa|otp|one time codes?|api keys?|keys?|tokens?|secrets?|oauth|sign|signs|signed|signing|signatures?|signoff|sign off|baa|contracts?|agreements?|admin|administrator|access|accounts?|spend\w*|budgets?|payments?|pay|paid|money|purchase|buy|billing|invoice|legal|lawyer|counsel|compliance|regulatory|hipaa|gdpr|soc ?2|physical|hardware|device)\b/u;
633
+
634
+ /**
635
+ * A human-authored destination named anywhere in an item's body, spelled as a
636
+ * path. The authorship rule keeps these surfaces free of automated writes in
637
+ * both modes, so an item that targets one keeps every hold, however its hold
638
+ * is worded: a gardener hold filed under the old "a human decides whether
639
+ * this knowledge is promoted" wording names the policy, not the file, and was
640
+ * lifted under access-only while its body pointed at `PROJECT_RULES.md`
641
+ * (CodySwannGT/lisa#4687 review). Matched on the raw body, so it is linear and
642
+ * reads the whole item rather than the lines beside the marker.
643
+ */
644
+ const HUMAN_AUTHORED_PATH =
645
+ /(?:^|[^a-z0-9_-])(?:project_rules\.md|agents\.md|\.agents\/rules\b|\.claude\/rules\b)/iu;
490
646
 
491
647
  /**
492
648
  * Every line of a body that belongs to a hold: each declaring marker line and
@@ -542,19 +698,29 @@ function holdRelatedLines(body) {
542
698
  * the intended trade.
543
699
  * @param {unknown} body - The item body
544
700
  * @param {unknown} humanOnly - Project-declared human-only decision classes
701
+ * @param {unknown} [mode] - `humanGate.mode`; under `"strict"` a strict-only
702
+ * act (a compliance sign-off, an accountable person, a Lisa policy call)
703
+ * is a valid hold and is never lifted. Omitted, the default `access-only`
704
+ * mode applies, so a reader in a strict project must pass it.
545
705
  * @returns {string[]} Reason keys whose hold may be lifted
546
706
  */
547
- export function invalidHumanGateHolds(body, humanOnly) {
707
+ export function invalidHumanGateHolds(body, humanOnly, mode) {
548
708
  const holds = humanGateHolds(body);
549
709
  if (holds.length === 0) return [];
550
710
  const lines = holdRelatedLines(body);
551
711
  const anyLineValid = lines.some(
552
- line => classifyHumanGateReason(line, { humanOnly }).valid
712
+ line => classifyHumanGateReason(line, { humanOnly, mode }).valid
553
713
  );
554
714
  const everything = normalizeGateText([...holds, ...lines].join(" "));
555
- if (anyLineValid || HOLD_SAFETY_TOKENS.test(everything)) return [];
715
+ if (
716
+ anyLineValid ||
717
+ HOLD_SAFETY_TOKENS.test(everything) ||
718
+ HUMAN_AUTHORED_PATH.test(String(body ?? ""))
719
+ ) {
720
+ return [];
721
+ }
556
722
  return holds.filter(
557
- reason => !classifyHumanGateReason(reason, { humanOnly }).valid
723
+ reason => !classifyHumanGateReason(reason, { humanOnly, mode }).valid
558
724
  );
559
725
  }
560
726
 
@@ -563,10 +729,11 @@ export function invalidHumanGateHolds(body, humanOnly) {
563
729
  * @param {unknown} comments - Comments, structured or raw, any author
564
730
  * @param {unknown} body - The item body
565
731
  * @param {unknown} humanOnly - Project-declared human-only decision classes
732
+ * @param {unknown} [mode] - `humanGate.mode` (see {@link invalidHumanGateHolds})
566
733
  * @returns {string[]} Reason keys lifted
567
734
  */
568
- export function humanGateLifts(comments, body, humanOnly) {
569
- const invalid = new Set(invalidHumanGateHolds(body, humanOnly));
735
+ export function humanGateLifts(comments, body, humanOnly, mode) {
736
+ const invalid = new Set(invalidHumanGateHolds(body, humanOnly, mode));
570
737
  const named = (Array.isArray(comments) ? comments : [])
571
738
  .map(entry => (typeof entry === "string" ? entry : (entry?.body ?? "")))
572
739
  .flatMap(text =>
@@ -700,7 +867,7 @@ export function humanGateDischarged(input = {}) {
700
867
  * no releases, so a held item stays held. Holding a gate that may be stale
701
868
  * beats releasing one that is not, and every caller that never passes comments
702
869
  * keeps its current behaviour by construction.
703
- * @param {{ labels?: unknown, body?: unknown, comments?: unknown, trustedHumanActorIds?: unknown, humanNeededLabel?: unknown, humanOnly?: unknown }} input - Candidate surfaces
870
+ * @param {{ labels?: unknown, body?: unknown, comments?: unknown, trustedHumanActorIds?: unknown, humanNeededLabel?: unknown, humanOnly?: unknown, humanGateMode?: unknown }} input - Candidate surfaces
704
871
  * @returns {{ held: boolean, reason: string, declared: number, outstanding: string[], released: string[], lifted: string[], labelPresent: boolean }} Held-ness verdict
705
872
  */
706
873
  export function humanGateVerdict(input = {}) {
@@ -720,7 +887,12 @@ export function humanGateVerdict(input = {}) {
720
887
  // A lift discharges only a declared body hold that is still invalid; it can
721
888
  // never discharge a label-only hold (access blocks, blocked verdicts), which
722
889
  // is why it is applied here and not in the label-only branch below.
723
- const lifted = humanGateLifts(input.comments, input.body, input.humanOnly);
890
+ const lifted = humanGateLifts(
891
+ input.comments,
892
+ input.body,
893
+ input.humanOnly,
894
+ input.humanGateMode
895
+ );
724
896
  const liftedSet = new Set(lifted);
725
897
  const outstanding = holds.filter(
726
898
  reason => !releasedSet.has(reason) && !liftedSet.has(reason)
@@ -764,7 +936,7 @@ export function humanGateVerdict(input = {}) {
764
936
  * its discharge is how the gate became one-way in the first place. Pass the
765
937
  * item's structured comments and trustedHumanActorIds to honor an authorized
766
938
  * release; omit either and the item stays held.
767
- * @param {{ labels?: unknown, body?: unknown, comments?: unknown, trustedHumanActorIds?: unknown, humanNeededLabel?: unknown, humanOnly?: unknown }} input - Candidate surfaces
939
+ * @param {{ labels?: unknown, body?: unknown, comments?: unknown, trustedHumanActorIds?: unknown, humanNeededLabel?: unknown, humanOnly?: unknown, humanGateMode?: unknown }} input - Candidate surfaces
768
940
  * @returns {boolean} True when a person is holding this item
769
941
  */
770
942
  export function isHumanGated(input) {
@@ -818,6 +990,7 @@ function judgeProbe(probe) {
818
990
  * trustedHumanActorIds?: unknown
819
991
  * humanNeededLabel?: unknown
820
992
  * humanOnly?: unknown
993
+ * humanGateMode?: unknown
821
994
  * statedBlocker?: unknown
822
995
  * probe?: { discharged?: unknown, evidence?: unknown } | null
823
996
  * }} input
@@ -929,7 +1102,7 @@ export const HUMAN_GATE_NOTE_MARKER = "<!-- [lisa-human-gate-reconciled] -->";
929
1102
  * a parser keyed on the structured field would miss those while appearing to
930
1103
  * work on every item that happens to have one — reproducing this defect one
931
1104
  * layer down.
932
- * @param {{ labels?: unknown, body?: unknown, comments?: unknown, trustedHumanActorIds?: unknown, humanNeededLabel?: unknown, humanOnly?: unknown }} input - Candidate surfaces
1105
+ * @param {{ labels?: unknown, body?: unknown, comments?: unknown, trustedHumanActorIds?: unknown, humanNeededLabel?: unknown, humanOnly?: unknown, humanGateMode?: unknown }} input - Candidate surfaces
933
1106
  * @returns {{ claimable: boolean, reason: string, humanGated: boolean }} Claim verdict
934
1107
  */
935
1108
  export function classifyReadyCandidate(input = {}) {
@@ -961,6 +1134,7 @@ export function classifyReadyCandidate(input = {}) {
961
1134
  * trustedHumanActorIds?: unknown
962
1135
  * humanNeededLabel?: unknown
963
1136
  * humanOnly?: unknown
1137
+ * humanGateMode?: unknown
964
1138
  * readyLabel?: unknown
965
1139
  * alreadyNotified?: unknown
966
1140
  * }} input - Candidate surfaces plus the configured lane and marker labels
@@ -1069,6 +1243,7 @@ const RESUME_INSTRUCTION = [
1069
1243
  * trustedHumanActorIds?: unknown
1070
1244
  * humanNeededLabel?: unknown
1071
1245
  * humanOnly?: unknown
1246
+ * humanGateMode?: unknown
1072
1247
  * readyLabel?: unknown
1073
1248
  * lifecycleLabels?: unknown
1074
1249
  * alreadyNotified?: unknown
@@ -1232,6 +1407,7 @@ export const NORMALIZATION_HOLD_NOTE_MARKER =
1232
1407
  * trustedHumanActorIds?: unknown
1233
1408
  * humanNeededLabel?: unknown
1234
1409
  * humanOnly?: unknown
1410
+ * humanGateMode?: unknown
1235
1411
  * lifecycleLabels?: unknown
1236
1412
  * readyLabel?: unknown
1237
1413
  * }} input - Candidate surfaces plus the configured lifecycle vocabulary