@codyswann/lisa 8.6.1 → 8.7.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 (298) hide show
  1. package/README.md +9 -0
  2. package/all/copy-overwrite/scripts/lib/changed-paths.mjs +146 -0
  3. package/all/copy-overwrite/scripts/lib/completion-proof-content.mjs +6 -2
  4. package/all/copy-overwrite/scripts/lisa-gates.mjs +16 -1
  5. package/all/copy-overwrite/scripts/lisa-hooks/block-direct-issue-create.sh +297 -177
  6. package/all/copy-overwrite/scripts/lisa-run-gates.mjs +24 -0
  7. package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +7 -6
  8. package/all/copy-overwrite/scripts/threshold-ratchet-compare.mjs +18 -12
  9. package/dist/cli/apply-cmd.d.ts +10 -0
  10. package/dist/cli/apply-cmd.d.ts.map +1 -0
  11. package/dist/cli/apply-cmd.js +28 -0
  12. package/dist/cli/apply-cmd.js.map +1 -0
  13. package/dist/cli/index.d.ts.map +1 -1
  14. package/dist/cli/index.js +3 -12
  15. package/dist/cli/index.js.map +1 -1
  16. package/dist/controls/attest-check.d.ts.map +1 -1
  17. package/dist/controls/attest-check.js +31 -18
  18. package/dist/controls/attest-check.js.map +1 -1
  19. package/dist/controls/attest-record.d.ts +3 -0
  20. package/dist/controls/attest-record.d.ts.map +1 -1
  21. package/dist/controls/attest-record.js +28 -5
  22. package/dist/controls/attest-record.js.map +1 -1
  23. package/dist/controls/checks-binding.d.ts.map +1 -1
  24. package/dist/controls/checks-binding.js +28 -1
  25. package/dist/controls/checks-binding.js.map +1 -1
  26. package/dist/controls/commands/attest-host-proof.d.ts +18 -0
  27. package/dist/controls/commands/attest-host-proof.d.ts.map +1 -0
  28. package/dist/controls/commands/attest-host-proof.js +168 -0
  29. package/dist/controls/commands/attest-host-proof.js.map +1 -0
  30. package/dist/controls/commands/attest-options.d.ts +4 -0
  31. package/dist/controls/commands/attest-options.d.ts.map +1 -1
  32. package/dist/controls/commands/attest.d.ts.map +1 -1
  33. package/dist/controls/commands/attest.js +52 -0
  34. package/dist/controls/commands/attest.js.map +1 -1
  35. package/dist/controls/commands/declaration-check.d.ts.map +1 -1
  36. package/dist/controls/commands/declaration-check.js +19 -5
  37. package/dist/controls/commands/declaration-check.js.map +1 -1
  38. package/dist/controls/commands/register.d.ts.map +1 -1
  39. package/dist/controls/commands/register.js +4 -1
  40. package/dist/controls/commands/register.js.map +1 -1
  41. package/dist/controls/evidence-document.d.ts.map +1 -1
  42. package/dist/controls/evidence-document.js +12 -0
  43. package/dist/controls/evidence-document.js.map +1 -1
  44. package/dist/controls/evidence-gather.d.ts +1 -0
  45. package/dist/controls/evidence-gather.d.ts.map +1 -1
  46. package/dist/controls/evidence-gather.js +5 -2
  47. package/dist/controls/evidence-gather.js.map +1 -1
  48. package/dist/controls/evidence-types.d.ts +19 -1
  49. package/dist/controls/evidence-types.d.ts.map +1 -1
  50. package/dist/controls/evidence-types.js +11 -0
  51. package/dist/controls/evidence-types.js.map +1 -1
  52. package/dist/controls/evidence-write.d.ts.map +1 -1
  53. package/dist/controls/evidence-write.js +7 -1
  54. package/dist/controls/evidence-write.js.map +1 -1
  55. package/dist/controls/exercise-declaration.d.ts +58 -0
  56. package/dist/controls/exercise-declaration.d.ts.map +1 -0
  57. package/dist/controls/exercise-declaration.js +138 -0
  58. package/dist/controls/exercise-declaration.js.map +1 -0
  59. package/dist/controls/exercise-observations.d.ts +32 -0
  60. package/dist/controls/exercise-observations.d.ts.map +1 -0
  61. package/dist/controls/exercise-observations.js +141 -0
  62. package/dist/controls/exercise-observations.js.map +1 -0
  63. package/dist/controls/exercise-record-shape.d.ts +10 -0
  64. package/dist/controls/exercise-record-shape.d.ts.map +1 -0
  65. package/dist/controls/exercise-record-shape.js +29 -0
  66. package/dist/controls/exercise-record-shape.js.map +1 -0
  67. package/dist/controls/exercise-records.d.ts +28 -0
  68. package/dist/controls/exercise-records.d.ts.map +1 -0
  69. package/dist/controls/exercise-records.js +113 -0
  70. package/dist/controls/exercise-records.js.map +1 -0
  71. package/dist/controls/exercise-result.d.ts +23 -0
  72. package/dist/controls/exercise-result.d.ts.map +1 -0
  73. package/dist/controls/exercise-result.js +186 -0
  74. package/dist/controls/exercise-result.js.map +1 -0
  75. package/dist/controls/host-proof-input.d.ts +53 -0
  76. package/dist/controls/host-proof-input.d.ts.map +1 -0
  77. package/dist/controls/host-proof-input.js +129 -0
  78. package/dist/controls/host-proof-input.js.map +1 -0
  79. package/dist/controls/host-proof-receipt.d.ts +47 -0
  80. package/dist/controls/host-proof-receipt.d.ts.map +1 -0
  81. package/dist/controls/host-proof-receipt.js +132 -0
  82. package/dist/controls/host-proof-receipt.js.map +1 -0
  83. package/dist/controls/host-proof-register.d.ts +37 -0
  84. package/dist/controls/host-proof-register.d.ts.map +1 -0
  85. package/dist/controls/host-proof-register.js +153 -0
  86. package/dist/controls/host-proof-register.js.map +1 -0
  87. package/dist/controls/host-proof-signature.d.ts +30 -0
  88. package/dist/controls/host-proof-signature.d.ts.map +1 -0
  89. package/dist/controls/host-proof-signature.js +49 -0
  90. package/dist/controls/host-proof-signature.js.map +1 -0
  91. package/dist/controls/host-proof-trust.d.ts +33 -0
  92. package/dist/controls/host-proof-trust.d.ts.map +1 -0
  93. package/dist/controls/host-proof-trust.js +124 -0
  94. package/dist/controls/host-proof-trust.js.map +1 -0
  95. package/dist/controls/pull-request-executor.d.ts +18 -6
  96. package/dist/controls/pull-request-executor.d.ts.map +1 -1
  97. package/dist/controls/pull-request-executor.js +19 -24
  98. package/dist/controls/pull-request-executor.js.map +1 -1
  99. package/dist/controls/register-types.d.ts +3 -4
  100. package/dist/controls/register-types.d.ts.map +1 -1
  101. package/dist/controls/register-types.js +3 -4
  102. package/dist/controls/register-types.js.map +1 -1
  103. package/dist/controls/register.d.ts +4 -7
  104. package/dist/controls/register.d.ts.map +1 -1
  105. package/dist/controls/register.js +17 -6
  106. package/dist/controls/register.js.map +1 -1
  107. package/dist/controls/verdict-answers.d.ts.map +1 -1
  108. package/dist/controls/verdict-answers.js +6 -2
  109. package/dist/controls/verdict-answers.js.map +1 -1
  110. package/dist/controls/verdict-types.d.ts +1 -1
  111. package/dist/controls/verdict-types.d.ts.map +1 -1
  112. package/dist/controls/verdict-types.js +2 -0
  113. package/dist/controls/verdict-types.js.map +1 -1
  114. package/dist/controls/verdict-wording.d.ts +2 -0
  115. package/dist/controls/verdict-wording.d.ts.map +1 -1
  116. package/dist/controls/verdict-wording.js +7 -0
  117. package/dist/controls/verdict-wording.js.map +1 -1
  118. package/dist/controls/verdict.d.ts +2 -0
  119. package/dist/controls/verdict.d.ts.map +1 -1
  120. package/dist/controls/verdict.js +17 -2
  121. package/dist/controls/verdict.js.map +1 -1
  122. package/dist/core/lisa-owned-hash-ledger.json +56 -4
  123. package/dist/core/nightly-e2e-guard-behavior-certificate.d.ts +5 -5
  124. package/dist/core/nightly-e2e-guard-behavior-certificate.js +7 -7
  125. package/dist/core/nightly-e2e-guard-behavior-certificate.js.map +1 -1
  126. package/dist/core/upstream-evidence-manifest.json +99 -27
  127. package/expo/copy-overwrite/scripts/check-bdd-coverage.mjs +4 -1
  128. package/expo/create-only/tsconfig.local.json +6 -1
  129. package/package.json +4 -4
  130. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  131. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  132. package/plugins/lisa/.codex-plugin/scripts/ready-queue-order.mjs +43 -18
  133. package/plugins/lisa/.codex-plugin/skills/lisa-attest/SKILL.md +1 -1
  134. package/plugins/lisa/.codex-plugin/skills/lisa-configure/SKILL.md +3 -2
  135. package/plugins/lisa/.codex-plugin/skills/lisa-configure/references/exercised-artifacts.md +55 -0
  136. package/plugins/lisa/.codex-plugin/skills/lisa-enforce/references/missing-capability-tickets.md +44 -5
  137. package/plugins/lisa/.codex-plugin/skills/lisa-enforce/references/pull-request-executor.md +34 -10
  138. package/plugins/lisa/.codex-plugin/skills/lisa-linear-write-issue/SKILL.md +6 -1
  139. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/SKILL.md +9 -2
  140. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-queue.mjs +32 -8
  141. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/queue-github.mjs +44 -1
  142. package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/stale-links-github.mjs +14 -3
  143. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-evidence/references/completion-authorization.md +4 -0
  144. package/plugins/lisa/hooks/block-direct-issue-create.sh +297 -177
  145. package/plugins/lisa/hooks/threshold-ratchet-compare.mjs +18 -12
  146. package/plugins/lisa/rules/reference/config-resolution.md +2 -2
  147. package/plugins/lisa/scripts/ready-queue-order.mjs +43 -18
  148. package/plugins/lisa/skills/lisa-attest/SKILL.md +1 -1
  149. package/plugins/lisa/skills/lisa-configure/SKILL.md +3 -2
  150. package/plugins/lisa/skills/lisa-configure/references/exercised-artifacts.md +55 -0
  151. package/plugins/lisa/skills/lisa-enforce/references/missing-capability-tickets.md +44 -5
  152. package/plugins/lisa/skills/lisa-enforce/references/pull-request-executor.md +34 -10
  153. package/plugins/lisa/skills/lisa-linear-write-issue/SKILL.md +6 -1
  154. package/plugins/lisa/skills/lisa-session-manager/SKILL.md +9 -2
  155. package/plugins/lisa/skills/lisa-session-manager/scripts/cli-queue.mjs +32 -8
  156. package/plugins/lisa/skills/lisa-session-manager/scripts/queue-github.mjs +44 -1
  157. package/plugins/lisa/skills/lisa-session-manager/scripts/stale-links-github.mjs +14 -3
  158. package/plugins/lisa/skills/lisa-tracker-evidence/references/completion-authorization.md +4 -0
  159. package/plugins/lisa-agy/hooks/block-direct-issue-create.sh +297 -177
  160. package/plugins/lisa-agy/plugin.json +1 -1
  161. package/plugins/lisa-agy/scripts/ready-queue-order.mjs +43 -18
  162. package/plugins/lisa-agy/skills/lisa-attest/SKILL.md +1 -1
  163. package/plugins/lisa-agy/skills/lisa-configure/SKILL.md +3 -2
  164. package/plugins/lisa-agy/skills/lisa-configure/references/exercised-artifacts.md +55 -0
  165. package/plugins/lisa-agy/skills/lisa-enforce/references/missing-capability-tickets.md +44 -5
  166. package/plugins/lisa-agy/skills/lisa-enforce/references/pull-request-executor.md +34 -10
  167. package/plugins/lisa-agy/skills/lisa-linear-write-issue/SKILL.md +6 -1
  168. package/plugins/lisa-agy/skills/lisa-session-manager/SKILL.md +9 -2
  169. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-queue.mjs +32 -8
  170. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/queue-github.mjs +44 -1
  171. package/plugins/lisa-agy/skills/lisa-session-manager/scripts/stale-links-github.mjs +14 -3
  172. package/plugins/lisa-agy/skills/lisa-tracker-evidence/references/completion-authorization.md +4 -0
  173. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  174. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  175. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  176. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  177. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  178. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  179. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  180. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  181. package/plugins/lisa-copilot/hooks/block-direct-issue-create.sh +297 -177
  182. package/plugins/lisa-copilot/hooks/threshold-ratchet-compare.mjs +18 -12
  183. package/plugins/lisa-copilot/rules/reference/config-resolution.md +2 -2
  184. package/plugins/lisa-copilot/scripts/ready-queue-order.mjs +43 -18
  185. package/plugins/lisa-copilot/skills/lisa-attest/SKILL.md +1 -1
  186. package/plugins/lisa-copilot/skills/lisa-configure/SKILL.md +3 -2
  187. package/plugins/lisa-copilot/skills/lisa-configure/references/exercised-artifacts.md +55 -0
  188. package/plugins/lisa-copilot/skills/lisa-enforce/references/missing-capability-tickets.md +44 -5
  189. package/plugins/lisa-copilot/skills/lisa-enforce/references/pull-request-executor.md +34 -10
  190. package/plugins/lisa-copilot/skills/lisa-linear-write-issue/SKILL.md +6 -1
  191. package/plugins/lisa-copilot/skills/lisa-session-manager/SKILL.md +9 -2
  192. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-queue.mjs +32 -8
  193. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/queue-github.mjs +44 -1
  194. package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/stale-links-github.mjs +14 -3
  195. package/plugins/lisa-copilot/skills/lisa-tracker-evidence/references/completion-authorization.md +4 -0
  196. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  197. package/plugins/lisa-cursor/hooks/block-direct-issue-create.sh +297 -177
  198. package/plugins/lisa-cursor/hooks/threshold-ratchet-compare.mjs +18 -12
  199. package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +2 -2
  200. package/plugins/lisa-cursor/scripts/ready-queue-order.mjs +43 -18
  201. package/plugins/lisa-cursor/skills/lisa-attest/SKILL.md +1 -1
  202. package/plugins/lisa-cursor/skills/lisa-configure/SKILL.md +3 -2
  203. package/plugins/lisa-cursor/skills/lisa-configure/references/exercised-artifacts.md +55 -0
  204. package/plugins/lisa-cursor/skills/lisa-enforce/references/missing-capability-tickets.md +44 -5
  205. package/plugins/lisa-cursor/skills/lisa-enforce/references/pull-request-executor.md +34 -10
  206. package/plugins/lisa-cursor/skills/lisa-linear-write-issue/SKILL.md +6 -1
  207. package/plugins/lisa-cursor/skills/lisa-session-manager/SKILL.md +9 -2
  208. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-queue.mjs +32 -8
  209. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/queue-github.mjs +44 -1
  210. package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/stale-links-github.mjs +14 -3
  211. package/plugins/lisa-cursor/skills/lisa-tracker-evidence/references/completion-authorization.md +4 -0
  212. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  213. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  214. package/plugins/lisa-devin/hooks/block-direct-issue-create.sh +297 -177
  215. package/plugins/lisa-devin/hooks/threshold-ratchet-compare.mjs +18 -12
  216. package/plugins/lisa-devin/rules/reference/config-resolution.md +2 -2
  217. package/plugins/lisa-devin/scripts/ready-queue-order.mjs +43 -18
  218. package/plugins/lisa-devin/skills/lisa-attest/SKILL.md +1 -1
  219. package/plugins/lisa-devin/skills/lisa-configure/SKILL.md +3 -2
  220. package/plugins/lisa-devin/skills/lisa-configure/references/exercised-artifacts.md +55 -0
  221. package/plugins/lisa-devin/skills/lisa-enforce/references/missing-capability-tickets.md +44 -5
  222. package/plugins/lisa-devin/skills/lisa-enforce/references/pull-request-executor.md +34 -10
  223. package/plugins/lisa-devin/skills/lisa-linear-write-issue/SKILL.md +6 -1
  224. package/plugins/lisa-devin/skills/lisa-session-manager/SKILL.md +9 -2
  225. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-queue.mjs +32 -8
  226. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/queue-github.mjs +44 -1
  227. package/plugins/lisa-devin/skills/lisa-session-manager/scripts/stale-links-github.mjs +14 -3
  228. package/plugins/lisa-devin/skills/lisa-tracker-evidence/references/completion-authorization.md +4 -0
  229. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  230. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  231. package/plugins/lisa-expo-agy/plugin.json +1 -1
  232. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  233. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  234. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  235. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  236. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  237. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  238. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  239. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  240. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  241. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  242. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  243. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  244. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  245. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  246. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  247. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  248. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  249. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  250. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  251. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  252. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  253. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  254. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  255. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  256. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  257. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  258. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  259. package/plugins/lisa-rails-agy/plugin.json +1 -1
  260. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  261. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  262. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  263. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  264. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  265. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  266. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  267. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  268. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  269. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  270. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  271. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  272. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  273. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  274. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  275. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  276. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  277. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  278. package/plugins/src/base/hooks/block-direct-issue-create.sh +297 -177
  279. package/plugins/src/base/hooks/threshold-ratchet-compare.mjs +18 -12
  280. package/plugins/src/base/rules/reference/config-resolution.md +2 -2
  281. package/plugins/src/base/scripts/ready-queue-order.mjs +43 -18
  282. package/plugins/src/base/skills/lisa-attest/SKILL.md +1 -1
  283. package/plugins/src/base/skills/lisa-configure/SKILL.md +3 -2
  284. package/plugins/src/base/skills/lisa-configure/references/exercised-artifacts.md +55 -0
  285. package/plugins/src/base/skills/lisa-enforce/references/missing-capability-tickets.md +44 -5
  286. package/plugins/src/base/skills/lisa-enforce/references/pull-request-executor.md +34 -10
  287. package/plugins/src/base/skills/lisa-linear-write-issue/SKILL.md +6 -1
  288. package/plugins/src/base/skills/lisa-session-manager/SKILL.md +9 -2
  289. package/plugins/src/base/skills/lisa-session-manager/scripts/cli-queue.mjs +32 -8
  290. package/plugins/src/base/skills/lisa-session-manager/scripts/queue-github.mjs +44 -1
  291. package/plugins/src/base/skills/lisa-session-manager/scripts/stale-links-github.mjs +14 -3
  292. package/plugins/src/base/skills/lisa-tracker-evidence/references/completion-authorization.md +4 -0
  293. package/rails/copy-overwrite/scripts/check-nightly-e2e-health.mjs +28 -2
  294. package/rails/copy-overwrite/scripts/threshold-ratchet-compare.mjs +18 -12
  295. package/schemas/control-evidence.schema.json +39 -1
  296. package/schemas/control-verdict.schema.json +1 -0
  297. package/typescript/copy-overwrite/scripts/check-nightly-e2e-health.mjs +28 -2
  298. package/typescript/copy-overwrite/scripts/threshold-ratchet-compare.mjs +18 -12
@@ -107,6 +107,19 @@ export function withBlockers(ctx, repo, row, blocker) {
107
107
  return { ...row, nativeBlockers, bodyBlockers };
108
108
  }
109
109
 
110
+ /**
111
+ * Read all native issue comments with GitHub's author metadata.
112
+ * @param {object} ctx - CLI context
113
+ * @param {string} ref - GitHub issue reference
114
+ * @returns {object[] | null} Comments, or null when the read fails
115
+ */
116
+ export function readIssueComments(ctx, ref) {
117
+ const [repo, number] = ref.split("#");
118
+ return readOrUnreadable(() =>
119
+ listAll(ctx, `repos/${repo}/issues/${number}/comments?per_page=100`)
120
+ );
121
+ }
122
+
110
123
  /**
111
124
  * One issue with its blockers and comments, as the plan reads it.
112
125
  * @param {object} ctx - CLI context
@@ -119,9 +132,7 @@ function staleLinkItem(ctx, repo, row, blocker) {
119
132
  const enriched = readOrUnreadable(() =>
120
133
  withBlockers(ctx, repo, row, blocker)
121
134
  );
122
- const comments = readOrUnreadable(() =>
123
- listAll(ctx, `repos/${repo}/issues/${row.number}/comments?per_page=100`)
124
- );
135
+ const comments = readIssueComments(ctx, `${repo}#${row.number}`);
125
136
  // probe-direction: fail-closed — a candidate whose dependency list or
126
137
  // comments could not be read gets `nativeBlockers: null`, which the plan
127
138
  // reads as "blocker list not read": it is reported and nothing of it is
@@ -170,6 +170,10 @@ things somewhere in the file:
170
170
  `test_name`, `fullName`, or ` > ` (space, greater-than, space, as in
171
171
  `file > suite > test`).
172
172
 
173
+ RSpec console logs can also provide a full summary line such as `38 examples, 0 failures, 9 pending`.
174
+ The example count must be positive. Capture RSpec with a console formatter such as
175
+ `--format documentation`.
176
+
173
177
  A log snippet needs a timestamp whose date is written `YYYY-MM-DD`, followed by
174
178
  `T` or a space and the time, for example `2026-11-13T08:00:01` or
175
179
  `2026-11-13 08:00:01`. Syslog-style dates (`Nov 13 08:00:01`) and epoch numbers
@@ -160,6 +160,8 @@
160
160
  * @module scripts/check-nightly-e2e-health
161
161
  */
162
162
 
163
+ import { lstatSync } from "node:fs";
164
+ import { join } from "node:path";
163
165
  import { invokedAsScript } from "./lib/invoked-as-script.mjs";
164
166
 
165
167
  /**
@@ -1225,7 +1227,7 @@ export function assessSuiteScope(suite, scope) {
1225
1227
  * anyone claiming the contract changed.
1226
1228
  *
1227
1229
  * @param {object} suite - A validated suite entry
1228
- * @param {object} observation - `{ run, jobs, workflowMissing }`
1230
+ * @param {object} observation - `{ run, jobs, workflowMissing, workflowUnregistered }`
1229
1231
  * @param {{branch: string, freshnessHours: number, now: Date}} context - Evaluation context
1230
1232
  * @returns {{label: string, state: string, reason: string, conclusion: string|null, url: string|null, createdAt: string|null, event: string|null}} The finding
1231
1233
  */
@@ -1332,6 +1334,15 @@ export function assessSuite(suite, observation, context) {
1332
1334
  };
1333
1335
  }
1334
1336
 
1337
+ if (observation.workflowUnregistered) {
1338
+ return {
1339
+ ...base,
1340
+ ...blank,
1341
+ state: SUITE_STATES.unknown,
1342
+ reason: "workflow_not_registered",
1343
+ };
1344
+ }
1345
+
1335
1346
  const run = observation.run ?? null;
1336
1347
  if (!run) {
1337
1348
  return { ...base, ...blank, state: SUITE_STATES.unknown, reason: "no_run" };
@@ -2039,6 +2050,8 @@ const STATE_MARKERS = Object.freeze({
2039
2050
  const REASON_TEXT = Object.freeze({
2040
2051
  workflow_not_found:
2041
2052
  "the workflow file this gate watches does not exist any more. Someone renamed or deleted the suite out from under the gate — fix the `suites` table or restore the workflow.",
2053
+ workflow_not_registered:
2054
+ "GitHub returned 404 for the workflow file in the checkout. Run the suite once GitHub registers it.",
2042
2055
  no_run: "no completed run on this branch at all.",
2043
2056
  stale_run: "no completed run inside the freshness window.",
2044
2057
  wrong_branch: "the run this gate scored is on a different branch.",
@@ -3689,6 +3702,16 @@ async function selectScoredRun(
3689
3702
  };
3690
3703
  }
3691
3704
 
3705
+ /** Check for a regular workflow file in the checkout being evaluated. */
3706
+ function workflowInCheckout(workflow) {
3707
+ return (
3708
+ /^[^/\\]+\.ya?ml$/u.test(workflow) &&
3709
+ lstatSync(join(".github", "workflows", workflow), {
3710
+ throwIfNoEntry: false,
3711
+ })?.isFile() === true
3712
+ );
3713
+ }
3714
+
3692
3715
  /**
3693
3716
  * Observes every suite.
3694
3717
  *
@@ -3712,7 +3735,10 @@ export async function observe(api, suites, branch, context, wait) {
3712
3735
  wait
3713
3736
  );
3714
3737
  if (missing) {
3715
- return { workflowMissing: true, run: null, jobs: [] };
3738
+ const availability = workflowInCheckout(suite.workflow)
3739
+ ? { workflowUnregistered: true }
3740
+ : { workflowMissing: true };
3741
+ return { ...availability, run: null, jobs: [] };
3716
3742
  }
3717
3743
  // Jobs are read for EVERY match mode, `run` included. A run-scoped suite
3718
3744
  // needs them to prove the run was complete (row 26) — a `success` run
@@ -264,7 +264,7 @@ function compareK6(relPath, base, current) {
264
264
  }
265
265
 
266
266
  /**
267
- * Compare .lisa.config.json allow lists: report every added exception entry.
267
+ * Compare .lisa.config.json allow lists: report new or edited exceptions.
268
268
  *
269
269
  * The finding says only what was added, and carries the entry. Whether an
270
270
  * added entry is accepted or refused is {@link settleAddedExceptions}' call,
@@ -273,15 +273,15 @@ function compareK6(relPath, base, current) {
273
273
  * @param {string} relPath Repo-relative path
274
274
  * @param {unknown} base Parsed baseline config
275
275
  * @param {unknown} current Parsed current config
276
- * @returns {Finding[]} One finding per newly added allow entry
276
+ * @returns {Finding[]} One finding per new or edited allow entry
277
277
  */
278
278
  function compareAllowList(relPath, base, current) {
279
- const baseKeys = new Set(
280
- extractAllowEntries(base).map(e => `${e.file} ${e.key}`)
281
- );
279
+ const identity = ({ file, key, reason, until }) =>
280
+ JSON.stringify({ file, key, reason, until });
281
+ const previous = new Set(extractAllowEntries(base).map(identity));
282
282
  const findings = [];
283
283
  for (const entry of extractAllowEntries(current)) {
284
- if (!baseKeys.has(`${entry.file} ${entry.key}`)) {
284
+ if (!previous.has(identity(entry))) {
285
285
  findings.push({
286
286
  file: relPath,
287
287
  key: `thresholdRatchet.allow ${entry.file}#${entry.key}`,
@@ -815,7 +815,12 @@ function compareHumanGateMode(relPath, baselineText, currentText) {
815
815
  */
816
816
  export function compareFile(relPath, baselineText, currentText) {
817
817
  const family = familyFor(relPath);
818
- if (!family || baselineText === null || baselineText === undefined) return [];
818
+ if (!family) return [];
819
+ if (baselineText === null || baselineText === undefined) {
820
+ return family.kind === KIND_ALLOW_LIST
821
+ ? compareAllowList(relPath, undefined, parseJson(currentText))
822
+ : [];
823
+ }
819
824
 
820
825
  if (currentText === null || currentText === undefined) {
821
826
  // Deleting an allow list grants nothing, so that half stays silent. The
@@ -863,13 +868,14 @@ export function compareFile(relPath, baselineText, currentText) {
863
868
  // separates absent from present-but-unreadable with `cat-file -e` before
864
869
  // calling.
865
870
  //
866
- // The allow-list carve-out is symmetric with the current side and holds for
867
- // the same reason: an allow list nobody can read grants no exceptions, so an
868
- // unreadable one on either side already fails closed. Reporting it would
869
- // block every change touching the file without making anything safer.
871
+ // An unreadable baseline allow list grants no exceptions. A repaired config
872
+ // must record each current exception through the same check as a new entry.
870
873
  if (base === undefined) {
871
874
  return family.kind === KIND_ALLOW_LIST
872
- ? compareHumanGateMode(relPath, baselineText, currentText)
875
+ ? [
876
+ ...compareHumanGateMode(relPath, baselineText, currentText),
877
+ ...compareAllowList(relPath, undefined, current),
878
+ ]
873
879
  : [unparseableBaseline(relPath)];
874
880
  }
875
881
  if (current === undefined) {
@@ -93,11 +93,49 @@
93
93
  {
94
94
  "$ref": "#/$defs/observed_record"
95
95
  },
96
+ {
97
+ "$ref": "#/$defs/artifact_exercise_record"
98
+ },
96
99
  {
97
100
  "$ref": "#/$defs/finding_record"
98
101
  }
99
102
  ],
100
- "description": "One of three kinds of record, told apart by `rung`."
103
+ "description": "One record from a gate proof, a platform setting, an audit finding, or an independently verified artifact exercise."
104
+ },
105
+ "artifact_exercise_record": {
106
+ "type": "object",
107
+ "additionalProperties": false,
108
+ "description": "A current result for a typed exercise and its independently signed proof statement.",
109
+ "required": ["checks_digest", "command", "commit", "completed_at", "criterion", "detail", "entry_id", "exercise", "exit_status", "freshness_seconds", "id", "moment", "output_excerpt", "output_truncated", "reason", "result", "rung", "scope", "started_at"],
110
+ "properties": {
111
+ "checks_digest": { "$ref": "#/$defs/sha256" },
112
+ "command": { "const": null },
113
+ "commit": { "const": null },
114
+ "completed_at": { "$ref": "#/$defs/utc_time" },
115
+ "criterion": { "enum": ["AC5.5", "AC6.4", "AC7.2", "AC8.9"] },
116
+ "detail": { "type": "string", "minLength": 1 },
117
+ "entry_id": { "const": null },
118
+ "exercise": {
119
+ "type": "object",
120
+ "additionalProperties": false,
121
+ "required": ["target", "statement_sha256"],
122
+ "properties": {
123
+ "target": { "type": "string", "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,79}$" },
124
+ "statement_sha256": { "$ref": "#/$defs/sha256" }
125
+ }
126
+ },
127
+ "exit_status": { "const": null },
128
+ "freshness_seconds": { "$ref": "#/$defs/exercised_record/properties/freshness_seconds" },
129
+ "id": { "type": "string", "pattern": "^artifact-exercise/[a-zA-Z0-9][a-zA-Z0-9._-]{0,79}/AC(?:5\\.5|6\\.4|7\\.2|8\\.9)$" },
130
+ "moment": { "const": null },
131
+ "output_excerpt": { "const": "" },
132
+ "output_truncated": { "const": false },
133
+ "reason": { "const": "artifact-exercised" },
134
+ "result": { "const": "held" },
135
+ "rung": { "const": "exercised" },
136
+ "scope": { "type": "string", "minLength": 1 },
137
+ "started_at": { "$ref": "#/$defs/utc_time" }
138
+ }
101
139
  },
102
140
  "exercised_record": {
103
141
  "type": "object",
@@ -219,6 +219,7 @@
219
219
  "enum": [
220
220
  "control-proved",
221
221
  "artifact-located",
222
+ "artifact-exercised",
222
223
  "person-attested",
223
224
  "not-applicable",
224
225
  "control-failed",
@@ -160,6 +160,8 @@
160
160
  * @module scripts/check-nightly-e2e-health
161
161
  */
162
162
 
163
+ import { lstatSync } from "node:fs";
164
+ import { join } from "node:path";
163
165
  import { invokedAsScript } from "./lib/invoked-as-script.mjs";
164
166
 
165
167
  /**
@@ -1225,7 +1227,7 @@ export function assessSuiteScope(suite, scope) {
1225
1227
  * anyone claiming the contract changed.
1226
1228
  *
1227
1229
  * @param {object} suite - A validated suite entry
1228
- * @param {object} observation - `{ run, jobs, workflowMissing }`
1230
+ * @param {object} observation - `{ run, jobs, workflowMissing, workflowUnregistered }`
1229
1231
  * @param {{branch: string, freshnessHours: number, now: Date}} context - Evaluation context
1230
1232
  * @returns {{label: string, state: string, reason: string, conclusion: string|null, url: string|null, createdAt: string|null, event: string|null}} The finding
1231
1233
  */
@@ -1332,6 +1334,15 @@ export function assessSuite(suite, observation, context) {
1332
1334
  };
1333
1335
  }
1334
1336
 
1337
+ if (observation.workflowUnregistered) {
1338
+ return {
1339
+ ...base,
1340
+ ...blank,
1341
+ state: SUITE_STATES.unknown,
1342
+ reason: "workflow_not_registered",
1343
+ };
1344
+ }
1345
+
1335
1346
  const run = observation.run ?? null;
1336
1347
  if (!run) {
1337
1348
  return { ...base, ...blank, state: SUITE_STATES.unknown, reason: "no_run" };
@@ -2039,6 +2050,8 @@ const STATE_MARKERS = Object.freeze({
2039
2050
  const REASON_TEXT = Object.freeze({
2040
2051
  workflow_not_found:
2041
2052
  "the workflow file this gate watches does not exist any more. Someone renamed or deleted the suite out from under the gate — fix the `suites` table or restore the workflow.",
2053
+ workflow_not_registered:
2054
+ "GitHub returned 404 for the workflow file in the checkout. Run the suite once GitHub registers it.",
2042
2055
  no_run: "no completed run on this branch at all.",
2043
2056
  stale_run: "no completed run inside the freshness window.",
2044
2057
  wrong_branch: "the run this gate scored is on a different branch.",
@@ -3689,6 +3702,16 @@ async function selectScoredRun(
3689
3702
  };
3690
3703
  }
3691
3704
 
3705
+ /** Check for a regular workflow file in the checkout being evaluated. */
3706
+ function workflowInCheckout(workflow) {
3707
+ return (
3708
+ /^[^/\\]+\.ya?ml$/u.test(workflow) &&
3709
+ lstatSync(join(".github", "workflows", workflow), {
3710
+ throwIfNoEntry: false,
3711
+ })?.isFile() === true
3712
+ );
3713
+ }
3714
+
3692
3715
  /**
3693
3716
  * Observes every suite.
3694
3717
  *
@@ -3712,7 +3735,10 @@ export async function observe(api, suites, branch, context, wait) {
3712
3735
  wait
3713
3736
  );
3714
3737
  if (missing) {
3715
- return { workflowMissing: true, run: null, jobs: [] };
3738
+ const availability = workflowInCheckout(suite.workflow)
3739
+ ? { workflowUnregistered: true }
3740
+ : { workflowMissing: true };
3741
+ return { ...availability, run: null, jobs: [] };
3716
3742
  }
3717
3743
  // Jobs are read for EVERY match mode, `run` included. A run-scoped suite
3718
3744
  // needs them to prove the run was complete (row 26) — a `success` run
@@ -264,7 +264,7 @@ function compareK6(relPath, base, current) {
264
264
  }
265
265
 
266
266
  /**
267
- * Compare .lisa.config.json allow lists: report every added exception entry.
267
+ * Compare .lisa.config.json allow lists: report new or edited exceptions.
268
268
  *
269
269
  * The finding says only what was added, and carries the entry. Whether an
270
270
  * added entry is accepted or refused is {@link settleAddedExceptions}' call,
@@ -273,15 +273,15 @@ function compareK6(relPath, base, current) {
273
273
  * @param {string} relPath Repo-relative path
274
274
  * @param {unknown} base Parsed baseline config
275
275
  * @param {unknown} current Parsed current config
276
- * @returns {Finding[]} One finding per newly added allow entry
276
+ * @returns {Finding[]} One finding per new or edited allow entry
277
277
  */
278
278
  function compareAllowList(relPath, base, current) {
279
- const baseKeys = new Set(
280
- extractAllowEntries(base).map(e => `${e.file} ${e.key}`)
281
- );
279
+ const identity = ({ file, key, reason, until }) =>
280
+ JSON.stringify({ file, key, reason, until });
281
+ const previous = new Set(extractAllowEntries(base).map(identity));
282
282
  const findings = [];
283
283
  for (const entry of extractAllowEntries(current)) {
284
- if (!baseKeys.has(`${entry.file} ${entry.key}`)) {
284
+ if (!previous.has(identity(entry))) {
285
285
  findings.push({
286
286
  file: relPath,
287
287
  key: `thresholdRatchet.allow ${entry.file}#${entry.key}`,
@@ -815,7 +815,12 @@ function compareHumanGateMode(relPath, baselineText, currentText) {
815
815
  */
816
816
  export function compareFile(relPath, baselineText, currentText) {
817
817
  const family = familyFor(relPath);
818
- if (!family || baselineText === null || baselineText === undefined) return [];
818
+ if (!family) return [];
819
+ if (baselineText === null || baselineText === undefined) {
820
+ return family.kind === KIND_ALLOW_LIST
821
+ ? compareAllowList(relPath, undefined, parseJson(currentText))
822
+ : [];
823
+ }
819
824
 
820
825
  if (currentText === null || currentText === undefined) {
821
826
  // Deleting an allow list grants nothing, so that half stays silent. The
@@ -863,13 +868,14 @@ export function compareFile(relPath, baselineText, currentText) {
863
868
  // separates absent from present-but-unreadable with `cat-file -e` before
864
869
  // calling.
865
870
  //
866
- // The allow-list carve-out is symmetric with the current side and holds for
867
- // the same reason: an allow list nobody can read grants no exceptions, so an
868
- // unreadable one on either side already fails closed. Reporting it would
869
- // block every change touching the file without making anything safer.
871
+ // An unreadable baseline allow list grants no exceptions. A repaired config
872
+ // must record each current exception through the same check as a new entry.
870
873
  if (base === undefined) {
871
874
  return family.kind === KIND_ALLOW_LIST
872
- ? compareHumanGateMode(relPath, baselineText, currentText)
875
+ ? [
876
+ ...compareHumanGateMode(relPath, baselineText, currentText),
877
+ ...compareAllowList(relPath, undefined, current),
878
+ ]
873
879
  : [unparseableBaseline(relPath)];
874
880
  }
875
881
  if (current === undefined) {