@codyswann/lisa 4.88.0 → 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 (225) 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/upstream-evidence-manifest.d.ts.map +1 -1
  8. package/dist/core/upstream-evidence-manifest.js +39 -22
  9. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  10. package/dist/opencode/plugin-templates/lisa-block-direct-issue-create.ts +5 -2
  11. package/package.json +4 -4
  12. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  13. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  14. package/plugins/lisa/.codex-plugin/skills/lisa-agent-ready/SKILL.md +2 -2
  15. package/plugins/lisa/.codex-plugin/skills/lisa-github-build-intake/SKILL.md +21 -3
  16. package/plugins/lisa/.codex-plugin/skills/lisa-github-create/SKILL.md +1 -1
  17. package/plugins/lisa/.codex-plugin/skills/lisa-github-write-issue/SKILL.md +10 -2
  18. package/plugins/lisa/.codex-plugin/skills/lisa-jira-build-intake/SKILL.md +21 -3
  19. package/plugins/lisa/.codex-plugin/skills/lisa-jira-create/SKILL.md +1 -1
  20. package/plugins/lisa/.codex-plugin/skills/lisa-jira-write-ticket/SKILL.md +10 -2
  21. package/plugins/lisa/.codex-plugin/skills/lisa-linear-build-intake/SKILL.md +22 -4
  22. package/plugins/lisa/.codex-plugin/skills/lisa-linear-create/SKILL.md +1 -1
  23. package/plugins/lisa/.codex-plugin/skills/lisa-linear-write-issue/SKILL.md +10 -2
  24. package/plugins/lisa/.codex-plugin/skills/lisa-repair-intake/SKILL.md +29 -2
  25. package/plugins/lisa/.codex-plugin/skills/lisa-track/SKILL.md +5 -5
  26. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-build-intake/SKILL.md +6 -0
  27. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-create/SKILL.md +1 -1
  28. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-write/SKILL.md +1 -1
  29. package/plugins/lisa/hooks/block-direct-issue-create.sh +13 -9
  30. package/plugins/lisa/rules/reference/automation-runbook-contract.md +3 -2
  31. package/plugins/lisa/rules/reference/config-resolution.md +1 -0
  32. package/plugins/lisa/rules/reference/ready-role-filing.md +56 -5
  33. package/plugins/lisa/scripts/human-gate-act.mjs +182 -0
  34. package/plugins/lisa/scripts/human-gate-lift.mjs +141 -0
  35. package/plugins/lisa/scripts/intake-blocker-reprobe.mjs +319 -5
  36. package/plugins/lisa/skills/lisa-agent-ready/SKILL.md +2 -2
  37. package/plugins/lisa/skills/lisa-github-build-intake/SKILL.md +21 -3
  38. package/plugins/lisa/skills/lisa-github-create/SKILL.md +1 -1
  39. package/plugins/lisa/skills/lisa-github-write-issue/SKILL.md +10 -2
  40. package/plugins/lisa/skills/lisa-jira-build-intake/SKILL.md +21 -3
  41. package/plugins/lisa/skills/lisa-jira-create/SKILL.md +1 -1
  42. package/plugins/lisa/skills/lisa-jira-write-ticket/SKILL.md +10 -2
  43. package/plugins/lisa/skills/lisa-linear-build-intake/SKILL.md +22 -4
  44. package/plugins/lisa/skills/lisa-linear-create/SKILL.md +1 -1
  45. package/plugins/lisa/skills/lisa-linear-write-issue/SKILL.md +10 -2
  46. package/plugins/lisa/skills/lisa-repair-intake/SKILL.md +29 -2
  47. package/plugins/lisa/skills/lisa-track/SKILL.md +5 -5
  48. package/plugins/lisa/skills/lisa-tracker-build-intake/SKILL.md +6 -0
  49. package/plugins/lisa/skills/lisa-tracker-create/SKILL.md +1 -1
  50. package/plugins/lisa/skills/lisa-tracker-write/SKILL.md +1 -1
  51. package/plugins/lisa-agy/hooks/block-direct-issue-create.sh +13 -9
  52. package/plugins/lisa-agy/plugin.json +1 -1
  53. package/plugins/lisa-agy/scripts/human-gate-act.mjs +182 -0
  54. package/plugins/lisa-agy/scripts/human-gate-lift.mjs +141 -0
  55. package/plugins/lisa-agy/scripts/intake-blocker-reprobe.mjs +319 -5
  56. package/plugins/lisa-agy/skills/lisa-agent-ready/SKILL.md +2 -2
  57. package/plugins/lisa-agy/skills/lisa-github-build-intake/SKILL.md +21 -3
  58. package/plugins/lisa-agy/skills/lisa-github-create/SKILL.md +1 -1
  59. package/plugins/lisa-agy/skills/lisa-github-write-issue/SKILL.md +10 -2
  60. package/plugins/lisa-agy/skills/lisa-jira-build-intake/SKILL.md +21 -3
  61. package/plugins/lisa-agy/skills/lisa-jira-create/SKILL.md +1 -1
  62. package/plugins/lisa-agy/skills/lisa-jira-write-ticket/SKILL.md +10 -2
  63. package/plugins/lisa-agy/skills/lisa-linear-build-intake/SKILL.md +22 -4
  64. package/plugins/lisa-agy/skills/lisa-linear-create/SKILL.md +1 -1
  65. package/plugins/lisa-agy/skills/lisa-linear-write-issue/SKILL.md +10 -2
  66. package/plugins/lisa-agy/skills/lisa-repair-intake/SKILL.md +29 -2
  67. package/plugins/lisa-agy/skills/lisa-track/SKILL.md +5 -5
  68. package/plugins/lisa-agy/skills/lisa-tracker-build-intake/SKILL.md +6 -0
  69. package/plugins/lisa-agy/skills/lisa-tracker-create/SKILL.md +1 -1
  70. package/plugins/lisa-agy/skills/lisa-tracker-write/SKILL.md +1 -1
  71. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  72. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  73. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  74. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  75. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  76. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  77. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  78. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  79. package/plugins/lisa-copilot/hooks/block-direct-issue-create.sh +13 -9
  80. package/plugins/lisa-copilot/rules/reference/automation-runbook-contract.md +3 -2
  81. package/plugins/lisa-copilot/rules/reference/config-resolution.md +1 -0
  82. package/plugins/lisa-copilot/rules/reference/ready-role-filing.md +56 -5
  83. package/plugins/lisa-copilot/scripts/human-gate-act.mjs +182 -0
  84. package/plugins/lisa-copilot/scripts/human-gate-lift.mjs +141 -0
  85. package/plugins/lisa-copilot/scripts/intake-blocker-reprobe.mjs +319 -5
  86. package/plugins/lisa-copilot/skills/lisa-agent-ready/SKILL.md +2 -2
  87. package/plugins/lisa-copilot/skills/lisa-github-build-intake/SKILL.md +21 -3
  88. package/plugins/lisa-copilot/skills/lisa-github-create/SKILL.md +1 -1
  89. package/plugins/lisa-copilot/skills/lisa-github-write-issue/SKILL.md +10 -2
  90. package/plugins/lisa-copilot/skills/lisa-jira-build-intake/SKILL.md +21 -3
  91. package/plugins/lisa-copilot/skills/lisa-jira-create/SKILL.md +1 -1
  92. package/plugins/lisa-copilot/skills/lisa-jira-write-ticket/SKILL.md +10 -2
  93. package/plugins/lisa-copilot/skills/lisa-linear-build-intake/SKILL.md +22 -4
  94. package/plugins/lisa-copilot/skills/lisa-linear-create/SKILL.md +1 -1
  95. package/plugins/lisa-copilot/skills/lisa-linear-write-issue/SKILL.md +10 -2
  96. package/plugins/lisa-copilot/skills/lisa-repair-intake/SKILL.md +29 -2
  97. package/plugins/lisa-copilot/skills/lisa-track/SKILL.md +5 -5
  98. package/plugins/lisa-copilot/skills/lisa-tracker-build-intake/SKILL.md +6 -0
  99. package/plugins/lisa-copilot/skills/lisa-tracker-create/SKILL.md +1 -1
  100. package/plugins/lisa-copilot/skills/lisa-tracker-write/SKILL.md +1 -1
  101. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  102. package/plugins/lisa-cursor/hooks/block-direct-issue-create.sh +13 -9
  103. package/plugins/lisa-cursor/rules/automation-runbook-contract-reference.mdc +3 -2
  104. package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +1 -0
  105. package/plugins/lisa-cursor/rules/ready-role-filing-reference.mdc +56 -5
  106. package/plugins/lisa-cursor/scripts/human-gate-act.mjs +182 -0
  107. package/plugins/lisa-cursor/scripts/human-gate-lift.mjs +141 -0
  108. package/plugins/lisa-cursor/scripts/intake-blocker-reprobe.mjs +319 -5
  109. package/plugins/lisa-cursor/skills/lisa-agent-ready/SKILL.md +2 -2
  110. package/plugins/lisa-cursor/skills/lisa-github-build-intake/SKILL.md +21 -3
  111. package/plugins/lisa-cursor/skills/lisa-github-create/SKILL.md +1 -1
  112. package/plugins/lisa-cursor/skills/lisa-github-write-issue/SKILL.md +10 -2
  113. package/plugins/lisa-cursor/skills/lisa-jira-build-intake/SKILL.md +21 -3
  114. package/plugins/lisa-cursor/skills/lisa-jira-create/SKILL.md +1 -1
  115. package/plugins/lisa-cursor/skills/lisa-jira-write-ticket/SKILL.md +10 -2
  116. package/plugins/lisa-cursor/skills/lisa-linear-build-intake/SKILL.md +22 -4
  117. package/plugins/lisa-cursor/skills/lisa-linear-create/SKILL.md +1 -1
  118. package/plugins/lisa-cursor/skills/lisa-linear-write-issue/SKILL.md +10 -2
  119. package/plugins/lisa-cursor/skills/lisa-repair-intake/SKILL.md +29 -2
  120. package/plugins/lisa-cursor/skills/lisa-track/SKILL.md +5 -5
  121. package/plugins/lisa-cursor/skills/lisa-tracker-build-intake/SKILL.md +6 -0
  122. package/plugins/lisa-cursor/skills/lisa-tracker-create/SKILL.md +1 -1
  123. package/plugins/lisa-cursor/skills/lisa-tracker-write/SKILL.md +1 -1
  124. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  125. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  126. package/plugins/lisa-devin/hooks/block-direct-issue-create.sh +13 -9
  127. package/plugins/lisa-devin/rules/reference/automation-runbook-contract.md +3 -2
  128. package/plugins/lisa-devin/rules/reference/config-resolution.md +1 -0
  129. package/plugins/lisa-devin/rules/reference/ready-role-filing.md +56 -5
  130. package/plugins/lisa-devin/scripts/human-gate-act.mjs +182 -0
  131. package/plugins/lisa-devin/scripts/human-gate-lift.mjs +141 -0
  132. package/plugins/lisa-devin/scripts/intake-blocker-reprobe.mjs +319 -5
  133. package/plugins/lisa-devin/skills/lisa-agent-ready/SKILL.md +2 -2
  134. package/plugins/lisa-devin/skills/lisa-github-build-intake/SKILL.md +21 -3
  135. package/plugins/lisa-devin/skills/lisa-github-create/SKILL.md +1 -1
  136. package/plugins/lisa-devin/skills/lisa-github-write-issue/SKILL.md +10 -2
  137. package/plugins/lisa-devin/skills/lisa-jira-build-intake/SKILL.md +21 -3
  138. package/plugins/lisa-devin/skills/lisa-jira-create/SKILL.md +1 -1
  139. package/plugins/lisa-devin/skills/lisa-jira-write-ticket/SKILL.md +10 -2
  140. package/plugins/lisa-devin/skills/lisa-linear-build-intake/SKILL.md +22 -4
  141. package/plugins/lisa-devin/skills/lisa-linear-create/SKILL.md +1 -1
  142. package/plugins/lisa-devin/skills/lisa-linear-write-issue/SKILL.md +10 -2
  143. package/plugins/lisa-devin/skills/lisa-repair-intake/SKILL.md +29 -2
  144. package/plugins/lisa-devin/skills/lisa-track/SKILL.md +5 -5
  145. package/plugins/lisa-devin/skills/lisa-tracker-build-intake/SKILL.md +6 -0
  146. package/plugins/lisa-devin/skills/lisa-tracker-create/SKILL.md +1 -1
  147. package/plugins/lisa-devin/skills/lisa-tracker-write/SKILL.md +1 -1
  148. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  149. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  150. package/plugins/lisa-expo-agy/plugin.json +1 -1
  151. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  152. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  153. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  154. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  155. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  156. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  157. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  158. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  159. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  160. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  161. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  162. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  163. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  164. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  165. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  166. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  167. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  168. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  169. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  170. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  171. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  172. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  173. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  174. package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
  175. package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
  176. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  177. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  178. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  179. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  180. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  181. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  182. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  183. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  184. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  185. package/plugins/lisa-rails-agy/plugin.json +1 -1
  186. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  187. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  188. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  189. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  190. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  191. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  192. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  193. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  194. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  195. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  196. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  197. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  198. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  199. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  200. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  201. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  202. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  203. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  204. package/plugins/src/base/hooks/block-direct-issue-create.sh +13 -9
  205. package/plugins/src/base/rules/reference/automation-runbook-contract.md +3 -2
  206. package/plugins/src/base/rules/reference/config-resolution.md +1 -0
  207. package/plugins/src/base/rules/reference/ready-role-filing.md +56 -5
  208. package/plugins/src/base/scripts/human-gate-act.mjs +182 -0
  209. package/plugins/src/base/scripts/human-gate-lift.mjs +141 -0
  210. package/plugins/src/base/scripts/intake-blocker-reprobe.mjs +319 -5
  211. package/plugins/src/base/skills/lisa-agent-ready/SKILL.md +2 -2
  212. package/plugins/src/base/skills/lisa-github-build-intake/SKILL.md +21 -3
  213. package/plugins/src/base/skills/lisa-github-create/SKILL.md +1 -1
  214. package/plugins/src/base/skills/lisa-github-write-issue/SKILL.md +10 -2
  215. package/plugins/src/base/skills/lisa-jira-build-intake/SKILL.md +21 -3
  216. package/plugins/src/base/skills/lisa-jira-create/SKILL.md +1 -1
  217. package/plugins/src/base/skills/lisa-jira-write-ticket/SKILL.md +10 -2
  218. package/plugins/src/base/skills/lisa-linear-build-intake/SKILL.md +22 -4
  219. package/plugins/src/base/skills/lisa-linear-create/SKILL.md +1 -1
  220. package/plugins/src/base/skills/lisa-linear-write-issue/SKILL.md +10 -2
  221. package/plugins/src/base/skills/lisa-repair-intake/SKILL.md +29 -2
  222. package/plugins/src/base/skills/lisa-track/SKILL.md +5 -5
  223. package/plugins/src/base/skills/lisa-tracker-build-intake/SKILL.md +6 -0
  224. package/plugins/src/base/skills/lisa-tracker-create/SKILL.md +1 -1
  225. package/plugins/src/base/skills/lisa-tracker-write/SKILL.md +1 -1
@@ -213,19 +213,27 @@ For each pre-work candidate that is **not** in `$READY`:
213
213
 
214
214
  1. **Read release comments before applying the human gate.** Pass all item comments, labels,
215
215
  body, `trustedHumanActorIds` and configured `humanNeededLabel` to `classifyReadyCandidate(...)`. For a discharged hold,
216
- call `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
216
+ call `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels, alreadyNotified })`
217
217
  and retain its plan. Apply human-marker cleanup only as planned; defer any ready-role restoration
218
218
  until steps 2–5 have cleared the remaining blockers (map the role to the vendor's state or label).
219
219
  A still-active hold is never auto-selected, whatever any probe says. An absent or unreadable
220
220
  comment history cannot discharge a hold. A release removes only the human hold: continue the
221
221
  remaining blocker checks below before selecting the item.
222
+ Lift invalid holds first: call `planHumanGateLift({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels })` from `scripts/human-gate-lift.mjs`. Post its `comments` and apply only
223
+ `removeHumanNeededLabel` here; defer `addReadyLabel` until the remaining blocker checks below
224
+ clear, exactly as for a release. A hold that names no act an agent cannot perform then never
225
+ blocks selection, and an item with a real blocker never skips the re-probe. A hold that is
226
+ lifted, by this call or in an earlier cycle (`humanGateVerdict(...).lifted` lists both), is a
227
+ discharged condition, not a human decision still pending: record the decision on
228
+ the item (a `Decision:` line saying what was chosen and why) if it does not carry one yet and exclude that condition from
229
+ step 2's probe. Keep probing any independent blocker the item states.
222
230
 
223
231
  2. **Extract the stated discharge condition** from the description or the most recent blocking comment — the sentence naming what has to become true.
224
232
  3. **Probe it.** Machine-testable conditions are the ones that rot fastest and are cheapest to check: a version on trunk (`git show origin/<trunk>:<manifest>`), a published package, a run history (`gh run list`), an advisory's patched status. A condition that is a human decision is not machine-testable — leave it and move on.
225
233
  4. **Classify with the shared helper** so the ordering and the evidence requirement cannot drift per vendor:
226
234
 
227
235
  ```text
228
- classifyPreWorkCandidate({ laneType, labels, body, comments, trustedHumanActorIds, humanNeededLabel, statedBlocker, probe })
236
+ classifyPreWorkCandidate({ laneType, labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, statedBlocker, probe })
229
237
  → { selectable, reason, humanGated, evidence }
230
238
  ```
231
239
 
@@ -248,6 +256,16 @@ Run this **first**, ahead of the repo-scope gate (3a.0) and the leaf-only gate (
248
256
  candidate. Ordering is load-bearing for the same reason it is inside `classifyPreWorkCandidate`: no
249
257
  other gate's verdict — however conclusive — may promote an item a person parked.
250
258
 
259
+ **Lift invalid holds before classifying.** A hold filed under the old "human product call"
260
+ wording that names no act an agent cannot perform is not a hold (`ready-role-filing`, "What a human
261
+ gate is"), and no person should have to comment to end it. Call `planHumanGateLift({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels })` from `scripts/human-gate-lift.mjs`, with `humanOnly` read
262
+ from `humanGate.humanOnly` in config. Post each string in its `comments` once (each begins
263
+ `[lisa-human-gate-lifted] reason=<slug>` and explains why), apply its `actions` (remove the
264
+ human-needed marker, add the ready role back), then classify below with those comments included. A
265
+ valid hold (credential, spend, sign-off, and the rest) plans nothing and stays held; so does a
266
+ label-only hold. Name lifted items in the cycle summary via `summarizeHumanGateLifts([...])`,
267
+ printed even at zero.
268
+
251
269
  1. **Classify with `classifyReadyCandidate(...)`** from `scripts/intake-blocker-reprobe.mjs`. It
252
270
  shares the gate test with the pre-work classifier deliberately — two copies of a substring test
253
271
  drift, and a drifted gate fails *silently*, by quietly ceasing to match. Do **not** re-implement
@@ -264,7 +282,7 @@ other gate's verdict — however conclusive — may promote an item a person par
264
282
  and re-rejected every cycle forever and seen by nothing — `lisa-repair-intake` sweeps items that
265
283
  are **not** in the ready role and excludes gated ones outright, so a ready-and-gated item falls
266
284
  outside its filter twice over. Call
267
- `planHumanGateReconciliation({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, readyLabel, alreadyNotified })`
285
+ `planHumanGateReconciliation({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, alreadyNotified })`
268
286
  and apply exactly the actions it returns: remove `$READY`, add the configured human-needed
269
287
  marker, and post `formatHumanGateNote()` once. The planner is idempotent by state, so an item
270
288
  already out of the lane and already marked yields no second mutation and no second comment. This
@@ -274,7 +292,7 @@ other gate's verdict — however conclusive — may promote an item a person par
274
292
  This ready-lane candidate can retain a historical body marker and a human-needed label.
275
293
  This step reconciles only candidates still in the ready lane; released holds outside it are
276
294
  recovered by `lisa-repair-intake` step 2b (or Phase 2.5 when included in this cycle). Call
277
- `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
295
+ `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels, alreadyNotified })`
278
296
  and apply exactly the actions it returns: remove the configured human-needed marker, add the
279
297
  configured ready role back, and post `formatHumanGateReleaseNote()` once. It is the exact inverse
280
298
  of step 3's planner and it refuses in both directions — an item still held plans nothing, and an
@@ -126,7 +126,7 @@ Items must be created in parent-before-child order so each child can be passed i
126
126
  2. For each Story, invoke `lisa-linear-write-issue` with the Project ID as `parent_project_id`. Capture each Issue identifier.
127
127
  3. For each Sub-task, invoke `lisa-linear-write-issue` with the Story Issue ID as `parent_issue_id` and explicit `build_ready: true`.
128
128
 
129
- - **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.
129
+ - **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.
130
130
 
131
131
  ### What to pass to each invocation
132
132
 
@@ -303,10 +303,18 @@ For Bug / Task / Sub-task, ensure the summary is prefixed with `[<repo-name>]`.
303
303
  - **`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.
304
304
  - **`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.
305
305
 
306
- **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:
306
+ **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.
307
+
308
+ **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:
309
+
310
+ ```bash
311
+ node "${CLAUDE_PLUGIN_ROOT:-node_modules/@codyswann/lisa/plugins/lisa}/scripts/human-gate-act.mjs" check --reason "<the human_gate reason>"
312
+ ```
313
+
314
+ 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:
307
315
 
308
316
  ```text
309
- Held for a human product call: <reason>.
317
+ Held for a person to <label>: <reason>.
310
318
  <!-- [lisa-human-gate] reason=<short-slug> -->
311
319
  ```
312
320
 
@@ -1086,7 +1086,7 @@ with labels like `build-ready`, or with no Lisa status label at all, that are in
1086
1086
  `intake_mode=build`, every non-PRD issue is normalized as a build ticket. If `intake_mode=both`,
1087
1087
  classify PRDs first and normalize all remaining issues as build tickets.
1088
1088
  2a. **Ask whether a person is holding it, before anything else.** Call
1089
- `planLabelNormalization({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, lifecycleLabels, readyLabel })` from
1089
+ `planLabelNormalization({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, lifecycleLabels, readyLabel })` from
1090
1090
  `scripts/intake-blocker-reprobe.mjs` for every candidate and apply exactly the verdict it
1091
1091
  returns. Do **not** re-implement the test here and do **not** decide held-ness from labels
1092
1092
  alone: the vendor writers stamp the `[lisa-human-gate]` marker into the body of a deliberate
@@ -1108,6 +1108,33 @@ with labels like `build-ready`, or with no Lisa status label at all, that are in
1108
1108
  an item whose discharge cannot be seen. That fails closed — it stays held — which is the safe
1109
1109
  direction and precisely why the omission is invisible.
1110
1110
 
1111
+ 2a.5. **Lift the holds that were never valid, with no person involved.** A human gate is for an act
1112
+ an agent cannot perform (`ready-role-filing`, "What a human gate is"). Holds filed under the old
1113
+ "a human product call is pending" wording often name only a topic (`*-triage`, `*-dispatch`, a
1114
+ naming or classification choice), and each one stalls its item until someone notices. An operator
1115
+ should never have to comment to release one.
1116
+
1117
+ Enumerate open items carrying a `[lisa-human-gate]` marker in the body and, for each, call
1118
+ `planHumanGateLift({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels })`
1119
+ from `scripts/human-gate-lift.mjs`, with `humanOnly` read from `humanGate.humanOnly` in config.
1120
+ The planner lifts only when it is sure: a topic-only slug, no act on any hold-related line, and
1121
+ no secret or act token anywhere in the hold text (`ready-role-filing`, "Existing invalid holds
1122
+ are lifted"). Any doubt keeps the hold. Apply exactly what it returns: post each string in `comments` once (each begins
1123
+ `[lisa-human-gate-lifted] reason=<slug>` with a one-line rationale), then remove the human-needed
1124
+ marker and add the configured build `ready` label as `actions` say. Do **not** re-implement the
1125
+ classification here.
1126
+
1127
+ This is not a forged human release, and it is a narrow exception to "never remove a
1128
+ `human_needed` marker this skill did not apply": a lift records that the hold was invalid under
1129
+ the contract, so there is nothing for a person to authorize. A lift's authority comes from
1130
+ re-classifying the hold, not from who wrote the comment, so a lift naming a valid hold discharges
1131
+ nothing. **Valid holds plan nothing** (credential, spend, external account, legal/compliance
1132
+ sign-off, accountable person, unreachable system, Lisa's own human-only gates, and any
1133
+ project-declared class). **Label-only holds plan nothing** — an access block or blocked verdict
1134
+ declares no reason to judge. A mixed item lifts its invalid reasons and stays held for the valid
1135
+ one. Never edit the description. Count these under `lifted_invalid_hold` and name them in the
1136
+ cycle summary via `summarizeHumanGateLifts([...])`, printed even when it is zero.
1137
+
1111
1138
  2b. **Release the holds that have been answered.** This is step 2a's inverse and it is the reason
1112
1139
  this sweep is where it lives: applying a hold had a path and lifting one had none, so a person
1113
1140
  could supply exactly what a held item asked for, record the decision on the item, and the item
@@ -1117,7 +1144,7 @@ with labels like `build-ready`, or with no Lisa status label at all, that are in
1117
1144
 
1118
1145
  Enumerate items carrying the configured `human_needed` marker **or** a `[lisa-human-gate]` marker
1119
1146
  in the body, and for each call
1120
- `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
1147
+ `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels, alreadyNotified })`
1121
1148
  from `scripts/intake-blocker-reprobe.mjs`. Apply exactly the actions it returns: remove the
1122
1149
  human-needed marker, add the configured build `ready` label back, and post
1123
1150
  `formatHumanGateReleaseNote()` once. Do **not** re-implement the discharge test, and do **not**
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: lisa-track
3
- description: "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."
3
+ description: "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."
4
4
  allowed-tools: ["Skill", "Bash", "Read"]
5
5
  ---
6
6
 
@@ -47,7 +47,7 @@ For an existing incidental item, read its discussion, linked PRs and dependencie
47
47
  - an explicit reference matching the configured tracker (`KEY-123`, `org/repo#123` or issue URL, Linear team identifier);
48
48
  - an existing file path containing a specification (read the entire file, without offset/limit);
49
49
  - plain-text work description.
50
- 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.
50
+ 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.
51
51
  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.
52
52
 
53
53
  ## Phase 2 — Resolve one live work item
@@ -77,7 +77,7 @@ This is intentionally conservative: ambiguity creates one explicit work item ins
77
77
  ## Phase 3 — Claim and bind
78
78
 
79
79
  The work item is **held** when the caller declared a `human_gate`, independently of any item history,
80
- or `classifyReadyCandidate({ labels, body, comments, trustedHumanActorIds, humanNeededLabel })` from the shipped
80
+ or `classifyReadyCandidate({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly })` from the shipped
81
81
  `scripts/intake-blocker-reprobe.mjs` returns `claimable: false`. Pass the complete live comment
82
82
  history so a matching `[lisa-human-gate-release]` discharges the historical body marker. Never
83
83
  reimplement heldness as a substring test or as the negation of `planHumanGateRelease().released`:
@@ -90,7 +90,7 @@ A held item stops the flow here, whatever roles or labels it carries. Do not inv
90
90
  and carry its reason verbatim in `gate_reason` (null for a keyless hold), then stop.
91
91
 
92
92
  For a discharged item, call
93
- `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
93
+ `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, humanOnly, readyLabel, lifecycleLabels, alreadyNotified })`
94
94
  and apply only the returned actions before claiming. Keep the body marker as history; a release
95
95
  never overrides a new caller-declared hold or another eligibility check.
96
96
 
@@ -113,7 +113,7 @@ Otherwise:
113
113
  resolution_outcome: explicit|reused|created
114
114
  readiness_declaration: build-ready|human-gate
115
115
  held_by: none|caller-declaration|item-marker
116
- gate_reason: <why a human must judge this first>|null
116
+ gate_reason: <the act a person must perform>|null
117
117
  claim_outcome: claimed|reused|held-by-gate
118
118
  binding_outcome: verified|skipped-human-gate
119
119
  work_item_context: <absolute path to .lisa/work-item-context.md>
@@ -85,6 +85,12 @@ whole-body replacement, so a release that went through the description would ris
85
85
  record it was releasing, which is why holds accumulated with no way out (CodySwannGT/lisa#3852).
86
86
  The hold note stays in the description as history and the release sits beside it as a comment.
87
87
 
88
+ A hold that names no act an agent cannot perform is not a hold at all (`ready-role-filing`,
89
+ "What a human gate is"). Every vendor scanner calls `planHumanGateLift(...)` from
90
+ `scripts/human-gate-lift.mjs` before it classifies, posts the `[lisa-human-gate-lifted]
91
+ reason=<slug>` comment it plans, and applies its label actions, so such a hold is lifted with no
92
+ person involved. Valid holds and label-only holds are never lifted.
93
+
88
94
  Measured: sweeping one team by lane name saw 39 of 343 open rows; by category it sees 100. The
89
95
  61-row gap produced 31 consecutive false "dry lane" cycles, every record honest and every
90
96
  conclusion wrong (#2657).
@@ -24,5 +24,5 @@ See the `config-resolution` rule for configuration and dispatch table.
24
24
  ## Rules
25
25
 
26
26
  - All vendor skills delegate every individual ticket write through `lisa-tracker-write`. They never call vendor-specific write tools directly.
27
- - **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.
27
+ - **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.
28
28
  - This shim is for ad-hoc creation from code files / descriptions. PRD-driven creation goes through the `*-to-tracker` skills (notion / confluence / linear / github).
@@ -52,4 +52,4 @@ See the `config-resolution` rule for the full configuration schema and skill-map
52
52
  - Never accept a tracker value outside `{jira, github, linear}`.
53
53
  - Never mutate `$ARGUMENTS` between layers. The vendor skills define their own input contract.
54
54
  - 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.
55
- - **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.
55
+ - **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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "4.88.0",
3
+ "version": "4.88.1",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -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.
@@ -297,8 +297,9 @@ A loop that cannot proceed escalates by filing a tracker item (through `lisa-tra
297
297
  containing exactly these fields.
298
298
 
299
299
  Every escalation is a **declared human gate** under `ready-role-filing`: it passes
300
- `human_gate: "<the smallest unresolved choice>"` so the writer stamps the auditable
301
- `[lisa-human-gate]` marker. An escalation is precisely a filing whose readiness a human owns, so
300
+ `human_gate: "<the act a person must perform to unblock it>"` so the writer stamps the auditable
301
+ `[lisa-human-gate]` marker. An unresolved *choice* with a reasonable default is not an escalation:
302
+ 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
302
303
  omitting the flag and relying on a tracker default would make a deliberate gate indistinguishable
303
304
  from the accidental non-ready filing that rule exists to catch.
304
305
 
@@ -284,6 +284,7 @@ fi
284
284
  | `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. |
285
285
  | `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. |
286
286
  | `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. |
287
+ | `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". |
287
288
  | `wiki` | no | — | Wiki location for the `wiki-knowledge-source` rule. Omit for a local in-repo wiki (`wiki/`). See **Wiki source** below. |
288
289
  | `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. |
289
290
 
@@ -24,9 +24,11 @@ Apply `do-it-now`'s **Worth doing** guidance before deciding to file. A declined
24
24
  ## Every filing declares one of three things
25
25
 
26
26
  - **`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.
27
- - **`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.
27
+ - **`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.
28
28
  - **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.
29
29
 
30
+ **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`.
31
+
30
32
  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.
31
33
 
32
34
  ## The named exception
@@ -70,10 +72,10 @@ The safe direction is the implicit one. A ticket that reaches a build queue by a
70
72
  A writer accepts a filing only when it carries **one** of:
71
73
 
72
74
  - **`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.
73
- - **`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:
75
+ - **`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:
74
76
 
75
77
  ```text
76
- Held for a human product call: <reason>.
78
+ Held for a person to <act>: <reason>.
77
79
  <!-- [lisa-human-gate] reason=<short-slug> -->
78
80
  ```
79
81
 
@@ -99,11 +101,60 @@ The declaration is refused alongside a **by-design leaf type** declared as a fla
99
101
 
100
102
  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.
101
103
 
104
+ ## What a human gate is
105
+
106
+ 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.
107
+
108
+ The acts that qualify:
109
+
110
+ | Act | Examples |
111
+ |---|---|
112
+ | Supply a credential only a person holds | an API key, password, private key, MFA code |
113
+ | Spend money | a paid plan, a purchase, budget approval |
114
+ | Open an external account | a vendor or provider account in a person's or the company's name |
115
+ | Give a legal or compliance sign-off | HIPAA/GDPR/SOC 2, a contract, approval for a protected deployment |
116
+ | Name an accountable person | an owner or approver who answers for the result |
117
+ | Act in a system the agent cannot reach | physical hardware, an on-site step, granting an access the agent lacks |
118
+ | 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 |
119
+ | A decision class this project declared human-only | `humanGate.humanOnly` in `.lisa.config.json` |
120
+
121
+ **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.
122
+
123
+ **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:
124
+
125
+ ```bash
126
+ node "${CLAUDE_PLUGIN_ROOT:-node_modules/@codyswann/lisa/plugins/lisa}/scripts/human-gate-act.mjs" check --reason "<the human_gate reason>"
127
+ ```
128
+
129
+ 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.
130
+
131
+ ### A project can widen the gate
132
+
133
+ A project that wants a decision class to stay human-only declares it, rather than every project inheriting the widest reading:
134
+
135
+ ```json
136
+ { "humanGate": { "humanOnly": ["pricing", "hiring"] } }
137
+ ```
138
+
139
+ 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.
140
+
141
+ ### Existing invalid holds are lifted, with no person involved
142
+
143
+ 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:
144
+
145
+ - posts a visible `[lisa-human-gate-lifted] reason=<slug>` comment explaining why;
146
+ - removes the `human_needed` marker label;
147
+ - moves the item to the build-ready role (unless it has since moved to another lifecycle lane).
148
+
149
+ 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.
150
+
151
+ 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.
152
+
102
153
  ## Complete defects found during other work are filed build-ready
103
154
 
104
155
  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.
105
156
 
106
- 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.
157
+ 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.
107
158
 
108
159
  ## Mid-build filings are a planning signal
109
160
 
@@ -144,7 +195,7 @@ Resolving it from the calling project unconditionally made the highest-value rep
144
195
  | `github`, renamed lane | the caller's own label | refused; the target never carried that token |
145
196
  | `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 |
146
197
 
147
- 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.)
198
+ 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.)
148
199
 
149
200
  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**:
150
201
 
@@ -0,0 +1,182 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * What a `human_gate` must name: an ACT an agent cannot perform.
4
+ *
5
+ * The filing contract used to define a human gate as "a human product call is
6
+ * pending". Almost any open choice reads as a product call, so agents followed
7
+ * the contract to the letter and held plain decisions for a person — which name
8
+ * to use, how to classify existing state, when to dispatch a follow-up — and
9
+ * the person's answer was nearly always "you decide" (CodySwannGT/lisa#4658).
10
+ * A hold costs an operator interruption and stalls the work until someone
11
+ * notices, so a hold that only names a topic is worse than no hold at all.
12
+ *
13
+ * This module is the one answer to "is this a legitimate gate?". A reason is
14
+ * legitimate only when it names one of the acts below, or a decision class the
15
+ * project has explicitly declared human-only in `.lisa.config.json`
16
+ * (`humanGate.humanOnly`). Anything else is a decision: the agent picks the
17
+ * reasonable default, records it on the item, and files it build-ready.
18
+ *
19
+ * Refusal is the default, deliberately. A closed vocabulary of acts can be
20
+ * audited; an open vocabulary of "topics that feel important" is exactly the
21
+ * reading that produced the false gates.
22
+ *
23
+ * The same classifier runs on both ends:
24
+ * - the writers call the CLI below before stamping a hold, and refuse a
25
+ * topic-only reason with {@link DECIDE_AND_RECORD};
26
+ * - the intake sweeps call `planHumanGateLift` in `human-gate-lift.mjs`,
27
+ * which uses it to lift holds filed under the old wording.
28
+ *
29
+ * Usage:
30
+ * node human-gate-act.mjs check --reason "<human_gate reason>" \
31
+ * [--config .lisa.config.json] [--local .lisa.config.local.json]
32
+ * Prints a JSON verdict. Exit 0 when the gate is legitimate, 1 when refused,
33
+ * 2 on a usage or config error.
34
+ * @module human-gate-act
35
+ */
36
+ import { readFileSync, realpathSync } from "node:fs";
37
+ import { fileURLToPath } from "node:url";
38
+
39
+ import {
40
+ DECIDE_AND_RECORD,
41
+ HUMAN_GATE_ACTS,
42
+ classifyHumanGateReason,
43
+ normalizeGateText,
44
+ } from "./intake-blocker-reprobe.mjs";
45
+
46
+ // The classifier lives in `intake-blocker-reprobe.mjs` so the hold verdict
47
+ // can use it without a new import edge there: the npm updater authenticates
48
+ // that file's import graph as a fixed inventory. This module re-exports it
49
+ // and adds the writer-side CLI and config resolution.
50
+ export {
51
+ DECIDE_AND_RECORD,
52
+ HUMAN_GATE_ACTS,
53
+ classifyHumanGateReason,
54
+ normalizeGateText,
55
+ };
56
+
57
+ /**
58
+ * Render the visible hold line plus marker a writer stamps for a valid gate.
59
+ * @param {{ reason?: unknown, slug?: unknown, label?: unknown }} hold - The
60
+ * reason, its short slug, and the act label from the verdict
61
+ * @returns {string} Two lines: the visible statement and the marker
62
+ */
63
+ export function formatHumanGateHold(hold = {}) {
64
+ const reason = String(hold.reason ?? "").trim();
65
+ const slug = String(hold.slug ?? "").trim();
66
+ const label = String(hold.label ?? "").trim() || "act on this";
67
+ const marker =
68
+ slug.length > 0
69
+ ? `<!-- [lisa-human-gate] reason=${slug} -->`
70
+ : "<!-- [lisa-human-gate] -->";
71
+ return [`Held for a person to ${label}: ${reason}.`, marker].join("\n");
72
+ }
73
+
74
+ /**
75
+ * Read `humanGate.humanOnly` from local then global config.
76
+ * @param {string} file - Config path
77
+ * @returns {{ value: unknown, error: string | undefined }} Parse result
78
+ */
79
+ function readConfig(file) {
80
+ let raw;
81
+ try {
82
+ raw = readFileSync(file, "utf8");
83
+ } catch {
84
+ return { value: undefined, error: undefined };
85
+ }
86
+ try {
87
+ return { value: JSON.parse(raw), error: undefined };
88
+ } catch (cause) {
89
+ return { value: undefined, error: `${file} is not valid JSON: ${cause}` };
90
+ }
91
+ }
92
+
93
+ /**
94
+ * The effective human-only classes: local override replaces global when set.
95
+ * @param {unknown} local - Parsed local config
96
+ * @param {unknown} global - Parsed global config
97
+ * @returns {unknown[]} Declared classes
98
+ */
99
+ export function resolveHumanOnly(local, global) {
100
+ const pick = config =>
101
+ config && typeof config === "object"
102
+ ? config.humanGate?.humanOnly
103
+ : undefined;
104
+ const value = pick(local) ?? pick(global);
105
+ return Array.isArray(value) ? value : [];
106
+ }
107
+
108
+ /**
109
+ * Parse `--key value` / `--key=value` flags.
110
+ * @param {string[]} argv - Raw arguments
111
+ * @returns {Record<string, string | null>} Flags; null marks a missing operand
112
+ */
113
+ function parseFlags(argv) {
114
+ const out = {};
115
+ for (let index = 0; index < argv.length; index += 1) {
116
+ const token = argv[index];
117
+ if (!token.startsWith("--")) continue;
118
+ const eq = token.indexOf("=");
119
+ if (eq !== -1) {
120
+ out[token.slice(2, eq)] = token.slice(eq + 1);
121
+ continue;
122
+ }
123
+ const next = argv[index + 1];
124
+ if (next !== undefined && !next.startsWith("--")) {
125
+ out[token.slice(2)] = next;
126
+ index += 1;
127
+ } else {
128
+ // A flag with no operand is recorded as missing, never as the string
129
+ // "true": a reason of "true" would read as a refused gate, and a config
130
+ // path of "true" would silently drop the project's humanOnly classes.
131
+ out[token.slice(2)] = null;
132
+ }
133
+ }
134
+ return out;
135
+ }
136
+
137
+ /**
138
+ * CLI entry point.
139
+ * @param {string[]} argv - Arguments after the script name
140
+ * @param {{ write?: (text: string) => void, error?: (text: string) => void }} [io] - Output sinks
141
+ * @returns {number} Exit code: 0 legitimate, 1 refused, 2 usage/config error
142
+ */
143
+ export function main(argv, io = {}) {
144
+ const write = io.write ?? (text => process.stdout.write(text));
145
+ const error = io.error ?? (text => process.stderr.write(text));
146
+ const [command, ...rest] = argv;
147
+ const flags = parseFlags(rest);
148
+ const missing = ["reason", "config", "local"].filter(
149
+ key => key in flags && (flags[key] === null || flags[key].trim() === "")
150
+ );
151
+ if (command !== "check" || !flags.reason || missing.length > 0) {
152
+ error(
153
+ "usage: human-gate-act.mjs check --reason <text> [--config <path>] [--local <path>]\n"
154
+ );
155
+ return 2;
156
+ }
157
+ const local = readConfig(flags.local ?? ".lisa.config.local.json");
158
+ const global = readConfig(flags.config ?? ".lisa.config.json");
159
+ const failed = [local, global].find(parsed => parsed.error);
160
+ if (failed) {
161
+ error(`${failed.error}\n`);
162
+ return 2;
163
+ }
164
+ const verdict = classifyHumanGateReason(flags.reason, {
165
+ humanOnly: resolveHumanOnly(local.value, global.value),
166
+ });
167
+ write(`${JSON.stringify(verdict)}\n`);
168
+ return verdict.valid ? 0 : 1;
169
+ }
170
+
171
+ const invokedDirectly = (() => {
172
+ try {
173
+ return (
174
+ realpathSync(process.argv[1] ?? "") ===
175
+ realpathSync(fileURLToPath(import.meta.url))
176
+ );
177
+ } catch {
178
+ return false;
179
+ }
180
+ })();
181
+
182
+ if (invokedDirectly) process.exit(main(process.argv.slice(2)));