@codyswann/lisa 4.55.3 → 4.55.5

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 (134) hide show
  1. package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  2. package/dist/core/lisa-owned-hash-ledger.js +6 -0
  3. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  4. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  5. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  6. package/dist/core/upstream-evidence-manifest.js +17 -15
  7. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  8. package/expo/copy-overwrite/scripts/bdd/validate.mjs +84 -8
  9. package/expo/copy-overwrite/scripts/check-bdd-coverage.mjs +1 -1
  10. package/package.json +4 -4
  11. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  12. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  13. package/plugins/lisa/.codex-plugin/skills/lisa-github-build-intake/SKILL.md +22 -7
  14. package/plugins/lisa/.codex-plugin/skills/lisa-github-write-issue/SKILL.md +15 -1
  15. package/plugins/lisa/.codex-plugin/skills/lisa-jira-build-intake/SKILL.md +21 -6
  16. package/plugins/lisa/.codex-plugin/skills/lisa-jira-write-ticket/SKILL.md +15 -1
  17. package/plugins/lisa/.codex-plugin/skills/lisa-linear-access/SKILL.md +12 -2
  18. package/plugins/lisa/.codex-plugin/skills/lisa-linear-build-intake/SKILL.md +20 -6
  19. package/plugins/lisa/.codex-plugin/skills/lisa-linear-write-issue/SKILL.md +15 -1
  20. package/plugins/lisa/.codex-plugin/skills/lisa-repair-intake/SKILL.md +21 -7
  21. package/plugins/lisa/.codex-plugin/skills/lisa-track/SKILL.md +16 -2
  22. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-build-intake/SKILL.md +15 -1
  23. package/plugins/lisa/rules/reference/ready-role-filing.md +36 -0
  24. package/plugins/lisa/scripts/intake-blocker-reprobe.mjs +85 -17
  25. package/plugins/lisa/scripts/qa-signal-lifecycle.mjs +5 -2
  26. package/plugins/lisa/skills/lisa-github-build-intake/SKILL.md +22 -7
  27. package/plugins/lisa/skills/lisa-github-write-issue/SKILL.md +15 -1
  28. package/plugins/lisa/skills/lisa-jira-build-intake/SKILL.md +21 -6
  29. package/plugins/lisa/skills/lisa-jira-write-ticket/SKILL.md +15 -1
  30. package/plugins/lisa/skills/lisa-linear-access/SKILL.md +12 -2
  31. package/plugins/lisa/skills/lisa-linear-build-intake/SKILL.md +20 -6
  32. package/plugins/lisa/skills/lisa-linear-write-issue/SKILL.md +15 -1
  33. package/plugins/lisa/skills/lisa-repair-intake/SKILL.md +21 -7
  34. package/plugins/lisa/skills/lisa-track/SKILL.md +16 -2
  35. package/plugins/lisa/skills/lisa-tracker-build-intake/SKILL.md +15 -1
  36. package/plugins/lisa-agy/plugin.json +1 -1
  37. package/plugins/lisa-agy/scripts/intake-blocker-reprobe.mjs +85 -17
  38. package/plugins/lisa-agy/scripts/qa-signal-lifecycle.mjs +5 -2
  39. package/plugins/lisa-agy/skills/lisa-github-build-intake/SKILL.md +22 -7
  40. package/plugins/lisa-agy/skills/lisa-github-write-issue/SKILL.md +15 -1
  41. package/plugins/lisa-agy/skills/lisa-jira-build-intake/SKILL.md +21 -6
  42. package/plugins/lisa-agy/skills/lisa-jira-write-ticket/SKILL.md +15 -1
  43. package/plugins/lisa-agy/skills/lisa-linear-access/SKILL.md +12 -2
  44. package/plugins/lisa-agy/skills/lisa-linear-build-intake/SKILL.md +20 -6
  45. package/plugins/lisa-agy/skills/lisa-linear-write-issue/SKILL.md +15 -1
  46. package/plugins/lisa-agy/skills/lisa-repair-intake/SKILL.md +21 -7
  47. package/plugins/lisa-agy/skills/lisa-track/SKILL.md +16 -2
  48. package/plugins/lisa-agy/skills/lisa-tracker-build-intake/SKILL.md +15 -1
  49. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  50. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  51. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  52. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  53. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  54. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  55. package/plugins/lisa-copilot/rules/reference/ready-role-filing.md +36 -0
  56. package/plugins/lisa-copilot/scripts/intake-blocker-reprobe.mjs +85 -17
  57. package/plugins/lisa-copilot/scripts/qa-signal-lifecycle.mjs +5 -2
  58. package/plugins/lisa-copilot/skills/lisa-github-build-intake/SKILL.md +22 -7
  59. package/plugins/lisa-copilot/skills/lisa-github-write-issue/SKILL.md +15 -1
  60. package/plugins/lisa-copilot/skills/lisa-jira-build-intake/SKILL.md +21 -6
  61. package/plugins/lisa-copilot/skills/lisa-jira-write-ticket/SKILL.md +15 -1
  62. package/plugins/lisa-copilot/skills/lisa-linear-access/SKILL.md +12 -2
  63. package/plugins/lisa-copilot/skills/lisa-linear-build-intake/SKILL.md +20 -6
  64. package/plugins/lisa-copilot/skills/lisa-linear-write-issue/SKILL.md +15 -1
  65. package/plugins/lisa-copilot/skills/lisa-repair-intake/SKILL.md +21 -7
  66. package/plugins/lisa-copilot/skills/lisa-track/SKILL.md +16 -2
  67. package/plugins/lisa-copilot/skills/lisa-tracker-build-intake/SKILL.md +15 -1
  68. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  69. package/plugins/lisa-cursor/rules/ready-role-filing-reference.mdc +36 -0
  70. package/plugins/lisa-cursor/scripts/intake-blocker-reprobe.mjs +85 -17
  71. package/plugins/lisa-cursor/scripts/qa-signal-lifecycle.mjs +5 -2
  72. package/plugins/lisa-cursor/skills/lisa-github-build-intake/SKILL.md +22 -7
  73. package/plugins/lisa-cursor/skills/lisa-github-write-issue/SKILL.md +15 -1
  74. package/plugins/lisa-cursor/skills/lisa-jira-build-intake/SKILL.md +21 -6
  75. package/plugins/lisa-cursor/skills/lisa-jira-write-ticket/SKILL.md +15 -1
  76. package/plugins/lisa-cursor/skills/lisa-linear-access/SKILL.md +12 -2
  77. package/plugins/lisa-cursor/skills/lisa-linear-build-intake/SKILL.md +20 -6
  78. package/plugins/lisa-cursor/skills/lisa-linear-write-issue/SKILL.md +15 -1
  79. package/plugins/lisa-cursor/skills/lisa-repair-intake/SKILL.md +21 -7
  80. package/plugins/lisa-cursor/skills/lisa-track/SKILL.md +16 -2
  81. package/plugins/lisa-cursor/skills/lisa-tracker-build-intake/SKILL.md +15 -1
  82. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  83. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  84. package/plugins/lisa-expo-agy/plugin.json +1 -1
  85. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  86. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  87. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  88. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  89. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  90. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  91. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  92. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  93. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  94. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  95. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  96. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  97. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  98. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  99. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  100. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  101. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  102. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  103. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  104. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  105. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  106. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  107. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  108. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  109. package/plugins/lisa-rails-agy/plugin.json +1 -1
  110. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  111. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  112. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  113. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  114. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  115. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  116. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  117. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  118. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  119. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  120. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  121. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  122. package/plugins/src/base/rules/reference/ready-role-filing.md +36 -0
  123. package/plugins/src/base/scripts/intake-blocker-reprobe.mjs +85 -17
  124. package/plugins/src/base/scripts/qa-signal-lifecycle.mjs +5 -2
  125. package/plugins/src/base/skills/lisa-github-build-intake/SKILL.md +22 -7
  126. package/plugins/src/base/skills/lisa-github-write-issue/SKILL.md +15 -1
  127. package/plugins/src/base/skills/lisa-jira-build-intake/SKILL.md +21 -6
  128. package/plugins/src/base/skills/lisa-jira-write-ticket/SKILL.md +15 -1
  129. package/plugins/src/base/skills/lisa-linear-access/SKILL.md +12 -2
  130. package/plugins/src/base/skills/lisa-linear-build-intake/SKILL.md +20 -6
  131. package/plugins/src/base/skills/lisa-linear-write-issue/SKILL.md +15 -1
  132. package/plugins/src/base/skills/lisa-repair-intake/SKILL.md +21 -7
  133. package/plugins/src/base/skills/lisa-track/SKILL.md +16 -2
  134. package/plugins/src/base/skills/lisa-tracker-build-intake/SKILL.md +15 -1
@@ -13,6 +13,7 @@
13
13
  import * as fs from "node:fs";
14
14
 
15
15
  import { byCodeUnit, runnersByPlatform } from "./contract.mjs";
16
+ import { isDisclosed } from "./discover.mjs";
16
17
  import { resolveInsideRepo } from "./parse.mjs";
17
18
 
18
19
  /**
@@ -183,10 +184,19 @@ function orphanReason(reference, { keys, repos, defaultRepo }) {
183
184
  : `unknown repo ${repo}; declare it in trackers.github.repos`;
184
185
  }
185
186
 
187
+ /**
188
+ * An empty discovery result, for callers that do not walk the tree.
189
+ *
190
+ * A caller that supplies no discovery gets exactly the findings it got before
191
+ * the rename hint existed. Absent discovery must read as "nothing to pair
192
+ * with", never as "pair with whatever is at hand".
193
+ */
194
+ const NO_DISCOVERY = Object.freeze({ specs: [] });
195
+
186
196
  /**
187
197
  * Validate every scenario→test mapping, including that its evidence still
188
198
  * exists inside the mapped file.
189
- * @param {object} input - Root, scenarios, and the parsed contract.
199
+ * @param {object} input - Root, scenarios, the parsed contract, and discovery.
190
200
  * @returns {object[]} Defects found.
191
201
  */
192
202
  export function validateMappings({
@@ -194,6 +204,7 @@ export function validateMappings({
194
204
  scenarios,
195
205
  contract,
196
206
  cache = new Map(),
207
+ discovery = NO_DISCOVERY,
197
208
  }) {
198
209
  const byId = new Map(scenarios.map(scenario => [scenario.id, scenario]));
199
210
  const platformRunners = runnersByPlatform(contract.runnerPlatforms);
@@ -216,7 +227,9 @@ export function validateMappings({
216
227
  }
217
228
  defects.push(...mappingDuplicates(mapping, at, seen));
218
229
  defects.push(...mappingPlatforms(mapping, scenario, platformRunners, at));
219
- defects.push(...mappingEvidence(root, mapping, at, cache));
230
+ defects.push(
231
+ ...mappingEvidence({ root, mapping, at, cache, contract, discovery })
232
+ );
220
233
  }
221
234
  return defects;
222
235
  }
@@ -327,6 +340,11 @@ export function evidenceResolves(root, mapping, cache = new Map()) {
327
340
  return {
328
341
  ok: false,
329
342
  code: "mapping-evidence",
343
+ // The ONE verdict a rename could explain: a live file that used to carry
344
+ // this string. A mapping with no evidence at all and a mapped file that
345
+ // is gone both return above, unmarked, so neither can be dressed up as
346
+ // a rename by a caller reading only the code.
347
+ stale: true,
330
348
  detail: `${mapping.file} no longer contains ${JSON.stringify(mapping.evidence)}`,
331
349
  };
332
350
  }
@@ -357,19 +375,77 @@ export function unresolvedEvidenceKeys({ root, contract, cache = new Map() }) {
357
375
  );
358
376
  }
359
377
 
378
+ /**
379
+ * The titles in the MAPPED FILE that nothing in the contract accounts for.
380
+ *
381
+ * Scoped to `mapping.file` and to nothing else. A title in a sibling file is
382
+ * never a candidate: pairing across files would let one deletion here and one
383
+ * addition anywhere in the repository read as a single rename, which is a
384
+ * confident wrong answer rather than a missing one.
385
+ *
386
+ * `isDisclosed` is asked with the WHOLE contract, this stale mapping included,
387
+ * so a new title that the dead evidence string happens to contain reads as
388
+ * accounted for and yields no candidate. That is the conservative direction:
389
+ * the hint goes quiet rather than offering a title something already claims.
390
+ * @param {object} mapping - Raw mapping entry.
391
+ * @param {object} contract - Parsed coverage map.
392
+ * @param {object} discovery - The discovery result.
393
+ * @returns {string[]} Candidate titles, deduplicated and ordered.
394
+ */
395
+ function renameCandidates(mapping, contract, discovery) {
396
+ const unaccounted = (discovery.specs ?? [])
397
+ .filter(spec => spec.file === mapping.file)
398
+ .filter(
399
+ spec => typeof spec.evidence === "string" && spec.evidence.length > 0
400
+ )
401
+ .filter(spec => !isDisclosed(spec, contract))
402
+ .map(spec => spec.evidence);
403
+ return [...new Set(unaccounted)].sort(byCodeUnit);
404
+ }
405
+
406
+ /**
407
+ * Say a rename is the likely story, without ever picking which one.
408
+ *
409
+ * Every candidate is offered. Naming one would be a guess, and a confident
410
+ * wrong guess costs more than an honest list: the author knows which of their
411
+ * own tests moved and only needs to be told the two findings are one edit.
412
+ *
413
+ * Each title is JSON-quoted INDIVIDUALLY, so a title containing the comma the
414
+ * list joins on stays recoverable rather than splitting into two titles that
415
+ * were never in the file.
416
+ * @param {readonly string[]} candidates - Unaccounted titles in the same file.
417
+ * @returns {string} The hint, or the empty string when there is nothing to say.
418
+ */
419
+ function renameHint(candidates) {
420
+ if (candidates.length === 0) return "";
421
+ const noun = candidates.length === 1 ? "title" : "titles";
422
+ return (
423
+ ` — probably a rename: ${candidates.length} test ${noun} in that same` +
424
+ ` file ${candidates.length === 1 ? "is" : "are"} named by no mapping and` +
425
+ ` no exclusion. Candidates, each quoted whole:` +
426
+ ` ${candidates.map(title => JSON.stringify(title)).join(", ")}.` +
427
+ ` Re-point this mapping's evidence at the right one, or record an exclusion.`
428
+ );
429
+ }
430
+
360
431
  /**
361
432
  * Prove the mapped file still contains the exact evidence string.
362
433
  *
363
434
  * This is what makes a mapping falsifiable rather than an assertion: rename
364
435
  * or delete the test and the map breaks loudly instead of leaving a scenario
365
436
  * silently unguarded.
366
- * @param {string} root - Repo root.
367
- * @param {object} mapping - Raw mapping entry.
368
- * @param {string} at - Location label.
369
- * @param {Map<string, string>} cache - File-content cache.
437
+ *
438
+ * The hint appended here is MESSAGE ONLY. It never reaches `evidenceResolves`,
439
+ * which is what coverage counts from, so a renamed test stays a failure and
440
+ * stays uncovered until someone actually updates the map.
441
+ * @param {object} input - Root, the mapping, its label, the cache, the contract, and discovery.
370
442
  * @returns {object[]} Defects found.
371
443
  */
372
- function mappingEvidence(root, mapping, at, cache) {
444
+ function mappingEvidence({ root, mapping, at, cache, contract, discovery }) {
373
445
  const verdict = evidenceResolves(root, mapping, cache);
374
- return verdict.ok ? [] : [defect(verdict.code, `${at}: ${verdict.detail}`)];
446
+ if (verdict.ok) return [];
447
+ const hint = verdict.stale
448
+ ? renameHint(renameCandidates(mapping, contract, discovery))
449
+ : "";
450
+ return [defect(verdict.code, `${at}: ${verdict.detail}${hint}`)];
375
451
  }
@@ -248,7 +248,7 @@ function validateAll({
248
248
  const defects = [
249
249
  ...validateScenarios(scenarios, platforms),
250
250
  ...validateTrackerTags(scenarios, contract.trackers),
251
- ...validateMappings({ root, scenarios, contract, cache }),
251
+ ...validateMappings({ root, scenarios, contract, cache, discovery }),
252
252
  ...validateWaivers({ scenarios, contract, today: options.today }),
253
253
  ...discovery.defects,
254
254
  ...disclosureDefects({ root, contract, discovery }),
package/package.json CHANGED
@@ -187,7 +187,7 @@
187
187
  "zod-validation-error": "^4.0.0"
188
188
  },
189
189
  "name": "@codyswann/lisa",
190
- "version": "4.55.3",
190
+ "version": "4.55.5",
191
191
  "description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
192
192
  "main": "dist/index.js",
193
193
  "exports": {
@@ -336,7 +336,7 @@
336
336
  "test": "tests"
337
337
  },
338
338
  "types": "./dist/index.d.ts",
339
- "lisaReleaseCommit": "c6de8937e39f49d8374a0481a334cb9a0ff91808",
340
- "gitHead": "c6de8937e39f49d8374a0481a334cb9a0ff91808",
341
- "lisaReleaseTag": "v4.55.3"
339
+ "lisaReleaseCommit": "3b91f194a303d3756679b63a137eeb74b8699930",
340
+ "gitHead": "3b91f194a303d3756679b63a137eeb74b8699930",
341
+ "lisaReleaseTag": "v4.55.5"
342
342
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "4.55.3",
3
+ "version": "4.55.5",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "4.55.3",
3
+ "version": "4.55.5",
4
4
  "description": "Universal governance: agents, skills, commands, hooks, and rules for all projects.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -6,6 +6,20 @@ allowed-tools: ["Skill", "Bash"]
6
6
 
7
7
  # GitHub Build Intake: $ARGUMENTS
8
8
 
9
+ ## Human-gate release authorization
10
+
11
+ A release requires a trusted human author, not just matching comment text. Follow
12
+ `ready-role-filing` — **Human-gate release authorization**: preserve tracker-supplied comment
13
+ author IDs and bot metadata, resolve `trustedHumanActorIds` only from an explicit user instruction
14
+ or existing human-authored trusted project policy, and pass it with structured `comments` to every
15
+ hold classifier, reconciliation, normalization and release planner. Never derive trust from the
16
+ comment body, a display name, the actor's own assertion, or an automation posting on its own behalf.
17
+ Missing policy, missing/unreadable author identity, raw body strings, untrusted actors and known bots
18
+ cannot discharge a hold. Keep the item held and report the missing authorization; do not silently
19
+ replace these inputs with an empty history or an inferred allowlist. Authorized matching releases
20
+ continue through the existing path and never override an independently declared caller hold.
21
+
22
+
9
23
  `$ARGUMENTS` is one of:
10
24
 
11
25
  1. A GitHub `org/repo` token (e.g., `acme/frontend-v2`).
@@ -216,8 +230,8 @@ A blocker is a **claim with a timestamp, not a fact** — it goes stale the mome
216
230
  true, and nothing re-read one before this phase. For each `$BLOCKED` candidate:
217
231
 
218
232
  1. **Read release comments before applying the human gate.** Pass all item comments, labels,
219
- body and configured `humanNeededLabel` to `classifyReadyCandidate(...)`. For a discharged hold,
220
- call `planHumanGateRelease({ labels, body, comments, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
233
+ body, `trustedHumanActorIds` and configured `humanNeededLabel` to `classifyReadyCandidate(...)`. For a discharged hold,
234
+ call `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
221
235
  and retain its plan. Apply human-marker cleanup only as planned; defer any ready-role restoration
222
236
  until steps 2–5 have cleared the remaining blockers (map the role to the vendor's state or label).
223
237
  A still-active hold is never auto-selected, whatever any probe says. An absent or unreadable
@@ -227,8 +241,9 @@ true, and nothing re-read one before this phase. For each `$BLOCKED` candidate:
227
241
  2. **Extract the stated discharge condition**, then **probe it**. Machine-testable conditions — a
228
242
  version on trunk, a published package, a CI run history, an advisory's patched status — rot
229
243
  fastest and are cheapest to check. A human decision is not machine-testable; leave it.
230
- 3. **Classify with `classifyPreWorkCandidate(...)`** from `scripts/intake-blocker-reprobe.mjs`. A
231
- discharge with no recorded evidence is not a discharge, and neither is a candidate nothing
244
+ 3. **Classify with `classifyPreWorkCandidate(...)`** from `scripts/intake-blocker-reprobe.mjs`.
245
+ Include the structured `comments` and `trustedHumanActorIds` from step 1.
246
+ A discharge with no recorded evidence is not a discharge, and neither is a candidate nothing
232
247
  probed this cycle — the helper refuses both.
233
248
  4. **Record the result on the issue either way** via `formatReprobeNote(...)` as a comment, so the
234
249
  next cycle reads the answer rather than re-deriving it. Keep it idempotent.
@@ -323,7 +338,7 @@ other gate's verdict — however conclusive — may promote an item a person par
323
338
  drift, and a drifted gate fails *silently*, by quietly ceasing to match. Do **not** re-implement
324
339
  the test here, and do **not** key it on `reason=`: markers in the wild carry no `reason=` key at
325
340
  all and sit anywhere in the body, so a structured parse would miss them while appearing to work
326
- on every item that happens to have one. **Pass the item's `comments` alongside its labels and
341
+ on every item that happens to have one. **Pass the item's structured `comments` and `trustedHumanActorIds` alongside its labels and
327
342
  body.** A hold is ended by a release recorded in a comment, so a reader handed no comments cannot
328
343
  see the discharge — it goes on holding an item whose question was answered weeks ago, which is
329
344
  the defect this gate carried from the day it was written (CodySwannGT/lisa#3852). Omitting them
@@ -334,7 +349,7 @@ other gate's verdict — however conclusive — may promote an item a person par
334
349
  and re-rejected every cycle forever and seen by nothing — `lisa-repair-intake` sweeps items that
335
350
  are **not** in the ready role and excludes gated ones outright, so a ready-and-gated item falls
336
351
  outside its filter twice over. Call
337
- `planHumanGateReconciliation({ labels, body, humanNeededLabel, readyLabel, alreadyNotified })`
352
+ `planHumanGateReconciliation({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, readyLabel, alreadyNotified })`
338
353
  and apply exactly the actions it returns: remove `$READY`, add the configured human-needed
339
354
  marker, and post `formatHumanGateNote()` once. The planner is idempotent by state, so an item
340
355
  already out of the lane and already marked yields no second mutation and no second comment. This
@@ -344,7 +359,7 @@ other gate's verdict — however conclusive — may promote an item a person par
344
359
  This ready-lane candidate can retain a historical body marker and a human-needed label.
345
360
  This step reconciles only candidates still in the ready lane; released holds outside it are
346
361
  recovered by `lisa-repair-intake` step 2b (or Phase 2.5 when included in this cycle). Call
347
- `planHumanGateRelease({ labels, body, comments, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
362
+ `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
348
363
  and apply exactly the actions it returns: remove the configured human-needed marker, add the
349
364
  configured ready role back, and post `formatHumanGateReleaseNote()` once. It is the exact inverse
350
365
  of step 3's planner and it refuses in both directions — an item still held plans nothing, and an
@@ -6,6 +6,20 @@ allowed-tools: ["Bash", "Skill", "Read"]
6
6
 
7
7
  # Write GitHub Issue: $ARGUMENTS
8
8
 
9
+ ## Human-gate release authorization
10
+
11
+ A release requires a trusted human author, not just matching comment text. Follow
12
+ `ready-role-filing` — **Human-gate release authorization**: preserve tracker-supplied comment
13
+ author IDs and bot metadata, resolve `trustedHumanActorIds` only from an explicit user instruction
14
+ or existing human-authored trusted project policy, and pass it with structured `comments` to every
15
+ hold classifier, reconciliation, normalization and release planner. Never derive trust from the
16
+ comment body, a display name, the actor's own assertion, or an automation posting on its own behalf.
17
+ Missing policy, missing/unreadable author identity, raw body strings, untrusted actors and known bots
18
+ cannot discharge a hold. Keep the item held and report the missing authorization; do not silently
19
+ replace these inputs with an empty history or an inferred allowlist. Authorized matching releases
20
+ continue through the existing path and never override an independently declared caller hold.
21
+
22
+
9
23
  Create or update a GitHub Issue with all required relationships, metadata, and quality gates. Every section below is mandatory. Thin issues are rejected.
10
24
 
11
25
  This skill is the GitHub counterpart of `lisa-jira-write-ticket`. The two skills share the same gates, description structure, acceptance-criteria format, and verification flow. The data-model translation is documented under "GitHub Issues data model" below — keep that table in sync with `lisa-github-validate-issue` so what one skill writes the other accepts.
@@ -323,7 +337,7 @@ If the label does not exist in the tracker, create it, or record that it could n
323
337
  proceed — the marker still holds. Never file the label *instead of* the marker.
324
338
 
325
339
  **Write a `reason=` the release can name.** The hold's reason is not decoration: a hold ends when a
326
- `[lisa-human-gate-release]` comment repeating that same `reason=` is recorded on the item, and the
340
+ `[lisa-human-gate-release]` comment repeating that same `reason=` is recorded on the item by an authorized human, and the
327
341
  next intake sweep then takes the marker label off and puts the item back in the build-ready role on
328
342
  its own. Matching is per-reason so that a hold declared *after* an earlier release is not born
329
343
  discharged. A keyless hold is legal and is discharged by a keyless release; a hold whose reason is a
@@ -6,6 +6,20 @@ allowed-tools: ["Skill", "Bash"]
6
6
 
7
7
  # JIRA Build Intake: $ARGUMENTS
8
8
 
9
+ ## Human-gate release authorization
10
+
11
+ A release requires a trusted human author, not just matching comment text. Follow
12
+ `ready-role-filing` — **Human-gate release authorization**: preserve tracker-supplied comment
13
+ author IDs and bot metadata, resolve `trustedHumanActorIds` only from an explicit user instruction
14
+ or existing human-authored trusted project policy, and pass it with structured `comments` to every
15
+ hold classifier, reconciliation, normalization and release planner. Never derive trust from the
16
+ comment body, a display name, the actor's own assertion, or an automation posting on its own behalf.
17
+ Missing policy, missing/unreadable author identity, raw body strings, untrusted actors and known bots
18
+ cannot discharge a hold. Keep the item held and report the missing authorization; do not silently
19
+ replace these inputs with an empty history or an inferred allowlist. Authorized matching releases
20
+ continue through the existing path and never override an independently declared caller hold.
21
+
22
+
9
23
  All Atlassian operations in this skill go through `lisa-atlassian-access`. Do not call MCP tools or `acli` directly.
10
24
 
11
25
  `$ARGUMENTS` is one of:
@@ -190,8 +204,8 @@ A blocker is a **claim with a timestamp, not a fact** — it goes stale the mome
190
204
  true, and nothing re-read one before this phase. For each pre-work candidate outside `$READY`:
191
205
 
192
206
  1. **Read release comments before applying the human gate.** Pass all item comments, labels,
193
- body and configured `humanNeededLabel` to `classifyReadyCandidate(...)`. For a discharged hold,
194
- call `planHumanGateRelease({ labels, body, comments, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
207
+ body, `trustedHumanActorIds` and configured `humanNeededLabel` to `classifyReadyCandidate(...)`. For a discharged hold,
208
+ call `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
195
209
  and retain its plan. Apply human-marker cleanup only as planned; defer any ready-role restoration
196
210
  until steps 2–5 have cleared the remaining blockers (map the role to the vendor's state or label).
197
211
  A still-active hold is never auto-selected, whatever any probe says. An absent or unreadable
@@ -202,7 +216,8 @@ true, and nothing re-read one before this phase. For each pre-work candidate out
202
216
  version on trunk, a published package, a CI run history, an advisory's patched status — rot
203
217
  fastest and are cheapest to check. A human decision is not machine-testable; leave it.
204
218
  3. **Classify with `classifyPreWorkCandidate(...)`** from
205
- `scripts/intake-blocker-reprobe.mjs`. A discharge with no recorded evidence is not a discharge,
219
+ `scripts/intake-blocker-reprobe.mjs`, including the structured `comments` and
220
+ `trustedHumanActorIds` from step 1. A discharge with no recorded evidence is not a discharge,
206
221
  and neither is a candidate nothing probed this cycle — the helper refuses both.
207
222
  4. **Record the result on the ticket either way** via `formatReprobeNote(...)` as a comment, so the
208
223
  next cycle reads the answer rather than re-deriving it. Keep it idempotent.
@@ -228,7 +243,7 @@ other gate's verdict — however conclusive — may promote an item a person par
228
243
  drift, and a drifted gate fails *silently*, by quietly ceasing to match. Do **not** re-implement
229
244
  the test here, and do **not** key it on `reason=`: markers in the wild carry no `reason=` key at
230
245
  all and sit anywhere in the body, so a structured parse would miss them while appearing to work
231
- on every item that happens to have one. **Pass the item's `comments` alongside its labels and
246
+ on every item that happens to have one. **Pass the item's structured `comments` and `trustedHumanActorIds` alongside its labels and
232
247
  body.** A hold is ended by a release recorded in a comment, so a reader handed no comments cannot
233
248
  see the discharge — it goes on holding an item whose question was answered weeks ago, which is
234
249
  the defect this gate carried from the day it was written (CodySwannGT/lisa#3852). Omitting them
@@ -239,7 +254,7 @@ other gate's verdict — however conclusive — may promote an item a person par
239
254
  and re-rejected every cycle forever and seen by nothing — `lisa-repair-intake` sweeps items that
240
255
  are **not** in the ready role and excludes gated ones outright, so a ready-and-gated item falls
241
256
  outside its filter twice over. Call
242
- `planHumanGateReconciliation({ labels, body, humanNeededLabel, readyLabel, alreadyNotified })`
257
+ `planHumanGateReconciliation({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, readyLabel, alreadyNotified })`
243
258
  and apply exactly the actions it returns: remove `$READY`, add the configured human-needed
244
259
  marker, and post `formatHumanGateNote()` once. The planner is idempotent by state, so an item
245
260
  already out of the lane and already marked yields no second mutation and no second comment. This
@@ -249,7 +264,7 @@ other gate's verdict — however conclusive — may promote an item a person par
249
264
  This ready-lane candidate can retain a historical body marker and a human-needed label.
250
265
  This step reconciles only candidates still in the ready lane; released holds outside it are
251
266
  recovered by `lisa-repair-intake` step 2b (or Phase 2.5 when included in this cycle). Call
252
- `planHumanGateRelease({ labels, body, comments, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
267
+ `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
253
268
  and apply exactly the actions it returns: remove the configured human-needed marker, add the
254
269
  configured ready role back, and post `formatHumanGateReleaseNote()` once. It is the exact inverse
255
270
  of step 3's planner and it refuses in both directions — an item still held plans nothing, and an
@@ -6,6 +6,20 @@ allowed-tools: ["Bash", "Skill"]
6
6
 
7
7
  # Write JIRA Ticket: $ARGUMENTS
8
8
 
9
+ ## Human-gate release authorization
10
+
11
+ A release requires a trusted human author, not just matching comment text. Follow
12
+ `ready-role-filing` — **Human-gate release authorization**: preserve tracker-supplied comment
13
+ author IDs and bot metadata, resolve `trustedHumanActorIds` only from an explicit user instruction
14
+ or existing human-authored trusted project policy, and pass it with structured `comments` to every
15
+ hold classifier, reconciliation, normalization and release planner. Never derive trust from the
16
+ comment body, a display name, the actor's own assertion, or an automation posting on its own behalf.
17
+ Missing policy, missing/unreadable author identity, raw body strings, untrusted actors and known bots
18
+ cannot discharge a hold. Keep the item held and report the missing authorization; do not silently
19
+ replace these inputs with an empty history or an inferred allowlist. Authorized matching releases
20
+ continue through the existing path and never override an independently declared caller hold.
21
+
22
+
9
23
  All Atlassian operations in this skill go through `lisa-atlassian-access`. Do not call MCP tools or `acli` directly.
10
24
 
11
25
  Create or update a JIRA ticket with all required relationships, metadata, and quality gates. Every section below is mandatory. Thin tickets are rejected.
@@ -308,7 +322,7 @@ If the label does not exist in the tracker, create it, or record that it could n
308
322
  proceed — the marker still holds. Never file the label *instead of* the marker.
309
323
 
310
324
  **Write a `reason=` the release can name.** The hold's reason is not decoration: a hold ends when a
311
- `[lisa-human-gate-release]` comment repeating that same `reason=` is recorded on the item, and the
325
+ `[lisa-human-gate-release]` comment repeating that same `reason=` is recorded on the item by an authorized human, and the
312
326
  next intake sweep then takes the marker label off and puts the item back in the build-ready role on
313
327
  its own. Matching is per-reason so that a hold declared *after* an earlier release is not born
314
328
  discharged. A keyless hold is legal and is discharged by a keyless release; a hold whose reason is a
@@ -323,7 +323,7 @@ query($id:String!,$after:String){
323
323
  project(id:$id){
324
324
  comments(first:100,after:$after){
325
325
  pageInfo{ hasNextPage endCursor }
326
- nodes{ id body createdAt url user{ name } }
326
+ nodes{ id body createdAt url user{ id name } botActor{ __typename } }
327
327
  }
328
328
  }
329
329
  }
@@ -334,13 +334,16 @@ arguments and node shape. For **both** anchors, use this access-layer adapter wi
334
334
  `linear_graphql` above; it accumulates every page and prints no partial history.
335
335
  A read succeeds only after `hasNextPage` is false. Errors, malformed pages, and
336
336
  missing or repeated continuation cursors fail the whole read.
337
+ Preserve `botActor` with each comment: its non-null presence identifies automation,
338
+ even if `user.id` is trusted. When normalizing comments, carry it forward or set
339
+ `isBot: true`; never discard this metadata before release authorization.
337
340
 
338
341
  ```bash
339
342
  linear_list_comment_pages() { # issue|project id -> complete JSON node array
340
343
  local anchor="$1" id="$2" after=null nodes='[]' seen='[]'
341
344
  local query variables response connection cursor
342
345
  case "$anchor" in issue|project) ;; *) echo "Error: invalid comment anchor" >&2; return 1 ;; esac
343
- query='query($id:String!,$after:String){'"$anchor"'(id:$id){comments(first:100,after:$after){pageInfo{hasNextPage endCursor} nodes{id body createdAt url user{name}}}}}'
346
+ query='query($id:String!,$after:String){'"$anchor"'(id:$id){comments(first:100,after:$after){pageInfo{hasNextPage endCursor} nodes{id body createdAt url user{id name} botActor{__typename}}}}}'
344
347
  while :; do
345
348
  variables=$(jq -cn --arg id "$id" --argjson after "$after" '{id:$id,after:$after}') || return 1
346
349
  response=$(linear_graphql "$query" "$variables") || return 1
@@ -367,6 +370,13 @@ linear_list_comment_pages() { # issue|project id -> complete JSON node array
367
370
  }
368
371
  ```
369
372
 
373
+ Keep the returned comment objects intact when a caller evaluates a human-gate release. The
374
+ `user.id` is the stable author identity; `user.name` is display text and never authorizes release.
375
+ Pass structured comments and an independently supplied `trustedHumanActorIds` allowlist to the
376
+ shared gate helpers (`ready-role-filing` — Human-gate release authorization). A body-only projection
377
+ loses identity and cannot discharge a hold. Preserve any explicit bot metadata from the provider;
378
+ if identity or trusted policy is unavailable, leave the hold active.
379
+
370
380
  Call `linear_list_comment_pages project "$PROJECT_ID"` for `project_id`, or
371
381
  `linear_list_comment_pages issue "$ISSUE_ID"` for `issue_id`. The caller receives
372
382
  one complete node array; it must not interpret a failed command as zero comments.
@@ -6,6 +6,20 @@ allowed-tools: ["Skill", "Bash"]
6
6
 
7
7
  # Linear Build Intake: $ARGUMENTS
8
8
 
9
+ ## Human-gate release authorization
10
+
11
+ A release requires a trusted human author, not just matching comment text. Follow
12
+ `ready-role-filing` — **Human-gate release authorization**: preserve tracker-supplied comment
13
+ author IDs and bot metadata, resolve `trustedHumanActorIds` only from an explicit user instruction
14
+ or existing human-authored trusted project policy, and pass it with structured `comments` to every
15
+ hold classifier, reconciliation, normalization and release planner. Never derive trust from the
16
+ comment body, a display name, the actor's own assertion, or an automation posting on its own behalf.
17
+ Missing policy, missing/unreadable author identity, raw body strings, untrusted actors and known bots
18
+ cannot discharge a hold. Keep the item held and report the missing authorization; do not silently
19
+ replace these inputs with an empty history or an inferred allowlist. Authorized matching releases
20
+ continue through the existing path and never override an independently declared caller hold.
21
+
22
+
9
23
  `$ARGUMENTS` is one of:
10
24
 
11
25
  1. A Linear team key (e.g. `ENG`) — scans that team for ready Issues.
@@ -183,8 +197,8 @@ A blocker is a **claim with a timestamp, not a fact**. It is written once and go
183
197
  For each pre-work candidate that is **not** in `$READY`:
184
198
 
185
199
  1. **Read release comments before applying the human gate.** Pass all item comments, labels,
186
- body and configured `humanNeededLabel` to `classifyReadyCandidate(...)`. For a discharged hold,
187
- call `planHumanGateRelease({ labels, body, comments, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
200
+ body, `trustedHumanActorIds` and configured `humanNeededLabel` to `classifyReadyCandidate(...)`. For a discharged hold,
201
+ call `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
188
202
  and retain its plan. Apply human-marker cleanup only as planned; defer any ready-role restoration
189
203
  until steps 2–5 have cleared the remaining blockers (map the role to the vendor's state or label).
190
204
  A still-active hold is never auto-selected, whatever any probe says. An absent or unreadable
@@ -196,7 +210,7 @@ For each pre-work candidate that is **not** in `$READY`:
196
210
  4. **Classify with the shared helper** so the ordering and the evidence requirement cannot drift per vendor:
197
211
 
198
212
  ```text
199
- classifyPreWorkCandidate({ laneType, labels, body, humanNeededLabel, statedBlocker, probe })
213
+ classifyPreWorkCandidate({ laneType, labels, body, comments, trustedHumanActorIds, humanNeededLabel, statedBlocker, probe })
200
214
  → { selectable, reason, humanGated, evidence }
201
215
  ```
202
216
 
@@ -224,7 +238,7 @@ other gate's verdict — however conclusive — may promote an item a person par
224
238
  drift, and a drifted gate fails *silently*, by quietly ceasing to match. Do **not** re-implement
225
239
  the test here, and do **not** key it on `reason=`: markers in the wild carry no `reason=` key at
226
240
  all and sit anywhere in the body, so a structured parse would miss them while appearing to work
227
- on every item that happens to have one. **Pass the item's `comments` alongside its labels and
241
+ on every item that happens to have one. **Pass the item's structured `comments` and `trustedHumanActorIds` alongside its labels and
228
242
  body.** A hold is ended by a release recorded in a comment, so a reader handed no comments cannot
229
243
  see the discharge — it goes on holding an item whose question was answered weeks ago, which is
230
244
  the defect this gate carried from the day it was written (CodySwannGT/lisa#3852). Omitting them
@@ -235,7 +249,7 @@ other gate's verdict — however conclusive — may promote an item a person par
235
249
  and re-rejected every cycle forever and seen by nothing — `lisa-repair-intake` sweeps items that
236
250
  are **not** in the ready role and excludes gated ones outright, so a ready-and-gated item falls
237
251
  outside its filter twice over. Call
238
- `planHumanGateReconciliation({ labels, body, humanNeededLabel, readyLabel, alreadyNotified })`
252
+ `planHumanGateReconciliation({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, readyLabel, alreadyNotified })`
239
253
  and apply exactly the actions it returns: remove `$READY`, add the configured human-needed
240
254
  marker, and post `formatHumanGateNote()` once. The planner is idempotent by state, so an item
241
255
  already out of the lane and already marked yields no second mutation and no second comment. This
@@ -245,7 +259,7 @@ other gate's verdict — however conclusive — may promote an item a person par
245
259
  This ready-lane candidate can retain a historical body marker and a human-needed label.
246
260
  This step reconciles only candidates still in the ready lane; released holds outside it are
247
261
  recovered by `lisa-repair-intake` step 2b (or Phase 2.5 when included in this cycle). Call
248
- `planHumanGateRelease({ labels, body, comments, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
262
+ `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
249
263
  and apply exactly the actions it returns: remove the configured human-needed marker, add the
250
264
  configured ready role back, and post `formatHumanGateReleaseNote()` once. It is the exact inverse
251
265
  of step 3's planner and it refuses in both directions — an item still held plans nothing, and an
@@ -6,6 +6,20 @@ allowed-tools: ["Bash", "Skill"]
6
6
 
7
7
  # Write Linear Work Item: $ARGUMENTS
8
8
 
9
+ ## Human-gate release authorization
10
+
11
+ A release requires a trusted human author, not just matching comment text. Follow
12
+ `ready-role-filing` — **Human-gate release authorization**: preserve tracker-supplied comment
13
+ author IDs and bot metadata, resolve `trustedHumanActorIds` only from an explicit user instruction
14
+ or existing human-authored trusted project policy, and pass it with structured `comments` to every
15
+ hold classifier, reconciliation, normalization and release planner. Never derive trust from the
16
+ comment body, a display name, the actor's own assertion, or an automation posting on its own behalf.
17
+ Missing policy, missing/unreadable author identity, raw body strings, untrusted actors and known bots
18
+ cannot discharge a hold. Keep the item held and report the missing authorization; do not silently
19
+ replace these inputs with an empty history or an inferred allowlist. Authorized matching releases
20
+ continue through the existing path and never override an independently declared caller hold.
21
+
22
+
9
23
  Create or update a Linear work item — Project (for Epics), Issue (for Stories), or sub-Issue (for Sub-tasks) — with all required relationships, metadata, and quality gates. Every section below is mandatory. Thin items are rejected.
10
24
 
11
25
  Repository name for scoped comments: `basename $(git rev-parse --show-toplevel)`.
@@ -304,7 +318,7 @@ proceed — the marker still holds. Never file the label *instead of* the marker
304
318
  **Every marker reader must consult comments.** Use `classifyReadyCandidate` with labels, body, comments and the configured human-needed label, then `planHumanGateRelease` for any release actions. A historical body marker alone is not an active hold after its matching release; unreadable comments leave a hold in place.
305
319
 
306
320
  **Write a `reason=` the release can name.** The hold's reason is not decoration: a hold ends when a
307
- `[lisa-human-gate-release]` comment repeating that same `reason=` is recorded on the item, and the
321
+ `[lisa-human-gate-release]` comment repeating that same `reason=` is recorded on the item by an authorized human, and the
308
322
  next intake sweep then takes the marker label off and puts the item back in the build-ready role on
309
323
  its own. Matching is per-reason so that a hold declared *after* an earlier release is not born
310
324
  discharged. A keyless hold is legal and is discharged by a keyless release; a hold whose reason is a
@@ -6,6 +6,20 @@ allowed-tools: ["Skill", "Bash", "Read", "Write", "Edit"]
6
6
 
7
7
  # Repair Intake: $ARGUMENTS
8
8
 
9
+ ## Human-gate release authorization
10
+
11
+ A release requires a trusted human author, not just matching comment text. Follow
12
+ `ready-role-filing` — **Human-gate release authorization**: preserve tracker-supplied comment
13
+ author IDs and bot metadata, resolve `trustedHumanActorIds` only from an explicit user instruction
14
+ or existing human-authored trusted project policy, and pass it with structured `comments` to every
15
+ hold classifier, reconciliation, normalization and release planner. Never derive trust from the
16
+ comment body, a display name, the actor's own assertion, or an automation posting on its own behalf.
17
+ Missing policy, missing/unreadable author identity, raw body strings, untrusted actors and known bots
18
+ cannot discharge a hold. Keep the item held and report the missing authorization; do not silently
19
+ replace these inputs with an empty history or an inferred allowlist. Authorized matching releases
20
+ continue through the existing path and never override an independently declared caller hold.
21
+
22
+
9
23
  Run one batch-**repair** cycle against the queue identified by `$ARGUMENTS`, or by merged GitHub
10
24
  config when the queue is omitted and a GitHub source/tracker default is resolvable. Where `lisa-intake`
11
25
  scans the `ready` role and moves work *forward*, repair-intake scans the **stuck and
@@ -1071,7 +1085,7 @@ with labels like `build-ready`, or with no Lisa status label at all, that are in
1071
1085
  `intake_mode=build`, every non-PRD issue is normalized as a build ticket. If `intake_mode=both`,
1072
1086
  classify PRDs first and normalize all remaining issues as build tickets.
1073
1087
  2a. **Ask whether a person is holding it, before anything else.** Call
1074
- `planLabelNormalization({ labels, body, comments, humanNeededLabel, lifecycleLabels, readyLabel })` from
1088
+ `planLabelNormalization({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, lifecycleLabels, readyLabel })` from
1075
1089
  `scripts/intake-blocker-reprobe.mjs` for every candidate and apply exactly the verdict it
1076
1090
  returns. Do **not** re-implement the test here and do **not** decide held-ness from labels
1077
1091
  alone: the vendor writers stamp the `[lisa-human-gate]` marker into the body of a deliberate
@@ -1088,7 +1102,7 @@ with labels like `build-ready`, or with no Lisa status label at all, that are in
1088
1102
  the safe failure direction without the latch. Count these under `held_for_person`, never under
1089
1103
  `normalized_ready`.
1090
1104
 
1091
- **Pass the item's `comments`.** The planner reads a recorded `[lisa-human-gate-release]` comment
1105
+ **Pass the item's `comments` with author identity and `trustedHumanActorIds`.** The planner reads a recorded `[lisa-human-gate-release]` comment
1092
1106
  as the discharge of the hold naming the same `reason=`, and an item read without its comments is
1093
1107
  an item whose discharge cannot be seen. That fails closed — it stays held — which is the safe
1094
1108
  direction and precisely why the omission is invisible.
@@ -1102,7 +1116,7 @@ with labels like `build-ready`, or with no Lisa status label at all, that are in
1102
1116
 
1103
1117
  Enumerate items carrying the configured `human_needed` marker **or** a `[lisa-human-gate]` marker
1104
1118
  in the body, and for each call
1105
- `planHumanGateRelease({ labels, body, comments, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
1119
+ `planHumanGateRelease({ labels, body, comments, trustedHumanActorIds, humanNeededLabel, readyLabel, lifecycleLabels, alreadyNotified })`
1106
1120
  from `scripts/intake-blocker-reprobe.mjs`. Apply exactly the actions it returns: remove the
1107
1121
  human-needed marker, add the configured build `ready` label back, and post
1108
1122
  `formatHumanGateReleaseNote()` once. Do **not** re-implement the discharge test, and do **not**
@@ -1119,10 +1133,10 @@ with labels like `build-ready`, or with no Lisa status label at all, that are in
1119
1133
  item carries no other configured lifecycle label.
1120
1134
 
1121
1135
  This is a genuine exception to "never remove a `human_needed` marker this skill did not apply",
1122
- and the exception is narrow enough to state exactly: provenance is the wrong question when the
1123
- *hold itself* names the condition that voids it and that condition is recorded. The general rule
1124
- stands because "stale" is otherwise a judgment about the block's kind; here nothing is being
1125
- judged — a release naming the hold's own reason is on the item, or it is not.
1136
+ and the exception is narrow enough to state exactly: the release author must first be verified against `trustedHumanActorIds`; only then does the
1137
+ matching release satisfy the hold's stated void condition. The actor who originally applied the
1138
+ marker does not need to match that authorized release author. The general rule
1139
+ stands because "stale" is otherwise a judgment about the block's kind; here an authorized matching release is required; arbitrary matching text is not enough.
1126
1140
 
1127
1141
  **Never edit a description to clear a hold**, here or anywhere. The only body write this plugin
1128
1142
  has is a whole-body replacement, so deleting one line means rewriting the record and hoping