@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
@@ -277,11 +277,12 @@ fi
277
277
  | `source` | no | — | Default PRD source for batch skills (`/lisa:intake`) and arg-less single-PRD skills. One of `"notion"`, `"confluence"`, `"linear"`, `"github"`, `"jira"`. Explicit URLs/keys passed to a skill always win over `source`; this is a default, not a lock. |
278
278
  | ~~`projectRulesFile`~~ | — | — | **Retired.** Host-authored rules now live in the fixed, agent-neutral directory `.agents/rules/` — not a configurable file. An existing key is still parsed and preserved so installed projects keep applying, but nothing serves rules from it. See **Host rules** below. |
279
279
  | `learnings.file` | no | `.lisa/PROJECT_LEARNINGS.md` | Safe repo-relative Markdown path for the machine-managed learnings ledger, overriding the `.lisa/` default. Rejected if it resolves inside any auto-loaded rules tree (`.claude/rules`, `.cursor/rules`, `.github/instructions`, `.agents/rules`) — the ledger must stay out of eager context. |
280
- | `learnings.lowConfidence` | no | `human-triage` | How `lisa-persist-learning` submits a low-confidence learning PR. `human-triage` keeps auto-merge off and labels it `learning:needs-triage` for a human to merge or close. `auto-merge` submits it like a high-confidence PR, merging through the project's normal gates, labeled `learning:low-confidence`; `lisa-learnings-audit` then re-reviews those entries first. Any other value is rejected. |
280
+ | `learnings.lowConfidence` | no | `auto-merge` (`human-triage` when `humanGate.mode` is `"strict"`) | How `lisa-persist-learning` submits a low-confidence learning PR. `human-triage` keeps auto-merge off and labels it `learning:needs-triage` for a human to merge or close. `auto-merge` submits it like a high-confidence PR, merging through the project's normal gates, labeled `learning:low-confidence`; `lisa-learnings-audit` then re-reviews those entries first. Any other value is rejected by `lisa apply`; the session's `lisa-resolved-config` block reports it as invalid and treats it as `human-triage`, the stricter option. |
281
281
  | `health.schedule` | no | `off` | Health cadence contract: `off`, `daily`, or `weekly`. `lisa sync` populates the default with `_lisaSync.populated` provenance and rejects values outside this closed vocabulary. Runtime results live only at the gitignored `.lisa/health/latest.json`, never in either config file. |
282
282
  | `usage` | no | — | Optional token/cost pricing metadata consumed by the `usage-accounting` rule. Missing pricing never blocks a lifecycle flow; Lisa records token counts with `estimated_cost: null` when no trustworthy price source is configured. |
283
- | `dependencies.humanSignOff` | no | `"default"` | Whether dependency decisions wait on a person. `"default"` keeps every ratification requirement in `dependency-trust-classes`; `"none"` drops all of them — the trust class and its per-class evidence are still required, and credential, paid-account, and license approvals are unaffected. Any other value is reported as invalid (in `lisa apply` output and the session's `lisa-resolved-config` block) and treated as `"default"`. |
284
- | `humanGate.humanOnly` | no | `[]` | Decision classes this project reserves for a person, such as `["pricing"]`. A `human_gate` reason naming one (as a whole word) is accepted by the writers and never lifted by the sweeps. Absent, only acts an agent cannot perform qualify as a human gate. `.lisa.config.local.json` replaces the list when it sets one. Read by `scripts/human-gate-act.mjs`; see `ready-role-filing`, "What a human gate is". |
283
+ | `dependencies.humanSignOff` | no | `"none"` (`"default"` when `humanGate.mode` is `"strict"`) | Whether dependency decisions wait on a person. `"default"` keeps every ratification requirement in `dependency-trust-classes`; `"none"` has the agent ratify instead and record its reasoning in the dependency's entry — the trust class and its per-class evidence are still required, and credential, paid-account, and license approvals are unaffected. Any other value is reported as invalid (in `lisa apply` output and the session's `lisa-resolved-config` block) and treated as `"default"`, the stricter option. |
284
+ | `humanGate.mode` | no | `"access-only"` | How wide the human gate is. `"access-only"`: an agent performs every act it has access to perform, and only an act it lacks access to (an interactive login, a credential it cannot create or reach, spending money, a legal signature, an action only a person's account can take, or a hold the operator asked for) is a human gate. `"strict"` restores the older, wider gate: a compliance sign-off, naming an accountable person, and the calls Lisa's policy used to reserve for a person (learnings promotion, harness interventions, automation retirement, exploratory-QA findings) count as human gates again, and the defaults of `dependencies.humanSignOff` and `learnings.lowConfidence` become `"default"` and `"human-triage"`. A value either key sets explicitly always wins over the mode. A value that is present but invalid fails safe: it is reported and treated as the stricter option (an invalid local value first falls back to a valid value in `.lisa.config.json`); an absent value gets the mode's default. An invalid `humanGate.mode` is therefore treated as `"strict"`. Read by `scripts/human-gate-act.mjs`; see `ready-role-filing`, "What a human gate is". |
285
+ | `humanGate.humanOnly` | no | `[]` | Decision classes this project reserves for a person, such as `["pricing"]`, in either mode. A `human_gate` reason naming one (as a whole word) is accepted by the writers and never lifted by the sweeps. Absent, only the acts `humanGate.mode` names qualify as a human gate. `.lisa.config.local.json` replaces the list when it sets one. Read by `scripts/human-gate-act.mjs`; see `ready-role-filing`, "What a human gate is". |
285
286
  | `wiki` | no | — | Wiki location for the `wiki-knowledge-source` rule. Omit for a local in-repo wiki (`wiki/`). See **Wiki source** below. |
286
287
  | `sessionManager` | no | — (opt-in) | Local session manager: polls the Ready queue, runs each item in a fresh background Claude Code session, and relays questions over a per-project Telegram bot when one is configured (optional). Absent means the manager is not used; `lisa sync` never populates it. Written by `/lisa:setup:session-manager`. See **Session manager (`sessionManager`)** below. |
287
288
 
@@ -594,7 +595,7 @@ A **marker** is an additive label applied *alongside* a lifecycle role, not a st
594
595
 
595
596
  | Marker | What it means | JIRA default | GitHub/Linear default |
596
597
  |---|---|---|---|
597
- | `human_needed` | Applied with `blocked` when — **after the agent has drafted every authorable missing section via the `pre-flight-autofill` procedure** — the block still requires a human to confirm the drafted assumptions or supply something no agent can invent: real missing credentials, access/permissions, or an irreducible product/scoping decision. | `Human Needed` (label) | `human-needed` (label) |
598
+ | `human_needed` | Applied with `blocked` when — **after the agent has drafted every authorable missing section via the `pre-flight-autofill` procedure** — the block still needs an act the agent lacks access to (a credential it cannot reach, an interactive login, an access grant, spending money, a legal signature, an action only a person's account can take) or a hold the operator explicitly asked for. A product or scoping choice is not one: the agent decides it and records the decision. Under `humanGate.mode: "strict"` an irreducible product/scoping decision also qualifies. | `Human Needed` (label) | `human-needed` (label) |
598
599
  | `spec_defect` | Applied with `blocked` when the thing holding the item is the item's **own specification** — an acceptance criterion that cannot be satisfied as written, a field naming an environment or surface the project does not have, a validation journey demanding something the project cannot produce. **Human-applied only.** No agent sets it, because judging a criterion unbuildable is a product call, and the agent that wrote a bad criterion is the least likely to know it did. | `Spec Defect` (label) | `blocked:spec-defect` (label) |
599
600
  | `wrongly_escalated` | A **ruling** that an earlier escalation to a human was wrong: the hold asked a person for a decision an agent could have made. Applied by a human, or by an agent at an operator's direction — who applied it does not matter. It is a classification, not a release: it moves no lane and needs no release authorization. The session manager's overruled-escalation sweep captures each labeled item once as a `wrongly-escalated` learning candidate (CodySwannGT/lisa#4657). Resolved from `jira.labels.wrongly_escalated`, `github.labels.build.wrongly_escalated` or `linear.labels.build.wrongly_escalated`. | `wrongly-escalated-to-human` (label) | `wrongly-escalated-to-human` (label) |
600
601
 
@@ -607,9 +608,9 @@ Resolution keys:
607
608
  - Linear: `linear.labels.build.human_needed` (default `human-needed`). Applied as a Linear **label**, for the same reason as JIRA — an Issue holds exactly one workflow state but any number of labels, so an additive marker cannot be a state. The `blocked` **state** still drives the lifecycle; `human_needed` is the marker on top of it. This is the only build-lane key left in `linear.labels`.
608
609
  - `spec_defect` resolves the same way on each vendor — `jira.labels.spec_defect` (default `Spec Defect`), `github.labels.build.spec_defect` and `linear.labels.build.spec_defect` (default `blocked:spec-defect`).
609
610
 
610
- **When to apply it.** There are two application sites. The first is **at filing**: a leaf filed with a `human_gate` reason under `ready-role-filing` carries the `[lisa-human-gate]` body marker *and* this label, so the hold is legible to a path that reads bodies and to a path that reads labels alike. Such an item sits in no lifecycle role at all rather than in `blocked`, which is the one case where this marker stands beside no role — and it is deliberate: a hold recorded on only one surface is a half-armed gate, and the label-keyed sweeps promoted exactly that population into the build queue (#3805). The second site is a **block a human must clear**: apply `human_needed` only when a human must act before the item can move — the pre-flight gate failures that bounce a ticket back to its reporter are exactly this case, but **only after** the agent has run the `pre-flight-autofill` draft-then-block procedure (drafting the authorable gaps — acceptance criteria, validation journey, repository, relationship search, etc. — into the ticket as labeled assumptions). What then remains for the human is to **confirm those assumptions** or supply a genuinely human-only input (real missing credentials, an irreducible product/scoping decision). The marker means "a human must confirm or decide," not "a human must author from scratch."
611
+ **When to apply it.** There are two application sites. The first is **at filing**: a leaf filed with a `human_gate` reason under `ready-role-filing` carries the `[lisa-human-gate]` body marker *and* this label, so the hold is legible to a path that reads bodies and to a path that reads labels alike. Such an item sits in no lifecycle role at all rather than in `blocked`, which is the one case where this marker stands beside no role — and it is deliberate: a hold recorded on only one surface is a half-armed gate, and the label-keyed sweeps promoted exactly that population into the build queue (#3805). The second site is a **block a human must clear**: apply `human_needed` only when a human must act before the item can move — the pre-flight gate failures that bounce a ticket back to its reporter are exactly this case, but **only after** the agent has run the `pre-flight-autofill` draft-then-block procedure (drafting the authorable gaps — acceptance criteria, validation journey, repository, relationship search, etc. — into the ticket as labeled assumptions). The agent adopts those drafted assumptions as its decisions and records them; what remains for a human is only an act the agent lacks access to (a real missing credential, a login, an access grant) or an operator's explicit hold. The marker means "a person must perform a named act," not "a human must author from scratch" — and not "a human must confirm the agent's choices".
611
612
 
612
- **Why `spec_defect` is separate from `human_needed`.** Both name a hold a person must clear, but they are different asks and the rollup must not merge them. `human_needed` waits on an input from *outside* the item — a credential, an access grant, a product decision — and the item's own text is fine. `spec_defect` waits on the item's text being *rewritten*, and no external event will ever supply that. An item carrying `spec_defect` will sit forever until somebody edits it; that is exactly the class that accumulated silently when the rollup rendered both as plain `blocked` (issue #3045: 32 identical hold comments over six weeks on one Epic). Where both markers are present, `spec_defect` wins — it is the more specific record, and the only one carrying a judgment nothing else can supply.
613
+ **Why `spec_defect` is separate from `human_needed`.** Both name a hold a person must clear, but they are different asks and the rollup must not merge them. `human_needed` waits on an act from *outside* the item — a credential, an access grant, an operator's hold — and the item's own text is fine. `spec_defect` waits on the item's text being *rewritten*, and no external event will ever supply that. An item carrying `spec_defect` will sit forever until somebody edits it; that is exactly the class that accumulated silently when the rollup rendered both as plain `blocked` (issue #3045: 32 identical hold comments over six weeks on one Epic). Where both markers are present, `spec_defect` wins — it is the more specific record, and the only one carrying a judgment nothing else can supply.
613
614
 
614
615
  **Nothing infers `spec_defect`.** It is never derived from prose, a title, or a failed gate. A `blocked` item carrying neither marker and no open `is blocked by` link classifies as **`unknown`**, and the rollup says so and asks a person to decide — an honest `unknown` beats a confident wrong answer, and auto-reclassifying would turn a human product call into a guess.
615
616
 
@@ -30,17 +30,21 @@ The six classes, from most to least self-evidently trustworthy:
30
30
  Each class fixes five review inputs: capability owner, update cadence, detection
31
31
  evidence, replacement-cost threshold, and whether product/human ratification is
32
32
  required. Higher exposure and lower trust buy stronger evidence and mandatory
33
- ratification, not weaker: runtime-critical service clients always need human
33
+ ratification, not weaker. When sign-off is on (`dependencies.humanSignOff:
34
+ "default"` or `humanGate.mode: "strict"`), runtime-critical service clients always need human
34
35
  ratification to add or major-upgrade; temporary dependencies need it to live
35
36
  past their expiry date; thin wrappers need it to be kept rather than in-housed.
37
+ By default those same ratifications are the agent's, recorded in the entry.
36
38
 
37
- **Unless the project turns sign-off off.** When `.lisa.config.json` sets
38
- `dependencies.humanSignOff` to `"none"`, no ratification requirement or
39
- human-review trigger in this rule applies — see
39
+ **By default the agent ratifies.** `dependencies.humanSignOff` resolves to
40
+ `"none"` unless the project sets it, so no requirement below waits on a person:
41
+ the agent makes each ratification and human-review call itself and records its
42
+ reasoning in the dependency's entry, where a person can reverse it — see
40
43
  [When `dependencies.humanSignOff` is `"none"`](#when-dependencieshumansignoff-is-none).
41
44
  The effective value is printed in the session's `lisa-resolved-config` block.
42
- The default (`"default"`, or the key omitted) keeps every requirement below
43
- exactly as written.
45
+ A person ratifies, exactly as written below, only when the project sets
46
+ `dependencies.humanSignOff` to `"default"` or `humanGate.mode` to `"strict"`
47
+ (which makes `"default"` the fallback).
44
48
 
45
49
  Every class also names one **human-review trigger** — the observable event that
46
50
  takes the decision away from the agent. A class definition that cannot say what
@@ -173,7 +177,8 @@ that reaches users, their data, or money in production — payment SDKs, auth
173
177
  libraries, database drivers, service clients on the request path. Even a mature,
174
178
  well-run project lands in this class if a bad update reaches production, because
175
179
  maturity does not shrink blast radius. Trust here is bought with our own
176
- evidence and a human's signature, not the vendor's reputation.
180
+ evidence and a recorded ratification — the agent's by default, a human's
181
+ signature when sign-off is on — not the vendor's reputation.
177
182
 
178
183
  - **Capability owner:** a named accountable person, not a team.
179
184
  - **Update cadence:** re-judged at every version change. Versions are pinned
@@ -242,8 +247,10 @@ starts running in production or touching user data — whichever happens first.
242
247
 
243
248
  ## Ratification, summarized
244
249
 
245
- Ratification is not a formality; it is the point where a human owns the residual
246
- risk. Required for:
250
+ Ratification is not a formality; it is the point where someone owns the residual
251
+ risk — the agent by default, recording why in the entry, or a human when sign-off
252
+ is on (`dependencies.humanSignOff: "default"` or `humanGate.mode: "strict"`).
253
+ Required for:
247
254
 
248
255
  - **Runtime-critical service client** — to add, and for every major upgrade.
249
256
  - **Temporary/experimental dependency** — to extend past expiry or to promote.
@@ -258,9 +265,9 @@ radius do the work a human would otherwise have to do.
258
265
 
259
266
  ### When `dependencies.humanSignOff` is `"none"`
260
267
 
261
- A project whose owner has decided that no dependency should ever wait on a
262
- person's approval sets `"dependencies": { "humanSignOff": "none" }` in
263
- `.lisa.config.json`. Read the effective value from the
268
+ `"none"` is the default: a project gets it when it sets
269
+ `"dependencies": { "humanSignOff": "none" }` or leaves the key out under the
270
+ default `humanGate.mode` (`"access-only"`). Read the effective value from the
264
271
  `dependencies.humanSignOff` line of the session's `lisa-resolved-config` block.
265
272
  Under `"none"`:
266
273
 
@@ -278,12 +285,15 @@ Under `"none"`:
278
285
  replacement-cost requirements, and update the record entry in the same change.
279
286
  Turning sign-off off removes the human, not the evidence.
280
287
  - **Credential, paid-account, and license approvals are not covered.** A
281
- dependency that needs a new secret, a paid vendor account, or a license
282
- decision still raises that as its own human-needed reason; this setting does
283
- not waive it.
288
+ dependency that needs a new secret the agent cannot create or reach, a paid
289
+ vendor account, or a license signature still raises that as its own
290
+ human-needed reason, naming that access; this setting does not waive it.
284
291
 
285
- `"default"` — or no key at all — keeps every ratification requirement exactly as
286
- written above. Any other value is reported as invalid and treated as `"default"`.
292
+ `"default"` — set explicitly, or reached by leaving the key out under
293
+ `humanGate.mode: "strict"` — keeps every ratification requirement exactly as
294
+ written above. Any other value is reported as invalid and treated as `"default"`,
295
+ the stricter option, in either mode: a setting someone tried and mistyped fails
296
+ safe. Only an absent key gets the mode's default.
287
297
 
288
298
  ## Naming a class at planning time
289
299
 
@@ -295,7 +305,7 @@ unit proposing a material dependency with no named class.
295
305
 
296
306
  The class is what makes the rest of the ticket reviewable: it tells the reviewer
297
307
  which evidence to demand and whether a human has to ratify before the work
298
- starts (never, when `dependencies.humanSignOff` is `"none"`), rather than
308
+ starts (never, when `dependencies.humanSignOff` is `"none"`, the default), rather than
299
309
  discovering both at the end.
300
310
 
301
311
  Naming a class is not a formality either. If nobody can pick one, that is the
@@ -39,8 +39,9 @@ each one:
39
39
  APIs (validator gate **F5 — Required external access provable**). An input the factory cannot
40
40
  execute never enters the factory.
41
41
  - **Discover-first duty**: intake tries to resolve gaps itself (alternate substrates, configured
42
- access layers, searching for the missing context). What it genuinely cannot resolve it rejects —
43
- `blocked` plus a human-needed marker, with clarifying questions or the exact missing access named.
42
+ access layers, searching for the missing context). A choice with a reasonable default it decides
43
+ and records on the item. What it genuinely cannot resolve — an act it lacks access to — it rejects:
44
+ `blocked` plus a human-needed marker, with the exact missing access named.
44
45
 
45
46
  ## The loops
46
47
 
@@ -60,12 +61,19 @@ quality control. Projects opt into human triage by passing `false`.
60
61
 
61
62
  ## Where humans stand
62
63
 
63
- Humans act only at explicit exterior gates:
64
+ An agent performs every act it has access to perform. Humans act only at explicit exterior gates:
64
65
 
65
66
  - flipping a draft they chose to hold back to `prd-ready` / `status:ready`,
66
- - approving protected deployments (`github.environments.require_approval`),
67
- - reviewing low-confidence learning PRs (auto-merge off, unless the project sets `learnings.lowConfidence: "auto-merge"`),
68
- - answering what intake rejected and raised.
67
+ - approving protected deployments (`github.environments.require_approval`), because the required
68
+ reviewer must be a person's account,
69
+ - performing an act the agent lacks access to: an interactive login, creating a credential it cannot
70
+ reach, spending money, a legal signature, or an action only a person's account can take — the
71
+ gate names that access (`ready-role-filing`, "What a human gate is"),
72
+ - reviewing low-confidence learning PRs, only when the project sets `learnings.lowConfidence:
73
+ "human-triage"` or `humanGate.mode: "strict"` (otherwise they merge through the normal gates).
74
+
75
+ Everything else the agent decides, records on the work item, and leaves for a person to reverse.
76
+ `humanGate.mode: "strict"` restores the wider gate for a project that wants it.
69
77
 
70
78
  Inside a flow, never pause to ask a human whether to proceed — the invocation was the authorization.
71
79
  Headless discipline follows: no interactive prompts, idempotent re-runs, clean exits on empty
@@ -99,8 +107,9 @@ the unattended guessing the gates exist to prevent.
99
107
 
100
108
  Everything else Lisa installs — skills, hooks, quality checks, guardrails, CI gates, rulesets —
101
109
  exists to enforce enterprise-grade quality and verification standards that keep the software
102
- maintainable. Never weaken a gate to get work through it; fix the work, or raise the
103
- risk-acceptance decision to a human.
110
+ maintainable. Never weaken a gate to get work through it; fix the work, or accept the
111
+ risk yourself with the reasoning and an expiry recorded on the work item, so a person can reverse
112
+ it (`humanGate.mode: "strict"` hands risk acceptance to a human).
104
113
 
105
114
  Every supported coding agent is a first-class factory operator: Claude Code, Codex, Cursor,
106
115
  OpenCode, Antigravity (agy), Copilot. Behavior stays in parity across them, and anything persisted
@@ -224,11 +224,11 @@ Sequence:
224
224
  - **Missing tool access** — an agent lacked a tool, credential, environment, or permission the work required
225
225
 
226
226
  The three knowledge categories (recurring gotcha, process friction, convention drift) persist to the committed learnings ledger through the executable contract — never to machine-local memory, host rules (`.agents/rules/`), or `AGENTS.md`.
227
- 4. **Produce the human-triage document** — a markdown file with one row per candidate learning showing: category, summary, evidence (links to the source ticket comment / PR comment / commit), recommended persistence destination, and a checkbox-style disposition field the human will mark (Accept / Reject / Defer). Surface step-1 anomalies (work items missing PRs, etc.) in a separate section. The document is exhaustive — it lists every candidate, even ones the synthesizer rates low confidence — because the human, not the agent, decides what is worth keeping.
227
+ 4. **Produce the human-triage document** — a markdown file with one row per candidate learning showing: category, summary, evidence (links to the source ticket comment / PR comment / commit), recommended persistence destination, and a checkbox-style disposition field (Accept / Reject / Defer). Surface step-1 anomalies (work items missing PRs, etc.) in a separate section. The document is exhaustive — it lists every candidate, even ones the synthesizer rates low confidence — so whoever dispositions it sees everything.
228
228
  5. **Record Debrief usage on the triage document** — invoke `lisa-usage-accounting` against the generated markdown artifact so the document carries its own direct `debrief` usage entry in the canonical `## Lisa Usage` section. If runtime usage is unavailable, write the entry with `source: unavailable` and nullable token/cost fields rather than skipping it.
229
- 6. **Stop and hand the document to the human.** Debrief does NOT persist accepted learnings itself. The human triages, marks dispositions, and runs the **`/lisa:debrief:apply`** command (skill: `debrief-apply`) to route the accepted items to their destinations.
229
+ 6. **Disposition, then apply.** Debrief does NOT persist accepted learnings itself. Under the default `humanGate.mode: "access-only"`, the agent marks each row's disposition with a one-line reason from its evidence and runs the **`/lisa:debrief:apply`** command (skill: `debrief-apply`) to route the accepted items to their destinations; agent-marked rows persist at `low` confidence. Under `"strict"`, stop and hand the document to the human, who triages, marks dispositions, and runs `/lisa:debrief:apply`.
230
230
 
231
- Output: A triage-ready learnings document covering every work item and PR in the initiative, with structured evidence and disposition fields. Persistence is deferred to `debrief-apply`, which the human invokes after triage.
231
+ Output: A triage-ready learnings document covering every work item and PR in the initiative, with structured evidence and disposition fields. Persistence is deferred to `debrief-apply`, invoked after triage (by the agent under access-only, by the human under strict).
232
232
 
233
233
  ## Sub-flows
234
234
 
@@ -35,7 +35,7 @@ Work down the list and stop at the first honest yes:
35
35
  The division is deliberate and it is what keeps knowledge surfaces from silently growing:
36
36
 
37
37
  - **You capture.** Record the learning through `lisa-persist-learning`, with its provenance and evidence. That is the whole of a session's authority here.
38
- - **The gardener promotes.** `/lisa:learnings:audit` — available as an opt-in weekly automation via `lisa-setup-automations` — audits the ledger, rules trees, skills, and wiki, routes candidates through the `skill-evaluator`, and files **human-gated tracker tickets** for promotions, demotions, and retirements. A human approves each one.
38
+ - **The gardener promotes.** `/lisa:learnings:audit` — available as an opt-in weekly automation via `lisa-setup-automations` — audits the ledger, rules trees, skills, and wiki, routes candidates through the `skill-evaluator`, and files **tracker tickets** for promotions, demotions, and retirements. By default they file build-ready: the gardener decides, records its evidence and reasoning on the ticket, and a person can reverse it. A ticket is human-gated only when its change lands on a human-authored surface (below) or the project sets `humanGate.mode: "strict"`.
39
39
  - **Nothing hand-appends.** Never write a learning directly into `AGENTS.md`, a host rules file, or the human decree surface. Those are human-authored, and an automated append to them is exactly the accretion this ladder exists to stop.
40
40
 
41
41
  Promotion tickets are themselves governed: `promotion-contract` requires an EXECUTABLE-CONTROL promotion to be atomic — enable the control, fix the existing violation population, ship a remediation-teaching diagnostic, and delete the superseded prose, all in one PR. Promote-without-remove double-pays forever.
@@ -25,8 +25,11 @@ When a learnings-ladder promotion ticket (PRD #1729) is implemented — turning
25
25
  prose learning, rule section, or ledger entry into an **executable control**
26
26
  (lint, ast-grep, type constraint, test, hook, or `package.lisa.json` force) —
27
27
  the implementing PR is governed by this contract. The gardener
28
- (`lisa-learnings-audit`) files the tickets; a human gates them by flipping
29
- `status:ready`; the factory implements them like any other work item. This rule
28
+ (`lisa-learnings-audit`) files the tickets build-ready by default, with its
29
+ evidence and reasoning on each so a person can reverse it (a human gates them by
30
+ flipping `status:ready` only under `humanGate.mode: "strict"`, or when the
31
+ change lands on a human-authored surface); the factory implements them like any
32
+ other work item. This rule
30
33
  is what makes the resulting PR reviewable **by rule, not by reviewer taste**.
31
34
 
32
35
  ## The atomic promote-and-delete contract
@@ -28,7 +28,7 @@ Filed, not ready, and no `human_gate` is the **incomplete handoff** case — wri
28
28
 
29
29
  ## The named exception
30
30
 
31
- `lisa-exploratory-qa` files findings not-ready **by design** — its findings are candidate defects whose product significance a human should judge. It is the named human-gate exception, not drift: it pairs `ready=false` with an explicit `human_gate` reason. The sibling `e2e-coverage-gaps` skills are the contrast (a missing test is not a product question, so they file build-ready).
31
+ `lisa-exploratory-qa` is the named human-gate exception **only under `humanGate.mode: "strict"`**. There it files findings not-ready by design, because a person judges their product significance, and it pairs `ready=false` with an explicit `human_gate` reason. Under the default `"access-only"` mode `ready` defaults to true: the agent judges significance itself, records that judgement on each finding in a `Decision:` line, and files a worthwhile, complete finding `build_ready: true`; a person can reverse it. An operator who passes `ready=false` is placing an explicit operator hold, filed with its own `human_gate` reason. The sibling `e2e-coverage-gaps` skills are the contrast (a missing test is not a product question, so they file build-ready).
32
32
 
33
33
  `lisa-repair-intake` sweeps for open items that are neither in the ready role nor marked `[lisa-human-gate]`, and surfaces them rather than promoting them.
34
34
 
@@ -100,20 +100,21 @@ One string, defined in one rule, read by the guard and stamped by the writers
100
100
 
101
101
  A human gate is for an **act an agent cannot perform**. It is not for "a pending product call": almost any open choice can be read as one, and reading it that way held plain decisions for a person whose answer was nearly always "you decide" — nine in one week in one portfolio repository, every one overruled, and three more filed hours after the operator's standing direction was recorded (CodySwannGT/lisa#4658). Each false gate costs an operator interruption and stalls the work until someone notices.
102
102
 
103
- The acts that qualify:
103
+ The acts that qualify are the ones an agent **lacks access to** perform. Each gate's text must name that access:
104
104
 
105
- | Act | Examples |
106
- |---|---|
107
- | Supply a credential only a person holds | an API key, password, private key, MFA code |
108
- | Spend money | a paid plan, a purchase, budget approval |
109
- | Open an external account | a vendor or provider account in a person's or the company's name |
110
- | Give a legal or compliance sign-off | HIPAA/GDPR/SOC 2, a contract, approval for a protected deployment |
111
- | Name an accountable person | an owner or approver who answers for the result |
112
- | Act in a system the agent cannot reach | physical hardware, an on-site step, granting an access the agent lacks |
113
- | A call Lisa's own policy reserves for a person | exploratory-QA findings (the named exception below), learnings promotion/demotion, harness interventions, automation retirement, a hold the operator explicitly asked for |
114
- | A decision class this project declared human-only | `humanGate.humanOnly` in `.lisa.config.json` |
115
-
116
- **Everything else is a decision.** The agent decides and records: it picks the reasonable default, writes the decision on the item (a `Decision:` line saying what was chosen and why), and files it `build_ready: true`. A reviewer who disagrees changes the item; nobody had to be interrupted first.
105
+ | Act id | Act the agent lacks access to | Examples |
106
+ |---|---|---|
107
+ | `credential` | Complete a login or supply a credential only a person holds | an interactive SSO, OAuth or MFA login; an API key created in a vendor console; a password or private key only a person holds; a secret store the agent cannot write |
108
+ | `spend` | Spend money | a paid plan, a purchase, a paid-account upgrade |
109
+ | `external-account` | Open an external account | a vendor or provider account in a person's or the company's name |
110
+ | `legal-signoff` | Sign a legal agreement on the company's behalf | a contract, BAA or DPA, license acceptance |
111
+ | `person-only-account` | Act from an account only a person holds | a protected-deployment required reviewer, a ruleset approval that must come from a person |
112
+ | `unreachable-system` | Act in a system the agent cannot reach | granting the agent an access it lacks, admin rights, an on-site or hardware step |
113
+ | `operator-hold` | Honour a hold the operator explicitly asked for | the operator said to hold this item, or passed `ready=false` to a filing skill |
114
+ | `human-authored-surface` | Edit a file the project says only people write (the authorship rule, not missing access; held in both modes) | a promotion, demotion or retirement that lands in a host's `.agents/rules/`, `PROJECT_RULES.md` or `AGENTS.md` |
115
+ | `project-policy` | A decision class this project declared human-only | `humanGate.humanOnly` in `.lisa.config.json` |
116
+
117
+ **Everything else is a decision.** That includes acts older wording reserved for a person: a product, scoping or design call; accepting a risk; a compliance judgement; naming an accountable owner from the evidence available; promoting or demoting a learning; a harness intervention; retiring an automation; judging an exploratory-QA finding's significance; picking an epic or parent; ratifying a dependency; and a threshold-ratchet exception. The agent decides and records: it picks the reasonable default, writes the decision on the item (a `Decision:` line saying what was chosen and why), and files it `build_ready: true`. A person who disagrees reverses it on the item; nobody had to be interrupted first.
117
118
 
118
119
  **The reason must name the act.** `human_gate: "role-split-triage"` names a topic and is refused; `human_gate: "the production payment-provider secret key only the founder holds"` names an act and is accepted. The check is executable, and every writer runs it before stamping a hold:
119
120
 
@@ -131,7 +132,16 @@ A project that wants a decision class to stay human-only declares it, rather tha
131
132
  { "humanGate": { "humanOnly": ["pricing", "hiring"] } }
132
133
  ```
133
134
 
134
- A reason naming a declared class (as a whole word) is accepted. `.lisa.config.local.json` replaces the list when it sets one. Nothing widens the gate implicitly.
135
+ A reason naming a declared class (as a whole word) is accepted, in either mode. `.lisa.config.local.json` replaces the list when it sets one. Nothing widens the gate implicitly.
136
+
137
+ ### A project can choose the stricter gate
138
+
139
+ `humanGate.mode` sets how wide the gate is. `"access-only"` (the default) is the table above. A project that wants a person in more decisions sets `{ "humanGate": { "mode": "strict" } }`, which restores the older gate:
140
+
141
+ - three more acts count as human gates again: `compliance-signoff` (a HIPAA, GDPR or SOC 2 approval), `accountable-person` (naming an accountable person), and `lisa-policy` (a call Lisa's own policy used to reserve for a person: exploratory-QA findings, learnings promotion and demotion, harness interventions, automation retirement);
142
+ - `dependencies.humanSignOff` defaults to `"default"` (a person ratifies) instead of `"none"`, and `learnings.lowConfidence` defaults to `"human-triage"` instead of `"auto-merge"`.
143
+
144
+ A key the project sets explicitly always wins over the mode. The effective values are printed in the session's `lisa-resolved-config` block.
135
145
 
136
146
  ### Existing invalid holds are lifted, with no person involved
137
147
 
@@ -141,9 +151,9 @@ Holds filed under the old wording keep stalling items, and an operator should ne
141
151
  - removes the `human_needed` marker label;
142
152
  - moves the item to the build-ready role (unless it has since moved to another lifecycle lane).
143
153
 
144
- This is not a forged human release. A release records a person's answer, so it must come from a trusted human. A lift records that the hold was invalid under this contract, so there is nothing for a person to authorize. Its authority comes from re-classifying the hold rather than from who wrote the comment: a lift comment naming a valid hold discharges nothing. Valid holds (a credential, spend, a sign-off) are untouched and still wait for their act. A label-only hold (an access block, a blocked verdict) declares no reason to judge and is never lifted.
154
+ This is not a forged human release. A release records a person's answer, so it must come from a trusted human. A lift records that the hold was invalid under this contract, so there is nothing for a person to authorize. Its authority comes from re-classifying the hold rather than from who wrote the comment: a lift comment naming a valid hold discharges nothing. Valid holds (a credential, spend, a signature) are untouched and still wait for their act. A label-only hold (an access block, a blocked verdict) declares no reason to judge and is never lifted.
145
155
 
146
- Every reader of the hold verdict passes the project's `humanOnly` classes (`humanGate.humanOnly`) alongside `comments` and `trustedHumanActorIds` (`classifyReadyCandidate`, `classifyPreWorkCandidate`, `planHumanGateReconciliation`, `planHumanGateRelease`, `planLabelNormalization`, `planHumanGateLift`). A reader that omits it judges a project-declared hold as invalid, so a lift comment naming that hold would discharge it there.
156
+ Every reader of the hold verdict passes the project's `humanGateMode` (`humanGate.mode`) and `humanOnly` classes (`humanGate.humanOnly`) alongside `comments` and `trustedHumanActorIds` (`classifyReadyCandidate`, `classifyPreWorkCandidate`, `planHumanGateReconciliation`, `planHumanGateRelease`, `planLabelNormalization`, `planHumanGateLift`). A reader that omits either judges a hold that setting makes valid as invalid, so a lift comment naming that hold would discharge it there. `node scripts/human-gate-act.mjs policy` prints the effective `{ "mode", "humanOnly" }`; an invalid mode fails safe to `"strict"` and is reported on stderr.
147
157
 
148
158
  ## Complete defects found during other work are filed build-ready
149
159
 
@@ -155,15 +165,15 @@ The same explicitness applies in the other direction. A filing that genuinely ne
155
165
 
156
166
  A ticket a worker has to file **while building** a dispatched item, because that item was mis-scoped, mis-split, or depends on work nobody filed, is filed exactly as above. It is also evidence that planning let a gap through, and it is routed as such: the filer sends one `planning-miss` candidate through `lisa-persist-learning`, with the item being built (never the new ticket) as `triggering_issue` and the check planning should have run as the rule. `lisa-implement` owns the step and its exclusions (outages, credentials, tool access, flaky tools, and decisions planning flagged as human gates); the judge decides whether it really was a miss. The signal never delays or changes the filing.
157
167
 
158
- ## The named exception: `lisa-exploratory-qa`
168
+ ## The named exception: `lisa-exploratory-qa` (strict mode)
159
169
 
160
- `lisa-exploratory-qa` files its findings **not** build-ready by default, and that is **correct** — it is the named human-gate exception under this rule, not drift to be repaired.
170
+ Under `humanGate.mode: "strict"`, `lisa-exploratory-qa` files its findings **not** build-ready, and that is **correct** — it is the named human-gate exception under this rule, not drift to be repaired. Exploratory QA is a first-time-user experience pass, and in strict mode a person judges each finding's product significance. Its `ready=false` is therefore paired with an explicit `human_gate` reason and stamped with `[lisa-human-gate]` — an explicit human-gate marker, never a bare omission.
161
171
 
162
- Exploratory QA is a first-time-user experience pass. Its findings are *candidate* defects and usability observations whose product significance a human should judge; auto-readying them would push judgment work into the build queue, which is precisely the failure the gate model exists to prevent. Its `ready=false` is therefore paired with an explicit `human_gate` reason and stamped with `[lisa-human-gate]` — an explicit human-gate marker, never a bare omission.
172
+ Under the default `"access-only"` mode the agent makes that significance call itself. It records its judgement on each finding in a `Decision:` line (why it matters, or why it was dropped), files a worthwhile, complete finding `build_ready: true`, and a person can reverse it. An operator-passed `ready=false` is an `operator-hold`, not this exception.
163
173
 
164
174
  The sibling `e2e-coverage-gaps` skills are the contrast: a missing automated test is not a product question, so they file `build_ready: true` by default.
165
175
 
166
- Other legitimate human-gate filings follow the same shape — `lisa-learnings-audit` promotion/demotion tickets, `lisa-improve-harness` intervention proposals, automation-retirement proposals, and provisioning tickets for access a human must grant. Each declares its `human_gate` reason rather than relying on a default.
176
+ Other legitimate human-gate filings follow the same shape. In either mode: provisioning tickets for access the agent lacks (a credential, a login, an access grant), and a promotion ticket whose change lands on a surface declared human-authored (a host's `.agents/rules/`, `PROJECT_RULES.md` or `AGENTS.md`), which no agent writes — an authorship rule, not an access gate. Under `strict` only: `lisa-learnings-audit` promotion/demotion tickets, `lisa-improve-harness` intervention proposals and automation-retirement proposals. Each declares its `human_gate` reason rather than relying on a default.
167
177
 
168
178
  ## This rule is enforced, not merely stated
169
179
 
@@ -221,7 +231,7 @@ Two limits, stated rather than implied, because a control that documents its own
221
231
 
222
232
  ## Recovery
223
233
 
224
- `lisa-repair-intake` sweeps for the failure this rule prevents: recently filed items that are open, not in the configured ready role, and carrying **no** `[lisa-human-gate]` marker. Each is an incomplete handoff — surfaced with its filing context so an operator can promote it or gate it deliberately. The sweep reports rather than guesses: it never silently promotes an item into the queue, because a filing whose readiness nobody declared is exactly the input the gate model says a human should see.
234
+ `lisa-repair-intake` sweeps for the failure this rule prevents: recently filed items that are open, not in the configured ready role, and carrying **no** `[lisa-human-gate]` marker. Each is an incomplete handoff — surfaced with its filing context so it can be promoted or gated deliberately: by the agent acting on the report, which records its reason on the item, or by an operator under `humanGate.mode: "strict"`. The sweep reports rather than guesses: it never silently promotes an item into the queue, because a filing whose readiness nobody declared needs a deliberate, recorded decision rather than a default.
225
235
 
226
236
  ## Related
227
237
 
@@ -1,6 +1,6 @@
1
1
  # Security Audit Handling
2
2
 
3
- If `git push` fails because the pre-push hook reports security vulnerabilities, work the decision ladder below **autonomously**. Only one rung pauses to ask a human. Never use `--no-verify`, `HUSKY=0`, `core.hooksPath`, or any other hook bypass to skip the security audit.
3
+ If `git push` fails because the pre-push hook reports security vulnerabilities, work the decision ladder below **autonomously**. No rung pauses for a human unless the project sets `humanGate.mode: "strict"`. Never use `--no-verify`, `HUSKY=0`, `core.hooksPath`, or any other hook bypass to skip the security audit.
4
4
 
5
5
  ## The decision ladder
6
6
 
@@ -9,10 +9,10 @@ The remediation for any high/critical advisory is a simple, ordered decision —
9
9
  1. **Update the offending package** to a patched version.
10
10
  2. **If that's not possible**, force a resolution/override on the vulnerable leaf package.
11
11
  3. **If that's not possible**, evaluate whether the advisory actually affects the project.
12
- 4. **If it affects the project** (and 1 and 2 weren't possible), ask a human what to do.
12
+ 4. **If it affects the project** (and 1 and 2 weren't possible), decide yourself: mitigate it, or accept the risk with your reasoning and an expiry recorded. Under `humanGate.mode: "strict"`, ask a human instead.
13
13
  5. **If it doesn't affect the project**, add it to the ignore list yourself.
14
14
 
15
- Steps 1, 2, 3, and 5 are autonomous. Do not stop and ask the user except at step 4, and only after you have genuinely attempted steps 1 and 2 and performed the step-3 evaluation.
15
+ Every step is autonomous by default. Take step 4 only after you have genuinely attempted steps 1 and 2 and performed the step-3 evaluation; under `strict`, it is the one step that asks the user.
16
16
 
17
17
  ## Node.js Projects (GHSA advisories)
18
18
 
@@ -21,7 +21,10 @@ Steps 1, 2, 3, and 5 are autonomous. Do not stop and ask the user except at step
21
21
  3. **Step 1 — update:** If a patched version exists and is compatible, add a resolution/override in `package.json` to force the patched version (add to **both** `resolutions` and `overrides`), run the package manager install to regenerate the lockfile, commit, and retry the push.
22
22
  4. **Step 2 — force override:** If no straight upgrade lands the patched version but a compatible patched version exists somewhere on the graph, pin it via `resolutions` + `overrides` on the **leaf** package (see "Override the vulnerable package, not its parent" below), regenerate the lockfile, commit, and retry.
23
23
  5. **Step 3 — evaluate impact:** If neither an upgrade nor an override is possible (no fixed version exists, or every compatible pin breaks a dependent), determine whether the vulnerability actually affects this project. Consider: is the vulnerable code path reachable from this project's usage? Does it process untrusted input? Is the dependency runtime, or dev/build-only? Record the conclusion.
24
- 6. **Step 4 — escalate:** If the evaluation shows the vulnerability **does** affect the project and neither step 1 nor step 2 was possible, ask the user what to do. This is the only step that pauses for a human.
24
+ 6. **Step 4 — decide:** If the evaluation shows the vulnerability **does** affect the project and neither step 1 nor step 2 was possible, make the call yourself and record it on the work item so a person can reverse it:
25
+ - **Mitigate** if you can: replace or remove the vulnerable package, or guard the reachable code path so untrusted input cannot reach it, then retry.
26
+ - **Otherwise accept the risk**: add an exclusion entry (as in step 5) whose `reason` records the impact, why no fix or mitigation is possible now, and an expiry date, and file a build-ready follow-up work item to remove the exclusion when a fix ships.
27
+ - Under `humanGate.mode: "strict"`, ask the user what to do instead. That is the only step that pauses for a human in strict mode.
25
28
  7. **Step 5 — ignore:** If the evaluation shows the vulnerability **does not** affect the project, add an exclusion entry to `audit.ignore.local.json` yourself, in the format `{"id": "GHSA-xxx", "package": "pkg-name", "reason": "<impact evaluation: why this advisory does not affect this project>"}`, then commit and retry the push. No human approval is required for this step — the `reason` field is the record of your evaluation.
26
29
  - **Scope the exclusion to the copy you evaluated.** An entry with only `id` (and `package`) hides the advisory for every copy of the package, including one a production dependency pulls in later. Two optional fields narrow it, and every field present must hold together:
27
30
  - `versions` — a semver range the excused installed copies must fall inside, such as `">=3.0.0 <4.0.0"`.
@@ -49,7 +52,7 @@ If any of these checks fail, the override is "not possible" for the purposes of
49
52
  ### Never
50
53
 
51
54
  - Never add a blanket audit bypass or lower the configured audit level.
52
- - Never jump to step 4 (ask a human) before genuinely attempting steps 1–3.
55
+ - Never jump to step 4 (decide or, under `strict`, ask a human) before genuinely attempting steps 1–3.
53
56
  - Never add a step-5 ignore entry without an impact evaluation recorded in its `reason`.
54
57
 
55
58
  ## Rails Projects (bundler-audit)
@@ -61,4 +64,4 @@ Same ladder, bundler mechanics:
61
64
  3. **Step 1 — update:** If a patched version exists:
62
65
  - **Direct dependency** (in Gemfile): update its version constraint, run `bundle update <gem>`, commit, retry.
63
66
  - **Transitive dependency** (only in Gemfile.lock): run `bundle update <gem>` to pull the patched version without changing the Gemfile, commit the lockfile change, retry.
64
- 4. **Steps 3–5 — no patch:** If no patched version exists, evaluate whether the advisory affects the project. If it **does** and no fix is possible, ask the user (step 4). If it **does not**, document the exception and retry (step 5).
67
+ 4. **Steps 3–5 — no patch:** If no patched version exists, evaluate whether the advisory affects the project. If it **does** and no fix is possible, decide it yourself (step 4; ask the user under `strict`). If it **does not**, document the exception and retry (step 5).
@@ -74,9 +74,34 @@ Each direct usage entry records one logical Lisa run or sub-run on one artifact.
74
74
  | `currency` | ISO currency code when `cost` is known, otherwise `null`. |
75
75
  | `pricing_status` | `observed`, `estimated`, `missing`, or `unavailable`. |
76
76
  | `pricing_source` | Runtime billing source, config/pricing snapshot ref, or `null`. |
77
- | `artifact_ref` | Canonical ref of the artifact carrying the entry. |
77
+ | `artifact_ref` | Canonical ref of the artifact carrying the entry, in the per-provider grammar below. |
78
78
  | `parent_artifact_ref` | Canonical parent artifact ref when the entry is attached below a parent, otherwise empty. |
79
79
 
80
+ ### `artifact_ref` grammar
81
+
82
+ The completion proof finds a work item's Verify entry by its `artifact_ref`. Writers are required
83
+ to produce exactly one form per provider:
84
+
85
+ | Provider | Form | Example |
86
+ |---|---|---|
87
+ | GitHub | `github:<owner>/<repo>#<N>` | `github:acme/code#42` |
88
+ | Linear | `linear:<workspace>/<KEY-N>` | `linear:acme/ENG-11` |
89
+ | Jira | bare `<KEY-N>` | `ENG-11` |
90
+
91
+ The reader is a little more tolerant than the writer: it also accepts a bare `<KEY-N>` for Linear
92
+ (and `<owner>/<repo>#<N>` or the issue URL for GitHub). It never accepts a short `linear:<KEY-N>`,
93
+ and it compares case-sensitively against the uppercase issue identifier.
94
+
95
+ The Linear `<workspace>` must equal the `linear.workspace` key in `.lisa.config.json` exactly,
96
+ including case. The writer checks only the shape, not the value: it cannot see the config. The
97
+ writer (`renderLisaUsageEntryToken`, `renderLisaUsageSection`, `upsertLisaUsageSection`) refuses a
98
+ short `linear:<KEY-N>`, a lowercase key, a workspace containing `/` or whitespace, or any other
99
+ `linear:` ref that is not `linear:<workspace>/<KEY-N>`, with an error naming the required form: the
100
+ reader would otherwise reject that entry later as absent. Refs for other providers are written
101
+ unchanged. `renderLisaUsageSection` validates every entry it is given; `upsertLisaUsageSection`
102
+ validates only new entries, so a legacy short-form row already stored in a section is preserved on
103
+ rewrite, and upserting the qualified entry with the same `entry_id` repairs it.
104
+
80
105
  `entry_id` must be stable across rewrites of the same logical run. Rewriting an existing entry with the same `entry_id` updates it in place. A different run gets a different `entry_id` and is appended as a new direct entry.
81
106
 
82
107
  ## Source semantics
@@ -136,6 +161,9 @@ extension. Writers serialize an omitted value as `null` instead of `undefined`:
136
161
  <!-- lisa:usage-entry-measured-subset entry_id=<id> measured_subset_tokens=<n|null> -->
137
162
  ```
138
163
 
164
+ `artifact_ref=<ref>` carries the percent-encoded ref in the grammar above, for example
165
+ `artifact_ref=linear%3Aacme%2FENG-11`.
166
+
139
167
  The primary field order is fixed and deliberately matches the pre-measured-subset contract so
140
168
  legacy 17-field readers continue to enumerate entries. Current readers correlate the extension by
141
169
  its percent-encoded `entry_id`. They also accept the `@codyswann/lisa@2.222.0` transitional marker,
@@ -34,8 +34,10 @@
34
34
  * we needed is cancelled" into "we are unblocked", which is the same wrong-write
35
35
  * family as CodySwannGT/lisa#3479, where a reason-blind repair would have
36
36
  * stamped a production terminal on abandoned work. So an abandoned blocker
37
- * ESCALATES to a human rather than dissolving or silently holding forever:
38
- * somebody has to decide whether the dependent still makes sense.
37
+ * ESCALATES rather than dissolving or silently holding forever: someone has
38
+ * to decide whether the dependent still makes sense, and who decides follows
39
+ * `humanGate.mode` — the agent under `access-only`, a person under `strict`
40
+ * (see the session manager's `reconcile.mjs`).
39
41
  *
40
42
  * ## What this module does not decide
41
43
  *
@@ -77,8 +79,9 @@ export function resolveBlockerEdge(input = {}) {
77
79
 
78
80
  // Checked BEFORE containment, because an abandoned blocker whose branch
79
81
  // happens to contain some earlier commit of its own is still abandoned. The
80
- // question a human has to answer is whether the dependent still makes sense,
81
- // and a containment true would silently answer it for them.
82
+ // open question is whether the dependent still makes sense — answered by the
83
+ // agent or a person as `humanGate.mode` says — and a containment true would
84
+ // silently answer it for them.
82
85
  if (state === "closed" && reason === NOT_PLANNED) {
83
86
  return {
84
87
  action: "escalate",
@@ -86,7 +89,8 @@ export function resolveBlockerEdge(input = {}) {
86
89
  "the blocker was closed as NOT PLANNED, so the work this item depends on will never be " +
87
90
  "delivered. Dissolving the edge would read as 'unblocked' when nothing was built, and " +
88
91
  "holding it forever hides a decision somebody has to make: does this item still make sense " +
89
- "without its blocker? That is a human call, not a sweep's.",
92
+ "without its blocker? That is a decision to make and record, not one a sweep may " +
93
+ "round away; who makes it follows humanGate.mode.",
90
94
  };
91
95
  }
92
96