open-pstack 0.0.0-stage → 0.9.150

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 (651) hide show
  1. package/LICENSE +22 -0
  2. package/LICENSE-cursor-team-kit +21 -0
  3. package/LICENSE-thermos +21 -0
  4. package/NOTICE-skills.md +13 -0
  5. package/NOTICE.md +62 -0
  6. package/bin/open-pstack.mjs +4 -0
  7. package/lib/bundle.mjs +42 -0
  8. package/lib/cli.mjs +211 -0
  9. package/lib/detect.mjs +28 -0
  10. package/lib/harnesses.mjs +136 -0
  11. package/lib/steps.mjs +93 -0
  12. package/package.json +30 -4
  13. package/plugin/.antigravity-plugin/plugin.json +8 -0
  14. package/plugin/.claude-plugin/icon.png +0 -0
  15. package/plugin/.claude-plugin/plugin.json +31 -0
  16. package/plugin/.codex-plugin/plugin.json +52 -0
  17. package/plugin/.github/plugin/plugin.json +15 -0
  18. package/plugin/.grok-plugin/plugin.json +9 -0
  19. package/plugin/.muse-plugin/plugin.json +381 -0
  20. package/plugin/LICENSE +22 -0
  21. package/plugin/README.md +27 -0
  22. package/plugin/agents/comment-sicko.md +34 -0
  23. package/plugin/agents/poteto-agent.md +8 -0
  24. package/plugin/agents/thermo-nuclear-code-quality-review-subagent.md +23 -0
  25. package/plugin/agents/thermo-nuclear-review-subagent.md +28 -0
  26. package/plugin/assets/pstack-icon.png +0 -0
  27. package/plugin/assets/pstack-icon.prompt.txt +8 -0
  28. package/plugin/grok/skills/pstack-routing/SKILL.md +8 -0
  29. package/plugin/hooks/agy-context.awk +9 -0
  30. package/plugin/hooks/codex-hooks.json +17 -0
  31. package/plugin/hooks/copilot-context.awk +44 -0
  32. package/plugin/hooks/copilot-hooks.json +29 -0
  33. package/plugin/hooks/hooks.json +16 -0
  34. package/plugin/hooks/json.awk +164 -0
  35. package/plugin/hooks/kimi-instructions.md +17 -0
  36. package/plugin/hooks/muse-context.awk +31 -0
  37. package/plugin/hooks/pre-tool-use.awk +152 -0
  38. package/plugin/hooks/pre-tool-use.sh +16 -0
  39. package/plugin/hooks/script-contracts.awk +53 -0
  40. package/plugin/hooks/session-start-agy.md +17 -0
  41. package/plugin/hooks/session-start-context.md +15 -0
  42. package/plugin/hooks/session-start-copilot-setup.md +1 -0
  43. package/plugin/hooks/session-start-copilot-sheet.md +1 -0
  44. package/plugin/hooks/session-start-copilot.md +3 -0
  45. package/plugin/hooks/session-start-minimax.md +17 -0
  46. package/plugin/hooks/session-start-muse-sheet.md +1 -0
  47. package/plugin/hooks/session-start-muse.md +17 -0
  48. package/plugin/hooks/session-start-opencode.md +17 -0
  49. package/plugin/hooks/session-start.ps1 +169 -0
  50. package/plugin/hooks/session-start.sh +107 -0
  51. package/plugin/hooks.json +10 -0
  52. package/plugin/models.json +60 -0
  53. package/plugin/omp/index.mjs +34 -0
  54. package/plugin/opencode/index.js +49 -0
  55. package/plugin/package.json +8 -0
  56. package/plugin/pi/agent-files.ts +117 -0
  57. package/plugin/pi/agent-text.ts +99 -0
  58. package/plugin/pi/agent-tools.ts +148 -0
  59. package/plugin/pi/agents.ts +510 -0
  60. package/plugin/pi/ask.ts +87 -0
  61. package/plugin/pi/child.ts +313 -0
  62. package/plugin/pi/config.ts +208 -0
  63. package/plugin/pi/hc-child.ts +210 -0
  64. package/plugin/pi/index.ts +45 -0
  65. package/plugin/pi/one-shot.ts +90 -0
  66. package/plugin/pi/path-skills.ts +54 -0
  67. package/plugin/pi/prompt.ts +39 -0
  68. package/plugin/pi/schedule.ts +254 -0
  69. package/plugin/pi/slash.ts +106 -0
  70. package/plugin/pi/sleep-wait.ts +76 -0
  71. package/plugin/pi/worktree.ts +87 -0
  72. package/plugin/skills/architect/SKILL.md +20 -0
  73. package/plugin/skills/arena/SKILL.md +66 -0
  74. package/plugin/skills/automate-me/SKILL.md +111 -0
  75. package/plugin/skills/babysit/SKILL.md +68 -0
  76. package/plugin/skills/benchmark-checklist/SKILL.md +38 -0
  77. package/plugin/skills/blast-radius/SKILL.md +49 -0
  78. package/plugin/skills/bro/SKILL.md +6 -0
  79. package/plugin/skills/correct/SKILL.md +31 -0
  80. package/plugin/skills/create-formal-verification-skill/SKILL.md +50 -0
  81. package/plugin/skills/create-verification-skill/SKILL.md +51 -0
  82. package/plugin/skills/create-verification-skill/references/feature-map-example/README.md +47 -0
  83. package/plugin/skills/create-verification-skill/references/feature-map-example/create-note.md +39 -0
  84. package/plugin/skills/create-verification-skill/references/feature-map-example/search.md +45 -0
  85. package/plugin/skills/deslop/SKILL.md +24 -0
  86. package/plugin/skills/figure-it-out/SKILL.md +51 -0
  87. package/plugin/skills/fix-ci/SKILL.md +29 -0
  88. package/plugin/skills/fix-merge-conflicts/SKILL.md +32 -0
  89. package/plugin/skills/get-pr-comments/SKILL.md +23 -0
  90. package/plugin/skills/how/SKILL.md +28 -0
  91. package/plugin/skills/in-your-own-words/SKILL.md +6 -0
  92. package/plugin/skills/interrogate/SKILL.md +48 -0
  93. package/plugin/skills/ketchup/SKILL.md +42 -0
  94. package/plugin/skills/ketchup-video/SKILL.md +28 -0
  95. package/plugin/skills/maintain-formal-verification-skill/SKILL.md +65 -0
  96. package/plugin/skills/maintain-verification-skill/SKILL.md +46 -0
  97. package/plugin/skills/make-pr-easy-to-review/SKILL.md +59 -0
  98. package/plugin/skills/no-comments/SKILL.md +45 -0
  99. package/plugin/skills/poteto-help/SKILL.md +148 -0
  100. package/plugin/skills/poteto-help/references/prompting.md +51 -0
  101. package/plugin/skills/poteto-help/references/recipes.md +51 -0
  102. package/plugin/skills/poteto-mode/SKILL.md +132 -0
  103. package/plugin/skills/poteto-mode/playbooks/authoring-a-skill.md +12 -0
  104. package/plugin/skills/poteto-mode/playbooks/autonomous-run.md +13 -0
  105. package/plugin/skills/poteto-mode/playbooks/autopilot-full.md +31 -0
  106. package/plugin/skills/poteto-mode/playbooks/autopilot-stack.md +8 -0
  107. package/plugin/skills/poteto-mode/playbooks/babysit.md +10 -0
  108. package/plugin/skills/poteto-mode/playbooks/bug-fix.md +32 -0
  109. package/plugin/skills/poteto-mode/playbooks/eval.md +25 -0
  110. package/plugin/skills/poteto-mode/playbooks/feature.md +21 -0
  111. package/plugin/skills/poteto-mode/playbooks/hillclimb.md +21 -0
  112. package/plugin/skills/poteto-mode/playbooks/investigation.md +14 -0
  113. package/plugin/skills/poteto-mode/playbooks/multi-phase-plan.md +13 -0
  114. package/plugin/skills/poteto-mode/playbooks/opening-a-pr.md +9 -0
  115. package/plugin/skills/poteto-mode/playbooks/pause-safely.md +11 -0
  116. package/plugin/skills/poteto-mode/playbooks/perf-issue.md +25 -0
  117. package/plugin/skills/poteto-mode/playbooks/prototype.md +14 -0
  118. package/plugin/skills/poteto-mode/playbooks/refactoring.md +18 -0
  119. package/plugin/skills/poteto-mode/playbooks/runtime-forensics.md +11 -0
  120. package/plugin/skills/poteto-mode/playbooks/session-pickup.md +11 -0
  121. package/plugin/skills/poteto-mode/playbooks/shipping.md +16 -0
  122. package/plugin/skills/poteto-mode/playbooks/trace-forensics.md +14 -0
  123. package/plugin/skills/poteto-mode/playbooks/visual-parity.md +11 -0
  124. package/plugin/skills/poteto-mode/playbooks/worktree-cleanup.md +12 -0
  125. package/plugin/skills/poteto-mode/references/agents/comment-sicko.md +34 -0
  126. package/plugin/skills/poteto-mode/references/agy-tools.md +100 -0
  127. package/plugin/skills/poteto-mode/references/bugbot-triage.md +142 -0
  128. package/plugin/skills/poteto-mode/references/cloud-session-pr-reads.md +29 -0
  129. package/plugin/skills/poteto-mode/references/codex-tools.md +110 -0
  130. package/plugin/skills/poteto-mode/references/copilot-tools.md +144 -0
  131. package/plugin/skills/poteto-mode/references/dsh-tools.md +51 -0
  132. package/plugin/skills/poteto-mode/references/grok.md +50 -0
  133. package/plugin/skills/poteto-mode/references/kimi-tools.md +40 -0
  134. package/plugin/skills/poteto-mode/references/licenses/LICENSE +22 -0
  135. package/plugin/skills/poteto-mode/references/licenses/LICENSE-cursor-team-kit +21 -0
  136. package/plugin/skills/poteto-mode/references/licenses/LICENSE-thermos +21 -0
  137. package/plugin/skills/poteto-mode/references/licenses/NOTICE.md +13 -0
  138. package/plugin/skills/poteto-mode/references/merge-safety.md +43 -0
  139. package/plugin/skills/poteto-mode/references/minimax-tools.md +93 -0
  140. package/plugin/skills/poteto-mode/references/muse-tools.md +105 -0
  141. package/plugin/skills/poteto-mode/references/omp-tools.md +45 -0
  142. package/plugin/skills/poteto-mode/references/opencode-tools.md +30 -0
  143. package/plugin/skills/poteto-mode/references/pi-tools.md +120 -0
  144. package/plugin/skills/poteto-mode/references/resume-storage.md +20 -0
  145. package/plugin/skills/poteto-mode/scripts/.prettierignore +19 -0
  146. package/plugin/skills/poteto-mode/scripts/.prettierrc.json +3 -0
  147. package/plugin/skills/poteto-mode/scripts/bootstrap.ts +71 -0
  148. package/plugin/skills/poteto-mode/scripts/bun.lock +67 -0
  149. package/plugin/skills/poteto-mode/scripts/check-playbooks.mjs +165 -0
  150. package/plugin/skills/poteto-mode/scripts/codex-session-effort.mjs +94 -0
  151. package/plugin/skills/poteto-mode/scripts/package.json +16 -0
  152. package/plugin/skills/poteto-mode/scripts/resume.mjs +139 -0
  153. package/plugin/skills/poteto-mode/scripts/tsconfig.json +14 -0
  154. package/plugin/skills/poteto-mode/scripts/watch-pr/check-suites.ts +203 -0
  155. package/plugin/skills/poteto-mode/scripts/watch-pr/cli.port.test.ts +88 -0
  156. package/plugin/skills/poteto-mode/scripts/watch-pr/cli.test.ts +383 -0
  157. package/plugin/skills/poteto-mode/scripts/watch-pr/cli.ts +283 -0
  158. package/plugin/skills/poteto-mode/scripts/watch-pr/deadline.ts +20 -0
  159. package/plugin/skills/poteto-mode/scripts/watch-pr/fakes.test-helper.ts +163 -0
  160. package/plugin/skills/poteto-mode/scripts/watch-pr/fresh-install.test.ts +35 -0
  161. package/plugin/skills/poteto-mode/scripts/watch-pr/github.port.test.ts +1119 -0
  162. package/plugin/skills/poteto-mode/scripts/watch-pr/github.test.ts +506 -0
  163. package/plugin/skills/poteto-mode/scripts/watch-pr/github.ts +979 -0
  164. package/plugin/skills/poteto-mode/scripts/watch-pr/head-checks.ts +37 -0
  165. package/plugin/skills/poteto-mode/scripts/watch-pr/integrity.test.ts +887 -0
  166. package/plugin/skills/poteto-mode/scripts/watch-pr/landing.ts +92 -0
  167. package/plugin/skills/poteto-mode/scripts/watch-pr/live-merge-safety.mjs +142 -0
  168. package/plugin/skills/poteto-mode/scripts/watch-pr/policy.port.test.ts +945 -0
  169. package/plugin/skills/poteto-mode/scripts/watch-pr/policy.test.ts +492 -0
  170. package/plugin/skills/poteto-mode/scripts/watch-pr/policy.ts +966 -0
  171. package/plugin/skills/poteto-mode/scripts/watch-pr/query-error.ts +36 -0
  172. package/plugin/skills/poteto-mode/scripts/watch-pr/render.ts +211 -0
  173. package/plugin/skills/poteto-mode/scripts/watch-pr/ship-pr +6 -0
  174. package/plugin/skills/poteto-mode/scripts/watch-pr/shipping-cli.test.ts +159 -0
  175. package/plugin/skills/poteto-mode/scripts/watch-pr/shipping-cli.ts +65 -0
  176. package/plugin/skills/poteto-mode/scripts/watch-pr/shipping.test-helper.ts +48 -0
  177. package/plugin/skills/poteto-mode/scripts/watch-pr/shipping.test.ts +360 -0
  178. package/plugin/skills/poteto-mode/scripts/watch-pr/shipping.ts +235 -0
  179. package/plugin/skills/poteto-mode/scripts/watch-pr/transport.test.ts +588 -0
  180. package/plugin/skills/poteto-mode/scripts/watch-pr/tsconfig.json +13 -0
  181. package/plugin/skills/poteto-mode/scripts/watch-pr/types.compile.ts +109 -0
  182. package/plugin/skills/poteto-mode/scripts/watch-pr/types.ts +502 -0
  183. package/plugin/skills/poteto-mode/scripts/watch-pr/watch-pr +6 -0
  184. package/plugin/skills/poteto-mode/scripts/watch-pr/workflow-runs.ts +217 -0
  185. package/plugin/skills/poteto-mode/scripts/watch-pr/wrapper.test.ts +20 -0
  186. package/plugin/skills/poteto-mode/scripts/worktree-audit.mjs +492 -0
  187. package/plugin/skills/poteto-mode/worker.md +11 -0
  188. package/plugin/skills/principle-attack-the-premise/SKILL.md +15 -0
  189. package/plugin/skills/principle-boundary-discipline/SKILL.md +11 -0
  190. package/plugin/skills/principle-build-the-lever/SKILL.md +15 -0
  191. package/plugin/skills/principle-encode-lessons-in-structure/SKILL.md +11 -0
  192. package/plugin/skills/principle-exhaust-the-design-space/SKILL.md +9 -0
  193. package/plugin/skills/principle-experience-first/SKILL.md +19 -0
  194. package/plugin/skills/principle-explain-the-number/SKILL.md +14 -0
  195. package/plugin/skills/principle-fix-root-causes/SKILL.md +14 -0
  196. package/plugin/skills/principle-foundational-thinking/SKILL.md +13 -0
  197. package/plugin/skills/principle-guard-the-context-window/SKILL.md +12 -0
  198. package/plugin/skills/principle-laziness-protocol/SKILL.md +10 -0
  199. package/plugin/skills/principle-make-operations-idempotent/SKILL.md +15 -0
  200. package/plugin/skills/principle-migrate-callers-then-delete-legacy-apis/SKILL.md +14 -0
  201. package/plugin/skills/principle-minimize-reader-load/SKILL.md +15 -0
  202. package/plugin/skills/principle-model-the-domain/SKILL.md +15 -0
  203. package/plugin/skills/principle-never-block-on-the-human/SKILL.md +15 -0
  204. package/plugin/skills/principle-outcome-oriented-execution/SKILL.md +21 -0
  205. package/plugin/skills/principle-prove-it-works/SKILL.md +17 -0
  206. package/plugin/skills/principle-redesign-from-first-principles/SKILL.md +16 -0
  207. package/plugin/skills/principle-separate-before-serializing-shared-state/SKILL.md +11 -0
  208. package/plugin/skills/principle-sequence-verifiable-units/SKILL.md +13 -0
  209. package/plugin/skills/principle-subtract-before-you-add/SKILL.md +18 -0
  210. package/plugin/skills/principle-test-behavior-not-implementation/SKILL.md +16 -0
  211. package/plugin/skills/principle-type-system-discipline/SKILL.md +15 -0
  212. package/plugin/skills/recall/SKILL.md +43 -0
  213. package/plugin/skills/reflect/SKILL.md +33 -0
  214. package/plugin/skills/reflect/scripts/claude-project-dir.mjs +121 -0
  215. package/plugin/skills/reflect/scripts/find-transcript.mjs +218 -0
  216. package/plugin/skills/setup-pstack/SKILL.md +104 -0
  217. package/plugin/skills/setup-pstack/copilot.md +88 -0
  218. package/plugin/skills/setup-pstack/references/runtimes.md +77 -0
  219. package/plugin/skills/setup-pstack/scripts/check-sheet.awk +10 -0
  220. package/plugin/skills/setup-pstack/scripts/check-sheet.sh +20 -0
  221. package/plugin/skills/setup-pstack/scripts/read-sheet.sh +24 -0
  222. package/plugin/skills/setup-pstack/scripts/sheet.awk +152 -0
  223. package/plugin/skills/sharpen/SKILL.md +15 -0
  224. package/plugin/skills/show-me-your-work/SKILL.md +89 -0
  225. package/plugin/skills/show-me-your-work/references/decision-log-template.tsv +1 -0
  226. package/plugin/skills/show-me-your-work/scripts/log.sh +58 -0
  227. package/plugin/skills/statechart/SKILL.md +81 -0
  228. package/plugin/skills/statechart/references/render.md +93 -0
  229. package/plugin/skills/statechart/scripts/backends/cfg.ts +33 -0
  230. package/plugin/skills/statechart/scripts/backends/mermaid.ts +249 -0
  231. package/plugin/skills/statechart/scripts/backends/plain-text.ts +72 -0
  232. package/plugin/skills/statechart/scripts/backends/report.ts +177 -0
  233. package/plugin/skills/statechart/scripts/bun.lock +17 -0
  234. package/plugin/skills/statechart/scripts/frontends/config.ts +276 -0
  235. package/plugin/skills/statechart/scripts/frontends/dot.ts +77 -0
  236. package/plugin/skills/statechart/scripts/frontends/marks.ts +93 -0
  237. package/plugin/skills/statechart/scripts/frontends/messages.ts +52 -0
  238. package/plugin/skills/statechart/scripts/frontends/spec.ts +114 -0
  239. package/plugin/skills/statechart/scripts/frontends/trace.ts +24 -0
  240. package/plugin/skills/statechart/scripts/frontends/value.ts +166 -0
  241. package/plugin/skills/statechart/scripts/frontends/verdict.ts +40 -0
  242. package/plugin/skills/statechart/scripts/frontends/view.ts +119 -0
  243. package/plugin/skills/statechart/scripts/ir.ts +547 -0
  244. package/plugin/skills/statechart/scripts/janitor.ts +13 -0
  245. package/plugin/skills/statechart/scripts/kill.ts +15 -0
  246. package/plugin/skills/statechart/scripts/package.json +11 -0
  247. package/plugin/skills/statechart/scripts/passes/annotate.ts +128 -0
  248. package/plugin/skills/statechart/scripts/passes/label.ts +269 -0
  249. package/plugin/skills/statechart/scripts/passes/lift.ts +85 -0
  250. package/plugin/skills/statechart/scripts/passes/loop-check.ts +68 -0
  251. package/plugin/skills/statechart/scripts/passes/paths.ts +60 -0
  252. package/plugin/skills/statechart/scripts/passes/reach.ts +135 -0
  253. package/plugin/skills/statechart/scripts/passes/region-check.ts +97 -0
  254. package/plugin/skills/statechart/scripts/passes/regions.ts +295 -0
  255. package/plugin/skills/statechart/scripts/pipeline.ts +76 -0
  256. package/plugin/skills/statechart/scripts/run.ts +545 -0
  257. package/plugin/skills/statechart/scripts/statechart +29 -0
  258. package/plugin/skills/statechart/scripts/statechart.ts +166 -0
  259. package/plugin/skills/statechart/scripts/test/ConfigOracle.java +63 -0
  260. package/plugin/skills/statechart/scripts/test/chart.test.ts +1253 -0
  261. package/plugin/skills/statechart/scripts/test/charts/Braces.mmd +7 -0
  262. package/plugin/skills/statechart/scripts/test/charts/Escapes.mmd +11 -0
  263. package/plugin/skills/statechart/scripts/test/charts/Phases.mmd +29 -0
  264. package/plugin/skills/statechart/scripts/test/child-env.test.ts +15 -0
  265. package/plugin/skills/statechart/scripts/test/cli.test.ts +1353 -0
  266. package/plugin/skills/statechart/scripts/test/config-fuzz.test.ts +263 -0
  267. package/plugin/skills/statechart/scripts/test/corpus/Counter/ChartRun.out +57 -0
  268. package/plugin/skills/statechart/scripts/test/corpus/Counter/Counter.cfg +3 -0
  269. package/plugin/skills/statechart/scripts/test/corpus/Counter/Counter.tla +10 -0
  270. package/plugin/skills/statechart/scripts/test/corpus/Counter/chart.mmd +9 -0
  271. package/plugin/skills/statechart/scripts/test/corpus/Counter/graph.dot +16 -0
  272. package/plugin/skills/statechart/scripts/test/corpus/Counter/report.md +7 -0
  273. package/plugin/skills/statechart/scripts/test/corpus/Counter/sany.out +2 -0
  274. package/plugin/skills/statechart/scripts/test/corpus/Counter/verdict-1.out +49 -0
  275. package/plugin/skills/statechart/scripts/test/corpus/CounterAction/ChartRun.out +60 -0
  276. package/plugin/skills/statechart/scripts/test/corpus/CounterAction/CounterAction.cfg +4 -0
  277. package/plugin/skills/statechart/scripts/test/corpus/CounterAction/CounterAction.tla +22 -0
  278. package/plugin/skills/statechart/scripts/test/corpus/CounterAction/chart.mmd +26 -0
  279. package/plugin/skills/statechart/scripts/test/corpus/CounterAction/graph.dot +19 -0
  280. package/plugin/skills/statechart/scripts/test/corpus/CounterAction/report.md +20 -0
  281. package/plugin/skills/statechart/scripts/test/corpus/CounterAction/sany.out +2 -0
  282. package/plugin/skills/statechart/scripts/test/corpus/CounterAction/verdict-1.exit +1 -0
  283. package/plugin/skills/statechart/scripts/test/corpus/CounterAction/verdict-1.out +56 -0
  284. package/plugin/skills/statechart/scripts/test/corpus/CounterAction/verdict-2.exit +1 -0
  285. package/plugin/skills/statechart/scripts/test/corpus/CounterAction/verdict-2.out +82 -0
  286. package/plugin/skills/statechart/scripts/test/corpus/CounterAction/verdict-3.out +57 -0
  287. package/plugin/skills/statechart/scripts/test/corpus/CounterDeadlock/ChartRun.out +59 -0
  288. package/plugin/skills/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.cfg +3 -0
  289. package/plugin/skills/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.tla +11 -0
  290. package/plugin/skills/statechart/scripts/test/corpus/CounterDeadlock/chart.mmd +22 -0
  291. package/plugin/skills/statechart/scripts/test/corpus/CounterDeadlock/graph.dot +16 -0
  292. package/plugin/skills/statechart/scripts/test/corpus/CounterDeadlock/report.md +17 -0
  293. package/plugin/skills/statechart/scripts/test/corpus/CounterDeadlock/sany.out +2 -0
  294. package/plugin/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.exit +1 -0
  295. package/plugin/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.out +56 -0
  296. package/plugin/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.exit +1 -0
  297. package/plugin/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.out +77 -0
  298. package/plugin/skills/statechart/scripts/test/corpus/CounterFan/ChartRun.out +69 -0
  299. package/plugin/skills/statechart/scripts/test/corpus/CounterFan/CounterFan.cfg +2 -0
  300. package/plugin/skills/statechart/scripts/test/corpus/CounterFan/CounterFan.tla +11 -0
  301. package/plugin/skills/statechart/scripts/test/corpus/CounterFan/chart.mmd +85 -0
  302. package/plugin/skills/statechart/scripts/test/corpus/CounterFan/graph.dot +70 -0
  303. package/plugin/skills/statechart/scripts/test/corpus/CounterFan/report.md +12 -0
  304. package/plugin/skills/statechart/scripts/test/corpus/CounterFan/sany.out +2 -0
  305. package/plugin/skills/statechart/scripts/test/corpus/CounterFan/verdict-1.exit +1 -0
  306. package/plugin/skills/statechart/scripts/test/corpus/CounterFan/verdict-1.out +67 -0
  307. package/plugin/skills/statechart/scripts/test/corpus/CounterFan/verdict-2.out +57 -0
  308. package/plugin/skills/statechart/scripts/test/corpus/CounterGuard/ChartRun.exit +1 -0
  309. package/plugin/skills/statechart/scripts/test/corpus/CounterGuard/ChartRun.out +85 -0
  310. package/plugin/skills/statechart/scripts/test/corpus/CounterGuard/CounterGuard.cfg +6 -0
  311. package/plugin/skills/statechart/scripts/test/corpus/CounterGuard/CounterGuard.tla +13 -0
  312. package/plugin/skills/statechart/scripts/test/corpus/CounterGuard/chart.mmd +5 -0
  313. package/plugin/skills/statechart/scripts/test/corpus/CounterGuard/graph.dot +10 -0
  314. package/plugin/skills/statechart/scripts/test/corpus/CounterGuard/report.md +31 -0
  315. package/plugin/skills/statechart/scripts/test/corpus/CounterGuard/sany.out +2 -0
  316. package/plugin/skills/statechart/scripts/test/corpus/CounterGuard/verdict-1.exit +1 -0
  317. package/plugin/skills/statechart/scripts/test/corpus/CounterGuard/verdict-1.out +64 -0
  318. package/plugin/skills/statechart/scripts/test/corpus/CounterGuard/verdict-2.exit +1 -0
  319. package/plugin/skills/statechart/scripts/test/corpus/CounterGuard/verdict-2.out +77 -0
  320. package/plugin/skills/statechart/scripts/test/corpus/CounterInitPast/ChartRun.out +55 -0
  321. package/plugin/skills/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.cfg +3 -0
  322. package/plugin/skills/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.tla +10 -0
  323. package/plugin/skills/statechart/scripts/test/corpus/CounterInitPast/chart.mmd +12 -0
  324. package/plugin/skills/statechart/scripts/test/corpus/CounterInitPast/graph.dot +6 -0
  325. package/plugin/skills/statechart/scripts/test/corpus/CounterInitPast/report.md +12 -0
  326. package/plugin/skills/statechart/scripts/test/corpus/CounterInitPast/sany.out +2 -0
  327. package/plugin/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-1.exit +1 -0
  328. package/plugin/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-1.out +33 -0
  329. package/plugin/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-2.out +54 -0
  330. package/plugin/skills/statechart/scripts/test/corpus/CounterInitPastHolds/ChartRun.out +54 -0
  331. package/plugin/skills/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.cfg +3 -0
  332. package/plugin/skills/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.tla +10 -0
  333. package/plugin/skills/statechart/scripts/test/corpus/CounterInitPastHolds/chart.mmd +1 -0
  334. package/plugin/skills/statechart/scripts/test/corpus/CounterInitPastHolds/graph.dot +6 -0
  335. package/plugin/skills/statechart/scripts/test/corpus/CounterInitPastHolds/report.md +7 -0
  336. package/plugin/skills/statechart/scripts/test/corpus/CounterInitPastHolds/sany.out +2 -0
  337. package/plugin/skills/statechart/scripts/test/corpus/CounterInitPastHolds/verdict-1.out +46 -0
  338. package/plugin/skills/statechart/scripts/test/corpus/CounterInstance/ChartRun.out +59 -0
  339. package/plugin/skills/statechart/scripts/test/corpus/CounterInstance/CounterInstance.cfg +2 -0
  340. package/plugin/skills/statechart/scripts/test/corpus/CounterInstance/CounterInstance.tla +10 -0
  341. package/plugin/skills/statechart/scripts/test/corpus/CounterInstance/CounterSteps.tla +6 -0
  342. package/plugin/skills/statechart/scripts/test/corpus/CounterInstance/chart.mmd +17 -0
  343. package/plugin/skills/statechart/scripts/test/corpus/CounterInstance/graph.dot +15 -0
  344. package/plugin/skills/statechart/scripts/test/corpus/CounterInstance/report.md +14 -0
  345. package/plugin/skills/statechart/scripts/test/corpus/CounterInstance/sany.out +3 -0
  346. package/plugin/skills/statechart/scripts/test/corpus/CounterInstance/verdict-1.exit +1 -0
  347. package/plugin/skills/statechart/scripts/test/corpus/CounterInstance/verdict-1.out +78 -0
  348. package/plugin/skills/statechart/scripts/test/corpus/CounterJump/ChartRun.out +59 -0
  349. package/plugin/skills/statechart/scripts/test/corpus/CounterJump/CounterJump.cfg +3 -0
  350. package/plugin/skills/statechart/scripts/test/corpus/CounterJump/CounterJump.tla +19 -0
  351. package/plugin/skills/statechart/scripts/test/corpus/CounterJump/chart.mmd +26 -0
  352. package/plugin/skills/statechart/scripts/test/corpus/CounterJump/graph.dot +22 -0
  353. package/plugin/skills/statechart/scripts/test/corpus/CounterJump/report.md +12 -0
  354. package/plugin/skills/statechart/scripts/test/corpus/CounterJump/sany.out +2 -0
  355. package/plugin/skills/statechart/scripts/test/corpus/CounterJump/verdict-1.exit +1 -0
  356. package/plugin/skills/statechart/scripts/test/corpus/CounterJump/verdict-1.out +58 -0
  357. package/plugin/skills/statechart/scripts/test/corpus/CounterJump/verdict-2.out +57 -0
  358. package/plugin/skills/statechart/scripts/test/corpus/CounterLoop/ChartRun.out +57 -0
  359. package/plugin/skills/statechart/scripts/test/corpus/CounterLoop/CounterLoop.cfg +2 -0
  360. package/plugin/skills/statechart/scripts/test/corpus/CounterLoop/CounterLoop.tla +11 -0
  361. package/plugin/skills/statechart/scripts/test/corpus/CounterLoop/chart.mmd +17 -0
  362. package/plugin/skills/statechart/scripts/test/corpus/CounterLoop/graph.dot +15 -0
  363. package/plugin/skills/statechart/scripts/test/corpus/CounterLoop/report.md +14 -0
  364. package/plugin/skills/statechart/scripts/test/corpus/CounterLoop/sany.out +2 -0
  365. package/plugin/skills/statechart/scripts/test/corpus/CounterLoop/verdict-1.exit +1 -0
  366. package/plugin/skills/statechart/scripts/test/corpus/CounterLoop/verdict-1.out +76 -0
  367. package/plugin/skills/statechart/scripts/test/corpus/CounterOrder/ChartRun.out +59 -0
  368. package/plugin/skills/statechart/scripts/test/corpus/CounterOrder/CounterOrder.cfg +3 -0
  369. package/plugin/skills/statechart/scripts/test/corpus/CounterOrder/CounterOrder.tla +11 -0
  370. package/plugin/skills/statechart/scripts/test/corpus/CounterOrder/chart.mmd +19 -0
  371. package/plugin/skills/statechart/scripts/test/corpus/CounterOrder/graph.dot +10 -0
  372. package/plugin/skills/statechart/scripts/test/corpus/CounterOrder/report.md +15 -0
  373. package/plugin/skills/statechart/scripts/test/corpus/CounterOrder/sany.out +2 -0
  374. package/plugin/skills/statechart/scripts/test/corpus/CounterOrder/verdict-1.exit +1 -0
  375. package/plugin/skills/statechart/scripts/test/corpus/CounterOrder/verdict-1.out +56 -0
  376. package/plugin/skills/statechart/scripts/test/corpus/CounterOrder/verdict-2.exit +1 -0
  377. package/plugin/skills/statechart/scripts/test/corpus/CounterOrder/verdict-2.out +67 -0
  378. package/plugin/skills/statechart/scripts/test/corpus/CounterRules/ChartRun.out +62 -0
  379. package/plugin/skills/statechart/scripts/test/corpus/CounterRules/CounterRules.cfg +6 -0
  380. package/plugin/skills/statechart/scripts/test/corpus/CounterRules/CounterRules.tla +24 -0
  381. package/plugin/skills/statechart/scripts/test/corpus/CounterRules/Moves.tla +5 -0
  382. package/plugin/skills/statechart/scripts/test/corpus/CounterRules/chart.mmd +22 -0
  383. package/plugin/skills/statechart/scripts/test/corpus/CounterRules/graph.dot +10 -0
  384. package/plugin/skills/statechart/scripts/test/corpus/CounterRules/report.md +23 -0
  385. package/plugin/skills/statechart/scripts/test/corpus/CounterRules/sany.out +3 -0
  386. package/plugin/skills/statechart/scripts/test/corpus/CounterRules/verdict-1.exit +1 -0
  387. package/plugin/skills/statechart/scripts/test/corpus/CounterRules/verdict-1.out +58 -0
  388. package/plugin/skills/statechart/scripts/test/corpus/CounterRules/verdict-2.exit +1 -0
  389. package/plugin/skills/statechart/scripts/test/corpus/CounterRules/verdict-2.out +66 -0
  390. package/plugin/skills/statechart/scripts/test/corpus/CounterRules/verdict-3.exit +1 -0
  391. package/plugin/skills/statechart/scripts/test/corpus/CounterRules/verdict-3.out +74 -0
  392. package/plugin/skills/statechart/scripts/test/corpus/CounterRules/verdict-4.out +59 -0
  393. package/plugin/skills/statechart/scripts/test/corpus/CounterStart/ChartRun.out +58 -0
  394. package/plugin/skills/statechart/scripts/test/corpus/CounterStart/CounterStart.cfg +3 -0
  395. package/plugin/skills/statechart/scripts/test/corpus/CounterStart/CounterStart.tla +15 -0
  396. package/plugin/skills/statechart/scripts/test/corpus/CounterStart/chart.mmd +18 -0
  397. package/plugin/skills/statechart/scripts/test/corpus/CounterStart/graph.dot +13 -0
  398. package/plugin/skills/statechart/scripts/test/corpus/CounterStart/report.md +11 -0
  399. package/plugin/skills/statechart/scripts/test/corpus/CounterStart/sany.out +2 -0
  400. package/plugin/skills/statechart/scripts/test/corpus/CounterStart/verdict-1.exit +1 -0
  401. package/plugin/skills/statechart/scripts/test/corpus/CounterStart/verdict-1.out +33 -0
  402. package/plugin/skills/statechart/scripts/test/corpus/CounterStart/verdict-2.out +57 -0
  403. package/plugin/skills/statechart/scripts/test/corpus/CounterStop/ChartRun.out +57 -0
  404. package/plugin/skills/statechart/scripts/test/corpus/CounterStop/CounterStop.cfg +3 -0
  405. package/plugin/skills/statechart/scripts/test/corpus/CounterStop/CounterStop.tla +15 -0
  406. package/plugin/skills/statechart/scripts/test/corpus/CounterStop/chart.mmd +7 -0
  407. package/plugin/skills/statechart/scripts/test/corpus/CounterStop/graph.dot +13 -0
  408. package/plugin/skills/statechart/scripts/test/corpus/CounterStop/report.md +6 -0
  409. package/plugin/skills/statechart/scripts/test/corpus/CounterStop/sany.out +2 -0
  410. package/plugin/skills/statechart/scripts/test/corpus/CounterStop/verdict-1.out +49 -0
  411. package/plugin/skills/statechart/scripts/test/corpus/CounterTie/ChartRun.out +61 -0
  412. package/plugin/skills/statechart/scripts/test/corpus/CounterTie/CounterTie.cfg +4 -0
  413. package/plugin/skills/statechart/scripts/test/corpus/CounterTie/CounterTie.tla +14 -0
  414. package/plugin/skills/statechart/scripts/test/corpus/CounterTie/chart.mmd +30 -0
  415. package/plugin/skills/statechart/scripts/test/corpus/CounterTie/graph.dot +19 -0
  416. package/plugin/skills/statechart/scripts/test/corpus/CounterTie/report.md +27 -0
  417. package/plugin/skills/statechart/scripts/test/corpus/CounterTie/sany.out +2 -0
  418. package/plugin/skills/statechart/scripts/test/corpus/CounterTie/verdict-1.exit +1 -0
  419. package/plugin/skills/statechart/scripts/test/corpus/CounterTie/verdict-1.out +56 -0
  420. package/plugin/skills/statechart/scripts/test/corpus/CounterTie/verdict-2.exit +1 -0
  421. package/plugin/skills/statechart/scripts/test/corpus/CounterTie/verdict-2.out +64 -0
  422. package/plugin/skills/statechart/scripts/test/corpus/CounterTie/verdict-3.exit +1 -0
  423. package/plugin/skills/statechart/scripts/test/corpus/CounterTie/verdict-3.out +87 -0
  424. package/plugin/skills/statechart/scripts/test/corpus/CounterTie/verdict-4.out +57 -0
  425. package/plugin/skills/statechart/scripts/test/corpus/CounterTieInGraph/ChartRun.out +60 -0
  426. package/plugin/skills/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.cfg +3 -0
  427. package/plugin/skills/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.tla +12 -0
  428. package/plugin/skills/statechart/scripts/test/corpus/CounterTieInGraph/chart.mmd +23 -0
  429. package/plugin/skills/statechart/scripts/test/corpus/CounterTieInGraph/graph.dot +19 -0
  430. package/plugin/skills/statechart/scripts/test/corpus/CounterTieInGraph/report.md +11 -0
  431. package/plugin/skills/statechart/scripts/test/corpus/CounterTieInGraph/sany.out +2 -0
  432. package/plugin/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.exit +1 -0
  433. package/plugin/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.out +56 -0
  434. package/plugin/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-2.out +57 -0
  435. package/plugin/skills/statechart/scripts/test/corpus/CounterView/ChartRun.out +61 -0
  436. package/plugin/skills/statechart/scripts/test/corpus/CounterView/CounterView.cfg +4 -0
  437. package/plugin/skills/statechart/scripts/test/corpus/CounterView/CounterView.tla +14 -0
  438. package/plugin/skills/statechart/scripts/test/corpus/CounterView/chart.mmd +23 -0
  439. package/plugin/skills/statechart/scripts/test/corpus/CounterView/graph.dot +19 -0
  440. package/plugin/skills/statechart/scripts/test/corpus/CounterView/report.md +27 -0
  441. package/plugin/skills/statechart/scripts/test/corpus/CounterView/sany.out +2 -0
  442. package/plugin/skills/statechart/scripts/test/corpus/CounterView/verdict-1.exit +1 -0
  443. package/plugin/skills/statechart/scripts/test/corpus/CounterView/verdict-1.out +56 -0
  444. package/plugin/skills/statechart/scripts/test/corpus/CounterView/verdict-2.exit +1 -0
  445. package/plugin/skills/statechart/scripts/test/corpus/CounterView/verdict-2.out +64 -0
  446. package/plugin/skills/statechart/scripts/test/corpus/CounterView/verdict-3.exit +1 -0
  447. package/plugin/skills/statechart/scripts/test/corpus/CounterView/verdict-3.out +87 -0
  448. package/plugin/skills/statechart/scripts/test/corpus/CounterView/verdict-4.out +57 -0
  449. package/plugin/skills/statechart/scripts/test/corpus/CounterView/view.mjs +1 -0
  450. package/plugin/skills/statechart/scripts/test/corpus/DieHard/ChartRun.out +59 -0
  451. package/plugin/skills/statechart/scripts/test/corpus/DieHard/DieHard.cfg +4 -0
  452. package/plugin/skills/statechart/scripts/test/corpus/DieHard/DieHard.tla +38 -0
  453. package/plugin/skills/statechart/scripts/test/corpus/DieHard/chart.mmd +92 -0
  454. package/plugin/skills/statechart/scripts/test/corpus/DieHard/graph.dot +126 -0
  455. package/plugin/skills/statechart/scripts/test/corpus/DieHard/report.md +17 -0
  456. package/plugin/skills/statechart/scripts/test/corpus/DieHard/sany.out +2 -0
  457. package/plugin/skills/statechart/scripts/test/corpus/DieHard/verdict-1.exit +1 -0
  458. package/plugin/skills/statechart/scripts/test/corpus/DieHard/verdict-1.out +91 -0
  459. package/plugin/skills/statechart/scripts/test/corpus/DieHard/verdict-2.out +57 -0
  460. package/plugin/skills/statechart/scripts/test/corpus/FirstRule/ChartRun.out +61 -0
  461. package/plugin/skills/statechart/scripts/test/corpus/FirstRule/FirstRule.cfg +6 -0
  462. package/plugin/skills/statechart/scripts/test/corpus/FirstRule/FirstRule.tla +11 -0
  463. package/plugin/skills/statechart/scripts/test/corpus/FirstRule/chart.mmd +22 -0
  464. package/plugin/skills/statechart/scripts/test/corpus/FirstRule/graph.dot +16 -0
  465. package/plugin/skills/statechart/scripts/test/corpus/FirstRule/report.md +25 -0
  466. package/plugin/skills/statechart/scripts/test/corpus/FirstRule/sany.out +2 -0
  467. package/plugin/skills/statechart/scripts/test/corpus/FirstRule/verdict-1.exit +1 -0
  468. package/plugin/skills/statechart/scripts/test/corpus/FirstRule/verdict-1.out +56 -0
  469. package/plugin/skills/statechart/scripts/test/corpus/FirstRule/verdict-2.exit +1 -0
  470. package/plugin/skills/statechart/scripts/test/corpus/FirstRule/verdict-2.out +64 -0
  471. package/plugin/skills/statechart/scripts/test/corpus/FirstRule/verdict-3.exit +1 -0
  472. package/plugin/skills/statechart/scripts/test/corpus/FirstRule/verdict-3.out +64 -0
  473. package/plugin/skills/statechart/scripts/test/corpus/FirstRule/verdict-4.exit +1 -0
  474. package/plugin/skills/statechart/scripts/test/corpus/FirstRule/verdict-4.out +77 -0
  475. package/plugin/skills/statechart/scripts/test/corpus/HiddenClock/ChartRun.out +57 -0
  476. package/plugin/skills/statechart/scripts/test/corpus/HiddenClock/HiddenClock.cfg +4 -0
  477. package/plugin/skills/statechart/scripts/test/corpus/HiddenClock/HiddenClock.tla +11 -0
  478. package/plugin/skills/statechart/scripts/test/corpus/HiddenClock/chart.mmd +13 -0
  479. package/plugin/skills/statechart/scripts/test/corpus/HiddenClock/graph.dot +12 -0
  480. package/plugin/skills/statechart/scripts/test/corpus/HiddenClock/report.md +11 -0
  481. package/plugin/skills/statechart/scripts/test/corpus/HiddenClock/sany.out +2 -0
  482. package/plugin/skills/statechart/scripts/test/corpus/HiddenClock/verdict-1.exit +1 -0
  483. package/plugin/skills/statechart/scripts/test/corpus/HiddenClock/verdict-1.out +72 -0
  484. package/plugin/skills/statechart/scripts/test/corpus/Login/ChartRun.out +57 -0
  485. package/plugin/skills/statechart/scripts/test/corpus/Login/Login.cfg +3 -0
  486. package/plugin/skills/statechart/scripts/test/corpus/Login/Login.tla +62 -0
  487. package/plugin/skills/statechart/scripts/test/corpus/Login/chart.mmd +28 -0
  488. package/plugin/skills/statechart/scripts/test/corpus/Login/graph.dot +40 -0
  489. package/plugin/skills/statechart/scripts/test/corpus/Login/report.md +7 -0
  490. package/plugin/skills/statechart/scripts/test/corpus/Login/sany.out +1 -0
  491. package/plugin/skills/statechart/scripts/test/corpus/Login/verdict-1.out +47 -0
  492. package/plugin/skills/statechart/scripts/test/corpus/Login/view.mjs +1 -0
  493. package/plugin/skills/statechart/scripts/test/corpus/LoginGuarded/ChartRun.out +57 -0
  494. package/plugin/skills/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.cfg +2 -0
  495. package/plugin/skills/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.tla +64 -0
  496. package/plugin/skills/statechart/scripts/test/corpus/LoginGuarded/chart.mmd +28 -0
  497. package/plugin/skills/statechart/scripts/test/corpus/LoginGuarded/graph.dot +37 -0
  498. package/plugin/skills/statechart/scripts/test/corpus/LoginGuarded/report.md +8 -0
  499. package/plugin/skills/statechart/scripts/test/corpus/LoginGuarded/sany.out +1 -0
  500. package/plugin/skills/statechart/scripts/test/corpus/LoginGuarded/verdict-1.out +47 -0
  501. package/plugin/skills/statechart/scripts/test/corpus/LoginGuarded/view.mjs +1 -0
  502. package/plugin/skills/statechart/scripts/test/corpus/LoginParallel/ChartRun.out +60 -0
  503. package/plugin/skills/statechart/scripts/test/corpus/LoginParallel/LoginParallel.cfg +3 -0
  504. package/plugin/skills/statechart/scripts/test/corpus/LoginParallel/LoginParallel.tla +64 -0
  505. package/plugin/skills/statechart/scripts/test/corpus/LoginParallel/chart.mmd +44 -0
  506. package/plugin/skills/statechart/scripts/test/corpus/LoginParallel/graph.dot +58 -0
  507. package/plugin/skills/statechart/scripts/test/corpus/LoginParallel/report.md +17 -0
  508. package/plugin/skills/statechart/scripts/test/corpus/LoginParallel/sany.out +1 -0
  509. package/plugin/skills/statechart/scripts/test/corpus/LoginParallel/verdict-1.exit +1 -0
  510. package/plugin/skills/statechart/scripts/test/corpus/LoginParallel/verdict-1.out +83 -0
  511. package/plugin/skills/statechart/scripts/test/corpus/LoginParallel/verdict-2.out +57 -0
  512. package/plugin/skills/statechart/scripts/test/corpus/LoginParallel/view.mjs +1 -0
  513. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayer/ChartRun.out +60 -0
  514. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.cfg +3 -0
  515. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.tla +103 -0
  516. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayer/chart.mmd +43 -0
  517. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayer/graph.dot +93 -0
  518. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayer/report.md +14 -0
  519. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayer/sany.out +1 -0
  520. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-1.exit +1 -0
  521. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-1.out +59 -0
  522. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-2.out +72 -0
  523. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayer/view.mjs +3 -0
  524. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerFixed/ChartRun.out +57 -0
  525. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.cfg +2 -0
  526. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.tla +100 -0
  527. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerFixed/chart.mmd +31 -0
  528. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerFixed/graph.dot +85 -0
  529. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerFixed/report.md +9 -0
  530. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerFixed/sany.out +1 -0
  531. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerFixed/verdict-1.out +47 -0
  532. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerFixed/view.mjs +3 -0
  533. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/ChartRun.out +59 -0
  534. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayer.tla +103 -0
  535. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.cfg +3 -0
  536. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.tla +6 -0
  537. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/chart.mmd +42 -0
  538. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/graph.dot +93 -0
  539. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/report.md +19 -0
  540. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/sany.out +2 -0
  541. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.exit +1 -0
  542. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.out +61 -0
  543. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-2.out +59 -0
  544. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-3.out +61 -0
  545. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.exit +1 -0
  546. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.out +66 -0
  547. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.exit +1 -0
  548. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.out +58 -0
  549. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-6.out +49 -0
  550. package/plugin/skills/statechart/scripts/test/corpus/MediaPlayerProps/view.mjs +3 -0
  551. package/plugin/skills/statechart/scripts/test/corpus/PickWorker/ChartRun.out +57 -0
  552. package/plugin/skills/statechart/scripts/test/corpus/PickWorker/PickWorker.cfg +6 -0
  553. package/plugin/skills/statechart/scripts/test/corpus/PickWorker/PickWorker.tla +11 -0
  554. package/plugin/skills/statechart/scripts/test/corpus/PickWorker/chart.mmd +5 -0
  555. package/plugin/skills/statechart/scripts/test/corpus/PickWorker/graph.dot +11 -0
  556. package/plugin/skills/statechart/scripts/test/corpus/PickWorker/report.md +7 -0
  557. package/plugin/skills/statechart/scripts/test/corpus/PickWorker/sany.out +5 -0
  558. package/plugin/skills/statechart/scripts/test/corpus/PickWorker/verdict-1.out +70 -0
  559. package/plugin/skills/statechart/scripts/test/corpus/Shadow/ChartRun.out +61 -0
  560. package/plugin/skills/statechart/scripts/test/corpus/Shadow/Shadow.cfg +4 -0
  561. package/plugin/skills/statechart/scripts/test/corpus/Shadow/Shadow.tla +11 -0
  562. package/plugin/skills/statechart/scripts/test/corpus/Shadow/ShadowLib.tla +6 -0
  563. package/plugin/skills/statechart/scripts/test/corpus/Shadow/ShadowSub.tla +3 -0
  564. package/plugin/skills/statechart/scripts/test/corpus/Shadow/chart.mmd +9 -0
  565. package/plugin/skills/statechart/scripts/test/corpus/Shadow/graph.dot +16 -0
  566. package/plugin/skills/statechart/scripts/test/corpus/Shadow/report.md +8 -0
  567. package/plugin/skills/statechart/scripts/test/corpus/Shadow/sany.out +4 -0
  568. package/plugin/skills/statechart/scripts/test/corpus/Shadow/verdict-1.out +65 -0
  569. package/plugin/skills/statechart/scripts/test/corpus/SpacedNames/ChartRun.out +59 -0
  570. package/plugin/skills/statechart/scripts/test/corpus/SpacedNames/SpacedNames.cfg +2 -0
  571. package/plugin/skills/statechart/scripts/test/corpus/SpacedNames/SpacedNames.tla +9 -0
  572. package/plugin/skills/statechart/scripts/test/corpus/SpacedNames/chart.mmd +23 -0
  573. package/plugin/skills/statechart/scripts/test/corpus/SpacedNames/graph.dot +17 -0
  574. package/plugin/skills/statechart/scripts/test/corpus/SpacedNames/report.md +15 -0
  575. package/plugin/skills/statechart/scripts/test/corpus/SpacedNames/sany.out +1 -0
  576. package/plugin/skills/statechart/scripts/test/corpus/SpacedNames/verdict-1.exit +1 -0
  577. package/plugin/skills/statechart/scripts/test/corpus/SpacedNames/verdict-1.out +65 -0
  578. package/plugin/skills/statechart/scripts/test/corpus/SpacedNames/verdict-2.exit +1 -0
  579. package/plugin/skills/statechart/scripts/test/corpus/SpacedNames/verdict-2.out +75 -0
  580. package/plugin/skills/statechart/scripts/test/corpus/TwoPhase/ChartRun.out +69 -0
  581. package/plugin/skills/statechart/scripts/test/corpus/TwoPhase/TwoPhase.cfg +3 -0
  582. package/plugin/skills/statechart/scripts/test/corpus/TwoPhase/TwoPhase.tla +75 -0
  583. package/plugin/skills/statechart/scripts/test/corpus/TwoPhase/chart.mmd +60 -0
  584. package/plugin/skills/statechart/scripts/test/corpus/TwoPhase/graph.dot +297 -0
  585. package/plugin/skills/statechart/scripts/test/corpus/TwoPhase/report.md +20 -0
  586. package/plugin/skills/statechart/scripts/test/corpus/TwoPhase/sany.out +1 -0
  587. package/plugin/skills/statechart/scripts/test/corpus/TwoPhase/verdict-1.exit +1 -0
  588. package/plugin/skills/statechart/scripts/test/corpus/TwoPhase/verdict-1.out +95 -0
  589. package/plugin/skills/statechart/scripts/test/corpus/TwoPhase/verdict-2.out +57 -0
  590. package/plugin/skills/statechart/scripts/test/corpus/TwoPhase/view.mjs +1 -0
  591. package/plugin/skills/statechart/scripts/test/corpus/TwoPhaseFixed/ChartRun.out +57 -0
  592. package/plugin/skills/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.cfg +3 -0
  593. package/plugin/skills/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.tla +75 -0
  594. package/plugin/skills/statechart/scripts/test/corpus/TwoPhaseFixed/chart.mmd +37 -0
  595. package/plugin/skills/statechart/scripts/test/corpus/TwoPhaseFixed/graph.dot +223 -0
  596. package/plugin/skills/statechart/scripts/test/corpus/TwoPhaseFixed/report.md +11 -0
  597. package/plugin/skills/statechart/scripts/test/corpus/TwoPhaseFixed/sany.out +1 -0
  598. package/plugin/skills/statechart/scripts/test/corpus/TwoPhaseFixed/verdict-1.out +47 -0
  599. package/plugin/skills/statechart/scripts/test/corpus/TwoPhaseFixed/view.mjs +1 -0
  600. package/plugin/skills/statechart/scripts/test/corpus/TypeGuard/ChartRun.exit +1 -0
  601. package/plugin/skills/statechart/scripts/test/corpus/TypeGuard/ChartRun.out +75 -0
  602. package/plugin/skills/statechart/scripts/test/corpus/TypeGuard/TypeGuard.cfg +5 -0
  603. package/plugin/skills/statechart/scripts/test/corpus/TypeGuard/TypeGuard.tla +11 -0
  604. package/plugin/skills/statechart/scripts/test/corpus/TypeGuard/chart.mmd +18 -0
  605. package/plugin/skills/statechart/scripts/test/corpus/TypeGuard/graph.dot +14 -0
  606. package/plugin/skills/statechart/scripts/test/corpus/TypeGuard/report.md +29 -0
  607. package/plugin/skills/statechart/scripts/test/corpus/TypeGuard/sany.out +2 -0
  608. package/plugin/skills/statechart/scripts/test/corpus/TypeGuard/verdict-1.exit +1 -0
  609. package/plugin/skills/statechart/scripts/test/corpus/TypeGuard/verdict-1.out +64 -0
  610. package/plugin/skills/statechart/scripts/test/corpus/TypeGuard/verdict-2.exit +1 -0
  611. package/plugin/skills/statechart/scripts/test/corpus/TypeGuard/verdict-2.out +75 -0
  612. package/plugin/skills/statechart/scripts/test/corpus/UserNoDeadlock/ChartRun.out +58 -0
  613. package/plugin/skills/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.cfg +2 -0
  614. package/plugin/skills/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.tla +8 -0
  615. package/plugin/skills/statechart/scripts/test/corpus/UserNoDeadlock/chart.mmd +22 -0
  616. package/plugin/skills/statechart/scripts/test/corpus/UserNoDeadlock/graph.dot +16 -0
  617. package/plugin/skills/statechart/scripts/test/corpus/UserNoDeadlock/report.md +15 -0
  618. package/plugin/skills/statechart/scripts/test/corpus/UserNoDeadlock/sany.out +2 -0
  619. package/plugin/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.exit +1 -0
  620. package/plugin/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.out +56 -0
  621. package/plugin/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.exit +1 -0
  622. package/plugin/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.out +77 -0
  623. package/plugin/skills/statechart/scripts/test/corpus.test.ts +453 -0
  624. package/plugin/skills/statechart/scripts/test/differential.test.ts +565 -0
  625. package/plugin/skills/statechart/scripts/test/drawn.ts +20 -0
  626. package/plugin/skills/statechart/scripts/test/grid/Grid.cfg +2 -0
  627. package/plugin/skills/statechart/scripts/test/grid/Grid.tla +9 -0
  628. package/plugin/skills/statechart/scripts/test/grid/sany.out +2 -0
  629. package/plugin/skills/statechart/scripts/test/java.ts +63 -0
  630. package/plugin/skills/statechart/scripts/test/labels.ts +648 -0
  631. package/plugin/skills/statechart/scripts/test/messages.test.ts +226 -0
  632. package/plugin/skills/statechart/scripts/test/pipeline.test.ts +270 -0
  633. package/plugin/skills/statechart/scripts/test/plain-tlc.test.ts +255 -0
  634. package/plugin/skills/statechart/scripts/test/render.test.ts +145 -0
  635. package/plugin/skills/statechart/scripts/test/tlc-out.test.ts +90 -0
  636. package/plugin/skills/statechart/scripts/test/tlc.ts +158 -0
  637. package/plugin/skills/statechart/scripts/tsconfig.json +11 -0
  638. package/plugin/skills/statechart/scripts/worker.ts +35 -0
  639. package/plugin/skills/swarm/SKILL.md +58 -0
  640. package/plugin/skills/tdd/SKILL.md +41 -0
  641. package/plugin/skills/teach/SKILL.md +28 -0
  642. package/plugin/skills/technical-writing/SKILL.md +69 -0
  643. package/plugin/skills/thermo-nuclear-code-quality-review/SKILL.md +201 -0
  644. package/plugin/skills/thermo-nuclear-review/SKILL.md +50 -0
  645. package/plugin/skills/thermos/SKILL.md +40 -0
  646. package/plugin/skills/typescript-best-practices/SKILL.md +32 -0
  647. package/plugin/skills/typescript-best-practices/references/patterns.md +328 -0
  648. package/plugin/skills/unslop/SKILL.md +39 -0
  649. package/plugin/skills/what-did-i-get-done/SKILL.md +31 -0
  650. package/plugin/skills/why/SKILL.md +16 -0
  651. package/README.md +0 -3
@@ -0,0 +1,945 @@
1
+ import { describe, expect, it } from "bun:test";
2
+ import { WatchDeadline } from "./deadline.ts";
3
+ import {
4
+ classifyPr,
5
+ noChecksConfirmer,
6
+ readSnapshot,
7
+ runQueued,
8
+ runSimple,
9
+ selectTierMajorStackDecision,
10
+ } from "./policy.ts";
11
+ import { fakeReader, failedCheck, pendingCheck } from "./fakes.test-helper.ts";
12
+ import { unsettledSuiteChecks } from "./github.ts";
13
+ import type {
14
+ GitHubReader,
15
+ NonEmpty,
16
+ PollingOptions,
17
+ PrContext,
18
+ ProgressVerdict,
19
+ } from "./types.ts";
20
+ import { parsePrNumber } from "./types.ts";
21
+
22
+ const context = (number: number): PrContext => ({
23
+ owner: "owner",
24
+ repo: "repo",
25
+ number: parsePrNumber(number),
26
+ });
27
+ const options = {
28
+ interval: 10,
29
+ sweepInterval: 300,
30
+ timeout: 0,
31
+ maxQueryErrors: 5,
32
+ allowDraft: false,
33
+ } satisfies PollingOptions;
34
+
35
+ describe("review gate", () => {
36
+ it("blocks on a required review instead of reporting a blocked PR ready", async () => {
37
+ const snapshot = await readSnapshot({
38
+ reader: fakeReader({
39
+ facts: {
40
+ reviewDecision: "REVIEW_REQUIRED",
41
+ mergeStateStatus: "BLOCKED",
42
+ },
43
+ }),
44
+ context: context(23),
45
+ pendingHistory: "omit",
46
+ allowDraft: false,
47
+ });
48
+ expect(classifyPr(snapshot)).toEqual({
49
+ kind: "blocker",
50
+ blocker: {
51
+ kind: "merge-gate",
52
+ pr: context(23),
53
+ reason: "review-required",
54
+ },
55
+ });
56
+ expect(
57
+ selectTierMajorStackDecision([snapshot] as NonEmpty<typeof snapshot>)
58
+ ).toMatchObject({
59
+ kind: "blocker",
60
+ blocker: { kind: "merge-gate", reason: "review-required" },
61
+ });
62
+ });
63
+
64
+ it("blocks when branch protection holds an approved PR with clean CI", async () => {
65
+ const snapshot = await readSnapshot({
66
+ reader: fakeReader({ facts: { mergeStateStatus: "BLOCKED" } }),
67
+ context: context(24),
68
+ pendingHistory: "omit",
69
+ allowDraft: false,
70
+ });
71
+ expect(classifyPr(snapshot)).toMatchObject({
72
+ kind: "blocker",
73
+ blocker: { kind: "merge-gate", reason: "merge-blocked" },
74
+ });
75
+ });
76
+
77
+ it("waits for pending checks before reporting the review gate", async () => {
78
+ const snapshot = await readSnapshot({
79
+ reader: fakeReader({
80
+ facts: {
81
+ reviewDecision: "REVIEW_REQUIRED",
82
+ mergeStateStatus: "BLOCKED",
83
+ },
84
+ fastPath: { kind: "checks", checks: [pendingCheck()] },
85
+ }),
86
+ context: context(26),
87
+ pendingHistory: "omit",
88
+ allowDraft: false,
89
+ });
90
+ expect(classifyPr(snapshot)).toMatchObject({ kind: "waiting" });
91
+ });
92
+
93
+ it("still reports changes requested as a merge-gate blocker", async () => {
94
+ const snapshot = await readSnapshot({
95
+ reader: fakeReader({
96
+ facts: {
97
+ reviewDecision: "CHANGES_REQUESTED",
98
+ mergeStateStatus: "BLOCKED",
99
+ },
100
+ }),
101
+ context: context(25),
102
+ pendingHistory: "omit",
103
+ allowDraft: false,
104
+ });
105
+ expect(classifyPr(snapshot)).toMatchObject({
106
+ kind: "blocker",
107
+ blocker: { kind: "merge-gate", reason: "changes-requested" },
108
+ });
109
+ });
110
+ });
111
+
112
+ describe("facts that change while the snapshot is read", () => {
113
+ const read = (options: Parameters<typeof fakeReader>[0]) =>
114
+ readSnapshot({
115
+ reader: fakeReader(options),
116
+ context: context(29),
117
+ pendingHistory: "include",
118
+ allowDraft: false,
119
+ });
120
+
121
+ it("retries instead of reporting a merge gate the checks read has already cleared", async () => {
122
+ await expect(
123
+ read({
124
+ facts: { mergeStateStatus: "BLOCKED" },
125
+ factsOnReread: { mergeStateStatus: "CLEAN" },
126
+ })
127
+ ).rejects.toMatchObject({
128
+ failure: { kind: "snapshot-changed", retryable: true },
129
+ });
130
+ });
131
+
132
+ it("retries instead of reporting ready when a review lands after the facts read", async () => {
133
+ for (const factsOnReread of [
134
+ { reviewDecision: "CHANGES_REQUESTED" },
135
+ { mergeable: "CONFLICTING" },
136
+ { mergeable: "UNKNOWN" },
137
+ { isDraft: true },
138
+ ] as const)
139
+ await expect(read({ factsOnReread })).rejects.toMatchObject({
140
+ failure: { kind: "snapshot-changed", retryable: true },
141
+ });
142
+ });
143
+
144
+ it("retries when the PR closes, merges, or renames its head branch between the two reads", async () => {
145
+ for (const factsOnReread of [
146
+ { state: "CLOSED" },
147
+ { mergedAt: "2026-07-26T00:00:00Z" },
148
+ { headRefName: "renamed" },
149
+ ] as const)
150
+ await expect(read({ factsOnReread })).rejects.toMatchObject({
151
+ failure: { kind: "snapshot-changed", retryable: true },
152
+ });
153
+ });
154
+
155
+ it("keeps an unknown first read when GitHub computes mergeability before the re-read", async () => {
156
+ const unknown = {
157
+ mergeable: "UNKNOWN",
158
+ mergeStateStatus: "UNKNOWN",
159
+ } as const;
160
+ expect(
161
+ await read({
162
+ facts: unknown,
163
+ factsOnReread: { mergeable: "MERGEABLE", mergeStateStatus: "CLEAN" },
164
+ })
165
+ ).toMatchObject({ kind: "open", facts: unknown });
166
+ await expect(
167
+ read({
168
+ facts: unknown,
169
+ factsOnReread: { reviewDecision: "CHANGES_REQUESTED" },
170
+ })
171
+ ).rejects.toMatchObject({ failure: { kind: "snapshot-changed" } });
172
+ });
173
+ });
174
+
175
+ const ticking = (onSleep = () => {}) => {
176
+ let now = 0;
177
+ return {
178
+ now: () => now,
179
+ async sleep(seconds: number) {
180
+ now += seconds;
181
+ // A wait that never ends would spin on this clock without yielding to
182
+ // the test runner's own timeout.
183
+ if (now > 3600) throw new Error("no verdict within an hour of polling");
184
+ onSleep();
185
+ },
186
+ };
187
+ };
188
+ const dependencies = (
189
+ reader: GitHubReader,
190
+ clock: { now: () => number; sleep: (seconds: number) => Promise<void> },
191
+ emitted: ProgressVerdict[],
192
+ timeout = 0
193
+ ) => ({
194
+ reader,
195
+ emit: (verdict: ProgressVerdict) => {
196
+ emitted.push(verdict);
197
+ },
198
+ clock: { ...clock, observedAt: () => "2026-07-26T00:00:00.000Z" },
199
+ deadline: new WatchDeadline(timeout, clock.now),
200
+ });
201
+ const kinds = (emitted: readonly ProgressVerdict[]) =>
202
+ emitted.map((verdict) =>
203
+ verdict.kind === "WAITING"
204
+ ? `${verdict.kind}:${verdict.reason.kind}`
205
+ : verdict.kind
206
+ );
207
+
208
+ describe("mergeability", () => {
209
+ const unknown = {
210
+ mergeable: "UNKNOWN",
211
+ mergeStateStatus: "UNKNOWN",
212
+ } as const;
213
+ const read = (options: Parameters<typeof fakeReader>[0]) =>
214
+ readSnapshot({
215
+ reader: fakeReader(options),
216
+ context: context(27),
217
+ pendingHistory: "include",
218
+ allowDraft: false,
219
+ });
220
+ // One query error ends the run, so a wait that spent the budget would exit 7.
221
+ const watch = async (
222
+ reader: GitHubReader,
223
+ polling: Partial<PollingOptions> = {},
224
+ statusOnly = false
225
+ ) => {
226
+ const clock = ticking();
227
+ const emitted: ProgressVerdict[] = [];
228
+ const verdict = await runSimple({
229
+ dependencies: dependencies(reader, clock, emitted, polling.timeout),
230
+ contexts: [context(27)],
231
+ mode: "single",
232
+ statusOnly,
233
+ options: { ...options, maxQueryErrors: 1, ...polling },
234
+ });
235
+ return { verdict, emitted: kinds(emitted), elapsed: clock.now() };
236
+ };
237
+
238
+ it("waits while GitHub has not computed mergeability instead of reporting ready", async () => {
239
+ for (const facts of [
240
+ { mergeable: "UNKNOWN" },
241
+ { mergeStateStatus: "UNKNOWN" },
242
+ ] as const) {
243
+ const snapshot = await read({ facts });
244
+ const waiting = {
245
+ kind: "waiting",
246
+ frontier: context(27),
247
+ reason: { kind: "mergeability-unknown" },
248
+ } as const;
249
+ expect(classifyPr(snapshot)).toEqual(waiting);
250
+ expect(selectTierMajorStackDecision([snapshot])).toEqual(waiting);
251
+ }
252
+ });
253
+
254
+ it("re-polls at the interval after an unknown first read, without spending the query-error budget", async () => {
255
+ const { verdict, emitted, elapsed } = await watch(
256
+ fakeReader({
257
+ facts: unknown,
258
+ factsOnReread: { mergeable: "MERGEABLE", mergeStateStatus: "CLEAN" },
259
+ })
260
+ );
261
+ expect(emitted).toEqual(["WAITING:mergeability-unknown"]);
262
+ expect(elapsed).toBe(options.interval);
263
+ expect(verdict).toMatchObject({ kind: "READY", exitCode: 0 });
264
+ });
265
+
266
+ it("times out at the caller's deadline when GitHub never computes it", async () => {
267
+ const { verdict, emitted, elapsed } = await watch(
268
+ fakeReader({ facts: unknown }),
269
+ { timeout: 25 }
270
+ );
271
+ expect(emitted).toEqual([
272
+ "WAITING:mergeability-unknown",
273
+ "WAITING:mergeability-unknown",
274
+ "WAITING:mergeability-unknown",
275
+ ]);
276
+ expect(elapsed).toBe(25);
277
+ expect(verdict).toMatchObject({
278
+ kind: "TIMEOUT",
279
+ exitCode: 5,
280
+ reason: { kind: "mergeability-unknown" },
281
+ });
282
+ });
283
+
284
+ it("reports an unknown row on a status-only pass and exits 0 without waiting", async () => {
285
+ const { verdict, emitted, elapsed } = await watch(
286
+ fakeReader({ facts: unknown }),
287
+ {},
288
+ true
289
+ );
290
+ expect(emitted).toEqual([]);
291
+ expect(elapsed).toBe(0);
292
+ expect(verdict).toMatchObject({
293
+ kind: "STATUS",
294
+ exitCode: 0,
295
+ rows: [{ kind: "open", facts: unknown, ci: { kind: "ci-clean" } }],
296
+ });
297
+ });
298
+
299
+ it("still stops at once on a blocker that does not depend on mergeability", async () => {
300
+ const thread = {
301
+ id: "thread",
302
+ firstComment: null,
303
+ isBugbot: false,
304
+ bugbotReviewPasses: 0,
305
+ };
306
+ const cases = [
307
+ [{ threads: [thread] }, { kind: "review-threads" }],
308
+ [
309
+ {
310
+ fastPath: { kind: "checks", checks: [failedCheck()] },
311
+ commitRollups: [{ oid: "head", state: "FAILURE" }],
312
+ },
313
+ { kind: "failing-checks" },
314
+ ],
315
+ [
316
+ { facts: { ...unknown, reviewDecision: "CHANGES_REQUESTED" } },
317
+ { kind: "merge-gate", reason: "changes-requested" },
318
+ ],
319
+ ] as const;
320
+ for (const [overrides, blocker] of cases)
321
+ expect(
322
+ classifyPr(await read({ facts: unknown, ...overrides }))
323
+ ).toMatchObject({ kind: "blocker", blocker });
324
+ });
325
+
326
+ it("defers a required review, and names pending checks first, while mergeability is unknown", async () => {
327
+ expect(
328
+ classifyPr(
329
+ await read({ facts: { ...unknown, reviewDecision: "REVIEW_REQUIRED" } })
330
+ )
331
+ ).toMatchObject({
332
+ kind: "waiting",
333
+ reason: { kind: "mergeability-unknown" },
334
+ });
335
+ expect(
336
+ classifyPr(
337
+ await read({
338
+ facts: unknown,
339
+ fastPath: { kind: "checks", checks: [pendingCheck()] },
340
+ })
341
+ )
342
+ ).toMatchObject({ kind: "waiting", reason: { kind: "pending-checks" } });
343
+ });
344
+
345
+ it("does not report a queued frontier blocker-free while its mergeability is unknown", async () => {
346
+ let sleeps = 0;
347
+ const emitted: ProgressVerdict[] = [];
348
+ const running = runQueued({
349
+ dependencies: dependencies(
350
+ fakeReader({ facts: unknown }),
351
+ ticking(() => {
352
+ if (++sleeps === 2) throw new Error("stop after two polls");
353
+ }),
354
+ emitted
355
+ ),
356
+ contexts: [context(27)],
357
+ options,
358
+ });
359
+ await expect(running).rejects.toThrow("stop after two polls");
360
+ expect(kinds(emitted)).toEqual([
361
+ "QUEUE",
362
+ "STATUS",
363
+ "WAITING:mergeability-unknown",
364
+ ]);
365
+ });
366
+
367
+ it("gates a branch that is behind its base instead of reporting it ready", async () => {
368
+ const snapshot = await readSnapshot({
369
+ reader: fakeReader({ facts: { mergeStateStatus: "BEHIND" } }),
370
+ context: context(28),
371
+ pendingHistory: "include",
372
+ allowDraft: false,
373
+ });
374
+ expect(classifyPr(snapshot)).toEqual({
375
+ kind: "blocker",
376
+ blocker: { kind: "merge-gate", pr: context(28), reason: "behind-base" },
377
+ });
378
+ });
379
+
380
+ it("stops at once on a branch behind its base, without waiting for checks that are pending or unreported", async () => {
381
+ for (const checks of [
382
+ { fastPath: { kind: "checks", checks: [pendingCheck()] } },
383
+ {
384
+ fastPath: { kind: "none-reported" },
385
+ rollupPages: [{ kind: "no-rollup" }],
386
+ commitRollups: [{ oid: "head", state: null }],
387
+ },
388
+ ] as const)
389
+ expect(
390
+ classifyPr(
391
+ await read({ facts: { mergeStateStatus: "BEHIND" }, ...checks })
392
+ )
393
+ ).toEqual({
394
+ kind: "blocker",
395
+ blocker: { kind: "merge-gate", pr: context(27), reason: "behind-base" },
396
+ });
397
+ });
398
+
399
+ it("reports requested changes before a behind base, and a behind base before a required review", async () => {
400
+ for (const [reviewDecision, reason] of [
401
+ ["CHANGES_REQUESTED", "changes-requested"],
402
+ ["REVIEW_REQUIRED", "behind-base"],
403
+ ] as const)
404
+ expect(
405
+ classifyPr(
406
+ await read({
407
+ facts: { mergeStateStatus: "BEHIND", reviewDecision },
408
+ fastPath: { kind: "checks", checks: [pendingCheck()] },
409
+ })
410
+ )
411
+ ).toMatchObject({ kind: "blocker", blocker: { reason } });
412
+ });
413
+ });
414
+
415
+ describe("a PR with no checks configured", () => {
416
+ const noChecks = {
417
+ fastPath: { kind: "none-reported" },
418
+ rollupPages: [{ kind: "no-rollup" }],
419
+ commitRollups: [{ oid: "head", state: null }],
420
+ } as const;
421
+ const read = (
422
+ overrides: Parameters<typeof fakeReader>[0] = {},
423
+ confirmNoChecks = () => true
424
+ ) =>
425
+ readSnapshot({
426
+ reader: fakeReader({ ...noChecks, ...overrides }),
427
+ context: context(30),
428
+ pendingHistory: "omit",
429
+ allowDraft: false,
430
+ confirmNoChecks,
431
+ });
432
+ const run = (...args: Parameters<typeof dependencies>) =>
433
+ runSimple({
434
+ dependencies: dependencies(...args),
435
+ contexts: [context(30)],
436
+ mode: "single",
437
+ statusOnly: false,
438
+ options,
439
+ });
440
+ // The suite polls every 10 seconds, so the 60 second floor is six polls.
441
+ const sixPolls = (...perPoll: string[]) =>
442
+ Array.from({ length: 6 }, () => perPoll).flat();
443
+
444
+ it("is ready once the no-checks reading is confirmed and GitHub reports it mergeable", async () => {
445
+ const snapshot = await read({ facts: { reviewDecision: null } });
446
+ expect(classifyPr(snapshot)).toMatchObject({
447
+ kind: "ready",
448
+ pr: { proof: { ci: { kind: "ci-none" } } },
449
+ });
450
+ });
451
+
452
+ it("waits on a first sighting instead of reporting ready or a merge gate", async () => {
453
+ for (const facts of [
454
+ { reviewDecision: null },
455
+ { mergeStateStatus: "BLOCKED" },
456
+ { reviewDecision: "REVIEW_REQUIRED" },
457
+ ] as const) {
458
+ const snapshot = await read({ facts }, () => false);
459
+ expect(snapshot).toMatchObject({
460
+ kind: "open",
461
+ ci: { kind: "ci-unreported" },
462
+ });
463
+ expect(classifyPr(snapshot)).toEqual({
464
+ kind: "waiting",
465
+ frontier: context(30),
466
+ reason: { kind: "checks-unreported" },
467
+ });
468
+ }
469
+ });
470
+
471
+ it("confirms no checks only once the same head has shown none for 60 seconds", () => {
472
+ let now = 0;
473
+ const confirm = noChecksConfirmer({ now: () => now });
474
+ const head = { context: context(30), headRefOid: "head" };
475
+ expect(confirm(head)).toBe(false);
476
+ now = 59;
477
+ expect(confirm(head)).toBe(false);
478
+ now = 60;
479
+ expect(confirm(head)).toBe(true);
480
+ expect(confirm({ ...head, headRefOid: "pushed" })).toBe(false);
481
+ now = 119;
482
+ expect(confirm({ ...head, headRefOid: "pushed" })).toBe(false);
483
+ now = 120;
484
+ expect(confirm({ ...head, headRefOid: "pushed" })).toBe(true);
485
+ });
486
+
487
+ it("times each PR from its own first sighting, not from another PR's", () => {
488
+ let now = 0;
489
+ const confirm = noChecksConfirmer({ now: () => now });
490
+ const first = { context: context(30), headRefOid: "head" };
491
+ const second = { context: context(31), headRefOid: "head" };
492
+ expect(confirm(first)).toBe(false);
493
+ now = 60;
494
+ expect(confirm(second)).toBe(false);
495
+ expect(confirm(first)).toBe(true);
496
+ now = 120;
497
+ expect(confirm(second)).toBe(true);
498
+ });
499
+
500
+ it("reads no checks as unreported when the caller supplies no confirmation", async () => {
501
+ expect(
502
+ await readSnapshot({
503
+ reader: fakeReader(noChecks),
504
+ context: context(30),
505
+ pendingHistory: "omit",
506
+ allowDraft: false,
507
+ })
508
+ ).toMatchObject({ kind: "open", ci: { kind: "ci-unreported" } });
509
+ });
510
+
511
+ it("reports a repository with no CI ready 60 seconds after the first sighting, however short the interval", async () => {
512
+ const clock = ticking();
513
+ const emitted: ProgressVerdict[] = [];
514
+ const verdict = await run(
515
+ fakeReader({ ...noChecks, facts: { reviewDecision: null } }),
516
+ clock,
517
+ emitted
518
+ );
519
+ expect(kinds(emitted)).toEqual(sixPolls("WAITING:checks-unreported"));
520
+ expect(clock.now()).toBe(60);
521
+ expect(verdict).toMatchObject({
522
+ kind: "READY",
523
+ scope: { pr: { proof: { ci: { kind: "ci-none" } } } },
524
+ });
525
+ });
526
+
527
+ it("stops at the merge gate only once a blocked PR has shown no checks for 60 seconds", async () => {
528
+ const clock = ticking();
529
+ const emitted: ProgressVerdict[] = [];
530
+ const verdict = await run(
531
+ fakeReader({
532
+ ...noChecks,
533
+ facts: { mergeStateStatus: "BLOCKED", reviewDecision: null },
534
+ }),
535
+ clock,
536
+ emitted
537
+ );
538
+ expect(kinds(emitted)).toEqual(sixPolls("WAITING:checks-unreported"));
539
+ expect(clock.now()).toBe(60);
540
+ expect(verdict).toMatchObject({
541
+ kind: "BLOCKER",
542
+ exitCode: 6,
543
+ blocker: { kind: "merge-gate", reason: "merge-blocked" },
544
+ });
545
+ });
546
+
547
+ it("waits through a first sighting and honours checks that register on the next poll", async () => {
548
+ const base = fakeReader({
549
+ ...noChecks,
550
+ facts: { mergeStateStatus: "BLOCKED", reviewDecision: null },
551
+ });
552
+ let polls = 0;
553
+ const reader = {
554
+ ...base,
555
+ async checksFastPath() {
556
+ polls += 1;
557
+ return polls === 1
558
+ ? { kind: "none-reported" as const }
559
+ : { kind: "checks" as const, checks: [pendingCheck("required-ci")] };
560
+ },
561
+ } satisfies GitHubReader;
562
+ let sleeps = 0;
563
+ const emitted: ProgressVerdict[] = [];
564
+ const running = run(
565
+ reader,
566
+ ticking(() => {
567
+ if (++sleeps === 2) throw new Error("stop after two polls");
568
+ }),
569
+ emitted
570
+ );
571
+ await expect(running).rejects.toThrow("stop after two polls");
572
+ expect(kinds(emitted)).toEqual([
573
+ "WAITING:checks-unreported",
574
+ "WAITING:pending-checks",
575
+ ]);
576
+ });
577
+
578
+ it("times out unconfirmed when the deadline is shorter than the interval or than the 60 seconds", async () => {
579
+ for (const [timeout, polls] of [
580
+ [options.interval / 2, 1],
581
+ [30, 3],
582
+ ] as const) {
583
+ const emitted: ProgressVerdict[] = [];
584
+ const verdict = await run(
585
+ fakeReader({ ...noChecks, facts: { reviewDecision: null } }),
586
+ ticking(),
587
+ emitted,
588
+ timeout
589
+ );
590
+ expect(kinds(emitted)).toEqual(
591
+ Array.from({ length: polls }, () => "WAITING:checks-unreported")
592
+ );
593
+ expect(verdict).toMatchObject({
594
+ kind: "TIMEOUT",
595
+ exitCode: 5,
596
+ reason: { kind: "checks-unreported" },
597
+ });
598
+ }
599
+ });
600
+
601
+ it("confirms each PR of a stack on its own sightings", async () => {
602
+ const clock = ticking();
603
+ const emitted: ProgressVerdict[] = [];
604
+ const verdict = await runSimple({
605
+ dependencies: dependencies(
606
+ fakeReader({ ...noChecks, facts: { reviewDecision: null } }),
607
+ clock,
608
+ emitted
609
+ ),
610
+ contexts: [context(30), context(31)],
611
+ mode: "stack",
612
+ statusOnly: false,
613
+ options,
614
+ });
615
+ expect(kinds(emitted)).toEqual([
616
+ ...sixPolls("STATUS", "WAITING:checks-unreported"),
617
+ "STATUS",
618
+ ]);
619
+ expect(clock.now()).toBe(60);
620
+ expect(verdict).toMatchObject({
621
+ kind: "READY",
622
+ scope: {
623
+ kind: "stack",
624
+ prs: [
625
+ { context: context(30), proof: { ci: { kind: "ci-none" } } },
626
+ { context: context(31), proof: { ci: { kind: "ci-none" } } },
627
+ ],
628
+ },
629
+ });
630
+ });
631
+
632
+ it("holds a queued frontier for the 60 seconds before reporting it blocker-free", async () => {
633
+ const emitted: ProgressVerdict[] = [];
634
+ const emittedAt: number[] = [];
635
+ const clock = ticking(() => {
636
+ if (clock.now() > 60) throw new Error("stop after the confirmation");
637
+ });
638
+ const queued = dependencies(
639
+ fakeReader({ ...noChecks, facts: { reviewDecision: null } }),
640
+ clock,
641
+ emitted
642
+ );
643
+ const running = runQueued({
644
+ dependencies: {
645
+ ...queued,
646
+ emit(verdict) {
647
+ emittedAt.push(clock.now());
648
+ queued.emit(verdict);
649
+ },
650
+ },
651
+ contexts: [context(30)],
652
+ options,
653
+ });
654
+ await expect(running).rejects.toThrow("stop after the confirmation");
655
+ expect(kinds(emitted)).toEqual([
656
+ "QUEUE",
657
+ "STATUS",
658
+ "WAITING:checks-unreported",
659
+ "WAITING:merge-queue",
660
+ ]);
661
+ expect(emittedAt).toEqual([0, 0, 0, 60]);
662
+ });
663
+
664
+ it("still stops on conflicts, review threads, and merge gates", async () => {
665
+ const thread = {
666
+ id: "thread",
667
+ firstComment: null,
668
+ isBugbot: false,
669
+ bugbotReviewPasses: 0,
670
+ };
671
+ const cases = [
672
+ [{ facts: { mergeable: "CONFLICTING" } }, { kind: "merge-conflicts" }],
673
+ [{ threads: [thread] }, { kind: "review-threads" }],
674
+ [
675
+ { facts: { reviewDecision: "REVIEW_REQUIRED" } },
676
+ { kind: "merge-gate", reason: "review-required" },
677
+ ],
678
+ [
679
+ { facts: { mergeStateStatus: "BLOCKED" } },
680
+ { kind: "merge-gate", reason: "merge-blocked" },
681
+ ],
682
+ [
683
+ { facts: { isDraft: true } },
684
+ { kind: "merge-gate", reason: "draft-pr" },
685
+ ],
686
+ ] as const;
687
+ for (const [overrides, blocker] of cases)
688
+ expect(classifyPr(await read(overrides))).toMatchObject({
689
+ kind: "blocker",
690
+ blocker,
691
+ });
692
+ });
693
+
694
+ it("fails closed while the head may not have reported yet", async () => {
695
+ const unsettled = [
696
+ {
697
+ commitRollups: [
698
+ { oid: "earlier", state: "SUCCESS" },
699
+ { oid: "head", state: null },
700
+ ],
701
+ },
702
+ { commitRollups: [{ oid: "head", state: "PENDING" }] },
703
+ ] as const;
704
+ for (const overrides of unsettled)
705
+ await expect(read(overrides)).rejects.toMatchObject({
706
+ failure: { kind: "checks-unavailable", retryable: true },
707
+ });
708
+ });
709
+ });
710
+
711
+ describe("check suites that no check read shows", () => {
712
+ const gated = {
713
+ source: "check-suites",
714
+ kind: "failed",
715
+ name: "GitHub Actions check suite",
716
+ reportedState: "ACTION_REQUIRED",
717
+ description:
718
+ "waits for maintainer approval to run; approve the workflows on the pull request",
719
+ link: "",
720
+ workflow: "",
721
+ } as const;
722
+ const noChecks = {
723
+ fastPath: { kind: "none-reported" },
724
+ rollupPages: [{ kind: "no-rollup" }],
725
+ commitRollups: [{ oid: "head", state: null }],
726
+ } as const;
727
+ const read = (options: Parameters<typeof fakeReader>[0]) =>
728
+ readSnapshot({
729
+ reader: fakeReader(options),
730
+ context: context(40),
731
+ pendingHistory: "include",
732
+ allowDraft: false,
733
+ confirmNoChecks: () => true,
734
+ });
735
+
736
+ it("blocks on approval-gated Actions beside another app's passing check", async () => {
737
+ const snapshot = await read({ unsettledSuites: [gated] });
738
+ expect(snapshot).toMatchObject({
739
+ kind: "open",
740
+ ci: { kind: "ci-failing", source: "gh-pr-checks", failed: [gated] },
741
+ });
742
+ expect(classifyPr(snapshot)).toMatchObject({
743
+ kind: "blocker",
744
+ blocker: { kind: "failing-checks" },
745
+ });
746
+ });
747
+
748
+ it("blocks on approval-gated Actions when no check is reported", async () => {
749
+ const snapshot = await read({ ...noChecks, unsettledSuites: [gated] });
750
+ expect(snapshot).toMatchObject({
751
+ kind: "open",
752
+ ci: { kind: "ci-failing", source: "check-suites", failed: [gated] },
753
+ });
754
+ });
755
+
756
+ it("waits on an Actions suite that has not started its runs", async () => {
757
+ const queued = {
758
+ ...gated,
759
+ kind: "pending",
760
+ reportedState: "QUEUED",
761
+ description: "has not finished",
762
+ } as const;
763
+ for (const options of [{}, noChecks])
764
+ expect(
765
+ await read({ ...options, unsettledSuites: [queued] })
766
+ ).toMatchObject({ ci: { kind: "ci-pending", pending: [queued] } });
767
+ });
768
+
769
+ it("keeps clean CI and no CI when the head has no unsettled suite", async () => {
770
+ expect(await read({ unsettledSuites: [] })).toMatchObject({
771
+ ci: { kind: "ci-clean" },
772
+ });
773
+ expect(await read({ ...noChecks, unsettledSuites: [] })).toMatchObject({
774
+ ci: { kind: "ci-none" },
775
+ });
776
+ });
777
+
778
+ it("reads suites while review threads are outstanding and rereads facts after both", async () => {
779
+ const reader = fakeReader();
780
+ const threads = Promise.withResolvers<void>();
781
+ reader.reviewThreadPage = async () => {
782
+ await threads.promise;
783
+ return { threads: [], endCursor: null };
784
+ };
785
+ const snapshot = readSnapshot({
786
+ reader,
787
+ context: context(40),
788
+ pendingHistory: "include",
789
+ allowDraft: false,
790
+ });
791
+ await new Promise<void>((resolve) => setImmediate(resolve));
792
+ const beforeRelease = [...reader.calls];
793
+ threads.resolve();
794
+ await snapshot;
795
+ expect(beforeRelease).toContain("unsettledSuites:head:reported");
796
+ expect(beforeRelease.filter((call) => call === "pullRequest")).toHaveLength(
797
+ 1
798
+ );
799
+ expect(reader.calls.at(-1)).toBe("pullRequest");
800
+ });
801
+
802
+ it("reads the head's suites only when no check has failed or is pending", async () => {
803
+ const suiteReads = async (options: Parameters<typeof fakeReader>[0]) => {
804
+ const reader = fakeReader(options);
805
+ await readSnapshot({
806
+ reader,
807
+ context: context(40),
808
+ pendingHistory: "include",
809
+ allowDraft: false,
810
+ });
811
+ return reader.calls.filter((call) => call.startsWith("unsettledSuites"));
812
+ };
813
+ expect(await suiteReads({})).toEqual(["unsettledSuites:head:reported"]);
814
+ expect(await suiteReads(noChecks)).toEqual([
815
+ "unsettledSuites:head:no-checks",
816
+ ]);
817
+ for (const check of [pendingCheck(), failedCheck()])
818
+ expect(
819
+ await suiteReads({ fastPath: { kind: "checks", checks: [check] } })
820
+ ).toEqual([]);
821
+ });
822
+ });
823
+
824
+ describe("apps named with --expect-app", () => {
825
+ const queuedSuite = (slug: string, name: string) => ({
826
+ head_sha: "head",
827
+ status: "queued",
828
+ conclusion: null,
829
+ app: { slug, name },
830
+ latest_check_runs_count: 0,
831
+ });
832
+ const azure = queuedSuite("azure-pipelines", "Azure Pipelines");
833
+ const noChecks = {
834
+ fastPath: { kind: "none-reported" },
835
+ rollupPages: [{ kind: "no-rollup" }],
836
+ commitRollups: [{ oid: "head", state: null }],
837
+ } as const;
838
+ // The suite read goes through the real parser, so the slugs travel from
839
+ // the polling options to the classification.
840
+ const headWith = (
841
+ reported: Parameters<typeof fakeReader>[0],
842
+ ...suites: unknown[]
843
+ ): GitHubReader => {
844
+ const reader = fakeReader({ ...reported, facts: { reviewDecision: null } });
845
+ reader.unsettledSuites = async (_context, head, checksRead, expectedApps) =>
846
+ unsettledSuiteChecks(
847
+ [{ total_count: suites.length, check_suites: suites }],
848
+ head,
849
+ checksRead,
850
+ expectedApps
851
+ );
852
+ return reader;
853
+ };
854
+ const watch = async (
855
+ reader: GitHubReader,
856
+ expectedApps?: readonly string[]
857
+ ) => {
858
+ const emitted: ProgressVerdict[] = [];
859
+ const verdict = await runSimple({
860
+ dependencies: dependencies(reader, ticking(), emitted, 120),
861
+ contexts: [context(50)],
862
+ mode: "single",
863
+ statusOnly: false,
864
+ options: { ...options, expectedApps },
865
+ });
866
+ return { verdict, emitted: kinds(emitted) };
867
+ };
868
+
869
+ it("waits on a named app's queued suite with no runs, with or without another app's check", async () => {
870
+ for (const reported of [{}, noChecks]) {
871
+ const { verdict, emitted } = await watch(headWith(reported, azure), [
872
+ "azure-pipelines",
873
+ ]);
874
+ expect(new Set(emitted)).toEqual(new Set(["WAITING:pending-checks"]));
875
+ expect(verdict).toMatchObject({
876
+ kind: "TIMEOUT",
877
+ exitCode: 5,
878
+ reason: { kind: "pending-checks" },
879
+ });
880
+ }
881
+ });
882
+
883
+ it("waits on a named app's queued suite in a queued stack too", async () => {
884
+ const waits = async (expectedApps?: readonly string[]) => {
885
+ const emitted: ProgressVerdict[] = [];
886
+ await runQueued({
887
+ dependencies: dependencies(
888
+ headWith({}, azure),
889
+ ticking(),
890
+ emitted,
891
+ 120
892
+ ),
893
+ contexts: [context(50)],
894
+ options: { ...options, expectedApps },
895
+ });
896
+ return kinds(emitted);
897
+ };
898
+ expect(await waits(["azure-pipelines"])).toContain(
899
+ "WAITING:pending-checks"
900
+ );
901
+ expect(await waits()).not.toContain("WAITING:pending-checks");
902
+ });
903
+
904
+ it("names each app whose suite it did not count in the ready proof", async () => {
905
+ const claude = queuedSuite("claude", "Claude");
906
+ for (const [reported, ci] of [
907
+ [{}, "ci-clean"],
908
+ [noChecks, "ci-none"],
909
+ ] as const) {
910
+ expect(
911
+ (await watch(headWith(reported, azure, claude))).verdict
912
+ ).toMatchObject({
913
+ kind: "READY",
914
+ scope: {
915
+ pr: {
916
+ proof: {
917
+ ci: {
918
+ kind: ci,
919
+ queuedWithoutRuns: [
920
+ { name: "Azure Pipelines", slug: "azure-pipelines" },
921
+ { name: "Claude", slug: "claude" },
922
+ ],
923
+ },
924
+ },
925
+ },
926
+ },
927
+ });
928
+ expect(
929
+ (await watch(headWith(reported, claude), ["azure-pipelines"])).verdict
930
+ ).toMatchObject({
931
+ kind: "READY",
932
+ scope: {
933
+ pr: {
934
+ proof: {
935
+ ci: {
936
+ kind: ci,
937
+ queuedWithoutRuns: [{ name: "Claude", slug: "claude" }],
938
+ },
939
+ },
940
+ },
941
+ },
942
+ });
943
+ }
944
+ });
945
+ });