@codyswann/lisa 4.109.2 → 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 (492) hide show
  1. package/all/copy-overwrite/scripts/check-threshold-ratchet.mjs +4 -2
  2. package/all/copy-overwrite/scripts/lisa-hooks/block-direct-issue-create.sh +10 -5
  3. package/all/copy-overwrite/scripts/lisa-hooks/block-no-verify.sh +4 -3
  4. package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +2 -2
  5. package/all/create-only/.agents/rules/README.md +3 -2
  6. package/all/create-only/.lisa/ACCOUNTABILITY.md +16 -10
  7. package/all/create-only/.lisa/DEPENDENCY_DECISIONS.md +15 -12
  8. package/dist/codex/scripts/block-no-verify.sh +1 -1
  9. package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  10. package/dist/core/lisa-owned-hash-ledger.js +18 -0
  11. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  12. package/dist/core/lisa.d.ts +4 -3
  13. package/dist/core/lisa.d.ts.map +1 -1
  14. package/dist/core/lisa.js +12 -5
  15. package/dist/core/lisa.js.map +1 -1
  16. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  17. package/dist/core/project-config-dependencies.d.ts +29 -8
  18. package/dist/core/project-config-dependencies.d.ts.map +1 -1
  19. package/dist/core/project-config-dependencies.js +55 -15
  20. package/dist/core/project-config-dependencies.js.map +1 -1
  21. package/dist/core/project-config-human-gate.d.ts +105 -0
  22. package/dist/core/project-config-human-gate.d.ts.map +1 -0
  23. package/dist/core/project-config-human-gate.js +178 -0
  24. package/dist/core/project-config-human-gate.js.map +1 -0
  25. package/dist/core/project-config-learnings.d.ts +28 -9
  26. package/dist/core/project-config-learnings.d.ts.map +1 -1
  27. package/dist/core/project-config-learnings.js +51 -13
  28. package/dist/core/project-config-learnings.js.map +1 -1
  29. package/dist/core/project-config.d.ts +13 -3
  30. package/dist/core/project-config.d.ts.map +1 -1
  31. package/dist/core/project-config.js +6 -2
  32. package/dist/core/project-config.js.map +1 -1
  33. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  34. package/dist/core/upstream-evidence-manifest.js +84 -69
  35. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  36. package/dist/opencode/plugin-templates/block-no-verify.sh +4 -3
  37. package/dist/opencode/plugin-templates/lisa-block-direct-issue-create.ts +10 -4
  38. package/dist/utils/usage-accounting.d.ts +13 -0
  39. package/dist/utils/usage-accounting.d.ts.map +1 -1
  40. package/dist/utils/usage-accounting.js +67 -4
  41. package/dist/utils/usage-accounting.js.map +1 -1
  42. package/dist/utils/usage-artifact-ref.d.ts +30 -0
  43. package/dist/utils/usage-artifact-ref.d.ts.map +1 -0
  44. package/dist/utils/usage-artifact-ref.js +55 -0
  45. package/dist/utils/usage-artifact-ref.js.map +1 -0
  46. package/package.json +4 -4
  47. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  48. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  49. package/plugins/lisa/.codex-plugin/scripts/blocker-edge-resolution.mjs +9 -5
  50. package/plugins/lisa/.codex-plugin/scripts/human-gate-act.mjs +278 -0
  51. package/plugins/lisa/.codex-plugin/scripts/intake-blocker-reprobe.mjs +215 -39
  52. package/plugins/lisa/.codex-plugin/scripts/ready-queue-order.mjs +9 -3
  53. package/plugins/lisa/.codex-plugin/skills/lisa-confluence-to-tracker/SKILL.md +1 -1
  54. package/plugins/lisa/.codex-plugin/skills/lisa-debrief-apply/SKILL.md +4 -4
  55. package/plugins/lisa/.codex-plugin/skills/lisa-debrief-apply/agents/openai.yaml +2 -2
  56. package/plugins/lisa/.codex-plugin/skills/lisa-drive-pr-to-merge/SKILL.md +18 -7
  57. package/plugins/lisa/.codex-plugin/skills/lisa-exploratory-qa/SKILL.md +23 -12
  58. package/plugins/lisa/.codex-plugin/skills/lisa-github-build-intake/SKILL.md +14 -9
  59. package/plugins/lisa/.codex-plugin/skills/lisa-github-to-tracker/SKILL.md +1 -1
  60. package/plugins/lisa/.codex-plugin/skills/lisa-github-write-issue/SKILL.md +2 -2
  61. package/plugins/lisa/.codex-plugin/skills/lisa-improve-harness/SKILL.md +24 -7
  62. package/plugins/lisa/.codex-plugin/skills/lisa-jira-build-intake/SKILL.md +14 -10
  63. package/plugins/lisa/.codex-plugin/skills/lisa-jira-write-ticket/SKILL.md +4 -4
  64. package/plugins/lisa/.codex-plugin/skills/lisa-learnings-audit/SKILL.md +64 -32
  65. package/plugins/lisa/.codex-plugin/skills/lisa-linear-build-intake/SKILL.md +9 -9
  66. package/plugins/lisa/.codex-plugin/skills/lisa-linear-to-tracker/SKILL.md +1 -1
  67. package/plugins/lisa/.codex-plugin/skills/lisa-linear-write-issue/SKILL.md +5 -5
  68. package/plugins/lisa/.codex-plugin/skills/lisa-monitor/SKILL.md +10 -4
  69. package/plugins/lisa/.codex-plugin/skills/lisa-notion-to-tracker/SKILL.md +1 -1
  70. package/plugins/lisa/.codex-plugin/skills/lisa-persist-learning/SKILL.md +5 -5
  71. package/plugins/lisa/.codex-plugin/skills/lisa-project-ideation/SKILL.md +10 -4
  72. package/plugins/lisa/.codex-plugin/skills/lisa-repair-intake/SKILL.md +24 -13
  73. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/SKILL.md +19 -2
  74. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/references/runbook-template.md +8 -4
  75. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-cycle.mjs +9 -0
  76. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-queue.mjs +6 -0
  77. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-usage.mjs +1 -1
  78. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/escalation-overruled.mjs +1 -1
  79. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/human-needed.mjs +16 -5
  80. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/reconcile.mjs +76 -9
  81. package/plugins/lisa/.codex-plugin/skills/lisa-setup-automations/SKILL.md +7 -5
  82. package/plugins/lisa/.codex-plugin/skills/lisa-track/SKILL.md +3 -3
  83. package/plugins/lisa/.codex-plugin/skills/lisa-usage-accounting/SKILL.md +5 -1
  84. package/plugins/lisa/agents/learning-judge.md +5 -5
  85. package/plugins/lisa/agents/skill-evaluator.md +4 -4
  86. package/plugins/lisa/commands/debrief/apply.md +1 -1
  87. package/plugins/lisa/commands/learnings/audit.md +2 -2
  88. package/plugins/lisa/commands/persist-learning.md +1 -1
  89. package/plugins/lisa/hooks/block-direct-issue-create.sh +10 -5
  90. package/plugins/lisa/hooks/block-no-verify.agy.sh +1 -1
  91. package/plugins/lisa/hooks/block-no-verify.sh +4 -3
  92. package/plugins/lisa/hooks/inject-resolved-config.mjs +236 -14
  93. package/plugins/lisa/hooks/threshold-ratchet.mjs +4 -2
  94. package/plugins/lisa/rules/eager/base-rules.md +1 -1
  95. package/plugins/lisa/rules/eager/do-it-now.md +2 -2
  96. package/plugins/lisa/rules/eager/learnings-ladder.md +1 -1
  97. package/plugins/lisa/rules/eager/security-audit-handling.md +5 -5
  98. package/plugins/lisa/rules/reference/automation-runbook-contract.md +37 -22
  99. package/plugins/lisa/rules/reference/base-rules.md +1 -1
  100. package/plugins/lisa/rules/reference/config-resolution.md +7 -6
  101. package/plugins/lisa/rules/reference/dependency-trust-classes.md +28 -18
  102. package/plugins/lisa/rules/reference/factory-model.md +17 -8
  103. package/plugins/lisa/rules/reference/intent-routing.md +3 -3
  104. package/plugins/lisa/rules/reference/learnings-ladder.md +1 -1
  105. package/plugins/lisa/rules/reference/promotion-contract.md +5 -2
  106. package/plugins/lisa/rules/reference/ready-role-filing.md +32 -22
  107. package/plugins/lisa/rules/reference/security-audit-handling.md +9 -6
  108. package/plugins/lisa/rules/reference/usage-accounting.md +29 -1
  109. package/plugins/lisa/scripts/blocker-edge-resolution.mjs +9 -5
  110. package/plugins/lisa/scripts/human-gate-act.mjs +104 -8
  111. package/plugins/lisa/scripts/human-gate-lift.mjs +14 -7
  112. package/plugins/lisa/scripts/intake-blocker-reprobe.mjs +215 -39
  113. package/plugins/lisa/scripts/ready-queue-order.mjs +9 -3
  114. package/plugins/lisa/skills/lisa-confluence-to-tracker/SKILL.md +1 -1
  115. package/plugins/lisa/skills/lisa-debrief-apply/SKILL.md +3 -3
  116. package/plugins/lisa/skills/lisa-debrief-apply/agents/openai.yaml +2 -2
  117. package/plugins/lisa/skills/lisa-drive-pr-to-merge/SKILL.md +18 -7
  118. package/plugins/lisa/skills/lisa-exploratory-qa/SKILL.md +23 -12
  119. package/plugins/lisa/skills/lisa-github-build-intake/SKILL.md +14 -9
  120. package/plugins/lisa/skills/lisa-github-to-tracker/SKILL.md +1 -1
  121. package/plugins/lisa/skills/lisa-github-write-issue/SKILL.md +2 -2
  122. package/plugins/lisa/skills/lisa-improve-harness/SKILL.md +24 -7
  123. package/plugins/lisa/skills/lisa-jira-build-intake/SKILL.md +14 -10
  124. package/plugins/lisa/skills/lisa-jira-write-ticket/SKILL.md +4 -4
  125. package/plugins/lisa/skills/lisa-learnings-audit/SKILL.md +64 -32
  126. package/plugins/lisa/skills/lisa-linear-build-intake/SKILL.md +9 -9
  127. package/plugins/lisa/skills/lisa-linear-to-tracker/SKILL.md +1 -1
  128. package/plugins/lisa/skills/lisa-linear-write-issue/SKILL.md +5 -5
  129. package/plugins/lisa/skills/lisa-monitor/SKILL.md +10 -4
  130. package/plugins/lisa/skills/lisa-notion-to-tracker/SKILL.md +1 -1
  131. package/plugins/lisa/skills/lisa-persist-learning/SKILL.md +5 -5
  132. package/plugins/lisa/skills/lisa-project-ideation/SKILL.md +10 -4
  133. package/plugins/lisa/skills/lisa-repair-intake/SKILL.md +24 -13
  134. package/plugins/lisa/skills/lisa-session-manager/SKILL.md +19 -2
  135. package/plugins/lisa/skills/lisa-session-manager/references/runbook-template.md +8 -4
  136. package/plugins/lisa/skills/lisa-session-manager/scripts/cli-cycle.mjs +9 -0
  137. package/plugins/lisa/skills/lisa-session-manager/scripts/cli-queue.mjs +6 -0
  138. package/plugins/lisa/skills/lisa-session-manager/scripts/cli-usage.mjs +1 -1
  139. package/plugins/lisa/skills/lisa-session-manager/scripts/escalation-overruled.mjs +1 -1
  140. package/plugins/lisa/skills/lisa-session-manager/scripts/human-needed.mjs +16 -5
  141. package/plugins/lisa/skills/lisa-session-manager/scripts/reconcile.mjs +76 -9
  142. package/plugins/lisa/skills/lisa-setup-automations/SKILL.md +7 -5
  143. package/plugins/lisa/skills/lisa-track/SKILL.md +3 -3
  144. package/plugins/lisa/skills/lisa-usage-accounting/SKILL.md +5 -1
  145. package/plugins/lisa-agy/agents/learning-judge.md +5 -5
  146. package/plugins/lisa-agy/agents/skill-evaluator.md +4 -4
  147. package/plugins/lisa-agy/commands/lisa/debrief/apply.md +1 -1
  148. package/plugins/lisa-agy/commands/lisa/learnings/audit.md +2 -2
  149. package/plugins/lisa-agy/commands/lisa/persist-learning.md +1 -1
  150. package/plugins/lisa-agy/hooks/block-direct-issue-create.sh +10 -5
  151. package/plugins/lisa-agy/hooks/block-no-verify.agy.sh +1 -1
  152. package/plugins/lisa-agy/plugin.json +1 -1
  153. package/plugins/lisa-agy/scripts/blocker-edge-resolution.mjs +9 -5
  154. package/plugins/lisa-agy/scripts/human-gate-act.mjs +104 -8
  155. package/plugins/lisa-agy/scripts/human-gate-lift.mjs +14 -7
  156. package/plugins/lisa-agy/scripts/intake-blocker-reprobe.mjs +215 -39
  157. package/plugins/lisa-agy/scripts/ready-queue-order.mjs +9 -3
  158. package/plugins/lisa-agy/skills/lisa-confluence-to-tracker/SKILL.md +1 -1
  159. package/plugins/lisa-agy/skills/lisa-debrief-apply/SKILL.md +3 -3
  160. package/plugins/lisa-agy/skills/lisa-drive-pr-to-merge/SKILL.md +18 -7
  161. package/plugins/lisa-agy/skills/lisa-exploratory-qa/SKILL.md +23 -12
  162. package/plugins/lisa-agy/skills/lisa-github-build-intake/SKILL.md +14 -9
  163. package/plugins/lisa-agy/skills/lisa-github-to-tracker/SKILL.md +1 -1
  164. package/plugins/lisa-agy/skills/lisa-github-write-issue/SKILL.md +2 -2
  165. package/plugins/lisa-agy/skills/lisa-improve-harness/SKILL.md +24 -7
  166. package/plugins/lisa-agy/skills/lisa-jira-build-intake/SKILL.md +14 -10
  167. package/plugins/lisa-agy/skills/lisa-jira-write-ticket/SKILL.md +4 -4
  168. package/plugins/lisa-agy/skills/lisa-learnings-audit/SKILL.md +64 -32
  169. package/plugins/lisa-agy/skills/lisa-linear-build-intake/SKILL.md +9 -9
  170. package/plugins/lisa-agy/skills/lisa-linear-to-tracker/SKILL.md +1 -1
  171. package/plugins/lisa-agy/skills/lisa-linear-write-issue/SKILL.md +5 -5
  172. package/plugins/lisa-agy/skills/lisa-monitor/SKILL.md +10 -4
  173. package/plugins/lisa-agy/skills/lisa-notion-to-tracker/SKILL.md +1 -1
  174. package/plugins/lisa-agy/skills/lisa-persist-learning/SKILL.md +5 -5
  175. package/plugins/lisa-agy/skills/lisa-project-ideation/SKILL.md +10 -4
  176. package/plugins/lisa-agy/skills/lisa-repair-intake/SKILL.md +24 -13
  177. package/plugins/lisa-agy/skills/lisa-session-manager/SKILL.md +19 -2
  178. package/plugins/lisa-agy/skills/lisa-session-manager/references/runbook-template.md +8 -4
  179. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-cycle.mjs +9 -0
  180. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-queue.mjs +6 -0
  181. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-usage.mjs +1 -1
  182. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/escalation-overruled.mjs +1 -1
  183. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/human-needed.mjs +16 -5
  184. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/reconcile.mjs +76 -9
  185. package/plugins/lisa-agy/skills/lisa-setup-automations/SKILL.md +7 -5
  186. package/plugins/lisa-agy/skills/lisa-track/SKILL.md +3 -3
  187. package/plugins/lisa-agy/skills/lisa-usage-accounting/SKILL.md +5 -1
  188. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  189. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  190. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  191. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  192. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  193. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  194. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  195. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  196. package/plugins/lisa-copilot/agents/learning-judge.agent.md +5 -5
  197. package/plugins/lisa-copilot/agents/skill-evaluator.agent.md +4 -4
  198. package/plugins/lisa-copilot/commands/lisa/debrief/apply.md +1 -1
  199. package/plugins/lisa-copilot/commands/lisa/learnings/audit.md +2 -2
  200. package/plugins/lisa-copilot/commands/lisa/persist-learning.md +1 -1
  201. package/plugins/lisa-copilot/hooks/block-direct-issue-create.sh +10 -5
  202. package/plugins/lisa-copilot/hooks/block-no-verify.sh +4 -3
  203. package/plugins/lisa-copilot/hooks/inject-resolved-config.mjs +236 -14
  204. package/plugins/lisa-copilot/hooks/threshold-ratchet.mjs +4 -2
  205. package/plugins/lisa-copilot/rules/eager/base-rules.md +1 -1
  206. package/plugins/lisa-copilot/rules/eager/do-it-now.md +2 -2
  207. package/plugins/lisa-copilot/rules/eager/learnings-ladder.md +1 -1
  208. package/plugins/lisa-copilot/rules/eager/security-audit-handling.md +5 -5
  209. package/plugins/lisa-copilot/rules/reference/automation-runbook-contract.md +37 -22
  210. package/plugins/lisa-copilot/rules/reference/base-rules.md +1 -1
  211. package/plugins/lisa-copilot/rules/reference/config-resolution.md +7 -6
  212. package/plugins/lisa-copilot/rules/reference/dependency-trust-classes.md +28 -18
  213. package/plugins/lisa-copilot/rules/reference/factory-model.md +17 -8
  214. package/plugins/lisa-copilot/rules/reference/intent-routing.md +3 -3
  215. package/plugins/lisa-copilot/rules/reference/learnings-ladder.md +1 -1
  216. package/plugins/lisa-copilot/rules/reference/promotion-contract.md +5 -2
  217. package/plugins/lisa-copilot/rules/reference/ready-role-filing.md +32 -22
  218. package/plugins/lisa-copilot/rules/reference/security-audit-handling.md +9 -6
  219. package/plugins/lisa-copilot/rules/reference/usage-accounting.md +29 -1
  220. package/plugins/lisa-copilot/scripts/blocker-edge-resolution.mjs +9 -5
  221. package/plugins/lisa-copilot/scripts/human-gate-act.mjs +104 -8
  222. package/plugins/lisa-copilot/scripts/human-gate-lift.mjs +14 -7
  223. package/plugins/lisa-copilot/scripts/intake-blocker-reprobe.mjs +215 -39
  224. package/plugins/lisa-copilot/scripts/ready-queue-order.mjs +9 -3
  225. package/plugins/lisa-copilot/skills/lisa-confluence-to-tracker/SKILL.md +1 -1
  226. package/plugins/lisa-copilot/skills/lisa-debrief-apply/SKILL.md +3 -3
  227. package/plugins/lisa-copilot/skills/lisa-drive-pr-to-merge/SKILL.md +18 -7
  228. package/plugins/lisa-copilot/skills/lisa-exploratory-qa/SKILL.md +23 -12
  229. package/plugins/lisa-copilot/skills/lisa-github-build-intake/SKILL.md +14 -9
  230. package/plugins/lisa-copilot/skills/lisa-github-to-tracker/SKILL.md +1 -1
  231. package/plugins/lisa-copilot/skills/lisa-github-write-issue/SKILL.md +2 -2
  232. package/plugins/lisa-copilot/skills/lisa-improve-harness/SKILL.md +24 -7
  233. package/plugins/lisa-copilot/skills/lisa-jira-build-intake/SKILL.md +14 -10
  234. package/plugins/lisa-copilot/skills/lisa-jira-write-ticket/SKILL.md +4 -4
  235. package/plugins/lisa-copilot/skills/lisa-learnings-audit/SKILL.md +64 -32
  236. package/plugins/lisa-copilot/skills/lisa-linear-build-intake/SKILL.md +9 -9
  237. package/plugins/lisa-copilot/skills/lisa-linear-to-tracker/SKILL.md +1 -1
  238. package/plugins/lisa-copilot/skills/lisa-linear-write-issue/SKILL.md +5 -5
  239. package/plugins/lisa-copilot/skills/lisa-monitor/SKILL.md +10 -4
  240. package/plugins/lisa-copilot/skills/lisa-notion-to-tracker/SKILL.md +1 -1
  241. package/plugins/lisa-copilot/skills/lisa-persist-learning/SKILL.md +5 -5
  242. package/plugins/lisa-copilot/skills/lisa-project-ideation/SKILL.md +10 -4
  243. package/plugins/lisa-copilot/skills/lisa-repair-intake/SKILL.md +24 -13
  244. package/plugins/lisa-copilot/skills/lisa-session-manager/SKILL.md +19 -2
  245. package/plugins/lisa-copilot/skills/lisa-session-manager/references/runbook-template.md +8 -4
  246. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-cycle.mjs +9 -0
  247. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-queue.mjs +6 -0
  248. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-usage.mjs +1 -1
  249. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/escalation-overruled.mjs +1 -1
  250. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/human-needed.mjs +16 -5
  251. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/reconcile.mjs +76 -9
  252. package/plugins/lisa-copilot/skills/lisa-setup-automations/SKILL.md +7 -5
  253. package/plugins/lisa-copilot/skills/lisa-track/SKILL.md +3 -3
  254. package/plugins/lisa-copilot/skills/lisa-usage-accounting/SKILL.md +5 -1
  255. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  256. package/plugins/lisa-cursor/agents/learning-judge.md +5 -5
  257. package/plugins/lisa-cursor/agents/skill-evaluator.md +4 -4
  258. package/plugins/lisa-cursor/commands/lisa/debrief/apply.md +1 -1
  259. package/plugins/lisa-cursor/commands/lisa/learnings/audit.md +2 -2
  260. package/plugins/lisa-cursor/commands/lisa/persist-learning.md +1 -1
  261. package/plugins/lisa-cursor/hooks/block-direct-issue-create.sh +10 -5
  262. package/plugins/lisa-cursor/hooks/block-no-verify.sh +4 -3
  263. package/plugins/lisa-cursor/hooks/inject-resolved-config.mjs +236 -14
  264. package/plugins/lisa-cursor/hooks/threshold-ratchet.mjs +4 -2
  265. package/plugins/lisa-cursor/rules/automation-runbook-contract-reference.mdc +37 -22
  266. package/plugins/lisa-cursor/rules/base-rules-reference.mdc +1 -1
  267. package/plugins/lisa-cursor/rules/base-rules.mdc +1 -1
  268. package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +7 -6
  269. package/plugins/lisa-cursor/rules/dependency-trust-classes-reference.mdc +28 -18
  270. package/plugins/lisa-cursor/rules/do-it-now.mdc +2 -2
  271. package/plugins/lisa-cursor/rules/factory-model-reference.mdc +17 -8
  272. package/plugins/lisa-cursor/rules/intent-routing-reference.mdc +3 -3
  273. package/plugins/lisa-cursor/rules/learnings-ladder-reference.mdc +1 -1
  274. package/plugins/lisa-cursor/rules/learnings-ladder.mdc +1 -1
  275. package/plugins/lisa-cursor/rules/promotion-contract-reference.mdc +5 -2
  276. package/plugins/lisa-cursor/rules/ready-role-filing-reference.mdc +32 -22
  277. package/plugins/lisa-cursor/rules/security-audit-handling-reference.mdc +9 -6
  278. package/plugins/lisa-cursor/rules/security-audit-handling.mdc +5 -5
  279. package/plugins/lisa-cursor/rules/usage-accounting-reference.mdc +29 -1
  280. package/plugins/lisa-cursor/scripts/blocker-edge-resolution.mjs +9 -5
  281. package/plugins/lisa-cursor/scripts/human-gate-act.mjs +104 -8
  282. package/plugins/lisa-cursor/scripts/human-gate-lift.mjs +14 -7
  283. package/plugins/lisa-cursor/scripts/intake-blocker-reprobe.mjs +215 -39
  284. package/plugins/lisa-cursor/scripts/ready-queue-order.mjs +9 -3
  285. package/plugins/lisa-cursor/skills/lisa-confluence-to-tracker/SKILL.md +1 -1
  286. package/plugins/lisa-cursor/skills/lisa-debrief-apply/SKILL.md +3 -3
  287. package/plugins/lisa-cursor/skills/lisa-drive-pr-to-merge/SKILL.md +18 -7
  288. package/plugins/lisa-cursor/skills/lisa-exploratory-qa/SKILL.md +23 -12
  289. package/plugins/lisa-cursor/skills/lisa-github-build-intake/SKILL.md +14 -9
  290. package/plugins/lisa-cursor/skills/lisa-github-to-tracker/SKILL.md +1 -1
  291. package/plugins/lisa-cursor/skills/lisa-github-write-issue/SKILL.md +2 -2
  292. package/plugins/lisa-cursor/skills/lisa-improve-harness/SKILL.md +24 -7
  293. package/plugins/lisa-cursor/skills/lisa-jira-build-intake/SKILL.md +14 -10
  294. package/plugins/lisa-cursor/skills/lisa-jira-write-ticket/SKILL.md +4 -4
  295. package/plugins/lisa-cursor/skills/lisa-learnings-audit/SKILL.md +64 -32
  296. package/plugins/lisa-cursor/skills/lisa-linear-build-intake/SKILL.md +9 -9
  297. package/plugins/lisa-cursor/skills/lisa-linear-to-tracker/SKILL.md +1 -1
  298. package/plugins/lisa-cursor/skills/lisa-linear-write-issue/SKILL.md +5 -5
  299. package/plugins/lisa-cursor/skills/lisa-monitor/SKILL.md +10 -4
  300. package/plugins/lisa-cursor/skills/lisa-notion-to-tracker/SKILL.md +1 -1
  301. package/plugins/lisa-cursor/skills/lisa-persist-learning/SKILL.md +5 -5
  302. package/plugins/lisa-cursor/skills/lisa-project-ideation/SKILL.md +10 -4
  303. package/plugins/lisa-cursor/skills/lisa-repair-intake/SKILL.md +24 -13
  304. package/plugins/lisa-cursor/skills/lisa-session-manager/SKILL.md +19 -2
  305. package/plugins/lisa-cursor/skills/lisa-session-manager/references/runbook-template.md +8 -4
  306. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-cycle.mjs +9 -0
  307. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-queue.mjs +6 -0
  308. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-usage.mjs +1 -1
  309. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/escalation-overruled.mjs +1 -1
  310. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/human-needed.mjs +16 -5
  311. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/reconcile.mjs +76 -9
  312. package/plugins/lisa-cursor/skills/lisa-setup-automations/SKILL.md +7 -5
  313. package/plugins/lisa-cursor/skills/lisa-track/SKILL.md +3 -3
  314. package/plugins/lisa-cursor/skills/lisa-usage-accounting/SKILL.md +5 -1
  315. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  316. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  317. package/plugins/lisa-devin/agents/learning-judge.md +5 -5
  318. package/plugins/lisa-devin/agents/skill-evaluator.md +4 -4
  319. package/plugins/lisa-devin/hooks/block-direct-issue-create.sh +10 -5
  320. package/plugins/lisa-devin/hooks/block-no-verify.sh +4 -3
  321. package/plugins/lisa-devin/hooks/inject-resolved-config.mjs +236 -14
  322. package/plugins/lisa-devin/hooks/threshold-ratchet.mjs +4 -2
  323. package/plugins/lisa-devin/rules/eager/base-rules.md +1 -1
  324. package/plugins/lisa-devin/rules/eager/do-it-now.md +2 -2
  325. package/plugins/lisa-devin/rules/eager/learnings-ladder.md +1 -1
  326. package/plugins/lisa-devin/rules/eager/security-audit-handling.md +5 -5
  327. package/plugins/lisa-devin/rules/reference/automation-runbook-contract.md +37 -22
  328. package/plugins/lisa-devin/rules/reference/base-rules.md +1 -1
  329. package/plugins/lisa-devin/rules/reference/config-resolution.md +7 -6
  330. package/plugins/lisa-devin/rules/reference/dependency-trust-classes.md +28 -18
  331. package/plugins/lisa-devin/rules/reference/factory-model.md +17 -8
  332. package/plugins/lisa-devin/rules/reference/intent-routing.md +3 -3
  333. package/plugins/lisa-devin/rules/reference/learnings-ladder.md +1 -1
  334. package/plugins/lisa-devin/rules/reference/promotion-contract.md +5 -2
  335. package/plugins/lisa-devin/rules/reference/ready-role-filing.md +32 -22
  336. package/plugins/lisa-devin/rules/reference/security-audit-handling.md +9 -6
  337. package/plugins/lisa-devin/rules/reference/usage-accounting.md +29 -1
  338. package/plugins/lisa-devin/scripts/blocker-edge-resolution.mjs +9 -5
  339. package/plugins/lisa-devin/scripts/human-gate-act.mjs +104 -8
  340. package/plugins/lisa-devin/scripts/human-gate-lift.mjs +14 -7
  341. package/plugins/lisa-devin/scripts/intake-blocker-reprobe.mjs +215 -39
  342. package/plugins/lisa-devin/scripts/ready-queue-order.mjs +9 -3
  343. package/plugins/lisa-devin/skills/lisa-confluence-to-tracker/SKILL.md +1 -1
  344. package/plugins/lisa-devin/skills/lisa-debrief-apply/SKILL.md +3 -3
  345. package/plugins/lisa-devin/skills/lisa-drive-pr-to-merge/SKILL.md +18 -7
  346. package/plugins/lisa-devin/skills/lisa-exploratory-qa/SKILL.md +23 -12
  347. package/plugins/lisa-devin/skills/lisa-github-build-intake/SKILL.md +14 -9
  348. package/plugins/lisa-devin/skills/lisa-github-to-tracker/SKILL.md +1 -1
  349. package/plugins/lisa-devin/skills/lisa-github-write-issue/SKILL.md +2 -2
  350. package/plugins/lisa-devin/skills/lisa-improve-harness/SKILL.md +24 -7
  351. package/plugins/lisa-devin/skills/lisa-jira-build-intake/SKILL.md +14 -10
  352. package/plugins/lisa-devin/skills/lisa-jira-write-ticket/SKILL.md +4 -4
  353. package/plugins/lisa-devin/skills/lisa-learnings-audit/SKILL.md +64 -32
  354. package/plugins/lisa-devin/skills/lisa-linear-build-intake/SKILL.md +9 -9
  355. package/plugins/lisa-devin/skills/lisa-linear-to-tracker/SKILL.md +1 -1
  356. package/plugins/lisa-devin/skills/lisa-linear-write-issue/SKILL.md +5 -5
  357. package/plugins/lisa-devin/skills/lisa-monitor/SKILL.md +10 -4
  358. package/plugins/lisa-devin/skills/lisa-notion-to-tracker/SKILL.md +1 -1
  359. package/plugins/lisa-devin/skills/lisa-persist-learning/SKILL.md +5 -5
  360. package/plugins/lisa-devin/skills/lisa-project-ideation/SKILL.md +10 -4
  361. package/plugins/lisa-devin/skills/lisa-repair-intake/SKILL.md +24 -13
  362. package/plugins/lisa-devin/skills/lisa-session-manager/SKILL.md +19 -2
  363. package/plugins/lisa-devin/skills/lisa-session-manager/references/runbook-template.md +8 -4
  364. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-cycle.mjs +9 -0
  365. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-queue.mjs +6 -0
  366. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-usage.mjs +1 -1
  367. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/escalation-overruled.mjs +1 -1
  368. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/human-needed.mjs +16 -5
  369. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/reconcile.mjs +76 -9
  370. package/plugins/lisa-devin/skills/lisa-setup-automations/SKILL.md +7 -5
  371. package/plugins/lisa-devin/skills/lisa-track/SKILL.md +3 -3
  372. package/plugins/lisa-devin/skills/lisa-usage-accounting/SKILL.md +5 -1
  373. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  374. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  375. package/plugins/lisa-expo-agy/plugin.json +1 -1
  376. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  377. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  378. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  379. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  380. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  381. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  382. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  383. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  384. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  385. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  386. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  387. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  388. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  389. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  390. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  391. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  392. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  393. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  394. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  395. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  396. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  397. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  398. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  399. package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
  400. package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
  401. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  402. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  403. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  404. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  405. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  406. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  407. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  408. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  409. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  410. package/plugins/lisa-rails-agy/plugin.json +1 -1
  411. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  412. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  413. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  414. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  415. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  416. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  417. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  418. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  419. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  420. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  421. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  422. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  423. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  424. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  425. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  426. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  427. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  428. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  429. package/plugins/src/base/agents/learning-judge.md +5 -5
  430. package/plugins/src/base/agents/skill-evaluator.md +4 -4
  431. package/plugins/src/base/commands/debrief/apply.md +1 -1
  432. package/plugins/src/base/commands/learnings/audit.md +2 -2
  433. package/plugins/src/base/commands/persist-learning.md +1 -1
  434. package/plugins/src/base/hooks/block-direct-issue-create.sh +10 -5
  435. package/plugins/src/base/hooks/block-no-verify.agy.sh +1 -1
  436. package/plugins/src/base/hooks/block-no-verify.sh +4 -3
  437. package/plugins/src/base/hooks/inject-resolved-config.mjs +236 -14
  438. package/plugins/src/base/hooks/threshold-ratchet.mjs +4 -2
  439. package/plugins/src/base/rules/eager/base-rules.md +1 -1
  440. package/plugins/src/base/rules/eager/do-it-now.md +2 -2
  441. package/plugins/src/base/rules/eager/learnings-ladder.md +1 -1
  442. package/plugins/src/base/rules/eager/security-audit-handling.md +5 -5
  443. package/plugins/src/base/rules/reference/automation-runbook-contract.md +37 -22
  444. package/plugins/src/base/rules/reference/base-rules.md +1 -1
  445. package/plugins/src/base/rules/reference/config-resolution.md +7 -6
  446. package/plugins/src/base/rules/reference/dependency-trust-classes.md +28 -18
  447. package/plugins/src/base/rules/reference/factory-model.md +17 -8
  448. package/plugins/src/base/rules/reference/intent-routing.md +3 -3
  449. package/plugins/src/base/rules/reference/learnings-ladder.md +1 -1
  450. package/plugins/src/base/rules/reference/promotion-contract.md +5 -2
  451. package/plugins/src/base/rules/reference/ready-role-filing.md +32 -22
  452. package/plugins/src/base/rules/reference/security-audit-handling.md +9 -6
  453. package/plugins/src/base/rules/reference/usage-accounting.md +29 -1
  454. package/plugins/src/base/scripts/blocker-edge-resolution.mjs +9 -5
  455. package/plugins/src/base/scripts/human-gate-act.mjs +104 -8
  456. package/plugins/src/base/scripts/human-gate-lift.mjs +14 -7
  457. package/plugins/src/base/scripts/intake-blocker-reprobe.mjs +215 -39
  458. package/plugins/src/base/scripts/ready-queue-order.mjs +9 -3
  459. package/plugins/src/base/skills/lisa-confluence-to-tracker/SKILL.md +1 -1
  460. package/plugins/src/base/skills/lisa-debrief-apply/SKILL.md +3 -3
  461. package/plugins/src/base/skills/lisa-drive-pr-to-merge/SKILL.md +18 -7
  462. package/plugins/src/base/skills/lisa-exploratory-qa/SKILL.md +23 -12
  463. package/plugins/src/base/skills/lisa-github-build-intake/SKILL.md +14 -9
  464. package/plugins/src/base/skills/lisa-github-to-tracker/SKILL.md +1 -1
  465. package/plugins/src/base/skills/lisa-github-write-issue/SKILL.md +2 -2
  466. package/plugins/src/base/skills/lisa-improve-harness/SKILL.md +24 -7
  467. package/plugins/src/base/skills/lisa-jira-build-intake/SKILL.md +14 -10
  468. package/plugins/src/base/skills/lisa-jira-write-ticket/SKILL.md +4 -4
  469. package/plugins/src/base/skills/lisa-learnings-audit/SKILL.md +64 -32
  470. package/plugins/src/base/skills/lisa-linear-build-intake/SKILL.md +9 -9
  471. package/plugins/src/base/skills/lisa-linear-to-tracker/SKILL.md +1 -1
  472. package/plugins/src/base/skills/lisa-linear-write-issue/SKILL.md +5 -5
  473. package/plugins/src/base/skills/lisa-monitor/SKILL.md +10 -4
  474. package/plugins/src/base/skills/lisa-notion-to-tracker/SKILL.md +1 -1
  475. package/plugins/src/base/skills/lisa-persist-learning/SKILL.md +5 -5
  476. package/plugins/src/base/skills/lisa-project-ideation/SKILL.md +10 -4
  477. package/plugins/src/base/skills/lisa-repair-intake/SKILL.md +24 -13
  478. package/plugins/src/base/skills/lisa-session-manager/SKILL.md +19 -2
  479. package/plugins/src/base/skills/lisa-session-manager/references/runbook-template.md +8 -4
  480. package/plugins/src/base/skills/lisa-session-manager/scripts/cli-cycle.mjs +9 -0
  481. package/plugins/src/base/skills/lisa-session-manager/scripts/cli-queue.mjs +6 -0
  482. package/plugins/src/base/skills/lisa-session-manager/scripts/cli-usage.mjs +1 -1
  483. package/plugins/src/base/skills/lisa-session-manager/scripts/escalation-overruled.mjs +1 -1
  484. package/plugins/src/base/skills/lisa-session-manager/scripts/human-needed.mjs +16 -5
  485. package/plugins/src/base/skills/lisa-session-manager/scripts/reconcile.mjs +76 -9
  486. package/plugins/src/base/skills/lisa-setup-automations/SKILL.md +7 -5
  487. package/plugins/src/base/skills/lisa-track/SKILL.md +3 -3
  488. package/plugins/src/base/skills/lisa-usage-accounting/SKILL.md +5 -1
  489. package/rails/copy-overwrite/scripts/check-threshold-ratchet.mjs +4 -2
  490. package/typescript/copy-contents/.husky/pre-commit +3 -2
  491. package/typescript/copy-overwrite/.github/GITHUB_ACTIONS.md +2 -1
  492. package/typescript/copy-overwrite/scripts/check-threshold-ratchet.mjs +4 -2
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: lisa-exploratory-qa
3
- description: First-time-user exploratory QA pass for ANY product type (DOM web app, HTTP/API backend, canvas game, CLI/library, IaC/CDK) that FEEDS THE LIFECYCLE. Use when asked to experience a product the way a brand-new end user would — driving its real consumer-facing interface via the `use-the-product` core (which detects the product type, resolves the per-environment mutation policy from .lisa.config.json so production data is never mutated by accident, and explores through the project's personas when it defines them) to find anything confusing, broken, or hard to use. Static route scans, HTTP fetches, screenshots alone, or console/network checks alone are not sufficient evidence. Instead of writing a report file, it files worthwhile findings as tracked work items via lisa-tracker-write. A `ready` parameter controls whether those tickets are created build-ready (auto-picked-up by lisa-intake) or left in the backlog for human triage (default). For gaps in the automated test suite, use e2e-coverage-gaps instead.
3
+ description: First-time-user exploratory QA pass for ANY product type (DOM web app, HTTP/API backend, canvas game, CLI/library, IaC/CDK) that FEEDS THE LIFECYCLE. Use when asked to experience a product the way a brand-new end user would — driving its real consumer-facing interface via the `use-the-product` core (which detects the product type, resolves the per-environment mutation policy from .lisa.config.json so production data is never mutated by accident, and explores through the project's personas when it defines them) to find anything confusing, broken, or hard to use. Static route scans, HTTP fetches, screenshots alone, or console/network checks alone are not sufficient evidence. Instead of writing a report file, it files worthwhile findings as tracked work items via lisa-tracker-write. A `ready` parameter picks build-ready (picked up by lisa-intake) or backlog; it defaults to build-ready, or backlog under humanGate.mode strict. For gaps in the automated test suite, use e2e-coverage-gaps instead.
4
4
  ---
5
5
 
6
6
  # Exploratory QA
@@ -16,9 +16,12 @@ Experience the product the way a **brand-new end user** would: drive its real co
16
16
  ## Parameters
17
17
 
18
18
  - **`target-url | env`** (first positional) — what to explore (passed through to `use-the-product`).
19
- - **`ready=true|false`** — the build-ready state for the tickets this pass creates.
20
- - `ready=true` → created build-ready, so `lisa-intake` / the build-intake scanner auto-picks them up.
21
- - `ready=false` (**default**) → created in the backlog for a human to review and promote.
19
+ - **`ready=true|false`** — the build-ready state for the tickets this pass creates. The default
20
+ follows `humanGate.mode`:
21
+ - `ready=true` (**default** under `humanGate.mode: "access-only"`) → created build-ready, so
22
+ `lisa-intake` / the build-intake scanner auto-picks them up.
23
+ - `ready=false` (**default** under `humanGate.mode: "strict"`, or passed explicitly by the
24
+ operator) → created in the backlog for a human to review and promote.
22
25
 
23
26
  ## 1. Set up
24
27
 
@@ -69,12 +72,14 @@ Kane never files the work item itself. Even when it marks a failure as a confirm
69
72
 
70
73
  | Finding | `issue_type` | `build_ready` |
71
74
  |---|---|---|
72
- | User-visible **bug** (broken behavior) | `Bug` | the `ready` flag (default `false`) |
73
- | **Usability / UX / clarity issue** | `Improvement` | the `ready` flag (default `false`) |
75
+ | User-visible **bug** (broken behavior) | `Bug` | the `ready` flag (default per `humanGate.mode`) |
76
+ | **Usability / UX / clarity issue** | `Improvement` | the `ready` flag (default per `humanGate.mode`) |
74
77
 
75
78
  Each finding is a flat leaf, so `build_ready` applies directly — pass it explicitly on every create.
76
79
 
77
- **This skill is the named human-gate exception under `ready-role-filing`.** For accepted worthwhile work elsewhere in Lisa, a complete defect found during other work is filed with explicit `build_ready: true` so build-intake claims it next cycle. Exploratory QA is deliberately different, and that difference is ratified rather than drift: its findings are *candidate* defects and usability observations whose **product significance is a human call**, so auto-readying them would push judgment work into the build queue — precisely the failure the gate model exists to prevent. Its default `ready=false` is therefore an **explicit human-gate marker, never a bare omission**: every not-ready create passes `human_gate: "exploratory finding — product significance is a human product call"` alongside `build_ready: false`, and the writer stamps the auditable `[lisa-human-gate]` marker. An operator who wants a pass to feed the queue directly opts in with `ready=true`.
80
+ **Under the default `humanGate.mode: "access-only"`, you judge each finding's product significance yourself.** File only the findings you judge worthwhile, build-ready (`build_ready: true`), with a `Decision:` line in the description saying why the finding matters and to whom, so a person can reverse the call later. A finding you judge not worthwhile is not filed; name it and the reason in the pass summary. When the operator passes `ready=false`, that is an explicit operator hold: every create passes `human_gate: "the operator explicitly asked for this exploratory pass to be held for review"` alongside `build_ready: false`.
81
+
82
+ **Under `humanGate.mode: "strict"`, this skill is the named human-gate exception under `ready-role-filing`.** Exploratory findings are then treated as *candidate* defects and usability observations whose **product significance is a human call**. The default `ready=false` is an **explicit human-gate marker, never a bare omission**: every not-ready create passes `human_gate: "exploratory finding — product significance is a human product call"` alongside `build_ready: false`, and the writer stamps the auditable `[lisa-human-gate]` marker. An operator who wants a strict-mode pass to feed the queue directly opts in with `ready=true`.
78
83
 
79
84
  (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.)
80
85
 
@@ -156,9 +161,14 @@ teardown proposal through `lisa-tracker-write` (per `tracked-work` + `integratio
156
161
  **Completed** means the prior approved action happened, so a later recurrence may be re-filed.
157
162
  When an existing proposal suppresses filing, **the run still records `policy-obsolete` and files
158
163
  nothing** — the outcome describes this run, while the ticket is filed exactly once.
159
- - **Labels** `status:blocked` + `human-needed`, carrying the contract's decision-ready packet. The
160
- `human-needed` label marks the proposal human-owned: `lisa-repair-intake` recognizes it and never
161
- re-dispatches it as stalled work.
164
+ - **Labels** follow `humanGate.mode`. Under the default `access-only` the loop makes the call
165
+ itself: it picks one response from the evidence below (tear down, or re-cadence to a named longer
166
+ cadence), states it with its reasoning, and files the proposal build-ready (`status:ready`), so the
167
+ factory run that claims it performs that response with the matching command. If that run cannot
168
+ reach the scheduler, it holds the item naming that access. Under `strict`: `status:blocked` +
169
+ `human-needed`, carrying the contract's decision-ready packet. The `human-needed` label marks the
170
+ proposal human-owned: `lisa-repair-intake` recognizes it and never re-dispatches it as stalled
171
+ work.
162
172
  - **Evidence** the date-filtered search result, this run's summary, **the loop's current cadence**
163
173
  (the baseline an operator needs to choose a longer one), and a one-line summary of recent runs
164
174
  read from `.lisa/automations/runs/exploratory-bugs.jsonl`. Fill the rest of the packet the same
@@ -173,7 +183,8 @@ teardown proposal through `lisa-tracker-write` (per `tracked-work` + `integratio
173
183
  - **Operator footer**, verbatim, as on every loop-filed proposal (`rejection-detection`):
174
184
  > To stop this from being raised again, close it as **Not planned**. Close it as **Completed** if it was fixed — a later recurrence may be re-filed as a regression.
175
185
 
176
- The loop **keeps running at its normal cadence** until a human acts, and never deletes its own
186
+ The loop **keeps running at its normal cadence** until the proposal is acted on (by the factory run
187
+ that claims it under `access-only`, by a human under `strict`), and never deletes its own
177
188
  registration.
178
189
 
179
190
  ## Quality bar
@@ -181,5 +192,5 @@ registration.
181
192
  - Explore as a true first-time user — judge clarity, not whether you (who can read the code) can figure it out.
182
193
  - Every ticket must stand alone for an implementer who was not in the session.
183
194
  - Do not claim cleanup succeeded unless verified.
184
- - File per the `ready` flag (default: backlog for human triage).
195
+ - File per the `ready` flag (default: build-ready under `access-only`, backlog for human triage under `strict`).
185
196
  - Route automated-coverage gaps to `e2e-coverage-gaps`; preserve unrelated repo changes.
@@ -240,14 +240,14 @@ A blocker is a **claim with a timestamp, not a fact** — it goes stale the mome
240
240
  true, and nothing re-read one before this phase. For each `$BLOCKED` candidate:
241
241
 
242
242
  1. **Read release comments before applying the human gate.** Pass all item comments, labels,
243
- body, `trustedHumanActorIds` and configured `humanNeededLabel` to `classifyReadyCandidate(...)`. For a discharged hold,
244
- call `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels, alreadyNotified })`
243
+ body, `trustedHumanActorIds`, configured `humanNeededLabel`, `humanOnly` and `humanGateMode` to `classifyReadyCandidate(...)`. For a discharged hold,
244
+ call `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, humanGateMode, readyLabel, lifecycleLabels, alreadyNotified })`
245
245
  and retain its plan. Apply human-marker cleanup only as planned; defer any ready-role restoration
246
246
  until steps 2–5 have cleared the remaining blockers (map the role to the vendor's state or label).
247
247
  A still-active hold is never auto-selected, whatever any probe says. An absent or unreadable
248
248
  comment history cannot discharge a hold. A release removes only the human hold: continue the
249
249
  remaining blocker checks below before selecting the item.
250
- Lift invalid holds first: call `planHumanGateLift({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels })` from `scripts/human-gate-lift.mjs`. Post its `comments` and apply only
250
+ Lift invalid holds first: call `planHumanGateLift({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, humanGateMode, readyLabel, lifecycleLabels })` from `scripts/human-gate-lift.mjs`. Post its `comments` and apply only
251
251
  `removeHumanNeededLabel` here; defer `addReadyLabel` until the remaining blocker checks below
252
252
  clear, exactly as for a release. A hold that names no act an agent cannot perform then never
253
253
  blocks selection, and an item with a real blocker never skips the re-probe. A hold that is
@@ -258,9 +258,14 @@ true, and nothing re-read one before this phase. For each `$BLOCKED` candidate:
258
258
 
259
259
  2. **Extract the stated discharge condition**, then **probe it**. Machine-testable conditions — a
260
260
  version on trunk, a published package, a CI run history, an advisory's patched status — rot
261
- fastest and are cheapest to check. A human decision is not machine-testable; leave it.
261
+ fastest and are cheapest to check. A condition that is a decision rather than a fact is not machine-testable, but it is not a reason to
262
+ wait: when the evidence supports a call, make it, record a `Decision:` line on the item (what was
263
+ chosen and why) as the discharging evidence, and treat the condition as discharged. Leave the
264
+ item only when the condition needs access the agent lacks (name it) or is a hold the operator
265
+ explicitly asked for. Under `humanGate.mode: "strict"`, leave every decision for a person.
262
266
  3. **Classify with `classifyPreWorkCandidate(...)`** from `scripts/intake-blocker-reprobe.mjs`.
263
- Include the structured `comments` and `trustedHumanActorIds` from step 1.
267
+ Include the structured `comments`, `trustedHumanActorIds`, `humanOnly` and `humanGateMode`
268
+ from step 1.
264
269
  A discharge with no recorded evidence is not a discharge, and neither is a candidate nothing
265
270
  probed this cycle — the helper refuses both.
266
271
  4. **Record the result on the issue either way** via `formatReprobeNote(...)` as a comment, so the
@@ -353,8 +358,8 @@ other gate's verdict — however conclusive — may promote an item a person par
353
358
 
354
359
  **Lift invalid holds before classifying.** A hold filed under the old "human product call"
355
360
  wording that names no act an agent cannot perform is not a hold (`ready-role-filing`, "What a human
356
- gate is"), and no person should have to comment to end it. Call `planHumanGateLift({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels })` from `scripts/human-gate-lift.mjs`, with `humanOnly` read
357
- from `humanGate.humanOnly` in config. Post each string in its `comments` once (each begins
361
+ gate is"), and no person should have to comment to end it. Call `planHumanGateLift({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, humanGateMode, readyLabel, lifecycleLabels })` from `scripts/human-gate-lift.mjs`, with `humanOnly` read
362
+ from `humanGate.humanOnly` and `humanGateMode` from `humanGate.mode` in config (one call: `node scripts/human-gate-act.mjs policy` prints both; a reader that omits the mode judges under access-only, so a strict project must pass it). Post each string in its `comments` once (each begins
358
363
  `[lisa-human-gate-lifted] reason=<slug>` and explains why), apply its `actions` (remove the
359
364
  human-needed marker, add the ready role back), then classify below with those comments included. A
360
365
  valid hold (credential, spend, sign-off, and the rest) plans nothing and stays held; so does a
@@ -377,7 +382,7 @@ printed even at zero.
377
382
  and re-rejected every cycle forever and seen by nothing — `lisa-repair-intake` sweeps items that
378
383
  are **not** in the ready role and excludes gated ones outright, so a ready-and-gated item falls
379
384
  outside its filter twice over. Call
380
- `planHumanGateReconciliation({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, alreadyNotified })`
385
+ `planHumanGateReconciliation({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, humanGateMode, readyLabel, alreadyNotified })`
381
386
  and apply exactly the actions it returns: remove `$READY`, add the configured human-needed
382
387
  marker, and post `formatHumanGateNote()` once. The planner is idempotent by state, so an item
383
388
  already out of the lane and already marked yields no second mutation and no second comment. This
@@ -387,7 +392,7 @@ printed even at zero.
387
392
  This ready-lane candidate can retain a historical body marker and a human-needed label.
388
393
  This step reconciles only candidates still in the ready lane; released holds outside it are
389
394
  recovered by `lisa-repair-intake` step 2b (or Phase 2.5 when included in this cycle). Call
390
- `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels, alreadyNotified })`
395
+ `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, humanGateMode, readyLabel, lifecycleLabels, alreadyNotified })`
391
396
  and apply exactly the actions it returns: remove the configured human-needed marker, add the
392
397
  configured ready role back, and post `formatHumanGateReleaseNote()` once. It is the exact inverse
393
398
  of step 3's planner and it refuses in both directions — an item still held plans nothing, and an
@@ -367,7 +367,7 @@ To run the gate, this skill must:
367
367
 
368
368
  1. Pull the remote links / `## Source Artifacts` section / `## Links` section of every Epic and Story created in this run via `lisa-tracker-read`.
369
369
  2. Apply the §8 preservation matrix and verdict rules.
370
- 3. If the gate fails: list each dropped/misrouted artifact and either re-attach via `lisa-tracker-write` (UPDATE mode) or stop and ask the human.
370
+ 3. If the gate fails: list each dropped/misrouted artifact and re-attach each via `lisa-tracker-write` (UPDATE mode), choosing the destination ticket from the evidence and recording why. Stop only when re-attaching needs access you lack (for example, the source artifact or the tracker cannot be reached), and name that access.
371
371
  4. If the gate passes: print the matrix compactly and proceed to Phase 6.
372
372
 
373
373
  This gate is not optional.
@@ -241,7 +241,7 @@ If the issue is not a Bug and not an Epic, it MUST have a parent sub-issue:
241
241
  gh issue list --repo <org>/<repo> --label type:Epic --state open --json number,title,body --limit 100
242
242
  ```
243
243
  Match on keywords from the summary and description.
244
- 3. If no Epic matches, stop and ask the human to create or pick one. Do NOT orphan the issue.
244
+ 3. If no Epic matches exactly, pick or create it yourself from the evidence: use the open Epic the summary, description and linked work fit best, or, when none fits, create a new Epic (this skill, `issue_type: Epic`) scoped to the work. Record the choice and why in the issue body so a person can re-parent it later. Do NOT orphan the issue.
245
245
 
246
246
  ### 4b. Related issues
247
247
 
@@ -330,7 +330,7 @@ For non-build-ready issues created fresh (Epics, Stories, and other containers),
330
330
 
331
331
  **A filing with neither is an incomplete handoff.** A leaf that is not build-ready must carry an explicit `human_gate: "<the act a person must perform>"`; nothing in the ready lane means nothing ever claims it. When `human_gate` is supplied, stamp the hold on the issue so it is auditable — after the check below.
332
332
 
333
- **Validate the gate before stamping it.** A `human_gate` is for an act an agent cannot perform — a credential only a person holds, spend, an external account, a legal or compliance sign-off, naming an accountable person, acting in a system the agent cannot reach, or a decision class the project declared human-only (`humanGate.humanOnly`). A choice with a reasonable default is a decision, not a gate (`ready-role-filing`, "What a human gate is"). Run the check on the reason:
333
+ **Validate the gate before stamping it.** A `human_gate` is for an act an agent cannot perform — an access act: `credential` (complete a login or supply a credential only a person holds), `spend`, `external-account`, `legal-signoff` (sign a legal agreement on the company's behalf), `person-only-account` (a protected deployment, a required reviewer, an account only a person holds), `unreachable-system`, or `operator-hold` (a hold the operator explicitly asked for); `human-authored-surface` (an edit to a surface declared human-authored, which no agent writes: an authorship rule, valid in both modes); or a decision class the project declared human-only (`humanGate.humanOnly`). Under `humanGate.mode: "strict"` the strict-only acts `compliance-signoff`, `accountable-person` and `lisa-policy` also count. A choice with a reasonable default is a decision, not a gate (`ready-role-filing`, "What a human gate is"). Run the check on the reason:
334
334
 
335
335
  ```bash
336
336
  node "${CLAUDE_PLUGIN_ROOT:-node_modules/@codyswann/lisa/plugins/lisa}/scripts/human-gate-act.mjs" check --reason "<the human_gate reason>"
@@ -190,8 +190,23 @@ authority — if any of these hold:
190
190
 
191
191
  **On any of those: file a proposed-intervention ticket via `lisa-tracker-write` and STOP.** The
192
192
  ticket carries the job contract, the earliest failed handoff, the gap classification with
193
- evidence, and the proposed change with its expected mechanism; labels `type:harness`,
194
- `status:blocked` plus an explicit `human_gate: "a human approves the proposed harness intervention"` per `ready-role-filing` (human-flipped to `status:ready` when approved). Post the result record with
193
+ evidence, and the proposed change with its expected mechanism; label `type:harness`. How it is
194
+ filed follows `humanGate.mode`:
195
+
196
+ - **`access-only` (default):** file it build-ready (`build_ready: true`, `status:ready`), with a
197
+ `Decision:` line saying why this intervention is the right one, so the normal factory implements
198
+ it as an ordinary work item under its own review gates. The one exception is an intervention that
199
+ needs access the agent lacks (condition 3: a new credential, paid tool, or account only a person
200
+ holds): file it `status:blocked` with `human_gate: "<the access a person must provide>"`, naming
201
+ that access, per `ready-role-filing`. The other exception is an intervention whose change lands
202
+ on a **human-authored surface** (`.agents/rules/`, `PROJECT_RULES.md`, `AGENTS.md`, or any
203
+ surface the project declares human-authored): no agent writes those, so it passes
204
+ `human_gate: "a person edits <surface>, which is declared human-authored, so no agent may write
205
+ it"`. That is an authorship rule, not an access gate, and it holds in both modes.
206
+ - **`strict`:** `status:blocked` plus an explicit `human_gate: "a human approves the proposed
207
+ harness intervention"` per `ready-role-filing` (human-flipped to `status:ready` when approved).
208
+
209
+ Either way, this run stops here. Post the result record with
195
210
  `Verdict: bounded-authority-stop`, `Decision: n/a (proposed-intervention, <url>)`, and
196
211
  terminate. Implementing it anyway is the failure mode this phase exists to prevent.
197
212
 
@@ -401,16 +416,18 @@ In headless mode:
401
416
 
402
417
  - **No mutation of the working tree, any managed surface, or the default branch.** Phase 5 does
403
418
  not edit, branch, or commit; it *drafts* the smallest owning change and files it as a
404
- proposed-intervention ticket via `lisa-tracker-write` (`type:harness`, `status:blocked`), with
405
- the drafted diff sketch, the expected mechanism, and the verification plan.
419
+ proposed-intervention ticket via `lisa-tracker-write` (`type:harness`, filed per
420
+ `humanGate.mode` exactly as in Phase 5's out-of-authority path), with the drafted diff sketch,
421
+ the expected mechanism, and the verification plan.
406
422
  - Phases 6 and 7 do not run (there is nothing applied to verify); the result record carries
407
423
  `Verdict: headless-proposal-only`, `Decision: n/a (proposed-intervention, <url>)`, and a
408
424
  `Known limits` line saying no rerun evidence exists. This verdict is deliberately distinct
409
425
  from `bounded-authority-stop`, so an operator can tell "the fix was too big to make" from
410
426
  "the automation never touches anything".
411
- - **The only writes are the result record and the proposed-intervention ticket(s).** Anything
412
- further requires a human flipping that ticket to `status:ready`, after which the normal
413
- factory (or an interactive invocation) implements it.
427
+ - **The only writes are the result record and the proposed-intervention ticket(s).** Under
428
+ `access-only` the ticket is already build-ready, so the normal factory implements it; under
429
+ `strict` (or for a ticket held on named missing access) it waits for a human to flip it to
430
+ `status:ready`, after which the normal factory (or an interactive invocation) implements it.
414
431
  - Never a prompt, never a question, never a blocked wait — anywhere in this skill, in either
415
432
  mode.
416
433
 
@@ -213,14 +213,14 @@ A blocker is a **claim with a timestamp, not a fact** — it goes stale the mome
213
213
  true, and nothing re-read one before this phase. For each pre-work candidate outside `$READY`:
214
214
 
215
215
  1. **Read release comments before applying the human gate.** Pass all item comments, labels,
216
- body, `trustedHumanActorIds` and configured `humanNeededLabel` to `classifyReadyCandidate(...)`. For a discharged hold,
217
- call `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels, alreadyNotified })`
216
+ body, `trustedHumanActorIds`, configured `humanNeededLabel`, `humanOnly` and `humanGateMode` to `classifyReadyCandidate(...)`. For a discharged hold,
217
+ call `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, humanGateMode, readyLabel, lifecycleLabels, alreadyNotified })`
218
218
  and retain its plan. Apply human-marker cleanup only as planned; defer any ready-role restoration
219
219
  until steps 2–5 have cleared the remaining blockers (map the role to the vendor's state or label).
220
220
  A still-active hold is never auto-selected, whatever any probe says. An absent or unreadable
221
221
  comment history cannot discharge a hold. A release removes only the human hold: continue the
222
222
  remaining blocker checks below before selecting the item.
223
- Lift invalid holds first: call `planHumanGateLift({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels })` from `scripts/human-gate-lift.mjs`. Post its `comments` and apply only
223
+ Lift invalid holds first: call `planHumanGateLift({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, humanGateMode, readyLabel, lifecycleLabels })` from `scripts/human-gate-lift.mjs`. Post its `comments` and apply only
224
224
  `removeHumanNeededLabel` here; defer `addReadyLabel` until the remaining blocker checks below
225
225
  clear, exactly as for a release. A hold that names no act an agent cannot perform then never
226
226
  blocks selection, and an item with a real blocker never skips the re-probe. A hold that is
@@ -231,10 +231,14 @@ true, and nothing re-read one before this phase. For each pre-work candidate out
231
231
 
232
232
  2. **Extract the stated discharge condition**, then **probe it**. Machine-testable conditions — a
233
233
  version on trunk, a published package, a CI run history, an advisory's patched status — rot
234
- fastest and are cheapest to check. A human decision is not machine-testable; leave it.
234
+ fastest and are cheapest to check. A condition that is a decision rather than a fact is not machine-testable, but it is not a reason to
235
+ wait: when the evidence supports a call, make it, record a `Decision:` line on the item (what was
236
+ chosen and why) as the discharging evidence, and treat the condition as discharged. Leave the
237
+ item only when the condition needs access the agent lacks (name it) or is a hold the operator
238
+ explicitly asked for. Under `humanGate.mode: "strict"`, leave every decision for a person.
235
239
  3. **Classify with `classifyPreWorkCandidate(...)`** from
236
- `scripts/intake-blocker-reprobe.mjs`, including the structured `comments` and
237
- `trustedHumanActorIds` from step 1. A discharge with no recorded evidence is not a discharge,
240
+ `scripts/intake-blocker-reprobe.mjs`, including the structured `comments`,
241
+ `trustedHumanActorIds`, `humanOnly` and `humanGateMode` from step 1. A discharge with no recorded evidence is not a discharge,
238
242
  and neither is a candidate nothing probed this cycle — the helper refuses both.
239
243
  4. **Record the result on the ticket either way** via `formatReprobeNote(...)` as a comment, so the
240
244
  next cycle reads the answer rather than re-deriving it. Keep it idempotent.
@@ -257,8 +261,8 @@ other gate's verdict — however conclusive — may promote an item a person par
257
261
 
258
262
  **Lift invalid holds before classifying.** A hold filed under the old "human product call"
259
263
  wording that names no act an agent cannot perform is not a hold (`ready-role-filing`, "What a human
260
- gate is"), and no person should have to comment to end it. Call `planHumanGateLift({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels })` from `scripts/human-gate-lift.mjs`, with `humanOnly` read
261
- from `humanGate.humanOnly` in config. Post each string in its `comments` once (each begins
264
+ gate is"), and no person should have to comment to end it. Call `planHumanGateLift({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, humanGateMode, readyLabel, lifecycleLabels })` from `scripts/human-gate-lift.mjs`, with `humanOnly` read
265
+ from `humanGate.humanOnly` and `humanGateMode` from `humanGate.mode` in config (one call: `node scripts/human-gate-act.mjs policy` prints both; a reader that omits the mode judges under access-only, so a strict project must pass it). Post each string in its `comments` once (each begins
262
266
  `[lisa-human-gate-lifted] reason=<slug>` and explains why), apply its `actions` (remove the
263
267
  human-needed marker, add the ready role back), then classify below with those comments included. A
264
268
  valid hold (credential, spend, sign-off, and the rest) plans nothing and stays held; so does a
@@ -281,7 +285,7 @@ printed even at zero.
281
285
  and re-rejected every cycle forever and seen by nothing — `lisa-repair-intake` sweeps items that
282
286
  are **not** in the ready role and excludes gated ones outright, so a ready-and-gated item falls
283
287
  outside its filter twice over. Call
284
- `planHumanGateReconciliation({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, alreadyNotified })`
288
+ `planHumanGateReconciliation({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, humanGateMode, readyLabel, alreadyNotified })`
285
289
  and apply exactly the actions it returns: remove `$READY`, add the configured human-needed
286
290
  marker, and post `formatHumanGateNote()` once. The planner is idempotent by state, so an item
287
291
  already out of the lane and already marked yields no second mutation and no second comment. This
@@ -291,7 +295,7 @@ printed even at zero.
291
295
  This ready-lane candidate can retain a historical body marker and a human-needed label.
292
296
  This step reconciles only candidates still in the ready lane; released holds outside it are
293
297
  recovered by `lisa-repair-intake` step 2b (or Phase 2.5 when included in this cycle). Call
294
- `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels, alreadyNotified })`
298
+ `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, humanGateMode, readyLabel, lifecycleLabels, alreadyNotified })`
295
299
  and apply exactly the actions it returns: remove the configured human-needed marker, add the
296
300
  configured ready role back, and post `formatHumanGateReleaseNote()` once. It is the exact inverse
297
301
  of step 3's planner and it refuses in both directions — an item still held plans nothing, and an
@@ -82,7 +82,7 @@ Required fields (stop and ask if missing — do not invent values):
82
82
 
83
83
  | Field | Required For | Notes |
84
84
  |-------|--------------|-------|
85
- | Project key | CREATE | Resolve from `.lisa.config.json` (`jira.project`); ask the human if not configured |
85
+ | Project key | CREATE | Resolve from `.lisa.config.json` (`jira.project`); if not configured, pick it from the evidence (the projects `lisa-atlassian-access` can reach, the keys this repo's history and linked tickets use) and record the choice. Stop only when Jira is unreachable, naming the missing access |
86
86
  | Issue type | CREATE | Story, Task, Bug, Epic, Spike, Sub-task, Improvement |
87
87
  | Summary | CREATE, UPDATE | One line, imperative voice, under 100 chars |
88
88
  | Description | CREATE, UPDATE | Multi-section — see Phase 3 |
@@ -218,7 +218,7 @@ If the ticket is not a Bug and not an Epic, it MUST have an epic parent:
218
218
  project = <PROJECT> AND issuetype = Epic AND statusCategory != Done
219
219
  ```
220
220
  via `lisa-atlassian-access` `operation: search-issues jql: "<query>"`. Match on keywords from the summary and description.
221
- 3. If no epic matches, stop and ask the human to create or pick one. Do NOT orphan the ticket.
221
+ 3. If no epic matches exactly, pick or create it yourself from the evidence: use the active epic the summary, description and linked work fit best, or, when none fits, create a new epic (this skill, `issue_type: Epic`) scoped to the work. Record the choice and why in the ticket description so a person can re-parent it later. Do NOT orphan the ticket.
222
222
 
223
223
  ### 4b. Related Tickets
224
224
 
@@ -315,7 +315,7 @@ Before create/update, verify each field is populated where applicable:
315
315
 
316
316
  **A filing with neither is an incomplete handoff.** A leaf that is not build-ready must carry an explicit `human_gate: "<the act a person must perform>"`; nothing in the ready status means nothing ever claims it. When `human_gate` is supplied, stamp the hold on the ticket so it is auditable — after the check below.
317
317
 
318
- **Validate the gate before stamping it.** A `human_gate` is for an act an agent cannot perform — a credential only a person holds, spend, an external account, a legal or compliance sign-off, naming an accountable person, acting in a system the agent cannot reach, or a decision class the project declared human-only (`humanGate.humanOnly`). A choice with a reasonable default is a decision, not a gate (`ready-role-filing`, "What a human gate is"). Run the check on the reason:
318
+ **Validate the gate before stamping it.** A `human_gate` is for an act an agent cannot perform — an access act: `credential` (complete a login or supply a credential only a person holds), `spend`, `external-account`, `legal-signoff` (sign a legal agreement on the company's behalf), `person-only-account` (a protected deployment, a required reviewer, an account only a person holds), `unreachable-system`, or `operator-hold` (a hold the operator explicitly asked for); `human-authored-surface` (an edit to a surface declared human-authored, which no agent writes: an authorship rule, valid in both modes); or a decision class the project declared human-only (`humanGate.humanOnly`). Under `humanGate.mode: "strict"` the strict-only acts `compliance-signoff`, `accountable-person` and `lisa-policy` also count. A choice with a reasonable default is a decision, not a gate (`ready-role-filing`, "What a human gate is"). Run the check on the reason:
319
319
 
320
320
  ```bash
321
321
  node "${CLAUDE_PLUGIN_ROOT:-node_modules/@codyswann/lisa/plugins/lisa}/scripts/human-gate-act.mjs" check --reason "<the human_gate reason>"
@@ -360,7 +360,7 @@ The validator is the **single source of truth** for what makes a valid ticket. T
360
360
 
361
361
  If the validator reports `FAIL`:
362
362
  - Surface the failure list and the per-gate remediation to the user.
363
- - Do NOT proceed to Phase 6. Fix the spec (or stop and ask the human) and re-run validation.
363
+ - Do NOT proceed to Phase 6. Fix the spec yourself from the evidence and re-run validation; stop only when a fix needs access you lack, and name that access.
364
364
  - Never invoke `lisa-atlassian-access` with `operation: write-ticket` while the validator's verdict is FAIL.
365
365
 
366
366
  If the validator reports `PASS`, continue to Phase 6.
@@ -1,13 +1,16 @@
1
1
  ---
2
2
  name: lisa-learnings-audit
3
- description: "The gardener of the learnings ladder (PRD #1729). Periodically audits every knowledge surface — ledger, rules trees (including Lisa's own shipped eager rules), skills, wiki index, and mechanical-control surfaces — gathers evidence per item (recurrence, staleness, redundancy, contradiction, budget pressure), classifies each candidate through the ladder router (skill-evaluator, advisory), and communicates exclusively through the tracker: one evidence-bearing ticket per PROMOTE/DEMOTE, one batch ticket per run for CONFIRM/RETIRE, upstream Lisa issues for upstream-scoped patterns. Everything is human-gated at v1 — the skill only files tickets; humans gate by flipping status:ready or closing as rejected, and rejections are remembered. Cron-able via lisa-setup-automations and runnable on demand via /lisa:learnings:audit."
3
+ description: "The gardener of the learnings ladder (PRD #1729). Periodically audits every knowledge surface — ledger, rules trees (including Lisa's own shipped eager rules), skills, wiki index, and mechanical-control surfaces — gathers evidence per item (recurrence, staleness, redundancy, contradiction, budget pressure), classifies each candidate through the ladder router (skill-evaluator, advisory), and communicates exclusively through the tracker: one evidence-bearing ticket per PROMOTE/DEMOTE, one batch ticket per run for CONFIRM/RETIRE, upstream Lisa issues for upstream-scoped patterns. The skill only files tickets: under the default humanGate.mode access-only they file build-ready (status:ready) and the factory implements them, except a change to a human-authored surface, which stays human-gated; under humanGate.mode strict every ticket is human-gated. Rejections (tickets closed as not planned) are remembered. Cron-able via lisa-setup-automations and runnable on demand via /lisa:learnings:audit."
4
4
  allowed-tools: ["Skill", "Bash", "Read", "Glob", "Grep"]
5
5
  ---
6
6
 
7
7
  # Learnings Audit (the gardener): $ARGUMENTS
8
8
 
9
9
  Run one audit cycle over this project's knowledge surfaces and convert what the
10
- evidence supports into **human-gated tracker tickets** — nothing else. The
10
+ evidence supports into **tracker tickets** — nothing else. Under the default
11
+ `humanGate.mode: "access-only"` those tickets file build-ready and the factory
12
+ implements them; under `humanGate.mode: "strict"` they are **human-gated**
13
+ (see Ticket emission). The
11
14
  gardener is the only flow in Lisa that takes knowledge *back out* or moves it
12
15
  *up* the ladder; it closes the loop that capture (learner, debrief-apply, MLD)
13
16
  opens.
@@ -23,8 +26,10 @@ not capped), `surface=<ledger|rules|skills|wiki|all>` (default `all`),
23
26
  Keep the knowledge system from silting up: every learning lives at the
24
27
  cheapest rung that still prevents the mistake (per the six-rung ladder,
25
28
  PRD #1729), prose never duplicates a mechanical owner, the eager tier shrinks
26
- over time, and every change to "what the agents believe" is approved by a
27
- human through the tracker. A quiet run with nothing to propose is a healthy
29
+ over time, and every change to "what the agents believe" passes through the
30
+ tracker as an evidence-bearing ticket a person can read and reverse — approved
31
+ by a human only under `humanGate.mode: "strict"` or when the destination is a
32
+ human-authored surface. A quiet run with nothing to propose is a healthy
28
33
  outcome and says so in its one-line summary.
29
34
 
30
35
  ## Sources of truth
@@ -113,7 +118,8 @@ Never promote a check into a stage other than the one it names.
113
118
  A recurring miss counts once per `[lisa-planning-miss]` note on distinct items.
114
119
 
115
120
  **Auto-merged low-confidence entries are re-reviewed first.** A project
116
- that sets `learnings.lowConfidence: "auto-merge"` (resolve it with
121
+ whose `learnings.lowConfidence` resolves to `"auto-merge"` — the default
122
+ under `humanGate.mode: "access-only"` — (resolve it with
117
123
  `resolveLearningsSettings(config).lowConfidence` from
118
124
  `@codyswann/lisa/learnings`) lets `lisa-persist-learning` merge `low`
119
125
  learnings without a human reading them (CodySwannGT/lisa#4659). In that mode,
@@ -128,7 +134,8 @@ checked first, never evidence for a change: RETIRE or DEMOTE still needs
128
134
  proof (a contradiction, staleness, a mechanical owner), and Recurrence
129
135
  evidence that it applied is a CONFIRM. Name these entries in the run proof
130
136
  (`low-confidence re-reviewed: <ids>`), so an operator can see that the
131
- skipped human gate was paid for here. Under the default `human-triage` a
137
+ skipped human gate was paid for here. Under `human-triage` (the default
138
+ only under `humanGate.mode: "strict"`) a
132
139
  `low` entry reached the ledger only through a human merge, so it keeps the
133
140
  normal order.
134
141
 
@@ -223,13 +230,25 @@ audits the auditor without re-running it.
223
230
  ## Ticket emission
224
231
 
225
232
  All project-tracker writes go through **`lisa-tracker-write`** so gardener
226
- tickets pass the same validation gates as all factory work. Nothing is created
227
- `status:ready` — the human flips. Per `ready-role-filing` that hold is
228
- **declared, not implied**: every gardener ticket passes
229
- `human_gate: "a human decides whether this knowledge is promoted, demoted, or
230
- retired"` so the writer stamps the auditable `[lisa-human-gate]` marker. An
231
- omitted flag would be indistinguishable from the accidental non-ready filing
232
- the rule exists to catch.
233
+ tickets pass the same validation gates as all factory work. Resolve
234
+ `humanGate.mode` from `.lisa.config.json` (default `"access-only"`):
235
+
236
+ - **`access-only` (default)** — file every PROMOTE / DEMOTE / RETIRE /
237
+ CONFIRM ticket **build-ready** (`status:ready`), with no `human_gate`. The
238
+ gardener has the evidence and the access, so it makes the call; the
239
+ ticket's evidence and rationale are the recorded reasoning a person can
240
+ reverse later. The one exception is a ticket whose change lands on a
241
+ **human-authored surface** (`.agents/rules/`, `PROJECT_RULES.md`,
242
+ `AGENTS.md`, or any surface the project declares human-authored): no agent
243
+ writes those, so it passes `human_gate: "a person edits <surface>, which is
244
+ declared human-authored, so no agent may write it"`. That is an authorship
245
+ rule, not an access gate, and it holds in both modes.
246
+ - **`strict`** — nothing is created `status:ready`; the human flips. Per
247
+ `ready-role-filing` that hold is **declared, not implied**: every gardener
248
+ ticket passes `human_gate: "a human decides whether this knowledge is
249
+ promoted, demoted, or retired"` so the writer stamps the auditable
250
+ `[lisa-human-gate]` marker. An omitted flag would be indistinguishable from
251
+ the accidental non-ready filing the rule exists to catch.
233
252
 
234
253
  **Per-item tickets — PROMOTE / DEMOTE** (`issue_type: Task`; GitHub trackers
235
254
  carry the `type:Task` label) — one ticket per recommendation, capped by
@@ -276,7 +295,9 @@ at audit time (`learning-` plus 20 hex digits, or a legacy token). It is not the
276
295
  12-hex `<invariant-hash>` in the row's `[lisa-gardener]` marker — the two are
277
296
  different identifiers, and only the entry fingerprint shows whether a later
278
297
  consolidation rewrote the entry behind the same id. Rows are individually
279
- strikeable — the human deletes rows they reject, then flips the ticket ready.
298
+ strikeable. Under `access-only` the batch files build-ready and a person
299
+ may still strike a row before the factory picks it up; under `strict` the
300
+ human deletes rows they reject, then flips the ticket ready.
280
301
  The gardener **never bumps `last_confirmed` itself**: the bumps are executed
281
302
  by the **implementing factory run** that picks up the flipped batch ticket.
282
303
  Embed the following execution contract **verbatim** (markers included — do
@@ -384,15 +405,19 @@ it as **Completed** if it was fixed — a later recurrence may be re-filed as a
384
405
 
385
406
  ## Autonomous-vs-approval boundary
386
407
 
387
- **Everything is human-gated at v1 — this skill only files tickets.** The
388
- gardener never edits, writes, or deletes any rule, skill, wiki page, ledger
389
- entry, lint config, or hook itself; it never merges, transitions, or flips
390
- anything to `status:ready`; it never bumps `last_confirmed`. Autonomous
391
- actions are limited to: reading surfaces, gathering evidence, invoking the
392
- advisory router, and creating/commenting marker-deduped tickets. Humans gate
393
- by flipping a ticket to `status:ready` (the factory then executes it like any
394
- work item, honoring the `promotion-contract` rule) or closing it as rejected.
395
- A future `learnings.autoApply` config may widen this; v1 ships none.
408
+ **This skill only files tickets.** The gardener never edits, writes, or
409
+ deletes any rule, skill, wiki page, ledger entry, lint config, or hook itself;
410
+ it never merges or transitions an existing ticket; it never bumps
411
+ `last_confirmed`. Autonomous actions are limited to: reading surfaces,
412
+ gathering evidence, invoking the advisory router, and creating/commenting
413
+ marker-deduped tickets. The factory then executes each `status:ready` ticket
414
+ like any work item, honoring the `promotion-contract` rule.
415
+
416
+ Who gates depends on `humanGate.mode` (see Ticket emission). Under the
417
+ default `access-only` the gardener decides: it files build-ready and the
418
+ factory implements, and only a change to a human-authored surface is
419
+ human-gated. Under `strict` everything is human-gated: humans gate by
420
+ flipping a ticket to `status:ready` or closing it as rejected.
396
421
 
397
422
  ## Escalation
398
423
 
@@ -414,8 +439,10 @@ rather than reissued. **Filing order**: file the per-item PROMOTE/DEMOTE
414
439
  tickets first and the CONFIRM/RETIRE **batch ticket last** — the batch is the
415
440
  run's completion signal, so a crash mid-run leaves individually
416
441
  marker-recoverable per-item tickets and a missing (not half-filled) batch:
417
- the most recoverable state. Never attempt to "roll back" filed tickets —
418
- close-out decisions belong to humans.
442
+ the most recoverable state. Never attempt to "roll back" filed tickets by
443
+ deleting them. Close-out decisions are the agent's: when new evidence shows a
444
+ filed ticket is wrong or redundant, close it with the evidence in a comment so
445
+ a person can reopen it.
419
446
 
420
447
  ## Run outcomes
421
448
 
@@ -500,10 +527,14 @@ automation, through `lisa-tracker-write` (per `tracked-work` +
500
527
  candidate evidence, not the dedupe key. When an existing proposal suppresses
501
528
  filing, **the run still records `policy-obsolete` and files nothing** — the
502
529
  outcome describes this run, while the ticket is filed exactly once.
503
- - **Labels** `status:blocked` + `human-needed`, carrying the contract's
504
- decision-ready packet. The `human-needed` label marks the proposal
505
- human-owned: `lisa-repair-intake` recognizes it and never re-dispatches it as
506
- stalled work.
530
+ - **Labels** follow `humanGate.mode`. Under the default `access-only` the loop makes the call
531
+ itself: it picks one response from the evidence below (tear down, or re-cadence to a named longer
532
+ cadence), states it with its reasoning, and files the proposal build-ready (`status:ready`), so the
533
+ factory run that claims it performs that response with the matching command. If that run cannot
534
+ reach the scheduler, it holds the item naming that access. Under `strict`: `status:blocked` +
535
+ `human-needed`, carrying the contract's decision-ready packet. The `human-needed` label marks the
536
+ proposal human-owned: `lisa-repair-intake` recognizes it and never re-dispatches it as stalled
537
+ work.
507
538
  - **Evidence** the date-filtered search result, this run's summary, **the
508
539
  loop's current cadence** (the baseline an operator needs to choose a longer
509
540
  one), and a one-line summary of recent runs read from
@@ -521,9 +552,10 @@ automation, through `lisa-tracker-write` (per `tracked-work` +
521
552
  (`rejection-detection`):
522
553
  > To stop this from being raised again, close it as **Not planned**. Close it as **Completed** if it was fixed — a later recurrence may be re-filed as a regression.
523
554
 
524
- The gardener **keeps running at its normal cadence** until a human flips that
525
- ticket — retirement is a recommendation like any other, never a self-executed
526
- exit — and it never deletes its own
555
+ The gardener **keeps running at its normal cadence** until that ticket is
556
+ acted on (by the factory run that claims it under `access-only`, by a human
557
+ under `strict`) — retirement is never a self-executed exit within the run that
558
+ proposes it — and it never deletes its own
527
559
  registration.
528
560
 
529
561
  ## Scheduling
@@ -212,14 +212,14 @@ A blocker is a **claim with a timestamp, not a fact**. It is written once and go
212
212
  For each pre-work candidate that is **not** in `$READY`:
213
213
 
214
214
  1. **Read release comments before applying the human gate.** Pass all item comments, labels,
215
- body, `trustedHumanActorIds` and configured `humanNeededLabel` to `classifyReadyCandidate(...)`. For a discharged hold,
216
- call `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels, alreadyNotified })`
215
+ body, `trustedHumanActorIds`, configured `humanNeededLabel`, `humanOnly` and `humanGateMode` to `classifyReadyCandidate(...)`. For a discharged hold,
216
+ call `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, humanGateMode, readyLabel, lifecycleLabels, alreadyNotified })`
217
217
  and retain its plan. Apply human-marker cleanup only as planned; defer any ready-role restoration
218
218
  until steps 2–5 have cleared the remaining blockers (map the role to the vendor's state or label).
219
219
  A still-active hold is never auto-selected, whatever any probe says. An absent or unreadable
220
220
  comment history cannot discharge a hold. A release removes only the human hold: continue the
221
221
  remaining blocker checks below before selecting the item.
222
- Lift invalid holds first: call `planHumanGateLift({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels })` from `scripts/human-gate-lift.mjs`. Post its `comments` and apply only
222
+ Lift invalid holds first: call `planHumanGateLift({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, humanGateMode, readyLabel, lifecycleLabels })` from `scripts/human-gate-lift.mjs`. Post its `comments` and apply only
223
223
  `removeHumanNeededLabel` here; defer `addReadyLabel` until the remaining blocker checks below
224
224
  clear, exactly as for a release. A hold that names no act an agent cannot perform then never
225
225
  blocks selection, and an item with a real blocker never skips the re-probe. A hold that is
@@ -229,11 +229,11 @@ For each pre-work candidate that is **not** in `$READY`:
229
229
  step 2's probe. Keep probing any independent blocker the item states.
230
230
 
231
231
  2. **Extract the stated discharge condition** from the description or the most recent blocking comment — the sentence naming what has to become true.
232
- 3. **Probe it.** Machine-testable conditions are the ones that rot fastest and are cheapest to check: a version on trunk (`git show origin/<trunk>:<manifest>`), a published package, a run history (`gh run list`), an advisory's patched status. A condition that is a human decision is not machine-testable — leave it and move on.
232
+ 3. **Probe it.** Machine-testable conditions are the ones that rot fastest and are cheapest to check: a version on trunk (`git show origin/<trunk>:<manifest>`), a published package, a run history (`gh run list`), an advisory's patched status. A condition that is a decision rather than a fact is not machine-testable, but it is not a reason to wait: when the evidence supports a call, make it, record a `Decision:` line on the item (what was chosen and why) as the discharging evidence, and treat the condition as discharged. Leave the item only when the condition needs access the agent lacks (name it) or is a hold the operator explicitly asked for. Under `humanGate.mode: "strict"`, leave every decision for a person.
233
233
  4. **Classify with the shared helper** so the ordering and the evidence requirement cannot drift per vendor:
234
234
 
235
235
  ```text
236
- classifyPreWorkCandidate({ laneType, labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, statedBlocker, probe })
236
+ classifyPreWorkCandidate({ laneType, labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, humanGateMode, statedBlocker, probe })
237
237
  → { selectable, reason, humanGated, evidence }
238
238
  ```
239
239
 
@@ -258,8 +258,8 @@ other gate's verdict — however conclusive — may promote an item a person par
258
258
 
259
259
  **Lift invalid holds before classifying.** A hold filed under the old "human product call"
260
260
  wording that names no act an agent cannot perform is not a hold (`ready-role-filing`, "What a human
261
- gate is"), and no person should have to comment to end it. Call `planHumanGateLift({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels })` from `scripts/human-gate-lift.mjs`, with `humanOnly` read
262
- from `humanGate.humanOnly` in config. Post each string in its `comments` once (each begins
261
+ gate is"), and no person should have to comment to end it. Call `planHumanGateLift({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, humanGateMode, readyLabel, lifecycleLabels })` from `scripts/human-gate-lift.mjs`, with `humanOnly` read
262
+ from `humanGate.humanOnly` and `humanGateMode` from `humanGate.mode` in config (one call: `node scripts/human-gate-act.mjs policy` prints both; a reader that omits the mode judges under access-only, so a strict project must pass it). Post each string in its `comments` once (each begins
263
263
  `[lisa-human-gate-lifted] reason=<slug>` and explains why), apply its `actions` (remove the
264
264
  human-needed marker, add the ready role back), then classify below with those comments included. A
265
265
  valid hold (credential, spend, sign-off, and the rest) plans nothing and stays held; so does a
@@ -282,7 +282,7 @@ printed even at zero.
282
282
  and re-rejected every cycle forever and seen by nothing — `lisa-repair-intake` sweeps items that
283
283
  are **not** in the ready role and excludes gated ones outright, so a ready-and-gated item falls
284
284
  outside its filter twice over. Call
285
- `planHumanGateReconciliation({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, alreadyNotified })`
285
+ `planHumanGateReconciliation({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, humanGateMode, readyLabel, alreadyNotified })`
286
286
  and apply exactly the actions it returns: remove `$READY`, add the configured human-needed
287
287
  marker, and post `formatHumanGateNote()` once. The planner is idempotent by state, so an item
288
288
  already out of the lane and already marked yields no second mutation and no second comment. This
@@ -292,7 +292,7 @@ printed even at zero.
292
292
  This ready-lane candidate can retain a historical body marker and a human-needed label.
293
293
  This step reconciles only candidates still in the ready lane; released holds outside it are
294
294
  recovered by `lisa-repair-intake` step 2b (or Phase 2.5 when included in this cycle). Call
295
- `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels, alreadyNotified })`
295
+ `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, humanGateMode, readyLabel, lifecycleLabels, alreadyNotified })`
296
296
  and apply exactly the actions it returns: remove the configured human-needed marker, add the
297
297
  configured ready role back, and post `formatHumanGateReleaseNote()` once. It is the exact inverse
298
298
  of step 3's planner and it refuses in both directions — an item still held plans nothing, and an
@@ -364,7 +364,7 @@ To run the gate, this skill must:
364
364
 
365
365
  1. Pull the remote links of every epic and story created in this run via `lisa-tracker-read (vendor-neutral; dispatches to jira-read-ticket or github-read-issue)`.
366
366
  2. Apply the §8 preservation matrix and verdict rules.
367
- 3. If the gate fails: list each dropped/misrouted artifact and either re-attach via `lisa-tracker-write` (UPDATE mode) or stop and ask the human.
367
+ 3. If the gate fails: list each dropped/misrouted artifact and re-attach each via `lisa-tracker-write` (UPDATE mode), choosing the destination ticket from the evidence and recording why. Stop only when re-attaching needs access you lack (for example, the source artifact or the tracker cannot be reached), and name that access.
368
368
  4. If the gate passes: print the matrix compactly and proceed to Phase 6.
369
369
 
370
370
  This gate is not optional.