@codyswann/lisa 4.88.0 → 4.88.2

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 (233) hide show
  1. package/all/copy-overwrite/scripts/lisa-hooks/block-direct-issue-create.sh +13 -9
  2. package/all/copy-overwrite/scripts/lisa-hooks/parity-safety-net.sh +150 -37
  3. package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +1 -1
  4. package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  5. package/dist/core/lisa-owned-hash-ledger.js +24 -0
  6. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  7. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  8. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  9. package/dist/core/upstream-evidence-manifest.js +42 -24
  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/opencode/plugin-templates/parity-safety-net.sh +150 -37
  13. package/package.json +4 -4
  14. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  15. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  16. package/plugins/lisa/.codex-plugin/skills/lisa-agent-ready/SKILL.md +2 -2
  17. package/plugins/lisa/.codex-plugin/skills/lisa-github-build-intake/SKILL.md +21 -3
  18. package/plugins/lisa/.codex-plugin/skills/lisa-github-create/SKILL.md +1 -1
  19. package/plugins/lisa/.codex-plugin/skills/lisa-github-write-issue/SKILL.md +10 -2
  20. package/plugins/lisa/.codex-plugin/skills/lisa-jira-build-intake/SKILL.md +21 -3
  21. package/plugins/lisa/.codex-plugin/skills/lisa-jira-create/SKILL.md +1 -1
  22. package/plugins/lisa/.codex-plugin/skills/lisa-jira-write-ticket/SKILL.md +10 -2
  23. package/plugins/lisa/.codex-plugin/skills/lisa-linear-build-intake/SKILL.md +22 -4
  24. package/plugins/lisa/.codex-plugin/skills/lisa-linear-create/SKILL.md +1 -1
  25. package/plugins/lisa/.codex-plugin/skills/lisa-linear-write-issue/SKILL.md +10 -2
  26. package/plugins/lisa/.codex-plugin/skills/lisa-repair-intake/SKILL.md +29 -2
  27. package/plugins/lisa/.codex-plugin/skills/lisa-track/SKILL.md +5 -5
  28. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-build-intake/SKILL.md +6 -0
  29. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-create/SKILL.md +1 -1
  30. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-write/SKILL.md +1 -1
  31. package/plugins/lisa/hooks/block-direct-issue-create.sh +13 -9
  32. package/plugins/lisa/hooks/parity-safety-net.sh +150 -37
  33. package/plugins/lisa/rules/reference/automation-runbook-contract.md +3 -2
  34. package/plugins/lisa/rules/reference/config-resolution.md +1 -0
  35. package/plugins/lisa/rules/reference/ready-role-filing.md +56 -5
  36. package/plugins/lisa/scripts/human-gate-act.mjs +182 -0
  37. package/plugins/lisa/scripts/human-gate-lift.mjs +141 -0
  38. package/plugins/lisa/scripts/intake-blocker-reprobe.mjs +319 -5
  39. package/plugins/lisa/skills/lisa-agent-ready/SKILL.md +2 -2
  40. package/plugins/lisa/skills/lisa-github-build-intake/SKILL.md +21 -3
  41. package/plugins/lisa/skills/lisa-github-create/SKILL.md +1 -1
  42. package/plugins/lisa/skills/lisa-github-write-issue/SKILL.md +10 -2
  43. package/plugins/lisa/skills/lisa-jira-build-intake/SKILL.md +21 -3
  44. package/plugins/lisa/skills/lisa-jira-create/SKILL.md +1 -1
  45. package/plugins/lisa/skills/lisa-jira-write-ticket/SKILL.md +10 -2
  46. package/plugins/lisa/skills/lisa-linear-build-intake/SKILL.md +22 -4
  47. package/plugins/lisa/skills/lisa-linear-create/SKILL.md +1 -1
  48. package/plugins/lisa/skills/lisa-linear-write-issue/SKILL.md +10 -2
  49. package/plugins/lisa/skills/lisa-repair-intake/SKILL.md +29 -2
  50. package/plugins/lisa/skills/lisa-track/SKILL.md +5 -5
  51. package/plugins/lisa/skills/lisa-tracker-build-intake/SKILL.md +6 -0
  52. package/plugins/lisa/skills/lisa-tracker-create/SKILL.md +1 -1
  53. package/plugins/lisa/skills/lisa-tracker-write/SKILL.md +1 -1
  54. package/plugins/lisa-agy/hooks/block-direct-issue-create.sh +13 -9
  55. package/plugins/lisa-agy/hooks/parity-safety-net.sh +150 -37
  56. package/plugins/lisa-agy/plugin.json +1 -1
  57. package/plugins/lisa-agy/scripts/human-gate-act.mjs +182 -0
  58. package/plugins/lisa-agy/scripts/human-gate-lift.mjs +141 -0
  59. package/plugins/lisa-agy/scripts/intake-blocker-reprobe.mjs +319 -5
  60. package/plugins/lisa-agy/skills/lisa-agent-ready/SKILL.md +2 -2
  61. package/plugins/lisa-agy/skills/lisa-github-build-intake/SKILL.md +21 -3
  62. package/plugins/lisa-agy/skills/lisa-github-create/SKILL.md +1 -1
  63. package/plugins/lisa-agy/skills/lisa-github-write-issue/SKILL.md +10 -2
  64. package/plugins/lisa-agy/skills/lisa-jira-build-intake/SKILL.md +21 -3
  65. package/plugins/lisa-agy/skills/lisa-jira-create/SKILL.md +1 -1
  66. package/plugins/lisa-agy/skills/lisa-jira-write-ticket/SKILL.md +10 -2
  67. package/plugins/lisa-agy/skills/lisa-linear-build-intake/SKILL.md +22 -4
  68. package/plugins/lisa-agy/skills/lisa-linear-create/SKILL.md +1 -1
  69. package/plugins/lisa-agy/skills/lisa-linear-write-issue/SKILL.md +10 -2
  70. package/plugins/lisa-agy/skills/lisa-repair-intake/SKILL.md +29 -2
  71. package/plugins/lisa-agy/skills/lisa-track/SKILL.md +5 -5
  72. package/plugins/lisa-agy/skills/lisa-tracker-build-intake/SKILL.md +6 -0
  73. package/plugins/lisa-agy/skills/lisa-tracker-create/SKILL.md +1 -1
  74. package/plugins/lisa-agy/skills/lisa-tracker-write/SKILL.md +1 -1
  75. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  76. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  77. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  78. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  79. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  80. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  81. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  82. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  83. package/plugins/lisa-copilot/hooks/block-direct-issue-create.sh +13 -9
  84. package/plugins/lisa-copilot/hooks/parity-safety-net.sh +150 -37
  85. package/plugins/lisa-copilot/rules/reference/automation-runbook-contract.md +3 -2
  86. package/plugins/lisa-copilot/rules/reference/config-resolution.md +1 -0
  87. package/plugins/lisa-copilot/rules/reference/ready-role-filing.md +56 -5
  88. package/plugins/lisa-copilot/scripts/human-gate-act.mjs +182 -0
  89. package/plugins/lisa-copilot/scripts/human-gate-lift.mjs +141 -0
  90. package/plugins/lisa-copilot/scripts/intake-blocker-reprobe.mjs +319 -5
  91. package/plugins/lisa-copilot/skills/lisa-agent-ready/SKILL.md +2 -2
  92. package/plugins/lisa-copilot/skills/lisa-github-build-intake/SKILL.md +21 -3
  93. package/plugins/lisa-copilot/skills/lisa-github-create/SKILL.md +1 -1
  94. package/plugins/lisa-copilot/skills/lisa-github-write-issue/SKILL.md +10 -2
  95. package/plugins/lisa-copilot/skills/lisa-jira-build-intake/SKILL.md +21 -3
  96. package/plugins/lisa-copilot/skills/lisa-jira-create/SKILL.md +1 -1
  97. package/plugins/lisa-copilot/skills/lisa-jira-write-ticket/SKILL.md +10 -2
  98. package/plugins/lisa-copilot/skills/lisa-linear-build-intake/SKILL.md +22 -4
  99. package/plugins/lisa-copilot/skills/lisa-linear-create/SKILL.md +1 -1
  100. package/plugins/lisa-copilot/skills/lisa-linear-write-issue/SKILL.md +10 -2
  101. package/plugins/lisa-copilot/skills/lisa-repair-intake/SKILL.md +29 -2
  102. package/plugins/lisa-copilot/skills/lisa-track/SKILL.md +5 -5
  103. package/plugins/lisa-copilot/skills/lisa-tracker-build-intake/SKILL.md +6 -0
  104. package/plugins/lisa-copilot/skills/lisa-tracker-create/SKILL.md +1 -1
  105. package/plugins/lisa-copilot/skills/lisa-tracker-write/SKILL.md +1 -1
  106. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  107. package/plugins/lisa-cursor/hooks/block-direct-issue-create.sh +13 -9
  108. package/plugins/lisa-cursor/hooks/parity-safety-net.sh +150 -37
  109. package/plugins/lisa-cursor/rules/automation-runbook-contract-reference.mdc +3 -2
  110. package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +1 -0
  111. package/plugins/lisa-cursor/rules/ready-role-filing-reference.mdc +56 -5
  112. package/plugins/lisa-cursor/scripts/human-gate-act.mjs +182 -0
  113. package/plugins/lisa-cursor/scripts/human-gate-lift.mjs +141 -0
  114. package/plugins/lisa-cursor/scripts/intake-blocker-reprobe.mjs +319 -5
  115. package/plugins/lisa-cursor/skills/lisa-agent-ready/SKILL.md +2 -2
  116. package/plugins/lisa-cursor/skills/lisa-github-build-intake/SKILL.md +21 -3
  117. package/plugins/lisa-cursor/skills/lisa-github-create/SKILL.md +1 -1
  118. package/plugins/lisa-cursor/skills/lisa-github-write-issue/SKILL.md +10 -2
  119. package/plugins/lisa-cursor/skills/lisa-jira-build-intake/SKILL.md +21 -3
  120. package/plugins/lisa-cursor/skills/lisa-jira-create/SKILL.md +1 -1
  121. package/plugins/lisa-cursor/skills/lisa-jira-write-ticket/SKILL.md +10 -2
  122. package/plugins/lisa-cursor/skills/lisa-linear-build-intake/SKILL.md +22 -4
  123. package/plugins/lisa-cursor/skills/lisa-linear-create/SKILL.md +1 -1
  124. package/plugins/lisa-cursor/skills/lisa-linear-write-issue/SKILL.md +10 -2
  125. package/plugins/lisa-cursor/skills/lisa-repair-intake/SKILL.md +29 -2
  126. package/plugins/lisa-cursor/skills/lisa-track/SKILL.md +5 -5
  127. package/plugins/lisa-cursor/skills/lisa-tracker-build-intake/SKILL.md +6 -0
  128. package/plugins/lisa-cursor/skills/lisa-tracker-create/SKILL.md +1 -1
  129. package/plugins/lisa-cursor/skills/lisa-tracker-write/SKILL.md +1 -1
  130. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  131. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  132. package/plugins/lisa-devin/hooks/block-direct-issue-create.sh +13 -9
  133. package/plugins/lisa-devin/hooks/parity-safety-net.sh +150 -37
  134. package/plugins/lisa-devin/rules/reference/automation-runbook-contract.md +3 -2
  135. package/plugins/lisa-devin/rules/reference/config-resolution.md +1 -0
  136. package/plugins/lisa-devin/rules/reference/ready-role-filing.md +56 -5
  137. package/plugins/lisa-devin/scripts/human-gate-act.mjs +182 -0
  138. package/plugins/lisa-devin/scripts/human-gate-lift.mjs +141 -0
  139. package/plugins/lisa-devin/scripts/intake-blocker-reprobe.mjs +319 -5
  140. package/plugins/lisa-devin/skills/lisa-agent-ready/SKILL.md +2 -2
  141. package/plugins/lisa-devin/skills/lisa-github-build-intake/SKILL.md +21 -3
  142. package/plugins/lisa-devin/skills/lisa-github-create/SKILL.md +1 -1
  143. package/plugins/lisa-devin/skills/lisa-github-write-issue/SKILL.md +10 -2
  144. package/plugins/lisa-devin/skills/lisa-jira-build-intake/SKILL.md +21 -3
  145. package/plugins/lisa-devin/skills/lisa-jira-create/SKILL.md +1 -1
  146. package/plugins/lisa-devin/skills/lisa-jira-write-ticket/SKILL.md +10 -2
  147. package/plugins/lisa-devin/skills/lisa-linear-build-intake/SKILL.md +22 -4
  148. package/plugins/lisa-devin/skills/lisa-linear-create/SKILL.md +1 -1
  149. package/plugins/lisa-devin/skills/lisa-linear-write-issue/SKILL.md +10 -2
  150. package/plugins/lisa-devin/skills/lisa-repair-intake/SKILL.md +29 -2
  151. package/plugins/lisa-devin/skills/lisa-track/SKILL.md +5 -5
  152. package/plugins/lisa-devin/skills/lisa-tracker-build-intake/SKILL.md +6 -0
  153. package/plugins/lisa-devin/skills/lisa-tracker-create/SKILL.md +1 -1
  154. package/plugins/lisa-devin/skills/lisa-tracker-write/SKILL.md +1 -1
  155. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  156. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  157. package/plugins/lisa-expo-agy/plugin.json +1 -1
  158. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  159. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  160. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  161. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  162. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  163. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  164. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  165. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  166. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  167. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  168. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  169. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  170. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  171. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  172. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  173. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  174. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  175. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  176. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  177. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  178. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  179. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  180. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  181. package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
  182. package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
  183. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  184. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  185. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  186. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  187. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  188. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  189. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  190. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  191. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  192. package/plugins/lisa-rails-agy/plugin.json +1 -1
  193. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  194. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  195. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  196. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  197. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  198. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  199. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  200. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  201. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  202. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  203. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  204. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  205. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  206. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  207. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  208. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  209. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  210. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  211. package/plugins/src/base/hooks/block-direct-issue-create.sh +13 -9
  212. package/plugins/src/base/hooks/parity-safety-net.sh +150 -37
  213. package/plugins/src/base/rules/reference/automation-runbook-contract.md +3 -2
  214. package/plugins/src/base/rules/reference/config-resolution.md +1 -0
  215. package/plugins/src/base/rules/reference/ready-role-filing.md +56 -5
  216. package/plugins/src/base/scripts/human-gate-act.mjs +182 -0
  217. package/plugins/src/base/scripts/human-gate-lift.mjs +141 -0
  218. package/plugins/src/base/scripts/intake-blocker-reprobe.mjs +319 -5
  219. package/plugins/src/base/skills/lisa-agent-ready/SKILL.md +2 -2
  220. package/plugins/src/base/skills/lisa-github-build-intake/SKILL.md +21 -3
  221. package/plugins/src/base/skills/lisa-github-create/SKILL.md +1 -1
  222. package/plugins/src/base/skills/lisa-github-write-issue/SKILL.md +10 -2
  223. package/plugins/src/base/skills/lisa-jira-build-intake/SKILL.md +21 -3
  224. package/plugins/src/base/skills/lisa-jira-create/SKILL.md +1 -1
  225. package/plugins/src/base/skills/lisa-jira-write-ticket/SKILL.md +10 -2
  226. package/plugins/src/base/skills/lisa-linear-build-intake/SKILL.md +22 -4
  227. package/plugins/src/base/skills/lisa-linear-create/SKILL.md +1 -1
  228. package/plugins/src/base/skills/lisa-linear-write-issue/SKILL.md +10 -2
  229. package/plugins/src/base/skills/lisa-repair-intake/SKILL.md +29 -2
  230. package/plugins/src/base/skills/lisa-track/SKILL.md +5 -5
  231. package/plugins/src/base/skills/lisa-tracker-build-intake/SKILL.md +6 -0
  232. package/plugins/src/base/skills/lisa-tracker-create/SKILL.md +1 -1
  233. package/plugins/src/base/skills/lisa-tracker-write/SKILL.md +1 -1
@@ -215,19 +215,27 @@ For each pre-work candidate that is **not** in `$READY`:
215
215
 
216
216
  1. **Read release comments before applying the human gate.** Pass all item comments, labels,
217
217
  body, `trustedHumanActorIds` and configured `humanNeededLabel` to `classifyReadyCandidate(...)`. For a discharged hold,
218
- call `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
218
+ call `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels, alreadyNotified })`
219
219
  and retain its plan. Apply human-marker cleanup only as planned; defer any ready-role restoration
220
220
  until steps 2–5 have cleared the remaining blockers (map the role to the vendor's state or label).
221
221
  A still-active hold is never auto-selected, whatever any probe says. An absent or unreadable
222
222
  comment history cannot discharge a hold. A release removes only the human hold: continue the
223
223
  remaining blocker checks below before selecting the item.
224
+ 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
225
+ `removeHumanNeededLabel` here; defer `addReadyLabel` until the remaining blocker checks below
226
+ clear, exactly as for a release. A hold that names no act an agent cannot perform then never
227
+ blocks selection, and an item with a real blocker never skips the re-probe. A hold that is
228
+ lifted, by this call or in an earlier cycle (`humanGateVerdict(...).lifted` lists both), is a
229
+ discharged condition, not a human decision still pending: record the decision on
230
+ the item (a `Decision:` line saying what was chosen and why) if it does not carry one yet and exclude that condition from
231
+ step 2's probe. Keep probing any independent blocker the item states.
224
232
 
225
233
  2. **Extract the stated discharge condition** from the description or the most recent blocking comment — the sentence naming what has to become true.
226
234
  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.
227
235
  4. **Classify with the shared helper** so the ordering and the evidence requirement cannot drift per vendor:
228
236
 
229
237
  ```text
230
- classifyPreWorkCandidate({ laneType, labels, body, comments, trustedHumanActorIds, humanNeededLabel, statedBlocker, probe })
238
+ classifyPreWorkCandidate({ laneType, labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, statedBlocker, probe })
231
239
  → { selectable, reason, humanGated, evidence }
232
240
  ```
233
241
 
@@ -250,6 +258,16 @@ Run this **first**, ahead of the repo-scope gate (3a.0) and the leaf-only gate (
250
258
  candidate. Ordering is load-bearing for the same reason it is inside `classifyPreWorkCandidate`: no
251
259
  other gate's verdict — however conclusive — may promote an item a person parked.
252
260
 
261
+ **Lift invalid holds before classifying.** A hold filed under the old "human product call"
262
+ wording that names no act an agent cannot perform is not a hold (`ready-role-filing`, "What a human
263
+ 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
264
+ from `humanGate.humanOnly` in config. Post each string in its `comments` once (each begins
265
+ `[lisa-human-gate-lifted] reason=<slug>` and explains why), apply its `actions` (remove the
266
+ human-needed marker, add the ready role back), then classify below with those comments included. A
267
+ valid hold (credential, spend, sign-off, and the rest) plans nothing and stays held; so does a
268
+ label-only hold. Name lifted items in the cycle summary via `summarizeHumanGateLifts([...])`,
269
+ printed even at zero.
270
+
253
271
  1. **Classify with `classifyReadyCandidate(...)`** from `scripts/intake-blocker-reprobe.mjs`. It
254
272
  shares the gate test with the pre-work classifier deliberately — two copies of a substring test
255
273
  drift, and a drifted gate fails *silently*, by quietly ceasing to match. Do **not** re-implement
@@ -266,7 +284,7 @@ other gate's verdict — however conclusive — may promote an item a person par
266
284
  and re-rejected every cycle forever and seen by nothing — `lisa-repair-intake` sweeps items that
267
285
  are **not** in the ready role and excludes gated ones outright, so a ready-and-gated item falls
268
286
  outside its filter twice over. Call
269
- `planHumanGateReconciliation({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, readyLabel, alreadyNotified })`
287
+ `planHumanGateReconciliation({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, alreadyNotified })`
270
288
  and apply exactly the actions it returns: remove `$READY`, add the configured human-needed
271
289
  marker, and post `formatHumanGateNote()` once. The planner is idempotent by state, so an item
272
290
  already out of the lane and already marked yields no second mutation and no second comment. This
@@ -276,7 +294,7 @@ other gate's verdict — however conclusive — may promote an item a person par
276
294
  This ready-lane candidate can retain a historical body marker and a human-needed label.
277
295
  This step reconciles only candidates still in the ready lane; released holds outside it are
278
296
  recovered by `lisa-repair-intake` step 2b (or Phase 2.5 when included in this cycle). Call
279
- `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
297
+ `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels, alreadyNotified })`
280
298
  and apply exactly the actions it returns: remove the configured human-needed marker, add the
281
299
  configured ready role back, and post `formatHumanGateReleaseNote()` once. It is the exact inverse
282
300
  of step 3's planner and it refuses in both directions — an item still held plans nothing, and an
@@ -128,7 +128,7 @@ Items must be created in parent-before-child order so each child can be passed i
128
128
  2. For each Story, invoke `lisa-linear-write-issue` with the Project ID as `parent_project_id`. Capture each Issue identifier.
129
129
  3. For each Sub-task, invoke `lisa-linear-write-issue` with the Story Issue ID as `parent_issue_id` and explicit `build_ready: true`.
130
130
 
131
- - **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-linear-write-issue` rejects it.
131
+ - **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-linear-write-issue` rejects it.
132
132
 
133
133
  ### What to pass to each invocation
134
134
 
@@ -305,10 +305,18 @@ For Bug / Task / Sub-task, ensure the summary is prefixed with `[<repo-name>]`.
305
305
  - **`build_ready: false`** → create the leaf **without** the `ready` state, leaving it in the team's default backlog state so it waits for a human to review and promote it into the queue.
306
306
  - **`build_ready: true`** → declare `lifecycle_role: ready` so the access layer resolves `.linear.workflow.ready` and places the leaf there, and `lisa-intake` / `lisa-linear-build-intake` auto-picks it up. Best-effort **for the lane, never for the guard**: an access-layer refusal (`ready` unbound, absent from the team, ambiguous) is fail-closed and is never worked around here — surface its message verbatim, do not fail the write, leave the Issue in its default state and record the reason. The Issue is still created; what is refused is the unproven lane placement, which is the safe half to lose.
307
307
 
308
- **A filing with neither is an incomplete handoff.** A leaf that is not build-ready must carry an explicit `human_gate: "<why a human must judge this first>"`; 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 — a visible line plus the verbatim marker:
308
+ **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.
309
+
310
+ **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:
311
+
312
+ ```bash
313
+ node "${CLAUDE_PLUGIN_ROOT:-node_modules/@codyswann/lisa/plugins/lisa}/scripts/human-gate-act.mjs" check --reason "<the human_gate reason>"
314
+ ```
315
+
316
+ Exit `1` refuses the gate: do **not** file the leaf held. Report the refusal with the verdict's `remedy` — **decide and record**: pick the reasonable default, write a `Decision:` line on the item, and file it `build_ready: true`. Exit `2` is a usage or config error: stop and report. On exit `0`, stamp the hold with the verdict's `label` naming the act — a visible line plus the verbatim marker:
309
317
 
310
318
  ```text
311
- Held for a human product call: <reason>.
319
+ Held for a person to <label>: <reason>.
312
320
  <!-- [lisa-human-gate] reason=<short-slug> -->
313
321
  ```
314
322
 
@@ -1088,7 +1088,7 @@ with labels like `build-ready`, or with no Lisa status label at all, that are in
1088
1088
  `intake_mode=build`, every non-PRD issue is normalized as a build ticket. If `intake_mode=both`,
1089
1089
  classify PRDs first and normalize all remaining issues as build tickets.
1090
1090
  2a. **Ask whether a person is holding it, before anything else.** Call
1091
- `planLabelNormalization({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, lifecycleLabels, readyLabel })` from
1091
+ `planLabelNormalization({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, lifecycleLabels, readyLabel })` from
1092
1092
  `scripts/intake-blocker-reprobe.mjs` for every candidate and apply exactly the verdict it
1093
1093
  returns. Do **not** re-implement the test here and do **not** decide held-ness from labels
1094
1094
  alone: the vendor writers stamp the `[lisa-human-gate]` marker into the body of a deliberate
@@ -1110,6 +1110,33 @@ with labels like `build-ready`, or with no Lisa status label at all, that are in
1110
1110
  an item whose discharge cannot be seen. That fails closed — it stays held — which is the safe
1111
1111
  direction and precisely why the omission is invisible.
1112
1112
 
1113
+ 2a.5. **Lift the holds that were never valid, with no person involved.** A human gate is for an act
1114
+ an agent cannot perform (`ready-role-filing`, "What a human gate is"). Holds filed under the old
1115
+ "a human product call is pending" wording often name only a topic (`*-triage`, `*-dispatch`, a
1116
+ naming or classification choice), and each one stalls its item until someone notices. An operator
1117
+ should never have to comment to release one.
1118
+
1119
+ Enumerate open items carrying a `[lisa-human-gate]` marker in the body and, for each, call
1120
+ `planHumanGateLift({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels })`
1121
+ from `scripts/human-gate-lift.mjs`, with `humanOnly` read from `humanGate.humanOnly` in config.
1122
+ The planner lifts only when it is sure: a topic-only slug, no act on any hold-related line, and
1123
+ no secret or act token anywhere in the hold text (`ready-role-filing`, "Existing invalid holds
1124
+ are lifted"). Any doubt keeps the hold. Apply exactly what it returns: post each string in `comments` once (each begins
1125
+ `[lisa-human-gate-lifted] reason=<slug>` with a one-line rationale), then remove the human-needed
1126
+ marker and add the configured build `ready` label as `actions` say. Do **not** re-implement the
1127
+ classification here.
1128
+
1129
+ This is not a forged human release, and it is a narrow exception to "never remove a
1130
+ `human_needed` marker this skill did not apply": a lift records that the hold was invalid under
1131
+ the contract, so there is nothing for a person to authorize. A lift's authority comes from
1132
+ re-classifying the hold, not from who wrote the comment, so a lift naming a valid hold discharges
1133
+ nothing. **Valid holds plan nothing** (credential, spend, external account, legal/compliance
1134
+ sign-off, accountable person, unreachable system, Lisa's own human-only gates, and any
1135
+ project-declared class). **Label-only holds plan nothing** — an access block or blocked verdict
1136
+ declares no reason to judge. A mixed item lifts its invalid reasons and stays held for the valid
1137
+ one. Never edit the description. Count these under `lifted_invalid_hold` and name them in the
1138
+ cycle summary via `summarizeHumanGateLifts([...])`, printed even when it is zero.
1139
+
1113
1140
  2b. **Release the holds that have been answered.** This is step 2a's inverse and it is the reason
1114
1141
  this sweep is where it lives: applying a hold had a path and lifting one had none, so a person
1115
1142
  could supply exactly what a held item asked for, record the decision on the item, and the item
@@ -1119,7 +1146,7 @@ with labels like `build-ready`, or with no Lisa status label at all, that are in
1119
1146
 
1120
1147
  Enumerate items carrying the configured `human_needed` marker **or** a `[lisa-human-gate]` marker
1121
1148
  in the body, and for each call
1122
- `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
1149
+ `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels, alreadyNotified })`
1123
1150
  from `scripts/intake-blocker-reprobe.mjs`. Apply exactly the actions it returns: remove the
1124
1151
  human-needed marker, add the configured build `ready` label back, and post
1125
1152
  `formatHumanGateReleaseNote()` once. Do **not** re-implement the discharge test, and do **not**
@@ -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.
@@ -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.