@codyswann/lisa 4.87.14 → 4.88.1

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 (309) hide show
  1. package/all/copy-overwrite/scripts/lisa-hooks/block-direct-issue-create.sh +13 -9
  2. package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +1 -1
  3. package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  4. package/dist/core/lisa-owned-hash-ledger.js +18 -0
  5. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  6. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  7. package/dist/core/nightly-e2e-guard-behavior-certificate.js.map +1 -1
  8. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  9. package/dist/core/upstream-evidence-manifest.js +66 -31
  10. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  11. package/dist/opencode/plugin-templates/lisa-block-direct-issue-create.ts +5 -2
  12. package/dist/sync/lifecycle-defaults.d.ts +1 -0
  13. package/dist/sync/lifecycle-defaults.d.ts.map +1 -1
  14. package/dist/sync/lifecycle-defaults.js +3 -0
  15. package/dist/sync/lifecycle-defaults.js.map +1 -1
  16. package/dist/sync/registry.d.ts.map +1 -1
  17. package/dist/sync/registry.js +6 -1
  18. package/dist/sync/registry.js.map +1 -1
  19. package/package.json +4 -4
  20. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  21. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  22. package/plugins/lisa/.codex-plugin/skills/lisa-agent-ready/SKILL.md +2 -2
  23. package/plugins/lisa/.codex-plugin/skills/lisa-github-build-intake/SKILL.md +21 -3
  24. package/plugins/lisa/.codex-plugin/skills/lisa-github-create/SKILL.md +1 -1
  25. package/plugins/lisa/.codex-plugin/skills/lisa-github-write-issue/SKILL.md +10 -2
  26. package/plugins/lisa/.codex-plugin/skills/lisa-jira-build-intake/SKILL.md +21 -3
  27. package/plugins/lisa/.codex-plugin/skills/lisa-jira-create/SKILL.md +1 -1
  28. package/plugins/lisa/.codex-plugin/skills/lisa-jira-write-ticket/SKILL.md +10 -2
  29. package/plugins/lisa/.codex-plugin/skills/lisa-linear-build-intake/SKILL.md +22 -4
  30. package/plugins/lisa/.codex-plugin/skills/lisa-linear-create/SKILL.md +1 -1
  31. package/plugins/lisa/.codex-plugin/skills/lisa-linear-write-issue/SKILL.md +10 -2
  32. package/plugins/lisa/.codex-plugin/skills/lisa-persist-learning/SKILL.md +3 -2
  33. package/plugins/lisa/.codex-plugin/skills/lisa-repair-intake/SKILL.md +29 -2
  34. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/SKILL.md +50 -5
  35. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-human.mjs +51 -14
  36. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-overruled.mjs +70 -0
  37. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-usage.mjs +23 -3
  38. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/escalation-overruled.mjs +327 -0
  39. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/human-needed.mjs +39 -11
  40. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/queue-github.mjs +14 -1
  41. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/session-manager.mjs +11 -1
  42. package/plugins/lisa/.codex-plugin/skills/lisa-task-decomposition/SKILL.md +2 -1
  43. package/plugins/lisa/.codex-plugin/skills/lisa-track/SKILL.md +5 -5
  44. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-build-intake/SKILL.md +6 -0
  45. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-create/SKILL.md +1 -1
  46. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-write/SKILL.md +1 -1
  47. package/plugins/lisa/agents/learning-judge.md +20 -5
  48. package/plugins/lisa/hooks/block-direct-issue-create.sh +13 -9
  49. package/plugins/lisa/rules/reference/automation-runbook-contract.md +3 -2
  50. package/plugins/lisa/rules/reference/config-resolution.md +3 -1
  51. package/plugins/lisa/rules/reference/ready-role-filing.md +56 -5
  52. package/plugins/lisa/scripts/human-gate-act.mjs +182 -0
  53. package/plugins/lisa/scripts/human-gate-lift.mjs +141 -0
  54. package/plugins/lisa/scripts/intake-blocker-reprobe.mjs +319 -5
  55. package/plugins/lisa/skills/lisa-agent-ready/SKILL.md +2 -2
  56. package/plugins/lisa/skills/lisa-github-build-intake/SKILL.md +21 -3
  57. package/plugins/lisa/skills/lisa-github-create/SKILL.md +1 -1
  58. package/plugins/lisa/skills/lisa-github-write-issue/SKILL.md +10 -2
  59. package/plugins/lisa/skills/lisa-jira-build-intake/SKILL.md +21 -3
  60. package/plugins/lisa/skills/lisa-jira-create/SKILL.md +1 -1
  61. package/plugins/lisa/skills/lisa-jira-write-ticket/SKILL.md +10 -2
  62. package/plugins/lisa/skills/lisa-linear-build-intake/SKILL.md +22 -4
  63. package/plugins/lisa/skills/lisa-linear-create/SKILL.md +1 -1
  64. package/plugins/lisa/skills/lisa-linear-write-issue/SKILL.md +10 -2
  65. package/plugins/lisa/skills/lisa-persist-learning/SKILL.md +3 -2
  66. package/plugins/lisa/skills/lisa-repair-intake/SKILL.md +29 -2
  67. package/plugins/lisa/skills/lisa-session-manager/SKILL.md +50 -5
  68. package/plugins/lisa/skills/lisa-session-manager/scripts/cli-human.mjs +51 -14
  69. package/plugins/lisa/skills/lisa-session-manager/scripts/cli-overruled.mjs +70 -0
  70. package/plugins/lisa/skills/lisa-session-manager/scripts/cli-usage.mjs +23 -3
  71. package/plugins/lisa/skills/lisa-session-manager/scripts/escalation-overruled.mjs +327 -0
  72. package/plugins/lisa/skills/lisa-session-manager/scripts/human-needed.mjs +39 -11
  73. package/plugins/lisa/skills/lisa-session-manager/scripts/queue-github.mjs +14 -1
  74. package/plugins/lisa/skills/lisa-session-manager/scripts/session-manager.mjs +11 -1
  75. package/plugins/lisa/skills/lisa-task-decomposition/SKILL.md +2 -1
  76. package/plugins/lisa/skills/lisa-track/SKILL.md +5 -5
  77. package/plugins/lisa/skills/lisa-tracker-build-intake/SKILL.md +6 -0
  78. package/plugins/lisa/skills/lisa-tracker-create/SKILL.md +1 -1
  79. package/plugins/lisa/skills/lisa-tracker-write/SKILL.md +1 -1
  80. package/plugins/lisa-agy/agents/learning-judge.md +20 -5
  81. package/plugins/lisa-agy/hooks/block-direct-issue-create.sh +13 -9
  82. package/plugins/lisa-agy/plugin.json +1 -1
  83. package/plugins/lisa-agy/scripts/human-gate-act.mjs +182 -0
  84. package/plugins/lisa-agy/scripts/human-gate-lift.mjs +141 -0
  85. package/plugins/lisa-agy/scripts/intake-blocker-reprobe.mjs +319 -5
  86. package/plugins/lisa-agy/skills/lisa-agent-ready/SKILL.md +2 -2
  87. package/plugins/lisa-agy/skills/lisa-github-build-intake/SKILL.md +21 -3
  88. package/plugins/lisa-agy/skills/lisa-github-create/SKILL.md +1 -1
  89. package/plugins/lisa-agy/skills/lisa-github-write-issue/SKILL.md +10 -2
  90. package/plugins/lisa-agy/skills/lisa-jira-build-intake/SKILL.md +21 -3
  91. package/plugins/lisa-agy/skills/lisa-jira-create/SKILL.md +1 -1
  92. package/plugins/lisa-agy/skills/lisa-jira-write-ticket/SKILL.md +10 -2
  93. package/plugins/lisa-agy/skills/lisa-linear-build-intake/SKILL.md +22 -4
  94. package/plugins/lisa-agy/skills/lisa-linear-create/SKILL.md +1 -1
  95. package/plugins/lisa-agy/skills/lisa-linear-write-issue/SKILL.md +10 -2
  96. package/plugins/lisa-agy/skills/lisa-persist-learning/SKILL.md +3 -2
  97. package/plugins/lisa-agy/skills/lisa-repair-intake/SKILL.md +29 -2
  98. package/plugins/lisa-agy/skills/lisa-session-manager/SKILL.md +50 -5
  99. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-human.mjs +51 -14
  100. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-overruled.mjs +70 -0
  101. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-usage.mjs +23 -3
  102. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/escalation-overruled.mjs +327 -0
  103. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/human-needed.mjs +39 -11
  104. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/queue-github.mjs +14 -1
  105. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/session-manager.mjs +11 -1
  106. package/plugins/lisa-agy/skills/lisa-task-decomposition/SKILL.md +2 -1
  107. package/plugins/lisa-agy/skills/lisa-track/SKILL.md +5 -5
  108. package/plugins/lisa-agy/skills/lisa-tracker-build-intake/SKILL.md +6 -0
  109. package/plugins/lisa-agy/skills/lisa-tracker-create/SKILL.md +1 -1
  110. package/plugins/lisa-agy/skills/lisa-tracker-write/SKILL.md +1 -1
  111. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  112. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  113. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  114. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  115. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  116. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  117. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  118. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  119. package/plugins/lisa-copilot/agents/learning-judge.agent.md +20 -5
  120. package/plugins/lisa-copilot/hooks/block-direct-issue-create.sh +13 -9
  121. package/plugins/lisa-copilot/rules/reference/automation-runbook-contract.md +3 -2
  122. package/plugins/lisa-copilot/rules/reference/config-resolution.md +3 -1
  123. package/plugins/lisa-copilot/rules/reference/ready-role-filing.md +56 -5
  124. package/plugins/lisa-copilot/scripts/human-gate-act.mjs +182 -0
  125. package/plugins/lisa-copilot/scripts/human-gate-lift.mjs +141 -0
  126. package/plugins/lisa-copilot/scripts/intake-blocker-reprobe.mjs +319 -5
  127. package/plugins/lisa-copilot/skills/lisa-agent-ready/SKILL.md +2 -2
  128. package/plugins/lisa-copilot/skills/lisa-github-build-intake/SKILL.md +21 -3
  129. package/plugins/lisa-copilot/skills/lisa-github-create/SKILL.md +1 -1
  130. package/plugins/lisa-copilot/skills/lisa-github-write-issue/SKILL.md +10 -2
  131. package/plugins/lisa-copilot/skills/lisa-jira-build-intake/SKILL.md +21 -3
  132. package/plugins/lisa-copilot/skills/lisa-jira-create/SKILL.md +1 -1
  133. package/plugins/lisa-copilot/skills/lisa-jira-write-ticket/SKILL.md +10 -2
  134. package/plugins/lisa-copilot/skills/lisa-linear-build-intake/SKILL.md +22 -4
  135. package/plugins/lisa-copilot/skills/lisa-linear-create/SKILL.md +1 -1
  136. package/plugins/lisa-copilot/skills/lisa-linear-write-issue/SKILL.md +10 -2
  137. package/plugins/lisa-copilot/skills/lisa-persist-learning/SKILL.md +3 -2
  138. package/plugins/lisa-copilot/skills/lisa-repair-intake/SKILL.md +29 -2
  139. package/plugins/lisa-copilot/skills/lisa-session-manager/SKILL.md +50 -5
  140. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-human.mjs +51 -14
  141. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-overruled.mjs +70 -0
  142. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-usage.mjs +23 -3
  143. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/escalation-overruled.mjs +327 -0
  144. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/human-needed.mjs +39 -11
  145. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/queue-github.mjs +14 -1
  146. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/session-manager.mjs +11 -1
  147. package/plugins/lisa-copilot/skills/lisa-task-decomposition/SKILL.md +2 -1
  148. package/plugins/lisa-copilot/skills/lisa-track/SKILL.md +5 -5
  149. package/plugins/lisa-copilot/skills/lisa-tracker-build-intake/SKILL.md +6 -0
  150. package/plugins/lisa-copilot/skills/lisa-tracker-create/SKILL.md +1 -1
  151. package/plugins/lisa-copilot/skills/lisa-tracker-write/SKILL.md +1 -1
  152. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  153. package/plugins/lisa-cursor/agents/learning-judge.md +20 -5
  154. package/plugins/lisa-cursor/hooks/block-direct-issue-create.sh +13 -9
  155. package/plugins/lisa-cursor/rules/automation-runbook-contract-reference.mdc +3 -2
  156. package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +3 -1
  157. package/plugins/lisa-cursor/rules/ready-role-filing-reference.mdc +56 -5
  158. package/plugins/lisa-cursor/scripts/human-gate-act.mjs +182 -0
  159. package/plugins/lisa-cursor/scripts/human-gate-lift.mjs +141 -0
  160. package/plugins/lisa-cursor/scripts/intake-blocker-reprobe.mjs +319 -5
  161. package/plugins/lisa-cursor/skills/lisa-agent-ready/SKILL.md +2 -2
  162. package/plugins/lisa-cursor/skills/lisa-github-build-intake/SKILL.md +21 -3
  163. package/plugins/lisa-cursor/skills/lisa-github-create/SKILL.md +1 -1
  164. package/plugins/lisa-cursor/skills/lisa-github-write-issue/SKILL.md +10 -2
  165. package/plugins/lisa-cursor/skills/lisa-jira-build-intake/SKILL.md +21 -3
  166. package/plugins/lisa-cursor/skills/lisa-jira-create/SKILL.md +1 -1
  167. package/plugins/lisa-cursor/skills/lisa-jira-write-ticket/SKILL.md +10 -2
  168. package/plugins/lisa-cursor/skills/lisa-linear-build-intake/SKILL.md +22 -4
  169. package/plugins/lisa-cursor/skills/lisa-linear-create/SKILL.md +1 -1
  170. package/plugins/lisa-cursor/skills/lisa-linear-write-issue/SKILL.md +10 -2
  171. package/plugins/lisa-cursor/skills/lisa-persist-learning/SKILL.md +3 -2
  172. package/plugins/lisa-cursor/skills/lisa-repair-intake/SKILL.md +29 -2
  173. package/plugins/lisa-cursor/skills/lisa-session-manager/SKILL.md +50 -5
  174. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-human.mjs +51 -14
  175. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-overruled.mjs +70 -0
  176. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-usage.mjs +23 -3
  177. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/escalation-overruled.mjs +327 -0
  178. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/human-needed.mjs +39 -11
  179. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/queue-github.mjs +14 -1
  180. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/session-manager.mjs +11 -1
  181. package/plugins/lisa-cursor/skills/lisa-task-decomposition/SKILL.md +2 -1
  182. package/plugins/lisa-cursor/skills/lisa-track/SKILL.md +5 -5
  183. package/plugins/lisa-cursor/skills/lisa-tracker-build-intake/SKILL.md +6 -0
  184. package/plugins/lisa-cursor/skills/lisa-tracker-create/SKILL.md +1 -1
  185. package/plugins/lisa-cursor/skills/lisa-tracker-write/SKILL.md +1 -1
  186. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  187. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  188. package/plugins/lisa-devin/agents/learning-judge.md +20 -5
  189. package/plugins/lisa-devin/hooks/block-direct-issue-create.sh +13 -9
  190. package/plugins/lisa-devin/rules/reference/automation-runbook-contract.md +3 -2
  191. package/plugins/lisa-devin/rules/reference/config-resolution.md +3 -1
  192. package/plugins/lisa-devin/rules/reference/ready-role-filing.md +56 -5
  193. package/plugins/lisa-devin/scripts/human-gate-act.mjs +182 -0
  194. package/plugins/lisa-devin/scripts/human-gate-lift.mjs +141 -0
  195. package/plugins/lisa-devin/scripts/intake-blocker-reprobe.mjs +319 -5
  196. package/plugins/lisa-devin/skills/lisa-agent-ready/SKILL.md +2 -2
  197. package/plugins/lisa-devin/skills/lisa-github-build-intake/SKILL.md +21 -3
  198. package/plugins/lisa-devin/skills/lisa-github-create/SKILL.md +1 -1
  199. package/plugins/lisa-devin/skills/lisa-github-write-issue/SKILL.md +10 -2
  200. package/plugins/lisa-devin/skills/lisa-jira-build-intake/SKILL.md +21 -3
  201. package/plugins/lisa-devin/skills/lisa-jira-create/SKILL.md +1 -1
  202. package/plugins/lisa-devin/skills/lisa-jira-write-ticket/SKILL.md +10 -2
  203. package/plugins/lisa-devin/skills/lisa-linear-build-intake/SKILL.md +22 -4
  204. package/plugins/lisa-devin/skills/lisa-linear-create/SKILL.md +1 -1
  205. package/plugins/lisa-devin/skills/lisa-linear-write-issue/SKILL.md +10 -2
  206. package/plugins/lisa-devin/skills/lisa-persist-learning/SKILL.md +3 -2
  207. package/plugins/lisa-devin/skills/lisa-repair-intake/SKILL.md +29 -2
  208. package/plugins/lisa-devin/skills/lisa-session-manager/SKILL.md +50 -5
  209. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-human.mjs +51 -14
  210. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-overruled.mjs +70 -0
  211. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-usage.mjs +23 -3
  212. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/escalation-overruled.mjs +327 -0
  213. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/human-needed.mjs +39 -11
  214. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/queue-github.mjs +14 -1
  215. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/session-manager.mjs +11 -1
  216. package/plugins/lisa-devin/skills/lisa-task-decomposition/SKILL.md +2 -1
  217. package/plugins/lisa-devin/skills/lisa-track/SKILL.md +5 -5
  218. package/plugins/lisa-devin/skills/lisa-tracker-build-intake/SKILL.md +6 -0
  219. package/plugins/lisa-devin/skills/lisa-tracker-create/SKILL.md +1 -1
  220. package/plugins/lisa-devin/skills/lisa-tracker-write/SKILL.md +1 -1
  221. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  222. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  223. package/plugins/lisa-expo-agy/plugin.json +1 -1
  224. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  225. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  226. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  227. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  228. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  229. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  230. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  231. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  232. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  233. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  234. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  235. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  236. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  237. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  238. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  239. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  240. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  241. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  242. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  243. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  244. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  245. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  246. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  247. package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
  248. package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
  249. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  250. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  251. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  252. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  253. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  254. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  255. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  256. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  257. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  258. package/plugins/lisa-rails-agy/plugin.json +1 -1
  259. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  260. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  261. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  262. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  263. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  264. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  265. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  266. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  267. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  268. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  269. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  270. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  271. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  272. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  273. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  274. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  275. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  276. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  277. package/plugins/src/base/agents/learning-judge.md +20 -5
  278. package/plugins/src/base/hooks/block-direct-issue-create.sh +13 -9
  279. package/plugins/src/base/rules/reference/automation-runbook-contract.md +3 -2
  280. package/plugins/src/base/rules/reference/config-resolution.md +3 -1
  281. package/plugins/src/base/rules/reference/ready-role-filing.md +56 -5
  282. package/plugins/src/base/scripts/human-gate-act.mjs +182 -0
  283. package/plugins/src/base/scripts/human-gate-lift.mjs +141 -0
  284. package/plugins/src/base/scripts/intake-blocker-reprobe.mjs +319 -5
  285. package/plugins/src/base/skills/lisa-agent-ready/SKILL.md +2 -2
  286. package/plugins/src/base/skills/lisa-github-build-intake/SKILL.md +21 -3
  287. package/plugins/src/base/skills/lisa-github-create/SKILL.md +1 -1
  288. package/plugins/src/base/skills/lisa-github-write-issue/SKILL.md +10 -2
  289. package/plugins/src/base/skills/lisa-jira-build-intake/SKILL.md +21 -3
  290. package/plugins/src/base/skills/lisa-jira-create/SKILL.md +1 -1
  291. package/plugins/src/base/skills/lisa-jira-write-ticket/SKILL.md +10 -2
  292. package/plugins/src/base/skills/lisa-linear-build-intake/SKILL.md +22 -4
  293. package/plugins/src/base/skills/lisa-linear-create/SKILL.md +1 -1
  294. package/plugins/src/base/skills/lisa-linear-write-issue/SKILL.md +10 -2
  295. package/plugins/src/base/skills/lisa-persist-learning/SKILL.md +3 -2
  296. package/plugins/src/base/skills/lisa-repair-intake/SKILL.md +29 -2
  297. package/plugins/src/base/skills/lisa-session-manager/SKILL.md +50 -5
  298. package/plugins/src/base/skills/lisa-session-manager/scripts/cli-human.mjs +51 -14
  299. package/plugins/src/base/skills/lisa-session-manager/scripts/cli-overruled.mjs +70 -0
  300. package/plugins/src/base/skills/lisa-session-manager/scripts/cli-usage.mjs +23 -3
  301. package/plugins/src/base/skills/lisa-session-manager/scripts/escalation-overruled.mjs +327 -0
  302. package/plugins/src/base/skills/lisa-session-manager/scripts/human-needed.mjs +39 -11
  303. package/plugins/src/base/skills/lisa-session-manager/scripts/queue-github.mjs +14 -1
  304. package/plugins/src/base/skills/lisa-session-manager/scripts/session-manager.mjs +11 -1
  305. package/plugins/src/base/skills/lisa-task-decomposition/SKILL.md +2 -1
  306. package/plugins/src/base/skills/lisa-track/SKILL.md +5 -5
  307. package/plugins/src/base/skills/lisa-tracker-build-intake/SKILL.md +6 -0
  308. package/plugins/src/base/skills/lisa-tracker-create/SKILL.md +1 -1
  309. package/plugins/src/base/skills/lisa-tracker-write/SKILL.md +1 -1
@@ -33,7 +33,8 @@ export const HUMAN_NEEDED_KINDS = Object.freeze([
33
33
  * ready gate and still needed a person. `environment` is an outage, an
34
34
  * expired credential or a flaky tool; `human-gate` is a decision planning
35
35
  * flagged as a human gate on the item. Neither of those two is a planning
36
- * miss.
36
+ * miss, except a `human-gate` a human has since labeled wrongly escalated
37
+ * (`overruled`, CodySwannGT/lisa#4657).
37
38
  */
38
39
  export const PLANNING_MISS_CAUSES = Object.freeze([
39
40
  "planning",
@@ -72,15 +73,34 @@ const NOT_A_PLANNING_MISS = Object.freeze({
72
73
  * Whether a human-needed stop is a planning miss: the PRD, decomposition or
73
74
  * ready gate let through an item a dispatched worker could not finish without
74
75
  * a person. Throws on an unknown cause.
75
- * @param {{kind: string, cause?: string}} input - The `--kind` and `--cause`
76
+ *
77
+ * `overruled` is true when the item carries the configured wrongly-escalated
78
+ * label (CodySwannGT/lisa#4657). A human has then ruled that the gate was
79
+ * not the plan working, so the label overrides `cause=human-gate`: the stop
80
+ * counts, pointing at the `filing` stage that let the gate on. It never
81
+ * overrides `environment`: the ruling is about the gate, not an outage.
82
+ * @param {{kind: string, cause?: string, overruled?: boolean}} input - The
83
+ * `--kind` and `--cause`, and whether the escalation was ruled wrong
76
84
  * @returns {{counts: boolean, reason: string, stageHint?: string}} Verdict
77
85
  */
78
- export function planningMissFor({ kind, cause = "planning" }) {
86
+ export function planningMissFor({
87
+ kind,
88
+ cause = "planning",
89
+ overruled = false,
90
+ }) {
79
91
  if (!PLANNING_MISS_CAUSES.includes(cause)) {
80
92
  throw new Error(
81
93
  `--cause must be one of: ${PLANNING_MISS_CAUSES.join(", ")}.`
82
94
  );
83
95
  }
96
+ if (cause === "human-gate" && overruled === true) {
97
+ return {
98
+ counts: true,
99
+ stageHint: "filing",
100
+ reason:
101
+ "a human labeled this escalation wrong, so the human gate was not the plan working: the filing check let it through",
102
+ };
103
+ }
84
104
  if (cause !== "planning") {
85
105
  return { counts: false, reason: NOT_A_PLANNING_MISS[cause] };
86
106
  }
@@ -104,17 +124,22 @@ export function planningMissFor({ kind, cause = "planning" }) {
104
124
  * `lisa-persist-learning` candidate the manager can fill in without judgment.
105
125
  * The rule and its why are the manager's to draft: they name the check
106
126
  * planning should have run, which no script can know.
107
- * @param {{ref: string, kind: string, cause?: string, question: string}}
108
- * input - The item, why, the cause and the question text
127
+ * @param {{ref: string, kind: string, cause?: string, question: string,
128
+ * overruled?: boolean}} input - The item, why, the cause, the question
129
+ * text and whether the escalation was ruled wrong
109
130
  * @returns {object} `{counts, reason, stageHint?, candidate?}`
110
131
  */
111
- function planningMissPlan({ ref, kind, cause, question }) {
112
- const verdict = planningMissFor({ kind, cause });
132
+ function planningMissPlan({ ref, kind, cause, question, overruled }) {
133
+ const verdict = planningMissFor({ kind, cause, overruled });
113
134
  if (!verdict.counts) return verdict;
135
+ const signal =
136
+ cause === "human-gate" && overruled === true
137
+ ? "wrongly-escalated"
138
+ : "planning-miss";
114
139
  return {
115
140
  ...verdict,
116
141
  candidate: {
117
- signal: "planning-miss",
142
+ signal,
118
143
  triggering_issue: ref,
119
144
  provenance: [ref],
120
145
  scope_hint: "project",
@@ -231,11 +256,13 @@ function chooseMarker(label, blocked) {
231
256
  * unknown kind, empty or credential-shaped text, no marker, or an `exhausted`
232
257
  * item with no `blocked` role to move it to.
233
258
  * @param {{ref: string, kind: string, text: string, label?: string,
234
- * blocked?: string, channel?: boolean, answerers?: boolean, cause?: string}}
259
+ * blocked?: string, channel?: boolean, answerers?: boolean, cause?: string,
260
+ * overruled?: boolean}}
235
261
  * input - The item, why, the question, the configured human-needed label
236
262
  * and `blocked` role value, whether a notification channel exists, whether
237
263
  * anyone (operatorIds / trustedAuthorIds) may answer on the item, and the
238
- * cause the planning-miss signal needs (default `planning`)
264
+ * cause the planning-miss signal needs (default `planning`), and whether
265
+ * the item carries the wrongly-escalated label (`overruled`)
239
266
  * @returns {{ref: string, kind: string, marker: {type: string, value: string},
240
267
  * move?: {role: "blocked", value: string}, comment: string,
241
268
  * answerWith: {item: string|null, cli: string, channel: string|null},
@@ -251,6 +278,7 @@ export function planMark({
251
278
  channel = false,
252
279
  answerers = true,
253
280
  cause = "planning",
281
+ overruled = false,
254
282
  }) {
255
283
  if (!HUMAN_NEEDED_KINDS.includes(kind)) {
256
284
  throw new Error(`--kind must be one of: ${HUMAN_NEEDED_KINDS.join(", ")}.`);
@@ -300,6 +328,6 @@ export function planMark({
300
328
  cli: `the answerCommand that session-manager.mjs status lists for ${ref} (answer on stdin)`,
301
329
  channel: channel ? `Answer with: ${short} <your answer>` : null,
302
330
  },
303
- planningMiss: planningMissPlan({ ref, kind, cause, question }),
331
+ planningMiss: planningMissPlan({ ref, kind, cause, question, overruled }),
304
332
  };
305
333
  }
@@ -45,6 +45,19 @@ function stringLeaves(value) {
45
45
  return Object.values(value).flatMap(stringLeaves);
46
46
  }
47
47
 
48
+ /**
49
+ * The build label map without `wrongly_escalated`: that label is a ruling
50
+ * left on an item for good (CodySwannGT/lisa#4657), not a lane or a hold,
51
+ * so it must not hide a released item from the backlog tier.
52
+ * @param {unknown} build - `github.labels.build`
53
+ * @returns {unknown} The map minus the ruling label
54
+ */
55
+ export function withoutRuling(build) {
56
+ if (!build || typeof build !== "object") return build;
57
+ const { wrongly_escalated: _ruling, ...rest } = build;
58
+ return rest;
59
+ }
60
+
48
61
  /**
49
62
  * Fetch every open GitHub issue carrying no lifecycle label (build or PRD),
50
63
  * all pages: the GitHub backlog tier.
@@ -57,7 +70,7 @@ export function fetchGithubBacklog(ctx, project) {
57
70
  const lifecycle = new Set(
58
71
  [project.global?.github?.labels, project.local?.github?.labels]
59
72
  .flatMap(labels => [
60
- ...stringLeaves(labels?.build),
73
+ ...stringLeaves(withoutRuling(labels?.build)),
61
74
  ...stringLeaves(labels?.prd),
62
75
  ])
63
76
  .map(label => label.toLowerCase())
@@ -46,6 +46,7 @@ import {
46
46
  route,
47
47
  } from "./cli-cycle.mjs";
48
48
  import { answer, itemAnswer, markPlan } from "./cli-human.mjs";
49
+ import { overruledPlan } from "./cli-overruled.mjs";
49
50
  import { repoDir, start, status, stop, validate } from "./cli-manager.mjs";
50
51
  import { queue } from "./cli-queue.mjs";
51
52
  import { CliError, EXIT } from "./cli-runtime.mjs";
@@ -113,9 +114,18 @@ const COMMANDS = {
113
114
  },
114
115
  "mark-plan": {
115
116
  run: markPlan,
116
- options: { kind: text, cause: text },
117
+ options: {
118
+ kind: text,
119
+ cause: text,
120
+ "item-label": { ...text, multiple: true },
121
+ },
117
122
  positionals: 1,
118
123
  },
124
+ "overruled-plan": {
125
+ run: overruledPlan,
126
+ options: { input: text, max: text },
127
+ positionals: 0,
128
+ },
119
129
  answer: { run: answer, options: {}, positionals: 1 },
120
130
  "item-answer": { run: itemAnswer, options: {}, positionals: 1 },
121
131
  "record-cycle": {
@@ -16,7 +16,7 @@ Break work into ordered, well-scoped tasks that can be independently implemented
16
16
  Every time a dispatched worker had to stop for a human, or file a new ticket mid-build, because planning let a gap through, `learning-judge` may have persisted the check planning should have run as a `planning-miss` learning (CodySwannGT/lisa#4569). Those checks only help if planning reads them back. Before decomposing, load them through the learnings contract's **bounded projection** — never by reading the ledger file wholesale:
17
17
 
18
18
  ```bash
19
- node -e 'import("@codyswann/lisa/learnings").then(async m => { const { readFile } = await import("node:fs/promises"); const file = m.resolveProjectLearningsFile(await m.readProjectConfig(process.cwd())); const raw = await readFile(file, "utf8").catch(() => null); if (raw === null) return; const { entries, omittedCount } = m.projectLearnings(m.parseLearningsFile(raw)); const checks = entries.filter(e => /^Planning \((prd|decomposition|ready-gate)\):/.test(e.rule)).map(e => ({ id: e.id, rule: e.rule, confidence: e.confidence })); console.log(JSON.stringify({ checks, omittedCount })); }).catch(error => console.error(`learned planning checks unavailable: ${error.message}`))' || true
19
+ node -e 'import("@codyswann/lisa/learnings").then(async m => { const { readFile } = await import("node:fs/promises"); const file = m.resolveProjectLearningsFile(await m.readProjectConfig(process.cwd())); const raw = await readFile(file, "utf8").catch(() => null); if (raw === null) return; const { entries, omittedCount } = m.projectLearnings(m.parseLearningsFile(raw)); const checks = entries.filter(e => /^Planning \((prd|decomposition|ready-gate|filing)\):/.test(e.rule)).map(e => ({ id: e.id, rule: e.rule, confidence: e.confidence })); console.log(JSON.stringify({ checks, omittedCount })); }).catch(error => console.error(`learned planning checks unavailable: ${error.message}`))' || true
20
20
  ```
21
21
 
22
22
  Run it from the project root. No output means there is no ledger yet: carry on. A malformed ledger prints one warning and yields nothing: carry on without it. Never let this step block planning.
@@ -26,6 +26,7 @@ Each check names the stage that owns it, and binds there:
26
26
  - **`Planning (prd): …`** — a requirement the PRD must settle. In PRD intake (`*-to-tracker` Phase 1.45) a register entry that fails one is a `product-clarity` item, like any other requirement-quality failure.
27
27
  - **`Planning (decomposition): …`** — binds in this skill: apply each as an extra obligation on every work unit it concerns, alongside steps 1–6 below. A unit that cannot meet it is split, re-scoped or given its missing dependency now, not left for the worker to discover.
28
28
  - **`Planning (ready-gate): …`** — binds in the validator's S18 stateless-pickup dry-run (`lisa-jira-validate-ticket`, `lisa-github-validate-issue`, `lisa-linear-validate-issue`): each becomes a question the dry-run must be able to answer from the item and the links it can resolve.
29
+ - **`Planning (filing): …`** — binds on any agent about to file a work unit with `human_gate:` (the `ready-role-filing` rule), here included. Each is a check a hold reason must pass; a hold it rules out is a decision to make now, and the unit is filed build-ready. These come from escalations a human labeled wrong (`learning-judge` Step 2.6).
29
30
 
30
31
  A check is a learned heuristic, not a new gate number: cite its `id` where it changed a decision, so `last_confirmed` can be advanced at claim time (`project-learnings`). When a check plainly does not apply to this work, skip it silently.
31
32
 
@@ -3,7 +3,7 @@ name: lisa-track
3
3
  description: "Resolves exactly one live…"
4
4
  allowed-tools: ["Skill", "Bash", "Read"]
5
5
  ---
6
- Resolves exactly one live configured-tracker leaf for durable project work, claims it idempotently, and persists its canonical reference in worktree-local state. Accepts an existing Jira/GitHub/Linear ref, a spec file, or plain text. Also accepts human_gate: <why a human must judge this first>, which files the leaf held — outside the build-ready lane, never claimed — instead of build-ready. Use directly to mention/create the related ticket, and as lisa-implement's mandatory input gate.
6
+ Resolves exactly one live configured-tracker leaf for durable project work, claims it idempotently, and persists its canonical reference in worktree-local state. Accepts an existing Jira/GitHub/Linear ref, a spec file, or plain text. Also accepts human_gate: <the act a person must perform>, which files the leaf held — outside the build-ready lane, never claimed — instead of build-ready. Use directly to mention/create the related ticket, and as lisa-implement's mandatory input gate.
7
7
 
8
8
 
9
9
  # Track Work: $ARGUMENTS
@@ -49,7 +49,7 @@ For an existing incidental item, read its discussion, linked PRs and dependencie
49
49
  - an explicit reference matching the configured tracker (`KEY-123`, `org/repo#123` or issue URL, Linear team identifier);
50
50
  - an existing file path containing a specification (read the entire file, without offset/limit);
51
51
  - plain-text work description.
52
- 3. Detect the caller's readiness declaration, which is orthogonal to the classification above. Absent any declaration this is the default build-ready path. A caller deliberately holding the work for a pending human product call passes `human_gate: "<why a human must judge this first>"`; the two declarations are mutually exclusive and a `human_gate` present but empty is a blocking error, because an unexplained hold is indistinguishable from an accident.
52
+ 3. Detect the caller's readiness declaration, which is orthogonal to the classification above. Absent any declaration this is the default build-ready path. A caller deliberately holding the work because it needs an act an agent cannot perform (a credential only a person holds, spend, an external account, a legal or compliance sign-off, an accountable person, a system the agent cannot reach, or a project-declared human-only class) passes `human_gate: "<the act a person must perform>"`. A choice with a reasonable default is not a gate: decide it, record the decision on the item, and take the build-ready path (`ready-role-filing`, "What a human gate is"). The writer refuses a topic-only reason with exit 1 from `scripts/human-gate-act.mjs check`; the two declarations are mutually exclusive and a `human_gate` present but empty is a blocking error, because an unexplained hold is indistinguishable from an accident.
53
53
  4. Preserve the full resolved specification for the caller. Do not treat a ticket-like token for a different provider/project as plain text; report the mismatch.
54
54
 
55
55
  ## Phase 2 — Resolve one live work item
@@ -79,7 +79,7 @@ This is intentionally conservative: ambiguity creates one explicit work item ins
79
79
  ## Phase 3 — Claim and bind
80
80
 
81
81
  The work item is **held** when the caller declared a `human_gate`, independently of any item history,
82
- or `classifyReadyCandidate({ labels, body, comments, trustedHumanActorIds, humanNeededLabel })` from the shipped
82
+ or `classifyReadyCandidate({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly })` from the shipped
83
83
  `scripts/intake-blocker-reprobe.mjs` returns `claimable: false`. Pass the complete live comment
84
84
  history so a matching `[lisa-human-gate-release]` discharges the historical body marker. Never
85
85
  reimplement heldness as a substring test or as the negation of `planHumanGateRelease().released`:
@@ -92,7 +92,7 @@ A held item stops the flow here, whatever roles or labels it carries. Do not inv
92
92
  and carry its reason verbatim in `gate_reason` (null for a keyless hold), then stop.
93
93
 
94
94
  For a discharged item, call
95
- `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
95
+ `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels, alreadyNotified })`
96
96
  and apply only the returned actions before claiming. Keep the body marker as history; a release
97
97
  never overrides a new caller-declared hold or another eligibility check.
98
98
 
@@ -115,7 +115,7 @@ Otherwise:
115
115
  resolution_outcome: explicit|reused|created
116
116
  readiness_declaration: build-ready|human-gate
117
117
  held_by: none|caller-declaration|item-marker
118
- gate_reason: <why a human must judge this first>|null
118
+ gate_reason: <the act a person must perform>|null
119
119
  claim_outcome: claimed|reused|held-by-gate
120
120
  binding_outcome: verified|skipped-human-gate
121
121
  work_item_context: <absolute path to .lisa/work-item-context.md>
@@ -87,6 +87,12 @@ whole-body replacement, so a release that went through the description would ris
87
87
  record it was releasing, which is why holds accumulated with no way out (CodySwannGT/lisa#3852).
88
88
  The hold note stays in the description as history and the release sits beside it as a comment.
89
89
 
90
+ A hold that names no act an agent cannot perform is not a hold at all (`ready-role-filing`,
91
+ "What a human gate is"). Every vendor scanner calls `planHumanGateLift(...)` from
92
+ `scripts/human-gate-lift.mjs` before it classifies, posts the `[lisa-human-gate-lifted]
93
+ reason=<slug>` comment it plans, and applies its label actions, so such a hold is lifted with no
94
+ person involved. Valid holds and label-only holds are never lifted.
95
+
90
96
  Measured: sweeping one team by lane name saw 39 of 343 open rows; by category it sees 100. The
91
97
  61-row gap produced 31 consecutive false "dry lane" cycles, every record honest and every
92
98
  conclusion wrong (#2657).
@@ -26,5 +26,5 @@ See the `config-resolution` rule for configuration and dispatch table.
26
26
  ## Rules
27
27
 
28
28
  - All vendor skills delegate every individual ticket write through `lisa-tracker-write`. They never call vendor-specific write tools directly.
29
- - **Declare readiness on every leaf write.** Per the `ready-role-filing` rule an omitted `build_ready` is **not build-ready** on any tracker, so pass `build_ready: true` on each Sub-task (the leaf work units this skill plans) and never on the Epic or Stories, which are containers per `leaf-only-lifecycle`. A leaf that is deliberately held instead passes `human_gate: "<why a human must judge this first>"`. Filing a leaf with neither is an incomplete handoff and `lisa-tracker-write` rejects it.
29
+ - **Declare readiness on every leaf write.** Per the `ready-role-filing` rule an omitted `build_ready` is **not build-ready** on any tracker, so pass `build_ready: true` on each Sub-task (the leaf work units this skill plans) and never on the Epic or Stories, which are containers per `leaf-only-lifecycle`. A leaf that is deliberately held instead passes `human_gate: "<the act a person must perform>"`. Filing a leaf with neither is an incomplete handoff and `lisa-tracker-write` rejects it.
30
30
  - This shim is for ad-hoc creation from code files / descriptions. PRD-driven creation goes through the `*-to-tracker` skills (notion / confluence / linear / github).
@@ -54,4 +54,4 @@ See the `config-resolution` rule for the full configuration schema and skill-map
54
54
  - Never accept a tracker value outside `{jira, github, linear}`.
55
55
  - Never mutate `$ARGUMENTS` between layers. The vendor skills define their own input contract.
56
56
  - Never inline gate logic here. All validation rules live in the vendor skills (`lisa-jira-validate-ticket` / `lisa-github-validate-issue` / `lisa-linear-validate-issue`); this skill only routes.
57
- - **Readiness is the caller's explicit claim, not this shim's default.** Per the `ready-role-filing` rule, an omitted `build_ready` is **not build-ready** on every vendor, so a caller filing work it expects build-intake to pick up must pass `build_ready: true`, and a caller deliberately holding work outside the queue must pass a `human_gate` reason. This shim normalizes nothing — it forwards `$ARGUMENTS` verbatim and the vendor writers enforce the contract — which is exactly why the caller cannot rely on a vendor default here.
57
+ - **Readiness is the caller's explicit claim, not this shim's default.** Per the `ready-role-filing` rule, an omitted `build_ready` is **not build-ready** on every vendor, so a caller filing work it expects build-intake to pick up must pass `build_ready: true`, and a caller deliberately holding work outside the queue must pass a `human_gate` reason naming an act an agent cannot perform — the vendor writers refuse a reason that names only a topic and point the caller at decide-and-record (`ready-role-filing`, "What a human gate is"). This shim normalizes nothing — it forwards `$ARGUMENTS` verbatim and the vendor writers enforce the contract — which is exactly why the caller cannot rely on a vendor default here.
@@ -30,7 +30,7 @@ Each candidate you evaluate is a single object:
30
30
  | `evidence_links[]` | string[] | Concrete evidence URLs/refs available for citation (failure logs, rejection comments, prior incidents). |
31
31
  | `scope_hint` | `project` \| `upstream` | The submitter's guess at where the learning belongs. A hint only — attribution below decides. |
32
32
  | `triggering_issue` | string | The issue/work item whose failure produced this candidate. |
33
- | `signal` | `planning-miss` \| absent | Set by a caller that saw a dispatched item stop for a human or file a new ticket mid-build (`lisa-session-manager`, `lisa-implement`). A hint only — Step 2.5 decides. |
33
+ | `signal` | `planning-miss` \| `wrongly-escalated` \| absent | `planning-miss`: set by a caller that saw a dispatched item stop for a human or file a new ticket mid-build (`lisa-session-manager`, `lisa-implement`); Step 2.5 decides. `wrongly-escalated`: set by `lisa-session-manager` when a human labeled an item's escalation wrong (the configured wrongly-escalated label); Step 2.6 decides. A hint only. |
34
34
  | `fingerprint` | string | Stable dedupe key for this candidate (computed by the caller, e.g. `lisa-persist-learning`). Echo it back unchanged. |
35
35
 
36
36
  A candidate missing `triggering_issue` or with an empty evidence set can still be evaluated — but it can never reach `durable-learning`, because the mandatory citations below would be impossible.
@@ -62,19 +62,33 @@ A missing, ambiguous, contradictory or undecided requirement is not always a one
62
62
 
63
63
  1. **It was dispatched.** The item had passed the ready gate — it was in the ready role and was picked up for dispatch — claimed by a worker, or held by the dispatcher while routing it to a repository (a `repo-route` hold: the item is past the ready gate and mid-dispatch, and `repo-scope-split` at decomposition should have made the route unambiguous) — before the gap surfaced. Cite the claim, the dispatch, or the ready-role history. A gap found at PRD intake, during validation, or before the ready flip is the gate **working**: that is `misunderstanding/spec-gap`.
64
64
  2. **The information really was missing.** Quote what the worker could not find, and confirm it is absent from the item and the links it resolves. If the answer was on the item and the worker misread it, it is `misunderstanding/spec-gap` (the worker's defect, not planning's).
65
- 3. **It is not environmental or planned.** An outage, an expired credential, a flaky tool, missing tool access (`tool-access-gate`), or a decision planning **flagged as a human gate** on the item (`human_gate`, `[lisa-human-gate]`) is not a planning miss: asking there was the plan working. Neither is an item that exhausted its attempts.
65
+ 3. **It is not environmental or planned.** An outage, an expired credential, a flaky tool, missing tool access (`tool-access-gate`), or a decision planning **flagged as a human gate** on the item (`human_gate`, `[lisa-human-gate]`) is not a planning miss: asking there was the plan working. Neither is an item that exhausted its attempts. The one exception is a flagged gate a human has since **labeled wrongly escalated**: that is Step 2.6, and this exclusion does not apply to it.
66
66
  4. **A planning check would have caught it.** This is Step 2's prevention question, asked of planning instead of the build. Name the stage that should have caught it — `prd` (the requirement was never decided), `decomposition` (the work was mis-scoped, mis-split, or depended on something nobody filed, including a leaf the router could not place in one repo per `repo-scope-split`), or `ready-gate` (the item looked ready but S18 should have asked the question) — and re-walk it: with the check in force, the item would not have reached Ready with this gap.
67
67
 
68
68
  **The rule is the check planning should have run, never the answer.** Rewrite the candidate's `rule` as `Planning (<stage>): <check>` — e.g. `Planning (decomposition): an export ticket must name its report format before it is Ready.` — never `Exports use CSV.`, which only answers the one ticket and belongs on the item. A rule that only makes sense for this one item is not a check: drop it as `misunderstanding/spec-gap`. The `why` names the stage that let it through and quotes what the worker could not find. The prefix is load-bearing: planning skills select these entries from the bounded projection by it (`lisa-task-decomposition` step 0).
69
69
 
70
70
  **Recurrence never blocks a first occurrence.** A first-occurrence planning miss persists at `low` confidence, so its persistence PR waits for a human to merge it. That is a deliberate, bounded exception to Step 2's recurrence requirement. The hostile default exists because a plausible-but-wrong rule would reach every future session unattended; a `low` rule never does, because a human reads it at the gate first. Meanwhile the signal is unusually strong and unusually rare: each occurrence already cost the human interruption the gate exists to prevent, so waiting for a second occurrence costs a second interruption and teaches nothing new. And the rule only adds a check to planning — a wrong one costs a planning question, not changed build behaviour. With recurrence evidence (another dispatched item that stopped on the same class of gap), Step 4 may grant `high`.
71
71
 
72
+ ### Step 2.6: Overruled escalation (`signal: wrongly-escalated`)
73
+
74
+ A self-flagged human gate is the agent's own claim that a human is needed. When a human disagrees — releases the hold and applies the project's configured wrongly-escalated label (`*.labels.build.wrongly_escalated` / `jira.labels.wrongly_escalated`, default `wrongly-escalated-to-human`) — the claim has been ruled on, and the ruling is the evidence. Trusting the claim over the ruling is exactly how agents keep escalating the same way. So a candidate is a `planning-miss` at stage `filing` when **all** of these hold:
75
+
76
+ 1. **The ruling is on the item.** Cite the label on the item (the candidate's `triggering_issue`, or the `[lisa-escalation-overruled]` capture comment). Who applied it does not matter: the label is a classification, not a release, so it needs no release authorization, and an automation identity applying it at an operator's direction counts the same as a person.
77
+ 2. **The item was held for a human.** Cite the hold: the `[lisa-human-gate]` marker, a hold comment, or the session manager's question comment. A label on an item that was never held is not an overruled escalation: drop it as `one-off`.
78
+ 3. **A filing check would have kept the gate off.** Name the class of hold the human overruled (the hold reason, or what the hold asked for) and re-walk the filing with the check in force: the item would have been filed build-ready and decided by an agent. The release comment, when present, usually says this outright ("this was just a decision, make it").
79
+
80
+ Step 2.5's dispatch condition does not apply (the item was held at filing, never dispatched), and neither does its flagged-human-gate exclusion. Step 1 does not short-circuit to `lisa-upstream` merely because the `human_gate` contract is Lisa-shipped: the ruling is about this project's escalations, and the rule is this project's filing check. Hand off upstream only when the evidence shows a shipped Lisa skill **instructed** the gate for this case.
81
+
82
+ **The rule is the filing check, never the answer.** Rewrite it as `Planning (filing): <check>` — e.g. `Planning (filing): file human_gate only for an act no agent can perform (credential, spend, external account, legal sign-off); decide dispatch-order questions yourself.` — never the decision the human then made.
83
+
84
+ **Confidence.** Several labeled items whose holds share the same gap pattern are recurrence: grant `high`. A single labeled item is `low`. Either way, the persistence PR never waits for a human: the human has already ruled, at the label, and the operator's position is that humans are involved only when an agent is actually stuck. `lisa-persist-learning` merges a `wrongly-escalated` learning through the project's normal gates at either confidence; if the call was wrong, the gardener retires the rule later.
85
+
72
86
  ### Step 3: Classify (5-way taxonomy)
73
87
 
74
88
  Exactly one of:
75
89
 
76
90
  - **`durable-learning`** — both falsification questions pass with cited evidence. Disposition `persist`.
77
- - **`planning-miss`** — every Step 2.5 condition holds: the item was dispatched past the ready gate, the information really was missing, the cause is not an outage, an expired credential, a flaky tool or a decision flagged as a human gate, and a named planning check would have caught it. Disposition `persist`, with `planning_stage` set and `rule` rewritten as the check.
91
+ - **`planning-miss`** — every Step 2.5 condition holds: the item was dispatched past the ready gate, the information really was missing, the cause is not an outage, an expired credential, a flaky tool or a decision flagged as a human gate, and a named planning check would have caught it. Or every Step 2.6 condition holds: a human labeled a held item's escalation wrong and a named filing check would have kept the gate off (`planning_stage: filing`). Disposition `persist`, with `planning_stage` set and `rule` rewritten as the check.
78
92
  - **`one-off`** — a genuine typo, transient fluke, or single-occurrence mistake with no recurrence evidence. Disposition `drop`.
79
93
  - **`misunderstanding/spec-gap`** — the failure traces to an ambiguous or missing requirement caught **before** the item was dispatched (the gate worked), or to information the item did hold that was misread. The fix is a better spec (raise it on the work item), not a rule. Disposition `drop`.
80
94
  - **`lisa-upstream`** — set in Step 1. Disposition `handoff-upstream`; never persisted locally.
@@ -98,7 +112,7 @@ Return exactly one verdict object per candidate:
98
112
  | `cited_evidence[]` | string[] | The concrete refs you actually relied on for this call — prevention and recurrence citations for durable; attribution citations for upstream; the decisive absence/counter-evidence for drops. Never empty. This is what makes a wrong call auditable. |
99
113
  | `rationale` | string | 1–3 sentences readable by product, engineering, and QA alike (a non-technical operator stands at the gate). |
100
114
  | `confidence` | `high` \| `low` | Present **only** when `classification` is `durable-learning` or `planning-miss`. |
101
- | `planning_stage` | `prd` \| `decomposition` \| `ready-gate` | Present **only** when `classification` is `planning-miss`: the stage that let the gap through. |
115
+ | `planning_stage` | `prd` \| `decomposition` \| `ready-gate` \| `filing` | Present **only** when `classification` is `planning-miss`: the stage that let the gap through. `filing` only under Step 2.6. |
102
116
  | `rule` | string | Present **only** when `classification` is `planning-miss`: the candidate's rule rewritten as the `Planning (<stage>): <check>` check, within the contract's caps. The caller persists this text, not the submitted one. |
103
117
  | `disposition` | `persist` \| `drop` \| `handoff-upstream` | `persist` iff durable-learning or planning-miss; `handoff-upstream` iff lisa-upstream; otherwise `drop`. |
104
118
 
@@ -120,9 +134,10 @@ Also echo back the candidate's `fingerprint` and `triggering_issue` so the calle
120
134
  | Prevention (would the rule have prevented it?) | yes/no | [refs] |
121
135
  | Recurrence (does the class recur?) | yes/no | [refs] |
122
136
  | Planning miss (dispatched, really missing, not environmental or a flagged gate, planning check named) | yes/no/n-a | [refs] |
137
+ | Overruled escalation (wrongly-escalated label on a held item, filing check named) | yes/no/n-a | [refs] |
123
138
 
124
139
  **Classification**: durable-learning | planning-miss | one-off | misunderstanding/spec-gap | lisa-upstream
125
- **Planning stage**: prd | decomposition | ready-gate (planning-miss only)
140
+ **Planning stage**: prd | decomposition | ready-gate | filing (planning-miss only)
126
141
  **Rule**: Planning (<stage>): <check> (planning-miss only — the rewritten rule the caller persists)
127
142
  **Confidence**: high | low (durable-learning and planning-miss only)
128
143
  **Disposition**: persist | drop | handoff-upstream
@@ -464,15 +464,19 @@ FILE IT THE SANCTIONED WAY — one of these three, always explicit:
464
464
  write, and claims it. Complete means the \`work-item-definition-of-ready\`
465
465
  bar — reproduction, observed-versus-expected, Gherkin acceptance criteria.
466
466
 
467
- 2. A human product call is genuinely pending. Route the same way but pass
468
- \`human_gate: "<why a human must judge this first>"\` in place of
467
+ 2. A person must perform an act an agent cannot: supply a credential only
468
+ they hold, approve spend, open an external account, give a legal or
469
+ compliance sign-off, or act in a system the agent cannot reach. A choice
470
+ with a reasonable default is NOT that: decide it, record the decision on
471
+ the item, and use 1. Otherwise route the same way but pass
472
+ \`human_gate: "<the act a person must perform>"\` in place of
469
473
  \`build_ready: true\` — the two are mutually exclusive. The leaf is filed
470
474
  into the default backlog role, outside the lane build-intake claims from,
471
475
  and is deliberately NOT claimed, so it keeps attracting the human attention
472
476
  it was filed for. The hold is stamped so it is auditable rather than
473
477
  indistinguishable from an accident:
474
478
 
475
- Held for a human product call: <reason>.
479
+ Held for a person to <act>: <reason>.
476
480
  <!-- [lisa-human-gate] reason=<short-slug> -->
477
481
 
478
482
  3. The item is a CONTAINER — an Epic, or any item whose state rolls up from
@@ -499,8 +503,8 @@ declarations itself:
499
503
 
500
504
  $(declaration_hint)
501
505
 
502
- Or a \`[lisa-human-gate]\` marker in the body it submits, when a human
503
- product call really is pending.
506
+ Or a \`[lisa-human-gate]\` marker in the body it submits, when a person
507
+ really must perform an act an agent cannot.
504
508
 
505
509
  Or, for a container, \`None — container: state rolls up from children\` in
506
510
  that body, and no by-design leaf type on the command.
@@ -561,11 +565,11 @@ FILE IT THE SANCTIONED WAY:
561
565
 
562
566
  DO NOT reach for \`[lisa-human-gate]\` to get past this one. It still satisfies
563
567
  the guard — it is a real declaration — but on an upstream defect report it is a
564
- false one: it stamps the item as held for a human product call, and the
568
+ false one: it stamps the item as held for a person, and the
565
569
  target's build queue scans the ready role and nothing else. The report is filed
566
570
  and never picked up, which is the incomplete handoff this guard exists to
567
- prevent, committed one repository over. Use it only when a human product call
568
- is genuinely pending on the target.
571
+ prevent, committed one repository over. Use it only when a person must genuinely
572
+ perform an act an agent cannot on the target.
569
573
 
570
574
  OPERATOR ESCAPE: a human can export \`LISA_ALLOW_DIRECT_ISSUE_CREATE=1\` in the
571
575
  environment before starting the session. It is deliberately not reachable by
@@ -985,7 +989,7 @@ def payload_is_inert(text):
985
989
  #
986
990
  # So on a Linear-tracked project the only declaration left that passed was
987
991
  # `[lisa-human-gate]`, which this file's own comments correctly forbid for a
988
- # build-ready item: it stamps the item as held for a human product call, and
992
+ # build-ready item: it stamps the item as held for a person, and
989
993
  # build-intake scans the ready role and nothing else. An honest operator had NO
990
994
  # compliant command and exactly one dishonest one — a guard failing in the
991
995
  # harmful direction, where complying is worse than not.
@@ -292,8 +292,9 @@ A loop that cannot proceed escalates by filing a tracker item (through `lisa-tra
292
292
  containing exactly these fields.
293
293
 
294
294
  Every escalation is a **declared human gate** under `ready-role-filing`: it passes
295
- `human_gate: "<the smallest unresolved choice>"` so the writer stamps the auditable
296
- `[lisa-human-gate]` marker. An escalation is precisely a filing whose readiness a human owns, so
295
+ `human_gate: "<the act a person must perform to unblock it>"` so the writer stamps the auditable
296
+ `[lisa-human-gate]` marker. An unresolved *choice* with a reasonable default is not an escalation:
297
+ the loop decides it, records the decision, and continues (`ready-role-filing`, "What a human gate is"). An escalation is precisely a filing whose readiness a human owns, so
297
298
  omitting the flag and relying on a tracker default would make a deliberate gate indistinguishable
298
299
  from the accidental non-ready filing that rule exists to catch.
299
300
 
@@ -279,6 +279,7 @@ fi
279
279
  | `learnings.file` | no | `.lisa/PROJECT_LEARNINGS.md` | Safe repo-relative Markdown path for the machine-managed learnings ledger, overriding the `.lisa/` default. Rejected if it resolves inside any auto-loaded rules tree (`.claude/rules`, `.cursor/rules`, `.github/instructions`, `.agents/rules`) — the ledger must stay out of eager context. |
280
280
  | `health.schedule` | no | `off` | Health cadence contract: `off`, `daily`, or `weekly`. `lisa sync` populates the default with `_lisaSync.populated` provenance and rejects values outside this closed vocabulary. Runtime results live only at the gitignored `.lisa/health/latest.json`, never in either config file. |
281
281
  | `usage` | no | — | Optional token/cost pricing metadata consumed by the `usage-accounting` rule. Missing pricing never blocks a lifecycle flow; Lisa records token counts with `estimated_cost: null` when no trustworthy price source is configured. |
282
+ | `humanGate.humanOnly` | no | `[]` | Decision classes this project reserves for a person, such as `["pricing"]`. A `human_gate` reason naming one (as a whole word) is accepted by the writers and never lifted by the sweeps. Absent, only acts an agent cannot perform qualify as a human gate. `.lisa.config.local.json` replaces the list when it sets one. Read by `scripts/human-gate-act.mjs`; see `ready-role-filing`, "What a human gate is". |
282
283
  | `wiki` | no | — | Wiki location for the `wiki-knowledge-source` rule. Omit for a local in-repo wiki (`wiki/`). See **Wiki source** below. |
283
284
  | `sessionManager` | no | — (opt-in) | Local session manager: polls the Ready queue, runs each item in a fresh background Claude Code session, and relays questions over a per-project Telegram bot when one is configured (optional). Absent means the manager is not used; `lisa sync` never populates it. Written by `/lisa:setup:session-manager`. See **Session manager (`sessionManager`)** below. |
284
285
 
@@ -587,12 +588,13 @@ Exit `0` with a value → configured. Exit `0` with **empty** output → an opti
587
588
 
588
589
  #### Build markers (additive labels, not lifecycle roles)
589
590
 
590
- A **marker** is an additive label applied *alongside* a lifecycle role, not a state the item transitions *to*. Markers carry no rollup or transition semantics — they annotate an item that is already in some role, and the rollup reads them to say *which kind* of hold a `blocked` item is (`rollup-blocker-classification`). The build lifecycle defines two markers:
591
+ A **marker** is an additive label applied *alongside* a lifecycle role, not a state the item transitions *to*. Markers carry no rollup or transition semantics — they annotate an item that is already in some role, and the rollup reads them to say *which kind* of hold a `blocked` item is (`rollup-blocker-classification`). The build lifecycle defines three markers:
591
592
 
592
593
  | Marker | What it means | JIRA default | GitHub/Linear default |
593
594
  |---|---|---|---|
594
595
  | `human_needed` | Applied with `blocked` when — **after the agent has drafted every authorable missing section via the `pre-flight-autofill` procedure** — the block still requires a human to confirm the drafted assumptions or supply something no agent can invent: real missing credentials, access/permissions, or an irreducible product/scoping decision. | `Human Needed` (label) | `human-needed` (label) |
595
596
  | `spec_defect` | Applied with `blocked` when the thing holding the item is the item's **own specification** — an acceptance criterion that cannot be satisfied as written, a field naming an environment or surface the project does not have, a validation journey demanding something the project cannot produce. **Human-applied only.** No agent sets it, because judging a criterion unbuildable is a product call, and the agent that wrote a bad criterion is the least likely to know it did. | `Spec Defect` (label) | `blocked:spec-defect` (label) |
597
+ | `wrongly_escalated` | A **ruling** that an earlier escalation to a human was wrong: the hold asked a person for a decision an agent could have made. Applied by a human, or by an agent at an operator's direction — who applied it does not matter. It is a classification, not a release: it moves no lane and needs no release authorization. The session manager's overruled-escalation sweep captures each labeled item once as a `wrongly-escalated` learning candidate (CodySwannGT/lisa#4657). Resolved from `jira.labels.wrongly_escalated`, `github.labels.build.wrongly_escalated` or `linear.labels.build.wrongly_escalated`. | `wrongly-escalated-to-human` (label) | `wrongly-escalated-to-human` (label) |
596
598
 
597
599
  Markers are labels on **every** vendor, Linear included — that is the one place the Linear build lane still touches `linear.labels`.
598
600
 
@@ -19,9 +19,11 @@ Apply `do-it-now`'s **Worth doing** guidance before deciding to file. A declined
19
19
  ## Every filing declares one of three things
20
20
 
21
21
  - **`build_ready: true`** — complete enough to build; enters the ready lane for auto-pickup. Required for an accepted worthwhile defect found during other work, so it is claimable next cycle with no human flipping status.
22
- - **`human_gate: "<why a human must judge this first>"`** — deliberately held outside the queue. The writer stamps a visible line plus `<!-- [lisa-human-gate] reason=<short-slug> -->` so the hold is auditable.
22
+ - **`human_gate: "<the act a person must perform>"`** — deliberately held outside the queue because the item needs an **act an agent cannot perform** (see "What a human gate is" below). The writer checks the reason first, refuses one that names only a topic, then stamps a visible line naming the act plus `<!-- [lisa-human-gate] reason=<short-slug> -->` so the hold is auditable.
23
23
  - **The container declaration** — `None — container: state rolls up from children`, the canonical line `derived-branch-plan` defines and every writer stamps in place of a Target Backend Environment. A container is never build-ready (`leaf-only-lifecycle`) and needs no gate, so it declares the third thing instead. Deliberately **not** keyed on `--label type:Epic`: a declared type is a claim that costs a leaf nothing and leaves it looking buildable, where the container line costs the item the environment and Branch Plan a leaf needs to be built. It is refused alongside a by-design leaf type (`type:Bug` / `type:Task` / `type:Sub-task` / `type:Improvement`) — an item cannot be a container and a leaf at once.
24
24
 
25
+ **A decision is not a gate.** A choice between options with a reasonable default — what to name a role, how to classify existing state, when to dispatch a follow-up, which policy to adopt — is the agent's to make. **Decide and record:** pick the default, write the decision on the item, and file it `build_ready: true`.
26
+
25
27
  Filed, not ready, and no `human_gate` is the **incomplete handoff** case — writers reject it and name both ways to resolve it. `build_ready: false` with no reason is the same omission with a value attached. `build_ready` stays subordinate to `leaf-only-lifecycle`: a container is never build-ready and needs no gate.
26
28
 
27
29
  ## The named exception
@@ -65,10 +67,10 @@ The safe direction is the implicit one. A ticket that reaches a build queue by a
65
67
  A writer accepts a filing only when it carries **one** of:
66
68
 
67
69
  - **`build_ready: true`** — the item is complete enough to build and enters the ready lane for auto-pickup. This is the correct answer for an accepted worthwhile defect found during other work.
68
- - **`human_gate: "<why a human must judge this first>"`** — the item is deliberately held outside the queue because a human product call is pending. The writer stamps a visible marker on the item so the hold is auditable rather than indistinguishable from an accident:
70
+ - **`human_gate: "<the act a person must perform>"`** — the item is deliberately held outside the queue because it needs an act an agent cannot perform. The writer validates the reason (see "What a human gate is" below), then stamps a visible marker naming that act so the hold is auditable rather than indistinguishable from an accident:
69
71
 
70
72
  ```text
71
- Held for a human product call: <reason>.
73
+ Held for a person to <act>: <reason>.
72
74
  <!-- [lisa-human-gate] reason=<short-slug> -->
73
75
  ```
74
76
 
@@ -94,11 +96,60 @@ The declaration is refused alongside a **by-design leaf type** declared as a fla
94
96
 
95
97
  One string, defined in one rule, read by the guard and stamped by the writers — which is what keeps this exemption from drifting back into prose only.
96
98
 
99
+ ## What a human gate is
100
+
101
+ A human gate is for an **act an agent cannot perform**. It is not for "a pending product call": almost any open choice can be read as one, and reading it that way held plain decisions for a person whose answer was nearly always "you decide" — nine in one week in one portfolio repository, every one overruled, and three more filed hours after the operator's standing direction was recorded (CodySwannGT/lisa#4658). Each false gate costs an operator interruption and stalls the work until someone notices.
102
+
103
+ The acts that qualify:
104
+
105
+ | Act | Examples |
106
+ |---|---|
107
+ | Supply a credential only a person holds | an API key, password, private key, MFA code |
108
+ | Spend money | a paid plan, a purchase, budget approval |
109
+ | Open an external account | a vendor or provider account in a person's or the company's name |
110
+ | Give a legal or compliance sign-off | HIPAA/GDPR/SOC 2, a contract, approval for a protected deployment |
111
+ | Name an accountable person | an owner or approver who answers for the result |
112
+ | Act in a system the agent cannot reach | physical hardware, an on-site step, granting an access the agent lacks |
113
+ | A call Lisa's own policy reserves for a person | exploratory-QA findings (the named exception below), learnings promotion/demotion, harness interventions, automation retirement, a hold the operator explicitly asked for |
114
+ | A decision class this project declared human-only | `humanGate.humanOnly` in `.lisa.config.json` |
115
+
116
+ **Everything else is a decision.** The agent decides and records: it picks the reasonable default, writes the decision on the item (a `Decision:` line saying what was chosen and why), and files it `build_ready: true`. A reviewer who disagrees changes the item; nobody had to be interrupted first.
117
+
118
+ **The reason must name the act.** `human_gate: "role-split-triage"` names a topic and is refused; `human_gate: "the production payment-provider secret key only the founder holds"` names an act and is accepted. The check is executable, and every writer runs it before stamping a hold:
119
+
120
+ ```bash
121
+ node "${CLAUDE_PLUGIN_ROOT:-node_modules/@codyswann/lisa/plugins/lisa}/scripts/human-gate-act.mjs" check --reason "<the human_gate reason>"
122
+ ```
123
+
124
+ It prints a JSON verdict and exits `0` (a legitimate gate: use its `label` in the visible line), `1` (refused: its `remedy` names the decide-and-record path, so do not file the item held), or `2` (usage or config error: stop and report). The vocabulary is closed on purpose. A list of acts can be audited; a list of "topics that feel important" is the reading that produced the false gates.
125
+
126
+ ### A project can widen the gate
127
+
128
+ A project that wants a decision class to stay human-only declares it, rather than every project inheriting the widest reading:
129
+
130
+ ```json
131
+ { "humanGate": { "humanOnly": ["pricing", "hiring"] } }
132
+ ```
133
+
134
+ A reason naming a declared class (as a whole word) is accepted. `.lisa.config.local.json` replaces the list when it sets one. Nothing widens the gate implicitly.
135
+
136
+ ### Existing invalid holds are lifted, with no person involved
137
+
138
+ Holds filed under the old wording keep stalling items, and an operator should never have to comment to release one. The intake and repair sweeps re-evaluate every open `[lisa-human-gate]` hold against this definition with `planHumanGateLift` (`scripts/human-gate-lift.mjs`). The sweep lifts a hold only when it is sure. Its reason slug must name only a topic, no hold-related line (any marker line, any "Held for …" line, or the line beside one) may name an act, and no secret or act token (a credential, password, MFA code, API key, token, secret, signature, BAA or contract, admin rights, access, spend, budget, payment or money, legal or compliance) may appear anywhere in that text, judged as one set. Any doubt keeps the hold: a wrongly kept hold costs one interruption, while a wrongly lifted credential hold dispatches work that cannot succeed. For a hold that passes, the sweep:
139
+
140
+ - posts a visible `[lisa-human-gate-lifted] reason=<slug>` comment explaining why;
141
+ - removes the `human_needed` marker label;
142
+ - moves the item to the build-ready role (unless it has since moved to another lifecycle lane).
143
+
144
+ This is not a forged human release. A release records a person's answer, so it must come from a trusted human. A lift records that the hold was invalid under this contract, so there is nothing for a person to authorize. Its authority comes from re-classifying the hold rather than from who wrote the comment: a lift comment naming a valid hold discharges nothing. Valid holds (a credential, spend, a sign-off) are untouched and still wait for their act. A label-only hold (an access block, a blocked verdict) declares no reason to judge and is never lifted.
145
+
146
+ Every reader of the hold verdict passes the project's `humanOnly` classes (`humanGate.humanOnly`) alongside `comments` and `trustedHumanActorIds` (`classifyReadyCandidate`, `classifyPreWorkCandidate`, `planHumanGateReconciliation`, `planHumanGateRelease`, `planLabelNormalization`, `planHumanGateLift`). A reader that omits it judges a project-declared hold as invalid, so a lift comment naming that hold would discharge it there.
147
+
97
148
  ## Complete defects found during other work are filed build-ready
98
149
 
99
150
  Any defect discovered while doing something else, which is complete enough to build, is filed through `lisa-track` / `lisa-tracker-write` with **explicit `build_ready: true`**. It must be claimable by build-intake on the next cycle with no human flipping status. "Complete enough to build" is the `work-item-definition-of-ready` bar — reproduction, observed-versus-expected, and Gherkin acceptance criteria — not a placeholder to be fleshed out later.
100
151
 
101
- The same explicitness applies in the other direction. A filing that is genuinely a human product call declares `human_gate`; it does not simply omit the flag and hope the tracker default is the merciful one.
152
+ The same explicitness applies in the other direction. A filing that genuinely needs an act an agent cannot perform declares `human_gate`; it does not simply omit the flag and hope the tracker default is the merciful one.
102
153
 
103
154
  ## Mid-build filings are a planning signal
104
155
 
@@ -139,7 +190,7 @@ Resolving it from the calling project unconditionally made the highest-value rep
139
190
  | `github`, renamed lane | the caller's own label | refused; the target never carried that token |
140
191
  | `github`, stock lane | `status:ready` | worked — because both repositories happened to pick the same string. A coincidence, not a routing decision, which is why the defect was intermittent across the fleet rather than universal |
141
192
 
142
- Unsatisfiable is not the same as refused. The only escape that *did* work cross-repo was `[lisa-human-gate]`, and using it there is a lie about the item: it stamps a build-ready defect report as held for a human product call, and the target's build queue scans the ready role and nothing else. The report is filed and never picked up — the exact incomplete handoff this guard exists to prevent, committed one repository over. (The workaround actually in use was worse still: ask a second agent, in a repo with the right label, to type the command. A control routinely satisfied by delegating around it is misrouting, not enforcing.)
193
+ Unsatisfiable is not the same as refused. The only escape that *did* work cross-repo was `[lisa-human-gate]`, and using it there is a lie about the item: it stamps a build-ready defect report as held for a person, and the target's build queue scans the ready role and nothing else. The report is filed and never picked up — the exact incomplete handoff this guard exists to prevent, committed one repository over. (The workaround actually in use was worse still: ask a second agent, in a repo with the right label, to type the command. A control routinely satisfied by delegating around it is misrouting, not enforcing.)
143
194
 
144
195
  So the target is extracted from the command — `--repo` / `-R` / `--repo=o/r` in any position before a bare `--`, and the `repos/<org>/<repo>/issues` endpoint on the `gh api` and `curl` paths — and the role resolved for **it**:
145
196