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
@@ -8,21 +8,619 @@ Modes (first argument):
8
8
  activate <data-dir> UserPromptSubmit: mark the session active when the prompt runs a /deepmodebot: command.
9
9
  The mark outlives the process, so a resumed session (same session id) stays guarded;
10
10
  marks older than 30 days are pruned here.
11
+ session-notice SessionStart: show the owner any agent rule changes they have not approved
12
+ (../rules/rules_watch.py), as a systemMessage plus context for the agent.
11
13
 
12
14
  The allowed roots are the worktree holding the session's cwd and its main checkout (they differ in a linked
13
15
  worktree, e.g. one under <root>/.worktrees/ or an Orca workspace), or the cwd itself outside git. Also allowed:
14
16
  Claude Code's own plan and project-memory dirs, and any `extraWriteRoots` listed in a root's .deepmodebot.json
15
17
  (only paths the user named).
16
- Bash, MCP tools and hook programs are not covered here.
18
+ Rule approval (../rules/rule_ledger.py) runs in every PreToolUse mode, active session or not: in a repo whose owner
19
+ turned it on, and for the user-level rules once `deepmodebot rules init --user` ran, Write/Edit/NotebookEdit on agent
20
+ rule files or the ledger are denied, and so are Bash commands that write them; the owner-only
21
+ `rules init|approve|reject` commands are denied everywhere. Each denial also notifies the owner.
22
+ In active sessions and for registered workers, every tool call (Bash included) that reaches the hidden holdout store
23
+ (~/.deepmodebot-holdout in any spelling) or mines git answers (cat-file --batch-all-objects, fsck, reflog recovery,
24
+ raw .git/objects reads, sweeps of / ~ /tmp for tests) is denied with the anti-reward-hacking message.
25
+ Other Bash, MCP tools and hook programs are not covered here.
17
26
  """
27
+ import importlib.util
18
28
  import json
19
29
  import os
30
+ import math
20
31
  import re
21
32
  import subprocess
33
+ from pathlib import Path
22
34
  import sys
23
35
  import time
24
36
 
37
+ sys.dont_write_bytecode = True
38
+
25
39
  MARK_MAX_AGE_SECONDS = 30 * 24 * 3600
40
+ METRIC_FLOORS = {
41
+ "iou": 0.50, "ssim": 0.50, "dice": 0.50, "f1": 0.50, "auc": 0.50,
42
+ "accuracy": 0.50, "acc": 0.50, "precision": 0.50, "recall": 0.50,
43
+ "fidelity": 0.50, "similarity": 0.50, "coverage": 0.50, "pass-rate": 0.50, "win-rate": 0.50,
44
+ "clip": 0.15, "clip-score": 0.15, "ap": 0.15, "map": 0.15, "bleu": 0.15, "rouge": 0.15,
45
+ "psnr": 10.0, "protrusion": 0.02, "score": 0.05, "confidence": 0.05, "symmetry": 0.05,
46
+ "cov-fail-under": 50.0,
47
+ }
48
+ MIN_FLAG_VAL_RE = re.compile(
49
+ r"(?:^|[\s;&|(])(['\"]?--(?:(?:gate-)?mi(?:n(?:-([a-z0-9_-]*))?)?|(cov-fail-under))['\"]?(?:\s+|=)['\"]?\s*([-+]?(?:inf(?:inity)?|nan|(?:\d[\d_]*\.?[\d_]*|\.[\d_]+)(?:[eE][-+]?[\d_]+)?))\s*['\"]?)(?=$|[\s;&|)])",
50
+ re.I,
51
+ )
52
+ RULE_LEDGER = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "rules", "rule_ledger.py")
53
+ WORKER_GATE = os.path.join(os.path.dirname(RULE_LEDGER), "..", "worker-gate", "worker_gate.py")
54
+ NESTED_REASON = ("deepmodebot anti-stacking guard: nested subagent spawning is blocked (max_subagents=0); "
55
+ "execute inline or include ALLOW_NESTED_SUBAGENTS when explicitly authorized.")
56
+ REWARD_HACK_CMD_RE = re.compile(
57
+ r"(?:^|[\s;&|(])['\"]?--(?:skip-reference|skip-fidelity|skip-gates?|skip-verify|skip-validation|bypass-gate|pass-if-no-tests|passWithNoTests|no-cov|(?:update-snapshots|snapshot-update|overwrite-snapshots|updateSnapshot)(?:=[^\s;&|)'\"]+)?)['\"]?(?=$|[\s;&|)])"
58
+ r"|(?:^|[\s;&|(])['\"]?(?:--require-spark-receipt(?:\s+|=)['\"]?false|--gate-mode(?:\s+|=)['\"]?off|--measured-gates(?:\s+|=)['\"]?off|--check-360(?:\s+|=)['\"]?(?:false|0))['\"]?(?=$|[\s;&|)])"
59
+ r"|(?:^|[\s;&|(])(?:(?:jest|vitest|playwright\s+test)\b[^\n;&|]*\s['\"]?(?:-u|--update)['\"]?|cargo\b[^\n;&|]*\sinsta\s+accept|(?:UPDATE_SNAPSHOTS|SNAPSHOT_UPDATE|INSTA_UPDATE)=['\"]?(?:1|true|always|all)['\"]?|go\s+test\b[^\n;&|]*\s-run(?:=|\s+)['\"]?\^\$['\"]?)(?=$|[\s;&|)])"
60
+ r"|\bgit\b[^\n;&|]*\bcommit\b[^\n;&|]*\s['\"]?(?:-n|--no-verify)['\"]?(?=$|[\s;&|)])"
61
+ r"|\b(?:reward-guard\.db|contract-lock\.json|judge_verdicts)\b"
62
+ r"|\breward_guard\.py\b[^\n;&|]*\brecord-judge\b",
63
+ re.I,
64
+ )
65
+
66
+
67
+ def _min_flag_floor(tok):
68
+ norm = (tok or "").lower().replace("_", "-")
69
+ if not norm:
70
+ return 0.50
71
+ if norm in ("p", "k", "port", "ports"):
72
+ return None
73
+ if norm in METRIC_FLOORS:
74
+ return METRIC_FLOORS[norm]
75
+ matches = [v for k, v in METRIC_FLOORS.items() if k.startswith(norm)]
76
+ return max(matches) if matches else None
77
+
78
+ def check_bash_reward_hack(cmd_text):
79
+ cleaned = re.sub(r"(-m|--message)(=|\s+)(\"[^\"]*\"|'[^']*')", r'\1 ""', str(cmd_text or ""))
80
+ for raw_ln in cleaned.replace("\\\r\n", " ").replace("\\\n", " ").splitlines():
81
+ ln = raw_ln.strip()
82
+ if not ln or re.match(r"^(?:grep|rg|echo|printf)\s+[^;&|<>()`$]*$", ln):
83
+ continue
84
+ for fm in MIN_FLAG_VAL_RE.finditer(ln):
85
+ floor = _min_flag_floor(fm.group(3) or fm.group(2))
86
+ if floor is not None:
87
+ try:
88
+ val = float(fm.group(4))
89
+ if not math.isfinite(val) or val < floor:
90
+ return fm.group(1).strip()
91
+ except ValueError:
92
+ pass
93
+ m = REWARD_HACK_CMD_RE.search(ln)
94
+ if m:
95
+ return m.group(0).strip()
96
+ return None
97
+
98
+
99
+ HOLDOUT_DIR = ".deepmodebot-holdout"
100
+ HOLDOUT_FALLBACK = "deepmodebot-holdout"
101
+ HOLDOUT_REASON = ("deepmodebot anti-reward-hacking guard blocked `{hit}`: builders may not read the hidden holdout store "
102
+ "or mine git objects, reflogs, or other agents' temp files for hidden answers.")
103
+ WINDOWS = sys.platform == "win32"
104
+ CASELESS = sys.platform in ("win32", "darwin")
105
+ TMP_ROOTS = ("/tmp", "/var/tmp", "/private/tmp", "/var/folders", "/private/var/folders", "c:/windows/temp")
106
+ HOME_SPELLING_RE = re.compile(
107
+ r"^(?:~|\$\{?(?:home|userprofile)\}?|%(?:home|userprofile)%|\$\{?env:(?:home|userprofile)\}?"
108
+ r"|%homedrive%%homepath%|\$\{?(?:env:)?homedrive\}?\$\{?(?:env:)?homepath\}?)(?=/|$)", re.I)
109
+ LOCAL_SPELLING_RE = re.compile(r"^(?:\$\{?(?:env:)?localappdata\}?|%localappdata%)(?=/|$)", re.I)
110
+ GIT_RAW_RE = re.compile(
111
+ r"(?:^|/)[^/]*\.git/(?:objects|logs|lost-found)(?:/|$)|(?:^|/)objects/(?:pack|info|[0-9a-f]{2})(?:/|$)", re.I)
112
+ GLOB_RE = re.compile(r"[*?\[]")
113
+ TEST_RE = re.compile(
114
+ r"(?:^|[^a-z0-9])(?:tests?|specs?|holdouts?|hidden|golden|graders?|solutions?|answers?|expected|fixtures?)(?:[^a-z0-9]|$)", re.I)
115
+ INTERPRETER_RE = re.compile(
116
+ r"^(?:python|py|node|bun|deno|perl|ruby|php|pwsh|powershell|bash|sh|zsh|dash|ksh|cmd|lua|tsx|ts-node|osascript|rscript)[0-9.]*$")
117
+ LOOP_RE = re.compile(r"(?:^|[\s;&|(])(?:for|while|until|read|xargs)(?=$|[\s;&|)])")
118
+ COMMAND_PREFIXES = frozenset(("sudo", "time", "command", "env", "nohup", "exec", "builtin", "nice", "then", "do", "else", "{"))
119
+ CD_COMMANDS = frozenset(("cd", "pushd", "chdir", "sl", "set-location"))
120
+ GREP_FAMILY = frozenset(("grep", "egrep", "fgrep", "rg", "ag", "ack", "sls", "select-string"))
121
+ ENUMERATORS = frozenset(("find", "fd", "fdfind", "ls", "dir", "tree", "gci", "get-childitem", "locate", "mlocate"))
122
+ CONTENT_READERS = frozenset((
123
+ "cat", "type", "head", "tail", "less", "more", "xargs", "strings", "bat", "tac", "nl", "od", "xxd", "hexdump",
124
+ "get-content", "gc", "select-string", "sls", "findstr"))
125
+ ALWAYS_RECURSIVE = frozenset(("rg", "ag", "ack", "zip", "7z", "7za", "rsync", "robocopy", "xcopy"))
126
+ GREP_ARG_FLAGS = frozenset((
127
+ "-e", "-f", "-m", "-A", "-B", "-C", "-g", "-t", "-T", "-j", "-M", "-d", "-D", "--regexp", "--file", "--max-count",
128
+ "--after-context", "--before-context", "--context", "--glob", "--iglob", "--type", "--type-not", "--include",
129
+ "--exclude", "--exclude-dir", "--include-dir", "--max-depth", "--threads", "-pattern", "-path", "-literalpath"))
130
+ GIT_GLOBAL_ARG_FLAGS = frozenset(("-C", "-c", "--git-dir", "--work-tree", "--namespace", "--super-prefix", "--config-env"))
131
+ GIT_DENIED_SUBCOMMANDS = frozenset(("unpack-file", "prune", "show-index", "verify-pack", "lost-found"))
132
+ GIT_REFLOG_SUBCOMMANDS = frozenset(("log", "show", "rev-list", "whatchanged", "shortlog", "format-patch", "diff", "archive", "grep"))
133
+ GIT_CONTENT_SUBCOMMANDS = frozenset(("show", "diff", "format-patch", "archive", "grep"))
134
+ GIT_RECOVER_SUBCOMMANDS = frozenset((
135
+ "show", "cat-file", "checkout", "restore", "switch", "cherry-pick", "archive", "diff", "format-patch", "read-tree",
136
+ "reset", "merge", "branch", "tag", "update-ref", "worktree", "apply"))
137
+ GIT_CONTENT_FLAGS = (
138
+ "--patch", "--patch-with-stat", "--patch-with-raw", "--cc", "--stat", "--numstat", "--shortstat", "--raw", "--name-only",
139
+ "--name-status", "--full-diff", "--pickaxe-regex", "--pickaxe-all", "--word-diff", "--textconv", "--objects",
140
+ "--summary", "--dirstat")
141
+ TOOL_PATH_KEYS = frozenset((
142
+ "path", "paths", "filepath", "file", "files", "notebookpath", "directory", "dir", "cwd", "root", "targetfile", "searchpath", "searchdirectory", "directorypath", "absolutepath", "abspath", "workdir", "filename"))
143
+ TOOL_PATTERN_KEYS = frozenset(("glob", "include", "pattern"))
144
+ SEARCH_TOOL_RE = re.compile(r"grep|glob|find|^ls$|list|tree|walk|^dir$|^rg$", re.I)
145
+
146
+
147
+ def _homes():
148
+ env = os.environ
149
+ homes = []
150
+ for home in (env.get("HOME"), env.get("USERPROFILE"), (env.get("HOMEDRIVE") or "") + (env.get("HOMEPATH") or ""),
151
+ os.path.expanduser("~")):
152
+ if home and home != "~" and home not in homes:
153
+ homes.append(home)
154
+ return homes
155
+
156
+
157
+ def _prep(path):
158
+ text = path.replace("\\", "/")
159
+ text = re.sub(r"^file:/{2,3}(?:localhost/)?", "/", text, flags=re.I)
160
+ if re.match(r"^/[A-Za-z]:", text):
161
+ text = text[1:]
162
+ text = re.sub(r"^//[?.]/", "", text)
163
+ text = re.sub(r"^//(?:localhost|127\.0\.0\.1)/([A-Za-z])\$(?=/|$)", r"\1:", text, flags=re.I)
164
+ if WINDOWS:
165
+ text = re.sub(r"^/(?:mnt|cygdrive)/([A-Za-z])(?=/|$)", r"\1:", text)
166
+ text = re.sub(r"^/([A-Za-z])(?=/)", r"\1:", text)
167
+ return text
168
+
169
+
170
+ def _segs(path):
171
+ text = _prep(path)
172
+ drive = re.match(r"^[A-Za-z]:(?=/|$)", text)
173
+ if drive:
174
+ root, rest = drive.group(0), text[drive.end():]
175
+ elif text.startswith("/"):
176
+ root, rest = (os.getcwd()[:2] if WINDOWS else "/"), text
177
+ else:
178
+ return None
179
+ out = []
180
+ for part in rest.split("/"):
181
+ if part in ("", "."):
182
+ continue
183
+ if part == "..":
184
+ if out:
185
+ out.pop()
186
+ continue
187
+ if WINDOWS:
188
+ part = re.sub(r"[. ]+$", "", part.split(":", 1)[0])
189
+ if not part:
190
+ continue
191
+ out.append(part)
192
+ if CASELESS:
193
+ root, out = root.lower(), [part.lower() for part in out]
194
+ return [root] + out
195
+
196
+
197
+ def _unsegs(segs):
198
+ return (segs[0] if segs[0] != "/" else "") + "/" + "/".join(segs[1:])
199
+
200
+
201
+ def _abs(text, cwd):
202
+ return _segs(text) or _segs(_unsegs(cwd) + "/" + _prep(text))
203
+
204
+
205
+ def _real_segs(text, cwd):
206
+ raw = _prep(text)
207
+ try:
208
+ return _segs(os.path.realpath(raw if _segs(raw) else _unsegs(cwd) + "/" + raw))
209
+ except (OSError, ValueError):
210
+ return None
211
+
212
+
213
+ def _unique_segs(paths):
214
+ found = []
215
+ for path in paths:
216
+ try:
217
+ real = os.path.realpath(path)
218
+ except (OSError, ValueError):
219
+ real = path
220
+ for segs in (_segs(path), _segs(real)):
221
+ if segs and segs not in found:
222
+ found.append(segs)
223
+ return found
224
+
225
+
226
+ def _braces(text, cap=64):
227
+ match = re.search(r"\{([^{}]*,[^{}]*)\}", text)
228
+ if not match:
229
+ return [text]
230
+ out = []
231
+ for alt in match.group(1).split(","):
232
+ out.extend(_braces(text[:match.start()] + alt + text[match.end():], cap))
233
+ if len(out) >= cap:
234
+ break
235
+ return out[:cap]
236
+
237
+
238
+ def _variants(word):
239
+ out = [word]
240
+ for match in re.finditer(r"=", word):
241
+ out.append(word[match.end():])
242
+ for match in re.finditer(r":(?=[~$%/\\])", word):
243
+ out.append(word[match.end():])
244
+ return [v for i, v in enumerate(out) if v and v not in out[:i]]
245
+
246
+
247
+ def _seg_match(glob, name):
248
+ if not GLOB_RE.search(glob):
249
+ return glob == name
250
+ if glob[0] in "*?[" and name.startswith("."):
251
+ return False
252
+ out, i = [], 0
253
+ while i < len(glob):
254
+ ch = glob[i]
255
+ close = glob.find("]", i + 2) if ch == "[" else -1
256
+ if ch == "*":
257
+ out.append("[^/]*")
258
+ elif ch == "?":
259
+ out.append("[^/]")
260
+ elif close != -1:
261
+ body = glob[i + 1:close]
262
+ out.append("[" + ("^" + body[1:] if body[:1] in ("!", "^") else body).replace("\\", "\\\\") + "]")
263
+ i = close
264
+ else:
265
+ out.append(re.escape(ch))
266
+ i += 1
267
+ try:
268
+ return re.match("^" + "".join(out) + "$", name) is not None
269
+ except re.error:
270
+ return True
271
+
272
+
273
+ def _named_literal(seg):
274
+ return not GLOB_RE.search(seg) or re.sub(r"[.*?\[\]!^\-]", "", seg) != ""
275
+
276
+
277
+ def _gmatch(glob, i, root, j):
278
+ if j == len(root):
279
+ return i < len(glob) or (i > 0 and _named_literal(glob[i - 1]))
280
+ if i == len(glob):
281
+ return False
282
+ if glob[i] == "**":
283
+ return _gmatch(glob, i + 1, root, j) or _gmatch(glob, i, root, j + 1)
284
+ return _seg_match(glob[i], root[j]) and _gmatch(glob, i + 1, root, j + 1)
285
+
286
+
287
+ def _base(word):
288
+ name = word.replace("\\", "/").split("/")[-1].lower()
289
+ return name[:-4] if name.endswith(".exe") else name
290
+
291
+
292
+ def _lead(words):
293
+ prefixed = False
294
+ for i, word in enumerate(words):
295
+ if re.match(r"^[A-Za-z_]\w*=", word) or _base(word) in COMMAND_PREFIXES:
296
+ prefixed = True
297
+ elif not (prefixed and word.startswith("-")):
298
+ return i
299
+ return len(words)
300
+
301
+
302
+ def _opt(token, full, minlen):
303
+ name = token.split("=", 1)[0]
304
+ return name.startswith("--") and len(name) >= minlen and full.startswith(name)
305
+
306
+
307
+ class HoldoutScan:
308
+ def __init__(self, cwd):
309
+ self.homes = _homes()
310
+ self.cwd = _segs(cwd) or _segs(os.getcwd()) or ["/"]
311
+ stores = [os.path.join(home, HOLDOUT_DIR) for home in self.homes]
312
+ local = os.environ.get("LOCALAPPDATA")
313
+ if local:
314
+ stores.append(os.path.join(local, HOLDOUT_FALLBACK))
315
+ stores.append("/tmp/" + HOLDOUT_FALLBACK)
316
+ self.roots = _unique_segs(stores)
317
+ self.tmp = _unique_segs(list(TMP_ROOTS) + [os.path.join(home, "AppData", "Local", "Temp") for home in self.homes])
318
+ self.real_budget = 200
319
+
320
+ def expand(self, item):
321
+ match = HOME_SPELLING_RE.match(item)
322
+ if match:
323
+ return [home + item[match.end():] for home in self.homes] or [item]
324
+ local = os.environ.get("LOCALAPPDATA")
325
+ match = LOCAL_SPELLING_RE.match(item)
326
+ return [local + item[match.end():]] if match and local else [item]
327
+
328
+ def candidates(self, word, cwd):
329
+ found = []
330
+ for variant in _variants(word.replace("\\", "/")):
331
+ for item in _braces(variant):
332
+ for text in self.expand(item):
333
+ found.append(_abs(text, cwd))
334
+ if self.real_budget > 0 and "/" in _prep(text) and not GLOB_RE.search(text):
335
+ self.real_budget -= 1
336
+ real = _real_segs(text, cwd)
337
+ if real:
338
+ found.append(real)
339
+ return found
340
+
341
+ def reaches(self, cands):
342
+ return any(_gmatch(c, 0, r, 0) for c in cands for r in self.roots)
343
+
344
+ def above(self, cands, widen=False):
345
+ heads = [_literal_head(c) if widen else c for c in cands]
346
+ return any(not any(GLOB_RE.search(s) for s in h) and len(h) <= len(r) and r[:len(h)] == h
347
+ for h in heads for r in self.roots)
348
+
349
+ def in_tmp(self, segs):
350
+ return any(len(segs) >= len(t) and segs[:len(t)] == t for t in self.tmp) and not (
351
+ len(segs) >= len(self.cwd) and segs[:len(self.cwd)] == self.cwd)
352
+
353
+
354
+ def _literal_head(segs):
355
+ for i, seg in enumerate(segs):
356
+ if GLOB_RE.search(seg):
357
+ return segs[:i]
358
+ return segs
359
+
360
+
361
+ def _computed_home(word):
362
+ for variant in _variants(word):
363
+ match = HOME_SPELLING_RE.match(variant)
364
+ first = variant[match.end():].lstrip("/").split("/", 1)[0] if match else ""
365
+ if first and re.search(r"\$|%[A-Za-z_]\w*%", first):
366
+ return True
367
+ return False
368
+
369
+
370
+ def _grep_skips(words):
371
+ skips = set()
372
+ for i, word in enumerate(words):
373
+ name = _base(word)
374
+ if name not in GREP_FAMILY:
375
+ continue
376
+ k, have_pattern = i + 1, False
377
+ while k < len(words) and words[k].startswith("-") and words[k] != "-" and words[k] != "--":
378
+ flag = words[k] if len(words[k]) <= 2 else words[k].lower()
379
+ if flag.startswith("--regexp="):
380
+ skips.add(k)
381
+ have_pattern = True
382
+ if flag in ("-e", "--regexp", "-pattern"):
383
+ have_pattern = True
384
+ skips.add(k + 1)
385
+ k += 2 if flag in GREP_ARG_FLAGS or (name == "rg" and flag == "-r") else 1
386
+ if k < len(words) and words[k] == "--":
387
+ k += 1
388
+ if not have_pattern and k < len(words):
389
+ skips.add(k)
390
+ return skips
391
+
392
+
393
+ def _content_flag(token):
394
+ return (any(_opt(token, full, 4) for full in GIT_CONTENT_FLAGS) or re.fullmatch(r"-\d*[pu]", token) is not None
395
+ or token.startswith(("-S", "-G")))
396
+
397
+
398
+ def _git_calls(words):
399
+ calls = []
400
+ for i, word in enumerate(words):
401
+ name = _base(word)
402
+ dashed = re.fullmatch(r"git-([a-z-]+)", name)
403
+ if dashed:
404
+ calls.append((dashed.group(1), words[i + 1:]))
405
+ elif name == "git":
406
+ k = i + 1
407
+ while k < len(words) and words[k].startswith("-"):
408
+ k += 2 if words[k] in GIT_GLOBAL_ARG_FLAGS else 1
409
+ if k < len(words):
410
+ calls.append((words[k].lower(), words[k + 1:]))
411
+ return calls
412
+
413
+
414
+ def _reflog_flagged(sub, args):
415
+ return sub in GIT_REFLOG_SUBCOMMANDS and any(
416
+ a == "-g" or _opt(a, "--reflog", 6) or _opt(a, "--walk-reflogs", 7) for a in args)
417
+
418
+
419
+ def _git_hit(sub, args):
420
+ if sub == "cat-file" and any(_opt(a, "--batch-all-objects", 9) for a in args):
421
+ return "git cat-file --batch-all-objects"
422
+ if sub in ("fsck", "fsck-objects"):
423
+ bad = any(_opt(a, "--lost-found", 4) or _opt(a, "--unreachable", 4) or _opt(a, "--dangling", 3)
424
+ or _opt(a, "--no-reflogs", 6) for a in args)
425
+ if bad or not any(_opt(a, "--no-dangling", 8) for a in args):
426
+ return "git fsck"
427
+ if sub in GIT_DENIED_SUBCOMMANDS:
428
+ return "git " + sub
429
+ content = any(_content_flag(a) for a in args)
430
+ if (_reflog_flagged(sub, args) and (sub in GIT_CONTENT_SUBCOMMANDS or content)) or (sub == "reflog" and content):
431
+ return "git " + sub + " reflog content"
432
+ return None
433
+
434
+
435
+ def _git_role(sub, args):
436
+ feeder = sub == "reflog" or _reflog_flagged(sub, args) or (
437
+ sub == "rev-list" and any(_opt(a, "--objects", 5) for a in args)
438
+ and any(a == "--all" or _opt(a, "--reflog", 6) for a in args))
439
+ sink = sub in GIT_RECOVER_SUBCOMMANDS or (sub == "cat-file" and any(a.startswith("--batch") for a in args))
440
+ return feeder, sink
441
+
442
+
443
+ def _recursive(name, args):
444
+ low = [a.lower() for a in args]
445
+ if name in ALWAYS_RECURSIVE:
446
+ return True
447
+ if name in GREP_FAMILY:
448
+ return (any(re.fullmatch(r"-[a-zA-Z]*[rR][a-zA-Z]*", a) or a in ("--recursive", "--dereference-recursive")
449
+ for a in args) or "-recurse" in low or ("-d" in args and "recurse" in args))
450
+ if name in ("cp", "scp", "copy-item", "cpi"):
451
+ return any(re.fullmatch(r"-[a-zA-Z]*[rRa][a-zA-Z]*", a) or a == "--recursive" for a in args) or "-recurse" in low
452
+ if name == "tar":
453
+ return bool(args) and (args[0] == "--create" or re.fullmatch(r"-?[a-zA-Z]*c[a-zA-Z]*", args[0]) is not None)
454
+ return name == "findstr" and "/s" in low
455
+
456
+
457
+ def _content_reader(words):
458
+ consumes = any(_base(w) in GREP_FAMILY or _base(w) in ("sed", "awk") for w in words)
459
+ return any(_base(w) in CONTENT_READERS or re.match(r"^-(?:exec|execdir|ok|okdir)$", w) or (w == "$" and consumes)
460
+ for w in words)
461
+
462
+
463
+ def _sweep_hit(scan, stages, content):
464
+ has_test = TEST_RE.search(" ".join(w for st in stages if st for w in st["words"])) is not None
465
+ for st in stages:
466
+ if not st:
467
+ continue
468
+ for i, word in enumerate(st["words"]):
469
+ name = _base(word)
470
+ rec = _recursive(name, st["words"][i + 1:])
471
+ enum = name in ENUMERATORS
472
+ if (rec or (enum and content)) and scan.above(st["ops"] + [st["start"]], rec):
473
+ return name + " over a directory holding the holdout store"
474
+ if not has_test:
475
+ continue
476
+ for op in st["ops"]:
477
+ broad = rec or (enum and content) or (name in CONTENT_READERS and any(GLOB_RE.search(s) for s in op))
478
+ if broad and scan.in_tmp(op):
479
+ return name + " sweeping temp directories for tests"
480
+ return None
481
+
482
+
483
+ def _scan_stage(scan, words, cur):
484
+ lead, skips, ops, calls = _lead(words), _grep_skips(words), [], []
485
+ for i, word in enumerate(words):
486
+ token = re.sub(r"^\d*[<>]+", "", word)
487
+ if i in skips or not token:
488
+ continue
489
+ if GIT_RAW_RE.search(token.replace("\\", "/")):
490
+ return token, None
491
+ if token.startswith("-") and "=" not in token:
492
+ continue
493
+ cands = scan.candidates(token, cur)
494
+ if _computed_home(token) or scan.reaches(cands):
495
+ return token, None
496
+ if i > lead:
497
+ ops.extend(cands)
498
+ gwords = [part for w in words for part in re.split(r"[,\[\]]+", w) if part]
499
+ for sub, args in _git_calls(gwords):
500
+ hit = _git_hit(sub, args)
501
+ if hit:
502
+ return hit, None
503
+ calls.append((sub, args))
504
+ return None, {"words": words, "ops": ops, "start": cur, "git": calls, "lead": lead}
505
+
506
+
507
+ def _next_cwd(scan, st, cur):
508
+ words, lead = st["words"], st["lead"]
509
+ if lead >= len(words) or _base(words[lead]) not in CD_COMMANDS or "-" in words[lead + 1:]:
510
+ return cur
511
+ args = [w for w in words[lead + 1:] if not w.startswith("-") and not re.fullmatch(r"/[A-Za-z]", w)]
512
+ first = scan.candidates(args[0] if args else "~", cur)[0]
513
+ return cur if any(GLOB_RE.search(s) for s in first) else first
514
+
515
+
516
+ def _git_link_hit(stages, ci, links):
517
+ feeders, sinks = [], []
518
+ for si, st in enumerate(stages):
519
+ if not st:
520
+ continue
521
+ for sub, args in st["git"]:
522
+ feeder, sink = _git_role(sub, args)
523
+ feeders += [si] if feeder else []
524
+ sinks += [si] if sink else []
525
+ sinks += [si] if any(_base(w) == "xargs" for w in st["words"]) else []
526
+ links["feeders"] += [(ci, f) for f in feeders]
527
+ links["sinks"] += [(ci, s) for s in sinks]
528
+ if any(f != s for f in feeders for s in sinks):
529
+ return "git history listing piped into content recovery"
530
+ return None
531
+
532
+
533
+ def _scan_text(scan, text):
534
+ text = re.sub(r"`([^`]*)`", r"$(\1)", text)
535
+ cur, links = scan.cwd, {"feeders": [], "sinks": []}
536
+ for ci, chain in enumerate(re.split(r"\|\||&&|[;&\r\n]", text)):
537
+ stages = []
538
+ for part in re.split(r"[|()]", chain):
539
+ words = [w for w in re.split(r"\s+", part) if w]
540
+ hit, stage = _scan_stage(scan, words, cur) if words else (None, None)
541
+ if hit:
542
+ return hit
543
+ stages.append(stage)
544
+ cur = _next_cwd(scan, stage, cur) if stage else cur
545
+ content = any(st and _content_reader(st["words"]) for st in stages)
546
+ hit = _git_link_hit(stages, ci, links) or _sweep_hit(scan, stages, content)
547
+ if hit:
548
+ return hit
549
+ if LOOP_RE.search(text) and any(f != s for f in links["feeders"] for s in links["sinks"]):
550
+ return "git history listing piped into content recovery"
551
+ return None
552
+
553
+
554
+ def _inline_name_hit(text, eval_mode):
555
+ reduced = re.sub(r"[\s'\"+,()\[\]`\\^$/]", "", text.lower())
556
+ if "deepmodebot-holdout" not in reduced:
557
+ return None
558
+ if eval_mode or any(INTERPRETER_RE.match(_base(w)) for w in re.split(r"[\s;&|()'\"`]+", text) if w):
559
+ return HOLDOUT_DIR
560
+ return None
561
+
562
+
563
+ def holdout_command_hit(command, cwd, eval_mode=False):
564
+ text = re.sub(r"(-m|--message)(=|\s+)(\"[^\"]*\"|'[^']*')", r'\1 ""', str(command or ""))
565
+ text = text.replace("\\\r\n", " ").replace("\\\n", " ")
566
+ scan = HoldoutScan(cwd)
567
+ hit = _inline_name_hit(text, eval_mode)
568
+ if hit:
569
+ return hit
570
+ flat = re.sub(r"\$(?=['\"])", "", text).replace("'", "").replace('"', "")
571
+ for view in (flat.replace("\\", "/"), re.sub(r"[\\^`]", "", flat)):
572
+ hit = _scan_text(scan, view)
573
+ if hit:
574
+ return hit
575
+ return None
576
+
577
+
578
+ def _tool_variants(value):
579
+ out = [value, re.sub(r"#[0-9A-Za-z]{4}$", "", value), re.sub(r":\d+(?:-\d+)?(?:,.*)?$", "", value)]
580
+ for pattern in (r"^\[(.+)#[0-9A-Za-z]+\]$", r"^(.{2,}?):[^/\\]"):
581
+ match = re.match(pattern, value)
582
+ if match:
583
+ out.append(match.group(1))
584
+ return [v for i, v in enumerate(out) if v and v not in out[:i]]
585
+
586
+
587
+ def _tool_strings(value):
588
+ if isinstance(value, str):
589
+ return [value]
590
+ return [v for v in value if isinstance(v, str)] if isinstance(value, list) else []
591
+
592
+
593
+ def holdout_tool_hit(tool_name, tool_input, cwd):
594
+ name = str(tool_name or "")
595
+ search = SEARCH_TOOL_RE.search(name) is not None
596
+ pattern_ok = search and "grep" not in name.lower()
597
+ bases, patterns = [], []
598
+ for key, value in tool_input.items():
599
+ norm = re.sub(r"[_\-\s]", "", str(key)).lower()
600
+ if norm in TOOL_PATTERN_KEYS and (norm != "pattern" or pattern_ok):
601
+ patterns.extend(_tool_strings(value))
602
+ if norm in TOOL_PATH_KEYS:
603
+ bases.extend(_tool_strings(value))
604
+ if not search and not bases and not patterns:
605
+ return None
606
+ scan = HoldoutScan(cwd)
607
+ texts = [piece for value in bases + patterns for piece in value.split(";")]
608
+ texts += [b.rstrip("/\\") + "/" + p for b in (bases or [_unsegs(scan.cwd)]) for p in patterns]
609
+ for text in texts:
610
+ for variant in _tool_variants(text.strip()):
611
+ cands = scan.candidates(variant, scan.cwd)
612
+ if GIT_RAW_RE.search(variant.replace("\\", "/")) or scan.reaches(cands) or (search and scan.above(cands, True)):
613
+ return variant
614
+ if search and not bases and scan.above([scan.cwd]):
615
+ return _unsegs(scan.cwd)
616
+ return None
617
+
618
+
619
+ def holdout_guard_hit(event, tool_name, tool_input):
620
+ cwd = event.get("cwd") or os.environ.get("CLAUDE_PROJECT_DIR") or os.getcwd()
621
+ if tool_name == "Bash":
622
+ return holdout_command_hit(tool_input.get("command") or "", cwd)
623
+ return holdout_tool_hit(tool_name, tool_input, cwd)
26
624
 
27
625
 
28
626
  def real(path):
@@ -71,11 +669,110 @@ def allowed_roots(roots):
71
669
  return [real(r) for r in allowed]
72
670
 
73
671
 
672
+ def rule_hints():
673
+ """Lowercase fragments that any rule path or owner rule command contains (from rules/rule-paths.json)."""
674
+ try:
675
+ with open(os.path.join(os.path.dirname(RULE_LEDGER), "rule-paths.json"), encoding="utf-8") as handle:
676
+ spec = json.load(handle)
677
+ except (OSError, ValueError):
678
+ return []
679
+ dirs = [str(d).lower().strip("/") for d in spec.get("dirs", [])]
680
+ named = [str(n).lower() for n in spec.get("names", []) + spec.get("files", [])]
681
+ user = spec.get("user") or {}
682
+ named += [str(f).lower() for f in user.get("files", [])]
683
+ dirs += [str(d).lower().strip("/") for d in user.get("dirs", [])]
684
+ return named + dirs + [d.split("/")[0] for d in dirs] + ["deepmodebot", "rule_ledger"]
685
+
686
+
687
+ def load_asset(name, path):
688
+ mod = sys.modules.get(name)
689
+ if mod is None:
690
+ spec = importlib.util.spec_from_file_location(name, path)
691
+ mod = importlib.util.module_from_spec(spec)
692
+ sys.modules[spec.name] = mod
693
+ spec.loader.exec_module(mod)
694
+ return mod
695
+
696
+
697
+ def session_notice(event):
698
+ """SessionStart output: the unapproved-rules notice for this session, or "" when nothing is pending."""
699
+ watch = os.path.join(os.path.dirname(RULE_LEDGER), "rules_watch.py")
700
+ if not os.path.isfile(watch):
701
+ return ""
702
+ mod = load_asset("dmb_rules_watch", watch)
703
+ cwd = event.get("cwd") or os.environ.get("CLAUDE_PROJECT_DIR") or os.getcwd()
704
+ return mod.render(mod.check(cwd, set()), "claude")
705
+
706
+
707
+ def ledger_near(folder):
708
+ """Whether the repo holding `folder` has an owner rule ledger in its working tree."""
709
+ cur = os.path.abspath(folder)
710
+ while True:
711
+ if os.path.lexists(os.path.join(cur, ".deepmodebot", "rules", "ledger.json")):
712
+ return True
713
+ parent = os.path.dirname(cur)
714
+ if os.path.lexists(os.path.join(cur, ".git")) or parent == cur:
715
+ return False
716
+ cur = parent
717
+
718
+
719
+ def rule_guard_reason(event, tool_name, tool_input):
720
+ """Why rule approval denies this tool call, or None (see rules/rule_ledger.py guard).
721
+
722
+ rules/rule_ledger.py loads only for shell commands in a ledger repo, text naming a rule path or an owner command,
723
+ or a write whose target (or its resolved target) looks like a rule path.
724
+ """
725
+ cwd = event.get("cwd") or os.environ.get("CLAUDE_PROJECT_DIR") or os.getcwd()
726
+ if tool_name == "Bash":
727
+ paths, command = [], str(tool_input.get("command") or "")
728
+ text = command
729
+ elif tool_name in ("Write", "Edit", "NotebookEdit"):
730
+ target = tool_input.get("file_path") or tool_input.get("notebook_path")
731
+ paths, command = ([target] if isinstance(target, str) and target else []), ""
732
+ full = [os.path.join(cwd, os.path.expanduser(p)) for p in paths]
733
+ text = " ".join(full + [os.path.realpath(p) for p in full])
734
+ else:
735
+ return None
736
+ text = text.lower().replace("\\", "/")
737
+ needed = any(h in text for h in rule_hints()) or (tool_name == "Bash" and ledger_near(cwd))
738
+ if not os.path.isfile(RULE_LEDGER) or not needed:
739
+ return None
740
+ mod = load_asset("dmb_rule_ledger", RULE_LEDGER)
741
+ reason = mod.guard(cwd, paths=paths, command=command)
742
+ if reason:
743
+ mod.notify_blocked(reason, str(cwd))
744
+ return reason
745
+
746
+
74
747
  def deny(reason):
75
748
  print(json.dumps({"hookSpecificOutput": {
76
749
  "hookEventName": "PreToolUse", "permissionDecision": "deny", "permissionDecisionReason": reason}}))
77
750
 
78
751
 
752
+ def agent_guard_reason(prompt):
753
+ env = os.environ
754
+ depth = env.get("DEEPMODEBOT_SUBAGENT_DEPTH")
755
+ nested = (env.get("TEAMWORK_RUN_ID") or env.get("SWARM_ID") or depth not in (None, "", "0")
756
+ or env.get("DEEPMODEBOT_MAX_SUBAGENTS") == "0")
757
+ if nested and env.get("ALLOW_NESTED_SUBAGENTS") != "1" and "ALLOW_NESTED_SUBAGENTS" not in str(prompt or ""):
758
+ return NESTED_REASON
759
+ return None
760
+
761
+
762
+ def slice_guard_reason(root, worker, target):
763
+ if not re.fullmatch(r"[A-Za-z0-9._-]+", worker):
764
+ return "deepmodebot: invalid worker ID"
765
+ try:
766
+ root = Path(root).resolve()
767
+ manifest = root / ".scratch" / "slices" / (worker + ".json")
768
+ if manifest.exists():
769
+ gate = load_asset("dmb_worker_gate", WORKER_GATE)
770
+ return gate.write_issue(root, worker, target)
771
+ except (ValueError, OSError, RuntimeError) as exc:
772
+ return f"deepmodebot cannot check the owned slice for {worker}: {exc}"
773
+ return None
774
+
775
+
79
776
  def session_mark(data_dir, event):
80
777
  session = re.sub(r"[^A-Za-z0-9_-]", "", str(event.get("session_id") or ""))
81
778
  return os.path.join(data_dir, "active-sessions", session) if data_dir and session else None
@@ -91,8 +788,13 @@ def main():
91
788
  if not isinstance(event, dict):
92
789
  return 0
93
790
  mark = session_mark(sys.argv[2] if len(sys.argv) > 2 else "", event)
791
+ if mode == "session-notice":
792
+ notice = session_notice(event)
793
+ if notice:
794
+ print(notice)
795
+ return 0
94
796
  if mode == "activate":
95
- if mark and re.match(r"\s*/deepmodebot:", str(event.get("prompt") or "")):
797
+ if mark and re.match(r"\s*/(?:deepmodebot:|(?:deep|deepmodebot|suggest|research|tournament|review-pr|land-pr|pr-thread|contribute|project-brief)\b)", str(event.get("prompt") or "")):
96
798
  folder = os.path.dirname(mark)
97
799
  os.makedirs(folder, exist_ok=True)
98
800
  try:
@@ -108,13 +810,34 @@ def main():
108
810
  pass
109
811
  open(mark, "w").close()
110
812
  return 0
111
- if mode == "if-active" and not (mark and os.path.exists(mark)):
112
- return 0
113
- if event.get("tool_name") not in ("Write", "Edit", "NotebookEdit"):
114
- return 0
813
+ tool_name = event.get("tool_name")
115
814
  tool_input = event.get("tool_input")
116
815
  if not isinstance(tool_input, dict):
117
816
  return 0
817
+ rule_reason = rule_guard_reason(event, tool_name, tool_input)
818
+ if rule_reason:
819
+ deny(rule_reason)
820
+ return 0
821
+ if tool_name == "Agent":
822
+ reason = agent_guard_reason(tool_input.get("prompt"))
823
+ if reason:
824
+ deny(reason)
825
+ return 0
826
+ active = mode != "if-active" or bool(mark and os.path.exists(mark))
827
+ worker = os.environ.get("DEEPMODEBOT_WORKER_ID")
828
+ if active or worker:
829
+ hit = holdout_guard_hit(event, tool_name, tool_input)
830
+ if hit:
831
+ deny(HOLDOUT_REASON.format(hit=hit[:120]))
832
+ return 0
833
+ if tool_name == "Bash":
834
+ if active:
835
+ bad = check_bash_reward_hack(tool_input.get("command") or "")
836
+ if bad:
837
+ deny(f"deepmodebot anti-reward-hacking guard blocked `{bad}`: builders may not zero thresholds, skip reference/verification gates, or tamper with provenance ledgers.")
838
+ return 0
839
+ if tool_name not in ("Write", "Edit", "NotebookEdit") or not (active or worker):
840
+ return 0
118
841
  target = tool_input.get("file_path") or tool_input.get("notebook_path")
119
842
  if not isinstance(target, str) or not target:
120
843
  return 0
@@ -122,6 +845,13 @@ def main():
122
845
  path = real(target if os.path.isabs(os.path.expanduser(target)) else os.path.join(cwd, target))
123
846
  roots = project_roots(cwd)
124
847
  root = os.path.normpath(roots[0])
848
+ if worker:
849
+ reason = slice_guard_reason(root, worker, os.path.join(cwd, os.path.expanduser(target)))
850
+ if reason:
851
+ deny(reason)
852
+ return 0
853
+ if not active:
854
+ return 0
125
855
  if any(inside(path, r) for r in allowed_roots(roots)):
126
856
  return 0
127
857
  deny(f"deepmodebot keeps all writes inside the project root {root}. {target} is outside it. "