@polymorphism-tech/morph-spec 4.3.3 → 4.3.5
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/.morph/.morphversion +5 -0
- package/.morph/analytics/threads-log.jsonl +9 -0
- package/{stacks/blazor-azure/.morph → .morph}/config/agents.json +948 -948
- package/.morph/config/config.json +9 -0
- package/{stacks/blazor-azure/.morph → .morph}/project/context/README.md +1 -1
- package/.morph/project/context/detection-log.md +16 -0
- package/.morph/project/standards/inferred.md +59 -0
- package/.morph/state.json +48 -0
- package/.morph/templates/.idea/morph-templates.xml +92 -0
- package/.morph/templates/.vscode/morph-templates.code-snippets +186 -0
- package/.morph/templates/IDE-SNIPPETS.md +266 -0
- package/.morph/templates/README.md +814 -0
- package/.morph/templates/REGISTRY.json +1677 -0
- package/.morph/templates/code/dotnet/backend/repository.cs +141 -0
- package/.morph/templates/code/dotnet/backend/service.cs +139 -0
- package/.morph/templates/code/dotnet/contracts/Commands.cs +74 -0
- package/.morph/templates/code/dotnet/contracts/Entities.cs +25 -0
- package/.morph/templates/code/dotnet/contracts/Queries.cs +74 -0
- package/.morph/templates/code/dotnet/contracts/README.md +74 -0
- package/.morph/templates/code/dotnet/contracts/api-contracts.cs +173 -0
- package/.morph/templates/code/dotnet/contracts/contracts.cs +217 -0
- package/.morph/templates/code/dotnet/database/migration.cs +83 -0
- package/.morph/templates/code/dotnet/frontend/component.razor +239 -0
- package/.morph/templates/code/dotnet/jobs/agent.cs +163 -0
- package/.morph/templates/code/dotnet/jobs/job.cs +171 -0
- package/.morph/templates/code/dotnet/test.cs +239 -0
- package/.morph/templates/code/sql/rls-policy.sql +57 -0
- package/.morph/templates/code/sql/supabase-migration.sql +100 -0
- package/.morph/templates/code/sql/supabase-migration.template.sql +113 -0
- package/.morph/templates/code/typescript/contracts.ts +168 -0
- package/.morph/templates/context/CONTEXT-FEATURE.md +276 -0
- package/.morph/templates/context/CONTEXT.md +181 -0
- package/.morph/templates/docs/proposal.md +182 -0
- package/.morph/templates/docs/spec.md +149 -0
- package/.morph/templates/examples/design-system-examples.md +357 -0
- package/.morph/templates/examples/spec-examples.md +90 -0
- package/.morph/templates/feature/decisions.md +187 -0
- package/.morph/templates/feature/recap.md +146 -0
- package/.morph/templates/feature/tasks.md +199 -0
- package/.morph/templates/infrastructure/azure/Dockerfile.example +82 -0
- package/.morph/templates/infrastructure/azure/README.md +286 -0
- package/.morph/templates/infrastructure/azure/app-insights.bicep +63 -0
- package/.morph/templates/infrastructure/azure/app-service.bicep +164 -0
- package/.morph/templates/infrastructure/azure/container-app-env.bicep +49 -0
- package/.morph/templates/infrastructure/azure/container-app.bicep +156 -0
- package/.morph/templates/infrastructure/azure/deploy-checklist.md +426 -0
- package/.morph/templates/infrastructure/azure/deploy.ps1 +229 -0
- package/.morph/templates/infrastructure/azure/deploy.sh +208 -0
- package/.morph/templates/infrastructure/azure/key-vault.bicep +91 -0
- package/.morph/templates/infrastructure/azure/main.bicep +189 -0
- package/.morph/templates/infrastructure/azure/parameters.dev.json +29 -0
- package/.morph/templates/infrastructure/azure/parameters.prod.json +29 -0
- package/.morph/templates/infrastructure/azure/parameters.staging.json +29 -0
- package/.morph/templates/infrastructure/azure/sql-database.bicep +103 -0
- package/.morph/templates/infrastructure/azure/storage.bicep +106 -0
- package/.morph/templates/infrastructure/docker/Dockerfile.template +58 -0
- package/.morph/templates/infrastructure/docker/docker-compose.template.yml +67 -0
- package/.morph/templates/infrastructure/docker/dockerfile-api.dockerfile +38 -0
- package/.morph/templates/infrastructure/docker/dockerfile-web.dockerfile +48 -0
- package/.morph/templates/infrastructure/docker/easypanel.template.json +54 -0
- package/.morph/templates/infrastructure/github/README.md +593 -0
- package/.morph/templates/infrastructure/github/actions/azure-auth/action.yml.hbs +22 -0
- package/.morph/templates/infrastructure/github/actions/docker-build-push/action.yml.hbs +45 -0
- package/.morph/templates/infrastructure/github/actions/health-check/action.yml.hbs +27 -0
- package/.morph/templates/infrastructure/github/workflows/deploy-azure-app-service.yml.hbs +61 -0
- package/.morph/templates/infrastructure/github/workflows/deploy-easypanel.yml.hbs +31 -0
- package/.morph/templates/infrastructure/github/workflows/docker-build-push.yml.hbs +59 -0
- package/.morph/templates/infrastructure/github/workflows/dotnet-build.yml.hbs +39 -0
- package/.morph/templates/integrations/asaas-client.cs +387 -0
- package/.morph/templates/integrations/asaas-webhook.cs +351 -0
- package/.morph/templates/integrations/azure-identity-config.cs +288 -0
- package/.morph/templates/integrations/clerk-config.cs +258 -0
- package/.morph/templates/meta-prompts/fusion/fusion-agent.md +76 -0
- package/.morph/templates/meta-prompts/fusion/fusion-aggregator.md +100 -0
- package/.morph/templates/meta-prompts/hops/hop-retry.md +78 -0
- package/.morph/templates/meta-prompts/hops/hop-validation.md +97 -0
- package/.morph/templates/meta-prompts/hops/hop-wrapper.md +36 -0
- package/.morph/templates/meta-prompts/parallel-workers/parallel-coordinator.md +113 -0
- package/.morph/templates/meta-prompts/parallel-workers/parallel-worker.md +80 -0
- package/.morph/templates/meta-prompts/squad-leaders/backend-squad.md +90 -0
- package/.morph/templates/meta-prompts/squad-leaders/frontend-squad.md +126 -0
- package/.morph/templates/meta-prompts/squad-leaders/squad-leader.md +43 -0
- package/.morph/templates/meta-prompts/validators/checkpoint-validator.md +107 -0
- package/.morph/templates/meta-prompts/validators/pre-commit-validator.md +95 -0
- package/.morph/templates/saas/subscription.cs +347 -0
- package/.morph/templates/saas/tenant.cs +338 -0
- package/.morph/templates/state.template.json +17 -0
- package/.morph/templates/ui/FluentDesignTheme.cs +149 -0
- package/.morph/templates/ui/MudTheme.cs +281 -0
- package/.morph/templates/ui/design-system.css +226 -0
- package/bin/detect-agents.js +1 -2
- package/bin/morph-spec.js +1 -14
- package/framework/agents.json +948 -0
- package/{stacks/nextjs-supabase/.claude → framework}/commands/morph-infra.md +1 -1
- package/framework/hooks/README.md +282 -0
- package/framework/hooks/agent-stop/validate-and-continue.js +96 -0
- package/framework/hooks/agent-stop/validate-checkpoints.js +101 -0
- package/framework/hooks/agent-stop/validate-tests.js +109 -0
- package/framework/hooks/agent-teams/dispatch.js +67 -0
- package/framework/hooks/agent-teams/phase-advanced.js +80 -0
- package/framework/hooks/agent-teams/task-completed.js +76 -0
- package/framework/hooks/agent-teams/teammate-idle.js +70 -0
- package/framework/hooks/commit-msg/conventional-commits.sh +33 -0
- package/framework/hooks/pre-commit/agents.sh +25 -0
- package/framework/hooks/pre-commit/orchestrator.sh +64 -0
- package/framework/hooks/pre-commit/specs.sh +50 -0
- package/framework/hooks/pre-push/run-tests.sh +44 -0
- package/framework/index/troubleshooting-index.json +184 -0
- package/framework/memory/patterns-learned.md +766 -0
- package/framework/skills/level-0-meta/README.md +7 -0
- package/framework/skills/level-0-meta/code-review.md +226 -0
- package/framework/skills/level-0-meta/morph-checklist.md +117 -0
- package/framework/skills/level-0-meta/simulation-checklist.md +77 -0
- package/framework/skills/level-1-workflows/README.md +7 -0
- package/framework/skills/level-1-workflows/morph-replicate.md +213 -0
- package/framework/skills/level-1-workflows/phase-clarify.md +131 -0
- package/framework/skills/level-1-workflows/phase-design.md +213 -0
- package/framework/skills/level-1-workflows/phase-setup.md +106 -0
- package/framework/skills/level-1-workflows/phase-tasks.md +164 -0
- package/framework/skills/level-1-workflows/phase-uiux.md +169 -0
- package/framework/skills/level-2-domains/README.md +14 -0
- package/framework/skills/level-2-domains/ai-agents/ai-system-architect.md +192 -0
- package/framework/skills/level-2-domains/architecture/po-pm-advisor.md +197 -0
- package/framework/skills/level-2-domains/architecture/prompt-engineer.md +189 -0
- package/framework/skills/level-2-domains/architecture/seo-growth-hacker.md +320 -0
- package/framework/skills/level-2-domains/architecture/standards-architect.md +156 -0
- package/framework/skills/level-2-domains/backend/api-designer.md +59 -0
- package/framework/skills/level-2-domains/backend/dotnet-senior.md +77 -0
- package/framework/skills/level-2-domains/backend/ef-modeler.md +58 -0
- package/framework/skills/level-2-domains/backend/hangfire-orchestrator.md +126 -0
- package/framework/skills/level-2-domains/backend/ms-agent-expert.md +45 -0
- package/framework/skills/level-2-domains/frontend/blazor-builder.md +210 -0
- package/framework/skills/level-2-domains/frontend/nextjs-expert.md +154 -0
- package/framework/skills/level-2-domains/frontend/ui-ux-designer.md +191 -0
- package/framework/skills/level-2-domains/infrastructure/azure-architect.md +142 -0
- package/framework/skills/level-2-domains/infrastructure/azure-deploy-specialist.md +699 -0
- package/framework/skills/level-2-domains/infrastructure/bicep-architect.md +126 -0
- package/framework/skills/level-2-domains/infrastructure/container-specialist.md +131 -0
- package/framework/skills/level-2-domains/infrastructure/devops-engineer.md +119 -0
- package/framework/skills/level-2-domains/integrations/asaas-financial.md +130 -0
- package/framework/skills/level-2-domains/integrations/azure-identity.md +142 -0
- package/framework/skills/level-2-domains/integrations/clerk-auth.md +108 -0
- package/framework/skills/level-2-domains/integrations/hangfire-orchestrator.md +64 -0
- package/framework/skills/level-2-domains/integrations/resend-email.md +119 -0
- package/framework/skills/level-2-domains/quality/code-analyzer.md +235 -0
- package/framework/skills/level-2-domains/quality/testing-specialist.md +126 -0
- package/framework/skills/level-3-technologies/README.md +7 -0
- package/framework/skills/level-4-patterns/README.md +7 -0
- package/framework/squad-templates/backend-only.json +34 -0
- package/framework/squad-templates/frontend-only.json +34 -0
- package/framework/squad-templates/full-stack.json +52 -0
- package/framework/templates/.idea/morph-templates.xml +92 -0
- package/framework/templates/.vscode/morph-templates.code-snippets +186 -0
- package/framework/templates/IDE-SNIPPETS.md +266 -0
- package/framework/templates/README.md +814 -0
- package/framework/templates/REGISTRY.json +1677 -0
- package/framework/templates/code/dotnet/backend/repository.cs +141 -0
- package/framework/templates/code/dotnet/backend/service.cs +139 -0
- package/framework/templates/code/dotnet/contracts/Commands.cs +74 -0
- package/framework/templates/code/dotnet/contracts/Entities.cs +25 -0
- package/framework/templates/code/dotnet/contracts/Queries.cs +74 -0
- package/framework/templates/code/dotnet/contracts/README.md +74 -0
- package/framework/templates/code/dotnet/contracts/api-contracts.cs +173 -0
- package/framework/templates/code/dotnet/contracts/contracts.cs +217 -0
- package/framework/templates/code/dotnet/database/migration.cs +83 -0
- package/framework/templates/code/dotnet/frontend/component.razor +239 -0
- package/framework/templates/code/dotnet/jobs/agent.cs +163 -0
- package/framework/templates/code/dotnet/jobs/job.cs +171 -0
- package/framework/templates/code/dotnet/test.cs +239 -0
- package/framework/templates/code/sql/rls-policy.sql +57 -0
- package/framework/templates/code/sql/supabase-migration.sql +100 -0
- package/framework/templates/code/sql/supabase-migration.template.sql +113 -0
- package/framework/templates/code/typescript/contracts.ts +168 -0
- package/framework/templates/context/CONTEXT-FEATURE.md +276 -0
- package/framework/templates/context/CONTEXT.md +181 -0
- package/framework/templates/docs/proposal.md +182 -0
- package/framework/templates/docs/spec.md +149 -0
- package/framework/templates/examples/design-system-examples.md +357 -0
- package/framework/templates/examples/spec-examples.md +90 -0
- package/framework/templates/feature/decisions.md +187 -0
- package/framework/templates/feature/recap.md +146 -0
- package/framework/templates/feature/tasks.md +199 -0
- package/framework/templates/infrastructure/azure/Dockerfile.example +82 -0
- package/framework/templates/infrastructure/azure/README.md +286 -0
- package/framework/templates/infrastructure/azure/app-insights.bicep +63 -0
- package/framework/templates/infrastructure/azure/app-service.bicep +164 -0
- package/framework/templates/infrastructure/azure/container-app-env.bicep +49 -0
- package/framework/templates/infrastructure/azure/container-app.bicep +156 -0
- package/framework/templates/infrastructure/azure/deploy-checklist.md +426 -0
- package/framework/templates/infrastructure/azure/deploy.ps1 +229 -0
- package/framework/templates/infrastructure/azure/deploy.sh +208 -0
- package/framework/templates/infrastructure/azure/key-vault.bicep +91 -0
- package/framework/templates/infrastructure/azure/main.bicep +189 -0
- package/framework/templates/infrastructure/azure/parameters.dev.json +29 -0
- package/framework/templates/infrastructure/azure/parameters.prod.json +29 -0
- package/framework/templates/infrastructure/azure/parameters.staging.json +29 -0
- package/framework/templates/infrastructure/azure/sql-database.bicep +103 -0
- package/framework/templates/infrastructure/azure/storage.bicep +106 -0
- package/framework/templates/infrastructure/docker/Dockerfile.template +58 -0
- package/framework/templates/infrastructure/docker/docker-compose.template.yml +67 -0
- package/framework/templates/infrastructure/docker/dockerfile-api.dockerfile +38 -0
- package/framework/templates/infrastructure/docker/dockerfile-web.dockerfile +48 -0
- package/framework/templates/infrastructure/docker/easypanel.template.json +54 -0
- package/framework/templates/infrastructure/github/README.md +593 -0
- package/framework/templates/infrastructure/github/actions/azure-auth/action.yml.hbs +22 -0
- package/framework/templates/infrastructure/github/actions/docker-build-push/action.yml.hbs +45 -0
- package/framework/templates/infrastructure/github/actions/health-check/action.yml.hbs +27 -0
- package/framework/templates/infrastructure/github/workflows/deploy-azure-app-service.yml.hbs +61 -0
- package/framework/templates/infrastructure/github/workflows/deploy-easypanel.yml.hbs +31 -0
- package/framework/templates/infrastructure/github/workflows/docker-build-push.yml.hbs +59 -0
- package/framework/templates/infrastructure/github/workflows/dotnet-build.yml.hbs +39 -0
- package/framework/templates/integrations/asaas-client.cs +387 -0
- package/framework/templates/integrations/asaas-webhook.cs +351 -0
- package/framework/templates/integrations/azure-identity-config.cs +288 -0
- package/framework/templates/integrations/clerk-config.cs +258 -0
- package/framework/templates/meta-prompts/fusion/fusion-agent.md +76 -0
- package/framework/templates/meta-prompts/fusion/fusion-aggregator.md +100 -0
- package/framework/templates/meta-prompts/hops/hop-retry.md +78 -0
- package/framework/templates/meta-prompts/hops/hop-validation.md +97 -0
- package/framework/templates/meta-prompts/hops/hop-wrapper.md +36 -0
- package/framework/templates/meta-prompts/parallel-workers/parallel-coordinator.md +113 -0
- package/framework/templates/meta-prompts/parallel-workers/parallel-worker.md +80 -0
- package/framework/templates/meta-prompts/squad-leaders/backend-squad.md +90 -0
- package/framework/templates/meta-prompts/squad-leaders/frontend-squad.md +126 -0
- package/framework/templates/meta-prompts/squad-leaders/squad-leader.md +43 -0
- package/framework/templates/meta-prompts/validators/checkpoint-validator.md +107 -0
- package/framework/templates/meta-prompts/validators/pre-commit-validator.md +95 -0
- package/framework/templates/saas/subscription.cs +347 -0
- package/framework/templates/saas/tenant.cs +338 -0
- package/framework/templates/state.template.json +17 -0
- package/framework/templates/ui/FluentDesignTheme.cs +149 -0
- package/framework/templates/ui/MudTheme.cs +281 -0
- package/framework/templates/ui/design-system.css +226 -0
- package/framework/workflows/README.md +1041 -0
- package/framework/workflows/configs/design-impl.json +49 -0
- package/framework/workflows/configs/fast-track.json +42 -0
- package/framework/workflows/configs/full-morph.json +79 -0
- package/framework/workflows/configs/fusion.json +39 -0
- package/framework/workflows/configs/long-running.json +33 -0
- package/framework/workflows/configs/standard.json +60 -0
- package/framework/workflows/configs/ui-refresh.json +49 -0
- package/framework/workflows/configs/zero-touch.json +75 -0
- package/framework/workflows/docs/STORY-DRIVEN-DEVELOPMENT.md +392 -0
- package/framework/workflows/docs/design-impl.md +37 -0
- package/framework/workflows/docs/enforcement-pipeline.md +668 -0
- package/framework/workflows/docs/fast-track.md +29 -0
- package/framework/workflows/docs/full-morph.md +76 -0
- package/framework/workflows/docs/standard.md +44 -0
- package/framework/workflows/docs/ui-refresh.md +39 -0
- package/package.json +3 -3
- package/src/commands/feature/create-story.js +11 -7
- package/src/commands/project/detect-agents.js +1 -2
- package/src/commands/project/init.js +69 -32
- package/src/commands/project/update.js +102 -15
- package/src/commands/templates/template-customize.js +3 -17
- package/src/commands/templates/template-list.js +1 -15
- package/src/commands/templates/template-render.js +2 -3
- package/src/commands/templates/template-show.js +3 -5
- package/src/core/templates/template-registry.js +9 -23
- package/src/lib/detectors/structure-detector.js +3 -3
- package/src/lib/generators/context-generator.js +18 -6
- package/src/lib/hooks/hook-executor.js +0 -2
- package/src/lib/orchestration/team-orchestrator.js +1 -2
- package/src/lib/standards/standards-context-injector.js +3 -4
- package/src/lib/troubleshooting/troubleshoot-grep.js +3 -9
- package/src/lib/validators/validation-runner.js +1 -2
- package/src/utils/file-copier.js +1 -2
- package/docs/README.md +0 -144
- package/docs/api/fonts/Montserrat/Montserrat-Bold.eot +0 -0
- package/docs/api/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
- package/docs/api/fonts/Montserrat/Montserrat-Bold.woff +0 -0
- package/docs/api/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
- package/docs/api/fonts/Montserrat/Montserrat-Regular.eot +0 -0
- package/docs/api/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
- package/docs/api/fonts/Montserrat/Montserrat-Regular.woff +0 -0
- package/docs/api/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
- package/docs/api/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
- package/docs/api/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +0 -978
- package/docs/api/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
- package/docs/api/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
- package/docs/api/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
- package/docs/api/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
- package/docs/api/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +0 -1049
- package/docs/api/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
- package/docs/api/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
- package/docs/api/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
- package/docs/api/scripts/collapse.js +0 -39
- package/docs/api/scripts/commonNav.js +0 -28
- package/docs/api/scripts/linenumber.js +0 -25
- package/docs/api/scripts/nav.js +0 -12
- package/docs/api/scripts/polyfill.js +0 -4
- package/docs/api/scripts/prettify/Apache-License-2.0.txt +0 -202
- package/docs/api/scripts/prettify/lang-css.js +0 -2
- package/docs/api/scripts/prettify/prettify.js +0 -28
- package/docs/api/scripts/search.js +0 -99
- package/docs/api/styles/jsdoc.css +0 -776
- package/docs/api/styles/prettify.css +0 -80
- package/docs/cli-auto-detection.md +0 -219
- package/docs/getting-started.md +0 -296
- package/docs/installation.md +0 -361
- package/docs/next-generation/AGENTS.md +0 -521
- package/docs/next-generation/ANALYSIS.md +0 -555
- package/docs/next-generation/ARCHITECTURE.md +0 -436
- package/docs/next-generation/CONTEXT-OPTIMIZATION.md +0 -267
- package/docs/next-generation/EXECUTION-FLOW.md +0 -274
- package/docs/next-generation/FEATURES.md +0 -688
- package/docs/next-generation/META-PROMPTS.md +0 -235
- package/docs/next-generation/MIGRATION-GUIDE.md +0 -253
- package/docs/next-generation/README.md +0 -231
- package/docs/next-generation/ROADMAP.md +0 -801
- package/docs/next-generation/THREAD-MANAGEMENT.md +0 -240
- package/docs/templates.md +0 -418
- package/docs/troubleshooting.md +0 -269
- package/docs/validation-checklist.md +0 -264
- package/scripts/postinstall.js +0 -132
- package/src/lib/stacks/index.js +0 -7
- package/src/lib/stacks/stack-resolver.js +0 -180
- package/stacks/blazor-azure/.claude/commands/morph-deploy.md +0 -529
- package/stacks/blazor-azure/.claude/commands/morph-infra.md +0 -209
- package/stacks/blazor-azure/.morph/.morphversion +0 -5
- package/stacks/blazor-azure/.morph/config/config.json +0 -9
- package/stacks/blazor-azure/CLAUDE.md +0 -155
- package/stacks/blazor-azure/README.md +0 -79
- package/stacks/nextjs-supabase/.claude/commands/morph-apply.md +0 -221
- package/stacks/nextjs-supabase/.claude/commands/morph-archive.md +0 -79
- package/stacks/nextjs-supabase/.claude/commands/morph-deploy.md +0 -529
- package/stacks/nextjs-supabase/.claude/commands/morph-preflight.md +0 -227
- package/stacks/nextjs-supabase/.claude/commands/morph-proposal.md +0 -122
- package/stacks/nextjs-supabase/.claude/commands/morph-status.md +0 -86
- package/stacks/nextjs-supabase/.claude/commands/morph-troubleshoot.md +0 -122
- package/stacks/nextjs-supabase/.morph/.morphversion +0 -5
- package/stacks/nextjs-supabase/.morph/config/agents.json +0 -345
- package/stacks/nextjs-supabase/.morph/config/config.json +0 -9
- package/stacks/nextjs-supabase/.morph/project/context/README.md +0 -17
- package/stacks/nextjs-supabase/CLAUDE.md +0 -155
- package/stacks/nextjs-supabase/README.md +0 -103
- /package/{stacks/blazor-azure/.morph → .morph}/standards/ai-agents/blazor-ui.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/ai-agents/production.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/ai-agents/setup.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/ai-agents/team-orchestration.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/ai-agents/workflows.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/architecture/ddd/aggregates.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/architecture/ddd/entities.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/architecture/ddd/value-objects.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/backend/api/minimal-api.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/backend/api/rest.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/backend/api/validation.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/backend/authentication/passkeys.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/backend/database/ef-core.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/backend/database/migrations.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/backend/database/postgresql/database.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/backend/database/repository-patterns.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/backend/database/vector-search-rag.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/backend/dotnet/async.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/backend/dotnet/core.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/backend/dotnet/di.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/backend/dotnet/program-cs-checklist.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/backend/integrations/asaas/asaas-api.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/backend/integrations/clerk/clerk-auth.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/backend/integrations/hangfire/hangfire-jobs.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/backend/integrations/resend/resend-email.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/context/analytics.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/context/bundles.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/context/priming.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/core/architecture.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/core/coding.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/core/git-branching-strategy.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/core/git.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/core/testing.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/data/nosql/blob-storage.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/data/nosql/cache/redis.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/data/nosql/cosmos-db.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/data/vector-search/azure-ai-search.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/data/vector-search/rag-chunking.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/frontend/blazor/design-checklist.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/frontend/blazor/fluent-ui-setup.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/frontend/blazor/fluent-ui.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/frontend/blazor/html-conversion.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/frontend/blazor/lifecycle.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/frontend/blazor/pitfalls.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/frontend/blazor/state.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/frontend/design-system/animations.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/frontend/design-system/naming.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/frontend/nextjs/nextjs-patterns.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/infrastructure/azure/azure.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/infrastructure/azure/bicep/bicep-patterns.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/infrastructure/azure/devops/azure-devops-setup.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/infrastructure/azure/devops/local-development.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/infrastructure/azure/services/functions.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/infrastructure/azure/services/service-bus.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/infrastructure/azure/services/storage.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/infrastructure/docker/easypanel-deploy.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/infrastructure/supabase/mcp-setup.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/infrastructure/supabase/supabase-auth.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/infrastructure/supabase/supabase-pgvector.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/infrastructure/supabase/supabase-rls.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/infrastructure/supabase/supabase-storage.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/integration/api/graphql.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/integration/api/grpc.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/integration/api/rest-design.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/integration/event-driven/cqrs.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/integration/event-driven/event-sourcing.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/integration/event-driven/service-bus.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/observability/logging.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/observability/metrics.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/observability/monitoring.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/observability/tracing.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/workflows/parallel-execution.md +0 -0
- /package/{stacks/blazor-azure/.morph → .morph}/standards/workflows/thread-management.md +0 -0
- /package/{stacks/blazor-azure/.claude → framework}/commands/morph-apply.md +0 -0
- /package/{stacks/blazor-azure/.claude → framework}/commands/morph-archive.md +0 -0
- /package/{stacks/blazor-azure/.claude → framework}/commands/morph-preflight.md +0 -0
- /package/{stacks/blazor-azure/.claude → framework}/commands/morph-proposal.md +0 -0
- /package/{stacks/blazor-azure/.claude → framework}/commands/morph-status.md +0 -0
- /package/{stacks/blazor-azure/.claude → framework}/commands/morph-troubleshoot.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/ai-agents/blazor-ui.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/ai-agents/production.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/ai-agents/setup.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/ai-agents/team-orchestration.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/ai-agents/workflows.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/architecture/ddd/aggregates.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/architecture/ddd/entities.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/architecture/ddd/value-objects.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/backend/api/minimal-api.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/backend/api/rest.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/backend/api/validation.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/backend/authentication/passkeys.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/backend/database/ef-core.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/backend/database/migrations.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/backend/database/postgresql/database.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/backend/database/repository-patterns.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/backend/database/vector-search-rag.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/backend/dotnet/async.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/backend/dotnet/core.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/backend/dotnet/di.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/backend/dotnet/program-cs-checklist.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/backend/integrations/asaas/asaas-api.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/backend/integrations/clerk/clerk-auth.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/backend/integrations/hangfire/hangfire-jobs.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/backend/integrations/resend/resend-email.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/context/analytics.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/context/bundles.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/context/priming.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/core/architecture.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/core/coding.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/core/git-branching-strategy.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/core/git.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/core/testing.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/data/nosql/blob-storage.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/data/nosql/cache/redis.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/data/nosql/cosmos-db.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/data/vector-search/azure-ai-search.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/data/vector-search/rag-chunking.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/frontend/blazor/design-checklist.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/frontend/blazor/fluent-ui-setup.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/frontend/blazor/fluent-ui.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/frontend/blazor/html-conversion.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/frontend/blazor/lifecycle.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/frontend/blazor/pitfalls.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/frontend/blazor/state.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/frontend/design-system/animations.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/frontend/design-system/naming.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/frontend/nextjs/nextjs-patterns.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/infrastructure/azure/azure.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/infrastructure/azure/bicep/bicep-patterns.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/infrastructure/azure/devops/azure-devops-setup.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/infrastructure/azure/devops/local-development.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/infrastructure/azure/services/functions.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/infrastructure/azure/services/service-bus.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/infrastructure/azure/services/storage.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/infrastructure/docker/easypanel-deploy.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/infrastructure/supabase/mcp-setup.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/infrastructure/supabase/supabase-auth.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/infrastructure/supabase/supabase-pgvector.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/infrastructure/supabase/supabase-rls.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/infrastructure/supabase/supabase-storage.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/integration/api/graphql.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/integration/api/grpc.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/integration/api/rest-design.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/integration/event-driven/cqrs.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/integration/event-driven/event-sourcing.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/integration/event-driven/service-bus.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/observability/logging.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/observability/metrics.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/observability/monitoring.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/observability/tracing.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/workflows/parallel-execution.md +0 -0
- /package/{stacks/nextjs-supabase/.morph → framework}/standards/workflows/thread-management.md +0 -0
|
@@ -1,801 +0,0 @@
|
|
|
1
|
-
# MORPH-SPEC v3.0 - Implementation Roadmap
|
|
2
|
-
|
|
3
|
-
> 10-week implementation plan with phases, deliverables, and success metrics
|
|
4
|
-
|
|
5
|
-
**Status:** Planning Complete ✅
|
|
6
|
-
**Last Updated:** 2026-02-18
|
|
7
|
-
**Total Duration:** 10 weeks
|
|
8
|
-
**Phases:** 8
|
|
9
|
-
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
## Table of Contents
|
|
13
|
-
|
|
14
|
-
- [Overview](#overview)
|
|
15
|
-
- [Phase-by-Phase Breakdown](#phase-by-phase-breakdown)
|
|
16
|
-
- [Success Metrics](#success-metrics)
|
|
17
|
-
- [Critical Files](#critical-files)
|
|
18
|
-
- [Risks & Mitigations](#risks--mitigations)
|
|
19
|
-
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
## Overview
|
|
23
|
-
|
|
24
|
-
### Timeline Summary
|
|
25
|
-
|
|
26
|
-
| Phase | Duration | Focus | Key Deliverables |
|
|
27
|
-
|-------|----------|-------|------------------|
|
|
28
|
-
| **1** | Week 1-2 | Foundation | Thread Manager, Analytics Engine, Core Four Tracking |
|
|
29
|
-
| **2** | Week 3 | Context Optimization | Priming, MCP Hygiene, Context Bundles |
|
|
30
|
-
| **3** | Week 4-5 | Parallelization | P-Thread, Parallel Executor, Squad Templates |
|
|
31
|
-
| **4** | Week 6 | Fusion & Long-Running | F-Thread, Stop Hooks, L-Thread |
|
|
32
|
-
| **5** | Week 7 | Meta-Programming | 12+ HOPs, HOP Composer |
|
|
33
|
-
| **6** | Week 8 | Agent Expansion | 9 New Agents, 23 New Standards |
|
|
34
|
-
| **7** | Week 9 | Trust & Zero-Touch | Trust Manager, Z-Thread Workflow |
|
|
35
|
-
| **8** | Week 10 | Integration & Testing | E2E Tests, Migration Tools, Documentation |
|
|
36
|
-
|
|
37
|
-
### Cumulative Impact by Phase
|
|
38
|
-
|
|
39
|
-
| After Phase | Throughput | Context | Autonomy | Coverage | Automation |
|
|
40
|
-
|-------------|------------|---------|----------|----------|------------|
|
|
41
|
-
| **1** | Baseline | Baseline | Baseline | 90% | 0% |
|
|
42
|
-
| **2** | Baseline | **-30%** | Baseline | 90% | 0% |
|
|
43
|
-
| **3** | **+100%** | -30% | Baseline | 90% | 0% |
|
|
44
|
-
| **4** | +150% | -30% | **+300%** | 90% | 0% |
|
|
45
|
-
| **5** | +150% | -30% | +300% | 90% | 0% |
|
|
46
|
-
| **6** | +150% | -30% | +300% | **100%** | 0% |
|
|
47
|
-
| **7** | +150% | -30% | +300% | 100% | **+50%** |
|
|
48
|
-
| **8** | **+200-400%** | **-40%** | **+700%** | 100% | 50% |
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
## Phase-by-Phase Breakdown
|
|
53
|
-
|
|
54
|
-
### Phase 1: Foundation (Week 1-2)
|
|
55
|
-
|
|
56
|
-
**Goal:** Visibility and measurement
|
|
57
|
-
|
|
58
|
-
#### Week 1 Deliverables
|
|
59
|
-
|
|
60
|
-
**1. Thread Management System**
|
|
61
|
-
```
|
|
62
|
-
New Files:
|
|
63
|
-
├── src/lib/thread-manager.js (core logic, ~500 lines)
|
|
64
|
-
├── src/commands/threads.js (CLI commands, ~300 lines)
|
|
65
|
-
└── state.json schema extensions
|
|
66
|
-
|
|
67
|
-
Commands Implemented:
|
|
68
|
-
├── morph-spec threads list
|
|
69
|
-
├── morph-spec threads status {id}
|
|
70
|
-
├── morph-spec threads kill {id}
|
|
71
|
-
└── morph-spec threads analytics
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
**2. Core Four Tracking**
|
|
75
|
-
```
|
|
76
|
-
New Files:
|
|
77
|
-
├── src/lib/core-four-tracker.js (~300 lines)
|
|
78
|
-
└── src/commands/core-four.js (~200 lines)
|
|
79
|
-
|
|
80
|
-
Features:
|
|
81
|
-
├── Real-time context tracking (tokens)
|
|
82
|
-
├── Model monitoring (Sonnet 4.5)
|
|
83
|
-
├── Prompt display
|
|
84
|
-
└── Tool usage statistics (Read, Write, Edit, Bash)
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
#### Week 2 Deliverables
|
|
88
|
-
|
|
89
|
-
**3. Analytics Engine Foundation**
|
|
90
|
-
```
|
|
91
|
-
New Files:
|
|
92
|
-
├── src/lib/analytics-engine.js (metrics collection, ~600 lines)
|
|
93
|
-
├── src/commands/analytics.js (CLI commands, ~400 lines)
|
|
94
|
-
└── ASCII charts helpers (~200 lines)
|
|
95
|
-
|
|
96
|
-
Commands Implemented:
|
|
97
|
-
├── morph-spec analytics feature {name}
|
|
98
|
-
├── morph-spec analytics project --period=30d
|
|
99
|
-
└── morph-spec analytics compare {f1} vs {f2}
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
**4. Context Tracker**
|
|
103
|
-
```
|
|
104
|
-
New Files:
|
|
105
|
-
├── src/lib/context-tracker.js (token monitoring, ~400 lines)
|
|
106
|
-
└── Integration with thread-manager
|
|
107
|
-
|
|
108
|
-
Features:
|
|
109
|
-
├── Per-thread token tracking
|
|
110
|
-
├── Peak usage detection
|
|
111
|
-
├── Average calculation
|
|
112
|
-
└── Optimization suggestions
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
#### Success Metrics
|
|
116
|
-
- ✅ Can view all active threads
|
|
117
|
-
- ✅ Can track tool calls per feature
|
|
118
|
-
- ✅ Baseline analytics for current state
|
|
119
|
-
- ✅ Context usage visible (tokens per feature)
|
|
120
|
-
|
|
121
|
-
#### Impact
|
|
122
|
-
- **Visibility:** 0% → 100%
|
|
123
|
-
- **Baseline:** Establish metrics for measuring improvements
|
|
124
|
-
- **Foundation:** All future phases build on this
|
|
125
|
-
|
|
126
|
-
---
|
|
127
|
-
|
|
128
|
-
### Phase 2: Context Optimization (Week 3)
|
|
129
|
-
|
|
130
|
-
**Goal:** 30-40% token reduction
|
|
131
|
-
|
|
132
|
-
#### Deliverables
|
|
133
|
-
|
|
134
|
-
**1. Context Priming System**
|
|
135
|
-
```
|
|
136
|
-
New Files:
|
|
137
|
-
├── .morph/context/feature-prime.md (500 tokens vs 23K)
|
|
138
|
-
├── .morph/context/bug-prime.md
|
|
139
|
-
├── .morph/context/refactor-prime.md
|
|
140
|
-
├── .morph/context/design-prime.md
|
|
141
|
-
└── .morph/context/infra-prime.md
|
|
142
|
-
|
|
143
|
-
Commands Implemented:
|
|
144
|
-
├── /prime-feature (shortcut)
|
|
145
|
-
├── /prime-bug
|
|
146
|
-
├── /prime-refactor
|
|
147
|
-
├── /prime-design
|
|
148
|
-
└── /prime-infra
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
**2. MCP Hygiene Automation**
|
|
152
|
-
```
|
|
153
|
-
New Files:
|
|
154
|
-
├── src/lib/mcp-optimizer.js (~300 lines)
|
|
155
|
-
└── src/commands/mcp.js (~200 lines)
|
|
156
|
-
|
|
157
|
-
Features:
|
|
158
|
-
├── Auto-detect unused MCP servers
|
|
159
|
-
├── Suggest removal (saves ~10K tokens)
|
|
160
|
-
└── morph-spec mcp optimize
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
**3. Context Bundles**
|
|
164
|
-
```
|
|
165
|
-
New Files:
|
|
166
|
-
├── src/lib/context-bundler.js (~500 lines)
|
|
167
|
-
├── .morph/bundles/*.json (compressed checkpoints)
|
|
168
|
-
└── src/commands/resume.js (~200 lines)
|
|
169
|
-
|
|
170
|
-
Features:
|
|
171
|
-
├── Bundle compression (decisions, artifacts, next steps)
|
|
172
|
-
├── 85% token reduction on replay (180K → 15K)
|
|
173
|
-
└── morph-spec resume {feature} --from-bundle {checkpoint}
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
#### Success Metrics
|
|
177
|
-
- ✅ CLAUDE.md: 23K → 500 tokens (-95%)
|
|
178
|
-
- ✅ Session replay: 180K → 15K tokens (-92%)
|
|
179
|
-
- ✅ Overall context: -30-40% reduction
|
|
180
|
-
|
|
181
|
-
#### Impact
|
|
182
|
-
- **Token reduction:** -30-40% (cost savings)
|
|
183
|
-
- **Response speed:** 2-3x faster with primed context
|
|
184
|
-
- **Cost savings:** Significant monthly reduction
|
|
185
|
-
|
|
186
|
-
---
|
|
187
|
-
|
|
188
|
-
### Phase 3: Parallelization (Week 4-5)
|
|
189
|
-
|
|
190
|
-
**Goal:** 2-3x throughput increase
|
|
191
|
-
|
|
192
|
-
#### Week 4 Deliverables
|
|
193
|
-
|
|
194
|
-
**1. P-Thread Support**
|
|
195
|
-
```
|
|
196
|
-
New Files:
|
|
197
|
-
├── src/lib/parallel-executor.js (core logic, ~700 lines)
|
|
198
|
-
├── agents.json schema extension (squadConfigs)
|
|
199
|
-
└── llm-interaction.json config (parallelExecution)
|
|
200
|
-
|
|
201
|
-
Commands Implemented:
|
|
202
|
-
├── morph-spec tasks run T001,T002,T003 --parallel --max-concurrent=3
|
|
203
|
-
└── morph-spec agents spawn-squad {feature} --parallel backend,frontend,infra
|
|
204
|
-
```
|
|
205
|
-
|
|
206
|
-
**2. Thread Coordination**
|
|
207
|
-
```
|
|
208
|
-
New Files:
|
|
209
|
-
├── src/lib/thread-coordinator.js (wait strategies, ~400 lines)
|
|
210
|
-
└── src/commands/threads-extended.js
|
|
211
|
-
|
|
212
|
-
Commands Implemented:
|
|
213
|
-
├── morph-spec threads wait-all {feature}
|
|
214
|
-
└── morph-spec threads wait-any {feature}
|
|
215
|
-
```
|
|
216
|
-
|
|
217
|
-
#### Week 5 Deliverables
|
|
218
|
-
|
|
219
|
-
**3. Squad Templates**
|
|
220
|
-
```
|
|
221
|
-
New Files:
|
|
222
|
-
├── framework/squad-templates/full-stack.json
|
|
223
|
-
├── framework/squad-templates/backend-only.json
|
|
224
|
-
├── framework/squad-templates/frontend-only.json
|
|
225
|
-
└── src/commands/squad-template.js
|
|
226
|
-
|
|
227
|
-
Features:
|
|
228
|
-
├── Pre-configured squad patterns
|
|
229
|
-
├── morph-spec squad-template list
|
|
230
|
-
├── morph-spec squad-template use full-stack
|
|
231
|
-
└── Customizable squad configs
|
|
232
|
-
```
|
|
233
|
-
|
|
234
|
-
**4. Parallel Workflow Integration**
|
|
235
|
-
```
|
|
236
|
-
Modified Files:
|
|
237
|
-
├── src/lib/workflow-detector.js (auto-select parallel)
|
|
238
|
-
├── src/lib/task-dependency-analyzer.js (NEW, ~300 lines)
|
|
239
|
-
└── workflows/*.json (updated configs)
|
|
240
|
-
|
|
241
|
-
Features:
|
|
242
|
-
├── Workflow detector auto-selects parallel execution
|
|
243
|
-
├── Task dependency analyzer (T001 → T002 = sequential)
|
|
244
|
-
└── Smart parallel vs sequential decisions
|
|
245
|
-
```
|
|
246
|
-
|
|
247
|
-
#### Success Metrics
|
|
248
|
-
- ✅ Can run 3-5 threads in parallel
|
|
249
|
-
- ✅ Measure parallel efficiency (actual vs theoretical)
|
|
250
|
-
- ✅ Compare throughput: before/after (target: +100-200%)
|
|
251
|
-
|
|
252
|
-
#### Impact
|
|
253
|
-
- **Throughput:** 1 feature/day → 2-3 features/day (+100-200%)
|
|
254
|
-
- **Tool calls:** ~100/feature → ~200/feature (+100%)
|
|
255
|
-
- **Concurrent work:** 1 → 3-5 threads
|
|
256
|
-
|
|
257
|
-
---
|
|
258
|
-
|
|
259
|
-
### Phase 4: Fusion & Long-Running (Week 6)
|
|
260
|
-
|
|
261
|
-
**Goal:** Confidence and autonomy
|
|
262
|
-
|
|
263
|
-
#### Deliverables
|
|
264
|
-
|
|
265
|
-
**1. F-Thread Support**
|
|
266
|
-
```
|
|
267
|
-
New Files:
|
|
268
|
-
├── src/lib/fusion-executor.js (core logic, ~600 lines)
|
|
269
|
-
├── framework/workflows/configs/fusion.json
|
|
270
|
-
└── src/commands/agents-fuse.js (~300 lines)
|
|
271
|
-
|
|
272
|
-
Aggregation Strategies:
|
|
273
|
-
├── best-of-n (score and pick best)
|
|
274
|
-
├── consensus (merge common elements)
|
|
275
|
-
├── manual-select (present all, user chooses)
|
|
276
|
-
└── weighted-average (combine proportionally)
|
|
277
|
-
|
|
278
|
-
Commands Implemented:
|
|
279
|
-
├── morph-spec agents fuse --prompt "design auth" --count=3 --strategy=best-of-n
|
|
280
|
-
└── morph-spec review aggregate {feature} --agents=a1,a2,a3
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
**2. Stop Hooks (Ralph Wiggum)**
|
|
284
|
-
```
|
|
285
|
-
New Files:
|
|
286
|
-
├── framework/hooks/agent-stop/validate-and-continue.js
|
|
287
|
-
├── framework/hooks/agent-stop/validate-checkpoints.js
|
|
288
|
-
├── framework/hooks/agent-stop/validate-tests.js
|
|
289
|
-
├── src/lib/stop-hook-executor.js (~400 lines)
|
|
290
|
-
└── llm-interaction.json config (stopHooks)
|
|
291
|
-
|
|
292
|
-
Features:
|
|
293
|
-
├── Agent stop → validation runs
|
|
294
|
-
├── If passed → complete
|
|
295
|
-
├── If failed → feedback + continue
|
|
296
|
-
├── Max retries: 5
|
|
297
|
-
└── Interval: 30 min
|
|
298
|
-
```
|
|
299
|
-
|
|
300
|
-
**3. Long-Running Workflow**
|
|
301
|
-
```
|
|
302
|
-
New Files:
|
|
303
|
-
├── framework/workflows/configs/long-running.json
|
|
304
|
-
└── Integration with stop hooks
|
|
305
|
-
|
|
306
|
-
Features:
|
|
307
|
-
├── Hours-long autonomous runs (2-4 hours)
|
|
308
|
-
├── Periodic validation (every 30 min)
|
|
309
|
-
├── User reviews only final result
|
|
310
|
-
└── Auto-detect via keywords ("autonomous", "large scope")
|
|
311
|
-
```
|
|
312
|
-
|
|
313
|
-
#### Success Metrics
|
|
314
|
-
- ✅ Can run best-of-3 design comparisons
|
|
315
|
-
- ✅ Agent can run for >4 hours autonomously
|
|
316
|
-
- ✅ Validation loop works without human intervention
|
|
317
|
-
|
|
318
|
-
#### Impact
|
|
319
|
-
- **Confidence:** Best-of-3 designs (+200% chance optimal)
|
|
320
|
-
- **Autonomy:** >4 hour runs (+700% vs 30 min)
|
|
321
|
-
- **Quality:** Higher confidence in critical decisions
|
|
322
|
-
|
|
323
|
-
---
|
|
324
|
-
|
|
325
|
-
### Phase 5: Meta-Programming (Week 7)
|
|
326
|
-
|
|
327
|
-
**Goal:** Reusable prompt patterns
|
|
328
|
-
|
|
329
|
-
#### Deliverables
|
|
330
|
-
|
|
331
|
-
**1. 12+ Higher-Order Prompts**
|
|
332
|
-
```
|
|
333
|
-
New Files:
|
|
334
|
-
framework/templates/meta-prompts/
|
|
335
|
-
├── squad-leaders/
|
|
336
|
-
│ ├── squad-leader.md
|
|
337
|
-
│ ├── backend-squad.md
|
|
338
|
-
│ └── frontend-squad.md
|
|
339
|
-
├── parallel-workers/
|
|
340
|
-
│ ├── parallel-worker.md
|
|
341
|
-
│ └── parallel-coordinator.md
|
|
342
|
-
├── hops/
|
|
343
|
-
│ ├── hop-wrapper.md
|
|
344
|
-
│ ├── hop-retry.md
|
|
345
|
-
│ └── hop-validation.md
|
|
346
|
-
├── validators/
|
|
347
|
-
│ ├── checkpoint-validator.md
|
|
348
|
-
│ └── pre-commit-validator.md
|
|
349
|
-
└── fusion/
|
|
350
|
-
├── fusion-agent.md
|
|
351
|
-
└── fusion-aggregator.md
|
|
352
|
-
|
|
353
|
-
Total: 12 HOPs (Handlebars templates)
|
|
354
|
-
```
|
|
355
|
-
|
|
356
|
-
**2. HOP Rendering CLI**
|
|
357
|
-
```
|
|
358
|
-
Modified Files:
|
|
359
|
-
├── src/commands/template.js (extend with render command)
|
|
360
|
-
└── Integration with agent spawning
|
|
361
|
-
|
|
362
|
-
Commands Implemented:
|
|
363
|
-
├── morph-spec template render meta-prompts/backend-squad --vars='{...}'
|
|
364
|
-
└── Auto-render HOPs when spawning agents
|
|
365
|
-
```
|
|
366
|
-
|
|
367
|
-
**3. Composition Patterns**
|
|
368
|
-
```
|
|
369
|
-
New Files:
|
|
370
|
-
├── src/lib/hop-composer.js (~500 lines)
|
|
371
|
-
└── Nested HOP support
|
|
372
|
-
|
|
373
|
-
Features:
|
|
374
|
-
├── HOPs can wrap other HOPs
|
|
375
|
-
├── Example: retry → validation → worker
|
|
376
|
-
├── Template inheritance
|
|
377
|
-
└── Variable passing through layers
|
|
378
|
-
```
|
|
379
|
-
|
|
380
|
-
#### Success Metrics
|
|
381
|
-
- ✅ All agent spawns use HOPs (0 manual composition)
|
|
382
|
-
- ✅ 12+ templates validated and versioned
|
|
383
|
-
- ✅ HOP composition works (nested patterns)
|
|
384
|
-
|
|
385
|
-
#### Impact
|
|
386
|
-
- **Consistency:** 100% agent spawns use templates
|
|
387
|
-
- **Error reduction:** Validated templates vs manual prompts
|
|
388
|
-
- **Reusability:** 12+ patterns vs. custom every time
|
|
389
|
-
|
|
390
|
-
---
|
|
391
|
-
|
|
392
|
-
### Phase 6: Agent Expansion (Week 8)
|
|
393
|
-
|
|
394
|
-
**Goal:** 100% domain coverage
|
|
395
|
-
|
|
396
|
-
#### Deliverables
|
|
397
|
-
|
|
398
|
-
**1. 9 New Agents**
|
|
399
|
-
```
|
|
400
|
-
agents.json Updates:
|
|
401
|
-
├── observability-expert (Tier 3, domain: observability)
|
|
402
|
-
├── event-architect (Tier 3, domain: integration)
|
|
403
|
-
├── nosql-cache-expert (Tier 3, domain: data)
|
|
404
|
-
├── api-designer (Tier 3, domain: integration)
|
|
405
|
-
├── ddd-expert (Tier 3, domain: architecture)
|
|
406
|
-
├── vector-search-expert (Tier 3, domain: data)
|
|
407
|
-
├── thread-orchestrator (Tier 3, domain: developer-experience)
|
|
408
|
-
├── context-optimizer (Tier 3, domain: developer-experience)
|
|
409
|
-
└── performance-expert (Tier 3, domain: quality-assurance)
|
|
410
|
-
|
|
411
|
-
Each agent includes:
|
|
412
|
-
├── Domain(s)
|
|
413
|
-
├── Keywords
|
|
414
|
-
├── Standards list
|
|
415
|
-
├── Relationships (reports_to, coordinates)
|
|
416
|
-
└── Teammate config
|
|
417
|
-
```
|
|
418
|
-
|
|
419
|
-
**2. 6 Enhanced Agents (Skill Files)**
|
|
420
|
-
```
|
|
421
|
-
Skill File Updates:
|
|
422
|
-
├── .claude/skills/nextjs-expert.md (+shadcn/ui, TanStack Query)
|
|
423
|
-
├── .claude/skills/blazor-builder.md (+SignalR, FluentDataGrid)
|
|
424
|
-
├── .claude/skills/ms-agent-expert.md (+MCP, A2A protocol)
|
|
425
|
-
├── .claude/skills/azure-architect.md (+KEDA, Private Endpoints)
|
|
426
|
-
├── .claude/skills/testing-specialist.md (+TestContainers, bUnit)
|
|
427
|
-
└── .claude/skills/azure-identity.md (+WebAuthn/Passkeys)
|
|
428
|
-
```
|
|
429
|
-
|
|
430
|
-
**3. 23 New Standards**
|
|
431
|
-
```
|
|
432
|
-
framework/standards/
|
|
433
|
-
├── observability/ (4 files: monitoring.md, logging.md, tracing.md, metrics.md)
|
|
434
|
-
├── integration/event-driven/ (3 files: service-bus.md, cqrs.md, event-sourcing.md)
|
|
435
|
-
├── data/nosql/ (3 files: cosmos-db.md, cache/redis.md, blob-storage.md)
|
|
436
|
-
├── integration/api/ (3 files: rest-design.md, graphql.md, grpc.md)
|
|
437
|
-
├── architecture/ddd/ (3 files: aggregates.md, entities.md, value-objects.md)
|
|
438
|
-
├── data/vector-search/ (2 files: azure-ai-search.md, rag-chunking.md)
|
|
439
|
-
├── context/ (3 files: priming.md, bundles.md, analytics.md)
|
|
440
|
-
└── workflows/ (2 files: thread-management.md, parallel-execution.md)
|
|
441
|
-
|
|
442
|
-
Total: 23 new standards (48 → 71, +48%)
|
|
443
|
-
```
|
|
444
|
-
|
|
445
|
-
**4. agents.json Update**
|
|
446
|
-
```
|
|
447
|
-
Modified Files:
|
|
448
|
-
├── stacks/blazor-azure/.morph/config/agents.json
|
|
449
|
-
└── stacks/nextjs-supabase/.morph/config/agents.json
|
|
450
|
-
|
|
451
|
-
Changes:
|
|
452
|
-
├── Add 9 new agents
|
|
453
|
-
├── Update relationships (reports_to, coordinates)
|
|
454
|
-
├── Add squadConfigs for parallel execution
|
|
455
|
-
└── Update domain mappings
|
|
456
|
-
```
|
|
457
|
-
|
|
458
|
-
#### Success Metrics
|
|
459
|
-
- ✅ Domain coverage: 90% → 100% (+10%)
|
|
460
|
-
- ✅ Agents: 16 → 26 (+62%)
|
|
461
|
-
- ✅ Standards: 48 → 71 (+48%)
|
|
462
|
-
|
|
463
|
-
#### Impact
|
|
464
|
-
- **Coverage:** 100% of all 9 domains
|
|
465
|
-
- **Specialization:** Dedicated experts vs generalists
|
|
466
|
-
- **v3.0 Enablers:** thread-orchestrator + context-optimizer
|
|
467
|
-
|
|
468
|
-
---
|
|
469
|
-
|
|
470
|
-
### Phase 7: Trust & Zero-Touch (Week 9)
|
|
471
|
-
|
|
472
|
-
**Goal:** 50% automation
|
|
473
|
-
|
|
474
|
-
#### Deliverables
|
|
475
|
-
|
|
476
|
-
**1. Trust Manager**
|
|
477
|
-
```
|
|
478
|
-
New Files:
|
|
479
|
-
├── src/lib/trust-manager.js (core logic, ~600 lines)
|
|
480
|
-
├── src/commands/trust.js (~300 lines)
|
|
481
|
-
└── state.json extensions (trustConfig, history)
|
|
482
|
-
|
|
483
|
-
Commands Implemented:
|
|
484
|
-
├── morph-spec trust set {feature} high
|
|
485
|
-
├── morph-spec trust history
|
|
486
|
-
└── morph-spec trust auto-calculate {feature}
|
|
487
|
-
|
|
488
|
-
Trust Levels:
|
|
489
|
-
├── low (<80% pass rate) → No auto-approve
|
|
490
|
-
├── medium (80-90%) → Auto-approve design gate
|
|
491
|
-
├── high (90-95%) → Auto-approve design + tasks gates
|
|
492
|
-
└── maximum (>95%) → Zero-touch workflow enabled
|
|
493
|
-
```
|
|
494
|
-
|
|
495
|
-
**2. Zero-Touch Workflow**
|
|
496
|
-
```
|
|
497
|
-
New Files:
|
|
498
|
-
├── framework/workflows/configs/zero-touch.json
|
|
499
|
-
└── Modified: src/commands/advance-phase.js (auto-approval logic)
|
|
500
|
-
|
|
501
|
-
Features:
|
|
502
|
-
├── Auto-approve design gate (if high trust)
|
|
503
|
-
├── Auto-approve tasks gate (if high trust)
|
|
504
|
-
├── Auto-commit (if all validations pass)
|
|
505
|
-
├── Safety: Rollback command
|
|
506
|
-
└── Full validation pipeline still runs
|
|
507
|
-
|
|
508
|
-
Safety Mechanisms:
|
|
509
|
-
├── Requires 95%+ checkpoint pass rate
|
|
510
|
-
├── Git revert available
|
|
511
|
-
├── User can override: --no-auto-approve
|
|
512
|
-
└── Detailed audit trail
|
|
513
|
-
```
|
|
514
|
-
|
|
515
|
-
**3. Analytics Integration**
|
|
516
|
-
```
|
|
517
|
-
Modified Files:
|
|
518
|
-
├── src/lib/analytics-engine.js (add trust tracking)
|
|
519
|
-
└── src/commands/analytics.js (trust progression charts)
|
|
520
|
-
|
|
521
|
-
Features:
|
|
522
|
-
├── Trust progression tracking (low → medium → high → maximum)
|
|
523
|
-
├── Auto-approval savings metrics (hours saved)
|
|
524
|
-
├── Trust history visualization
|
|
525
|
-
└── Recommendations for trust level upgrades
|
|
526
|
-
```
|
|
527
|
-
|
|
528
|
-
#### Success Metrics
|
|
529
|
-
- ✅ 50% of features auto-approved (high trust)
|
|
530
|
-
- ✅ Trust progression visible in analytics
|
|
531
|
-
- ✅ Zero-touch workflow works for routine features
|
|
532
|
-
|
|
533
|
-
#### Impact
|
|
534
|
-
- **Approval overhead:** 100% manual → 50% auto (-50%)
|
|
535
|
-
- **Autonomy:** Path to "vibe coding" at industrial scale
|
|
536
|
-
- **Time savings:** ~18 hours/month (based on 12 features)
|
|
537
|
-
|
|
538
|
-
---
|
|
539
|
-
|
|
540
|
-
### Phase 8: Integration & Testing (Week 10)
|
|
541
|
-
|
|
542
|
-
**Goal:** Launch readiness
|
|
543
|
-
|
|
544
|
-
#### Deliverables
|
|
545
|
-
|
|
546
|
-
**1. E2E Integration Tests**
|
|
547
|
-
```
|
|
548
|
-
New Files:
|
|
549
|
-
├── test/integration/thread-management.test.js (~400 lines)
|
|
550
|
-
├── test/integration/parallel-execution.test.js (~500 lines)
|
|
551
|
-
├── test/integration/fusion-workflow.test.js (~400 lines)
|
|
552
|
-
└── test/integration/trust-manager.test.js (~300 lines)
|
|
553
|
-
|
|
554
|
-
Coverage:
|
|
555
|
-
├── Thread lifecycle (create, run, complete, kill)
|
|
556
|
-
├── Parallel execution (3 concurrent threads)
|
|
557
|
-
├── Fusion aggregation (best-of-3)
|
|
558
|
-
└── Trust level progression (low → high)
|
|
559
|
-
```
|
|
560
|
-
|
|
561
|
-
**2. Migration Tools**
|
|
562
|
-
```
|
|
563
|
-
New Files:
|
|
564
|
-
├── src/migrations/v2-to-v3.js (state.json schema migration, ~300 lines)
|
|
565
|
-
├── src/migrations/agents-update.js (add new agents, ~200 lines)
|
|
566
|
-
└── src/commands/migrate.js (~400 lines)
|
|
567
|
-
|
|
568
|
-
Commands Implemented:
|
|
569
|
-
├── morph-spec migrate v2-to-v3 (forward migration)
|
|
570
|
-
├── morph-spec migrate rollback-to-v2 (safety rollback)
|
|
571
|
-
└── morph-spec migrate status (check compatibility)
|
|
572
|
-
|
|
573
|
-
Migration Steps:
|
|
574
|
-
├── Backup state.json
|
|
575
|
-
├── Add threads, threadMetrics, trustConfig fields
|
|
576
|
-
├── Add 9 new agents to agents.json
|
|
577
|
-
├── Update llm-interaction.json
|
|
578
|
-
└── Create .morph/context/ directory
|
|
579
|
-
```
|
|
580
|
-
|
|
581
|
-
**3. Documentation**
|
|
582
|
-
```
|
|
583
|
-
New Files:
|
|
584
|
-
├── docs/v3.0/MIGRATION-GUIDE.md (~3000 lines)
|
|
585
|
-
│ ├── Prerequisites
|
|
586
|
-
│ ├── Step-by-step migration
|
|
587
|
-
│ ├── Rollback instructions
|
|
588
|
-
│ └── Troubleshooting
|
|
589
|
-
├── docs/v3.0/THREAD-MANAGEMENT.md (~2000 lines)
|
|
590
|
-
│ ├── 7 thread types explained
|
|
591
|
-
│ ├── CLI commands
|
|
592
|
-
│ └── Best practices
|
|
593
|
-
├── docs/v3.0/CONTEXT-OPTIMIZATION.md (~2000 lines)
|
|
594
|
-
│ ├── R&D framework
|
|
595
|
-
│ ├── 12 techniques
|
|
596
|
-
│ └── Token reduction strategies
|
|
597
|
-
└── docs/v3.0/META-PROMPTS.md (~1500 lines)
|
|
598
|
-
├── HOP categories
|
|
599
|
-
├── Template syntax
|
|
600
|
-
└── Composition patterns
|
|
601
|
-
|
|
602
|
-
Total: ~50 pages of documentation
|
|
603
|
-
```
|
|
604
|
-
|
|
605
|
-
**4. Monitoring & Rollback**
|
|
606
|
-
```
|
|
607
|
-
New Files:
|
|
608
|
-
├── src/lib/health-checker.js (~400 lines)
|
|
609
|
-
└── src/commands/doctor.js (extend with --v3 flag)
|
|
610
|
-
|
|
611
|
-
Features:
|
|
612
|
-
├── morph-spec doctor --v3 (health check)
|
|
613
|
-
├── Verify all v3.0 components installed
|
|
614
|
-
├── Check state.json schema
|
|
615
|
-
├── Validate agents.json
|
|
616
|
-
└── Test parallel execution capability
|
|
617
|
-
```
|
|
618
|
-
|
|
619
|
-
#### Success Metrics
|
|
620
|
-
- ✅ All E2E tests pass (100% coverage)
|
|
621
|
-
- ✅ Migration tested on 3 sample projects
|
|
622
|
-
- ✅ Documentation complete (50+ pages)
|
|
623
|
-
- ✅ Rollback tested and working
|
|
624
|
-
|
|
625
|
-
#### Impact
|
|
626
|
-
- **Launch readiness:** Production-ready v3.0
|
|
627
|
-
- **Safety:** Rollback available if issues
|
|
628
|
-
- **Adoption:** Clear migration path for existing users
|
|
629
|
-
|
|
630
|
-
---
|
|
631
|
-
|
|
632
|
-
## Success Metrics: Before vs After
|
|
633
|
-
|
|
634
|
-
### Quantitative Improvements
|
|
635
|
-
|
|
636
|
-
| Metric | Before (v2.x) | After (v3.0) | Improvement |
|
|
637
|
-
|--------|---------------|--------------|-------------|
|
|
638
|
-
| **Concurrent Threads** | 1 | 3-5 | **+200-400%** |
|
|
639
|
-
| **Features/Day** | 1 | 3-5 | **+200-400%** |
|
|
640
|
-
| **CLAUDE.md Size** | 23K tokens | 500 | **-95%** |
|
|
641
|
-
| **Session Replay** | 180K tokens | 15K | **-92%** |
|
|
642
|
-
| **Context Reduction** | Baseline | -30-40% | **-30-40%** |
|
|
643
|
-
| **Approval Overhead** | 100% manual | 50% auto | **-50%** |
|
|
644
|
-
| **Tool Calls/Feature** | ~100 | ~250 | **+150%** |
|
|
645
|
-
| **Autonomous Runtime** | <30min | >4 hours | **+700%** |
|
|
646
|
-
| **Total Agents** | 16 | 26 | **+62%** |
|
|
647
|
-
| **Domain Coverage** | 90% | 100% | **+10%** |
|
|
648
|
-
| **Standards** | 48 | 71 | **+48%** |
|
|
649
|
-
| **Workflows** | 5 | 8 | **+60%** |
|
|
650
|
-
|
|
651
|
-
### Qualitative Improvements
|
|
652
|
-
|
|
653
|
-
**Developer Experience:**
|
|
654
|
-
- ✅ Real-time visibility (thread analytics, context tracking)
|
|
655
|
-
- ✅ Data-driven decisions (which agents, which workflow)
|
|
656
|
-
- ✅ Reusable patterns (12+ HOPs)
|
|
657
|
-
- ✅ Autonomous execution (L-Thread, Z-Thread)
|
|
658
|
-
|
|
659
|
-
**Reliability:**
|
|
660
|
-
- ✅ Validated templates (HOPs tested and versioned)
|
|
661
|
-
- ✅ Artifact trails (debugging screenshots)
|
|
662
|
-
- ✅ Trust levels (proven track record)
|
|
663
|
-
|
|
664
|
-
**Scalability:**
|
|
665
|
-
- ✅ 10-15 parallel threads (Boris Churnney's workflow)
|
|
666
|
-
- ✅ Context bundles (85% token reduction on replay)
|
|
667
|
-
- ✅ Micro-agents (5-10x faster)
|
|
668
|
-
|
|
669
|
-
---
|
|
670
|
-
|
|
671
|
-
## Critical Files for Implementation
|
|
672
|
-
|
|
673
|
-
### New Files (80+)
|
|
674
|
-
|
|
675
|
-
**Core Libraries (15 files):**
|
|
676
|
-
- src/lib/thread-manager.js (~500 lines)
|
|
677
|
-
- src/lib/parallel-executor.js (~700 lines)
|
|
678
|
-
- src/lib/fusion-executor.js (~600 lines)
|
|
679
|
-
- src/lib/context-optimizer.js (~400 lines)
|
|
680
|
-
- src/lib/context-tracker.js (~400 lines)
|
|
681
|
-
- src/lib/analytics-engine.js (~600 lines)
|
|
682
|
-
- src/lib/trust-manager.js (~600 lines)
|
|
683
|
-
- src/lib/artifact-trail.js (~300 lines)
|
|
684
|
-
- src/lib/stop-hook-executor.js (~400 lines)
|
|
685
|
-
- src/lib/hop-composer.js (~500 lines)
|
|
686
|
-
- src/lib/mcp-optimizer.js (~300 lines)
|
|
687
|
-
- src/lib/context-bundler.js (~500 lines)
|
|
688
|
-
- src/lib/thread-coordinator.js (~400 lines)
|
|
689
|
-
- src/lib/core-four-tracker.js (~300 lines)
|
|
690
|
-
- src/lib/micro-agent-factory.js (~400 lines)
|
|
691
|
-
|
|
692
|
-
**CLI Commands (10 files):**
|
|
693
|
-
- src/commands/threads.js (~300 lines)
|
|
694
|
-
- src/commands/analytics.js (~400 lines)
|
|
695
|
-
- src/commands/core-four.js (~200 lines)
|
|
696
|
-
- src/commands/trust.js (~300 lines)
|
|
697
|
-
- src/commands/agents-fuse.js (~300 lines)
|
|
698
|
-
- src/commands/context-prime.js (~200 lines)
|
|
699
|
-
- src/commands/mcp.js (~200 lines)
|
|
700
|
-
- src/commands/squad-template.js (~250 lines)
|
|
701
|
-
- src/commands/thread-template.js (~250 lines)
|
|
702
|
-
- src/commands/micro-agent.js (~200 lines)
|
|
703
|
-
|
|
704
|
-
**Total New Code:** ~7,500 lines (excluding templates, docs, tests)
|
|
705
|
-
|
|
706
|
-
### Modified Files (50+)
|
|
707
|
-
|
|
708
|
-
**State Management:**
|
|
709
|
-
- stacks/*/state.json (schema extensions)
|
|
710
|
-
- framework/templates/state.template.json
|
|
711
|
-
|
|
712
|
-
**Agent Configuration:**
|
|
713
|
-
- stacks/blazor-azure/.morph/config/agents.json
|
|
714
|
-
- stacks/nextjs-supabase/.morph/config/agents.json
|
|
715
|
-
|
|
716
|
-
**LLM Interaction:**
|
|
717
|
-
- .morph/config/llm-interaction.json
|
|
718
|
-
|
|
719
|
-
**Templates Registry:**
|
|
720
|
-
- framework/templates/REGISTRY.json
|
|
721
|
-
|
|
722
|
-
**CLI:**
|
|
723
|
-
- src/commands/advance-phase.js
|
|
724
|
-
- src/commands/feature-create.js
|
|
725
|
-
- src/commands/spawn-team.js
|
|
726
|
-
|
|
727
|
-
---
|
|
728
|
-
|
|
729
|
-
## Risks & Mitigations
|
|
730
|
-
|
|
731
|
-
### Risk 1: Token Cost Explosion
|
|
732
|
-
|
|
733
|
-
**Problem:** 5 parallel agents = 5x token cost
|
|
734
|
-
|
|
735
|
-
**Mitigation:**
|
|
736
|
-
- Start with max-concurrent=3 (reasonable cost)
|
|
737
|
-
- Monitor costs in analytics dashboard (real-time)
|
|
738
|
-
- Fusion: Use cheaper models (2 Sonnet, 1 Opus)
|
|
739
|
-
- Context optimization offsets cost (-30-40%)
|
|
740
|
-
|
|
741
|
-
### Risk 2: Coordination Complexity
|
|
742
|
-
|
|
743
|
-
**Problem:** Parallel threads might conflict (same file)
|
|
744
|
-
|
|
745
|
-
**Mitigation:**
|
|
746
|
-
- Task dependency graph (T001 → T002 sequential)
|
|
747
|
-
- Independent squads (backend vs frontend)
|
|
748
|
-
- Thread coordinator manages dependencies
|
|
749
|
-
|
|
750
|
-
### Risk 3: Over-Automation (Z-Thread)
|
|
751
|
-
|
|
752
|
-
**Problem:** Zero-touch could ship bad code
|
|
753
|
-
|
|
754
|
-
**Mitigation:**
|
|
755
|
-
- Requires 95%+ proven track record
|
|
756
|
-
- Full validation pipeline still runs
|
|
757
|
-
- Rollback mechanism (git revert)
|
|
758
|
-
- User can override: --no-auto-approve
|
|
759
|
-
|
|
760
|
-
### Risk 4: Complexity Overload
|
|
761
|
-
|
|
762
|
-
**Problem:** Too many thread types confuse users
|
|
763
|
-
|
|
764
|
-
**Mitigation:**
|
|
765
|
-
- Ship incrementally (Phase 1 → 8)
|
|
766
|
-
- Thread templates abstract complexity
|
|
767
|
-
- Clear documentation (50+ pages)
|
|
768
|
-
- Workflow detector auto-selects pattern
|
|
769
|
-
|
|
770
|
-
### Risk 5: Migration Friction
|
|
771
|
-
|
|
772
|
-
**Problem:** Existing users resist upgrade
|
|
773
|
-
|
|
774
|
-
**Mitigation:**
|
|
775
|
-
- Backward compatibility (v2.x continues working)
|
|
776
|
-
- Migration tool: morph-spec migrate v2-to-v3
|
|
777
|
-
- Rollback available
|
|
778
|
-
- Incremental adoption (one feature at a time)
|
|
779
|
-
|
|
780
|
-
---
|
|
781
|
-
|
|
782
|
-
## Summary
|
|
783
|
-
|
|
784
|
-
MORPH-SPEC v3.0 implementation roadmap delivers in 10 weeks:
|
|
785
|
-
|
|
786
|
-
- **8 phases** building incrementally
|
|
787
|
-
- **80+ new files** (~7,500 lines of code)
|
|
788
|
-
- **50+ modified files** (schema updates, integrations)
|
|
789
|
-
- **+200-400% throughput** (1 → 3-5 features/day)
|
|
790
|
-
- **-30-40% context** (token reduction)
|
|
791
|
-
- **+700% autonomy** (30 min → 4+ hours)
|
|
792
|
-
- **100% domain coverage** (90% → 100%)
|
|
793
|
-
- **50% automation** (approval overhead)
|
|
794
|
-
|
|
795
|
-
Each phase builds on the previous, with clear success metrics and measurable impact.
|
|
796
|
-
|
|
797
|
-
Next: See [ANALYSIS.md](./ANALYSIS.md) for framework comparison synthesis.
|
|
798
|
-
|
|
799
|
-
---
|
|
800
|
-
|
|
801
|
-
*MORPH-SPEC v3.0 Implementation Roadmap - by Polymorphism Tech*
|