@proflandrigan/shards 1.1.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/README.md +475 -0
- package/package.json +37 -0
- package/src/agents/academic.md +276 -0
- package/src/agents/ai-engineer.md +377 -0
- package/src/agents/analytics-engineer.md +364 -0
- package/src/agents/applied-ml-scientist.md +410 -0
- package/src/agents/backend-engineer.md +255 -0
- package/src/agents/bi-engineer.md +333 -0
- package/src/agents/data-analyst.md +343 -0
- package/src/agents/data-engineer.md +260 -0
- package/src/agents/data-modeller.md +386 -0
- package/src/agents/data-scientist.md +366 -0
- package/src/agents/deep-learning-engineer.md +389 -0
- package/src/agents/ml-engineer.md +424 -0
- package/src/agents/mlops-engineer.md +339 -0
- package/src/agents/researcher.md +187 -0
- package/src/agents/specific_instructions/academic/critical_review.md +263 -0
- package/src/agents/specific_instructions/academic/report.md +113 -0
- package/src/agents/specific_instructions/ai_engineer/advise.md +162 -0
- package/src/agents/specific_instructions/ai_engineer/bi_engineer_handoff.md +86 -0
- package/src/agents/specific_instructions/ai_engineer/experiment.md +471 -0
- package/src/agents/specific_instructions/ai_engineer/experiment_ui_mode.md +44 -0
- package/src/agents/specific_instructions/ai_engineer/phases/index.md +45 -0
- package/src/agents/specific_instructions/ai_engineer/phases/phase-1.md +55 -0
- package/src/agents/specific_instructions/ai_engineer/phases/phase-2.md +86 -0
- package/src/agents/specific_instructions/ai_engineer/phases/phase-3.md +96 -0
- package/src/agents/specific_instructions/ai_engineer/phases/phase-4.md +138 -0
- package/src/agents/specific_instructions/ai_engineer/phases/phase-5.md +157 -0
- package/src/agents/specific_instructions/ai_engineer/phases/phase-6.md +196 -0
- package/src/agents/specific_instructions/ai_engineer/phases/phase-7.md +313 -0
- package/src/agents/specific_instructions/ai_engineer/phases.md +1011 -0
- package/src/agents/specific_instructions/ai_engineer/prompt_lab.md +161 -0
- package/src/agents/specific_instructions/ai_engineer/prompt_lab_ui_mode.md +28 -0
- package/src/agents/specific_instructions/ai_engineer/research.md +393 -0
- package/src/agents/specific_instructions/ai_engineer/research_ui_mode.md +66 -0
- package/src/agents/specific_instructions/ai_engineer/review.md +159 -0
- package/src/agents/specific_instructions/ai_engineer/validation_checklist.md +182 -0
- package/src/agents/specific_instructions/analytics_engineer/advise.md +155 -0
- package/src/agents/specific_instructions/analytics_engineer/bi_engineer_handoff.md +91 -0
- package/src/agents/specific_instructions/analytics_engineer/data_analyst_handoff.md +84 -0
- package/src/agents/specific_instructions/analytics_engineer/deep_phases.md +818 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/index.md +24 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-1.md +77 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-2.md +106 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-3.md +93 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-4.md +79 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-5.md +61 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-6.md +45 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-7.md +235 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-8.md +221 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_quick/index.md +19 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_quick/phase-1.md +47 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_quick/phase-2.md +78 -0
- package/src/agents/specific_instructions/analytics_engineer/quick_phases.md +112 -0
- package/src/agents/specific_instructions/analytics_engineer/review.md +167 -0
- package/src/agents/specific_instructions/analytics_engineer/service_mode.md +369 -0
- package/src/agents/specific_instructions/analytics_engineer/ui_mode.md +45 -0
- package/src/agents/specific_instructions/analytics_engineer/update.md +162 -0
- package/src/agents/specific_instructions/analytics_engineer/validation_checklist.md +121 -0
- package/src/agents/specific_instructions/applied_ml_scientist/advise.md +143 -0
- package/src/agents/specific_instructions/applied_ml_scientist/phases/index.md +21 -0
- package/src/agents/specific_instructions/applied_ml_scientist/phases/phase-1.md +51 -0
- package/src/agents/specific_instructions/applied_ml_scientist/phases/phase-2.md +66 -0
- package/src/agents/specific_instructions/applied_ml_scientist/phases/phase-3.md +113 -0
- package/src/agents/specific_instructions/applied_ml_scientist/phases/phase-4.md +104 -0
- package/src/agents/specific_instructions/applied_ml_scientist/phases/phase-5.md +156 -0
- package/src/agents/specific_instructions/applied_ml_scientist/phases.md +428 -0
- package/src/agents/specific_instructions/applied_ml_scientist/research.md +379 -0
- package/src/agents/specific_instructions/applied_ml_scientist/review.md +142 -0
- package/src/agents/specific_instructions/applied_ml_scientist/validation_checklist.md +136 -0
- package/src/agents/specific_instructions/backend_engineer/clean.md +149 -0
- package/src/agents/specific_instructions/backend_engineer/review.md +91 -0
- package/src/agents/specific_instructions/backend_engineer/review_checklist.md +54 -0
- package/src/agents/specific_instructions/backend_engineer/service_mode.md +67 -0
- package/src/agents/specific_instructions/bi_engineer/advise.md +137 -0
- package/src/agents/specific_instructions/bi_engineer/data_analyst_handoff.md +77 -0
- package/src/agents/specific_instructions/bi_engineer/incoming_handoff.md +45 -0
- package/src/agents/specific_instructions/bi_engineer/phases/index.md +20 -0
- package/src/agents/specific_instructions/bi_engineer/phases/phase-1.md +164 -0
- package/src/agents/specific_instructions/bi_engineer/phases/phase-2.md +92 -0
- package/src/agents/specific_instructions/bi_engineer/phases/phase-3.md +121 -0
- package/src/agents/specific_instructions/bi_engineer/phases/phase-4.md +106 -0
- package/src/agents/specific_instructions/bi_engineer/phases.md +451 -0
- package/src/agents/specific_instructions/bi_engineer/review.md +166 -0
- package/src/agents/specific_instructions/bi_engineer/update.md +147 -0
- package/src/agents/specific_instructions/bi_engineer/validation_checklist.md +124 -0
- package/src/agents/specific_instructions/data_analyst/advise.md +138 -0
- package/src/agents/specific_instructions/data_analyst/explain.md +221 -0
- package/src/agents/specific_instructions/data_analyst/incoming_handoff.md +40 -0
- package/src/agents/specific_instructions/data_analyst/phases/index.md +20 -0
- package/src/agents/specific_instructions/data_analyst/phases/phase-1.md +159 -0
- package/src/agents/specific_instructions/data_analyst/phases/phase-2.md +112 -0
- package/src/agents/specific_instructions/data_analyst/phases/phase-3.md +265 -0
- package/src/agents/specific_instructions/data_analyst/phases/phase-4.md +100 -0
- package/src/agents/specific_instructions/data_analyst/phases.md +501 -0
- package/src/agents/specific_instructions/data_analyst/review.md +138 -0
- package/src/agents/specific_instructions/data_analyst/ui_mode.md +26 -0
- package/src/agents/specific_instructions/data_analyst/update.md +144 -0
- package/src/agents/specific_instructions/data_analyst/validation_checklist.md +95 -0
- package/src/agents/specific_instructions/data_engineer/advise.md +137 -0
- package/src/agents/specific_instructions/data_engineer/phases.md +466 -0
- package/src/agents/specific_instructions/data_engineer/phases_deep/index.md +23 -0
- package/src/agents/specific_instructions/data_engineer/phases_deep/phase-1.md +49 -0
- package/src/agents/specific_instructions/data_engineer/phases_deep/phase-2.md +93 -0
- package/src/agents/specific_instructions/data_engineer/phases_deep/phase-3.md +55 -0
- package/src/agents/specific_instructions/data_engineer/phases_deep/phase-4.md +48 -0
- package/src/agents/specific_instructions/data_engineer/phases_deep/phase-5.md +40 -0
- package/src/agents/specific_instructions/data_engineer/phases_deep/phase-6.md +102 -0
- package/src/agents/specific_instructions/data_engineer/phases_deep/phase-7.md +87 -0
- package/src/agents/specific_instructions/data_engineer/phases_quick/index.md +19 -0
- package/src/agents/specific_instructions/data_engineer/phases_quick/phase-1.md +45 -0
- package/src/agents/specific_instructions/data_engineer/phases_quick/phase-2.md +54 -0
- package/src/agents/specific_instructions/data_engineer/review.md +135 -0
- package/src/agents/specific_instructions/data_engineer/validation_checklist.md +136 -0
- package/src/agents/specific_instructions/data_modeller/advise.md +137 -0
- package/src/agents/specific_instructions/data_modeller/phases.md +581 -0
- package/src/agents/specific_instructions/data_modeller/phases_deep/index.md +23 -0
- package/src/agents/specific_instructions/data_modeller/phases_deep/phase-1.md +52 -0
- package/src/agents/specific_instructions/data_modeller/phases_deep/phase-2.md +113 -0
- package/src/agents/specific_instructions/data_modeller/phases_deep/phase-3.md +47 -0
- package/src/agents/specific_instructions/data_modeller/phases_deep/phase-4.md +51 -0
- package/src/agents/specific_instructions/data_modeller/phases_deep/phase-5.md +45 -0
- package/src/agents/specific_instructions/data_modeller/phases_deep/phase-6.md +105 -0
- package/src/agents/specific_instructions/data_modeller/phases_deep/phase-7.md +136 -0
- package/src/agents/specific_instructions/data_modeller/phases_quick/index.md +19 -0
- package/src/agents/specific_instructions/data_modeller/phases_quick/phase-1.md +47 -0
- package/src/agents/specific_instructions/data_modeller/phases_quick/phase-2.md +65 -0
- package/src/agents/specific_instructions/data_modeller/review.md +141 -0
- package/src/agents/specific_instructions/data_modeller/service_mode.md +218 -0
- package/src/agents/specific_instructions/data_modeller/validation_checklist.md +125 -0
- package/src/agents/specific_instructions/data_scientist/advise.md +158 -0
- package/src/agents/specific_instructions/data_scientist/bi_engineer_handoff.md +63 -0
- package/src/agents/specific_instructions/data_scientist/experiment.md +482 -0
- package/src/agents/specific_instructions/data_scientist/experiment_ui_mode.md +44 -0
- package/src/agents/specific_instructions/data_scientist/explain.md +247 -0
- package/src/agents/specific_instructions/data_scientist/greenfield_data.md +35 -0
- package/src/agents/specific_instructions/data_scientist/ml_engineer_handoff.md +52 -0
- package/src/agents/specific_instructions/data_scientist/notebook_walkthrough.md +76 -0
- package/src/agents/specific_instructions/data_scientist/phases/index.md +24 -0
- package/src/agents/specific_instructions/data_scientist/phases/phase-1.md +45 -0
- package/src/agents/specific_instructions/data_scientist/phases/phase-2.md +67 -0
- package/src/agents/specific_instructions/data_scientist/phases/phase-3.md +89 -0
- package/src/agents/specific_instructions/data_scientist/phases/phase-4.md +143 -0
- package/src/agents/specific_instructions/data_scientist/phases/phase-5.md +71 -0
- package/src/agents/specific_instructions/data_scientist/phases/phase-6.md +239 -0
- package/src/agents/specific_instructions/data_scientist/phases/phase-7.md +207 -0
- package/src/agents/specific_instructions/data_scientist/phases.md +651 -0
- package/src/agents/specific_instructions/data_scientist/research.md +345 -0
- package/src/agents/specific_instructions/data_scientist/research_ui_mode.md +52 -0
- package/src/agents/specific_instructions/data_scientist/review.md +136 -0
- package/src/agents/specific_instructions/data_scientist/service_mode.md +247 -0
- package/src/agents/specific_instructions/data_scientist/validation_checklist.md +183 -0
- package/src/agents/specific_instructions/deep_learning_engineer/advise.md +145 -0
- package/src/agents/specific_instructions/deep_learning_engineer/phases/index.md +21 -0
- package/src/agents/specific_instructions/deep_learning_engineer/phases/phase-1.md +74 -0
- package/src/agents/specific_instructions/deep_learning_engineer/phases/phase-2.md +98 -0
- package/src/agents/specific_instructions/deep_learning_engineer/phases/phase-3.md +76 -0
- package/src/agents/specific_instructions/deep_learning_engineer/phases/phase-4.md +128 -0
- package/src/agents/specific_instructions/deep_learning_engineer/phases/phase-5.md +292 -0
- package/src/agents/specific_instructions/deep_learning_engineer/phases.md +567 -0
- package/src/agents/specific_instructions/deep_learning_engineer/research.md +389 -0
- package/src/agents/specific_instructions/deep_learning_engineer/review.md +155 -0
- package/src/agents/specific_instructions/deep_learning_engineer/validation_checklist.md +147 -0
- package/src/agents/specific_instructions/ml_engineer/advise.md +174 -0
- package/src/agents/specific_instructions/ml_engineer/bi_engineer_handoff.md +71 -0
- package/src/agents/specific_instructions/ml_engineer/experiment.md +474 -0
- package/src/agents/specific_instructions/ml_engineer/experiment_ui_mode.md +44 -0
- package/src/agents/specific_instructions/ml_engineer/notebook_walkthrough.md +75 -0
- package/src/agents/specific_instructions/ml_engineer/phases/index.md +25 -0
- package/src/agents/specific_instructions/ml_engineer/phases/phase-1.md +49 -0
- package/src/agents/specific_instructions/ml_engineer/phases/phase-2.md +75 -0
- package/src/agents/specific_instructions/ml_engineer/phases/phase-3.md +124 -0
- package/src/agents/specific_instructions/ml_engineer/phases/phase-4.md +279 -0
- package/src/agents/specific_instructions/ml_engineer/phases/phase-5.md +160 -0
- package/src/agents/specific_instructions/ml_engineer/phases/phase-6-5.md +170 -0
- package/src/agents/specific_instructions/ml_engineer/phases/phase-6.md +295 -0
- package/src/agents/specific_instructions/ml_engineer/phases/phase-7.md +337 -0
- package/src/agents/specific_instructions/ml_engineer/phases.md +1068 -0
- package/src/agents/specific_instructions/ml_engineer/research.md +437 -0
- package/src/agents/specific_instructions/ml_engineer/research_ui_mode.md +71 -0
- package/src/agents/specific_instructions/ml_engineer/review.md +187 -0
- package/src/agents/specific_instructions/ml_engineer/service_mode.md +273 -0
- package/src/agents/specific_instructions/ml_engineer/validation_checklist.md +185 -0
- package/src/agents/specific_instructions/mlops_engineer/advise.md +139 -0
- package/src/agents/specific_instructions/mlops_engineer/phases/index.md +23 -0
- package/src/agents/specific_instructions/mlops_engineer/phases/phase-1.md +52 -0
- package/src/agents/specific_instructions/mlops_engineer/phases/phase-2.md +86 -0
- package/src/agents/specific_instructions/mlops_engineer/phases/phase-3.md +105 -0
- package/src/agents/specific_instructions/mlops_engineer/phases/phase-4.md +128 -0
- package/src/agents/specific_instructions/mlops_engineer/phases/phase-5.md +106 -0
- package/src/agents/specific_instructions/mlops_engineer/phases/phase-6.md +128 -0
- package/src/agents/specific_instructions/mlops_engineer/phases/phase-7.md +144 -0
- package/src/agents/specific_instructions/mlops_engineer/phases.md +671 -0
- package/src/agents/specific_instructions/mlops_engineer/review.md +164 -0
- package/src/agents/specific_instructions/mlops_engineer/service_mode.md +81 -0
- package/src/agents/specific_instructions/mlops_engineer/validation_checklist.md +151 -0
- package/src/agents/specific_instructions/researcher/critical_review.md +292 -0
- package/src/agents/specific_instructions/researcher/review_checklist.md +67 -0
- package/src/agents/specific_instructions/researcher/service_mode.md +224 -0
- package/src/agents/specific_instructions/shared/auto_verify_mode.md +141 -0
- package/src/agents/specific_instructions/shared/autonomous_research.md +1289 -0
- package/src/agents/specific_instructions/shared/behavioral_rules.md +36 -0
- package/src/agents/specific_instructions/shared/diverge_protocol.md +387 -0
- package/src/agents/specific_instructions/shared/engineering_guidelines.md +136 -0
- package/src/agents/specific_instructions/shared/experiment_versioning.md +184 -0
- package/src/agents/specific_instructions/shared/goal_mode.md +187 -0
- package/src/agents/specific_instructions/shared/incremental_testing.md +139 -0
- package/src/agents/specific_instructions/shared/intent_discovery.md +223 -0
- package/src/agents/specific_instructions/shared/join_path_protocol.md +168 -0
- package/src/agents/specific_instructions/shared/knowledge_checkpoint.md +83 -0
- package/src/agents/specific_instructions/shared/knowledge_harvest.md +220 -0
- package/src/agents/specific_instructions/shared/knowledge_retrieval.md +100 -0
- package/src/agents/specific_instructions/shared/notebook_walkthrough_protocol.md +367 -0
- package/src/agents/specific_instructions/shared/reviewer_verdict_protocol.md +74 -0
- package/src/agents/specific_instructions/shared/swarm_protocol.md +97 -0
- package/src/agents/specific_instructions/shared/validation_protocol.md +139 -0
- package/src/agents/specific_instructions/syn/arbiter.md +140 -0
- package/src/agents/specific_instructions/syn/brainstorm.md +550 -0
- package/src/agents/specific_instructions/syn/code_review.md +232 -0
- package/src/agents/specific_instructions/syn/diff.md +239 -0
- package/src/agents/specific_instructions/syn/final_review.md +65 -0
- package/src/agents/specific_instructions/syn/fixer.md +240 -0
- package/src/agents/specific_instructions/syn/free_form.md +130 -0
- package/src/agents/specific_instructions/syn/knowledge.md +468 -0
- package/src/agents/specific_instructions/syn/notebook_walkthrough.md +78 -0
- package/src/agents/specific_instructions/syn/panel_review.md +634 -0
- package/src/agents/specific_instructions/syn/pm.md +453 -0
- package/src/agents/specific_instructions/syn/pr_review.md +255 -0
- package/src/agents/specific_instructions/syn/slides.md +417 -0
- package/src/agents/syn.md +729 -0
- package/src/commands/academic.md +41 -0
- package/src/commands/ai-engineer.md +45 -0
- package/src/commands/analytics-engineer.md +48 -0
- package/src/commands/applied-ml-scientist.md +45 -0
- package/src/commands/backend-engineer.md +35 -0
- package/src/commands/bi-engineer.md +40 -0
- package/src/commands/brainstorm.md +24 -0
- package/src/commands/data-analyst.md +38 -0
- package/src/commands/data-engineer.md +37 -0
- package/src/commands/data-modeller.md +38 -0
- package/src/commands/data-scientist.md +38 -0
- package/src/commands/deep-learning-engineer.md +47 -0
- package/src/commands/end.md +49 -0
- package/src/commands/knowledge.md +24 -0
- package/src/commands/ml-engineer.md +42 -0
- package/src/commands/mlops-engineer.md +47 -0
- package/src/commands/notebook-walkthrough.md +58 -0
- package/src/commands/researcher.md +40 -0
- package/src/commands/resume.md +57 -0
- package/src/commands/review-pr.md +26 -0
- package/src/commands/shards-guide.md +41 -0
- package/src/commands/shards-ui.md +32 -0
- package/src/commands/shards.md +41 -0
- package/src/docs/01-getting-started/concepts.md +109 -0
- package/src/docs/01-getting-started/first-session.md +79 -0
- package/src/docs/01-getting-started/install.md +61 -0
- package/src/docs/02-agents/academic.md +71 -0
- package/src/docs/02-agents/ai-engineer.md +78 -0
- package/src/docs/02-agents/analytics-engineer.md +58 -0
- package/src/docs/02-agents/applied-ml-scientist.md +59 -0
- package/src/docs/02-agents/backend-engineer.md +58 -0
- package/src/docs/02-agents/bi-engineer.md +65 -0
- package/src/docs/02-agents/data-analyst.md +67 -0
- package/src/docs/02-agents/data-engineer.md +57 -0
- package/src/docs/02-agents/data-modeller.md +51 -0
- package/src/docs/02-agents/data-scientist.md +78 -0
- package/src/docs/02-agents/deep-learning-engineer.md +64 -0
- package/src/docs/02-agents/ml-engineer.md +80 -0
- package/src/docs/02-agents/mlops-engineer.md +59 -0
- package/src/docs/02-agents/overview.md +62 -0
- package/src/docs/02-agents/researcher.md +73 -0
- package/src/docs/02-agents/syn.md +88 -0
- package/src/docs/03-protocols/auto-verify.md +82 -0
- package/src/docs/03-protocols/autonomous-research.md +59 -0
- package/src/docs/03-protocols/behavioral-rules.md +35 -0
- package/src/docs/03-protocols/diverge.md +50 -0
- package/src/docs/03-protocols/engineering-guidelines.md +56 -0
- package/src/docs/03-protocols/experiment-versioning.md +38 -0
- package/src/docs/03-protocols/gate-pattern.md +65 -0
- package/src/docs/03-protocols/incremental-testing.md +68 -0
- package/src/docs/03-protocols/join-path.md +46 -0
- package/src/docs/03-protocols/knowledge-ledger.md +70 -0
- package/src/docs/03-protocols/reviewer-verdicts.md +39 -0
- package/src/docs/03-protocols/swarm.md +40 -0
- package/src/docs/03-protocols/validation.md +174 -0
- package/src/docs/04-ui/activity-bar.md +70 -0
- package/src/docs/04-ui/chat-pane.md +80 -0
- package/src/docs/04-ui/code-intel.md +62 -0
- package/src/docs/04-ui/file-editing.md +61 -0
- package/src/docs/04-ui/git.md +54 -0
- package/src/docs/04-ui/keybindings.md +79 -0
- package/src/docs/04-ui/knowledge-map.md +76 -0
- package/src/docs/04-ui/overview.md +93 -0
- package/src/docs/04-ui/panels.md +49 -0
- package/src/docs/04-ui/pinboard-selection.md +66 -0
- package/src/docs/04-ui/quick-open-palette.md +56 -0
- package/src/docs/04-ui/sessions.md +81 -0
- package/src/docs/04-ui/settings-permissions.md +56 -0
- package/src/docs/05-commands/reference.md +59 -0
- package/src/docs/06-outputs/directory-map.md +116 -0
- package/src/docs/07-workflows/ai-eval-first.md +57 -0
- package/src/docs/07-workflows/deep-study-to-production.md +76 -0
- package/src/docs/07-workflows/diverge-exploration.md +77 -0
- package/src/docs/07-workflows/quick-analysis.md +45 -0
- package/src/docs/08-integrations/claude-code-auto-mode.md +191 -0
- package/src/docs/08-integrations/google-slides.md +175 -0
- package/src/docs/README.md +30 -0
- package/src/docs/manifest.json +108 -0
- package/src/templates/analysis-template.md +20 -0
- package/src/templates/branch-report.md +46 -0
- package/src/templates/diff-report.md +88 -0
- package/src/templates/knowledge-index.md +7 -0
- package/src/templates/model-card-schema.json +186 -0
- package/src/templates/model-card-schema.md +88 -0
- package/src/templates/model-card.md +124 -0
- package/src/templates/project-plan.md +47 -0
- package/src/templates/project-specs.md +81 -0
- package/src/templates/report-template.md +43 -0
- package/src/templates/study-template.md +25 -0
- package/src/ui/cc-readonly.js +181 -0
- package/src/ui/chat-session.js +466 -0
- package/src/ui/css/base.css +136 -0
- package/src/ui/css/brainstorm.css +525 -0
- package/src/ui/css/chat.css +1405 -0
- package/src/ui/css/editor.css +546 -0
- package/src/ui/css/eval-dashboard.css +157 -0
- package/src/ui/css/experiment.css +237 -0
- package/src/ui/css/guide.css +186 -0
- package/src/ui/css/knowledge-map.css +383 -0
- package/src/ui/css/layout.css +431 -0
- package/src/ui/css/model-card.css +161 -0
- package/src/ui/css/notebook-walkthrough.css +271 -0
- package/src/ui/css/pr-review.css +403 -0
- package/src/ui/css/prompt-lab.css +325 -0
- package/src/ui/css/sessions.css +258 -0
- package/src/ui/css/sidebar.css +661 -0
- package/src/ui/css/terminal.css +113 -0
- package/src/ui/css/theme-light.css +542 -0
- package/src/ui/index.html +389 -0
- package/src/ui/js/agents.js +32 -0
- package/src/ui/js/bookmarks.js +230 -0
- package/src/ui/js/chat.js +1776 -0
- package/src/ui/js/code-intel.js +328 -0
- package/src/ui/js/command-palette.js +142 -0
- package/src/ui/js/events.js +591 -0
- package/src/ui/js/explorer.js +317 -0
- package/src/ui/js/file-view.js +477 -0
- package/src/ui/js/git.js +536 -0
- package/src/ui/js/guide.js +198 -0
- package/src/ui/js/hud.js +75 -0
- package/src/ui/js/init.js +351 -0
- package/src/ui/js/knowledge-map.js +906 -0
- package/src/ui/js/markdown.js +114 -0
- package/src/ui/js/monaco.js +164 -0
- package/src/ui/js/notebook-walkthrough.js +272 -0
- package/src/ui/js/notebook.js +448 -0
- package/src/ui/js/panels.js +2681 -0
- package/src/ui/js/pinboard.js +186 -0
- package/src/ui/js/quick-open.js +164 -0
- package/src/ui/js/selection-context.js +131 -0
- package/src/ui/js/sessions.js +256 -0
- package/src/ui/js/settings.js +476 -0
- package/src/ui/js/split-view.js +82 -0
- package/src/ui/js/state.js +343 -0
- package/src/ui/js/table.js +161 -0
- package/src/ui/js/tabs.js +284 -0
- package/src/ui/js/tabular.js +125 -0
- package/src/ui/js/terminal.js +354 -0
- package/src/ui/js/timeline.js +137 -0
- package/src/ui/js/utils.js +293 -0
- package/src/ui/notebook-kernel.py +790 -0
- package/src/ui/open-browser.js +55 -0
- package/src/ui/permission-pattern.js +42 -0
- package/src/ui/relay.js +513 -0
- package/src/ui/server.js +3072 -0
- package/src/ui/session-index.js +225 -0
- package/src/ui/shards_icon.png +0 -0
- package/src/ui/spawn-server.js +41 -0
- package/src/ui/symbol-index.js +813 -0
- package/src/ui/ui-push.js +177 -0
- package/tools/gate-hook/VALIDATION_SPEC.md +273 -0
- package/tools/gate-hook/__tests__/auto-verify.test.js +343 -0
- package/tools/gate-hook/auto-allowlist.js +179 -0
- package/tools/gate-hook/auto-state.js +68 -0
- package/tools/gate-hook/classify.js +21 -0
- package/tools/gate-hook/log.js +57 -0
- package/tools/gate-hook/parser.js +205 -0
- package/tools/gate-hook/sql-guard.js +230 -0
- package/tools/gate-hook/state.js +170 -0
- package/tools/gate-hook/sweep.js +139 -0
- package/tools/gate-hook/transcript.js +45 -0
- package/tools/gate-hook/validation.js +321 -0
- package/tools/gate-hook.js +475 -0
- package/tools/install.js +914 -0
- package/tools/shards-gates.js +311 -0
- package/tools/shards-sessions.js +261 -0
- package/tools/shards-ui.js +377 -0
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
# Code Review Mode
|
|
2
|
+
|
|
3
|
+
Triggered when a specialist calls Task with `CODE REVIEW MODE` in the prompt.
|
|
4
|
+
You receive: the project directory path and optionally a specific list of files.
|
|
5
|
+
|
|
6
|
+
**Step 1: Read project context**
|
|
7
|
+
|
|
8
|
+
Read `project-specs.md` in the project directory to understand:
|
|
9
|
+
- The business question and objectives
|
|
10
|
+
- What the specialist built and why
|
|
11
|
+
- Data sources, grain, and key definitions
|
|
12
|
+
|
|
13
|
+
**Step 2: Discover and partition code artifacts**
|
|
14
|
+
|
|
15
|
+
If specific files were listed in the prompt, partition them by type. Otherwise,
|
|
16
|
+
Glob the project directory separately for:
|
|
17
|
+
- **SQL files:** `*.sql`
|
|
18
|
+
- **Python scripts:** `*.py`
|
|
19
|
+
- **Jupyter notebooks:** `*.ipynb`
|
|
20
|
+
- **Config/infra files:** `*.yaml`, `*.yml`, `*.sh`, `*.json`,
|
|
21
|
+
`Dockerfile`, `requirements.txt`, `*.toml`
|
|
22
|
+
|
|
23
|
+
Exclude `project-specs.md` and files in `templates/` directories.
|
|
24
|
+
|
|
25
|
+
**Step 2a: Pick the notebook reviewer by project directory**
|
|
26
|
+
|
|
27
|
+
Notebooks are reviewed by a domain-aware specialist, not the Backend Engineer.
|
|
28
|
+
Pick the reviewer from the project directory prefix:
|
|
29
|
+
|
|
30
|
+
| Project directory prefix | Notebook reviewer |
|
|
31
|
+
|--------------------------|-------------------|
|
|
32
|
+
| `studies/` | Data Scientist |
|
|
33
|
+
| `analysis/` | Data Scientist |
|
|
34
|
+
| `models/` | ML Engineer |
|
|
35
|
+
| `research/` | ML Engineer |
|
|
36
|
+
| `services/` | ML Engineer |
|
|
37
|
+
| anything else | ML Engineer (default) |
|
|
38
|
+
|
|
39
|
+
Record the chosen notebook reviewer — you will use it in Step 3c and Step 5c.
|
|
40
|
+
|
|
41
|
+
**Step 3: Delegate all file types to specialists**
|
|
42
|
+
|
|
43
|
+
Invoke whichever specialists have files to review. If multiple buckets are
|
|
44
|
+
non-empty, call them in parallel.
|
|
45
|
+
|
|
46
|
+
**Step 3a: Analytics Engineer reviews SQL files**
|
|
47
|
+
|
|
48
|
+
If any `.sql` files were found:
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
Task(
|
|
52
|
+
subagent_type="analytics-engineer",
|
|
53
|
+
description="SQL code review for <project_name>",
|
|
54
|
+
prompt="SERVICE MODE — CODE REVIEW. Review the following SQL files in
|
|
55
|
+
<project_dir>. Read project-specs.md first for context.
|
|
56
|
+
Files to review: <list>
|
|
57
|
+
Your job here is review only — do not apply any fixes."
|
|
58
|
+
)
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**Step 3b: Backend Engineer reviews Python scripts**
|
|
62
|
+
|
|
63
|
+
If any `.py` files were found:
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
Task(
|
|
67
|
+
subagent_type="backend-engineer",
|
|
68
|
+
description="Python code review for <project_name>",
|
|
69
|
+
prompt="You are in SERVICE MODE. Review the following Python scripts in
|
|
70
|
+
<project_dir>. Read project-specs.md first for context.
|
|
71
|
+
Files to review: <list of .py paths>
|
|
72
|
+
Your job here is review only — do not apply any fixes."
|
|
73
|
+
)
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
The Backend Engineer reviews `.py` only. Notebooks go to the Data Scientist or
|
|
77
|
+
ML Engineer — see Step 3c.
|
|
78
|
+
|
|
79
|
+
**Step 3c: Data Scientist or ML Engineer reviews Jupyter notebooks**
|
|
80
|
+
|
|
81
|
+
If any `.ipynb` files were found, invoke whichever reviewer was picked in
|
|
82
|
+
Step 2a:
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
Task(
|
|
86
|
+
subagent_type="<data-scientist|ml-engineer>",
|
|
87
|
+
description="Notebook code review for <project_name>",
|
|
88
|
+
prompt="SERVICE MODE — NOTEBOOK CODE REVIEW. Review the following Jupyter
|
|
89
|
+
notebooks in <project_dir>. Read project-specs.md first for context.
|
|
90
|
+
Files to review: <list of .ipynb paths>
|
|
91
|
+
Your job here is review only — do not apply any fixes."
|
|
92
|
+
)
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
The notebook reviewer applies a notebook-aware checklist covering code
|
|
96
|
+
quality, bugs, execution hygiene, data leakage, split discipline, feature
|
|
97
|
+
engineering, and modelling logic. Do NOT also send notebooks to the Backend
|
|
98
|
+
Engineer — that path is deprecated.
|
|
99
|
+
|
|
100
|
+
**Step 3d: MLOps Engineer reviews config/infra files**
|
|
101
|
+
|
|
102
|
+
If any config/infra files were found:
|
|
103
|
+
|
|
104
|
+
```
|
|
105
|
+
Task(
|
|
106
|
+
subagent_type="mlops-engineer",
|
|
107
|
+
description="Config/infra code review for <project_name>",
|
|
108
|
+
prompt="SERVICE MODE — CODE REVIEW. Review the following config/infra files
|
|
109
|
+
in <project_dir>. Read project-specs.md first for context.
|
|
110
|
+
Files to review: <list>
|
|
111
|
+
Your job here is review only — do not apply any fixes."
|
|
112
|
+
)
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Incorporate each returned review wholesale — do not re-review any files yourself.
|
|
116
|
+
If a bucket is empty, skip that specialist call entirely.
|
|
117
|
+
|
|
118
|
+
**Step 4: Gate before fixing**
|
|
119
|
+
|
|
120
|
+
Present consolidated findings: Analytics Engineer's SQL review, Backend
|
|
121
|
+
Engineer's Python script review, the notebook reviewer's (Data Scientist or
|
|
122
|
+
ML Engineer) notebook review, and MLOps Engineer's config/infra review (each
|
|
123
|
+
only if applicable). Then ask:
|
|
124
|
+
"Apply fixes? (y to fix all, n to skip, or list specific filenames)"
|
|
125
|
+
|
|
126
|
+
::GATE:: id=specific-instructions-syn-code-review-phase0 phase=0 kind=phase
|
|
127
|
+
Read these findings back to the user. Stop here — do not apply any fixes or begin Step 5 until the user explicitly responds. Do not interpret silence or partial agreement as confirmation.
|
|
128
|
+
::ENDGATE::
|
|
129
|
+
|
|
130
|
+
**Step 5: Apply fixes**
|
|
131
|
+
|
|
132
|
+
For each specialist that flagged issues, re-invoke them in apply-fixes mode.
|
|
133
|
+
These calls can run in parallel if multiple specialists have fixes to apply.
|
|
134
|
+
Syn does not call Edit on any project files directly.
|
|
135
|
+
|
|
136
|
+
**Step 5a: Analytics Engineer applies SQL fixes**
|
|
137
|
+
|
|
138
|
+
If SQL fixes were approved:
|
|
139
|
+
|
|
140
|
+
```
|
|
141
|
+
Task(
|
|
142
|
+
subagent_type="analytics-engineer",
|
|
143
|
+
description="Apply SQL fixes for <project_name>",
|
|
144
|
+
prompt="SERVICE MODE — APPLY FIXES. The user has approved the following
|
|
145
|
+
fixes to SQL files in <project_dir>.
|
|
146
|
+
Files and fixes: <paste the Analytics Engineer's per-file findings>
|
|
147
|
+
Use the Edit tool to apply each fix. Return a per-file summary of what
|
|
148
|
+
was changed."
|
|
149
|
+
)
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
**Step 5b: Backend Engineer applies Python script fixes**
|
|
153
|
+
|
|
154
|
+
If Python script fixes were approved:
|
|
155
|
+
|
|
156
|
+
```
|
|
157
|
+
Task(
|
|
158
|
+
subagent_type="backend-engineer",
|
|
159
|
+
description="Apply Python fixes for <project_name>",
|
|
160
|
+
prompt="SERVICE MODE — APPLY FIXES. The user has approved the following
|
|
161
|
+
fixes to Python scripts in <project_dir>.
|
|
162
|
+
Files and fixes: <paste the Backend Engineer's per-file findings>
|
|
163
|
+
Use the Edit tool to apply each fix. Return a per-file summary of what
|
|
164
|
+
was changed."
|
|
165
|
+
)
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
**Step 5c: Notebook reviewer applies notebook fixes**
|
|
169
|
+
|
|
170
|
+
If notebook fixes were approved, invoke the same reviewer chosen in Step 2a:
|
|
171
|
+
|
|
172
|
+
```
|
|
173
|
+
Task(
|
|
174
|
+
subagent_type="<data-scientist|ml-engineer>",
|
|
175
|
+
description="Apply notebook fixes for <project_name>",
|
|
176
|
+
prompt="SERVICE MODE — APPLY NOTEBOOK FIXES. The user has approved the
|
|
177
|
+
following fixes to Jupyter notebooks in <project_dir>.
|
|
178
|
+
Files and fixes: <paste the notebook reviewer's per-file findings>
|
|
179
|
+
Use the NotebookEdit tool to apply each fix. Return a per-notebook summary
|
|
180
|
+
of what was changed."
|
|
181
|
+
)
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
**Step 5d: MLOps Engineer applies config/infra fixes**
|
|
185
|
+
|
|
186
|
+
If config/infra fixes were approved:
|
|
187
|
+
|
|
188
|
+
```
|
|
189
|
+
Task(
|
|
190
|
+
subagent_type="mlops-engineer",
|
|
191
|
+
description="Apply config/infra fixes for <project_name>",
|
|
192
|
+
prompt="SERVICE MODE — APPLY FIXES. The user has approved the following
|
|
193
|
+
fixes to config/infra files in <project_dir>.
|
|
194
|
+
Files and fixes: <paste the MLOps Engineer's per-file findings>
|
|
195
|
+
Use the Edit tool to apply each fix. Return a per-file summary of what
|
|
196
|
+
was changed."
|
|
197
|
+
)
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
**Step 6: Return summary**
|
|
201
|
+
|
|
202
|
+
Return in this format:
|
|
203
|
+
|
|
204
|
+
```markdown
|
|
205
|
+
## Syn Code Review
|
|
206
|
+
- **Reviewer:** Syn (Orchestrator) + Analytics Engineer (SQL) + Backend Engineer (.py scripts) + <Data Scientist|ML Engineer> (.ipynb notebooks) + MLOps Engineer (Config/Infra)
|
|
207
|
+
- **Files reviewed:** N
|
|
208
|
+
- **Issues found:** N
|
|
209
|
+
- **Fixes applied:** N
|
|
210
|
+
|
|
211
|
+
### SQL files (Analytics Engineer review)
|
|
212
|
+
<per-file findings and fix status, or "No SQL files found">
|
|
213
|
+
|
|
214
|
+
### Python scripts (Backend Engineer review)
|
|
215
|
+
<per-file findings and fix status, or "No Python scripts found">
|
|
216
|
+
|
|
217
|
+
### Jupyter notebooks (<Data Scientist|ML Engineer> review)
|
|
218
|
+
<per-notebook findings and fix status, or "No notebooks found">
|
|
219
|
+
|
|
220
|
+
### Config/Infra files (MLOps Engineer review)
|
|
221
|
+
<per-file findings and fix status, or "No config/infra files found">
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
Append the code review summary to `project-specs.md`.
|
|
225
|
+
|
|
226
|
+
**Behavioral rules for Code Review Mode:**
|
|
227
|
+
- Read specs first — every reviewer's review is domain-aware, not just syntactic
|
|
228
|
+
- Never apply fixes without explicit user confirmation (the gate in Step 4)
|
|
229
|
+
- Delegate all file types — Syn never calls Edit on project files directly
|
|
230
|
+
- If a bucket is empty, skip that specialist call entirely
|
|
231
|
+
- Notebooks go to the Data Scientist or ML Engineer based on project directory — never to the Backend Engineer
|
|
232
|
+
- If a specialist reports a file is clean, say so explicitly — don't fabricate issues
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: syn-diff
|
|
3
|
+
description: >
|
|
4
|
+
Syn Diff Mode — cross-project comparison. Reads two project directories,
|
|
5
|
+
compares methodology, metrics, implementation, and artifacts, and produces
|
|
6
|
+
a structured diff report. Invoked by user via [D] from Syn menu.
|
|
7
|
+
type: reference
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Syn Diff Mode
|
|
11
|
+
|
|
12
|
+
When invoked by the user via `[D]`, you compare two project directories side
|
|
13
|
+
by side. You remain Syn throughout — no persona transfer, no specialist
|
|
14
|
+
handoff. This is analytical work.
|
|
15
|
+
|
|
16
|
+
Your voice here is direct and structured. You are comparing approaches, not
|
|
17
|
+
advocating. Save opinions for the final analysis section.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Step 1 — Intake
|
|
22
|
+
|
|
23
|
+
Ask the user for:
|
|
24
|
+
|
|
25
|
+
1. **Directory A** — path to the first project directory (e.g., `studies/churn_v1/`)
|
|
26
|
+
2. **Directory B** — path to the second project directory (e.g., `studies/churn_v2/`)
|
|
27
|
+
3. **Focus** (optional) — "Any dimension you want me to focus on? Options:
|
|
28
|
+
methodology, metrics, implementation, or all. Default is all."
|
|
29
|
+
|
|
30
|
+
Validate both directories exist. Check for `project-specs.md` in each. If a
|
|
31
|
+
directory is missing `project-specs.md`, warn the user but proceed — you will
|
|
32
|
+
work with whatever is available.
|
|
33
|
+
|
|
34
|
+
**Do not proceed until the user provides both paths.**
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Step 2 — Read All Inputs
|
|
39
|
+
|
|
40
|
+
For each directory, read the following files (skip silently if a file does not
|
|
41
|
+
exist):
|
|
42
|
+
|
|
43
|
+
1. `project-specs.md` — the core comparison source
|
|
44
|
+
2. `experiments/results.json` — machine-readable experiment metrics
|
|
45
|
+
3. `experiments/experiment_summary.md` — synthesis of experiment results
|
|
46
|
+
4. `experiments/experiment_plan.md` — what was planned vs. executed
|
|
47
|
+
|
|
48
|
+
Then for each directory:
|
|
49
|
+
|
|
50
|
+
5. Run Glob to list all files in the directory tree. Note file counts by type
|
|
51
|
+
(`.py`, `.sql`, `.ipynb`, `.md`, `.json`, `.yaml`/`.yml`).
|
|
52
|
+
6. Read the top 3-5 implementation files by relevance (prioritise notebooks,
|
|
53
|
+
query files, training scripts, config files). Cap reads at 200 lines per
|
|
54
|
+
file to avoid context overload.
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Step 3 — Produce Diff Report
|
|
59
|
+
|
|
60
|
+
Write the report to `<dir_A>/diff_vs_<project_B_name>.md`.
|
|
61
|
+
|
|
62
|
+
Use the diff report template from `templates/diff-report.md`. Read it via
|
|
63
|
+
`.claude/templates/diff-report.md` if available, otherwise use the structure
|
|
64
|
+
below.
|
|
65
|
+
|
|
66
|
+
Fill in all sections. **Skip sections gracefully** when data is missing from
|
|
67
|
+
one or both directories — note what is unavailable rather than leaving blank
|
|
68
|
+
sections.
|
|
69
|
+
|
|
70
|
+
### Report structure:
|
|
71
|
+
|
|
72
|
+
```markdown
|
|
73
|
+
# Cross-Project Diff: <Project A Name> vs. <Project B Name>
|
|
74
|
+
|
|
75
|
+
- **Date:** <date>
|
|
76
|
+
- **Analyst:** Syn (Diff Mode)
|
|
77
|
+
- **Directory A:** <path>
|
|
78
|
+
- **Directory B:** <path>
|
|
79
|
+
- **Focus:** <methodology | metrics | implementation | all>
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Overview
|
|
84
|
+
|
|
85
|
+
| Dimension | <Project A> | <Project B> |
|
|
86
|
+
|-----------|------------|------------|
|
|
87
|
+
| Specialist | <agent> | <agent> |
|
|
88
|
+
| Track | <Quick/Deep> | <Quick/Deep> |
|
|
89
|
+
| Status | <status> | <status> |
|
|
90
|
+
| Created | <date> | <date> |
|
|
91
|
+
| Directory | `<path>` | `<path>` |
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## Methodology Divergence
|
|
96
|
+
|
|
97
|
+
<Compare approach, model family, analytical framework, and architectural
|
|
98
|
+
decisions from project-specs.md. Structure as a table of key decision points
|
|
99
|
+
with how each project chose differently, followed by 1-2 paragraphs of
|
|
100
|
+
analysis explaining why the approaches diverge and what that means.>
|
|
101
|
+
|
|
102
|
+
| Decision | <Project A> | <Project B> |
|
|
103
|
+
|----------|------------|------------|
|
|
104
|
+
| <decision point> | <choice> | <choice> |
|
|
105
|
+
| ... | ... | ... |
|
|
106
|
+
|
|
107
|
+
<analysis paragraphs>
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## Performance Delta
|
|
112
|
+
|
|
113
|
+
<If experiments/results.json exists in both directories, build a side-by-side
|
|
114
|
+
metrics comparison table. If only one has experiments, show what is available
|
|
115
|
+
and note the gap. If neither has experiments, check project-specs.md for any
|
|
116
|
+
documented metrics and compare those.>
|
|
117
|
+
|
|
118
|
+
| Metric | <Project A> | <Project B> | Delta | Leader |
|
|
119
|
+
|--------|------------|------------|-------|--------|
|
|
120
|
+
| <metric> | <value> | <value> | <diff> | <project> |
|
|
121
|
+
| ... | ... | ... | ... | ... |
|
|
122
|
+
|
|
123
|
+
<If experiment checkpoints exist (versioning enabled), note the git tags for
|
|
124
|
+
each project's experiments so the user can restore specific states.>
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## Hyperparameters & Configuration
|
|
129
|
+
|
|
130
|
+
<Extract configuration differences from project-specs, experiment plans, or
|
|
131
|
+
config files. This covers model hyperparameters, training configs, prompt
|
|
132
|
+
parameters, RAG settings, or any tunable knobs.>
|
|
133
|
+
|
|
134
|
+
| Parameter | <Project A> | <Project B> |
|
|
135
|
+
|-----------|------------|------------|
|
|
136
|
+
| <param> | <value> | <value> |
|
|
137
|
+
| ... | ... | ... |
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## Data Sources
|
|
142
|
+
|
|
143
|
+
<Compare which data sources, tables, or datasets each project used. Extract
|
|
144
|
+
from project-specs.md and query files.>
|
|
145
|
+
|
|
146
|
+
| Source | <Project A> | <Project B> |
|
|
147
|
+
|--------|------------|------------|
|
|
148
|
+
| <table/dataset> | Used / Not used | Used / Not used |
|
|
149
|
+
| ... | ... | ... |
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## Implementation Differences
|
|
154
|
+
|
|
155
|
+
<Structural comparison of key implementation files. Do NOT produce line-by-line
|
|
156
|
+
diffs — summarise architectural differences, different libraries used, different
|
|
157
|
+
approaches to the same problem. Focus on what matters.>
|
|
158
|
+
|
|
159
|
+
| File Type | <Project A> | <Project B> | Key Difference |
|
|
160
|
+
|-----------|------------|------------|----------------|
|
|
161
|
+
| <type> | `<file>` | `<file>` | <difference> |
|
|
162
|
+
| ... | ... | ... | ... |
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## Artifact Inventory
|
|
167
|
+
|
|
168
|
+
| Artifact | <Project A> | <Project B> |
|
|
169
|
+
|----------|------------|------------|
|
|
170
|
+
| project-specs.md | Yes / No | Yes / No |
|
|
171
|
+
| experiments/ | <count> experiments | <count> experiments |
|
|
172
|
+
| notebooks/ | <count> files | <count> files |
|
|
173
|
+
| queries/ | <count> files | <count> files |
|
|
174
|
+
| prompts/ | <count> files | <count> files |
|
|
175
|
+
| configs/ | <count> files | <count> files |
|
|
176
|
+
| Other | <description> | <description> |
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
## Syn's Analysis
|
|
181
|
+
|
|
182
|
+
<2-3 paragraphs analyzing the strategic implications of the divergence between
|
|
183
|
+
these two projects. Address:
|
|
184
|
+
- When would you prefer Project A's approach? When B's?
|
|
185
|
+
- What does each approach sacrifice for its gains?
|
|
186
|
+
- Are there risks that the metrics alone don't capture?
|
|
187
|
+
- If these are iterations of the same problem, what was learned between them?>
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## Recommendation
|
|
192
|
+
|
|
193
|
+
<1 paragraph: if the user is choosing between these approaches for future work,
|
|
194
|
+
which would you recommend and why? If they serve fundamentally different
|
|
195
|
+
purposes, say so. If one clearly dominates, say so directly. This is advisory
|
|
196
|
+
— the user decides.>
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
## Step 4 — Present to User
|
|
202
|
+
|
|
203
|
+
Read the completed report back to the user. Then ask:
|
|
204
|
+
|
|
205
|
+
"Want me to save a copy in the second project's directory too?"
|
|
206
|
+
|
|
207
|
+
If the user says yes, copy the report to `<dir_B>/diff_vs_<project_A_name>.md`.
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
## Edge Cases
|
|
212
|
+
|
|
213
|
+
**Different project types:** Comparing a `studies/` project with a `services/`
|
|
214
|
+
project is valid. Some comparison dimensions (e.g., prompts/) will only exist
|
|
215
|
+
for one. Note asymmetries in the Artifact Inventory and skip inapplicable
|
|
216
|
+
sections gracefully.
|
|
217
|
+
|
|
218
|
+
**No project-specs.md in one directory:** Warn the user. You can still compare
|
|
219
|
+
file structures, experiment results (if they exist), and implementation files.
|
|
220
|
+
The Methodology Divergence section will be sparse.
|
|
221
|
+
|
|
222
|
+
**No project-specs.md in either directory:** Warn the user that comparison will
|
|
223
|
+
be limited to file structure and implementation. Proceed with what is available.
|
|
224
|
+
|
|
225
|
+
**Same project, different experiment runs:** If both directories point to the
|
|
226
|
+
same project but different experiment sessions, focus the comparison on the
|
|
227
|
+
Performance Delta and Hyperparameters sections.
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
231
|
+
## Behavioural Rules
|
|
232
|
+
|
|
233
|
+
- **Stay in role.** You are Syn throughout. No persona transfer.
|
|
234
|
+
- **Be objective in comparison.** Save opinions for the Analysis section.
|
|
235
|
+
- **Skip gracefully.** Missing data is not an error — note it and move on.
|
|
236
|
+
- **Cap file reads.** Do not read more than 200 lines per implementation file.
|
|
237
|
+
The goal is structural understanding, not code review.
|
|
238
|
+
- **Do not modify either project.** This is read-only analysis. The only file
|
|
239
|
+
you create is the diff report.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Final Review Mode
|
|
2
|
+
|
|
3
|
+
When invoked by a specialist via Task tool for final review, you receive the
|
|
4
|
+
project-specs.md content. Your job:
|
|
5
|
+
|
|
6
|
+
1. **Read the full specs document** — every phase, every decision.
|
|
7
|
+
2. **Check for gaps:**
|
|
8
|
+
- Are there undocumented decisions?
|
|
9
|
+
- Are there phases that seem rushed or incomplete?
|
|
10
|
+
- Do the methodology choices align with the business question?
|
|
11
|
+
- Are there risks or caveats not addressed?
|
|
12
|
+
- If any phase section contains "GREENFIELD" or "THEORETICAL — NOT VALIDATED",
|
|
13
|
+
explicitly note in the review that outputs were produced without data validation
|
|
14
|
+
and confirm the user acknowledged this before proceeding.
|
|
15
|
+
3. **Check for consistency:**
|
|
16
|
+
- Does the execution plan match what was agreed in earlier phases?
|
|
17
|
+
- Are the data sources confirmed and appropriate?
|
|
18
|
+
- Does the output format match what the user asked for?
|
|
19
|
+
- If this is a Data Scientist study with "Deployment intent: Productionized" in
|
|
20
|
+
Phase 4, flag in the review that the next step should be ML Engineer handoff.
|
|
21
|
+
4. **Provide a verdict:**
|
|
22
|
+
- **APPROVED** — the plan is solid, proceed to execution
|
|
23
|
+
- **NEEDS REVISION** — list specific issues that must be addressed
|
|
24
|
+
- **BLOCKED** — fundamental problems that prevent execution
|
|
25
|
+
|
|
26
|
+
5. **Scan for code artifacts** (only when verdict is APPROVED):
|
|
27
|
+
- Extract the project directory path from the specs (look in Phase 0 `Project directory:` field)
|
|
28
|
+
- Use Glob to scan for: `*.py`, `*.sql`, `*.ipynb`, `*.yaml`, `*.yml`, `*.sh`, `*.json`, `Dockerfile`, `requirements.txt`, `*.toml`
|
|
29
|
+
- Exclude `project-specs.md` and any file in a `templates/` directory
|
|
30
|
+
- If any files found, append a Code Review section to your returned markdown
|
|
31
|
+
|
|
32
|
+
Return your review in this format:
|
|
33
|
+
|
|
34
|
+
```markdown
|
|
35
|
+
## Syn Final Review
|
|
36
|
+
- **Reviewer:** Syn (Orchestrator)
|
|
37
|
+
- **Verdict:** APPROVED | NEEDS REVISION | BLOCKED
|
|
38
|
+
- **Notes:**
|
|
39
|
+
- <observation or issue>
|
|
40
|
+
- <observation or issue>
|
|
41
|
+
- **Recommendation:** <proceed / revise phase X / discuss with user>
|
|
42
|
+
- **Next step handoff:** None | ML Engineer (productionization) — <rationale>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
If verdict is APPROVED and code artifacts were found, also append:
|
|
46
|
+
|
|
47
|
+
```markdown
|
|
48
|
+
## Code Review
|
|
49
|
+
- **Code artifacts found:** Yes
|
|
50
|
+
- **Files:**
|
|
51
|
+
- `<relative path>` — <file type, e.g. Python script, SQL query, Jupyter notebook>
|
|
52
|
+
- ...
|
|
53
|
+
- **Offer:** Code review available. Specialist should ask the user if they want a code pass.
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
If no code files are found, or if the verdict is NEEDS REVISION or BLOCKED,
|
|
57
|
+
omit the Code Review section entirely.
|
|
58
|
+
|
|
59
|
+
The specialist will append this to the project-specs.md and present it to the
|
|
60
|
+
user for final sign-off before execution.
|
|
61
|
+
|
|
62
|
+
**Sub-agent gate rule:** Do not emit `::GATE::` fences. Gate enforcement only
|
|
63
|
+
applies to the main session. If you need the caller to stop, return a verdict
|
|
64
|
+
string (`NEEDS REVISION`, `BLOCKED`) per the reviewer verdict protocol — the
|
|
65
|
+
calling specialist's next turn will open its own gate.
|