deepmodebot 0.9.0 → 0.10.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.
- package/.agents/plugins/marketplace.json +20 -0
- package/.claude-plugin/marketplace.json +2 -2
- package/.omp-plugin/marketplace.json +2 -2
- package/README.md +29 -5
- package/bin/deepmodebot.mjs +187 -10
- package/lib/clients.mjs +50 -3
- package/lib/tree.mjs +64 -10
- package/lib/version.mjs +26 -0
- package/native/dmb-gate/Cargo.toml +13 -0
- package/native/dmb-gate/src/agents.rs +77 -0
- package/native/dmb-gate/src/ci.rs +516 -0
- package/native/dmb-gate/src/cleanup.rs +198 -0
- package/native/dmb-gate/src/gap.rs +1376 -0
- package/native/dmb-gate/src/guard.rs +135 -0
- package/native/dmb-gate/src/main.rs +327 -0
- package/native/dmb-gate/src/map.rs +173 -0
- package/native/dmb-gate/src/perf.rs +347 -0
- package/native/dmb-gate/src/reward.rs +1214 -0
- package/native/dmb-gate/src/skill_check.rs +171 -0
- package/native/dmb-gate/src/slop.rs +1238 -0
- package/native/dmb-gate/src/ui.rs +842 -0
- package/native/dmb-gate/src/util.rs +260 -0
- package/native/dmb-net/go.mod +3 -0
- package/native/dmb-net/main.go +624 -0
- package/native/dmb-net/main_test.go +122 -0
- package/package.json +12 -2
- package/plugins/deepmodebot/.antigravity-plugin/plugin.json +1 -1
- package/plugins/deepmodebot/.antigravity-plugin/skills/deep/SKILL.md +5 -5
- package/plugins/deepmodebot/.antigravity-plugin/skills/pr-thread/SKILL.md +1 -1
- package/plugins/deepmodebot/.antigravity-plugin/skills/review-pr/SKILL.md +2 -2
- package/plugins/deepmodebot/.antigravity-plugin/skills/suggest/SKILL.md +13 -0
- package/plugins/deepmodebot/.antigravity-plugin/skills/tournament/SKILL.md +2 -2
- package/plugins/deepmodebot/.claude-plugin/plugin.json +1 -1
- package/plugins/deepmodebot/.codex-plugin/plugin.json +46 -0
- package/plugins/deepmodebot/agents/comment-sicko/agent.md +35 -0
- package/plugins/deepmodebot/agents/researcher/agent.md +33 -0
- package/plugins/deepmodebot/agents/reviewer/agent.md +4 -2
- package/plugins/deepmodebot/agents/scout/agent.md +11 -12
- package/plugins/deepmodebot/agents/security-reviewer/agent.md +2 -1
- package/plugins/deepmodebot/commands/deep.md +6 -6
- package/plugins/deepmodebot/commands/research.md +8 -0
- package/plugins/deepmodebot/commands/suggest.md +10 -0
- package/plugins/deepmodebot/commands/tournament.md +2 -2
- package/plugins/deepmodebot/hooks/hooks.json +2 -2
- package/plugins/deepmodebot/hooks.json +1 -1
- package/plugins/deepmodebot/scripts/antigravity-guard.mjs +140 -7
- package/plugins/deepmodebot/scripts/omp-mcp-server.mjs +179 -47
- package/plugins/deepmodebot/skills/agent-harnesses/SKILL.md +4 -6
- package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/check_antigravity.py +3 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/ai-native-tooling.md +4 -0
- package/plugins/deepmodebot/skills/agent-harnesses/references/ai-sdk-selection.md +3 -1
- package/plugins/deepmodebot/skills/agent-harnesses/references/antigravity.md +2 -2
- package/plugins/deepmodebot/skills/agent-harnesses/references/delegation-efficiency.md +12 -2
- package/plugins/deepmodebot/skills/agent-harnesses/references/protocols.md +11 -3
- package/plugins/deepmodebot/skills/app-automation-relay/SKILL.md +17 -0
- package/plugins/deepmodebot/skills/app-automation-relay/assets/relay_server.ts +364 -0
- package/plugins/deepmodebot/skills/app-automation-relay/references/adapter-cookbook.md +15 -0
- package/plugins/deepmodebot/skills/app-automation-relay/references/wire-protocol.md +23 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/SKILL.md +4 -3
- package/plugins/deepmodebot/skills/cloud-devsecops/references/cloudflare-edge.md +43 -0
- package/plugins/deepmodebot/skills/cloud-devsecops/references/local-emulators.md +15 -2
- package/plugins/deepmodebot/skills/contribute/SKILL.md +3 -35
- package/plugins/deepmodebot/skills/create-formal-verification-skill/LICENSE +21 -0
- package/plugins/deepmodebot/skills/create-formal-verification-skill/NOTICE.md +16 -0
- package/plugins/deepmodebot/skills/create-formal-verification-skill/SKILL.md +71 -0
- package/plugins/deepmodebot/skills/create-verification-skill/SKILL.md +2 -2
- package/plugins/deepmodebot/skills/deep-learning/LICENSE +21 -0
- package/plugins/deepmodebot/skills/deep-learning/SKILL.md +33 -0
- package/plugins/deepmodebot/skills/deep-learning/references/neural-architectures.md +43 -0
- package/plugins/deepmodebot/skills/deep-learning/references/papers-and-repos.md +128 -0
- package/plugins/deepmodebot/skills/deep-learning/references/reinforcement-learning.md +57 -0
- package/plugins/deepmodebot/skills/deep-learning/references/training-optimization.md +40 -0
- package/plugins/deepmodebot/skills/deep-learning/references/weight-space-programming.md +76 -0
- package/plugins/deepmodebot/skills/deep-learning/scripts/hf_passes.py +166 -0
- package/plugins/deepmodebot/skills/deep-learning/scripts/wsp.py +493 -0
- package/plugins/deepmodebot/skills/deep-stack/SKILL.md +1 -1
- package/plugins/deepmodebot/skills/deep-stack/references/design-workflow.md +46 -92
- package/plugins/deepmodebot/skills/deep-stack/references/isolate.md +1 -0
- package/plugins/deepmodebot/skills/deep-stack/references/prove.md +6 -0
- package/plugins/deepmodebot/skills/deep-stack/references/stack.md +11 -1
- package/plugins/deepmodebot/skills/deepmodebot/SKILL.md +74 -145
- package/plugins/deepmodebot/skills/deepmodebot/assets/agents-md/agents_md.py +18 -6
- package/plugins/deepmodebot/skills/deepmodebot/assets/autoroute/autoroute.py +1021 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/cleanup/self_cleanup.py +305 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/claude_guard.py +98 -5
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/omp-contain.ts +106 -5
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/design.py +3 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/record.py +2 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/rehearsal_gate.py +536 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/review.py +2 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/formal-verification/verify_proof.py +638 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/gap-audit/gap_audit.py +1053 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/gen-ui/gen_ui.py +1782 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard-patterns.txt +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard.sh +3 -2
- package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard.ts +9 -5
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/ghapp.py +2 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/install.py +2 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/local-ci/local_ci.py +540 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/local-ci/slop_gate.py +642 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/loop.py +2 -1
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/plan.py +2 -1
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/windows_job.py +2 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/memory/project_memory.py +529 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/bench_harness.py +48 -21
- package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/perf_audit.py +339 -5
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/diff_coverage.py +96 -6
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/pr_agent_local.py +2 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/arena.py +2 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/show_thread.py +2 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/prompt-tools/prompt_tools.py +1239 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/quota-guard/quota_guard.py +424 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/repo-references.json +477 -1
- package/plugins/deepmodebot/skills/deepmodebot/assets/reward-guard/reward_guard.py +1597 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/rules/rule-paths.json +57 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/rules/rule_ledger.py +1645 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_enrich.py +2 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_meta.py +2 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_transcript_relay.js +13 -10
- package/plugins/deepmodebot/skills/deepmodebot/assets/security-audit/static_sec_audit.py +275 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/self-grill/self_grill.py +1473 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/setup/model_setup.py +329 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/setup/project_setup.py +312 -0
- package/plugins/deepmodebot/skills/deepmodebot/assets/tournament/tournament.py +304 -18
- package/plugins/deepmodebot/skills/deepmodebot/assets/workspace-map/workspace_map.py +121 -78
- package/plugins/deepmodebot/skills/deepmodebot/references/README.md +14 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/catalog.md +16 -11
- package/plugins/deepmodebot/skills/deepmodebot/references/contain.md +2 -1
- package/plugins/deepmodebot/skills/deepmodebot/references/delegation.md +14 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/flows.md +2 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/full-scope.md +9 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/babysit.md +2 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/end-to-end.md +12 -9
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/feature.md +7 -3
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/hillclimb.md +2 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/investigation.md +4 -4
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/opening-a-pr.md +1 -1
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/perf-issue.md +13 -10
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/refactoring.md +6 -6
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/reference-rebuild.md +1 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/run-a-goal.md +3 -1
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/setup.md +1 -2
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/visual-parity.md +1 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/work-a-queue.md +4 -2
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/hardcore-mode.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/no-reward-hacking.md +8 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/test-behavior-not-implementation.md +2 -1
- package/plugins/deepmodebot/skills/deepmodebot/references/principles/type-system-discipline.md +2 -2
- package/plugins/deepmodebot/skills/deepmodebot/references/rule-approval.md +51 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/architect.md +10 -24
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/architecture-review.md +5 -4
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/arena.md +3 -3
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/autoroute.md +49 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/blast-radius.md +1 -1
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/catchup-video.md +13 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/correct.md +8 -7
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/course.md +2 -1
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/devex-review.md +13 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/expand-contract.md +13 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/formal-verification.md +33 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/gen-ui.md +60 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/grill.md +2 -1
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/how.md +7 -18
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/inner-loop.md +7 -7
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/model-setup.md +14 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/modernize-pr.md +15 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/mutation-testing.md +13 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/no-comments.md +5 -5
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/panel.md +7 -3
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-conversation.md +1 -1
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-review.md +8 -5
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pre-commit.md +1 -2
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/prior-art.md +33 -38
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/product-lens.md +12 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/prompt-upgrade.md +30 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/recall.md +1 -1
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/reframe.md +18 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/release-and-canary.md +10 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/research.md +62 -89
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/security-audit.md +5 -1
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/self-grill.md +54 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/sharpen.md +3 -3
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/show-me-your-work.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/sme-review.md +3 -2
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/suggest.md +24 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/swarm.md +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/teach.md +2 -2
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tournament.md +12 -11
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/variant-analysis.md +11 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/video-forensics.md +46 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/visual-e2e.md +10 -1
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/webhook-ui.md +11 -0
- package/plugins/deepmodebot/skills/deepmodebot/references/techniques/writing-for-agents.md +6 -0
- package/plugins/deepmodebot/skills/deepmodebot/scripts/check_skill.py +7 -0
- package/plugins/deepmodebot/skills/deepmodebot/scripts/trending.py +141 -18
- package/plugins/deepmodebot/skills/deepmodebot/worker.md +16 -0
- package/plugins/deepmodebot/skills/domain-rules/SKILL.md +13 -119
- package/plugins/deepmodebot/skills/domain-rules/references/backend-system-design.md +19 -1
- package/plugins/deepmodebot/skills/domain-rules/references/engineering-practice.md +7 -0
- package/plugins/deepmodebot/skills/domain-rules/references/language-ecosystems.md +11 -0
- package/plugins/deepmodebot/skills/domain-rules/references/sources.md +108 -0
- package/plugins/deepmodebot/skills/frontend-ui/SKILL.md +30 -131
- package/plugins/deepmodebot/skills/frontend-ui/assets/themes/canvas.css +42 -0
- package/plugins/deepmodebot/skills/frontend-ui/assets/themes/editorial.css +39 -0
- package/plugins/deepmodebot/skills/frontend-ui/assets/themes/layouts.css +95 -0
- package/plugins/deepmodebot/skills/frontend-ui/assets/themes/swiss.css +40 -0
- package/plugins/deepmodebot/skills/frontend-ui/assets/themes/tactile.css +41 -0
- package/plugins/deepmodebot/skills/frontend-ui/assets/themes/workbench.css +50 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/mobbin-animations.md +49 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/mobbin-shipped-apps.md +46 -24
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/motion-clips.md +27 -258
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/motion-graphics.md +26 -51
- package/plugins/deepmodebot/skills/frontend-ui/references/patterns/pinterest-animations.md +22 -195
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/00-art-direction.md +39 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/01-workflow.md +27 -24
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/02-review-rubric.md +23 -17
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/03-ai-tells.md +22 -45
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/04-components.md +11 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/04a-agent-ui.md +32 -152
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/05-motion.md +36 -91
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/05a-motion-graphics.md +14 -120
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06-typography-layout.md +11 -10
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06a-color.md +9 -9
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06b-media-icons-charts.md +19 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06c-product-shots-craft.md +42 -0
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/07-copy.md +5 -6
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/08-quality-floor.md +28 -56
- package/plugins/deepmodebot/skills/frontend-ui/references/playbook/09-steering-agents.md +9 -7
- package/plugins/deepmodebot/skills/frontend-ui/scripts/motion_diff.py +259 -0
- package/plugins/deepmodebot/skills/frontend-ui/scripts/ui_audit.py +496 -0
- package/plugins/deepmodebot/skills/maintain-formal-verification-skill/LICENSE +21 -0
- package/plugins/deepmodebot/skills/maintain-formal-verification-skill/NOTICE.md +16 -0
- package/plugins/deepmodebot/skills/maintain-formal-verification-skill/SKILL.md +68 -0
- package/plugins/deepmodebot/skills/maintain-verification-skill/SKILL.md +1 -1
- package/plugins/deepmodebot/skills/office-documents/SKILL.md +24 -0
- package/plugins/deepmodebot/skills/office-documents/references/documents-docx-pdf.md +15 -0
- package/plugins/deepmodebot/skills/office-documents/references/presentations-pptx.md +15 -0
- package/plugins/deepmodebot/skills/office-documents/references/spreadsheets-xlsx.md +15 -0
- package/plugins/deepmodebot/skills/office-documents/scripts/doc_audit.py +230 -0
- package/plugins/deepmodebot/skills/project-brief/SKILL.md +2 -19
- package/plugins/deepmodebot/skills/project-brief/assets/pr-overlap.py +4 -0
- package/plugins/deepmodebot/skills/project-brief/assets/sync-roadmap.py +4 -0
- package/plugins/deepmodebot/skills/project-brief/references/claim-contract.md +55 -0
- package/plugins/deepmodebot/skills/research/SKILL.md +18 -0
- package/plugins/deepmodebot/skills/secrets-and-auth/SKILL.md +1 -1
- package/plugins/deepmodebot/skills/seo-and-geo/SKILL.md +29 -0
- package/plugins/deepmodebot/skills/seo-and-geo/references/geo-and-agentic-web.md +30 -0
- package/plugins/deepmodebot/skills/seo-and-geo/references/technical-and-schema.md +25 -0
- package/plugins/deepmodebot/skills/seo-and-geo/scripts/seo_audit.py +282 -0
- package/plugins/deepmodebot/skills/software-architecture/SKILL.md +2 -2
- package/plugins/deepmodebot/skills/software-architecture/references/backend-infrastructure.md +5 -0
- package/plugins/deepmodebot/skills/software-architecture/references/monorepos.md +1 -0
- package/plugins/deepmodebot/skills/statechart/LICENSE +21 -0
- package/plugins/deepmodebot/skills/statechart/NOTICE.md +21 -0
- package/plugins/deepmodebot/skills/statechart/SKILL.md +106 -0
- package/plugins/deepmodebot/skills/statechart/references/render.md +93 -0
- package/plugins/deepmodebot/skills/statechart/references/tooling.md +78 -0
- package/plugins/deepmodebot/skills/statechart/scripts/backends/cfg.ts +33 -0
- package/plugins/deepmodebot/skills/statechart/scripts/backends/mermaid.ts +249 -0
- package/plugins/deepmodebot/skills/statechart/scripts/backends/plain-text.ts +72 -0
- package/plugins/deepmodebot/skills/statechart/scripts/backends/report.ts +177 -0
- package/plugins/deepmodebot/skills/statechart/scripts/frontends/config.ts +276 -0
- package/plugins/deepmodebot/skills/statechart/scripts/frontends/dot.ts +77 -0
- package/plugins/deepmodebot/skills/statechart/scripts/frontends/marks.ts +93 -0
- package/plugins/deepmodebot/skills/statechart/scripts/frontends/messages.ts +52 -0
- package/plugins/deepmodebot/skills/statechart/scripts/frontends/spec.ts +114 -0
- package/plugins/deepmodebot/skills/statechart/scripts/frontends/trace.ts +24 -0
- package/plugins/deepmodebot/skills/statechart/scripts/frontends/value.ts +166 -0
- package/plugins/deepmodebot/skills/statechart/scripts/frontends/verdict.ts +40 -0
- package/plugins/deepmodebot/skills/statechart/scripts/frontends/view.ts +119 -0
- package/plugins/deepmodebot/skills/statechart/scripts/ir.ts +547 -0
- package/plugins/deepmodebot/skills/statechart/scripts/janitor.ts +13 -0
- package/plugins/deepmodebot/skills/statechart/scripts/kill.ts +15 -0
- package/plugins/deepmodebot/skills/statechart/scripts/package.json +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/passes/annotate.ts +128 -0
- package/plugins/deepmodebot/skills/statechart/scripts/passes/label.ts +269 -0
- package/plugins/deepmodebot/skills/statechart/scripts/passes/lift.ts +85 -0
- package/plugins/deepmodebot/skills/statechart/scripts/passes/loop-check.ts +68 -0
- package/plugins/deepmodebot/skills/statechart/scripts/passes/paths.ts +60 -0
- package/plugins/deepmodebot/skills/statechart/scripts/passes/reach.ts +135 -0
- package/plugins/deepmodebot/skills/statechart/scripts/passes/region-check.ts +97 -0
- package/plugins/deepmodebot/skills/statechart/scripts/passes/regions.ts +295 -0
- package/plugins/deepmodebot/skills/statechart/scripts/pipeline.ts +76 -0
- package/plugins/deepmodebot/skills/statechart/scripts/run.ts +500 -0
- package/plugins/deepmodebot/skills/statechart/scripts/statechart +29 -0
- package/plugins/deepmodebot/skills/statechart/scripts/statechart.ts +165 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/ConfigOracle.java +63 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/chart.test.ts +1253 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/charts/Braces.mmd +7 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/charts/Escapes.mmd +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/charts/Phases.mmd +29 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/cli.test.ts +1344 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/config-fuzz.test.ts +263 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/ChartRun.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/Counter.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/Counter.tla +10 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/chart.mmd +9 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/graph.dot +16 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/report.md +7 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Counter/verdict-1.out +49 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/ChartRun.out +60 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/CounterAction.cfg +4 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/CounterAction.tla +22 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/chart.mmd +26 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/graph.dot +19 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/report.md +20 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/verdict-1.out +56 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/verdict-2.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/verdict-2.out +82 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterAction/verdict-3.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/ChartRun.out +59 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.tla +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/chart.mmd +22 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/graph.dot +16 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/report.md +17 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.out +56 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.out +77 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/ChartRun.out +69 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/CounterFan.cfg +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/CounterFan.tla +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/chart.mmd +85 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/graph.dot +70 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/report.md +12 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/verdict-1.out +67 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterFan/verdict-2.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/ChartRun.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/ChartRun.out +85 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/CounterGuard.cfg +6 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/CounterGuard.tla +13 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/chart.mmd +5 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/graph.dot +10 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/report.md +31 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/verdict-1.out +64 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/verdict-2.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterGuard/verdict-2.out +77 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/ChartRun.out +55 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.tla +10 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/chart.mmd +12 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/graph.dot +6 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/report.md +12 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-1.out +33 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-2.out +54 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/ChartRun.out +54 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.tla +10 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/chart.mmd +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/graph.dot +6 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/report.md +7 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInitPastHolds/verdict-1.out +46 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/ChartRun.out +59 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/CounterInstance.cfg +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/CounterInstance.tla +10 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/CounterSteps.tla +6 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/chart.mmd +17 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/graph.dot +15 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/report.md +14 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/sany.out +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterInstance/verdict-1.out +78 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/ChartRun.out +59 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/CounterJump.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/CounterJump.tla +19 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/chart.mmd +26 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/graph.dot +22 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/report.md +12 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/verdict-1.out +58 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterJump/verdict-2.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/ChartRun.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/CounterLoop.cfg +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/CounterLoop.tla +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/chart.mmd +17 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/graph.dot +15 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/report.md +14 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterLoop/verdict-1.out +76 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/ChartRun.out +59 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/CounterOrder.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/CounterOrder.tla +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/chart.mmd +19 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/graph.dot +10 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/report.md +15 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/verdict-1.out +56 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/verdict-2.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterOrder/verdict-2.out +67 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/ChartRun.out +62 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/CounterRules.cfg +6 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/CounterRules.tla +24 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/Moves.tla +5 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/chart.mmd +22 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/graph.dot +10 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/report.md +23 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/sany.out +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-1.out +58 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-2.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-2.out +66 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-3.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-3.out +74 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterRules/verdict-4.out +59 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/ChartRun.out +58 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/CounterStart.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/CounterStart.tla +15 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/chart.mmd +18 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/graph.dot +13 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/report.md +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/verdict-1.out +33 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStart/verdict-2.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/ChartRun.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/CounterStop.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/CounterStop.tla +15 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/chart.mmd +7 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/graph.dot +13 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/report.md +6 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterStop/verdict-1.out +49 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/ChartRun.out +61 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/CounterTie.cfg +4 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/CounterTie.tla +14 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/chart.mmd +30 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/graph.dot +19 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/report.md +27 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-1.out +56 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-2.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-2.out +64 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-3.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-3.out +87 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTie/verdict-4.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/ChartRun.out +60 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.tla +12 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/chart.mmd +23 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/graph.dot +19 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/report.md +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.out +56 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-2.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/ChartRun.out +61 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/CounterView.cfg +4 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/CounterView.tla +14 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/chart.mmd +23 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/graph.dot +19 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/report.md +27 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-1.out +56 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-2.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-2.out +64 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-3.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-3.out +87 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/verdict-4.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/CounterView/view.mjs +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/ChartRun.out +59 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/DieHard.cfg +4 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/DieHard.tla +38 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/chart.mmd +92 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/graph.dot +126 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/report.md +17 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/verdict-1.out +91 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/DieHard/verdict-2.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/ChartRun.out +61 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/FirstRule.cfg +6 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/FirstRule.tla +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/chart.mmd +22 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/graph.dot +16 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/report.md +25 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-1.out +56 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-2.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-2.out +64 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-3.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-3.out +64 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-4.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/FirstRule/verdict-4.out +77 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/ChartRun.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/HiddenClock.cfg +4 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/HiddenClock.tla +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/chart.mmd +13 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/graph.dot +12 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/report.md +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/HiddenClock/verdict-1.out +72 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/ChartRun.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/Login.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/Login.tla +62 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/chart.mmd +28 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/graph.dot +40 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/report.md +7 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/sany.out +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/verdict-1.out +47 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Login/view.mjs +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/ChartRun.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.cfg +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.tla +64 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/chart.mmd +28 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/graph.dot +37 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/report.md +8 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/sany.out +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/verdict-1.out +47 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginGuarded/view.mjs +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/ChartRun.out +60 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/LoginParallel.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/LoginParallel.tla +64 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/chart.mmd +44 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/graph.dot +58 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/report.md +17 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/sany.out +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/verdict-1.out +83 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/verdict-2.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/LoginParallel/view.mjs +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/ChartRun.out +60 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.tla +103 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/chart.mmd +43 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/graph.dot +93 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/report.md +14 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/sany.out +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-1.out +59 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-2.out +72 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayer/view.mjs +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/ChartRun.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.cfg +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.tla +100 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/chart.mmd +31 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/graph.dot +85 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/report.md +9 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/sany.out +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/verdict-1.out +47 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerFixed/view.mjs +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/ChartRun.out +59 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayer.tla +103 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.tla +6 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/chart.mmd +42 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/graph.dot +93 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/report.md +19 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.out +61 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-2.out +59 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-3.out +61 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.out +66 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.out +58 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-6.out +49 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/MediaPlayerProps/view.mjs +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/ChartRun.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/PickWorker.cfg +6 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/PickWorker.tla +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/chart.mmd +5 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/graph.dot +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/report.md +7 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/sany.out +5 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/PickWorker/verdict-1.out +70 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/ChartRun.out +61 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/Shadow.cfg +4 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/Shadow.tla +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/ShadowLib.tla +6 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/ShadowSub.tla +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/chart.mmd +9 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/graph.dot +16 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/report.md +8 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/sany.out +4 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/Shadow/verdict-1.out +65 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/ChartRun.out +59 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/SpacedNames.cfg +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/SpacedNames.tla +9 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/chart.mmd +23 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/graph.dot +17 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/report.md +15 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/sany.out +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/verdict-1.out +65 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/verdict-2.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/SpacedNames/verdict-2.out +75 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/ChartRun.out +69 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/TwoPhase.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/TwoPhase.tla +75 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/chart.mmd +60 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/graph.dot +297 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/report.md +20 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/sany.out +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/verdict-1.out +95 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/verdict-2.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhase/view.mjs +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/ChartRun.out +57 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.cfg +3 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.tla +75 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/chart.mmd +37 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/graph.dot +223 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/report.md +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/sany.out +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/verdict-1.out +47 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TwoPhaseFixed/view.mjs +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/ChartRun.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/ChartRun.out +75 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/TypeGuard.cfg +5 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/TypeGuard.tla +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/chart.mmd +18 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/graph.dot +14 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/report.md +29 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/verdict-1.out +64 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/verdict-2.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/TypeGuard/verdict-2.out +75 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/ChartRun.out +58 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.cfg +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.tla +8 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/chart.mmd +22 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/graph.dot +16 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/report.md +15 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.out +56 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.exit +1 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.out +77 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/corpus.test.ts +441 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/differential.test.ts +565 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/drawn.ts +20 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/grid/Grid.cfg +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/grid/Grid.tla +9 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/grid/sany.out +2 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/java.ts +63 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/labels.ts +648 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/messages.test.ts +226 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/pipeline.test.ts +270 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/plain-tlc.test.ts +255 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/render.test.ts +145 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/tlc-out.test.ts +90 -0
- package/plugins/deepmodebot/skills/statechart/scripts/test/tlc.ts +158 -0
- package/plugins/deepmodebot/skills/statechart/scripts/tsconfig.json +11 -0
- package/plugins/deepmodebot/skills/statechart/scripts/worker.ts +35 -0
- package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/bun.lock +0 -391
- package/plugins/deepmodebot/skills/deepmodebot/assets/agents-md/test_agents_md.py +0 -146
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_antigravity_guard.py +0 -483
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_audit_regressions.py +0 -139
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_contain.py +0 -301
- package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_omp_mcp.py +0 -602
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_design.py +0 -69
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_evidence.py +0 -160
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_record.py +0 -180
- package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_review.py +0 -265
- package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/test_git_guard.py +0 -192
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_bot.py +0 -2182
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_brand.py +0 -19
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_local_updates.py +0 -691
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_review_context.py +0 -127
- package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_workspace_cleanup.py +0 -496
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_loop.py +0 -1426
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_plan.py +0 -320
- package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_windows_job.py +0 -326
- package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/test_bench_harness.py +0 -55
- package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/test_perf_audit.py +0 -53
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/test_diff_coverage.py +0 -94
- package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/test_arena.py +0 -610
- package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/test_yt_enrich.py +0 -250
- package/plugins/deepmodebot/skills/deepmodebot/assets/tournament/test_tournament.py +0 -654
- package/plugins/deepmodebot/skills/deepmodebot/assets/workspace-map/test_workspace_map.py +0 -879
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Use when: the user wants a cited explanation or a recommendation (how/why/are-we-sure), not a code change. Read-only. You own the answer: plan, route, write.
|
|
4
4
|
|
|
5
5
|
## Steps
|
|
6
|
-
1. Route through the **how** technique (`references/techniques/how.md`); for motivation questions also the **why** technique (`references/techniques/why.md`). Delegate unknown-code mapping to `task`
|
|
7
|
-
Done when every claim you plan to make has a file/symbol citation.
|
|
6
|
+
1. Route through the **how** technique (`references/techniques/how.md`); for motivation questions also the **why** technique (`references/techniques/why.md`). Delegate unknown-code and negative-space mapping to `scout` (`invoke_subagent` / `Agent` / `task` / `spawn_agent`) and run `python -B "<this skill>/assets/gap-audit/gap_audit.py" scan --root "<root>" --advisory --json` when auditing repo health or "are we sure" questions.
|
|
7
|
+
Done when every positive and negative claim you plan to make has a file/symbol or scan citation.
|
|
8
8
|
2. Throughput checkpoint stays one line: `throughput checkpoint: n/a, read-only investigation`.
|
|
9
|
-
3. Produce the how-shaped output: Overview / Key Concepts / How It Works / Where Things Live / Gotchas. For a choice between alternatives, produce a recommendation with a tradeoffs table instead.
|
|
10
|
-
Done when every section is present, or the recommendation and table are.
|
|
9
|
+
3. Produce the how-shaped output: Overview / Key Concepts / How It Works / Where Things Live / Gaps, Failure Modes & Gotchas. For a choice between alternatives, produce a conditional recommendation with a tradeoffs and disconfirmation table instead.
|
|
10
|
+
Done when every section (including negative-space gaps/omissions) is present, or the recommendation and table are.
|
|
11
11
|
4. Apply the **unslop** technique (`references/techniques/unslop.md`) to the reply. Done when unslop's own `Done when` holds for the reply.
|
|
12
12
|
|
|
13
13
|
## Gates
|
|
@@ -57,7 +57,7 @@ The S lane skips step 5's implementation-review subagents and step 12 (PR-Agent)
|
|
|
57
57
|
Done when the title matches `type(scope): subject` with an allowed type and no trailing period.
|
|
58
58
|
8. Body: a one-minute briefing for a reviewer who has the diff; short sentences, few identifiers; under ~40 lines (it becomes the squash body). `##` headings in this order, dropping empty ones:
|
|
59
59
|
- `## Why`: problem and approach, 1 to 3 sentences. No SHAs, rebase genealogy, "based on main".
|
|
60
|
-
- `## What changed`: 1 to 3 bullets; name both sides of a rename or retarget.
|
|
60
|
+
- `## What changed`: 1 to 3 bullets ordered by thematic intent (`auth/security` → `core domain` → `UI` → `config/tests`, never an alphabetical file dump); name both sides of a rename or retarget, and state `Meaningful code +X -Y · Total +A -B` (from `diff_coverage.py plan`) when tests, snapshots, or generated files inflate total line count.
|
|
61
61
|
- `## Scope`: always; 1 to 3 items on what it covers and deliberately leaves out.
|
|
62
62
|
- `## Tradeoffs`: only rejected alternatives a reviewer would ask about.
|
|
63
63
|
- `## Blast Radius`: 1 to 2 sentences on who/what it touches and why safe or risky; if main is red, the cost of leaving it red.
|
|
@@ -3,16 +3,19 @@
|
|
|
3
3
|
Use when: something is slow or heavy and needs a one-off fix tied to a measurement. For sustained improvement against a metric use `references/playbooks/hillclimb.md`. You own the measurement story: plan, review, verify the numbers. Measure; don't read source instead of measuring.
|
|
4
4
|
|
|
5
5
|
## Steps
|
|
6
|
-
1. Capture a baseline trace
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
1. Capture a baseline trace and static hot-path audit on the matching surface:
|
|
7
|
+
- Run `python -B "<this skill>/assets/perf-audit/perf_audit.py" --path "<root>" --json` and check `domain-rules/references/high-scale-server-optimization.md` and `domain-rules/references/data-structures-and-cache-optimization.md`.
|
|
8
|
+
- Measure via the repo's `verify-<app>` skill (in `.omp/skills/`, `.claude/skills/`, or `.agents/skills/`), `python -B "<this skill>/assets/perf-audit/bench_harness.py"` (`http` or `cmd`), DB `EXPLAIN (ANALYZE, BUFFERS)` + query-count assertions, CPU/alloc profilers, omp `eval` `browser`, Playwright/CDP, or bash.
|
|
9
|
+
- Vet it, and every later number, with **benchmark-checklist** (`references/techniques/benchmark-checklist.md`).
|
|
10
|
+
Done when `perf_audit.py` has run and a saved baseline artifact passes every benchmark-checklist item.
|
|
11
|
+
2. Ground hypotheses with the **how** technique (`references/techniques/how.md`). Try the performance mantras in order, cheapest first; stop at the first that meets the target:
|
|
12
|
+
1. Don't do it (drop unused fields/serialization, skip gzip before DB waits, cut dead queries).
|
|
13
|
+
2. Do it, but don't do it again (prepared statements, module-level pools, `singleflight` + jittered cache-aside).
|
|
14
|
+
3. Do it less (replace N+1 / `await`-in-loop with `= ANY($1)` batching, `OFFSET` with keyset cursors, composite/FK indexes).
|
|
15
|
+
4. Do it later (transactional outbox / background queue off the request thread).
|
|
16
|
+
5. Do it when they're not looking (precompute rollups, warm pools/JIT before traffic).
|
|
17
|
+
6. Do it concurrently (non-blocking async I/O, semaphore-bounded fan-out `p-limit`/`Semaphore`, SPSC sharding).
|
|
18
|
+
7. Do it cheaper (`orjson`/`msgspec`, flat hash maps, arena/slab buffers, SoA layout, literal SQL `LIMIT`).
|
|
16
19
|
- Done when each tried mantra has a hypothesis tied to the trace, stopping at the first that meets the target.
|
|
17
20
|
3. Plan the fix from the trace. Changes a module or public interface with two or more viable shapes → the **architect** technique (`references/techniques/architect.md`) first. Size L → delegate implementation to a default `task` agent (exclusive file ownership, reasoning level per job) and review the diff. Size M → make the change yourself, then run the **pr-review** self-review (`references/techniques/pr-review.md`, local mode).
|
|
18
21
|
Done when the fix is implemented and, for Size M, the self-review has no open P0/P1.
|
|
@@ -6,12 +6,12 @@ Use when: changing structure while behavior stays fixed, including a language po
|
|
|
6
6
|
|
|
7
7
|
Use the two accounts in `references/rust-migration-case-studies.md` as evidence, not a mandate to choose Rust or one cutover strategy.
|
|
8
8
|
|
|
9
|
-
1. **Freeze the oracle
|
|
10
|
-
2. **Inventory behavior
|
|
11
|
-
3. **Pilot
|
|
12
|
-
4. **Turn failures into work.** Group compiler/runtime failures by owning slice; use Self-authoring (`references/playbooks/self-authoring.md`) for bounded repair loops. A repeated translation mistake
|
|
13
|
-
5. **Check parity and completeness separately.**
|
|
14
|
-
6. **Close the migration.** Migrate callers
|
|
9
|
+
1. **Freeze the oracle & record `cases.jsonl`.** Pin the source revision, run consumer tests, and record real `(args, stdin, env, stdout, stderr, exit/return)` tuples from the unchanged runtime into a read-only `cases.jsonl` corpus (disable parser recursion caps such as `serde_json`'s 128-depth limit so deep AST/config trees record intact). Keep fixtures, schemas, and thresholds outside implementers' write scope. Done when baseline commands, `cases.jsonl`, and protected paths are recorded.
|
|
10
|
+
2. **Inventory behavior via one shared bridge-eligibility check.** Map each public entrypoint, callback, I/O path, state owner, cancellation/disposal pair, and packaging target to its destination and proof. Planner (`analyze`), profiler, and FFI bridge generator must share one eligibility predicate (covering overloads, `.d.ts` aliases, and host-only callbacks) so no slice is scheduled that the bridge refuses. Record IEEE-754 shortest-roundtrip float tie rules (`ryu`/`zmij`), ordering, and release-only behavior. Done when every surface has an owner, destination, and acceptance case.
|
|
11
|
+
3. **Pilot with stdin-preserving shadow fallback.** Choose incremental closed slices or all-at-once cutover; isolate build output dirs per target (`CARGO_TARGET_DIR` per-app subdir) so binaries never overwrite each other. During incremental strangler slices, let glue hand unsupported inputs back to `original::run_with_stdin(args, consumed_bytes)` without losing already-read stdin, and check every ported case against `cases.jsonl`. Done when the pilot compiles, links, starts, and passes replay.
|
|
12
|
+
4. **Turn failures into work.** Group compiler/runtime/replay failures by owning slice; use Self-authoring (`references/playbooks/self-authoring.md`) for bounded repair loops. A repeated translation mistake updates the shared porting recipe and adds a `cases.jsonl` regression case. For parallel slices, follow **coworkers** (`references/techniques/coworkers.md`) on small/mid model tiers (`skill://agent-harnesses/references/delegation-efficiency.md`). Done when each queue item has a reproduced failure, owner, and replay closure.
|
|
13
|
+
5. **Check parity and completeness separately.** Replay the full `cases.jsonl` oracle in release mode and compare externally visible outputs. Independently reconcile the inventory against current source (including upstream churn) and **mechanically fail completion while any `original::` fallback call remains in glue**. Done when every row is proven with zero `original::` fallbacks; stubs or skipped tests never close rows.
|
|
14
|
+
6. **Close the migration.** Migrate callers, delete superseded implementations and shadow harnesses in each closed slice, and record workload-matched latency/memory measurements; keep merge, rollout, and release readiness distinct. Done when the native runtime boundary holds end to end.
|
|
15
15
|
|
|
16
16
|
The language-port steps are the acceptance sequence, not a prerequisite to structural redesign. Preserve the architecture and valid branches unless the target runtime boundary requires a change. Keep the behavior pin, real-artifact proof, and SKILL.md delivery-target rules below; mandatory subtraction and reader-load reduction do not apply. Judge the port against its stated migration objective.
|
|
17
17
|
|
|
@@ -18,6 +18,7 @@ Method adapted from Nick Vasilescu's Grok Bot rebuild (T3 Code + Paper MCP, yout
|
|
|
18
18
|
5. **Build from the canvas**, one screen per owner, shared tokens and primitives first (`references/playbooks/visual-parity.md` for the harness and per-component loop). Done when every canvas screen renders in the running app.
|
|
19
19
|
6. **Prove it in the real app**, not a mock: screenshot each built screen in the running app at the canvas size and compare it frame by frame with the canvas; fix and reshoot until each matches.
|
|
20
20
|
Add real-data and worst-case passes (long names, empty, every state, outages, narrow widths).
|
|
21
|
+
For animated interactions (menus, sheets, card entrances), record reference vs built clips and verify timing/easing parity with `python -B "<frontend-ui skill>/scripts/motion_diff.py" <ref.mp4> <built.mp4>` (`<= 0.08 s` start/duration delta, matching easing family, `<= 0.5%` rest jitter).
|
|
21
22
|
Done when every screen has a matching canvas-vs-app screenshot pair and every worst-case pass has a result.
|
|
22
23
|
|
|
23
24
|
Run steps 1 to 3 as parallel threads when they are independent (reference study, backend mapping, canvas), and settle each thread when its output is saved.
|
|
@@ -17,6 +17,8 @@ Headless engines this playbook may use:
|
|
|
17
17
|
- `assets/loop/loop.py` runs a goal file under headless omp, Claude Code, or Codex until its check passes. Details are in the Self-authoring playbook (`references/playbooks/self-authoring.md`).
|
|
18
18
|
- The GitHub App bot (`references/techniques/github-app.md`) polls the user's repos and runs pr-conversation and issue-conversation with no session open.
|
|
19
19
|
|
|
20
|
+
**Inner-loop-first & signal grouping:** Harden local verification and deterministic checks before scaling outer-loop automation (automating a sloppy inner loop multiplies slop). Group related incoming bug reports or signals in the coordinator before fanning out workers so shared root causes are solved once instead of duplicated.
|
|
21
|
+
|
|
20
22
|
## Session scale
|
|
21
23
|
|
|
22
24
|
One task, one session, one completion predicate.
|
|
@@ -106,7 +108,7 @@ Work two tracks at once: the tactical one (land the next unit) and the strategic
|
|
|
106
108
|
Done when the tracker lists each sampled retro and marks each candidate it produced dispatched or filed.
|
|
107
109
|
16. A chunk too big for one PR goes through the Spec playbook (`references/playbooks/spec.md`), then Tickets (`references/playbooks/tickets.md`), then Phased build in build mode (`references/playbooks/phased-build.md`), with this playbook still owning the workers.
|
|
108
110
|
Done when the chunk has a spec, tickets, and an integration branch with an owner in the tracker.
|
|
109
|
-
17. Schedule the recurring work: a wiki lint (contradictions, orphan pages, missing links, claims newer sources overtook), a sweep of open PRs and issues, and
|
|
111
|
+
17. Schedule the recurring work: a wiki lint (contradictions, orphan pages, missing links, claims newer sources overtook), a sweep of open PRs and issues, and two standing self-healthchecks (periodic transcript friction scan + token/waste audit) that stay quiet when there is nothing actionable to propose.
|
|
110
112
|
Use the harness's scheduler if it has one; otherwise a background heartbeat job as in Session scale step 3. Recurring work that should outlive this session goes in the final report as a proposed schedule (cron or Task Scheduler running `omp -p @<prompt file>`, or the harness's equivalent) for the user to enable.
|
|
111
113
|
Done when each recurring job is scheduled with its id in the tracker, or listed in the final report as a proposed schedule.
|
|
112
114
|
|
|
@@ -54,8 +54,7 @@ Files it may write:
|
|
|
54
54
|
Sources, in order: `CONTRIBUTING.md`, `AGENTS.md` or `CLAUDE.md`, then patterns the code already follows consistently.
|
|
55
55
|
Leave out anything a linter, formatter, or type checker already enforces; the **pr-review** technique reads this file as its standards source.
|
|
56
56
|
Done when the file exists and every rule in it cites a `file:line`.
|
|
57
|
-
7. **
|
|
58
|
-
Update the section in place on a re-run; never duplicate it or touch the rest of the file. Done when the file holds exactly one `## deepmodebot` section with those four lines.
|
|
57
|
+
7. **Bootstrap CI, XML policy, memory DB, and instructions.** Run `python -B "<this skill>/assets/setup/project_setup.py" --root .` (`py -3 -B` on Windows) to create missing `.deepmodebot/ci.yml`, `.deepmodebot/policy.xml`, `.scratch/deepmode-memory.db`, and refresh the managed deepmodebot block in `AGENTS.md` and `CLAUDE.md` (`@AGENTS.md`, preserving user rules outside markers). Add or update one `## deepmodebot` section pointing to the tracker, glossary, ADR folder, and standards file. Done when `project_setup.py --check` passes and the file holds one `## deepmodebot` section.
|
|
59
58
|
8. **Optional guardrails.** When the user asks for commit-time checks or protection against destructive git commands, run the **pre-commit** technique (`references/techniques/pre-commit.md`) or the **git-guardrails** technique (`references/techniques/git-guardrails.md`).
|
|
60
59
|
Done when each asked-for technique has reached its own Done when, or none was asked.
|
|
61
60
|
9. **Ship it** as one `chore(deepmodebot): set up tracker and project docs` change through Opening a PR (`references/playbooks/opening-a-pr.md`).
|
|
@@ -8,6 +8,7 @@ Use when: migrating or reimplementing UI that must stay pixel-identical. You own
|
|
|
8
8
|
3. Migrate shared primitives first as a blocking phase. Done when every shared primitive is migrated and its diff is zero.
|
|
9
9
|
4. Migrate one component at a time; parallelize with `task` agents, one owner per component with exclusive file ownership (`references/principles/separate-before-serializing-shared-state.md`). Done when every component has a migrated version.
|
|
10
10
|
5. Verify each component against its baseline by image diff on the matching surface via the repo's `verify-<app>` skill (in `.omp/skills/`, `.claude/skills/`, or `.agents/skills/`); if none, use omp `eval` `browser`, Playwright/CDP, or bash. Nonzero diff → investigate the pixel delta, fix, re-diff; loop per component until zero.
|
|
11
|
+
- For animated components or transitions, record both reference and candidate at matching FPS and run `python -B "<frontend-ui skill>/scripts/motion_diff.py" <ref.mp4> <cand.mp4> --mode pixel` so start/duration timing (`<= 0.08 s`), easing curve (`RMSE <= 0.08`), and rest frames (`<= 0.5%`) match mathematically, not just on a static end frame.
|
|
11
12
|
6. Deliver per SKILL.md's delivery-target rule: for local review or a repo with no remote, leave verified S/M edits uncommitted (or on a non-default working branch) with zero-diff proof; for publication, commit per component or safe batch, run **Opening a PR** (`references/playbooks/opening-a-pr.md`), and land through **pr-conversation** or `references/playbooks/shipping.md` on a panel pass. Done when the requested delivery target holds.
|
|
12
13
|
|
|
13
14
|
## Gates
|
|
@@ -37,7 +37,7 @@ The commands below are the **github** kind's. When the user keeps a GitHub Proje
|
|
|
37
37
|
- Pass → `gh pr merge <pr> --match-head-commit <sha>` with the repo's merge method, then run the checks on the new trunk. Red trunk → open a revert PR at once (PR source step 11). Green → `board:done`.
|
|
38
38
|
- Fail → the owner fixes the findings, pushes, and a fresh panel runs. The third failed panel → `board:blocked` with the findings in a comment.
|
|
39
39
|
- Done when the task is `board:done` with a green trunk check, has a revert PR open, or is `board:blocked` with the findings commented.
|
|
40
|
-
6. **Loop.** Run
|
|
40
|
+
6. **Loop.** Run at most **2** non-overlapping tasks concurrently (drop to `1` immediately on any `429`, save `.scratch/quota-guard/<slug>-checkpoint.json`, and never wrap `work-a-queue` inside `/teamwork`; back off or rotate model families on 429s). After each merge, re-read the board. Re-plan tasks the merge changed, unblock dependents, and add the panel's dissent tasks.
|
|
41
41
|
Done when no task is `board:todo`, `board:in-progress`, or `board:review`, or every one left is blocked on something only the user can supply.
|
|
42
42
|
|
|
43
43
|
### Gates
|
|
@@ -64,7 +64,9 @@ A queue of PRs is built and verified with full autonomy, one owner per PR. In mo
|
|
|
64
64
|
Done when the trail's first row and the heartbeat-tick prompt both name the mode.
|
|
65
65
|
2. Apply the operator's gates first. The grant covers only the queue's items. Items the operator names as theirs and PRs outside the queue stop at merge-ready. A request to state the plan is not a go.
|
|
66
66
|
Done when the trail lists the queue's items and every item that stops at merge-ready.
|
|
67
|
-
3. Spawn one owner per PR with `task`, each in its own `git worktree` with exclusive file ownership (shared-`.git` rules in Run a goal, Program scale step 3, `references/playbooks/run-a-goal.md`). Select each owner's model tier and effort per `skill://agent-harnesses/references/delegation-efficiency.md` (small/mid for routine or oracle-backed PRs; `L` for hard design, security, and final review)
|
|
67
|
+
3. Spawn one owner per PR with `task`, each in its own `git worktree` with exclusive file ownership (shared-`.git` rules in Run a goal, Program scale step 3, `references/playbooks/run-a-goal.md`). Select each owner's model tier and effort per `skill://agent-harnesses/references/delegation-efficiency.md` (small/mid for routine or oracle-backed PRs; `L` for hard design, security, and final review).
|
|
68
|
+
Cap concurrent active owners at **1-2** per wave (never 4-5 in parallel, which triggers `429` cold-respawn storms), reuse owners across fix rounds, and save `.scratch/quota-guard/<slug>-checkpoint.json` (`assets/quota-guard/quota_guard.py`) before any rate-limit pause.
|
|
69
|
+
The request authorizes branches and PRs; merging only in `merge` mode.
|
|
68
70
|
For complex or uncertain domains, clear the PR spec with **sme-review** (`references/techniques/sme-review.md`) before writing hidden tests or spawning owners.
|
|
69
71
|
Each owner builds, opens its PR early (per `references/playbooks/opening-a-pr.md`) so CI and bots run alongside, proves the change on the real artifact, and babysits to green per `references/playbooks/babysit.md`.
|
|
70
72
|
Before an owner starts, a different agent writes hidden acceptance tests from the PR's spec. They are stored in the root's store, outside every owner's worktree, and are black-box tests of the spec's public behavior.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# hardcore-mode
|
|
2
|
+
|
|
3
|
+
Group: core. When: default ON for every non-trivial task, upgrade, plan, architecture design, and prompt suggestion.
|
|
4
|
+
- **Rule.** Aim straight for the first-principles architectural ceiling — never sandbag into a watered-down toy MVP or bury the real engineering under "(Optional hardcore mode)".
|
|
5
|
+
- **Steps.** Ask "what is the real, production-ceiling version of this system on this platform?" Choose true first-principles algorithms, real concurrency/parallelism, real constraint solvers, crisp native representations/LODs, and full end-to-end integration over flat approximations, single-threaded O(n^2) shortcuts, or stubbed demos. Promote optional hardcore tiers into mandatory deliverables unless the user explicitly asks for a throwaway prototype or minimal patch, or a verified platform/budget constraint blocks it (cite the observed limit plainly).
|
|
6
|
+
- **Distinct from** laziness-protocol (hardcore maximizes algorithmic and architectural craft while laziness-protocol deletes dead wrappers, unused flags, and boilerplate — zero bloat, zero overclaims, real-artifact proof still required).
|
|
7
|
+
- **Anti-patterns.** Watered-down 2D/flat approximations when a true 3D/volumetric/solver architecture fits; hedging real engineering behind "(Optional hardcore mode)" or "future work"; shipping mocks, stubs, or hardcoded demo data in place of the real subsystem.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# no-reward-hacking
|
|
2
|
+
|
|
3
|
+
Group: verification. When: designing checks, iterating against a metric, generating 3D/ML/UI/solver artifacts, or declaring a gate passed.
|
|
4
|
+
- **Rule.** Satisfy the operator's true goal rather than gaming the proxy metric (Goodhart's Law: once a scalar measure becomes the optimization target, cheap shortcuts score 100% while failing the real requirement).
|
|
5
|
+
- **Freeze the oracle & intercept shell bypasses.** Builders never weaken tests, relax numeric assertions, add unconditional `.skip`, zero out similarity/fidelity bounds (`--min-iou 0`), or disable reference comparisons in files, `.scratch/` scripts, or ephemeral `Bash`/`eval` commands. Lock gate scripts, reference files, and positive minimum thresholds before iterating (`assets/reward-guard/reward_guard.py lock-contract`).
|
|
6
|
+
- **Prove cryptographic build provenance.** Scalar geometry, schema, or exit-code checks cannot tell a sculpted/solved output from glued-on procedural primitives (`create_cube`, `create_cone`) or hardcoded fixtures. Require an Ed25519-signed (or server-HMAC-verified) upstream job receipt (`spark_job_receipt.json`) whose `raw_spark_outputs` SHA-256 matches the delivered artifact byte-for-byte (`reward_guard.py record-provenance`).
|
|
7
|
+
- **Sealed independent vision/semantic judge.** Builders never self-report judge approvals via CLI flags. Run `reward_guard.py run-judge`, which spawns a tool-less sealed `omp -p --mode json --no-tools` context attaching the locked reference artwork and candidate renders side-by-side and recording the raw event transcript SHA-256.
|
|
8
|
+
- **Anti-patterns.** Passing `--min-iou 0` or `--skip-reference` so a gate prints `PASS`; lowering `>=` bounds or raising error tolerances in diffs; substituting local box/cone primitives for upstream 3D/ML generation; treating green unit/geometry gates as completion without side-by-side reference inspection.
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Group: verification. When: writing, changing, or keeping a test.
|
|
4
4
|
- **Rule.** A test claims what the code does for its users (caller, end user, other service): return values, errors, readable state, external effects (request sent, row written, message emitted). Not private helpers, internal call order, intermediate data, which collaborator did the work.
|
|
5
|
-
- **Two imagined edits.** *Break the behavior* (wrong value, skipped or doubled effect): if the test still passes it proves nothing — usual causes: assertion looser than the contract, expected value computed by the code under test, restated constant/prompt string that never runs the reading code, asserting on data the test built itself. *Change the internals* (same observable results): if the test fails it
|
|
5
|
+
- **Two imagined edits (kill tautological tests).** *Break the behavior* (wrong value, skipped or doubled effect): if the test still passes it is a **tautological test** that proves nothing — usual causes: assertion looser than the contract, expected value computed by the code under test, restated constant/prompt string that never runs the reading code, asserting on mocked data the test built itself. *Change the internals* (same observable results): if the test fails it is pinned to implementation. Keep tests that catch the first and survive the second; rewrite or delete the rest.
|
|
6
|
+
- **Real tests over mocks.** Don't mock what you can run locally: prefer real test primitives, real temp repos/DBs, and running-app checks; mock only external systems already isolated behind a production boundary.
|
|
6
7
|
- **Writing.** Drive through the users' interface with concrete input; derive expected values from the requirement, not a run; assert exactly the contract.
|
|
7
8
|
- The contract decides: "empty cart never charges" → asserting no payment-client call is behavior (pair with a case where the charge happens). Payload a mocked *external* service receives is behavior; an internal helper call is not. Exact error message pins wording no caller reads; the error type callers branch on is the contract. Invariants (key exists in two tables, compile-time type check) are behavior.
|
package/plugins/deepmodebot/skills/deepmodebot/references/principles/type-system-discipline.md
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
|
|
3
3
|
Group: architecture. When: designing types, reviewing a signature, writing any statically-typed code.
|
|
4
4
|
- **Rule.** Make the compiler reject impossible states, mismatched primitives, and unhandled variants. Define errors and special cases out of existence rather than multiplying handlers.
|
|
5
|
-
- **Checks.** Brand semantic primitives (`UserId` vs `OrderId
|
|
6
|
-
- **Anti-patterns.** Hand-maintained parallel types;
|
|
5
|
+
- **Checks.** Brand semantic primitives (`UserId` vs `OrderId`) via verifying type guards (`input is UserId`), never via `as`. Model invariants constructively so illegal values cannot be built (`[T, ...T[]]` for non-empty, `start` + `duration` for ranges) while keeping `T[]` when operations stay total. Use `unknown` over `any`; parse external data with the repo's schema library (`z.infer` etc.) before hand-writing guards, stopping `Record<string, unknown>` at the boundary. Narrow in order: discriminant switch > `in` > `typeof`/`instanceof` > verifying type guard > `as` (last resort). Prefer `satisfies` over `as`, derive types (`Pick`/`Omit`/`ReturnType`/`typeof`) from schemas, and enforce exhaustiveness with `const _exhaustive: never = x;`.
|
|
6
|
+
- **Anti-patterns.** Hand-maintained parallel types; `as any` / `as unknown as` casts; lying type guards that do not verify the claim; optional-field bags instead of discriminated unions.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Rule approval: owner-signed agent rules
|
|
2
|
+
|
|
3
|
+
Mechanics behind the `SKILL.md` rule approval rule. Code: `assets/rules/rule_ledger.py`. Tracked paths: `assets/rules/rule-paths.json`.
|
|
4
|
+
|
|
5
|
+
## What counts as a rule
|
|
6
|
+
|
|
7
|
+
- Files coding agents load as instructions or permissions, at any depth: `AGENTS.md` (plus `.override`/`.local`), `AGENT.md`, `CLAUDE.md`, `CLAUDE.local.md`, `GEMINI.md`, `.cursorrules`, `.windsurfrules`, `.clinerules`, `.roorules`, `.rules`.
|
|
8
|
+
- Everything under rule, skill, agent and command folders: `.claude/{rules,skills,agents,commands}`, `.omp/{rules,skills,agents,commands}`, `.agents/{rules,skills,workflows}`, `.cursor/rules`, `.windsurf/rules`, `.devin/{rules,skills}`, `.roo/rules`, `.kiro/steering`, `.continue/rules`, `.amazonq/rules`, `.github/instructions`, `.codex/{rules,agents}`.
|
|
9
|
+
- Settings that grant agents permissions or pick their rule files: `.claude/settings.json`, `.claude/settings.local.json`, `.codex/config.toml`, `.gemini/settings.json`, `.github/copilot-instructions.md`, `.omp/RULES.md`, `.omp/SYSTEM.md`, `.deepmodebot.json`, `.deepmodebot/policy.xml`.
|
|
10
|
+
- `convention` records in the project memory (`.scratch/deepmode-memory.db`).
|
|
11
|
+
- Gitignored rule files (`CLAUDE.local.md`, `.claude/settings.local.json`) are personal: the hooks block agent writes to them, but the ledger never stores them, so their text never lands in git. Paths under `.git`, `node_modules`, `.scratch` or `.worktrees` never count, so drafts in `.scratch/` are free.
|
|
12
|
+
- A rule path may be a symlink only to another rule path (`CLAUDE.md -> AGENTS.md`). A link to anything else is refused at `init` and fails the gate, because its target could change unseen.
|
|
13
|
+
|
|
14
|
+
## Owner workflow
|
|
15
|
+
|
|
16
|
+
1. `deepmodebot rules init` lists every rule present, asks you to approve them as the baseline, and sets your passphrase (8+ characters). Commit `.deepmodebot/rules/` so clones and CI enforce it.
|
|
17
|
+
2. `deepmodebot rules status` shows each rule as approved, changed, new or removed, plus waiting proposals. `review` prints every pending change with its id and diff. `log` prints the signed decision history. Agent text is shown with control characters escaped.
|
|
18
|
+
3. `deepmodebot rules approve <id>...` or `reject <id>...` (`--all` for everything) asks for the passphrase. Rejecting puts the approved text back, deletes an unapproved new rule file or memory convention, or restores a deleted rule. Commit `.deepmodebot/rules/` with the rule files.
|
|
19
|
+
4. `deepmodebot rules rotate` changes the passphrase; the old key signs the new one. A lost passphrase means `rule_ledger.py init --reset`, which keeps the history but changes the key. The gate flags that change until you commit it yourself with `git commit --no-verify` and merge it into the default branch.
|
|
20
|
+
|
|
21
|
+
Never type the passphrase into an agent chat or an agent-run terminal.
|
|
22
|
+
|
|
23
|
+
## Agent workflow
|
|
24
|
+
|
|
25
|
+
- Never edit a rule file in a repo with `.deepmodebot/rules/ledger.json`. Draft the full new file under `.scratch/`, then run `python -B <skill>/assets/rules/rule_ledger.py propose --item AGENTS.md --file .scratch/AGENTS.draft.md --reason "<why>" --by <harness>`. The rule file stays unchanged until the owner approves.
|
|
26
|
+
- Tell the owner the proposal id and to run `deepmodebot rules review`. Never run `init`, `approve`, `reject` or `rotate`, never skip git hooks, and never ask for the passphrase.
|
|
27
|
+
- Memory conventions you record stay hidden from `project_memory.py recall` until approved; recall reports how many with `unapproved-conventions-hidden`.
|
|
28
|
+
- `deepmodebot init` (`assets/setup/project_setup.py`) follows the same path: it proposes `.deepmodebot/policy.xml` and its managed-block refresh for `AGENTS.md` and `CLAUDE.md` instead of writing them.
|
|
29
|
+
|
|
30
|
+
## Enforcement layers
|
|
31
|
+
|
|
32
|
+
| Layer | What it stops |
|
|
33
|
+
|---|---|
|
|
34
|
+
| Hooks: Claude Code `hooks/hooks.json`, omp `assets/contain/omp-contain.ts`, Antigravity `scripts/antigravity-guard.mjs` | In every session of a ledger repo, active or not: file-tool writes to rule files and the ledger (also through symlinked folders or aliases); shell commands that write, move or delete them (redirects, `tee`, `sed -i`, `cp`/`mv`/`rm`/`ln`, globs, `cd` chains, `find -delete`, `curl -o`, `bash -c`, inline interpreter code, heredocs); writers fed by `xargs` or `$(...)`; `git commit --no-verify`/`-n` and `core.hooksPath` changes. Owner-only commands are blocked in any repo. |
|
|
35
|
+
| Ledger signature | Ed25519 over the canonical ledger with a key derived from the passphrase (PBKDF2-SHA256, 600k rounds). Any edit without the passphrase breaks the signature. |
|
|
36
|
+
| Gate: `rule_ledger.py check` inside `slop_gate.py`, the `project_setup.py --install-hooks` pre-commit hook, and `deepmodebot gate rules` | P1 per unapproved change and per symlinked rule whose target is not a rule path. P0 for a forged ledger, a ledger rolled back to an older version, an owner key swapped without a rotation signed by the old key, a deleted ledger, a symlinked store, or a missing approved copy. The ledger must extend the committed one at HEAD and at the merge-base with `origin`'s default branch, so a bad ledger committed with hooks skipped still fails against the default branch. `--staged` checks the commit; CI passes `--base origin/main`, which must resolve. |
|
|
37
|
+
| Memory recall | Unapproved conventions never reach the agent. |
|
|
38
|
+
|
|
39
|
+
## Storage
|
|
40
|
+
|
|
41
|
+
- `.deepmodebot/rules/ledger.json`: owner key (public key, salt, rounds), approved item to SHA-256 map, approved symlinks, decision history, signature.
|
|
42
|
+
- `.deepmodebot/rules/approved/<sha256>`: the approved bytes, used for diffs and rejects.
|
|
43
|
+
- `.deepmodebot/rules/proposals/<id>.json`: agent proposals waiting for the owner.
|
|
44
|
+
|
|
45
|
+
## Limits
|
|
46
|
+
|
|
47
|
+
- Codex has no deepmodebot hook; the gate catches its rule edits at commit time.
|
|
48
|
+
- Shell parsing is best effort. A script written to a file and then run, `git apply`, or a path held in a shell variable can still change a rule in the working tree, and harnesses may load that text until the owner rejects it. The signed ledger keeps it from being approved, and the gate blocks the commit.
|
|
49
|
+
- An agent with full shell access can remove hooks or the plugin and commit with hooks skipped. The check against the default branch catches that commit; keep the default branch protected and merge only PRs whose rule gate passes.
|
|
50
|
+
- A repo with no `origin` default branch anchors trust on HEAD only.
|
|
51
|
+
- Trust starts at `init`: whoever runs it first sets the owner key, which is why `init` is blocked for agents everywhere.
|
|
@@ -1,32 +1,18 @@
|
|
|
1
1
|
# architect
|
|
2
2
|
|
|
3
|
-
**Use when:** "architect/design this", or non-trivial
|
|
3
|
+
**Use when:** "architect/design this", or a non-trivial interface/module change where jumping straight to code would lock in the wrong shape. For a large or contested design, run **arena** (`references/techniques/arena.md`) instead of sketching alone.
|
|
4
4
|
|
|
5
|
-
1. **
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
At each applicable boundary, name the principal and tenant source, action permission, paid entitlement, execution lifetime, and failure/replay behavior.
|
|
12
|
-
Done when that request trace identifies the source of truth at every hop and distinguishes demonstrated guarantees from assumptions; a diagram alone is not proof.
|
|
13
|
-
3. **Sketch.** Run **arena** with the design task and grounding. Candidates produce types, signatures, class shapes, module boundaries with `not implemented` bodies and pseudocode, caller usage written first. Require ≥2 structurally distinct whole-shape candidates even when the first looks fine (exhaust-the-design-space).
|
|
14
|
-
Done when at least two structurally distinct candidates exist, each with caller usage.
|
|
15
|
-
4. Screen every candidate against the red flags below. Assume the next contributor is an agent that sees only files it opened, copies the nearest example, takes the shortest path that compiles; prefer the design where a change that looks right from one file is right repo-wide. Compare viable ones on interface depth: more complexity hidden behind a smaller public surface.
|
|
16
|
-
Done when each candidate has a pass or hit recorded for every red flag.
|
|
17
|
-
5. **Agree** (opt-in). Default: proceed with no checkpoint. If asked ("with checkpoint", "show me first"), present and `ask` for sign-off. The sketch may land as its own scaffold step. Pushback on the shape = new grounding evidence: re-ground and re-sketch before more code. Adversarial review (**interrogate**) only for a contested design.
|
|
18
|
-
Done when the sketch is signed off, or no checkpoint was asked for.
|
|
19
|
-
6. **Implement** against the sketch; it's the contract. Surface deviations: was the sketch wrong, the requirement missed, or the implementation overreaching?
|
|
20
|
-
Done when the code matches the sketch or every deviation is listed with its cause.
|
|
21
|
-
7. **Scrap** on a *pattern* of friction: same workaround shape across unrelated code; many unrelated special-case branches; types needing escape hatches (`any`, casts, always-set optionals); a "we need a lock" reflex where state was meant unshared; callers needing the abstraction's internals; ≥2 independent same-shape deviations.
|
|
22
|
-
Then re-run how on what's built, redesign as if constraints were day-one, make the new sketch smaller first, return to step 3. Complexity in the data isn't complexity in the design.
|
|
23
|
-
Done when no friction pattern is present, or a smaller new sketch has replaced the old one.
|
|
5
|
+
1. **Ground.** Trace every system the change touches directly (or run **why** when ownership or layering history constrains it); skip only for true greenfield. For system design, state critical user journeys, non-goals, expected traffic, operating constraints, existing API/data contracts, and trace one representative request through validation, authority, durable writes, async execution, and failure/replay behavior.
|
|
6
|
+
Done when touched systems and the source of truth at every boundary hop are written down.
|
|
7
|
+
2. **Sketch and compare.** Sketch at least two structurally distinct shapes with caller usage and types first (`references/principles/exhaust-the-design-space.md`). Pick the shape with one owner per piece of state, one way to do each task, deep interfaces (more complexity hidden behind a smaller public surface), and the least for callers to know. Screen every candidate against the red flags below.
|
|
8
|
+
Done when at least two shapes are compared against the red flags and one base is chosen.
|
|
9
|
+
3. **Implement or scrap.** Build against the sketch as the contract; surface deviations with their cause. If workarounds repeat (same workaround across unrelated code, type escape hatches, lock reflexes for unshared state, or >=2 same-shape deviations), stop patching, re-ground, and redesign smaller from day one.
|
|
10
|
+
Done when the code matches the chosen shape (or deviations are listed) with no repeating friction pattern.
|
|
24
11
|
|
|
25
|
-
**Red flags:** shallow module
|
|
12
|
+
**Red flags:** shallow module · information leakage (re-exported wire types) · temporal decomposition · pass-through method · split ownership · two ways to do one task · importable internals · hand-synced lists.
|
|
26
13
|
|
|
27
|
-
**Output:** caller usage
|
|
14
|
+
**Output:** caller usage and type sketch, shapes considered, red-flag screen, and chosen design rationale.
|
|
28
15
|
|
|
29
|
-
**Done when** the implemented code matches the
|
|
16
|
+
**Done when** the implemented code matches the chosen shape (or every deviation names its cause) and at least two shapes were screened against the red flags.
|
|
30
17
|
|
|
31
18
|
System-design evidence: [requirements and request trace](https://www.youtube.com/watch?v=5nM5sB_kqYI&t=133s), [operating constraints](https://www.youtube.com/watch?v=hOYzvUQKq8s&t=632s).
|
|
32
|
-
These checks are synthesis from the walkthroughs, not endorsements of their stacks or claims of verified scale.
|
|
@@ -14,7 +14,8 @@ A **seam** is where one module meets another and where a test or a second implem
|
|
|
14
14
|
- one concept spread across many small modules a reader has to hop between;
|
|
15
15
|
- shallow modules, pass-through layers, wrappers with one caller;
|
|
16
16
|
- pure helpers pulled out for testing while the bugs live in how they are wired together;
|
|
17
|
-
- one internal decision known by several modules (leak);
|
|
17
|
+
- one internal decision known by several modules (leak), or cross-boundary imports that explicit directory boundaries (server vs client, main vs renderer) plus dependency-graph lint rules would forbid;
|
|
18
|
+
- nuanced foot-gun APIs (raw `useEffect`, imperative timers) exposed in product code instead of confined to a supported framework wrapper;
|
|
18
19
|
- code that is untested, or hard to test through its current interface;
|
|
19
20
|
- hot-path performance friction (cross-thread hops, per-connection buffers, unbatched DB round trips, or false sharing; see `domain-rules/references/high-scale-server-optimization.md` and `data-structures-and-cache-optimization.md`).
|
|
20
21
|
It runs the deletion test on every suspect and returns candidates, each with files, problem, proposed change, and deletion-test result.
|
|
@@ -24,10 +25,10 @@ A **seam** is where one module meets another and where a test or a second implem
|
|
|
24
25
|
4. **Report.** Copy `assets/architecture-review/report-template.html` to `docs/deepmodebot/architecture-<YYYY-MM-DD>.html` and fill one card per candidate:
|
|
25
26
|
- title, badges, files, and a before and after diagram side by side;
|
|
26
27
|
- one sentence each for problem and change, gains in locality, leverage, and test terms, the deletion-test line, and an ADR callout when one conflicts.
|
|
27
|
-
Use `GLOSSARY.md` names for domain concepts. Vary the diagrams (dependency graph, layer stack, call tree collapsing into one box); a card that needs a paragraph to explain needs a better diagram.
|
|
28
|
+
Use `GLOSSARY.md` names for domain concepts. Vary the diagrams (dependency graph, layer stack, call tree collapsing into one box); a card that needs a paragraph to explain needs a better diagram. Include a complete **Ranked Leverage Matrix** across all surviving candidates (`Strong` → `Worth exploring` → `Speculative`, ordered by `caller fan-in × churn × complexity collapsed`) before naming `#1 (Recommended)`.
|
|
28
29
|
Open the file (`start`, `open`, or `xdg-open`) and print its absolute path. Propose no interfaces yet. The report is a working artifact: leave it uncommitted unless the user wants it kept.
|
|
29
|
-
Done when the file has one filled card per surviving candidate and its absolute path is printed.
|
|
30
|
-
5. **Pick
|
|
30
|
+
Done when the file has one filled card per surviving candidate, the complete Ranked Leverage Matrix is printed in chat (never collapsed to 1–3 items), and its absolute path is printed.
|
|
31
|
+
5. **Pick (while preserving the full backlog).** Present all surviving candidates in ranked order so zero high-leverage deepening tasks are hidden, then highlight `#1 (Recommended)` as the initial pick (or in live mode when the user asked to choose, ask whether to run `#1`, a numbered subset, or all `Strong` items in sequence). Done when the full ranked list is visible and the active pick or wave is named.
|
|
31
32
|
6. **Grill the pick** with the **grill** technique (`references/techniques/grill.md`): constraints, callers, the shape of the deepened module, what sits behind its seam, which tests survive and which move to the new interface. Keep the docs current as answers land, per the **domain-model** technique (`references/techniques/domain-model.md`):
|
|
32
33
|
- a new module name for a concept missing from `GLOSSARY.md` → add the term;
|
|
33
34
|
- a term that gets sharper in the discussion → update its entry;
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
**Use when:** one attempt at a non-trivial artifact would lock in the wrong shape.
|
|
4
4
|
|
|
5
5
|
1. **Phases.** If you have `todo`, open one item per phase; otherwise list the phases in your report: Frame, Fan out, Cross-judge, Pick, Graft, Verify. Done when the six phases exist as `todo` items or a report list.
|
|
6
|
-
2. **Frame.** State the artifact. Derive a 3 to 6 criterion gradeable rubric (picker-only; candidates see only the task). Pick N runners, ≥2, mixing model families when available.
|
|
6
|
+
2. **Frame.** State the artifact. Derive a 3 to 6 criterion gradeable rubric (picker-only; candidates see only the task). Pick N runners, ≥2, mixing model families when available (default 3-seat lineup: `claude-fable-5-2-high`, `claude-opus-5-5-high-fast`, and `gemini-4-neon-xhigh`; fall back to the nearest valid slug of the same family while keeping ≥2 runners if a harness rejects a slug).
|
|
7
7
|
Give each its own output location inside the project root (a git worktree under `.worktrees/` or its own folder under `.scratch/`, per SKILL.md "Contain the work"). Never shared files, never a temp dir outside the repo.
|
|
8
8
|
Done when the rubric is written and each runner has its own existing output location.
|
|
9
|
-
3. **Fan out** in rate-limit-safe `task` waves (3-5 runners per wave by default; set a per-runner timeout and back off or rotate model families on HTTP 429s): task, grounding path, own output path; produce the artifact plus a short rationale naming alternatives considered and rejected. A dropout → proceed with N-1, note it.
|
|
9
|
+
3. **Fan out** in rate-limit-safe `task` waves (3-5 runners per wave by default; set a per-runner timeout and back off or rotate model families on HTTP 429s): start each brief with `Read <this installed skill>/worker.md before anything else.`, then task, grounding path, own output path; produce the artifact plus a short rationale naming alternatives considered and rejected. A dropout → proceed with N-1, note it.
|
|
10
10
|
Done when every runner has returned an artifact and rationale, or is recorded as a dropout.
|
|
11
|
-
4. **Cross-judge.** One read-only judge from a different model family than yours, when one is available; skip and say so otherwise. Never your own family. Done when the judge's verdict is in hand, or the skip is recorded.
|
|
11
|
+
4. **Cross-judge.** One read-only judge from a different model family than yours, when one is available (`claude-opus-5-5-high-fast`, `gemini-4-neon-xhigh`, or `gpt-6.1-sol`; Fable counts as Claude for the vendor check); skip and say so otherwise. Never your own family. Done when the judge's verdict is in hand, or the skip is recorded.
|
|
12
12
|
5. **Pick a base.** Read every candidate end to end. Score per rubric criterion, not holistic feel; compare with the judge. Disagreement → bias or ambiguous rubric; read both rationales. Pick what a future maintainer extends most easily without breaking invariants; ties → cleaner boundary or smaller API.
|
|
13
13
|
Done when every candidate has a score per criterion and one base is named.
|
|
14
14
|
6. **Graft.** Walk each loser once for 1 or 2 portable strengths; fold in by hand so one mental model holds (redesign-from-first-principles). Convergence = strong agreement, ship it. Wild divergence = under-specified frame: reframe and re-run, never average.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# autoroute
|
|
2
|
+
|
|
3
|
+
**Use when:** starting any non-trivial task (automatically on model invocation or `/deep`), whenever a prompt is messy, compound, or spans multiple domains, or mid-task when new code evidence invalidates the original route. Never rely on regex matching alone to choose a workflow.
|
|
4
|
+
|
|
5
|
+
Regex cannot understand human phrasing, tone, frustration, skepticism, or compound goals. Instead, **deepmodebot uses the LLM itself** to read what the user typed against the live disk catalog (zero regex-prior anchoring in the prompt), then enforces **checks and balances** in code plus a bounded Round-2 LLM critic before executing.
|
|
6
|
+
|
|
7
|
+
## 3-stage LLM semantic auto-routing loop
|
|
8
|
+
|
|
9
|
+
1. **Stage 1: Build the live disk catalog & repo facts packet (zero regex bias).** Run:
|
|
10
|
+
```bash
|
|
11
|
+
python -B "<this installed skill>/assets/autoroute/autoroute.py" menu --root "<project-root>" --stdin --json <<'EOF'
|
|
12
|
+
<raw user prompt>
|
|
13
|
+
EOF
|
|
14
|
+
```
|
|
15
|
+
*(Headless / CLI callers without an active chat LLM can run `autoroute.py route --root "<project-root>" --stdin --harness auto --json` to invoke the user's logged-in subscription LLM `agy`/`claude`/`codex` directly through Stages 1–3, stripping API keys and never spending `omp` tokens.)*
|
|
16
|
+
`menu` discovers every playbook, technique, plugin sibling skill, and project-local skill from disk, collects live repo facts plus `pre_flight_clarification` (`prompt_tools.py clarify`), and emits `llm_router_prompt` with **no regex mode guess**.
|
|
17
|
+
If `pre_flight_clarification.needs_clarification` is `true` (and repo/docs cannot settle it), ask `1-3` `(Recommended)`-first choices once upfront via `ask_question` / `AskUserQuestion` / `ask` / `request_user_input` (pick `(Recommended)` in `-p` mode), then run 100% autonomously.
|
|
18
|
+
Done when the live catalog, repo facts, and upfront intent check are settled.
|
|
19
|
+
|
|
20
|
+
2. **Stage 2: Ask the LLM to decide semantically.** Using the full menu and repo facts (inline structured reasoning, or a fast read-only `scout` subagent on large/ambiguous asks), output a single JSON route decision:
|
|
21
|
+
- `decoded_intent` and numbered `deliverables` (full scope; never drop compound clauses)
|
|
22
|
+
- `primary_mode` and exact `route_file` from the live menu
|
|
23
|
+
- `secondary_techniques` (e.g., `self-grill`, `no-comments`, `security-audit`, `why`, `how`, `formal-verification`) and `reference_skills` (`skill://frontend-ui`, `skill://secrets-and-auth`, `skill://software-architecture`, `skill://cloud-devsecops`, `skill://agent-harnesses`, `skill://domain-rules`, `skill://deep-stack`)
|
|
24
|
+
- `size` (`S`/`M`/`L`/`none`), `self_grill` (`none`/`plan`/`checks`/`both`), `hardcore_mode` (default `true`; `false` only on explicit minimal/prototype opt-out), `hardcore_ceiling` (1-sentence first-principles engineering target), `confidence` (`0.0`–`1.0`), `runner_up`, `why_not_runner_up`, `needs_prompt_upgrade`, and `hard_stops`.
|
|
25
|
+
Done when the JSON decision covers every deliverable and names why the runner-up lost.
|
|
26
|
+
|
|
27
|
+
3. **Stage 3: Enforce checks and balances (code gate + bounded critic).** Pipe the LLM's JSON decision into the deterministic verifier:
|
|
28
|
+
```bash
|
|
29
|
+
python -B "<this installed skill>/assets/autoroute/autoroute.py" verify --root "<project-root>" --prompt "<raw prompt>" --decision-stdin --strict --json <<'EOF'
|
|
30
|
+
<decision JSON>
|
|
31
|
+
EOF
|
|
32
|
+
```
|
|
33
|
+
The verifier enforces five gates:
|
|
34
|
+
- **Disk & containment existence:** rejects any hallucinated `primary_mode`, `route_file`, `secondary_technique`, or `reference_skill` (including `skill://` subpaths or `..` escapes) not present on disk.
|
|
35
|
+
- **Size & safety floor:** read-only/discovery modes must be `none`; any prompt or diff touching auth, secrets, permissions, migrations, payments, CI workflows, or agent config cannot be `S` and requires `self_grill` + security companions.
|
|
36
|
+
- **Anti-blunder & Hardcore anti-sandbagging guards:** blocks lazy `tournament` dumping on concrete anchors without justification, flags shallow `feature`/`bug-fix` collapse when specialized playbooks fit (`perf-issue`, `runtime-forensics`, `trace-forensics`, `hillclimb`, `visual-parity`, `reference-rebuild`, `formal-verification`, `gen-ui`, `video-forensics`, `suggest`, `prompt-upgrade`, `no-comments`), and blocks disabling `hardcore_mode` or under-sizing multi-part/systems work to `S`.
|
|
37
|
+
- **Required companions:** flags missing `reference_skills` or `self-grill`/`no-comments` on M/L code work (plus `architect` on multi-part hardcore L builds).
|
|
38
|
+
- **Bounded critic pass (`--critic-round 2`):** if `status` is `CRITIC_REQUIRED` (confidence `< 0.80` or specialized-signal mismatch) or `REJECTED`, run one fresh adversarial critic pass using `critic_prompt`, revise the JSON with `"critic_reviewed": true`, and re-verify with `--critic-round 2` until `APPROVED` (exit 0). Round-1 `critic_reviewed: true` without `--critic-round 2` is rejected.
|
|
39
|
+
Done when `verify --strict` returns `APPROVED` (exit 0) and you open `route_file` plus listed `reference_skills`.
|
|
40
|
+
|
|
41
|
+
## Mid-flight re-route (Stage 4)
|
|
42
|
+
|
|
43
|
+
Routing is not a one-shot guess. Whenever real code inspection contradicts the initial route (diff grows past S, touches a sensitive path, hits 2 failed attempts sharing a premise, or reveals 2+ competing architectural shapes), run:
|
|
44
|
+
```bash
|
|
45
|
+
python -B "<this installed skill>/assets/autoroute/autoroute.py" reroute --root "<project-root>" --current-mode "<mode>" --current-size "<size>" --failed-attempts <n> --json
|
|
46
|
+
```
|
|
47
|
+
Apply the recommended escalation (`S -> M/L`, `M -> L`, `architect`, `arena`, `attack-the-premise`, `security-audit`, `self-grill`, `no-comments`) and log one row in the decision trail; add `sme-review` when domain rules are unverified.
|
|
48
|
+
|
|
49
|
+
**Done when** `autoroute.py verify --strict` returns `APPROVED` (exit 0), the selected `route_file` and `reference_skills` are loaded, and any mid-flight scope or premise shift triggers `reroute`.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Proof ladder. Push each load-bearing fact as far as is cheap and say where it stopped: (1) you said so, which is worthless; (2) pointed at a real `file:line` or library source; (3) walked the failure and showed it can't reach; (4) ran a script/test calling the real code that fails loud if wrong; (5) reproduced in the running app.
|
|
6
6
|
|
|
7
|
-
1. Read the change: diff, symbols added/changed/deleted, what it now does differently incl. what the diff doesn't spell out (
|
|
7
|
+
1. Read the change: diff, symbols added/changed/deleted, what it now does differently incl. what the diff doesn't spell out (check PR/commit history as in **why**).
|
|
8
8
|
Done when every added, changed, and deleted symbol is listed with its new behavior.
|
|
9
9
|
2. Find the one fact it's safe because of (e.g. "this call only drops already-dead cache entries"). Spend time here, not on a list of maybes. Done when the fact is one written sentence.
|
|
10
10
|
3. Look where grep stops: library source at the pinned version plus local patches; timing (microtasks, teardown, framework semantics); JSON an API returns, DB columns, wire formats, other languages reading the same bytes, feature flags, code three hops downstream.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# catchup-video
|
|
2
|
+
|
|
3
|
+
**Use when:** "catch me up with a video", "video recap", "subtitled slide video of what happened", or visual catch-up since the user's last message.
|
|
4
|
+
|
|
5
|
+
Follow **recall** (`references/techniques/recall.md`), replacing its prose/static visuals with a short silent subtitled landscape MP4 slide deck plus waiting user calls underneath. Scope starts at the user's last message before this request. Rendering the MP4 inside `<root>/.scratch/catchup-video/` is the one write exception to `recall`'s read-only rule.
|
|
6
|
+
|
|
7
|
+
1. **Plan from real artifacts.** Use captured screenshots, recordings, diffs, and measured outputs rather than chat prose. Draft one takeaway sentence and one point per slide (`<=10` slides; drop any slide that changes nothing the user knows; omit planning notes from the reply).
|
|
8
|
+
2. **Compose evolving visual slides.** Build on one visual model and evolve it across slides with arrows, highlights, and motion (system flow, PR stack states, before/after fix, or side-by-side decision options using consistent color/shape meanings). Never render bullet lists, status tables, or unconnected boxes; never invent numbers or draw uncaptured screens (if a UI change lacks a screenshot, state that on the slide and name what changed). Never mark work done if it still waits on the user.
|
|
9
|
+
3. **Burn readable subtitles.** Place one plain ~10-word subtitle per slide inside a fixed-height strip below the slide frame so it never overlaps slide content and stays legible at chat width. State what the picture means rather than reading labels aloud, without repeating facts across slides or reply text.
|
|
10
|
+
4. **Render & verify hold timing.** Render a silent landscape MP4 from generated slide frames (never screen-recording) with burnt-in subtitles held for the full slide duration (excluding transitions) at `>=1s` per 3 newly added words (subtitle + new/changed slide labels; words inside embedded screenshots excluded). Inspect one rendered frame per slide at chat size and measure frame-matched holds (not still-frame detectors on fades); re-render any cramped or unreadable slide.
|
|
11
|
+
5. **Reply.** Output the opening recap sentence, the embedded/linked MP4 path, one line naming remaining work you can finish yourself, and waiting user calls using the exact option names shown in the video (or a one-line render-failure note plus the waiting calls).
|
|
12
|
+
|
|
13
|
+
**Done when** the verified MP4 in `.scratch/catchup-video/` passes per-slide readability and word-hold checks (or reports render failure cleanly) and the reply lists only real waiting calls and remaining agent work.
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
# correct
|
|
2
2
|
|
|
3
|
-
**Use when:** agents keep repeating the same mistakes in this repo,
|
|
3
|
+
**Use when:** agents keep repeating the same mistakes in this repo, each time the operator corrects you, or during codebase gardening ("garden the codebase", "pattern buffer", "ban this anti-pattern"). Make each mistake impossible. The codebase is an agent's largest input: any workaround, deprecated API, or anti-pattern left behind gets copied by every future agent as the established pattern.
|
|
4
4
|
|
|
5
|
-
1. Read recent commits, reverts, review comments, agent instruction files
|
|
5
|
+
1. **Watch and buffer (the gardener loop).** Read recent commits, reverts, review comments, agent instruction files, and workaround comments. For recurring smells across many PRs, append findings to a lightweight pattern buffer before spawning fixes so you see the shared root cause instead of patching individual symptoms. A class counts once it happened twice; skip one-offs.
|
|
6
6
|
Done when each class is listed with at least two cited occurrences.
|
|
7
|
-
2.
|
|
8
|
-
- **Architecture:** one owner per state, one supported way per task,
|
|
9
|
-
- **Types
|
|
10
|
-
- **Tests
|
|
11
|
-
- **Docs/agent rules last
|
|
7
|
+
2. **Change the bed at the highest level that works:**
|
|
8
|
+
- **Architecture & directory boundaries:** one owner per state, one supported way per task, explicit boundary directories (e.g. main vs renderer, server vs client) enforced by dependency-graph/lint rules so wrong imports fail; ban nuanced foot-gun APIs (such as raw `useEffect` or imperative timers `setTimeout`/`requestAnimationFrame`/`requestIdleCallback`) in product code and confine them to framework internals; delete old weed examples so agents stop copying them.
|
|
9
|
+
- **Types & deterministic lints:** make the bad state fail to compile; if it still compiles, add a lint/CI check whose error message tells the agent the exact file, type, or supported API to use instead; if legacy occurrences exist, ratchet CI to fail only when a change adds new ones.
|
|
10
|
+
- **Tests & formal checks:** behavioral tests (never tautological tests) or `references/techniques/formal-verification.md` for concurrency/state invariants.
|
|
11
|
+
- **Docs/agent rules last:** only for judgment calls that no deterministic check can express.
|
|
12
|
+
- **Sampling review at high PR volume:** when PR volume outgrows line-by-line review, rigorously sample recent merged PRs to find shared shortcuts and upgrade the environment constraints above, not just one PR.
|
|
12
13
|
- Done when each class has a chosen level and a reason no higher level works.
|
|
13
14
|
3. Fix the most frequent classes now, one unit per class (one commit each). Prove each new check fails on a real past mistake. Same command locally and in CI. Exceptions go on the offending line with reason, expiry, and a decision-trail row.
|
|
14
15
|
Done when each fixed class has its own commit and a run showing its check failing on a past mistake.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# course
|
|
2
2
|
|
|
3
|
-
**Use when:** the user wants
|
|
3
|
+
**Use when:** the user wants multi-session mastery or interactive Socratic tutoring/drilling ("teach me Rust over the next month", "make me a course on X", "tutor me / quiz me / drill me to mastery on Y", or a folder with `MISSION.md`). One-off explanations ("what is X", "explain this diff") use **teach** (`references/techniques/teach.md`) — never launch an unrequested diagnostic quiz on a one-off question.
|
|
4
4
|
|
|
5
5
|
The current directory is the course workspace. Its files are the learner's memory between sessions:
|
|
6
6
|
|
|
@@ -20,6 +20,7 @@ Create files when first needed, not up front.
|
|
|
20
20
|
1. **Mission first.** No `MISSION.md`, or one too vague to choose the next lesson ("understand X") → ask why they want this and what they will do with it, in one exchange. Push past abstract answers to an outcome ("ship a CLI to my team", "run a half marathon in October"). Write `MISSION.md`.
|
|
21
21
|
A changed goal later: confirm with them, update the file, and add a learning record.
|
|
22
22
|
Done when `MISSION.md` names a concrete outcome and three to five abilities.
|
|
23
|
+
- **Socratic live-drill mode** ("tutor/quiz/drill me" in chat without HTML files): decompose the topic into `4–10` subskills, run a `3–5` question calibrated diagnostic (easy → hard) *before* lecturing, render an ASCII **`0–5` mastery map** (`0 unaware · 1 heard · 2 follow · 3 assisted · 4 independent · 5 edge-cases/teach`), and ask **one question per turn** (ending the message immediately with zero hints until the learner answers).
|
|
23
24
|
2. **Sources before lessons.** Search for high-trust primary sources (official docs, standard texts, recognized experts, well-moderated communities) and fill `RESOURCES.md`. Every factual claim in a lesson cites one. Do not teach from memory where a source exists.
|
|
24
25
|
Done when `RESOURCES.md` has at least one source covering the next lesson's topic, or that topic is listed under **Gaps**.
|
|
25
26
|
3. **Choose the next lesson.** If they named a target, teach it. Otherwise read `MISSION.md`, every learning record, and `NOTES.md`, then pick the smallest next step the mission needs that sits just past what they have shown they can do: hard enough to stretch, close enough to succeed.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# devex-review
|
|
2
|
+
|
|
3
|
+
**Use when:** auditing developer experience ("DX review", "developer onboarding audit", "CLI/SDK ergonomics review"), designing a CLI, SDK, or MCP tool surface, or checking whether a newcomer or coding agent can go from cold clone to first working run without friction.
|
|
4
|
+
|
|
5
|
+
1. **Cold-start onboarding stopwatch.** Walk the documented setup from a clean directory/env (`README.md` / `CONTRIBUTING.md`): count required manual steps, undocumented system prerequisites, missing `.env.example` keys, broken scripts, and time-to-first-green-test. Aim for one deterministic bootstrap command (`make dev`, `npm test`, `uv sync && pytest`).
|
|
6
|
+
2. **CLI ergonomics for humans & agents.** Audit every command against dual human/agent usability:
|
|
7
|
+
- Machine-readable `--json` output on stdout, progress/diagnostics on stderr;
|
|
8
|
+
- Non-interactive flags (`--yes`, `--dry-run`) that never hang waiting on stdin when `!isatty`;
|
|
9
|
+
- Complete `--help` with real examples, `NO_COLOR` support, and distinct non-zero exit codes (`0` ok, `1` check/finding failed, `2` usage/setup error).
|
|
10
|
+
3. **Actionable error messages.** Trigger 3–5 common failure modes (missing env var, occupied port, bad config, expired auth, wrong argument type). Every error must state **what failed, where, and the exact command or edit to fix it**—never raw stack traces or opaque `"Invalid input"`.
|
|
11
|
+
4. **SDK & API surface audit.** Check pit-of-success defaults (safe timeouts, retries on idempotent calls, typed errors, zero required boilerplate for the 80% case, and progressive disclosure of advanced knobs).
|
|
12
|
+
|
|
13
|
+
**Done when** cold-start setup friction is reproduced or verified clean, CLI/SDK interfaces satisfy `--json`/`--dry-run`/non-TTY/exit-code contracts, and unhelpful errors are replaced with actionable fix hints.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# expand-contract
|
|
2
|
+
|
|
3
|
+
**Use when:** renaming, splitting, or dropping a live database column/table, evolving an external API/webhook/queue payload under Hyrum's Law, or sunsetting a production service with zero downtime while old and new app replicas run concurrently.
|
|
4
|
+
|
|
5
|
+
For single-repo internal callers that deploy atomically, migrate callers and delete the old API in one wave (`references/principles/migrate-callers-then-delete-legacy-apis.md`). Use **expand-contract** whenever rolling deploys, external clients, persisted queue messages, or stateful schemas prevent atomic cutover.
|
|
6
|
+
|
|
7
|
+
1. **Inventory observable consumers (Hyrum's Law).** Grep callers, SDKs, mobile versions, queued job payloads, analytics pipelines, and DB views; check telemetry for live traffic on the old field/endpoint.
|
|
8
|
+
2. **Phase 1 — Expand (additive & backward-compatible).** Add the new nullable column, table, or v2 field/endpoint alongside the old one (`ADD COLUMN ... NULL`, `CREATE INDEX CONCURRENTLY`; never hold long `ACCESS EXCLUSIVE` table locks). Old replicas must keep working against the expanded schema.
|
|
9
|
+
3. **Phase 2 — Dual-write & backfill.** Deploy app code that writes both old and new representations transactionally (still reading old), then backfill historical rows in throttled idempotent batches with sleep/jitter.
|
|
10
|
+
4. **Phase 3 — Shadow-read parity & switch.** Read from the new path while comparing against the old path in metrics/logs; once mismatch count is `0` across real load, switch primary reads to the new path while keeping rollback safety.
|
|
11
|
+
5. **Phase 4 — Deprecate & contract.** Emit `Deprecation` / `Sunset` HTTP headers (`RFC 8594` / `RFC 9745`) or structured telemetry warnings on legacy callers; once legacy read/write rate hits `0` over a full retention window, stop dual-writing and drop the legacy code, column, and feature flag in a dedicated cleanup PR.
|
|
12
|
+
|
|
13
|
+
**Done when** each deploy step is backward-compatible with its adjacent running version, locks/backfills are non-blocking and idempotent, read-parity check criteria are explicit, and the final contract removal ticket/step is tracked so dual-write shims never become permanent tech debt.
|