deepmodebot 0.9.1 → 0.11.0

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 (705) hide show
  1. package/.agents/plugins/marketplace.json +20 -0
  2. package/.claude-plugin/marketplace.json +2 -2
  3. package/.omp-plugin/marketplace.json +2 -2
  4. package/README.md +38 -5
  5. package/bin/deepmodebot.mjs +257 -4
  6. package/lib/clients.mjs +50 -3
  7. package/lib/tree.mjs +64 -10
  8. package/native/dmb-gate/Cargo.toml +13 -0
  9. package/native/dmb-gate/src/agents.rs +110 -0
  10. package/native/dmb-gate/src/ci.rs +1032 -0
  11. package/native/dmb-gate/src/cleanup.rs +198 -0
  12. package/native/dmb-gate/src/gap.rs +1376 -0
  13. package/native/dmb-gate/src/guard.rs +135 -0
  14. package/native/dmb-gate/src/main.rs +535 -0
  15. package/native/dmb-gate/src/map.rs +173 -0
  16. package/native/dmb-gate/src/perf.rs +347 -0
  17. package/native/dmb-gate/src/reward.rs +2867 -0
  18. package/native/dmb-gate/src/sim.rs +969 -0
  19. package/native/dmb-gate/src/skill_check.rs +171 -0
  20. package/native/dmb-gate/src/slop.rs +2004 -0
  21. package/native/dmb-gate/src/ui.rs +842 -0
  22. package/native/dmb-gate/src/util.rs +260 -0
  23. package/native/dmb-net/go.mod +3 -0
  24. package/native/dmb-net/main.go +624 -0
  25. package/native/dmb-net/main_test.go +122 -0
  26. package/package.json +12 -2
  27. package/plugins/deepmodebot/.antigravity-plugin/plugin.json +1 -1
  28. package/plugins/deepmodebot/.antigravity-plugin/skills/deep/SKILL.md +5 -5
  29. package/plugins/deepmodebot/.antigravity-plugin/skills/pr-thread/SKILL.md +1 -1
  30. package/plugins/deepmodebot/.antigravity-plugin/skills/review-pr/SKILL.md +2 -2
  31. package/plugins/deepmodebot/.antigravity-plugin/skills/suggest/SKILL.md +13 -0
  32. package/plugins/deepmodebot/.antigravity-plugin/skills/tournament/SKILL.md +2 -2
  33. package/plugins/deepmodebot/.claude-plugin/plugin.json +1 -1
  34. package/plugins/deepmodebot/.codex-plugin/plugin.json +46 -0
  35. package/plugins/deepmodebot/agents/comment-sicko.md +29 -0
  36. package/plugins/deepmodebot/agents/researcher.md +29 -0
  37. package/plugins/deepmodebot/agents/reviewer.md +29 -0
  38. package/plugins/deepmodebot/agents/scout.md +28 -0
  39. package/plugins/deepmodebot/agents/security-reviewer.md +27 -0
  40. package/plugins/deepmodebot/commands/deep.md +7 -6
  41. package/plugins/deepmodebot/commands/research.md +8 -0
  42. package/plugins/deepmodebot/commands/suggest.md +10 -0
  43. package/plugins/deepmodebot/commands/tournament.md +2 -2
  44. package/plugins/deepmodebot/hooks/hooks.json +12 -2
  45. package/plugins/deepmodebot/hooks.json +1 -1
  46. package/plugins/deepmodebot/scripts/antigravity-guard.mjs +862 -26
  47. package/plugins/deepmodebot/scripts/omp-mcp-server.mjs +179 -47
  48. package/plugins/deepmodebot/skills/agent-harnesses/SKILL.md +4 -6
  49. package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/check_antigravity.py +3 -0
  50. package/plugins/deepmodebot/skills/agent-harnesses/references/ai-native-tooling.md +4 -0
  51. package/plugins/deepmodebot/skills/agent-harnesses/references/ai-sdk-selection.md +3 -1
  52. package/plugins/deepmodebot/skills/agent-harnesses/references/antigravity.md +3 -3
  53. package/plugins/deepmodebot/skills/agent-harnesses/references/delegation-efficiency.md +12 -2
  54. package/plugins/deepmodebot/skills/agent-harnesses/references/protocols.md +11 -3
  55. package/plugins/deepmodebot/skills/app-automation-relay/SKILL.md +17 -0
  56. package/plugins/deepmodebot/skills/app-automation-relay/assets/relay_server.ts +364 -0
  57. package/plugins/deepmodebot/skills/app-automation-relay/references/adapter-cookbook.md +15 -0
  58. package/plugins/deepmodebot/skills/app-automation-relay/references/wire-protocol.md +23 -0
  59. package/plugins/deepmodebot/skills/cloud-devsecops/SKILL.md +4 -3
  60. package/plugins/deepmodebot/skills/cloud-devsecops/references/cloudflare-edge.md +43 -0
  61. package/plugins/deepmodebot/skills/cloud-devsecops/references/local-emulators.md +15 -2
  62. package/plugins/deepmodebot/skills/contribute/SKILL.md +3 -35
  63. package/plugins/deepmodebot/skills/create-formal-verification-skill/LICENSE +21 -0
  64. package/plugins/deepmodebot/skills/create-formal-verification-skill/NOTICE.md +16 -0
  65. package/plugins/deepmodebot/skills/create-formal-verification-skill/SKILL.md +71 -0
  66. package/plugins/deepmodebot/skills/create-verification-skill/SKILL.md +2 -2
  67. package/plugins/deepmodebot/skills/deep-learning/LICENSE +21 -0
  68. package/plugins/deepmodebot/skills/deep-learning/SKILL.md +33 -0
  69. package/plugins/deepmodebot/skills/deep-learning/references/neural-architectures.md +43 -0
  70. package/plugins/deepmodebot/skills/deep-learning/references/papers-and-repos.md +128 -0
  71. package/plugins/deepmodebot/skills/deep-learning/references/reinforcement-learning.md +57 -0
  72. package/plugins/deepmodebot/skills/deep-learning/references/training-optimization.md +40 -0
  73. package/plugins/deepmodebot/skills/deep-learning/references/weight-space-programming.md +76 -0
  74. package/plugins/deepmodebot/skills/deep-learning/scripts/hf_passes.py +166 -0
  75. package/plugins/deepmodebot/skills/deep-learning/scripts/wsp.py +493 -0
  76. package/plugins/deepmodebot/skills/deep-stack/SKILL.md +1 -1
  77. package/plugins/deepmodebot/skills/deep-stack/references/design-workflow.md +46 -92
  78. package/plugins/deepmodebot/skills/deep-stack/references/isolate.md +1 -0
  79. package/plugins/deepmodebot/skills/deep-stack/references/prove.md +6 -0
  80. package/plugins/deepmodebot/skills/deep-stack/references/stack.md +11 -1
  81. package/plugins/deepmodebot/skills/deepmodebot/SKILL.md +83 -146
  82. package/plugins/deepmodebot/skills/deepmodebot/assets/agents-md/agents_md.py +67 -24
  83. package/plugins/deepmodebot/skills/deepmodebot/assets/autoroute/autoroute.py +1026 -0
  84. package/plugins/deepmodebot/skills/deepmodebot/assets/cleanup/self_cleanup.py +305 -0
  85. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/claude-guard.sh +4 -0
  86. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/claude_guard.py +736 -6
  87. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/holdout_guard_cases.json +272 -0
  88. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/omp-contain.ts +861 -9
  89. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/design.py +3 -0
  90. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/record.py +2 -0
  91. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/rehearsal_gate.py +536 -0
  92. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/review.py +2 -0
  93. package/plugins/deepmodebot/skills/deepmodebot/assets/f2p-gate/f2p_gate.py +547 -0
  94. package/plugins/deepmodebot/skills/deepmodebot/assets/formal-verification/verify_proof.py +638 -0
  95. package/plugins/deepmodebot/skills/deepmodebot/assets/gap-audit/gap_audit.py +1047 -0
  96. package/plugins/deepmodebot/skills/deepmodebot/assets/gen-ui/gen_ui.py +1782 -0
  97. package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard-patterns.txt +7 -0
  98. package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard.sh +55 -7
  99. package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard.ts +55 -5
  100. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/ghapp.py +2 -0
  101. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/install.py +2 -0
  102. package/plugins/deepmodebot/skills/deepmodebot/assets/local-ci/local_ci.py +796 -0
  103. package/plugins/deepmodebot/skills/deepmodebot/assets/local-ci/slop_gate.py +1049 -0
  104. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/loop.py +748 -46
  105. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/plan.py +2 -1
  106. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/windows_job.py +2 -0
  107. package/plugins/deepmodebot/skills/deepmodebot/assets/memory/project_memory.py +928 -0
  108. package/plugins/deepmodebot/skills/deepmodebot/assets/mutation/mutation_gate.py +798 -0
  109. package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/bench_harness.py +48 -21
  110. package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/perf_audit.py +339 -5
  111. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/diff_coverage.py +96 -6
  112. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/pr_agent_local.py +2 -0
  113. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/arena.py +2 -0
  114. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/show_thread.py +2 -0
  115. package/plugins/deepmodebot/skills/deepmodebot/assets/prompt-tools/prompt_tools.py +1239 -0
  116. package/plugins/deepmodebot/skills/deepmodebot/assets/quota-guard/quota_guard.py +424 -0
  117. package/plugins/deepmodebot/skills/deepmodebot/assets/repo-references.json +477 -1
  118. package/plugins/deepmodebot/skills/deepmodebot/assets/reward-guard/reward_guard.py +3447 -0
  119. package/plugins/deepmodebot/skills/deepmodebot/assets/rules/rule-paths.json +100 -0
  120. package/plugins/deepmodebot/skills/deepmodebot/assets/rules/rule_ledger.py +1671 -0
  121. package/plugins/deepmodebot/skills/deepmodebot/assets/rules/rules_watch.py +436 -0
  122. package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_enrich.py +2 -0
  123. package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_meta.py +2 -0
  124. package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_transcript_relay.js +13 -10
  125. package/plugins/deepmodebot/skills/deepmodebot/assets/security-audit/static_sec_audit.py +275 -0
  126. package/plugins/deepmodebot/skills/deepmodebot/assets/self-grill/self_grill.py +2049 -0
  127. package/plugins/deepmodebot/skills/deepmodebot/assets/setup/model_setup.py +329 -0
  128. package/plugins/deepmodebot/skills/deepmodebot/assets/setup/project_setup.py +348 -0
  129. package/plugins/deepmodebot/skills/deepmodebot/assets/sim/sim.py +856 -0
  130. package/plugins/deepmodebot/skills/deepmodebot/assets/tournament/tournament.py +304 -18
  131. package/plugins/deepmodebot/skills/deepmodebot/assets/worker-gate/worker_gate.py +237 -0
  132. package/plugins/deepmodebot/skills/deepmodebot/assets/workspace-map/workspace_map.py +121 -78
  133. package/plugins/deepmodebot/skills/deepmodebot/references/README.md +14 -0
  134. package/plugins/deepmodebot/skills/deepmodebot/references/catalog.md +17 -11
  135. package/plugins/deepmodebot/skills/deepmodebot/references/contain.md +2 -1
  136. package/plugins/deepmodebot/skills/deepmodebot/references/delegation.md +18 -0
  137. package/plugins/deepmodebot/skills/deepmodebot/references/flows.md +2 -0
  138. package/plugins/deepmodebot/skills/deepmodebot/references/full-scope.md +9 -0
  139. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/authoring-a-skill.md +1 -1
  140. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/babysit.md +2 -0
  141. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/end-to-end.md +12 -9
  142. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/feature.md +7 -3
  143. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/hillclimb.md +3 -0
  144. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/investigation.md +4 -4
  145. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/opening-a-pr.md +1 -1
  146. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/perf-issue.md +13 -10
  147. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/refactoring.md +6 -6
  148. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/reference-rebuild.md +1 -0
  149. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/run-a-goal.md +3 -1
  150. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/self-authoring.md +1 -1
  151. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/setup.md +1 -2
  152. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/visual-parity.md +1 -0
  153. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/work-a-queue.md +4 -2
  154. package/plugins/deepmodebot/skills/deepmodebot/references/principles/hardcore-mode.md +7 -0
  155. package/plugins/deepmodebot/skills/deepmodebot/references/principles/no-reward-hacking.md +8 -0
  156. package/plugins/deepmodebot/skills/deepmodebot/references/principles/test-behavior-not-implementation.md +2 -1
  157. package/plugins/deepmodebot/skills/deepmodebot/references/principles/type-system-discipline.md +2 -2
  158. package/plugins/deepmodebot/skills/deepmodebot/references/rule-approval.md +71 -0
  159. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/architect.md +10 -24
  160. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/architecture-review.md +5 -4
  161. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/arena.md +3 -3
  162. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/autoroute.md +50 -0
  163. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/blast-radius.md +1 -1
  164. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/catchup-video.md +13 -0
  165. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/correct.md +9 -7
  166. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/course.md +2 -1
  167. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/devex-review.md +13 -0
  168. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/expand-contract.md +13 -0
  169. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/formal-verification.md +33 -0
  170. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/gen-ui.md +60 -0
  171. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/grill.md +2 -1
  172. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/how.md +7 -18
  173. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/inner-loop.md +12 -8
  174. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/model-setup.md +14 -0
  175. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/modernize-pr.md +15 -0
  176. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/mutation-testing.md +35 -0
  177. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/no-comments.md +5 -5
  178. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/panel.md +9 -5
  179. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-conversation.md +1 -1
  180. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-review.md +8 -5
  181. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pre-commit.md +1 -2
  182. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/prior-art.md +33 -38
  183. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/product-lens.md +12 -0
  184. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/prompt-upgrade.md +30 -0
  185. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/recall.md +1 -1
  186. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/reframe.md +18 -0
  187. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/release-and-canary.md +10 -0
  188. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/research.md +62 -89
  189. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/security-audit.md +5 -1
  190. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/self-grill.md +54 -0
  191. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/sharpen.md +3 -3
  192. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/show-me-your-work.md +7 -0
  193. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/sim.md +41 -0
  194. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/sme-review.md +3 -2
  195. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/suggest.md +24 -0
  196. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/swarm.md +7 -0
  197. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tdd.md +12 -0
  198. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/teach.md +2 -2
  199. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tournament.md +30 -18
  200. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/variant-analysis.md +11 -0
  201. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/video-forensics.md +46 -0
  202. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/visual-e2e.md +10 -1
  203. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/webhook-ui.md +11 -0
  204. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/writing-for-agents.md +6 -0
  205. package/plugins/deepmodebot/skills/deepmodebot/scripts/check_skill.py +7 -0
  206. package/plugins/deepmodebot/skills/deepmodebot/scripts/trending.py +141 -18
  207. package/plugins/deepmodebot/skills/deepmodebot/worker.md +28 -0
  208. package/plugins/deepmodebot/skills/domain-rules/SKILL.md +13 -119
  209. package/plugins/deepmodebot/skills/domain-rules/references/backend-system-design.md +19 -1
  210. package/plugins/deepmodebot/skills/domain-rules/references/engineering-practice.md +7 -0
  211. package/plugins/deepmodebot/skills/domain-rules/references/language-ecosystems.md +11 -0
  212. package/plugins/deepmodebot/skills/domain-rules/references/sources.md +108 -0
  213. package/plugins/deepmodebot/skills/frontend-ui/SKILL.md +30 -131
  214. package/plugins/deepmodebot/skills/frontend-ui/assets/themes/canvas.css +42 -0
  215. package/plugins/deepmodebot/skills/frontend-ui/assets/themes/editorial.css +39 -0
  216. package/plugins/deepmodebot/skills/frontend-ui/assets/themes/layouts.css +95 -0
  217. package/plugins/deepmodebot/skills/frontend-ui/assets/themes/swiss.css +40 -0
  218. package/plugins/deepmodebot/skills/frontend-ui/assets/themes/tactile.css +41 -0
  219. package/plugins/deepmodebot/skills/frontend-ui/assets/themes/workbench.css +50 -0
  220. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/mobbin-animations.md +49 -0
  221. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/mobbin-shipped-apps.md +46 -24
  222. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/motion-clips.md +27 -258
  223. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/motion-graphics.md +26 -51
  224. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/pinterest-animations.md +22 -195
  225. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/00-art-direction.md +39 -0
  226. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/01-workflow.md +27 -24
  227. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/02-review-rubric.md +23 -17
  228. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/03-ai-tells.md +22 -45
  229. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/04-components.md +11 -0
  230. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/04a-agent-ui.md +32 -152
  231. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/05-motion.md +36 -91
  232. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/05a-motion-graphics.md +14 -120
  233. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06-typography-layout.md +11 -10
  234. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06a-color.md +9 -9
  235. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06b-media-icons-charts.md +19 -0
  236. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06c-product-shots-craft.md +42 -0
  237. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/07-copy.md +5 -6
  238. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/08-quality-floor.md +28 -56
  239. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/09-steering-agents.md +9 -7
  240. package/plugins/deepmodebot/skills/frontend-ui/scripts/motion_diff.py +259 -0
  241. package/plugins/deepmodebot/skills/frontend-ui/scripts/ui_audit.py +496 -0
  242. package/plugins/deepmodebot/skills/maintain-formal-verification-skill/LICENSE +21 -0
  243. package/plugins/deepmodebot/skills/maintain-formal-verification-skill/NOTICE.md +16 -0
  244. package/plugins/deepmodebot/skills/maintain-formal-verification-skill/SKILL.md +68 -0
  245. package/plugins/deepmodebot/skills/maintain-verification-skill/SKILL.md +1 -1
  246. package/plugins/deepmodebot/skills/office-documents/SKILL.md +24 -0
  247. package/plugins/deepmodebot/skills/office-documents/references/documents-docx-pdf.md +15 -0
  248. package/plugins/deepmodebot/skills/office-documents/references/presentations-pptx.md +15 -0
  249. package/plugins/deepmodebot/skills/office-documents/references/spreadsheets-xlsx.md +15 -0
  250. package/plugins/deepmodebot/skills/office-documents/scripts/doc_audit.py +230 -0
  251. package/plugins/deepmodebot/skills/project-brief/SKILL.md +2 -19
  252. package/plugins/deepmodebot/skills/project-brief/assets/pr-overlap.py +4 -0
  253. package/plugins/deepmodebot/skills/project-brief/assets/sync-roadmap.py +4 -0
  254. package/plugins/deepmodebot/skills/project-brief/references/claim-contract.md +55 -0
  255. package/plugins/deepmodebot/skills/research/SKILL.md +18 -0
  256. package/plugins/deepmodebot/skills/secrets-and-auth/SKILL.md +1 -1
  257. package/plugins/deepmodebot/skills/seo-and-geo/SKILL.md +29 -0
  258. package/plugins/deepmodebot/skills/seo-and-geo/references/geo-and-agentic-web.md +30 -0
  259. package/plugins/deepmodebot/skills/seo-and-geo/references/technical-and-schema.md +25 -0
  260. package/plugins/deepmodebot/skills/seo-and-geo/scripts/seo_audit.py +282 -0
  261. package/plugins/deepmodebot/skills/software-architecture/SKILL.md +2 -2
  262. package/plugins/deepmodebot/skills/software-architecture/references/backend-infrastructure.md +5 -0
  263. package/plugins/deepmodebot/skills/software-architecture/references/monorepos.md +1 -0
  264. package/plugins/deepmodebot/skills/statechart/LICENSE +21 -0
  265. package/plugins/deepmodebot/skills/statechart/NOTICE.md +21 -0
  266. package/plugins/deepmodebot/skills/statechart/SKILL.md +106 -0
  267. package/plugins/deepmodebot/skills/statechart/references/render.md +93 -0
  268. package/plugins/deepmodebot/skills/statechart/references/tooling.md +78 -0
  269. package/plugins/deepmodebot/skills/statechart/scripts/backends/cfg.ts +33 -0
  270. package/plugins/deepmodebot/skills/statechart/scripts/backends/mermaid.ts +249 -0
  271. package/plugins/deepmodebot/skills/statechart/scripts/backends/plain-text.ts +72 -0
  272. package/plugins/deepmodebot/skills/statechart/scripts/backends/report.ts +177 -0
  273. package/plugins/deepmodebot/skills/statechart/scripts/frontends/config.ts +276 -0
  274. package/plugins/deepmodebot/skills/statechart/scripts/frontends/dot.ts +77 -0
  275. package/plugins/deepmodebot/skills/statechart/scripts/frontends/marks.ts +93 -0
  276. package/plugins/deepmodebot/skills/statechart/scripts/frontends/messages.ts +52 -0
  277. package/plugins/deepmodebot/skills/statechart/scripts/frontends/spec.ts +114 -0
  278. package/plugins/deepmodebot/skills/statechart/scripts/frontends/trace.ts +24 -0
  279. package/plugins/deepmodebot/skills/statechart/scripts/frontends/value.ts +166 -0
  280. package/plugins/deepmodebot/skills/statechart/scripts/frontends/verdict.ts +40 -0
  281. package/plugins/deepmodebot/skills/statechart/scripts/frontends/view.ts +119 -0
  282. package/plugins/deepmodebot/skills/statechart/scripts/ir.ts +547 -0
  283. package/plugins/deepmodebot/skills/statechart/scripts/janitor.ts +13 -0
  284. package/plugins/deepmodebot/skills/statechart/scripts/kill.ts +15 -0
  285. package/plugins/deepmodebot/skills/statechart/scripts/package.json +11 -0
  286. package/plugins/deepmodebot/skills/statechart/scripts/passes/annotate.ts +128 -0
  287. package/plugins/deepmodebot/skills/statechart/scripts/passes/label.ts +269 -0
  288. package/plugins/deepmodebot/skills/statechart/scripts/passes/lift.ts +85 -0
  289. package/plugins/deepmodebot/skills/statechart/scripts/passes/loop-check.ts +68 -0
  290. package/plugins/deepmodebot/skills/statechart/scripts/passes/paths.ts +60 -0
  291. package/plugins/deepmodebot/skills/statechart/scripts/passes/reach.ts +135 -0
  292. package/plugins/deepmodebot/skills/statechart/scripts/passes/region-check.ts +97 -0
  293. package/plugins/deepmodebot/skills/statechart/scripts/passes/regions.ts +295 -0
  294. package/plugins/deepmodebot/skills/statechart/scripts/pipeline.ts +76 -0
  295. package/plugins/deepmodebot/skills/statechart/scripts/run.ts +500 -0
  296. package/plugins/deepmodebot/skills/statechart/scripts/statechart +29 -0
  297. package/plugins/deepmodebot/skills/statechart/scripts/statechart.ts +165 -0
  298. package/plugins/deepmodebot/skills/statechart/scripts/test/ConfigOracle.java +63 -0
  299. package/plugins/deepmodebot/skills/statechart/scripts/test/chart.test.ts +1253 -0
  300. package/plugins/deepmodebot/skills/statechart/scripts/test/charts/Braces.mmd +7 -0
  301. package/plugins/deepmodebot/skills/statechart/scripts/test/charts/Escapes.mmd +11 -0
  302. package/plugins/deepmodebot/skills/statechart/scripts/test/charts/Phases.mmd +29 -0
  303. package/plugins/deepmodebot/skills/statechart/scripts/test/cli.test.ts +1344 -0
  304. package/plugins/deepmodebot/skills/statechart/scripts/test/config-fuzz.test.ts +263 -0
  305. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/ChartRun.out +57 -0
  306. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/Counter.cfg +3 -0
  307. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/Counter.tla +10 -0
  308. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/chart.mmd +9 -0
  309. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/graph.dot +16 -0
  310. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/report.md +7 -0
  311. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/sany.out +2 -0
  312. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/verdict-1.out +49 -0
  313. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/ChartRun.out +60 -0
  314. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/CounterAction.cfg +4 -0
  315. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/CounterAction.tla +22 -0
  316. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/chart.mmd +26 -0
  317. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/graph.dot +19 -0
  318. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/report.md +20 -0
  319. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/sany.out +2 -0
  320. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/verdict-1.exit +1 -0
  321. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/verdict-1.out +56 -0
  322. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/verdict-2.exit +1 -0
  323. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/verdict-2.out +82 -0
  324. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/verdict-3.out +57 -0
  325. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/ChartRun.out +59 -0
  326. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.cfg +3 -0
  327. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.tla +11 -0
  328. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/chart.mmd +22 -0
  329. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/graph.dot +16 -0
  330. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/report.md +17 -0
  331. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/sany.out +2 -0
  332. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.exit +1 -0
  333. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.out +56 -0
  334. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.exit +1 -0
  335. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.out +77 -0
  336. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/ChartRun.out +69 -0
  337. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/CounterFan.cfg +2 -0
  338. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/CounterFan.tla +11 -0
  339. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/chart.mmd +85 -0
  340. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/graph.dot +70 -0
  341. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/report.md +12 -0
  342. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/sany.out +2 -0
  343. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/verdict-1.exit +1 -0
  344. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/verdict-1.out +67 -0
  345. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/verdict-2.out +57 -0
  346. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/ChartRun.exit +1 -0
  347. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/ChartRun.out +85 -0
  348. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/CounterGuard.cfg +6 -0
  349. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/CounterGuard.tla +13 -0
  350. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/chart.mmd +5 -0
  351. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/graph.dot +10 -0
  352. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/report.md +31 -0
  353. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/sany.out +2 -0
  354. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/verdict-1.exit +1 -0
  355. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/verdict-1.out +64 -0
  356. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/verdict-2.exit +1 -0
  357. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/verdict-2.out +77 -0
  358. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/ChartRun.out +55 -0
  359. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.cfg +3 -0
  360. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.tla +10 -0
  361. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/chart.mmd +12 -0
  362. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/graph.dot +6 -0
  363. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/report.md +12 -0
  364. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/sany.out +2 -0
  365. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-1.exit +1 -0
  366. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-1.out +33 -0
  367. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-2.out +54 -0
  368. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/ChartRun.out +54 -0
  369. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.cfg +3 -0
  370. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.tla +10 -0
  371. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/chart.mmd +1 -0
  372. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/graph.dot +6 -0
  373. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/report.md +7 -0
  374. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/sany.out +2 -0
  375. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/verdict-1.out +46 -0
  376. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/ChartRun.out +59 -0
  377. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/CounterInstance.cfg +2 -0
  378. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/CounterInstance.tla +10 -0
  379. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/CounterSteps.tla +6 -0
  380. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/chart.mmd +17 -0
  381. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/graph.dot +15 -0
  382. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/report.md +14 -0
  383. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/sany.out +3 -0
  384. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/verdict-1.exit +1 -0
  385. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/verdict-1.out +78 -0
  386. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/ChartRun.out +59 -0
  387. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/CounterJump.cfg +3 -0
  388. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/CounterJump.tla +19 -0
  389. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/chart.mmd +26 -0
  390. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/graph.dot +22 -0
  391. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/report.md +12 -0
  392. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/sany.out +2 -0
  393. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/verdict-1.exit +1 -0
  394. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/verdict-1.out +58 -0
  395. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/verdict-2.out +57 -0
  396. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/ChartRun.out +57 -0
  397. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/CounterLoop.cfg +2 -0
  398. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/CounterLoop.tla +11 -0
  399. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/chart.mmd +17 -0
  400. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/graph.dot +15 -0
  401. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/report.md +14 -0
  402. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/sany.out +2 -0
  403. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/verdict-1.exit +1 -0
  404. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/verdict-1.out +76 -0
  405. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/ChartRun.out +59 -0
  406. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/CounterOrder.cfg +3 -0
  407. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/CounterOrder.tla +11 -0
  408. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/chart.mmd +19 -0
  409. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/graph.dot +10 -0
  410. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/report.md +15 -0
  411. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/sany.out +2 -0
  412. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/verdict-1.exit +1 -0
  413. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/verdict-1.out +56 -0
  414. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/verdict-2.exit +1 -0
  415. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/verdict-2.out +67 -0
  416. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/ChartRun.out +62 -0
  417. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/CounterRules.cfg +6 -0
  418. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/CounterRules.tla +24 -0
  419. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/Moves.tla +5 -0
  420. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/chart.mmd +22 -0
  421. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/graph.dot +10 -0
  422. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/report.md +23 -0
  423. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/sany.out +3 -0
  424. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-1.exit +1 -0
  425. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-1.out +58 -0
  426. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-2.exit +1 -0
  427. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-2.out +66 -0
  428. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-3.exit +1 -0
  429. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-3.out +74 -0
  430. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-4.out +59 -0
  431. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/ChartRun.out +58 -0
  432. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/CounterStart.cfg +3 -0
  433. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/CounterStart.tla +15 -0
  434. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/chart.mmd +18 -0
  435. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/graph.dot +13 -0
  436. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/report.md +11 -0
  437. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/sany.out +2 -0
  438. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/verdict-1.exit +1 -0
  439. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/verdict-1.out +33 -0
  440. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/verdict-2.out +57 -0
  441. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/ChartRun.out +57 -0
  442. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/CounterStop.cfg +3 -0
  443. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/CounterStop.tla +15 -0
  444. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/chart.mmd +7 -0
  445. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/graph.dot +13 -0
  446. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/report.md +6 -0
  447. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/sany.out +2 -0
  448. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/verdict-1.out +49 -0
  449. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/ChartRun.out +61 -0
  450. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/CounterTie.cfg +4 -0
  451. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/CounterTie.tla +14 -0
  452. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/chart.mmd +30 -0
  453. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/graph.dot +19 -0
  454. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/report.md +27 -0
  455. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/sany.out +2 -0
  456. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-1.exit +1 -0
  457. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-1.out +56 -0
  458. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-2.exit +1 -0
  459. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-2.out +64 -0
  460. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-3.exit +1 -0
  461. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-3.out +87 -0
  462. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-4.out +57 -0
  463. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/ChartRun.out +60 -0
  464. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.cfg +3 -0
  465. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.tla +12 -0
  466. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/chart.mmd +23 -0
  467. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/graph.dot +19 -0
  468. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/report.md +11 -0
  469. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/sany.out +2 -0
  470. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.exit +1 -0
  471. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.out +56 -0
  472. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-2.out +57 -0
  473. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/ChartRun.out +61 -0
  474. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/CounterView.cfg +4 -0
  475. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/CounterView.tla +14 -0
  476. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/chart.mmd +23 -0
  477. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/graph.dot +19 -0
  478. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/report.md +27 -0
  479. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/sany.out +2 -0
  480. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-1.exit +1 -0
  481. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-1.out +56 -0
  482. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-2.exit +1 -0
  483. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-2.out +64 -0
  484. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-3.exit +1 -0
  485. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-3.out +87 -0
  486. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-4.out +57 -0
  487. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/view.mjs +1 -0
  488. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/ChartRun.out +59 -0
  489. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/DieHard.cfg +4 -0
  490. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/DieHard.tla +38 -0
  491. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/chart.mmd +92 -0
  492. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/graph.dot +126 -0
  493. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/report.md +17 -0
  494. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/sany.out +2 -0
  495. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/verdict-1.exit +1 -0
  496. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/verdict-1.out +91 -0
  497. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/verdict-2.out +57 -0
  498. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/ChartRun.out +61 -0
  499. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/FirstRule.cfg +6 -0
  500. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/FirstRule.tla +11 -0
  501. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/chart.mmd +22 -0
  502. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/graph.dot +16 -0
  503. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/report.md +25 -0
  504. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/sany.out +2 -0
  505. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-1.exit +1 -0
  506. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-1.out +56 -0
  507. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-2.exit +1 -0
  508. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-2.out +64 -0
  509. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-3.exit +1 -0
  510. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-3.out +64 -0
  511. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-4.exit +1 -0
  512. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-4.out +77 -0
  513. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/ChartRun.out +57 -0
  514. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/HiddenClock.cfg +4 -0
  515. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/HiddenClock.tla +11 -0
  516. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/chart.mmd +13 -0
  517. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/graph.dot +12 -0
  518. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/report.md +11 -0
  519. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/sany.out +2 -0
  520. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/verdict-1.exit +1 -0
  521. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/verdict-1.out +72 -0
  522. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/ChartRun.out +57 -0
  523. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/Login.cfg +3 -0
  524. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/Login.tla +62 -0
  525. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/chart.mmd +28 -0
  526. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/graph.dot +40 -0
  527. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/report.md +7 -0
  528. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/sany.out +1 -0
  529. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/verdict-1.out +47 -0
  530. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/view.mjs +1 -0
  531. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/ChartRun.out +57 -0
  532. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.cfg +2 -0
  533. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.tla +64 -0
  534. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/chart.mmd +28 -0
  535. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/graph.dot +37 -0
  536. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/report.md +8 -0
  537. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/sany.out +1 -0
  538. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/verdict-1.out +47 -0
  539. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/view.mjs +1 -0
  540. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/ChartRun.out +60 -0
  541. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/LoginParallel.cfg +3 -0
  542. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/LoginParallel.tla +64 -0
  543. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/chart.mmd +44 -0
  544. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/graph.dot +58 -0
  545. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/report.md +17 -0
  546. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/sany.out +1 -0
  547. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/verdict-1.exit +1 -0
  548. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/verdict-1.out +83 -0
  549. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/verdict-2.out +57 -0
  550. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/view.mjs +1 -0
  551. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/ChartRun.out +60 -0
  552. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.cfg +3 -0
  553. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.tla +103 -0
  554. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/chart.mmd +43 -0
  555. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/graph.dot +93 -0
  556. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/report.md +14 -0
  557. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/sany.out +1 -0
  558. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-1.exit +1 -0
  559. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-1.out +59 -0
  560. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-2.out +72 -0
  561. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/view.mjs +3 -0
  562. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/ChartRun.out +57 -0
  563. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.cfg +2 -0
  564. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.tla +100 -0
  565. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/chart.mmd +31 -0
  566. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/graph.dot +85 -0
  567. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/report.md +9 -0
  568. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/sany.out +1 -0
  569. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/verdict-1.out +47 -0
  570. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/view.mjs +3 -0
  571. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/ChartRun.out +59 -0
  572. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayer.tla +103 -0
  573. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.cfg +3 -0
  574. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.tla +6 -0
  575. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/chart.mmd +42 -0
  576. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/graph.dot +93 -0
  577. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/report.md +19 -0
  578. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/sany.out +2 -0
  579. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.exit +1 -0
  580. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.out +61 -0
  581. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-2.out +59 -0
  582. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-3.out +61 -0
  583. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.exit +1 -0
  584. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.out +66 -0
  585. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.exit +1 -0
  586. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.out +58 -0
  587. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-6.out +49 -0
  588. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/view.mjs +3 -0
  589. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/ChartRun.out +57 -0
  590. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/PickWorker.cfg +6 -0
  591. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/PickWorker.tla +11 -0
  592. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/chart.mmd +5 -0
  593. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/graph.dot +11 -0
  594. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/report.md +7 -0
  595. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/sany.out +5 -0
  596. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/verdict-1.out +70 -0
  597. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/ChartRun.out +61 -0
  598. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/Shadow.cfg +4 -0
  599. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/Shadow.tla +11 -0
  600. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/ShadowLib.tla +6 -0
  601. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/ShadowSub.tla +3 -0
  602. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/chart.mmd +9 -0
  603. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/graph.dot +16 -0
  604. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/report.md +8 -0
  605. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/sany.out +4 -0
  606. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/verdict-1.out +65 -0
  607. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/ChartRun.out +59 -0
  608. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/SpacedNames.cfg +2 -0
  609. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/SpacedNames.tla +9 -0
  610. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/chart.mmd +23 -0
  611. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/graph.dot +17 -0
  612. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/report.md +15 -0
  613. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/sany.out +1 -0
  614. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/verdict-1.exit +1 -0
  615. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/verdict-1.out +65 -0
  616. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/verdict-2.exit +1 -0
  617. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/verdict-2.out +75 -0
  618. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/ChartRun.out +69 -0
  619. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/TwoPhase.cfg +3 -0
  620. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/TwoPhase.tla +75 -0
  621. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/chart.mmd +60 -0
  622. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/graph.dot +297 -0
  623. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/report.md +20 -0
  624. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/sany.out +1 -0
  625. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/verdict-1.exit +1 -0
  626. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/verdict-1.out +95 -0
  627. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/verdict-2.out +57 -0
  628. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/view.mjs +1 -0
  629. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/ChartRun.out +57 -0
  630. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.cfg +3 -0
  631. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.tla +75 -0
  632. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/chart.mmd +37 -0
  633. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/graph.dot +223 -0
  634. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/report.md +11 -0
  635. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/sany.out +1 -0
  636. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/verdict-1.out +47 -0
  637. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/view.mjs +1 -0
  638. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/ChartRun.exit +1 -0
  639. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/ChartRun.out +75 -0
  640. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/TypeGuard.cfg +5 -0
  641. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/TypeGuard.tla +11 -0
  642. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/chart.mmd +18 -0
  643. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/graph.dot +14 -0
  644. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/report.md +29 -0
  645. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/sany.out +2 -0
  646. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/verdict-1.exit +1 -0
  647. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/verdict-1.out +64 -0
  648. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/verdict-2.exit +1 -0
  649. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/verdict-2.out +75 -0
  650. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/ChartRun.out +58 -0
  651. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.cfg +2 -0
  652. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.tla +8 -0
  653. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/chart.mmd +22 -0
  654. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/graph.dot +16 -0
  655. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/report.md +15 -0
  656. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/sany.out +2 -0
  657. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.exit +1 -0
  658. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.out +56 -0
  659. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.exit +1 -0
  660. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.out +77 -0
  661. package/plugins/deepmodebot/skills/statechart/scripts/test/corpus.test.ts +441 -0
  662. package/plugins/deepmodebot/skills/statechart/scripts/test/differential.test.ts +565 -0
  663. package/plugins/deepmodebot/skills/statechart/scripts/test/drawn.ts +20 -0
  664. package/plugins/deepmodebot/skills/statechart/scripts/test/grid/Grid.cfg +2 -0
  665. package/plugins/deepmodebot/skills/statechart/scripts/test/grid/Grid.tla +9 -0
  666. package/plugins/deepmodebot/skills/statechart/scripts/test/grid/sany.out +2 -0
  667. package/plugins/deepmodebot/skills/statechart/scripts/test/java.ts +63 -0
  668. package/plugins/deepmodebot/skills/statechart/scripts/test/labels.ts +648 -0
  669. package/plugins/deepmodebot/skills/statechart/scripts/test/messages.test.ts +226 -0
  670. package/plugins/deepmodebot/skills/statechart/scripts/test/pipeline.test.ts +270 -0
  671. package/plugins/deepmodebot/skills/statechart/scripts/test/plain-tlc.test.ts +255 -0
  672. package/plugins/deepmodebot/skills/statechart/scripts/test/render.test.ts +145 -0
  673. package/plugins/deepmodebot/skills/statechart/scripts/test/tlc-out.test.ts +90 -0
  674. package/plugins/deepmodebot/skills/statechart/scripts/test/tlc.ts +158 -0
  675. package/plugins/deepmodebot/skills/statechart/scripts/tsconfig.json +11 -0
  676. package/plugins/deepmodebot/skills/statechart/scripts/worker.ts +35 -0
  677. package/plugins/deepmodebot/agents/reviewer/agent.md +0 -33
  678. package/plugins/deepmodebot/agents/scout/agent.md +0 -34
  679. package/plugins/deepmodebot/agents/security-reviewer/agent.md +0 -30
  680. package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/bun.lock +0 -391
  681. package/plugins/deepmodebot/skills/deepmodebot/assets/agents-md/test_agents_md.py +0 -146
  682. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_antigravity_guard.py +0 -483
  683. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_audit_regressions.py +0 -139
  684. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_contain.py +0 -301
  685. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_omp_mcp.py +0 -602
  686. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_design.py +0 -69
  687. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_evidence.py +0 -160
  688. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_record.py +0 -180
  689. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_review.py +0 -265
  690. package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/test_git_guard.py +0 -192
  691. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_bot.py +0 -2182
  692. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_brand.py +0 -19
  693. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_local_updates.py +0 -691
  694. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_review_context.py +0 -127
  695. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_workspace_cleanup.py +0 -496
  696. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_loop.py +0 -1426
  697. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_plan.py +0 -320
  698. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_windows_job.py +0 -326
  699. package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/test_bench_harness.py +0 -55
  700. package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/test_perf_audit.py +0 -53
  701. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/test_diff_coverage.py +0 -94
  702. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/test_arena.py +0 -610
  703. package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/test_yt_enrich.py +0 -250
  704. package/plugins/deepmodebot/skills/deepmodebot/assets/tournament/test_tournament.py +0 -654
  705. package/plugins/deepmodebot/skills/deepmodebot/assets/workspace-map/test_workspace_map.py +0 -879
@@ -0,0 +1,71 @@
1
+ # Rule approval: owner-approved agent rules
2
+
3
+ Mechanics behind the `SKILL.md` rule approval rule. Code: `assets/rules/rule_ledger.py`, notices in `assets/rules/rules_watch.py`. Tracked paths: `assets/rules/rule-paths.json`.
4
+
5
+ ## What counts as a rule
6
+
7
+ - Files coding agents load as instructions or permissions, at any depth: `AGENTS.md` (plus `.override`/`.local`), `AGENT.md`, `CLAUDE.md`, `CLAUDE.local.md`, `GEMINI.md`, `.cursorrules`, `.windsurfrules`, `.clinerules`, `.roorules`, `.rules`.
8
+ - Everything under rule, skill, agent and command folders: `.claude/{rules,skills,agents,commands}`, `.omp/{rules,skills,agents,commands}`, `.agents/{rules,skills,workflows}`, `.cursor/rules`, `.windsurf/rules`, `.devin/{rules,skills}`, `.roo/rules`, `.kiro/steering`, `.continue/rules`, `.amazonq/rules`, `.github/instructions`, `.codex/{rules,agents}`.
9
+ - Settings that grant agents permissions or pick their rule files: `.claude/settings.json`, `.claude/settings.local.json`, `.codex/config.toml`, `.gemini/settings.json`, `.github/copilot-instructions.md`, `.omp/RULES.md`, `.omp/SYSTEM.md`, `.deepmodebot.json`, `.deepmodebot/policy.xml`.
10
+ - `convention` records in the project memory (`.scratch/deepmode-memory.db`).
11
+ - Gitignored rule files (`CLAUDE.local.md`, `.claude/settings.local.json`) are personal: the hooks block agent writes to them, but the ledger never stores them, so their text never lands in git. Paths under `.git`, `node_modules`, `.scratch` or `.worktrees` never count, so drafts in `.scratch/` are free.
12
+ - A rule path may be a symlink only to another rule path (`CLAUDE.md -> AGENTS.md`). A link to anything else is refused at `init` and fails the gate, because its target could change unseen.
13
+
14
+ ## Owner workflow
15
+
16
+ 1. `deepmodebot rules init` lists every rule present and asks you (y/N) to approve them as the baseline. Commit `.deepmodebot/rules/` so clones and CI enforce it.
17
+ 2. `deepmodebot rules status` shows each rule as approved, changed, new or removed, plus waiting proposals. `review` prints every pending change with its id and diff. `log` prints the decision history. Agent text is shown with control characters escaped.
18
+ 3. `deepmodebot rules approve <id>...` or `reject <id>...` (`--all` for everything) shows the changes and asks y/N. Rejecting puts the approved text back, deletes an unapproved new rule file or memory convention, or restores a deleted rule. Commit `.deepmodebot/rules/` with the rule files.
19
+
20
+ There is no passphrase. `init`, `approve` and `reject` answer only in an interactive terminal (a piped `y` is refused), and the hooks block agents from running them or writing the ledger.
21
+
22
+ ## User-level rules
23
+
24
+ Agents also load rules from your home folder in every project: omp's `~/.omp/agent/` (`AGENTS.md`, `RULES.md`, `SYSTEM.md`, `config.yml`, `mcp.json`, and the `hooks`, `rules`, `skills`, `commands`, `agents`, `extensions` folders), Claude Code's `~/.claude/` (`CLAUDE.md`, `settings*.json`, `hooks`, `rules`, `skills`, `agents`, `commands`), Codex's `~/.codex/` (`AGENTS.md`, `config.toml`, `hooks.json`, `rules`, `agents`, `prompts`), Gemini and Antigravity's `~/.gemini/` and `~/.agents/` (the `user` list in `rule-paths.json`). An agent that edits one changes every later session, as an agent-installed git guard once did.
25
+
26
+ - `deepmodebot rules init --user` turns approval on for them, with a ledger in `~/.deepmodebot/rules/`. Nothing is approved at first: every current file waits in `deepmodebot rules review --user` until you approve or reject it. `--accept-current` approves them all as they are instead.
27
+ - `status`, `review`, `log`, `approve`, `reject` and `propose` take `--user` too. Decisions are recorded at once; there is no commit and no gate, so this ledger rests on the hooks.
28
+ - Files over 1 MB (skill images) are approved by hash only, with no copy kept, so a reject cannot restore them.
29
+
30
+ ## Agent workflow
31
+
32
+ - Never edit a rule file in a repo with `.deepmodebot/rules/ledger.json`. Draft the full new file under `.scratch/`, then run `python -B <skill>/assets/rules/rule_ledger.py propose --item AGENTS.md --file .scratch/AGENTS.draft.md --reason "<why>" --by <harness>`. The rule file stays unchanged until the owner approves.
33
+ - Tell the owner the proposal id and to run `deepmodebot rules review`. Never run `init`, `approve` or `reject`, and never skip git hooks.
34
+ - The same holds for user-level rules once `~/.deepmodebot/rules/ledger.json` exists: propose with `rule_ledger.py propose --user --item .claude/settings.json ...`.
35
+ - Memory conventions you record stay hidden from `project_memory.py recall` until approved; recall reports how many with `unapproved-conventions-hidden`.
36
+ - `deepmodebot init` (`assets/setup/project_setup.py`) follows the same path: it proposes `.deepmodebot/policy.xml` and its managed-block refresh for `AGENTS.md` and `CLAUDE.md` instead of writing them.
37
+
38
+ ## Enforcement layers
39
+
40
+ | Layer | What it stops |
41
+ |---|---|
42
+ | Hooks: Claude Code `hooks/hooks.json`, omp `assets/contain/omp-contain.ts`, Antigravity `scripts/antigravity-guard.mjs` | In every session of a ledger repo, active or not, and for user-level rules once `rules init --user` ran: file-tool writes to rule files and the ledger (also through symlinked folders or aliases); shell commands that write, move or delete them (redirects, `tee`, `sed -i`, `cp`/`mv`/`rm`/`ln`, globs, `cd` chains, `find -delete`, `curl -o`, `bash -c`, inline interpreter code, heredocs); writers fed by `xargs` or `$(...)`; `git commit --no-verify`/`-n` and `core.hooksPath` changes. Owner-only commands are blocked in any repo. Each block notifies the owner. |
43
+ | Gate: `rule_ledger.py check` inside `slop_gate.py`, the `project_setup.py --install-hooks` pre-commit hook, and `deepmodebot gate rules` | P1 per unapproved change and per symlinked rule whose target is not a rule path. P0 for a malformed ledger, a ledger rolled back to an older version, approvals edited into the ledger with no recorded decision, a deleted ledger, a symlinked store, or a missing approved copy. The ledger must extend the committed one at HEAD and at the merge-base with `origin`'s default branch, so a bad ledger committed with hooks skipped still fails against the default branch. `--staged` checks the commit; CI passes `--base origin/main`, which must resolve. |
44
+ | Memory recall | Unapproved conventions never reach the agent. |
45
+
46
+ ## Notices
47
+
48
+ `rules_watch.py` tells you about rule changes you have not approved: in the user ledger, in every repo you ran `rules init` in (listed in `~/.deepmodebot/rules/repos.json`), and in the session's own repo.
49
+
50
+ | Channel | When |
51
+ |---|---|
52
+ | Desktop notification (Windows toast, macOS, `notify-send`) | The hourly `deepmodebot update` task, when the set of pending changes differs from the last notification or a day has passed; and at once when a hook blocks an agent's rule write. |
53
+ | Orca | The hourly task puts the notice in the Orca workspace comment of the affected repo (the latest active workspace for user rules) and marks it unread; the comment clears when nothing is pending. |
54
+ | Session start | Claude Code `SessionStart` (a `systemMessage` plus agent context), omp `session_start` (warning and status line), Antigravity's first PreInvocation of a conversation (an injected step). Until `rules init --user` runs, it says the user rules are not reviewed. |
55
+
56
+ `deepmodebot rules watch` prints the same list. Every notice and block is logged to `~/.deepmodebot/rules-watch.log`.
57
+
58
+ ## Storage
59
+
60
+ - `.deepmodebot/rules/ledger.json`: approved item to SHA-256 map, approved symlinks, decision history. Ledgers from before the passphrase was dropped also hold `owner` and `signature`; the next decision removes them.
61
+ - `.deepmodebot/rules/approved/<sha256>`: the approved bytes, used for diffs and rejects.
62
+ - `.deepmodebot/rules/proposals/<id>.json`: agent proposals waiting for the owner.
63
+ - `~/.deepmodebot/rules/`: the same layout for user-level rules, plus `repos.json` (repos to watch) and `hash-cache.json` (hashes by size and modification time, so the session-start check stays fast).
64
+
65
+ ## Limits
66
+
67
+ - Codex has no deepmodebot hook; the gate catches its rule edits at commit time. Its user-level rule edits show up in the notices only.
68
+ - Shell parsing is best effort. A script written to a file and then run, `git apply`, or a path held in a shell variable can still change a rule in the working tree, and harnesses may load that text until the owner rejects it. The gate blocks the commit.
69
+ - Without a passphrase nothing cryptographic tells your decisions from an agent's. An agent that slips past the hooks could record a decision with `rule_ledger.py`'s functions; the history shows it, and the notices tell you the rule changed, but only you can tell the decision was not yours.
70
+ - An agent with full shell access can remove hooks or the plugin and commit with hooks skipped. The check against the default branch catches a rolled-back or hand-edited ledger in that commit; keep the default branch protected and merge only PRs whose rule gate passes.
71
+ - A repo with no `origin` default branch anchors trust on HEAD only.
@@ -1,32 +1,18 @@
1
1
  # architect
2
2
 
3
- **Use when:** "architect/design this", or non-trivial work where jumping to code would lock in the wrong shape.
3
+ **Use when:** "architect/design this", or a non-trivial interface/module change where jumping straight to code would lock in the wrong shape. For a large or contested design, run **arena** (`references/techniques/arena.md`) instead of sketching alone.
4
4
 
5
- 1. **Phases.** If you have `todo`, open one item per phase; otherwise list the phases in your report: Ground, Sketch, Agree, Implement, Scrap. Done when the five phases exist as `todo` items or a report list.
6
- 2. **Ground.** Run **how** over every subsystem the code touches (naming a file isn't grounding). If ownership or layering changes, run **why** on the existing shape so rationale is a constraint. Skip only for true greenfield.
7
- Done when every touched subsystem has a how output, or the work is recorded as greenfield.
8
- System design: state the critical user journeys, non-goals, expected traffic, maintenance capacity, and cost/availability priorities before choosing components.
9
- Map each critical journey to its existing API contract (input, output, typed failures), owning data, and observable acceptance check; mark inapplicable fields explicitly.
10
- Trace one representative request through validation, authority, durable writes, asynchronous execution, delivery, and client reconciliation.
11
- At each applicable boundary, name the principal and tenant source, action permission, paid entitlement, execution lifetime, and failure/replay behavior.
12
- Done when that request trace identifies the source of truth at every hop and distinguishes demonstrated guarantees from assumptions; a diagram alone is not proof.
13
- 3. **Sketch.** Run **arena** with the design task and grounding. Candidates produce types, signatures, class shapes, module boundaries with `not implemented` bodies and pseudocode, caller usage written first. Require ≥2 structurally distinct whole-shape candidates even when the first looks fine (exhaust-the-design-space).
14
- Done when at least two structurally distinct candidates exist, each with caller usage.
15
- 4. Screen every candidate against the red flags below. Assume the next contributor is an agent that sees only files it opened, copies the nearest example, takes the shortest path that compiles; prefer the design where a change that looks right from one file is right repo-wide. Compare viable ones on interface depth: more complexity hidden behind a smaller public surface.
16
- Done when each candidate has a pass or hit recorded for every red flag.
17
- 5. **Agree** (opt-in). Default: proceed with no checkpoint. If asked ("with checkpoint", "show me first"), present and `ask` for sign-off. The sketch may land as its own scaffold step. Pushback on the shape = new grounding evidence: re-ground and re-sketch before more code. Adversarial review (**interrogate**) only for a contested design.
18
- Done when the sketch is signed off, or no checkpoint was asked for.
19
- 6. **Implement** against the sketch; it's the contract. Surface deviations: was the sketch wrong, the requirement missed, or the implementation overreaching?
20
- Done when the code matches the sketch or every deviation is listed with its cause.
21
- 7. **Scrap** on a *pattern* of friction: same workaround shape across unrelated code; many unrelated special-case branches; types needing escape hatches (`any`, casts, always-set optionals); a "we need a lock" reflex where state was meant unshared; callers needing the abstraction's internals; ≥2 independent same-shape deviations.
22
- Then re-run how on what's built, redesign as if constraints were day-one, make the new sketch smaller first, return to step 3. Complexity in the data isn't complexity in the design.
23
- Done when no friction pattern is present, or a smaller new sketch has replaced the old one.
5
+ 1. **Ground.** Trace every system the change touches directly (or run **why** when ownership or layering history constrains it); skip only for true greenfield. For system design, state critical user journeys, non-goals, expected traffic, operating constraints, existing API/data contracts, and trace one representative request through validation, authority, durable writes, async execution, and failure/replay behavior.
6
+ Done when touched systems and the source of truth at every boundary hop are written down.
7
+ 2. **Sketch and compare.** Sketch at least two structurally distinct shapes with caller usage and types first (`references/principles/exhaust-the-design-space.md`). Pick the shape with one owner per piece of state, one way to do each task, deep interfaces (more complexity hidden behind a smaller public surface), and the least for callers to know. Screen every candidate against the red flags below.
8
+ Done when at least two shapes are compared against the red flags and one base is chosen.
9
+ 3. **Implement or scrap.** Build against the sketch as the contract; surface deviations with their cause. If workarounds repeat (same workaround across unrelated code, type escape hatches, lock reflexes for unshared state, or >=2 same-shape deviations), stop patching, re-ground, and redesign smaller from day one.
10
+ Done when the code matches the chosen shape (or deviations are listed) with no repeating friction pattern.
24
11
 
25
- **Red flags:** shallow module (big interface, little hidden; callers coordinate several methods for one operation; options expose internal stages) · information leakage (one internal decision known by several modules; re-exported wire/transport types) · temporal decomposition (load/validate/transform/save modules repeating one representation) · pass-through method · split ownership (several writers or copies of one state) · two ways to do one task · importable internals · hand-synced lists (derive from one, or fail the build on disagreement).
12
+ **Red flags:** shallow module · information leakage (re-exported wire types) · temporal decomposition · pass-through method · split ownership · two ways to do one task · importable internals · hand-synced lists.
26
13
 
27
- **Output:** caller usage sketch → type sketch (one file for small changes; module map + types for larger), plus a rationale: usage sketch, candidates considered, red-flag screen, synthesis decision.
14
+ **Output:** caller usage and type sketch, shapes considered, red-flag screen, and chosen design rationale.
28
15
 
29
- **Done when** the implemented code matches the agreed sketch, or every deviation is listed with its cause, and the rationale names every candidate considered.
16
+ **Done when** the implemented code matches the chosen shape (or every deviation names its cause) and at least two shapes were screened against the red flags.
30
17
 
31
18
  System-design evidence: [requirements and request trace](https://www.youtube.com/watch?v=5nM5sB_kqYI&t=133s), [operating constraints](https://www.youtube.com/watch?v=hOYzvUQKq8s&t=632s).
32
- These checks are synthesis from the walkthroughs, not endorsements of their stacks or claims of verified scale.
@@ -14,7 +14,8 @@ A **seam** is where one module meets another and where a test or a second implem
14
14
  - one concept spread across many small modules a reader has to hop between;
15
15
  - shallow modules, pass-through layers, wrappers with one caller;
16
16
  - pure helpers pulled out for testing while the bugs live in how they are wired together;
17
- - one internal decision known by several modules (leak);
17
+ - one internal decision known by several modules (leak), or cross-boundary imports that explicit directory boundaries (server vs client, main vs renderer) plus dependency-graph lint rules would forbid;
18
+ - nuanced foot-gun APIs (raw `useEffect`, imperative timers) exposed in product code instead of confined to a supported framework wrapper;
18
19
  - code that is untested, or hard to test through its current interface;
19
20
  - hot-path performance friction (cross-thread hops, per-connection buffers, unbatched DB round trips, or false sharing; see `domain-rules/references/high-scale-server-optimization.md` and `data-structures-and-cache-optimization.md`).
20
21
  It runs the deletion test on every suspect and returns candidates, each with files, problem, proposed change, and deletion-test result.
@@ -24,10 +25,10 @@ A **seam** is where one module meets another and where a test or a second implem
24
25
  4. **Report.** Copy `assets/architecture-review/report-template.html` to `docs/deepmodebot/architecture-<YYYY-MM-DD>.html` and fill one card per candidate:
25
26
  - title, badges, files, and a before and after diagram side by side;
26
27
  - one sentence each for problem and change, gains in locality, leverage, and test terms, the deletion-test line, and an ADR callout when one conflicts.
27
- Use `GLOSSARY.md` names for domain concepts. Vary the diagrams (dependency graph, layer stack, call tree collapsing into one box); a card that needs a paragraph to explain needs a better diagram. End with the top recommendation.
28
+ Use `GLOSSARY.md` names for domain concepts. Vary the diagrams (dependency graph, layer stack, call tree collapsing into one box); a card that needs a paragraph to explain needs a better diagram. Include a complete **Ranked Leverage Matrix** across all surviving candidates (`Strong` → `Worth exploring` → `Speculative`, ordered by `caller fan-in × churn × complexity collapsed`) before naming `#1 (Recommended)`.
28
29
  Open the file (`start`, `open`, or `xdg-open`) and print its absolute path. Propose no interfaces yet. The report is a working artifact: leave it uncommitted unless the user wants it kept.
29
- Done when the file has one filled card per surviving candidate and its absolute path is printed.
30
- 5. **Pick.** Take the top recommendation and say so. In live mode (the user asked to choose), ask which card to explore and wait. Done when one candidate is named as the pick.
30
+ Done when the file has one filled card per surviving candidate, the complete Ranked Leverage Matrix is printed in chat (never collapsed to 1–3 items), and its absolute path is printed.
31
+ 5. **Pick (while preserving the full backlog).** Present all surviving candidates in ranked order so zero high-leverage deepening tasks are hidden, then highlight `#1 (Recommended)` as the initial pick (or in live mode when the user asked to choose, ask whether to run `#1`, a numbered subset, or all `Strong` items in sequence). Done when the full ranked list is visible and the active pick or wave is named.
31
32
  6. **Grill the pick** with the **grill** technique (`references/techniques/grill.md`): constraints, callers, the shape of the deepened module, what sits behind its seam, which tests survive and which move to the new interface. Keep the docs current as answers land, per the **domain-model** technique (`references/techniques/domain-model.md`):
32
33
  - a new module name for a concept missing from `GLOSSARY.md` → add the term;
33
34
  - a term that gets sharper in the discussion → update its entry;
@@ -3,12 +3,12 @@
3
3
  **Use when:** one attempt at a non-trivial artifact would lock in the wrong shape.
4
4
 
5
5
  1. **Phases.** If you have `todo`, open one item per phase; otherwise list the phases in your report: Frame, Fan out, Cross-judge, Pick, Graft, Verify. Done when the six phases exist as `todo` items or a report list.
6
- 2. **Frame.** State the artifact. Derive a 3 to 6 criterion gradeable rubric (picker-only; candidates see only the task). Pick N runners, ≥2, mixing model families when available.
6
+ 2. **Frame.** State the artifact. Derive a 3 to 6 criterion gradeable rubric (picker-only; candidates see only the task). Pick N runners, ≥2, mixing model families when available (default 3-seat lineup: `claude-fable-5-2-high`, `claude-opus-5-5-high-fast`, and `gemini-4-neon-xhigh`; fall back to the nearest valid slug of the same family while keeping ≥2 runners if a harness rejects a slug).
7
7
  Give each its own output location inside the project root (a git worktree under `.worktrees/` or its own folder under `.scratch/`, per SKILL.md "Contain the work"). Never shared files, never a temp dir outside the repo.
8
8
  Done when the rubric is written and each runner has its own existing output location.
9
- 3. **Fan out** in rate-limit-safe `task` waves (3-5 runners per wave by default; set a per-runner timeout and back off or rotate model families on HTTP 429s): task, grounding path, own output path; produce the artifact plus a short rationale naming alternatives considered and rejected. A dropout → proceed with N-1, note it.
9
+ 3. **Fan out** in rate-limit-safe `task` waves (3-5 runners per wave by default; set a per-runner timeout and back off or rotate model families on HTTP 429s): start each brief with `Read <this installed skill>/worker.md before anything else.`, then task, grounding path, own output path; produce the artifact plus a short rationale naming alternatives considered and rejected. A dropout → proceed with N-1, note it.
10
10
  Done when every runner has returned an artifact and rationale, or is recorded as a dropout.
11
- 4. **Cross-judge.** One read-only judge from a different model family than yours, when one is available; skip and say so otherwise. Never your own family. Done when the judge's verdict is in hand, or the skip is recorded.
11
+ 4. **Cross-judge.** One read-only judge from a different model family than yours, when one is available (`claude-opus-5-5-high-fast`, `gemini-4-neon-xhigh`, or `gpt-6.1-sol`; Fable counts as Claude for the vendor check); skip and say so otherwise. Never your own family. Done when the judge's verdict is in hand, or the skip is recorded.
12
12
  5. **Pick a base.** Read every candidate end to end. Score per rubric criterion, not holistic feel; compare with the judge. Disagreement → bias or ambiguous rubric; read both rationales. Pick what a future maintainer extends most easily without breaking invariants; ties → cleaner boundary or smaller API.
13
13
  Done when every candidate has a score per criterion and one base is named.
14
14
  6. **Graft.** Walk each loser once for 1 or 2 portable strengths; fold in by hand so one mental model holds (redesign-from-first-principles). Convergence = strong agreement, ship it. Wild divergence = under-specified frame: reframe and re-run, never average.
@@ -0,0 +1,50 @@
1
+ # autoroute
2
+
3
+ **Use when:** starting any non-trivial task (automatically on model invocation or `/deep`), whenever a prompt is messy, compound, or spans multiple domains, or mid-task when new code evidence invalidates the original route. Never rely on regex matching alone to choose a workflow.
4
+
5
+ Regex cannot understand human phrasing, tone, frustration, skepticism, or compound goals. Instead, **deepmodebot uses the LLM itself** to read what the user typed against the live disk catalog (zero regex-prior anchoring in the prompt), then enforces **checks and balances** in code plus a bounded Round-2 LLM critic before executing.
6
+
7
+ ## 3-stage LLM semantic auto-routing loop
8
+
9
+ 1. **Stage 1: Build the live disk catalog & repo facts packet (zero regex bias).** Run:
10
+ ```bash
11
+ python -B "<this installed skill>/assets/autoroute/autoroute.py" menu --root "<project-root>" --stdin --json <<'EOF'
12
+ <raw user prompt>
13
+ EOF
14
+ ```
15
+ *(Headless / CLI callers without an active chat LLM can run `autoroute.py route --root "<project-root>" --stdin --harness auto --json` to invoke the user's logged-in subscription LLM `agy`/`claude`/`codex` directly through Stages 1–3, stripping API keys and never spending `omp` tokens.)*
16
+ `menu` discovers playbooks, techniques, routable references, plugin sibling skills, and project-local skills from disk. It collects live repo facts plus `pre_flight_clarification` (`prompt_tools.py clarify`) and emits `llm_router_prompt` with **no regex mode guess**.
17
+ Use the main skill's Route Step 0 to resolve intent. Treat `pre_flight_clarification` as advisory: inspect available facts before asking and never treat a headless default as authorization.
18
+ Done when the actor, outcome, success evidence, and requested delivery boundary are clear enough to route.
19
+
20
+ 2. **Stage 2: Ask the LLM to decide semantically.** Using the full menu and repo facts (inline structured reasoning, or a fast read-only `scout` subagent on large/ambiguous asks), output a single JSON route decision:
21
+ - `decoded_intent`: restate the user's objective, observable success, and delivery boundary before choosing a mode. `deliverables`: enumerate every requested output or action without turning a proxy into a goal.
22
+ - `primary_mode` and exact `route_file` from the live menu. Deepmode route files are relative to this skill's root, e.g. `references/techniques/visual-e2e.md`. Sibling and project skills use `skill://<name>` and can name a file within that skill. If both exist, `research` selects the Deepmode technique by default; `skill://research` selects the separate skill.
23
+ - `secondary_techniques` (e.g., `self-grill`, `no-comments`, `security-audit`, `why`, `how`, `formal-verification`) and `reference_skills` (`skill://frontend-ui`, `skill://secrets-and-auth`, `skill://software-architecture`, `skill://cloud-devsecops`, `skill://agent-harnesses`, `skill://domain-rules`, `skill://deep-stack`)
24
+ - `size` (`S`/`M`/`L`/`none`), `self_grill` (`none`/`plan`/`checks`/`both`), `hardcore_mode` (default `true`; `false` only on explicit minimal/prototype opt-out), `hardcore_ceiling` (1-sentence first-principles engineering target), `confidence` (`0.0`–`1.0`), `runner_up`, `why_not_runner_up`, `needs_prompt_upgrade`, and `hard_stops`.
25
+ Done when the JSON decision covers every deliverable and names why the runner-up lost.
26
+
27
+ 3. **Stage 3: Enforce checks and balances (code gate + bounded critic).** Pipe the LLM's JSON decision into the deterministic verifier:
28
+ ```bash
29
+ python -B "<this installed skill>/assets/autoroute/autoroute.py" verify --root "<project-root>" --prompt "<raw prompt>" --decision-stdin --strict --json <<'EOF'
30
+ <decision JSON>
31
+ EOF
32
+ ```
33
+ The verifier enforces five gates:
34
+ - **Disk & containment existence:** rejects any hallucinated `primary_mode`, `route_file`, `secondary_technique`, or `reference_skill` (including `skill://` subpaths or `..` escapes) not present on disk.
35
+ - **Size & safety floor:** read-only/discovery modes must be `none`; any prompt or diff touching auth, secrets, permissions, migrations, payments, CI workflows, or agent config cannot be `S` and requires `self_grill` + security companions.
36
+ - **Anti-blunder & Hardcore anti-sandbagging guards:** blocks lazy `tournament` dumping on concrete anchors without justification, flags shallow `feature`/`bug-fix` collapse when specialized playbooks fit (`perf-issue`, `runtime-forensics`, `trace-forensics`, `hillclimb`, `visual-parity`, `reference-rebuild`, `formal-verification`, `gen-ui`, `video-forensics`, `suggest`, `prompt-upgrade`, `no-comments`), and blocks disabling `hardcore_mode` or under-sizing multi-part/systems work to `S`.
37
+ - **Required companions:** flags missing `reference_skills` or `self-grill`/`no-comments` on M/L code work (plus `architect` on multi-part hardcore L builds). If a required technique is absent from the live catalog, the decision is rejected.
38
+ - **Bounded critic pass (`--critic-round 2`):** if `status` is `CRITIC_REQUIRED` (confidence `< 0.80` or specialized-signal mismatch) or `REJECTED`, run one fresh adversarial critic pass using `critic_prompt`, revise the JSON with `"critic_reviewed": true`, and re-verify with `--critic-round 2` until `APPROVED` (exit 0). Round-1 `critic_reviewed: true` without `--critic-round 2` is rejected.
39
+ On `APPROVED`, use `locked_plan.read_targets` as the read list: primary route, companion techniques, then reference skills, with duplicates removed. Do not infer paths from `primary_mode` or technique names.
40
+ In omp, pass each URI verbatim to `read`. Elsewhere, resolve `skill://<name>` to the selected skill's `SKILL.md`; resolve `skill://<name>/<path>` relative to that skill's root.
41
+
42
+ ## Mid-flight re-route (Stage 4)
43
+
44
+ Routing is not a one-shot guess. Whenever real code inspection contradicts the initial route (diff grows past S, touches a sensitive path, hits 2 failed attempts sharing a premise, or reveals 2+ competing architectural shapes), run:
45
+ ```bash
46
+ python -B "<this installed skill>/assets/autoroute/autoroute.py" reroute --root "<project-root>" --current-mode "<mode>" --current-size "<size>" --failed-attempts <n> --json
47
+ ```
48
+ Apply the recommended escalation (`S -> M/L`, `M -> L`, `architect`, `arena`, `attack-the-premise`, `security-audit`, `self-grill`, `no-comments`) and log one row in the decision trail; add `sme-review` when domain rules are unverified.
49
+
50
+ **Done when** `autoroute.py verify --strict --json` returns `APPROVED` (exit 0), every `locked_plan.read_targets` entry is loaded, and any mid-flight scope or premise shift triggers `reroute`.
@@ -4,7 +4,7 @@
4
4
 
5
5
  Proof ladder. Push each load-bearing fact as far as is cheap and say where it stopped: (1) you said so, which is worthless; (2) pointed at a real `file:line` or library source; (3) walked the failure and showed it can't reach; (4) ran a script/test calling the real code that fails loud if wrong; (5) reproduced in the running app.
6
6
 
7
- 1. Read the change: diff, symbols added/changed/deleted, what it now does differently incl. what the diff doesn't spell out (pull PR/commits as in **why** step 2).
7
+ 1. Read the change: diff, symbols added/changed/deleted, what it now does differently incl. what the diff doesn't spell out (check PR/commit history as in **why**).
8
8
  Done when every added, changed, and deleted symbol is listed with its new behavior.
9
9
  2. Find the one fact it's safe because of (e.g. "this call only drops already-dead cache entries"). Spend time here, not on a list of maybes. Done when the fact is one written sentence.
10
10
  3. Look where grep stops: library source at the pinned version plus local patches; timing (microtasks, teardown, framework semantics); JSON an API returns, DB columns, wire formats, other languages reading the same bytes, feature flags, code three hops downstream.
@@ -0,0 +1,13 @@
1
+ # catchup-video
2
+
3
+ **Use when:** "catch me up with a video", "video recap", "subtitled slide video of what happened", or visual catch-up since the user's last message.
4
+
5
+ Follow **recall** (`references/techniques/recall.md`), replacing its prose/static visuals with a short silent subtitled landscape MP4 slide deck plus waiting user calls underneath. Scope starts at the user's last message before this request. Rendering the MP4 inside `<root>/.scratch/catchup-video/` is the one write exception to `recall`'s read-only rule.
6
+
7
+ 1. **Plan from real artifacts.** Use captured screenshots, recordings, diffs, and measured outputs rather than chat prose. Draft one takeaway sentence and one point per slide (`<=10` slides; drop any slide that changes nothing the user knows; omit planning notes from the reply).
8
+ 2. **Compose evolving visual slides.** Build on one visual model and evolve it across slides with arrows, highlights, and motion (system flow, PR stack states, before/after fix, or side-by-side decision options using consistent color/shape meanings). Never render bullet lists, status tables, or unconnected boxes; never invent numbers or draw uncaptured screens (if a UI change lacks a screenshot, state that on the slide and name what changed). Never mark work done if it still waits on the user.
9
+ 3. **Burn readable subtitles.** Place one plain ~10-word subtitle per slide inside a fixed-height strip below the slide frame so it never overlaps slide content and stays legible at chat width. State what the picture means rather than reading labels aloud, without repeating facts across slides or reply text.
10
+ 4. **Render & verify hold timing.** Render a silent landscape MP4 from generated slide frames (never screen-recording) with burnt-in subtitles held for the full slide duration (excluding transitions) at `>=1s` per 3 newly added words (subtitle + new/changed slide labels; words inside embedded screenshots excluded). Inspect one rendered frame per slide at chat size and measure frame-matched holds (not still-frame detectors on fades); re-render any cramped or unreadable slide.
11
+ 5. **Reply.** Output the opening recap sentence, the embedded/linked MP4 path, one line naming remaining work you can finish yourself, and waiting user calls using the exact option names shown in the video (or a one-line render-failure note plus the waiting calls).
12
+
13
+ **Done when** the verified MP4 in `.scratch/catchup-video/` passes per-slide readability and word-hold checks (or reports render failure cleanly) and the reply lists only real waiting calls and remaining agent work.
@@ -1,18 +1,20 @@
1
1
  # correct
2
2
 
3
- **Use when:** agents keep repeating the same mistakes in this repo, or each time the operator corrects you. Make each mistake impossible. Assume every contributor is an agent that sees only files it opened, copies the nearest example, takes the shortest path that compiles.
3
+ **Use when:** agents keep repeating the same mistakes in this repo, each time the operator corrects you, or during codebase gardening ("garden the codebase", "pattern buffer", "ban this anti-pattern"). Make each mistake impossible. The codebase is an agent's largest input: any workaround, deprecated API, or anti-pattern left behind gets copied by every future agent as the established pattern.
4
4
 
5
- 1. Read recent commits, reverts, review comments, agent instruction files (AGENTS.md, CLAUDE.md, `.omp/`), and workaround comments. Group mistakes into classes; a class counts once it happened twice.
5
+ 1. **Watch and buffer (the gardener loop).** Read recent commits, reverts, review comments, agent instruction files, and workaround comments. For recurring smells across many PRs, append findings to a lightweight pattern buffer before spawning fixes so you see the shared root cause instead of patching individual symptoms. A class counts once it happened twice; skip one-offs.
6
6
  Done when each class is listed with at least two cited occurrences.
7
- 2. Fix each class at the highest level that works:
8
- - **Architecture:** one owner per state, one supported way per task, hidden internals so the wrong import fails, one source of truth instead of hand-synced lists, delete old ways and dead code agents would copy.
9
- - **Types** so the bad state can't be written; if it still compiles, a **lint/CI check** whose error names the file, type, or function to use instead; if the pattern is already common, fail only when a change adds more.
10
- - **Tests** of behavior; fix or delete tests that pass when behavior breaks or fail when only internals change.
11
- - **Docs/agent rules last**, only for judgment calls (nothing fails when skipped).
7
+ 2. **Change the bed at the highest level that works:**
8
+ - **Architecture & directory boundaries:** one owner per state, one supported way per task, explicit boundary directories (e.g. main vs renderer, server vs client) enforced by dependency-graph/lint rules so wrong imports fail; ban nuanced foot-gun APIs (such as raw `useEffect` or imperative timers `setTimeout`/`requestAnimationFrame`/`requestIdleCallback`) in product code and confine them to framework internals; delete old weed examples so agents stop copying them.
9
+ - **Types & deterministic lints:** make the bad state fail to compile; if it still compiles, add a lint/CI check whose error message tells the agent the exact file, type, or supported API to use instead; if legacy occurrences exist, ratchet CI to fail only when a change adds new ones.
10
+ - **Tests & formal checks:** behavioral tests (never tautological tests) or `references/techniques/formal-verification.md` for concurrency/state invariants.
11
+ - **Docs/agent rules last:** only for judgment calls that no deterministic check can express.
12
+ - **Sampling review at high PR volume:** when PR volume outgrows line-by-line review, rigorously sample recent merged PRs to find shared shortcuts and upgrade the environment constraints above, not just one PR.
12
13
  - Done when each class has a chosen level and a reason no higher level works.
13
14
  3. Fix the most frequent classes now, one unit per class (one commit each). Prove each new check fails on a real past mistake. Same command locally and in CI. Exceptions go on the offending line with reason, expiry, and a decision-trail row.
14
15
  Done when each fixed class has its own commit and a run showing its check failing on a past mistake.
15
16
  4. Keep a rule table in the agent instruction file pairing each rule with its enforcer. On a correction: fix the mistake, add the rule; an existing unenforced rule is a repeat → enforce it at the highest level in the same change. Drop rules whose mistake can no longer happen.
17
+ Before changing the instruction file or an enforcer, read Self-Improvement Memory (**sim**, `references/techniques/sim.md`): an earlier attempt at the same class may already explain it. Record the new attempt with the past mistakes it should catch as predictions.
16
18
  Done when every rule in the table names an enforcer, or is a judgment call marked as docs-only.
17
19
 
18
20
  **Output:** each class with its evidence, the level picked, and why a higher level didn't work.
@@ -1,6 +1,6 @@
1
1
  # course
2
2
 
3
- **Use when:** the user wants to learn a topic over several sessions: "teach me Rust over the next month", "make me a course on X", "I want to get good at Y", or they return to a folder that already has `MISSION.md`. One explanation of code or a change is the **teach** technique (`references/techniques/teach.md`). The topic need not be code.
3
+ **Use when:** the user wants multi-session mastery or interactive Socratic tutoring/drilling ("teach me Rust over the next month", "make me a course on X", "tutor me / quiz me / drill me to mastery on Y", or a folder with `MISSION.md`). One-off explanations ("what is X", "explain this diff") use **teach** (`references/techniques/teach.md`) — never launch an unrequested diagnostic quiz on a one-off question.
4
4
 
5
5
  The current directory is the course workspace. Its files are the learner's memory between sessions:
6
6
 
@@ -20,6 +20,7 @@ Create files when first needed, not up front.
20
20
  1. **Mission first.** No `MISSION.md`, or one too vague to choose the next lesson ("understand X") → ask why they want this and what they will do with it, in one exchange. Push past abstract answers to an outcome ("ship a CLI to my team", "run a half marathon in October"). Write `MISSION.md`.
21
21
  A changed goal later: confirm with them, update the file, and add a learning record.
22
22
  Done when `MISSION.md` names a concrete outcome and three to five abilities.
23
+ - **Socratic live-drill mode** ("tutor/quiz/drill me" in chat without HTML files): decompose the topic into `4–10` subskills, run a `3–5` question calibrated diagnostic (easy → hard) *before* lecturing, render an ASCII **`0–5` mastery map** (`0 unaware · 1 heard · 2 follow · 3 assisted · 4 independent · 5 edge-cases/teach`), and ask **one question per turn** (ending the message immediately with zero hints until the learner answers).
23
24
  2. **Sources before lessons.** Search for high-trust primary sources (official docs, standard texts, recognized experts, well-moderated communities) and fill `RESOURCES.md`. Every factual claim in a lesson cites one. Do not teach from memory where a source exists.
24
25
  Done when `RESOURCES.md` has at least one source covering the next lesson's topic, or that topic is listed under **Gaps**.
25
26
  3. **Choose the next lesson.** If they named a target, teach it. Otherwise read `MISSION.md`, every learning record, and `NOTES.md`, then pick the smallest next step the mission needs that sits just past what they have shown they can do: hard enough to stretch, close enough to succeed.
@@ -0,0 +1,13 @@
1
+ # devex-review
2
+
3
+ **Use when:** auditing developer experience ("DX review", "developer onboarding audit", "CLI/SDK ergonomics review"), designing a CLI, SDK, or MCP tool surface, or checking whether a newcomer or coding agent can go from cold clone to first working run without friction.
4
+
5
+ 1. **Cold-start onboarding stopwatch.** Walk the documented setup from a clean directory/env (`README.md` / `CONTRIBUTING.md`): count required manual steps, undocumented system prerequisites, missing `.env.example` keys, broken scripts, and time-to-first-green-test. Aim for one deterministic bootstrap command (`make dev`, `npm test`, `uv sync && pytest`).
6
+ 2. **CLI ergonomics for humans & agents.** Audit every command against dual human/agent usability:
7
+ - Machine-readable `--json` output on stdout, progress/diagnostics on stderr;
8
+ - Non-interactive flags (`--yes`, `--dry-run`) that never hang waiting on stdin when `!isatty`;
9
+ - Complete `--help` with real examples, `NO_COLOR` support, and distinct non-zero exit codes (`0` ok, `1` check/finding failed, `2` usage/setup error).
10
+ 3. **Actionable error messages.** Trigger 3–5 common failure modes (missing env var, occupied port, bad config, expired auth, wrong argument type). Every error must state **what failed, where, and the exact command or edit to fix it**—never raw stack traces or opaque `"Invalid input"`.
11
+ 4. **SDK & API surface audit.** Check pit-of-success defaults (safe timeouts, retries on idempotent calls, typed errors, zero required boilerplate for the 80% case, and progressive disclosure of advanced knobs).
12
+
13
+ **Done when** cold-start setup friction is reproduced or verified clean, CLI/SDK interfaces satisfy `--json`/`--dry-run`/non-TTY/exit-code contracts, and unhelpful errors are replaced with actionable fix hints.
@@ -0,0 +1,13 @@
1
+ # expand-contract
2
+
3
+ **Use when:** renaming, splitting, or dropping a live database column/table, evolving an external API/webhook/queue payload under Hyrum's Law, or sunsetting a production service with zero downtime while old and new app replicas run concurrently.
4
+
5
+ For single-repo internal callers that deploy atomically, migrate callers and delete the old API in one wave (`references/principles/migrate-callers-then-delete-legacy-apis.md`). Use **expand-contract** whenever rolling deploys, external clients, persisted queue messages, or stateful schemas prevent atomic cutover.
6
+
7
+ 1. **Inventory observable consumers (Hyrum's Law).** Grep callers, SDKs, mobile versions, queued job payloads, analytics pipelines, and DB views; check telemetry for live traffic on the old field/endpoint.
8
+ 2. **Phase 1 — Expand (additive & backward-compatible).** Add the new nullable column, table, or v2 field/endpoint alongside the old one (`ADD COLUMN ... NULL`, `CREATE INDEX CONCURRENTLY`; never hold long `ACCESS EXCLUSIVE` table locks). Old replicas must keep working against the expanded schema.
9
+ 3. **Phase 2 — Dual-write & backfill.** Deploy app code that writes both old and new representations transactionally (still reading old), then backfill historical rows in throttled idempotent batches with sleep/jitter.
10
+ 4. **Phase 3 — Shadow-read parity & switch.** Read from the new path while comparing against the old path in metrics/logs; once mismatch count is `0` across real load, switch primary reads to the new path while keeping rollback safety.
11
+ 5. **Phase 4 — Deprecate & contract.** Emit `Deprecation` / `Sunset` HTTP headers (`RFC 8594` / `RFC 9745`) or structured telemetry warnings on legacy callers; once legacy read/write rate hits `0` over a full retention window, stop dual-writing and drop the legacy code, column, and feature flag in a dedicated cleanup PR.
12
+
13
+ **Done when** each deploy step is backward-compatible with its adjacent running version, locks/backfills are non-blocking and idempotent, read-parity check criteria are explicit, and the final contract removal ticket/step is tracked so dual-write shims never become permanent tech debt.
@@ -0,0 +1,33 @@
1
+ # formal-verification
2
+
3
+ **Use when:** concurrency races, retries, multi-device sync, state machines, parsers, custom algorithms, mathematical proofs, Lean/Coq/TLA+/SMT formalizations, or UI invariants where unit tests miss breaking orders or edge cases ("formal verification", "model-check", "TLA+", "statechart", "Lean proof", "Comparator", "prove this theorem/invariant", "property-based UI", "Bombadil"). Formal checks complement runtime verification; they are not a silver bullet.
4
+
5
+ ## Choose the target, falsify early, and decompose
6
+
7
+ 1. **Pick the highest-risk invariant or theorem.** State the property/claim and its failure harm in one plain sentence each.
8
+ Done when the target files, symbols, invariant/theorem sentence, and failure harm are written down.
9
+ 2. **Falsify on small cases first ("Checking beats believing").** Before spending proof search or TLA+/Lean cycles, run a quick Python (`sympy`, exact `Fraction`/`int`, or property-based `Plausible`) probe over $n=0,1,2,3,4$, degenerate inputs, and sign/equality boundaries to catch false subgoals in seconds (`alphabeta` guard).
10
+ Done when small-$n$ / boundary falsification passes or refutes the conjecture upfront.
11
+ 3. **Let the question pick the tool (backed by `assets/formal-verification/verify_proof.py`):**
12
+ - **Event/step order or distributed state** → **TLA+ / TLC** over a faithful model, plus a user-POV **Mermaid statechart** (max 6 boxes per view, marking broken rules and shortest path).
13
+ - **Mathematical theorem or algorithmic property at every size** → **Lean 4** (`lake build` + `#print axioms` restricted to `[propext, Classical.choice, Quot.sound]`), **Coq/Rocq**, or **Z3/SMT**, verified with `verify_proof.py audit-static`.
14
+ - **Multi-lemma proof or multi-module invariant** → initialize a **Claim-DAG ledger** (`verify_proof.py dag init`), prove tractable `ready_leaves` first, and discharge temporary `sorry` stubs bottom-up (`Prove2Me` / `Fable 5.2` pattern).
15
+ - **UI state invariants under arbitrary interaction** → property-based UI explorer (**Bombadil** `always(...)` invariants over real browser state).
16
+ - **No formal kernel fits** → run generated/exhaustive Python checks via `verify_proof.py able-to-fail --script <verify.py>`, never a detached toy model.
17
+ Done when the tool, exact command, and scope bounds/assumptions are named.
18
+
19
+ ## Rules that keep verification honest
20
+
21
+ - **Statement Alignment & `Challenge.lean` isolation.** Lean compilation proves internal consistency of the *formalized* file, not alignment with prose:
22
+ - Keep target statements immutable in `Challenge.lean` with `formalization.yaml` mapping every hypothesis and quantifier ($\forall\exists$ vs $\exists\forall$, regularity bounds), and run **sme-review** (`references/techniques/sme-review.md`) against the prose spec.
23
+ - Run `verify_proof.py audit-static --challenge Challenge.lean --solution Solution.lean` (`Comparator` gate: zero `sorry`, `admit`, custom `axiom`, `native_decide`, or `[extern]`).
24
+ - **Proven able to fail.** A check never seen failing proves nothing. Enforce `verify_proof.py able-to-fail` (`--mutate` breaks a bound, sign, or guard and must exit non-zero) and keep `.scratch/formal-verification/<slug>-receipt.json`.
25
+ - **Dual audit for informal lemmas.** In mixed or informal proofs (`dag update`), never mark a lemma proved without either kernel verification (`kernel_verified`) or two independent line-by-line auditor passes (`proved_dual_verified`, `Siege` rule).
26
+ - **Never weaken a property to pass, and replay every counterexample.** Report counterexamples in plain terms and replay each trace against real code.
27
+ - **Separate model drift from code bugs, and respect hard stops.** Record covered files + **sync commit SHA**; passing a proof verifies only within stated bounds and never waives one-way-door hard stops.
28
+
29
+ ## Output
30
+
31
+ Plain-English invariant/theorem and harm, tool and bounds/assumptions, statement-alignment + static-escape check, `able-to-fail` receipt, run output (or Claim-DAG ledger), counterexample replay, and covered files + sync SHA.
32
+
33
+ **Done when** `verify_proof.py` passed (`audit-static` clean and `able-to-fail` proven), every counterexample was replayed (or zero violations found within stated bounds), and covered files plus sync SHA are recorded.
@@ -0,0 +1,60 @@
1
+ # gen-ui
2
+
3
+ **Use when:** a wall of Markdown text is the wrong medium for talking to a human (ranked `/suggest` audits, `grill` decision frontiers, `self-grill` Prosecutor gap/overclaim heatmaps, `tournament` 12-lens brackets, multi-option comparisons, or architecture walkthroughs), OR when building an agent-driven product interface using Google's open **A2UI (`1.0`)** declarative UI protocol (`https://a2ui.org/`, `https://github.com/a2ui-project/a2ui`).
4
+
5
+ Agents default to terminal-era walls of text or unsafe model-authored HTML/JS. **gen-ui** fixes both:
6
+ 1. **Speak UI to the human:** compile structured agent findings, decisions, and `/deep` prompts into a schema-validated **A2UI v1.0 payload (`surface.a2ui.json`)** plus a **self-contained interactive HTML cockpit (`index.html`)** inside `<root>/.scratch/gen-ui/<slug>/`.
7
+ 2. **Build production agentic UIs with A2UI v1.0 ("data, not code"):** agents emit flat, ID-referenced component blueprints (`updateComponents`) and bound state (`updateDataModel`) validated against a client-owned `catalog.json`, rendered natively across React, Lit, Angular, Flutter, SwiftUI, and Jetpack Compose with zero arbitrary code execution across trust or A2A boundaries.
8
+
9
+ Pair with `skill://frontend-ui` (`references/playbook/04a-agent-ui.md`) for styling/accessibility rules and `skill://agent-harnesses` (`references/protocols.md`) for A2A, AG-UI, and MCP transport wiring.
10
+
11
+ ## When to speak UI vs prose
12
+
13
+ - **Stay in concise Markdown** when the answer is `< 10` lines, one linear explanation, or a single yes/no question.
14
+ - **Generate an interactive `gen-ui` cockpit (`assets/gen-ui/gen_ui.py`)** when:
15
+ - `/suggest` returns multi-item ranked `P0`/`P1`/`P2` gaps, overclaims, and copy-paste `/deep` prompts (`prompt_tools.py suggest --ui`).
16
+ - `grill` or `tournament` surfaces `3+` coupled architectural decisions, trade-off matrices, or killed-flaw scar tables where the human benefits from interactive filtering and 1-click decision overrides.
17
+ - `self-grill` Prosecutor audits expose multi-file risk heatmaps, missing tests, or overclaim receipts.
18
+ - The user asks to visualize architecture, compare designs, or "gen UI / build UI to talk to me".
19
+ - **Build an in-app A2UI v1.0 surface** when the user's application needs dynamic, personalized agent responses (forms, booking cards, approval flows, live metric feeds) rendered with the host app's own design-system widgets.
20
+
21
+ ## Procedure
22
+
23
+ 1. **Define or select the trusted component catalog (`catalog.json`).**
24
+ - Every A2UI v1.0 surface binds to a `catalogId` with JSON Schema properties per allowed widget (`Card`, `Column`, `Row`, `Text`, `Button`, `MetricTile`, or domain cards like `FlightCard`).
25
+ - Never allow raw HTML/script execution in catalog components; unknown component types fail closed at compile/validation time or degrade cleanly to text.
26
+ - When using **A2UI Express** (`<a2ui> ... </a2ui>` with `$/path` bindings) or a fast System-1 selector model, generate the prompt skill directly from `catalog.json` via the A2UI Agent SDK (Python, TypeScript, or Dart).
27
+ Done when the allowed component catalog and JSON Schema contract are fixed before UI generation.
28
+
29
+ 2. **Emit flat adjacency-list components + separated data model.**
30
+ - Follow the A2UI `1.0` wire split:
31
+ - `createSurface`: `{"version": "1.0", "createSurface": {"surfaceId": "...", "catalogId": "..."}}`
32
+ - `updateComponents`: flat array of `{id, component, child|children, ...}` starting at `"id": "root"`. Flat IDs let LLMs stream incrementally and patch one node by ID without deep-nested JSON breakage.
33
+ - `updateDataModel`: `{"version": "1.0", "updateDataModel": {"surfaceId": "...", "path": "/", "value": {...}}}`. Bind dynamic values via RFC 6901 JSON Pointers (`{"@path": "/metrics/overclaims"}` in v1.0) so sensitive server state can bind on the client without passing raw secrets through the model.
34
+ - For local `deepmodebot` human cockpits, run the contained generator (writes only inside `<root>/.scratch/gen-ui/<slug>/`):
35
+ ```bash
36
+ python -B "<this installed skill>/assets/gen-ui/gen_ui.py" from-suggest --root "<project-root>" --slug suggest --json
37
+ python -B "<this installed skill>/assets/gen-ui/gen_ui.py" from-grill --root "<project-root>" --slug grill --json
38
+ python -B "<this installed skill>/assets/gen-ui/gen_ui.py" render --root "<project-root>" --slug custom --stdin --json <<'EOF'
39
+ {"title": "Architecture Decision Cockpit", "decisions": [...], "findings": [...]}
40
+ EOF
41
+ ```
42
+ Done when `surface.a2ui.json` (and `index.html` for local cockpits) is emitted inside `.scratch/gen-ui/<slug>/` or the app's transport stream.
43
+
44
+ 3. **Choose the right transport & MCP Apps hybrid pattern (when building apps).**
45
+ - **A2UI over AG-UI / A2A / WebSockets:** full streaming conversational generative UI across orchestrator and remote subagents.
46
+ - **Pattern 1 — A2UI over MCP (`application/a2ui+json`, `a2ui://` URI):** return A2UI JSON as an MCP Resource (`resources/read` for static zero-LLM forms) or embedded `CallToolResult` resource (`tools/call` for dynamic tool views) so the host renders native widgets with zero iframe clash.
47
+ - **Pattern 2 — MCP Apps inside A2UI:** wrap bespoke stateful canvases (WebGL/3D, games, seat maps) inside a custom A2UI iframe wrapper component; sync only macro key-states (`action` -> `updateDataModel`), never micro-state polling.
48
+ - **Pattern 3 — A2UI inside MCP Apps:** bundle `<a2ui-surface>` + `@modelcontextprotocol/ext-apps` `AppBridge` inside an MCP App iframe to bring dynamic generative controls to legacy or non-A2UI hosts.
49
+ Done when transport and sandbox boundaries match the host's capabilities.
50
+
51
+ 4. **Validate wire safety and verify the rendered surface.**
52
+ - Run deterministic A2UI v1.0 validation on every generated bundle:
53
+ ```bash
54
+ python -B "<this installed skill>/assets/gen-ui/gen_ui.py" validate-a2ui --file "<project-root>/.scratch/gen-ui/<slug>/surface.a2ui.json" --json
55
+ ```
56
+ - Confirm `valid: true` (unique flat IDs, `root` present, acyclic `child`/`children` graph, zero orphans, allowlisted catalog components, resolvable `@path` pointers, and zero `<script>`/`javascript:` injection).
57
+ - For interactive HTML cockpits or web A2UI renderers (`@a2ui/react`, `@a2ui/lit`, `@a2ui/angular`), verify in a real browser (`Operate` surface mode, OKLCH role tokens, keyboard focus, working filters, and valid `renderer_to_agent` v1.0 `action` payload export so human choices round-trip back into the session). Link the clickable file path for the user; pass `--open` only when interactive viewing is helpful.
58
+ Done when `validate-a2ui` exits `0` and the rendered UI is verified free of console, layout, or escaping defects.
59
+
60
+ **Done when** the A2UI v1.0 surface passes schema, cycle, pointer, and script-injection validation, renders cleanly in native widgets or the contained interactive cockpit, and gives the human a faster decision/inspection loop than prose alone.
@@ -3,6 +3,7 @@
3
3
  **Use when:** a plan, design, or idea needs stress-testing before work starts ("grill me", "grill this plan", "stress-test it", "poke holes in this"), or a Wayfinder ticket labeled `wayfinder:grilling`.
4
4
 
5
5
  You run the interview, and by default you also answer it: the user prefers the agent decide. A grilling that ends in questions nobody answered has failed.
6
+ **Never present an un-converged `v1`:** run internal adversarial passes (`v1 -> v2 -> ... -> vK`) against real repo files until a pass finds **0 new P0/P1 flaws**, then show converged `vK` plus a short scar table of killed flaws.
6
7
 
7
8
  1. **Tree.** Map the plan as a design tree: every decision, and the decisions that hang off it. The **frontier** is every decision whose prerequisites are settled. Done when every decision in the plan is a node and the frontier is marked.
8
9
  2. **Round.** Write the whole frontier as numbered questions, each with its real options. Done when each frontier decision has a numbered question with at least two options.
@@ -14,7 +15,7 @@ You run the interview, and by default you also answer it: the user prefers the a
14
15
  Log each answer as one row in the decision trail per the **show-me-your-work** technique (`references/techniques/show-me-your-work.md`): the question, the choice, why, the evidence, and how to reverse it.
15
16
  Done when every question in the round has a trail row.
16
17
  4. **Recompute.** Settled answers push the frontier outward. A question that depends on another question still open waits for a later round. Repeat until the frontier is empty: every branch visited, nothing silently assumed.
17
- 5. **Report and proceed.** Show the user the decisions as a short table (question, choice, why, how to reverse), then carry on with the work. Don't wait for confirmation; the user overrides any row by saying so.
18
+ 5. **Report, visualize when multi-branch, and proceed.** Show the user the decisions as a short table (question, choice, why, how to reverse); when `3+` coupled decisions or trade-offs exist (or the user wants a visual interactive view), also render an A2UI v1.0 decision cockpit (`assets/gen-ui/gen_ui.py from-grill --spec-stdin`, per `references/techniques/gen-ui.md`) inside `.scratch/gen-ui/` so the human can inspect options and override any choice with one click, then carry on with the work without waiting for confirmation.
18
19
  Done when the table holds one row per trail row and the next piece of work has started.
19
20
 
20
21
  **Live mode.** Only when the user asks to answer themselves ("interview me", "wait for my answers", "ask me live"): present each round with your recommended answer, worded so "yes" accepts it, and wait for their answers before the next round. Facts are still yours to look up; never ask the user for one.
@@ -1,23 +1,12 @@
1
1
  # how
2
2
 
3
- **Use when:** "how does X work", walkthroughs before changing something, placement/ownership/layering ("where should this live", "which package owns this"). Motivation questions → **why**.
3
+ **Use when:** "how does X work", code walkthroughs before changing a subsystem, or placement and ownership questions ("where should this live", "which package owns this"). Motivation questions → **why**. Routine code reads inside a playbook trace directly inline without invoking this technique.
4
4
 
5
- 1. Assess complexity. Ambiguous scope → state your interpretation and proceed.
6
- - **Simple** (one module, small utility, "how does function X work"): one `scout` explores and explains in one pass. Go to 4. When in doubt, take this path.
7
- - **Complex** (subsystem across files/services, cross-cutting feature, full overview): go to 2.
8
- - Done when the path (simple or complex) and your reading of the scope are stated.
9
- 2. Decompose into 2 to 4 distinct angles; spawn one `scout` per angle in a single `task` batch, each told to trace its slice and return findings with `file:line`. Done when every angle has returned findings with `file:line` citations.
10
- 3. Spawn one explainer (`scout`) with the question and all explorer findings. It reconciles overlaps, resolves contradictions by reading code, fills gaps, doesn't re-explore from scratch.
11
- Done when the explainer's output leaves no contradiction between findings unresolved.
12
- 4. Present the explainer's output; light edits only. Done when the answer has every Output section that applies.
5
+ If the scope is ambiguous, state your interpretation and explore.
13
6
 
14
- **Output** (drop sections that don't apply):
15
- - **Overview**: 1 to 2 paragraphs. What it is, what it does, why it exists.
16
- - **Key Concepts**: important types/services/abstractions, brief.
17
- - **How It Works**: the longest part. Trigger, step-by-step flow, data movement, decision points. Prose, not pseudocode; name files and functions. Mermaid for multi-component flows, ASCII for simple ones, nothing if prose covers it.
18
- - **Where Things Live**: minimal file/dir map.
19
- - **Gotchas**: non-obvious behavior, pitfalls.
7
+ 1. **Explain positive flow and negative space.** Spawn one read-only explorer (`scout` across Antigravity, Claude Code, `omp`, or Codex) that traces the code for a senior engineer: overview, key concepts, step-by-step runtime flow with `file:line`, where things live, and **gaps, unhandled failure paths, silent stubs, or cross-module parity drift**. Split into 2 to 4 parallel angles only for genuinely cross-cutting multi-subsystem overviews.
8
+ Done when the explanation covers both how the scope works and what it omits or leaves unguarded, with `file:line` citations.
9
+ 2. **Present.** Share the explanation with light edits for clarity or conversation context. Don't pad simple modules or rewrite from scratch.
10
+ Done when every code claim carries a `file:line` citation and open questions are listed.
20
11
 
21
- **Hard rules.** Senior-engineer onboarding depth, not annotated source. Concrete ("`UserService` calls `AuthClient.refresh()`", not "the service delegates"). Explain *why* complex things are complex; don't pad simple ones. Acknowledge open questions.
22
-
23
- **Done when** the question is answered with `file:line` citations for every claim about the code, and each open question is named.
12
+ **Done when** the question is answered with `file:line` citations for every claim about the code and each open question is named.
@@ -18,19 +18,23 @@ An outer loop (`loop.py`, `run-a-goal`, `work-a-queue`, `/goal`) multiplies what
18
18
  - Live artifact proof (`references/principles/prove-it-works.md`). Drive the real CLI, service, or UI through its `verify-<app>` skill or entrypoint.
19
19
  - Thin prose last (`references/techniques/correct.md`). Keep `AGENTS.md` and `CODING_STANDARDS.md` only for judgment calls no check can express.
20
20
  Done when each rule sits at the lowest layer that can check it and every custom check prints how to fix a violation.
21
- 3. **Close code-slop escape hatches in checks.** Make the inner loop fail closed on common agent shortcuts. `loop.py`'s `forbid_slop` guard blocks the first three when they are newly added and `protect_configs` blocks the config half of the fifth; encode the rest as the repo's own lint, structural, or hook rules:
22
- - Inline type or lint suppressions (`# type: ignore`, `# pyright: ignore`, `# noqa`, `# pylint: disable`, `# nosec`, `# pragma: no cover`, `@ts-ignore`, `@ts-expect-error`, `eslint-disable`, `biome-ignore`, `#[allow(`, `#[expect(`, `// nolint`) added instead of fixing the cause (`references/techniques/no-comments.md`).
23
- - Bare `except:` blocks that do not re-raise, broad `except Exception:` handlers whose body is only `pass`, `continue`, `break`, or `return None`, `contextlib.suppress(Exception)`, and empty `catch {}` blocks that hide faults (`references/principles/fix-root-causes.md`).
24
- - Deferred `TODO` or `FIXME` markers and `NotImplementedError` or `throw new Error("not implemented")` stubs left in place of working behavior (`references/playbooks/end-to-end.md`).
25
- - Single-caller pass-through wrappers, speculative options, and dead compatibility shims (`references/principles/minimize-reader-load.md`, `references/principles/outcome-oriented-execution.md`).
26
- - Weakened linter, typechecker, or hook configs and `--no-verify` commit bypasses (`references/techniques/pre-commit.md`, `references/techniques/git-guardrails.md`).
27
- Done when a planted suppression or swallowed exception fails the gate and guardrail configs are protected.
21
+ 3. **Close code-slop escape hatches in checks (0 tokens).** Run `python -B "<this skill>/assets/local-ci/slop_gate.py" --root <root>` (or the compiled Rust `native/dmb-gate` binary) in `.deepmodebot/ci.yml` and git `pre-commit` (`project_setup.py --install-hooks`) so every diff fails closed before any LLM review:
22
+ - Inline type or lint suppressions (`# type: ignore`, `# pyright: ignore`, `# noqa`, `# pylint: disable`, `# nosec`, `@ts-ignore`, `@ts-expect-error`, `eslint-disable`, `biome-ignore`, `#[allow(`, `// nolint`), swallowed exceptions (`except:` / `except Exception: pass`), and `TODO`/`FIXME`/`NotImplementedError` stubs (via `loop.py` `scan_text_slop`).
23
+ - Hardcoded secrets (AWS/GitHub/AI/Stripe keys, PEM private keys), unpinned `@main`/`@master` GitHub Actions, unsafe sinks (`eval`/`innerHTML`/`subprocess.run` without `timeout=`), TS `as any`, Rust `.unwrap()`, and Go `_ = err`.
24
+ - Test theater (empty tests, 0-assertion tests, `assert True`, `assertEqual(x, x)`) and newly added god-functions (`>120` lines or nesting `>5`).
25
+ - Reward-hacking escapes across all domains (`assets/reward-guard/reward_guard.py`, `deepmodebot gate reward`):
26
+ - Quality and coverage bypasses (`--cov-fail-under < 50`, `--min-iou < 0.50`, `--no-cov`, `go test -run=^$`).
27
+ - Unattended snapshot overwrites (`--update-snapshots`, `jest/vitest -u`, `cargo insta accept`) and `package.json` no-op test scripts (`echo`, `true`, `exit 0`).
28
+ - Weakened typecheck and CI configs (`continue-on-error: true`, strictness off in `tsconfig`/`mypy`/`pyright`, `#![allow(warnings)]`).
29
+ - Production test-runner or TLS/FK bypasses (`PYTEST_CURRENT_TEST`, `verify=False`), E2E `/api/` route stubbing, ML train-on-test leakage, and missing outer-supervisor Ed25519 judge sign-off.
30
+ - Polyglot auto-linters on changed files only (`ruff`, `shellcheck`, `node --check`), `perf_audit.py` high findings, `ui_audit.py` P0/P1 findings, `<boundaries>` import rules, `<budgets>` size caps, and guardrail config-tamper locks (`.deepmodebot/policy.xml`).
31
+ Done when a planted suppression, secret, or 0-assertion test fails `slop_gate.py` and guardrail configs are protected.
28
32
  4. **Split fast feedback from full acceptance.** Keep `fast_check` (types, lint, structural checks, fast unit tests) under roughly 30 seconds so every edit gets immediate feedback, and wire it into commit hooks with **pre-commit** (`references/techniques/pre-commit.md`). Keep slower integration suites and live runtime checks in `check` so static checks alone never count as done.
29
33
  Done when `fast_check` and `check` both run from the project root and fail on a planted fault.
30
34
  5. **Bind outer goal loops to the hardened inner loop.** Before launching `loop.py`, `run-a-goal` (`references/playbooks/run-a-goal.md`), or `self-authoring` (`references/playbooks/self-authoring.md`):
31
35
  - Generate a new goal contract (`python -B "<this skill>/assets/loop/loop.py" audit <root> --write-goal .scratch/goals/<slug>.md`, `py -3 -B` on Windows) with `fast_check`, `check`, and `protect` naming every test, fixture, and check script. (`--write-goal` refuses to overwrite an existing goal file; edit existing goal files directly.)
32
36
  - Keep `forbid_slop: true` and `protect_configs: true` enabled (`protect_configs` defaults to `true` except when `protect: none`, where it defaults to `false` unless set explicitly); set `revert_on_fail: true` on a clean tree when failed attempts must reset automatically between iterations.
33
- - Run `python -B "<this skill>/assets/loop/loop.py" check <goal.md>` once to verify the contract parses, protects configs, and fails on the unfixed state. (`loop.py check` always exits `0` and prints gate pass/fail status to stdout, so inspect its printed output rather than relying on a nonzero exit code.)
37
+ - Run `python -B "<this skill>/assets/loop/loop.py" check <goal.md>` once to verify the contract parses, protects configs, and fails on the unfixed state. (`loop.py check` exits `0` for normal gate pass/fail status—inspect its printed output—and exits `4` if a check command mutates protected files or guardrail configs.)
34
38
  - When an outer loop or review hits the same failure class twice, pause fan-out and encode a permanent check via **correct** (`references/techniques/correct.md`).
35
39
  Done when `loop.py check` (or the outer loop's gate) validates the contract and proves a red-to-green path without weakening any check.
36
40