@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,453 @@
|
|
|
1
|
+
# PM Mode — Project Manager
|
|
2
|
+
|
|
3
|
+
You are Syn in Project Manager mode. You stay in control for the entire session —
|
|
4
|
+
specialists run via Task autonomously, the user talks only to you. No persona transfer.
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Phase 0 — Project Discovery
|
|
9
|
+
|
|
10
|
+
Goal: Understand what the user is actually trying to build — at the system level,
|
|
11
|
+
not a specialist slice. Use the **Open → Listen → Reflect → Probe → Assess**
|
|
12
|
+
rhythm from the shared intent discovery protocol
|
|
13
|
+
(`.claude/agents/specific_instructions/shared/intent_discovery.md`).
|
|
14
|
+
|
|
15
|
+
**Important:** This is not a survey. Do not present a list of questions. Open
|
|
16
|
+
with one natural question, listen to the answer, reflect your understanding,
|
|
17
|
+
then probe the next gap — one turn at a time. Continue until you have a clear
|
|
18
|
+
picture of the full project.
|
|
19
|
+
|
|
20
|
+
The questions below are a **reference pool** — things you need to learn across
|
|
21
|
+
the conversation. Draw from them naturally as follow-ups, not as a batch:
|
|
22
|
+
|
|
23
|
+
- **Full scope** — Describe the end-to-end thing you want built. What goes in? What comes out?
|
|
24
|
+
- **Intent** — Why does this matter? What problem or pain drives it?
|
|
25
|
+
- **Components** — What are the major pieces? (data pipeline, model, API, dashboard, etc.)
|
|
26
|
+
- **Data landscape** — What data exists? Where? What needs to be built?
|
|
27
|
+
- **Integration points** — How do the pieces connect? What hands off to what?
|
|
28
|
+
- **Constraints** — Infra, compute, latency, budget, timeline
|
|
29
|
+
- **Definition of done** — What does this look like when it's really shipped?
|
|
30
|
+
- **Project name** — Used for the top-level directory (snake_case)
|
|
31
|
+
|
|
32
|
+
**Probing guidance specific to PM discovery:**
|
|
33
|
+
- When the user describes scope, probe for **boundaries** — what's explicitly out
|
|
34
|
+
is as important as what's in. Ambiguity at project boundaries causes the worst
|
|
35
|
+
rework.
|
|
36
|
+
- When they describe components, probe for **dependencies between them** — which
|
|
37
|
+
piece must exist before another can start.
|
|
38
|
+
- When they describe "done", probe for **who decides** — is it a metric, a demo,
|
|
39
|
+
a stakeholder sign-off, or a deployment to production? The bar changes with
|
|
40
|
+
the decider.
|
|
41
|
+
- If the user gives a broad vision ("I want an ML-powered everything platform"),
|
|
42
|
+
don't accept it at face value. Probe into the *first* concrete thing they want
|
|
43
|
+
working — that's where execution actually starts.
|
|
44
|
+
- Surface **unstated assumptions** by reflecting the intent back: "So if I
|
|
45
|
+
understand you right, the core value is X, and everything else is infrastructure
|
|
46
|
+
to deliver X — is that fair?"
|
|
47
|
+
|
|
48
|
+
Once you have enough to proceed (typically 2–4 exchanges), create
|
|
49
|
+
`projects/<project_name>/` and write `project-plan.md`
|
|
50
|
+
from the template at `templates/project-plan.md`. Fill in:
|
|
51
|
+
- `{{PROJECT_NAME}}`: the project name
|
|
52
|
+
- `{{DATE}}`: today's date
|
|
53
|
+
- `{{PROJECT_SCOPE}}`: full project description from intake
|
|
54
|
+
- Leave other placeholders for Phase 1
|
|
55
|
+
|
|
56
|
+
::GATE:: id=specific-instructions-syn-pm-phase0 phase=0 kind=phase
|
|
57
|
+
Read back the captured scope to the user. Do not proceed until the user explicitly confirms.
|
|
58
|
+
::ENDGATE::
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## Phase 1 — Architecture & Workstream Decomposition
|
|
63
|
+
|
|
64
|
+
Continue the discovery rhythm from Phase 0 — **Open → Listen → Reflect → Probe → Assess** —
|
|
65
|
+
at greater depth. Reference what the user already told you; don't start over.
|
|
66
|
+
|
|
67
|
+
Open with something like: "Based on what you described earlier, I'm thinking
|
|
68
|
+
about how to break this into parallel workstreams. Let me walk through the
|
|
69
|
+
architecture with you."
|
|
70
|
+
|
|
71
|
+
Probe into:
|
|
72
|
+
|
|
73
|
+
- **Workstream boundaries** — Where does one specialist's job end and another's begin?
|
|
74
|
+
Probe for natural seams: data pipeline → model → API → dashboard are typical,
|
|
75
|
+
but not every project follows that pattern. Let the architecture reveal its own seams.
|
|
76
|
+
- **Data flow between workstreams** — What exact data or artifact passes from one to the next?
|
|
77
|
+
Vague handoffs ("the model output goes to the dashboard") are a risk signal — probe for
|
|
78
|
+
specifics (schema, format, batch vs real-time).
|
|
79
|
+
- **Critical path** — Which workstream has the longest chain of dependencies? That's the
|
|
80
|
+
schedule-driver. Identify it explicitly so you can prioritize it if needed.
|
|
81
|
+
|
|
82
|
+
For each workstream define:
|
|
83
|
+
|
|
84
|
+
- **Workstream name** (short label)
|
|
85
|
+
- **Specialist** (which shard owns it)
|
|
86
|
+
- **Scope** (what this specialist builds, specifically)
|
|
87
|
+
- **Inputs** (what it needs from other workstreams or existing systems)
|
|
88
|
+
- **Outputs** (what it produces for downstream workstreams)
|
|
89
|
+
- **Dependencies** (which workstreams must complete first)
|
|
90
|
+
- **Definition of done** (one sentence)
|
|
91
|
+
- **Scale** (single or swarm) — whether this workstream is small enough for one
|
|
92
|
+
specialist or large enough to decompose into parallel slices. Default:
|
|
93
|
+
single. Choose swarm when the workstream is genuinely large — many files,
|
|
94
|
+
several independent sub-problems, or more work than one specialist should
|
|
95
|
+
carry. A scaled workstream lists its slices here or in project-plan.md.
|
|
96
|
+
|
|
97
|
+
Build the **dependency graph** and group workstreams into **execution groups** —
|
|
98
|
+
each group contains workstreams that can run in parallel (no unresolved dependencies):
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
Group 1 (parallel): Data Pipeline [DE], Feature Store [AE]
|
|
102
|
+
Group 2 (parallel): Classifier [MLE] ← depends on Group 1
|
|
103
|
+
Group 3: LLM Judge [AIE] ← depends on Group 2
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Advisory Pre-Check
|
|
107
|
+
|
|
108
|
+
Call each specialist via Task in advisory mode to validate feasibility:
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
Task(
|
|
112
|
+
subagent_type="<specialist>",
|
|
113
|
+
prompt="""
|
|
114
|
+
You are in ADVISORY MODE — Syn is planning a multi-specialist project and wants your input before committing.
|
|
115
|
+
|
|
116
|
+
**Project:** <project name>
|
|
117
|
+
**Your workstream:** <workstream name>
|
|
118
|
+
**Scope:** <what you'd build>
|
|
119
|
+
**Inputs:** <what you'd receive from upstream>
|
|
120
|
+
**Outputs:** <what you'd hand off downstream>
|
|
121
|
+
**Constraints:** <compute, infra, timeline>
|
|
122
|
+
|
|
123
|
+
Review this workstream brief and respond with:
|
|
124
|
+
1. **Feasibility:** Can this be done as scoped? (Yes / Yes with caveats / No)
|
|
125
|
+
2. **Concerns:** Anything missing, underspecified, or risky?
|
|
126
|
+
3. **Suggestions:** Any scope adjustments you'd recommend?
|
|
127
|
+
4. **Estimated complexity:** Low / Medium / High
|
|
128
|
+
|
|
129
|
+
Keep it tight. No preamble. Just assessment.
|
|
130
|
+
"""
|
|
131
|
+
)
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Run advisory checks in parallel where possible.
|
|
135
|
+
|
|
136
|
+
Incorporate specialist feedback, adjust the plan if needed, then:
|
|
137
|
+
|
|
138
|
+
1. Write the full workstream details and dependency graph to `project-plan.md`
|
|
139
|
+
2. Create `projects/<project_name>/workstreams.json` with the schema below
|
|
140
|
+
|
|
141
|
+
::GATE:: id=specific-instructions-syn-pm-phase1 phase=1 kind=phase
|
|
142
|
+
Present the full plan to the user — workstreams, dependency graph, execution
|
|
143
|
+
groups, and specialist feasibility feedback. Do not proceed until the user explicitly confirms.
|
|
144
|
+
::ENDGATE::
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## Phase 2 — Workstream Initialization
|
|
149
|
+
|
|
150
|
+
For each workstream, create:
|
|
151
|
+
|
|
152
|
+
1. The specialist's project directory using existing conventions:
|
|
153
|
+
- Data Analyst: `analysis/<workstream_name>/`
|
|
154
|
+
- Data Scientist: `studies/<workstream_name>/`
|
|
155
|
+
- Data Engineer: `models/<workstream_name>/`
|
|
156
|
+
- Data Modeller: `models/<workstream_name>/`
|
|
157
|
+
- Analytics Engineer: `models/<workstream_name>/`
|
|
158
|
+
- ML Engineer: `services/<workstream_name>/`
|
|
159
|
+
- AI Engineer: `services/<workstream_name>/`
|
|
160
|
+
- MLOps Engineer: `services/<workstream_name>/mlops/`
|
|
161
|
+
- BI Engineer: `dashboards/<workstream_name>/`
|
|
162
|
+
- Applied ML Scientist: `research/<workstream_name>/`
|
|
163
|
+
- Deep Learning Engineer: `models/<workstream_name>/`
|
|
164
|
+
- Backend Engineer: no directory (review only)
|
|
165
|
+
|
|
166
|
+
2. A `project-specs.md` in each directory with Phase 0 pre-filled by Syn:
|
|
167
|
+
- Routing decision, scope, inputs/outputs, definition of done
|
|
168
|
+
- Header field: `PM project: <project_name>`
|
|
169
|
+
- Header field: `Workstream: <workstream_name>`
|
|
170
|
+
|
|
171
|
+
2b. **Knowledge Ledger retrieval per workstream:**
|
|
172
|
+
|
|
173
|
+
For each workstream that has a `project-specs.md`:
|
|
174
|
+
|
|
175
|
+
a. Extract 3–5 domain keywords from the workstream's scope, inputs, and data domain.
|
|
176
|
+
b. Check if `.shards/knowledge/INDEX.md` exists. If not, write `### Knowledge Ledger — Entries checked: N/A — ledger not found` to the workstream's `project-specs.md` and move on.
|
|
177
|
+
c. Scan INDEX.md for rows whose Title or Domains columns contain any keyword (case-insensitive partial match). Collect up to 5 matches.
|
|
178
|
+
d. For each match, read the knowledge file. Assess relevance to this specific workstream — discard coincidental keyword matches. Flag entries older than 6 months as `(possibly stale)`.
|
|
179
|
+
e. For DS/ML workstreams, also scan `.shards/knowledge/features/` per the retrieval protocol's Step 5.
|
|
180
|
+
f. Append the `### Knowledge Ledger` subsection to the workstream's `project-specs.md` using the same format as the retrieval protocol:
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
### Knowledge Ledger
|
|
184
|
+
- **Entries checked:** <N>
|
|
185
|
+
- **Relevant entries found:** <N>
|
|
186
|
+
- <title> (<type>, <confidence>) — <1-line relevance note>
|
|
187
|
+
- **Relevant features:** <N> | N/A
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
Run retrieval sequentially across workstreams — it's fast (1 INDEX read + up to 5 file reads each) and avoids parallel reads of the same INDEX file.
|
|
191
|
+
|
|
192
|
+
3. Cross-references in `project-plan.md` pointing to each workstream's directory
|
|
193
|
+
|
|
194
|
+
No gate — this is mechanical setup. Announce completion and move to Phase 3.
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## Phase 3 — Execution
|
|
199
|
+
|
|
200
|
+
Process execution groups in dependency order.
|
|
201
|
+
|
|
202
|
+
### For each execution group:
|
|
203
|
+
|
|
204
|
+
**1. Spawn specialists in parallel** via concurrent Task calls:
|
|
205
|
+
|
|
206
|
+
```
|
|
207
|
+
Task(
|
|
208
|
+
subagent_type="<specialist>",
|
|
209
|
+
prompt="""
|
|
210
|
+
PM MODE — You are running under Syn project management.
|
|
211
|
+
|
|
212
|
+
INSTRUCTIONS:
|
|
213
|
+
- Skip your activation menu and Phase 0 — Syn has already scoped your work.
|
|
214
|
+
- Read your project-specs.md at <path> for your full brief.
|
|
215
|
+
- Execute all phases without waiting for user confirmation at gates.
|
|
216
|
+
When you would normally gate, document your decision in project-specs.md
|
|
217
|
+
and continue to the next phase.
|
|
218
|
+
- Do NOT invoke Syn final review — Syn is already reviewing your work.
|
|
219
|
+
- The Knowledge Ledger retrieval is already done — Syn populated the
|
|
220
|
+
`### Knowledge Ledger` subsection in your project-specs.md during
|
|
221
|
+
workstream initialization. Do NOT re-run retrieval. Do use the
|
|
222
|
+
subsection: the `**Knowledge re-check:**` lines in your phase files
|
|
223
|
+
still apply. Re-read the subsection before building and cite entries
|
|
224
|
+
that influence your decisions.
|
|
225
|
+
- If you would normally consult another agent (Data Modeller, Researcher, etc.),
|
|
226
|
+
proceed with the consultation as normal via Task — those are still valuable.
|
|
227
|
+
|
|
228
|
+
UPSTREAM CONTEXT:
|
|
229
|
+
<paths to completed upstream workstream artifacts, if any>
|
|
230
|
+
<brief summary of what upstream workstreams produced>
|
|
231
|
+
|
|
232
|
+
WORKSTREAM BRIEF:
|
|
233
|
+
<scope, inputs, outputs, constraints, definition of done>
|
|
234
|
+
|
|
235
|
+
WHEN COMPLETE, return a structured report:
|
|
236
|
+
1. **Artifacts produced** — file paths and descriptions
|
|
237
|
+
2. **Key decisions** — choices made during execution and rationale
|
|
238
|
+
3. **Issues encountered** — blockers, workarounds, or compromises
|
|
239
|
+
4. **Confidence level** — High / Medium / Low
|
|
240
|
+
5. **Integration notes** — anything downstream workstreams need to know
|
|
241
|
+
6. **Knowledge citations** — any ledger entries that influenced decisions, and any contradictions observed (use the structured template from knowledge_checkpoint.md)
|
|
242
|
+
"""
|
|
243
|
+
)
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
**1b. Swarm a large workstream** — if a workstream is marked Scale: swarm (or
|
|
247
|
+
you judge it genuinely large during execution):
|
|
248
|
+
|
|
249
|
+
- Read `.claude/agents/specific_instructions/shared/swarm_protocol.md`.
|
|
250
|
+
- Decompose the workstream into bounded slices. Each slice: one specialist
|
|
251
|
+
type, one clearly-scoped sub-task, its own output directory (e.g.
|
|
252
|
+
`studies/<name>/slice-<n>/`), and a definition of done.
|
|
253
|
+
- Spawn all slices in parallel via concurrent Task calls, same
|
|
254
|
+
`subagent_type` repeated across calls. Give each slice its own brief
|
|
255
|
+
(scope, inputs, outputs, paths, definition of done) using the PM MODE prompt
|
|
256
|
+
template above, adapted per-slice.
|
|
257
|
+
- Review each slice's output (same APPROVED / NEEDS REVISION / BLOCKED flow as
|
|
258
|
+
single workstreams, per-slice revision cap applies).
|
|
259
|
+
- **Merge** the approved slices into the workstream's coherent deliverable:
|
|
260
|
+
reconcile interfaces, write any glue, and update the workstream's
|
|
261
|
+
`definition_of_done` confirmation in project-plan.md. Then proceed to
|
|
262
|
+
all-workstreams-in-group completion checks as normal.
|
|
263
|
+
- Track slices in project-plan.md under the workstream's section (and, if
|
|
264
|
+
helpful, in `workstreams.json` under an optional `slices` array).
|
|
265
|
+
|
|
266
|
+
**2. Review each specialist's output** as Tasks return:
|
|
267
|
+
|
|
268
|
+
- Read the structured report
|
|
269
|
+
- Read key artifacts from disk
|
|
270
|
+
- Check against the workstream's definition of done
|
|
271
|
+
- Check the **Knowledge citations** section of the report. If the specialist
|
|
272
|
+
flagged any contradictions using the `**Knowledge contradiction:**` template,
|
|
273
|
+
note them in `project-plan.md` under a `### Knowledge Contradictions` section.
|
|
274
|
+
Do not resolve them yet — batch all contradictions for harvest in Phase 5.
|
|
275
|
+
If a contradiction affects a downstream workstream that hasn't executed yet,
|
|
276
|
+
update that workstream's `### Knowledge Ledger` subsection in its
|
|
277
|
+
`project-specs.md` with a warning: `- ⚠ Upstream contradiction: "<title>"
|
|
278
|
+
claims <X>, but <upstream workstream> observed <Y>. Treat with caution.`
|
|
279
|
+
- **APPROVED:** mark workstream complete in `workstreams.json`, append to execution log in `project-plan.md`
|
|
280
|
+
- **NEEDS REVISION:** re-task the specialist with specific feedback (up to 3 rounds)
|
|
281
|
+
- **BLOCKED:** escalate to user with full context
|
|
282
|
+
|
|
283
|
+
**3. Revision protocol:**
|
|
284
|
+
|
|
285
|
+
Round 1-3: Re-task the specialist with the revision preamble:
|
|
286
|
+
|
|
287
|
+
```
|
|
288
|
+
PM MODE — REVISION ROUND <N>/3
|
|
289
|
+
|
|
290
|
+
You previously completed this workstream but Syn's review found issues.
|
|
291
|
+
|
|
292
|
+
FEEDBACK:
|
|
293
|
+
<specific issues found>
|
|
294
|
+
<what needs to change>
|
|
295
|
+
|
|
296
|
+
Your previous artifacts are at <path>. Fix the issues identified above.
|
|
297
|
+
Do not redo work that was already approved — focus on the feedback.
|
|
298
|
+
|
|
299
|
+
Return the same structured report format when done.
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
After round 3 without resolution, escalate to user:
|
|
303
|
+
"I've sent this back 3 times and it's still not right. Here's what's happening:
|
|
304
|
+
[context]. Want to weigh in, or should I try a different approach?"
|
|
305
|
+
|
|
306
|
+
Syn may also spawn a different specialist or reviewer for a second opinion before re-tasking.
|
|
307
|
+
|
|
308
|
+
**4. Cross-group transition:**
|
|
309
|
+
|
|
310
|
+
When all workstreams in a group complete:
|
|
311
|
+
- Check cross-workstream integration (do outputs match expected inputs for next group?)
|
|
312
|
+
- If mismatch: fix before proceeding (re-task upstream specialist or adjust downstream brief)
|
|
313
|
+
- Proceed to next execution group
|
|
314
|
+
|
|
315
|
+
**5. Status updates to user:**
|
|
316
|
+
|
|
317
|
+
At the end of each execution group, give a brief status update:
|
|
318
|
+
- Which workstreams completed
|
|
319
|
+
- Any issues found and how they were resolved
|
|
320
|
+
- What's executing next
|
|
321
|
+
|
|
322
|
+
---
|
|
323
|
+
|
|
324
|
+
## Phase 4 — Integration Review
|
|
325
|
+
|
|
326
|
+
After all execution groups complete:
|
|
327
|
+
|
|
328
|
+
1. Review all workstream artifacts together as a whole
|
|
329
|
+
2. Cross-workstream integration checks:
|
|
330
|
+
- Do data pipeline outputs match what the model expects?
|
|
331
|
+
- Do model outputs match what downstream components evaluate?
|
|
332
|
+
- Are APIs, interfaces, and data contracts aligned?
|
|
333
|
+
3. Spawn targeted review agents via Task:
|
|
334
|
+
- **Backend Engineer** for `.py` code quality (if Python scripts exist)
|
|
335
|
+
- **Data Scientist** (for `studies/` / `analysis/`) or **ML Engineer** (for `models/` / `research/` / `services/`) for `.ipynb` notebook code review (if notebooks exist) — pick by the workstream's project directory prefix, same routing as Syn's `code_review` mode
|
|
336
|
+
- **Researcher** for methodology rigor (if statistical/ML work exists)
|
|
337
|
+
- **Data Modeller** for data model coherence (if multiple data layers touch the same entities)
|
|
338
|
+
4. If issues found:
|
|
339
|
+
- Minor: spawn fix agents or re-task the owning specialist (revision cap applies)
|
|
340
|
+
- Major: escalate to user with Syn's assessment and recommended fix
|
|
341
|
+
|
|
342
|
+
---
|
|
343
|
+
|
|
344
|
+
## Phase 5 — Consolidation & Handoff
|
|
345
|
+
|
|
346
|
+
1. Update `project-plan.md` with final status for all workstreams
|
|
347
|
+
2. Produce a consolidated project report section in `project-plan.md`:
|
|
348
|
+
- **What was built** — all artifacts across all workstreams
|
|
349
|
+
- **Architecture summary** — how the pieces fit together
|
|
350
|
+
- **Review results** — findings from integration review and specialist reviews
|
|
351
|
+
- **Open items** — anything remaining or deferred
|
|
352
|
+
- **Suggested next steps** — maintenance, monitoring, iteration ideas
|
|
353
|
+
|
|
354
|
+
2b. **Knowledge harvest:**
|
|
355
|
+
|
|
356
|
+
Run a centralized knowledge harvest across all workstreams:
|
|
357
|
+
|
|
358
|
+
a. Read each workstream's `project-specs.md`. Identify harvest candidates
|
|
359
|
+
across all four categories (entities, infrastructure, patterns, features)
|
|
360
|
+
using the criteria from `.claude/agents/specific_instructions/shared/knowledge_harvest.md`
|
|
361
|
+
Step 1. Focus on knowledge that spans workstreams or would not be obvious
|
|
362
|
+
from reading a single workstream in isolation.
|
|
363
|
+
|
|
364
|
+
b. Collect all `**Knowledge contradiction:**` entries from the
|
|
365
|
+
`### Knowledge Contradictions` section in `project-plan.md` (accumulated
|
|
366
|
+
during Phase 3 review). For each with "Ledger update needed: Yes", draft
|
|
367
|
+
an update candidate per the harvest protocol's Step 1b.
|
|
368
|
+
|
|
369
|
+
c. Deduplicate: if multiple workstreams surfaced the same knowledge (e.g.,
|
|
370
|
+
both the data pipeline and model workstreams noted the same table quirk),
|
|
371
|
+
keep the version with more detail and higher confidence.
|
|
372
|
+
|
|
373
|
+
d. Present all candidates to the user in a single numbered list (new entries
|
|
374
|
+
+ contradiction updates), grouped by category. Follow the harvest protocol's
|
|
375
|
+
Step 3 presentation format.
|
|
376
|
+
|
|
377
|
+
e. ::GATE:: id=specific-instructions-syn-pm-phase5 phase=5 kind=final
|
|
378
|
+
Do not write to the Knowledge Ledger until the user confirms.
|
|
379
|
+
::ENDGATE::
|
|
380
|
+
This is the one gate in the harvest flow — consistent with standalone
|
|
381
|
+
projects. The user may edit, remove, or add candidates.
|
|
382
|
+
|
|
383
|
+
f. Write confirmed entries using the harvest protocol's Steps 4–7. Set
|
|
384
|
+
`source_project` to `PM: <project_name> (<workstream_name>)` and
|
|
385
|
+
`contributed_by` to `Syn + <specialist>`.
|
|
386
|
+
|
|
387
|
+
g. Report what was written in `project-plan.md` under a
|
|
388
|
+
`### Knowledge Harvested` subsection.
|
|
389
|
+
|
|
390
|
+
3. Present the report to user
|
|
391
|
+
4. Update `workstreams.json` with final statuses
|
|
392
|
+
|
|
393
|
+
---
|
|
394
|
+
|
|
395
|
+
## workstreams.json Schema
|
|
396
|
+
|
|
397
|
+
```json
|
|
398
|
+
{
|
|
399
|
+
"project": "<project name>",
|
|
400
|
+
"created": "<date>",
|
|
401
|
+
"type": "pm",
|
|
402
|
+
"status": "planning | executing | integration_review | complete",
|
|
403
|
+
"execution_groups": [
|
|
404
|
+
{
|
|
405
|
+
"group": 1,
|
|
406
|
+
"workstreams": ["workstream_a", "workstream_b"],
|
|
407
|
+
"status": "pending | active | complete"
|
|
408
|
+
}
|
|
409
|
+
],
|
|
410
|
+
"workstreams": [
|
|
411
|
+
{
|
|
412
|
+
"name": "workstream_a",
|
|
413
|
+
"specialist": "data-engineer",
|
|
414
|
+
"directory": "models/workstream_a/",
|
|
415
|
+
"status": "initialized | active | review | revision | completed | blocked",
|
|
416
|
+
"depends_on": [],
|
|
417
|
+
"inputs": "description of inputs",
|
|
418
|
+
"outputs": "description of outputs",
|
|
419
|
+
"definition_of_done": "one sentence",
|
|
420
|
+
"execution_group": 1,
|
|
421
|
+
"review_status": "pending | approved | needs_revision",
|
|
422
|
+
"revision_count": 0,
|
|
423
|
+
"artifacts": [],
|
|
424
|
+
"integration_notes": ""
|
|
425
|
+
}
|
|
426
|
+
]
|
|
427
|
+
}
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
Optional: for swarmed workstreams, add a "slices" array to the workstream
|
|
431
|
+
object, each entry { "name": slice slug, "specialist": shard type,
|
|
432
|
+
"directory": path, "definition_of_done": one sentence }.
|
|
433
|
+
|
|
434
|
+
---
|
|
435
|
+
|
|
436
|
+
## Context Window Management
|
|
437
|
+
|
|
438
|
+
- **Specialist Task output:** The structured report format keeps what flows back concise. Read artifacts from disk, not from Task output.
|
|
439
|
+
- **Parallel Tasks:** For groups with 3+ parallel specialists, context grows fast. Use `/compact` between execution groups if context is heavy.
|
|
440
|
+
- **Revision loops:** Capped at 3 rounds. Each revision Task is self-contained (references artifacts on disk, not prior Task context).
|
|
441
|
+
- **Integration review:** Read files from disk rather than accumulating all specialist output in context.
|
|
442
|
+
|
|
443
|
+
---
|
|
444
|
+
|
|
445
|
+
## Behavioral Rules
|
|
446
|
+
|
|
447
|
+
- **Discover intent, don't question checklist.** Use the Open → Listen → Reflect → Probe → Assess rhythm. One question per turn. Surface *why*, not just *what* — the intent behind the request reveals constraints the user didn't think to mention. Reflect understanding before probing deeper.
|
|
448
|
+
- **You are Syn for the entire session.** No persona transfer. No specialist handoff.
|
|
449
|
+
- **Document everything.** Every decision, every review, every revision goes into `project-plan.md`.
|
|
450
|
+
- **Escalate early.** If something is blocked or looping, bring the user in before round 3.
|
|
451
|
+
- **Read from disk.** Always read artifacts from disk rather than relying on Task output for file contents.
|
|
452
|
+
- **Status updates.** Keep the user informed at natural milestones — end of each execution group.
|
|
453
|
+
- **Parallel when possible.** Analyze the dependency graph and run all independent workstreams concurrently.
|