@accelerationguy/accel 1.0.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/CLAUDE.md +19 -0
- package/LICENSE +33 -0
- package/README.md +275 -0
- package/bin/install.js +661 -0
- package/docs/getting-started.md +164 -0
- package/docs/module-guide.md +139 -0
- package/modules/drive/LICENSE +21 -0
- package/modules/drive/PAUL-VS-GSD.md +171 -0
- package/modules/drive/README.md +555 -0
- package/modules/drive/assets/terminal.svg +67 -0
- package/modules/drive/bin/install.js +210 -0
- package/modules/drive/integration.js +76 -0
- package/modules/drive/package.json +38 -0
- package/modules/drive/src/commands/add-phase.md +36 -0
- package/modules/drive/src/commands/apply.md +83 -0
- package/modules/drive/src/commands/assumptions.md +37 -0
- package/modules/drive/src/commands/audit.md +57 -0
- package/modules/drive/src/commands/complete-milestone.md +36 -0
- package/modules/drive/src/commands/config.md +175 -0
- package/modules/drive/src/commands/consider-issues.md +41 -0
- package/modules/drive/src/commands/discover.md +48 -0
- package/modules/drive/src/commands/discuss-milestone.md +33 -0
- package/modules/drive/src/commands/discuss.md +34 -0
- package/modules/drive/src/commands/flows.md +73 -0
- package/modules/drive/src/commands/handoff.md +201 -0
- package/modules/drive/src/commands/help.md +525 -0
- package/modules/drive/src/commands/init.md +54 -0
- package/modules/drive/src/commands/map-codebase.md +34 -0
- package/modules/drive/src/commands/milestone.md +34 -0
- package/modules/drive/src/commands/pause.md +44 -0
- package/modules/drive/src/commands/plan-fix.md +216 -0
- package/modules/drive/src/commands/plan.md +36 -0
- package/modules/drive/src/commands/progress.md +138 -0
- package/modules/drive/src/commands/register.md +29 -0
- package/modules/drive/src/commands/remove-phase.md +37 -0
- package/modules/drive/src/commands/research-phase.md +209 -0
- package/modules/drive/src/commands/research.md +47 -0
- package/modules/drive/src/commands/resume.md +49 -0
- package/modules/drive/src/commands/status.md +78 -0
- package/modules/drive/src/commands/unify.md +87 -0
- package/modules/drive/src/commands/verify.md +60 -0
- package/modules/drive/src/references/checkpoints.md +234 -0
- package/modules/drive/src/references/context-management.md +219 -0
- package/modules/drive/src/references/git-strategy.md +206 -0
- package/modules/drive/src/references/loop-phases.md +254 -0
- package/modules/drive/src/references/plan-format.md +263 -0
- package/modules/drive/src/references/quality-principles.md +152 -0
- package/modules/drive/src/references/research-quality-control.md +247 -0
- package/modules/drive/src/references/sonarqube-integration.md +244 -0
- package/modules/drive/src/references/specialized-workflow-integration.md +186 -0
- package/modules/drive/src/references/subagent-criteria.md +179 -0
- package/modules/drive/src/references/tdd.md +219 -0
- package/modules/drive/src/references/work-units.md +161 -0
- package/modules/drive/src/rules/commands.md +108 -0
- package/modules/drive/src/rules/references.md +107 -0
- package/modules/drive/src/rules/style.md +123 -0
- package/modules/drive/src/rules/templates.md +51 -0
- package/modules/drive/src/rules/workflows.md +133 -0
- package/modules/drive/src/templates/CONTEXT.md +88 -0
- package/modules/drive/src/templates/DEBUG.md +164 -0
- package/modules/drive/src/templates/DISCOVERY.md +148 -0
- package/modules/drive/src/templates/HANDOFF.md +77 -0
- package/modules/drive/src/templates/ISSUES.md +93 -0
- package/modules/drive/src/templates/MILESTONES.md +167 -0
- package/modules/drive/src/templates/PLAN.md +328 -0
- package/modules/drive/src/templates/PROJECT.md +219 -0
- package/modules/drive/src/templates/RESEARCH.md +130 -0
- package/modules/drive/src/templates/ROADMAP.md +328 -0
- package/modules/drive/src/templates/SPECIAL-FLOWS.md +70 -0
- package/modules/drive/src/templates/STATE.md +210 -0
- package/modules/drive/src/templates/SUMMARY.md +221 -0
- package/modules/drive/src/templates/UAT-ISSUES.md +139 -0
- package/modules/drive/src/templates/codebase/architecture.md +259 -0
- package/modules/drive/src/templates/codebase/concerns.md +329 -0
- package/modules/drive/src/templates/codebase/conventions.md +311 -0
- package/modules/drive/src/templates/codebase/integrations.md +284 -0
- package/modules/drive/src/templates/codebase/stack.md +190 -0
- package/modules/drive/src/templates/codebase/structure.md +287 -0
- package/modules/drive/src/templates/codebase/testing.md +484 -0
- package/modules/drive/src/templates/config.md +181 -0
- package/modules/drive/src/templates/milestone-archive.md +236 -0
- package/modules/drive/src/templates/milestone-context.md +190 -0
- package/modules/drive/src/templates/paul-json.md +147 -0
- package/modules/drive/src/vector-config/PAUL +26 -0
- package/modules/drive/src/vector-config/PAUL.manifest +11 -0
- package/modules/drive/src/workflows/apply-phase.md +393 -0
- package/modules/drive/src/workflows/audit-plan.md +344 -0
- package/modules/drive/src/workflows/complete-milestone.md +479 -0
- package/modules/drive/src/workflows/configure-special-flows.md +283 -0
- package/modules/drive/src/workflows/consider-issues.md +172 -0
- package/modules/drive/src/workflows/create-milestone.md +268 -0
- package/modules/drive/src/workflows/debug.md +292 -0
- package/modules/drive/src/workflows/discovery.md +187 -0
- package/modules/drive/src/workflows/discuss-milestone.md +245 -0
- package/modules/drive/src/workflows/discuss-phase.md +231 -0
- package/modules/drive/src/workflows/init-project.md +698 -0
- package/modules/drive/src/workflows/map-codebase.md +459 -0
- package/modules/drive/src/workflows/pause-work.md +259 -0
- package/modules/drive/src/workflows/phase-assumptions.md +181 -0
- package/modules/drive/src/workflows/plan-phase.md +385 -0
- package/modules/drive/src/workflows/quality-gate.md +263 -0
- package/modules/drive/src/workflows/register-manifest.md +107 -0
- package/modules/drive/src/workflows/research.md +241 -0
- package/modules/drive/src/workflows/resume-project.md +200 -0
- package/modules/drive/src/workflows/roadmap-management.md +334 -0
- package/modules/drive/src/workflows/transition-phase.md +368 -0
- package/modules/drive/src/workflows/unify-phase.md +290 -0
- package/modules/drive/src/workflows/verify-work.md +241 -0
- package/modules/forge/README.md +281 -0
- package/modules/forge/bin/install.js +200 -0
- package/modules/forge/package.json +32 -0
- package/modules/forge/skillsmith/rules/checklists-rules.md +42 -0
- package/modules/forge/skillsmith/rules/context-rules.md +43 -0
- package/modules/forge/skillsmith/rules/entry-point-rules.md +44 -0
- package/modules/forge/skillsmith/rules/frameworks-rules.md +43 -0
- package/modules/forge/skillsmith/rules/tasks-rules.md +52 -0
- package/modules/forge/skillsmith/rules/templates-rules.md +43 -0
- package/modules/forge/skillsmith/skillsmith.md +82 -0
- package/modules/forge/skillsmith/tasks/audit.md +277 -0
- package/modules/forge/skillsmith/tasks/discover.md +145 -0
- package/modules/forge/skillsmith/tasks/distill.md +276 -0
- package/modules/forge/skillsmith/tasks/scaffold.md +349 -0
- package/modules/forge/specs/checklists.md +193 -0
- package/modules/forge/specs/context.md +223 -0
- package/modules/forge/specs/entry-point.md +320 -0
- package/modules/forge/specs/frameworks.md +228 -0
- package/modules/forge/specs/rules.md +245 -0
- package/modules/forge/specs/tasks.md +344 -0
- package/modules/forge/specs/templates.md +335 -0
- package/modules/forge/terminal.svg +70 -0
- package/modules/ignition/README.md +245 -0
- package/modules/ignition/bin/install.js +184 -0
- package/modules/ignition/checklists/planning-quality.md +55 -0
- package/modules/ignition/data/application/config.md +21 -0
- package/modules/ignition/data/application/guide.md +51 -0
- package/modules/ignition/data/application/skill-loadout.md +11 -0
- package/modules/ignition/data/campaign/config.md +18 -0
- package/modules/ignition/data/campaign/guide.md +36 -0
- package/modules/ignition/data/campaign/skill-loadout.md +10 -0
- package/modules/ignition/data/client/config.md +18 -0
- package/modules/ignition/data/client/guide.md +36 -0
- package/modules/ignition/data/client/skill-loadout.md +11 -0
- package/modules/ignition/data/utility/config.md +18 -0
- package/modules/ignition/data/utility/guide.md +31 -0
- package/modules/ignition/data/utility/skill-loadout.md +8 -0
- package/modules/ignition/data/workflow/config.md +19 -0
- package/modules/ignition/data/workflow/guide.md +41 -0
- package/modules/ignition/data/workflow/skill-loadout.md +10 -0
- package/modules/ignition/integration.js +54 -0
- package/modules/ignition/package.json +35 -0
- package/modules/ignition/seed.md +81 -0
- package/modules/ignition/tasks/add-type.md +164 -0
- package/modules/ignition/tasks/graduate.md +182 -0
- package/modules/ignition/tasks/ideate.md +221 -0
- package/modules/ignition/tasks/launch.md +137 -0
- package/modules/ignition/tasks/status.md +71 -0
- package/modules/ignition/templates/planning-application.md +193 -0
- package/modules/ignition/templates/planning-campaign.md +138 -0
- package/modules/ignition/templates/planning-client.md +149 -0
- package/modules/ignition/templates/planning-utility.md +112 -0
- package/modules/ignition/templates/planning-workflow.md +125 -0
- package/modules/ignition/terminal.svg +74 -0
- package/modules/mission-control/CONTEXT-CONTINUITY-SPEC.md +293 -0
- package/modules/mission-control/CONTEXT-ENGINEERING-GUIDE.md +282 -0
- package/modules/mission-control/README.md +91 -0
- package/modules/mission-control/assets/terminal.svg +80 -0
- package/modules/mission-control/examples/entities.example.json +133 -0
- package/modules/mission-control/examples/projects.example.json +318 -0
- package/modules/mission-control/examples/state.example.json +183 -0
- package/modules/mission-control/examples/vector.example.json +245 -0
- package/modules/mission-control/mission-control/checklists/install-verification.md +46 -0
- package/modules/mission-control/mission-control/frameworks/framework-registry.md +83 -0
- package/modules/mission-control/mission-control/mission-control.md +83 -0
- package/modules/mission-control/mission-control/tasks/insights.md +73 -0
- package/modules/mission-control/mission-control/tasks/install.md +194 -0
- package/modules/mission-control/mission-control/tasks/status.md +125 -0
- package/modules/mission-control/schemas/entities.schema.json +89 -0
- package/modules/mission-control/schemas/projects.schema.json +221 -0
- package/modules/mission-control/schemas/state.schema.json +108 -0
- package/modules/mission-control/schemas/vector.schema.json +200 -0
- package/modules/momentum/README.md +678 -0
- package/modules/momentum/bin/install.js +563 -0
- package/modules/momentum/integration.js +131 -0
- package/modules/momentum/package.json +42 -0
- package/modules/momentum/schemas/entities.schema.json +89 -0
- package/modules/momentum/schemas/projects.schema.json +221 -0
- package/modules/momentum/schemas/state.schema.json +108 -0
- package/modules/momentum/src/commands/audit-claude-md.md +31 -0
- package/modules/momentum/src/commands/audit.md +33 -0
- package/modules/momentum/src/commands/groom.md +35 -0
- package/modules/momentum/src/commands/history.md +27 -0
- package/modules/momentum/src/commands/pulse.md +33 -0
- package/modules/momentum/src/commands/scaffold.md +33 -0
- package/modules/momentum/src/commands/status.md +28 -0
- package/modules/momentum/src/commands/surface-convert.md +35 -0
- package/modules/momentum/src/commands/surface-create.md +34 -0
- package/modules/momentum/src/commands/surface-list.md +27 -0
- package/modules/momentum/src/commands/vector-hygiene.md +33 -0
- package/modules/momentum/src/framework/context/momentum-principles.md +71 -0
- package/modules/momentum/src/framework/frameworks/audit-strategies.md +53 -0
- package/modules/momentum/src/framework/frameworks/satellite-registration.md +44 -0
- package/modules/momentum/src/framework/tasks/audit-claude-md.md +68 -0
- package/modules/momentum/src/framework/tasks/audit.md +64 -0
- package/modules/momentum/src/framework/tasks/groom.md +164 -0
- package/modules/momentum/src/framework/tasks/history.md +34 -0
- package/modules/momentum/src/framework/tasks/pulse.md +83 -0
- package/modules/momentum/src/framework/tasks/scaffold.md +202 -0
- package/modules/momentum/src/framework/tasks/status.md +35 -0
- package/modules/momentum/src/framework/tasks/surface-convert.md +143 -0
- package/modules/momentum/src/framework/tasks/surface-create.md +184 -0
- package/modules/momentum/src/framework/tasks/surface-list.md +42 -0
- package/modules/momentum/src/framework/tasks/vector-hygiene.md +160 -0
- package/modules/momentum/src/framework/templates/workspace-json.md +96 -0
- package/modules/momentum/src/hooks/_template.py +129 -0
- package/modules/momentum/src/hooks/active-hook.py +178 -0
- package/modules/momentum/src/hooks/backlog-hook.py +115 -0
- package/modules/momentum/src/hooks/mission-control-insights.py +169 -0
- package/modules/momentum/src/hooks/momentum-pulse-check.py +351 -0
- package/modules/momentum/src/hooks/operator.py +53 -0
- package/modules/momentum/src/hooks/psmm-injector.py +67 -0
- package/modules/momentum/src/hooks/satellite-detection.py +248 -0
- package/modules/momentum/src/packages/momentum-mcp/index.js +119 -0
- package/modules/momentum/src/packages/momentum-mcp/package.json +10 -0
- package/modules/momentum/src/packages/momentum-mcp/tools/entities.js +226 -0
- package/modules/momentum/src/packages/momentum-mcp/tools/operator.js +106 -0
- package/modules/momentum/src/packages/momentum-mcp/tools/projects.js +322 -0
- package/modules/momentum/src/packages/momentum-mcp/tools/psmm.js +206 -0
- package/modules/momentum/src/packages/momentum-mcp/tools/state.js +199 -0
- package/modules/momentum/src/packages/momentum-mcp/tools/surfaces.js +404 -0
- package/modules/momentum/src/skill/momentum.md +111 -0
- package/modules/momentum/src/tasks/groom.md +164 -0
- package/modules/momentum/src/templates/operator.json +66 -0
- package/modules/momentum/src/templates/workspace.json +111 -0
- package/modules/momentum/terminal.svg +77 -0
- package/modules/radar/README.md +1552 -0
- package/modules/radar/commands/audit.md +233 -0
- package/modules/radar/commands/guardrails.md +194 -0
- package/modules/radar/commands/init.md +207 -0
- package/modules/radar/commands/playbook.md +176 -0
- package/modules/radar/commands/remediate.md +156 -0
- package/modules/radar/commands/report.md +172 -0
- package/modules/radar/commands/resume.md +176 -0
- package/modules/radar/commands/status.md +148 -0
- package/modules/radar/commands/transform.md +205 -0
- package/modules/radar/commands/validate.md +177 -0
- package/modules/radar/docs/ARCHITECTURE.md +336 -0
- package/modules/radar/docs/GETTING-STARTED.md +287 -0
- package/modules/radar/docs/standards/agents.md +197 -0
- package/modules/radar/docs/standards/commands.md +250 -0
- package/modules/radar/docs/standards/domains.md +191 -0
- package/modules/radar/docs/standards/personas.md +211 -0
- package/modules/radar/docs/standards/rules.md +218 -0
- package/modules/radar/docs/standards/runtime.md +445 -0
- package/modules/radar/docs/standards/schemas.md +269 -0
- package/modules/radar/docs/standards/tools.md +273 -0
- package/modules/radar/docs/standards/workflows.md +254 -0
- package/modules/radar/docs/terminal.svg +72 -0
- package/modules/radar/docs/validation/convention-compliance-report.md +183 -0
- package/modules/radar/docs/validation/cross-reference-report.md +195 -0
- package/modules/radar/docs/validation/validation-summary.md +118 -0
- package/modules/radar/docs/validation/version-manifest.yaml +363 -0
- package/modules/radar/install.sh +711 -0
- package/modules/radar/integration.js +53 -0
- package/modules/radar/src/core/agents/architect.md +25 -0
- package/modules/radar/src/core/agents/compliance-officer.md +25 -0
- package/modules/radar/src/core/agents/data-engineer.md +25 -0
- package/modules/radar/src/core/agents/devils-advocate.md +22 -0
- package/modules/radar/src/core/agents/performance-engineer.md +25 -0
- package/modules/radar/src/core/agents/principal-engineer.md +23 -0
- package/modules/radar/src/core/agents/reality-gap-analyst.md +22 -0
- package/modules/radar/src/core/agents/security-engineer.md +25 -0
- package/modules/radar/src/core/agents/senior-app-engineer.md +25 -0
- package/modules/radar/src/core/agents/sre.md +25 -0
- package/modules/radar/src/core/agents/staff-engineer.md +23 -0
- package/modules/radar/src/core/agents/test-engineer.md +25 -0
- package/modules/radar/src/core/personas/architect.md +111 -0
- package/modules/radar/src/core/personas/compliance-officer.md +104 -0
- package/modules/radar/src/core/personas/data-engineer.md +113 -0
- package/modules/radar/src/core/personas/devils-advocate.md +105 -0
- package/modules/radar/src/core/personas/performance-engineer.md +119 -0
- package/modules/radar/src/core/personas/principal-engineer.md +119 -0
- package/modules/radar/src/core/personas/reality-gap-analyst.md +111 -0
- package/modules/radar/src/core/personas/security-engineer.md +108 -0
- package/modules/radar/src/core/personas/senior-app-engineer.md +111 -0
- package/modules/radar/src/core/personas/sre.md +117 -0
- package/modules/radar/src/core/personas/staff-engineer.md +109 -0
- package/modules/radar/src/core/personas/test-engineer.md +109 -0
- package/modules/radar/src/core/workflows/disagreement-resolution.md +183 -0
- package/modules/radar/src/core/workflows/phase-0-context.md +148 -0
- package/modules/radar/src/core/workflows/phase-1-reconnaissance.md +169 -0
- package/modules/radar/src/core/workflows/phase-2-domain-audits.md +190 -0
- package/modules/radar/src/core/workflows/phase-3-cross-domain.md +177 -0
- package/modules/radar/src/core/workflows/phase-4-adversarial-review.md +165 -0
- package/modules/radar/src/core/workflows/phase-5-report.md +189 -0
- package/modules/radar/src/core/workflows/phase-checkpoint.md +222 -0
- package/modules/radar/src/core/workflows/session-handoff.md +152 -0
- package/modules/radar/src/domains/00-context.md +201 -0
- package/modules/radar/src/domains/01-architecture.md +248 -0
- package/modules/radar/src/domains/02-data.md +224 -0
- package/modules/radar/src/domains/03-correctness.md +230 -0
- package/modules/radar/src/domains/04-security.md +274 -0
- package/modules/radar/src/domains/05-compliance.md +228 -0
- package/modules/radar/src/domains/06-testing.md +228 -0
- package/modules/radar/src/domains/07-reliability.md +246 -0
- package/modules/radar/src/domains/08-performance.md +247 -0
- package/modules/radar/src/domains/09-maintainability.md +271 -0
- package/modules/radar/src/domains/10-operability.md +250 -0
- package/modules/radar/src/domains/11-change-risk.md +246 -0
- package/modules/radar/src/domains/12-team-risk.md +221 -0
- package/modules/radar/src/domains/13-risk-synthesis.md +202 -0
- package/modules/radar/src/rules/agent-boundaries.md +78 -0
- package/modules/radar/src/rules/disagreement-protocol.md +76 -0
- package/modules/radar/src/rules/epistemic-hygiene.md +78 -0
- package/modules/radar/src/schemas/confidence.md +185 -0
- package/modules/radar/src/schemas/disagreement.md +238 -0
- package/modules/radar/src/schemas/finding.md +287 -0
- package/modules/radar/src/schemas/report-section.md +150 -0
- package/modules/radar/src/schemas/signal.md +108 -0
- package/modules/radar/src/tools/checkov.md +463 -0
- package/modules/radar/src/tools/git-history.md +581 -0
- package/modules/radar/src/tools/gitleaks.md +447 -0
- package/modules/radar/src/tools/grype.md +611 -0
- package/modules/radar/src/tools/semgrep.md +378 -0
- package/modules/radar/src/tools/sonarqube.md +550 -0
- package/modules/radar/src/tools/syft.md +539 -0
- package/modules/radar/src/tools/trivy.md +439 -0
- package/modules/radar/src/transform/agents/change-risk-modeler.md +24 -0
- package/modules/radar/src/transform/agents/execution-validator.md +24 -0
- package/modules/radar/src/transform/agents/guardrail-generator.md +24 -0
- package/modules/radar/src/transform/agents/pedagogy-agent.md +24 -0
- package/modules/radar/src/transform/agents/remediation-architect.md +24 -0
- package/modules/radar/src/transform/personas/change-risk-modeler.md +95 -0
- package/modules/radar/src/transform/personas/execution-validator.md +95 -0
- package/modules/radar/src/transform/personas/guardrail-generator.md +103 -0
- package/modules/radar/src/transform/personas/pedagogy-agent.md +105 -0
- package/modules/radar/src/transform/personas/remediation-architect.md +95 -0
- package/modules/radar/src/transform/rules/change-risk-rules.md +87 -0
- package/modules/radar/src/transform/rules/safety-governance.md +87 -0
- package/modules/radar/src/transform/schemas/change-risk.md +139 -0
- package/modules/radar/src/transform/schemas/intervention-level.md +207 -0
- package/modules/radar/src/transform/schemas/playbook.md +205 -0
- package/modules/radar/src/transform/schemas/verification-plan.md +134 -0
- package/modules/radar/src/transform/workflows/phase-6-remediation.md +148 -0
- package/modules/radar/src/transform/workflows/phase-7-risk-validation.md +161 -0
- package/modules/radar/src/transform/workflows/phase-8-execution-planning.md +159 -0
- package/modules/radar/src/transform/workflows/transform-safety.md +158 -0
- package/modules/vector/.vector-template/sessions/.gitkeep +0 -0
- package/modules/vector/.vector-template/vector.json +72 -0
- package/modules/vector/AUDIT-CLAUDEMD.md +154 -0
- package/modules/vector/INSTALL.md +185 -0
- package/modules/vector/LICENSE +21 -0
- package/modules/vector/README.md +409 -0
- package/modules/vector/VECTOR-BLOCK.md +57 -0
- package/modules/vector/assets/terminal.svg +68 -0
- package/modules/vector/bin/install.js +455 -0
- package/modules/vector/bin/migrate-v1-to-v2.sh +492 -0
- package/modules/vector/commands/help.md +46 -0
- package/modules/vector/hooks/vector-hook.py +775 -0
- package/modules/vector/mcp/index.js +118 -0
- package/modules/vector/mcp/package.json +10 -0
- package/modules/vector/mcp/tools/decisions.js +269 -0
- package/modules/vector/mcp/tools/domains.js +361 -0
- package/modules/vector/mcp/tools/staging.js +252 -0
- package/modules/vector/mcp/tools/vector-json.js +647 -0
- package/modules/vector/package.json +38 -0
- package/modules/vector/schemas/vector.schema.json +237 -0
- package/package.json +39 -0
- package/shared/branding/branding.js +70 -0
- package/shared/config/defaults.json +59 -0
- package/shared/events/README.md +175 -0
- package/shared/events/event-bus.js +134 -0
- package/shared/events/event_bus.py +255 -0
- package/shared/events/integrations.js +161 -0
- package/shared/events/schemas/audit-complete.schema.json +21 -0
- package/shared/events/schemas/phase-progress.schema.json +23 -0
- package/shared/events/schemas/plan-created.schema.json +21 -0
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Handle phase-level transition after all plans in a phase are complete. Evolves PROJECT.md, verifies phase completion, cleans up, and routes to next phase or milestone completion.
|
|
3
|
+
|
|
4
|
+
**Invoked by:** unify-phase.md when it detects "last plan in phase"
|
|
5
|
+
**Scope:** Phase N → Phase N+1 (or milestone completion)
|
|
6
|
+
</purpose>
|
|
7
|
+
|
|
8
|
+
<when_to_use>
|
|
9
|
+
- All plans in current phase have SUMMARY.md files
|
|
10
|
+
- Phase is ready to close
|
|
11
|
+
- Moving to next phase or completing milestone
|
|
12
|
+
</when_to_use>
|
|
13
|
+
|
|
14
|
+
<required_reading>
|
|
15
|
+
@.drive/STATE.md
|
|
16
|
+
@.drive/PROJECT.md
|
|
17
|
+
@.drive/ROADMAP.md
|
|
18
|
+
@.drive/phases/{current-phase}/*-SUMMARY.md
|
|
19
|
+
</required_reading>
|
|
20
|
+
|
|
21
|
+
<process>
|
|
22
|
+
|
|
23
|
+
<step name="verify_phase_completion" priority="first">
|
|
24
|
+
1. Count PLAN.md files in current phase directory
|
|
25
|
+
2. Count SUMMARY.md files in current phase directory
|
|
26
|
+
3. **Verification:**
|
|
27
|
+
- If counts match: Phase complete
|
|
28
|
+
- If counts don't match: Phase incomplete
|
|
29
|
+
|
|
30
|
+
**If incomplete:**
|
|
31
|
+
```
|
|
32
|
+
════════════════════════════════════════
|
|
33
|
+
PHASE INCOMPLETE
|
|
34
|
+
════════════════════════════════════════
|
|
35
|
+
|
|
36
|
+
Phase {N} has incomplete plans:
|
|
37
|
+
- {phase}-01-SUMMARY.md ✓
|
|
38
|
+
- {phase}-02-SUMMARY.md ✗ Missing
|
|
39
|
+
- {phase}-03-SUMMARY.md ✗ Missing
|
|
40
|
+
|
|
41
|
+
Options:
|
|
42
|
+
[1] Continue current phase (execute remaining plans)
|
|
43
|
+
[2] Mark complete anyway (skip remaining plans)
|
|
44
|
+
[3] Review what's left
|
|
45
|
+
════════════════════════════════════════
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Wait for user decision before proceeding.
|
|
49
|
+
|
|
50
|
+
**If complete:** Continue to next step.
|
|
51
|
+
</step>
|
|
52
|
+
|
|
53
|
+
<step name="cleanup_handoffs">
|
|
54
|
+
1. Check for stale handoffs in phase directory:
|
|
55
|
+
```bash
|
|
56
|
+
ls .drive/phases/{current-phase}/HANDOFF*.md 2>/dev/null
|
|
57
|
+
```
|
|
58
|
+
2. If found, delete them — phase is complete, handoffs are stale
|
|
59
|
+
3. Note: Active handoffs at `.drive/` root are preserved
|
|
60
|
+
</step>
|
|
61
|
+
|
|
62
|
+
<step name="evolve_project">
|
|
63
|
+
**Read phase summaries:**
|
|
64
|
+
```bash
|
|
65
|
+
cat .drive/phases/{current-phase}/*-SUMMARY.md
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**Assess and update PROJECT.md:**
|
|
69
|
+
|
|
70
|
+
1. **Requirements validated?**
|
|
71
|
+
- Any requirements shipped in this phase?
|
|
72
|
+
- Move to Validated section: `- ✓ [Requirement] — Phase X`
|
|
73
|
+
|
|
74
|
+
2. **Requirements invalidated?**
|
|
75
|
+
- Any requirements discovered unnecessary or wrong?
|
|
76
|
+
- Move to Out of Scope: `- [Requirement] — [reason]`
|
|
77
|
+
|
|
78
|
+
3. **Requirements emerged?**
|
|
79
|
+
- New requirements discovered during building?
|
|
80
|
+
- Add to Active: `- [ ] [New requirement]`
|
|
81
|
+
|
|
82
|
+
4. **Key Decisions to log?**
|
|
83
|
+
- Extract decisions from SUMMARY.md files
|
|
84
|
+
- Add to Key Decisions table
|
|
85
|
+
|
|
86
|
+
5. **Core value still accurate?**
|
|
87
|
+
- If product meaningfully changed, update description
|
|
88
|
+
- Keep it current
|
|
89
|
+
|
|
90
|
+
**Update footer:**
|
|
91
|
+
```markdown
|
|
92
|
+
---
|
|
93
|
+
*Last updated: [date] after Phase [X]*
|
|
94
|
+
```
|
|
95
|
+
</step>
|
|
96
|
+
|
|
97
|
+
<step name="review_accumulated_context">
|
|
98
|
+
Update STATE.md Accumulated Context section:
|
|
99
|
+
|
|
100
|
+
**Decisions:**
|
|
101
|
+
- Note 3-5 recent decisions from this phase
|
|
102
|
+
- Full log lives in PROJECT.md
|
|
103
|
+
|
|
104
|
+
**Blockers/Concerns:**
|
|
105
|
+
- Resolved blockers: Remove from list
|
|
106
|
+
- Unresolved: Keep with "Phase X" prefix
|
|
107
|
+
- New concerns from summaries: Add
|
|
108
|
+
|
|
109
|
+
**Deferred Issues:**
|
|
110
|
+
- Update count if issues were logged
|
|
111
|
+
- Note if many accumulated
|
|
112
|
+
</step>
|
|
113
|
+
|
|
114
|
+
<step name="update_state_for_transition">
|
|
115
|
+
Update STATE.md Current Position:
|
|
116
|
+
|
|
117
|
+
```markdown
|
|
118
|
+
## Current Position
|
|
119
|
+
|
|
120
|
+
Phase: [N+1] of [total] ([Next phase name])
|
|
121
|
+
Plan: Not started
|
|
122
|
+
Status: Ready to plan
|
|
123
|
+
Last activity: [today] — Phase [N] complete, transitioned to Phase [N+1]
|
|
124
|
+
|
|
125
|
+
Progress: [updated bar based on completed plans]
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Update Session Continuity:
|
|
129
|
+
```markdown
|
|
130
|
+
## Session Continuity
|
|
131
|
+
|
|
132
|
+
Last session: [today]
|
|
133
|
+
Stopped at: Phase [N] complete, ready to plan Phase [N+1]
|
|
134
|
+
Next action: /drive:plan for Phase [N+1]
|
|
135
|
+
Resume file: .drive/ROADMAP.md
|
|
136
|
+
```
|
|
137
|
+
</step>
|
|
138
|
+
|
|
139
|
+
<step name="update_roadmap_completion">
|
|
140
|
+
Update ROADMAP.md:
|
|
141
|
+
|
|
142
|
+
1. Mark current phase complete:
|
|
143
|
+
- Status: ✅ Complete
|
|
144
|
+
- Completed: [date]
|
|
145
|
+
- Plan count: X/X
|
|
146
|
+
|
|
147
|
+
2. Update progress summary:
|
|
148
|
+
- Phases: Y of Z complete
|
|
149
|
+
- Calculate percentage
|
|
150
|
+
</step>
|
|
151
|
+
|
|
152
|
+
<step name="commit_phase">
|
|
153
|
+
**Git commit for completed phase:**
|
|
154
|
+
|
|
155
|
+
**1. Check for feature branches from this phase:**
|
|
156
|
+
```bash
|
|
157
|
+
git branch --list "feature/{phase}*"
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
**2. If feature branch exists:**
|
|
161
|
+
```
|
|
162
|
+
────────────────────────────────────────
|
|
163
|
+
Feature branch detected: feature/{phase-name}
|
|
164
|
+
|
|
165
|
+
Checking for conflicts with main...
|
|
166
|
+
────────────────────────────────────────
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
Check for conflicts:
|
|
170
|
+
```bash
|
|
171
|
+
git fetch origin main 2>/dev/null || true
|
|
172
|
+
git diff main...feature/{phase-name} --stat
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
**If no conflicts:**
|
|
176
|
+
```
|
|
177
|
+
No conflicts detected.
|
|
178
|
+
|
|
179
|
+
Merge feature/{phase-name} to main? [yes/no]
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
If yes:
|
|
183
|
+
```bash
|
|
184
|
+
git checkout main
|
|
185
|
+
git merge feature/{phase-name} --no-ff -m "Merge feature/{phase-name} into main"
|
|
186
|
+
git branch -d feature/{phase-name}
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
**If conflicts exist:**
|
|
190
|
+
```
|
|
191
|
+
⚠️ Conflicts detected between feature/{phase-name} and main.
|
|
192
|
+
|
|
193
|
+
Cannot auto-merge. Options:
|
|
194
|
+
[1] Resolve conflicts manually, then re-run transition
|
|
195
|
+
[2] Keep on feature branch (do not merge)
|
|
196
|
+
[3] Force merge anyway (not recommended)
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
**3. Stage phase files:**
|
|
200
|
+
```bash
|
|
201
|
+
git add .drive/phases/{phase}/ .drive/STATE.md .drive/PROJECT.md .drive/ROADMAP.md
|
|
202
|
+
git add src/ # If source files were modified
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
**4. Create phase commit:**
|
|
206
|
+
```bash
|
|
207
|
+
git commit -m "$(cat <<'EOF'
|
|
208
|
+
feat({phase}): {phase-description}
|
|
209
|
+
|
|
210
|
+
Phase {N} complete:
|
|
211
|
+
- {plan-01 summary}
|
|
212
|
+
- {plan-02 summary}
|
|
213
|
+
- {plan-03 summary}
|
|
214
|
+
|
|
215
|
+
Co-Authored-By: Claude <noreply@anthropic.com>
|
|
216
|
+
EOF
|
|
217
|
+
)"
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
**5. Record git state for complete-milestone:**
|
|
221
|
+
Update STATE.md Accumulated Context:
|
|
222
|
+
```markdown
|
|
223
|
+
### Git State
|
|
224
|
+
Last commit: {short-hash}
|
|
225
|
+
Branch: main
|
|
226
|
+
Feature branches merged: {list or "none"}
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
Display:
|
|
230
|
+
```
|
|
231
|
+
Git commit created: {short-hash}
|
|
232
|
+
feat({phase}): {phase-description}
|
|
233
|
+
```
|
|
234
|
+
</step>
|
|
235
|
+
|
|
236
|
+
<step name="verify_state_consistency" priority="critical">
|
|
237
|
+
**CRITICAL: Verify state files are aligned before declaring transition complete.**
|
|
238
|
+
|
|
239
|
+
State consistency is foundational to Drive. If STATE.md, PROJECT.md, or ROADMAP.md are misaligned, all downstream work breaks — resume fails, progress tracking is wrong, context is lost.
|
|
240
|
+
|
|
241
|
+
**1. Re-read all three files completely:**
|
|
242
|
+
```bash
|
|
243
|
+
cat .drive/STATE.md
|
|
244
|
+
cat .drive/PROJECT.md
|
|
245
|
+
cat .drive/ROADMAP.md
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
**2. Verify alignment across these fields:**
|
|
249
|
+
|
|
250
|
+
| Field | STATE.md | PROJECT.md | ROADMAP.md |
|
|
251
|
+
|-------|----------|------------|------------|
|
|
252
|
+
| Version | `Version:` field | Current State table | Version Overview |
|
|
253
|
+
| Phase | `Phase:` field | (implicit in Active) | Phase Structure table |
|
|
254
|
+
| Status | `Status:` field | `Status:` in table | Phase status column |
|
|
255
|
+
| Focus | `Current focus:` header | (matches Active) | Current Milestone |
|
|
256
|
+
|
|
257
|
+
**3. Check for stale references:**
|
|
258
|
+
- No "blocked on X" if X is complete
|
|
259
|
+
- No "IN PROGRESS" for completed phases
|
|
260
|
+
- Current focus matches current phase, not previous
|
|
261
|
+
- Progress bars match actual plan counts
|
|
262
|
+
|
|
263
|
+
**4. If ANY misalignment found:**
|
|
264
|
+
```
|
|
265
|
+
════════════════════════════════════════
|
|
266
|
+
⚠️ STATE CONSISTENCY ERROR
|
|
267
|
+
════════════════════════════════════════
|
|
268
|
+
|
|
269
|
+
Misalignment detected:
|
|
270
|
+
| Field | STATE.md | PROJECT.md | ROADMAP.md |
|
|
271
|
+
|-------|----------|------------|------------|
|
|
272
|
+
| {field} | {value} | {value} | {value} |
|
|
273
|
+
|
|
274
|
+
Fix ALL misalignments before proceeding.
|
|
275
|
+
This is a blocking error — do not route to next phase.
|
|
276
|
+
════════════════════════════════════════
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
**Fix the issues, then re-verify.**
|
|
280
|
+
|
|
281
|
+
**5. If aligned:**
|
|
282
|
+
```
|
|
283
|
+
State consistency: ✓
|
|
284
|
+
STATE.md — Phase {N+1}, v{version}, ready to plan
|
|
285
|
+
PROJECT.md — v{version}, {active_count} active requirements
|
|
286
|
+
ROADMAP.md — Phase {N} ✅, Phase {N+1} 🔵
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
**Only proceed to route_next after verification passes.**
|
|
290
|
+
</step>
|
|
291
|
+
|
|
292
|
+
<step name="route_next">
|
|
293
|
+
**Check if milestone complete:**
|
|
294
|
+
|
|
295
|
+
1. Read ROADMAP.md
|
|
296
|
+
2. Find all phases in current milestone
|
|
297
|
+
3. If current phase is LAST in milestone → Route B (milestone complete)
|
|
298
|
+
4. If more phases remain → Route A (next phase)
|
|
299
|
+
|
|
300
|
+
---
|
|
301
|
+
|
|
302
|
+
**Route A: More phases remain**
|
|
303
|
+
|
|
304
|
+
```
|
|
305
|
+
════════════════════════════════════════
|
|
306
|
+
PHASE {N} COMPLETE
|
|
307
|
+
════════════════════════════════════════
|
|
308
|
+
|
|
309
|
+
✓ All {X} plans complete
|
|
310
|
+
✓ PROJECT.md evolved
|
|
311
|
+
✓ Ready for next phase
|
|
312
|
+
|
|
313
|
+
---
|
|
314
|
+
Next: Phase {N+1} — {Name}
|
|
315
|
+
|
|
316
|
+
[1] Yes, plan Phase {N+1} | [2] Pause here
|
|
317
|
+
════════════════════════════════════════
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
**Accept:** "1", "yes", "continue" → run `/drive:plan` for Phase N+1
|
|
321
|
+
|
|
322
|
+
---
|
|
323
|
+
|
|
324
|
+
**Route B: Milestone complete**
|
|
325
|
+
|
|
326
|
+
```
|
|
327
|
+
════════════════════════════════════════
|
|
328
|
+
MILESTONE COMPLETE
|
|
329
|
+
════════════════════════════════════════
|
|
330
|
+
|
|
331
|
+
🎉 {version} is 100% complete — all {N} phases finished!
|
|
332
|
+
|
|
333
|
+
✓ All phases unified
|
|
334
|
+
✓ PROJECT.md evolved
|
|
335
|
+
✓ Ready for next milestone or release
|
|
336
|
+
|
|
337
|
+
---
|
|
338
|
+
What's next?
|
|
339
|
+
|
|
340
|
+
[1] Start next milestone | [2] Review accomplishments | [3] Pause here
|
|
341
|
+
════════════════════════════════════════
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
</step>
|
|
345
|
+
|
|
346
|
+
</process>
|
|
347
|
+
|
|
348
|
+
<output>
|
|
349
|
+
- PROJECT.md evolved with validated/invalidated requirements
|
|
350
|
+
- STATE.md updated for new phase
|
|
351
|
+
- ROADMAP.md marked complete
|
|
352
|
+
- Stale handoffs cleaned
|
|
353
|
+
- Git commit created for phase: feat({phase}): {description}
|
|
354
|
+
- Feature branches merged if applicable
|
|
355
|
+
- User routed to next phase or milestone
|
|
356
|
+
</output>
|
|
357
|
+
|
|
358
|
+
<success_criteria>
|
|
359
|
+
- [ ] Phase PLAN/SUMMARY count verified
|
|
360
|
+
- [ ] Stale handoffs cleaned
|
|
361
|
+
- [ ] PROJECT.md evolved (requirements, decisions)
|
|
362
|
+
- [ ] STATE.md updated (position, context, session)
|
|
363
|
+
- [ ] ROADMAP.md marked complete
|
|
364
|
+
- [ ] Feature branches merged (if any)
|
|
365
|
+
- [ ] Git commit created for phase
|
|
366
|
+
- [ ] **STATE CONSISTENCY VERIFIED** (all three files aligned - BLOCKING)
|
|
367
|
+
- [ ] User knows next steps with quick continuation
|
|
368
|
+
</success_criteria>
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Reconcile what was planned vs. what was built. Create SUMMARY.md documenting results, update STATE.md with new position, and close the loop to prepare for next PLAN.
|
|
3
|
+
</purpose>
|
|
4
|
+
|
|
5
|
+
<when_to_use>
|
|
6
|
+
- APPLY phase complete (all tasks executed or documented)
|
|
7
|
+
- Ready to close the current loop
|
|
8
|
+
- Need to record what was built for future reference
|
|
9
|
+
</when_to_use>
|
|
10
|
+
|
|
11
|
+
<loop_context>
|
|
12
|
+
Expected phase: UNIFY
|
|
13
|
+
Prior phase: APPLY (execution complete)
|
|
14
|
+
Next phase: PLAN (next plan or next phase)
|
|
15
|
+
</loop_context>
|
|
16
|
+
|
|
17
|
+
<required_reading>
|
|
18
|
+
@.drive/STATE.md
|
|
19
|
+
@.drive/phases/{phase}/{plan}-PLAN.md
|
|
20
|
+
</required_reading>
|
|
21
|
+
|
|
22
|
+
<references>
|
|
23
|
+
@~/.claude/drive-framework/references/loop-phases.md
|
|
24
|
+
@~/.claude/drive-framework/templates/SUMMARY.md
|
|
25
|
+
@~/.claude/drive-framework/workflows/transition-phase.md (loaded when last plan in phase)
|
|
26
|
+
</references>
|
|
27
|
+
|
|
28
|
+
<process>
|
|
29
|
+
|
|
30
|
+
<step name="gather_results" priority="first">
|
|
31
|
+
1. Read PLAN.md to refresh:
|
|
32
|
+
- Original acceptance criteria
|
|
33
|
+
- Expected outputs
|
|
34
|
+
- Task definitions
|
|
35
|
+
2. **Detect plan track:**
|
|
36
|
+
- If PLAN.md has no `<boundaries>` section AND has a single task → `is_quick_fix = true`
|
|
37
|
+
- Otherwise → `is_quick_fix = false`
|
|
38
|
+
3. Recall execution from APPLY phase:
|
|
39
|
+
- Which tasks completed successfully (with qualify results if E/Q was active)
|
|
40
|
+
- Which tasks failed (if any)
|
|
41
|
+
- Which checkpoints were resolved and how
|
|
42
|
+
- Any deviations from the plan
|
|
43
|
+
- Escalation statuses used (DONE_WITH_CONCERNS, NEEDS_CONTEXT, BLOCKED)
|
|
44
|
+
</step>
|
|
45
|
+
|
|
46
|
+
<step name="compare_plan_vs_actual">
|
|
47
|
+
1. For each acceptance criterion:
|
|
48
|
+
- Was it satisfied? (PASS/FAIL)
|
|
49
|
+
- Evidence of satisfaction
|
|
50
|
+
2. For each task:
|
|
51
|
+
- Did it complete as specified?
|
|
52
|
+
- Any modifications to approach?
|
|
53
|
+
3. Note deviations:
|
|
54
|
+
- What differed from plan
|
|
55
|
+
- Why it differed
|
|
56
|
+
- Impact on outcomes
|
|
57
|
+
</step>
|
|
58
|
+
|
|
59
|
+
<step name="audit_skill_invocations">
|
|
60
|
+
**Check specialized workflow usage (if configured):**
|
|
61
|
+
|
|
62
|
+
1. Check if .drive/SPECIAL-FLOWS.md exists:
|
|
63
|
+
```bash
|
|
64
|
+
ls .drive/SPECIAL-FLOWS.md 2>/dev/null
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
2. If not exists: Skip this step entirely
|
|
68
|
+
|
|
69
|
+
3. If exists:
|
|
70
|
+
a. Read SPECIAL-FLOWS.md
|
|
71
|
+
b. For each skill with priority "required":
|
|
72
|
+
- Check if skill was invoked during this APPLY phase
|
|
73
|
+
- Mark as ✓ (invoked) or ○ (gap)
|
|
74
|
+
c. If any gaps found:
|
|
75
|
+
- Add to STATE.md Deviations section:
|
|
76
|
+
```markdown
|
|
77
|
+
### Skill Audit (Phase [N])
|
|
78
|
+
| Expected | Invoked | Notes |
|
|
79
|
+
|----------|---------|-------|
|
|
80
|
+
| /skill-name | ○ | [reason if known] |
|
|
81
|
+
```
|
|
82
|
+
- Warn user: "Skill gap(s) documented in STATE.md. Review before next phase."
|
|
83
|
+
d. Do NOT block UNIFY for skill gaps (warn only)
|
|
84
|
+
|
|
85
|
+
4. If all required skills invoked:
|
|
86
|
+
- Note in SUMMARY.md: "Skill audit: All required skills invoked ✓"
|
|
87
|
+
|
|
88
|
+
**Reference:** @references/specialized-workflow-integration.md
|
|
89
|
+
</step>
|
|
90
|
+
|
|
91
|
+
<step name="create_summary">
|
|
92
|
+
Create SUMMARY.md at `.drive/phases/{phase}/{plan}-SUMMARY.md`
|
|
93
|
+
|
|
94
|
+
**If `is_quick_fix = true` — compressed SUMMARY:**
|
|
95
|
+
|
|
96
|
+
```markdown
|
|
97
|
+
---
|
|
98
|
+
phase: NN-name
|
|
99
|
+
plan: NN
|
|
100
|
+
completed: ISO timestamp
|
|
101
|
+
duration: Xmin
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
# Phase [X] Plan [Y]: [Name] Summary
|
|
105
|
+
|
|
106
|
+
**[One-liner: what changed]**
|
|
107
|
+
|
|
108
|
+
## AC Result
|
|
109
|
+
|
|
110
|
+
| Criterion | Status |
|
|
111
|
+
|-----------|--------|
|
|
112
|
+
| AC-1: [Name] | Pass / Fail |
|
|
113
|
+
|
|
114
|
+
## Files Changed
|
|
115
|
+
|
|
116
|
+
| File | Change |
|
|
117
|
+
|------|--------|
|
|
118
|
+
| [path] | [Created/Modified — brief] |
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
*Completed: [date]*
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Skip: detailed deviations, decisions, next-phase-readiness, issues, performance metrics, task commits. The quick-fix loop is lightweight end-to-end.
|
|
125
|
+
|
|
126
|
+
**If `is_quick_fix = false` — full SUMMARY:**
|
|
127
|
+
|
|
128
|
+
Include all standard sections:
|
|
129
|
+
|
|
130
|
+
**Frontmatter:**
|
|
131
|
+
```yaml
|
|
132
|
+
---
|
|
133
|
+
phase: NN-name
|
|
134
|
+
plan: NN
|
|
135
|
+
completed: ISO timestamp
|
|
136
|
+
duration: approximate time
|
|
137
|
+
---
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
**Sections:**
|
|
141
|
+
- Objective (brief restatement)
|
|
142
|
+
- What Was Built (table: file, purpose, lines)
|
|
143
|
+
- Acceptance Criteria Results (table: AC, description, status)
|
|
144
|
+
- Verification Results (command outputs)
|
|
145
|
+
- Deviations (if any, with explanations)
|
|
146
|
+
- Key Patterns/Decisions (if any emerged)
|
|
147
|
+
- Next Phase (what comes next)
|
|
148
|
+
</step>
|
|
149
|
+
|
|
150
|
+
<step name="update_state">
|
|
151
|
+
1. Update STATE.md:
|
|
152
|
+
|
|
153
|
+
**Current Position:**
|
|
154
|
+
- Phase: N of M - Complete (or In Progress if more plans)
|
|
155
|
+
- Plan: complete
|
|
156
|
+
- Status: Ready for next PLAN
|
|
157
|
+
- Last activity: timestamp
|
|
158
|
+
|
|
159
|
+
**Progress:**
|
|
160
|
+
- Update milestone percentage
|
|
161
|
+
- Update phase percentage (100% if complete)
|
|
162
|
+
|
|
163
|
+
**Loop Position:**
|
|
164
|
+
```
|
|
165
|
+
PLAN ──▶ APPLY ──▶ UNIFY
|
|
166
|
+
✓ ✓ ✓ [Loop complete - ready for next PLAN]
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
**Session Continuity:**
|
|
170
|
+
- Update stopped at
|
|
171
|
+
- Update next action
|
|
172
|
+
- Update resume file (point to SUMMARY)
|
|
173
|
+
</step>
|
|
174
|
+
|
|
175
|
+
<step name="sync_paul_json">
|
|
176
|
+
**Sync satellite manifest (drive.json):**
|
|
177
|
+
|
|
178
|
+
1. Check if `.drive/drive.json` exists:
|
|
179
|
+
```bash
|
|
180
|
+
ls .drive/drive.json 2>/dev/null
|
|
181
|
+
```
|
|
182
|
+
2. If not found: skip silently (pre-v1.1 project)
|
|
183
|
+
3. If found: read current drive.json and update:
|
|
184
|
+
- `phase.number` → current phase number from STATE.md
|
|
185
|
+
- `phase.name` → current phase name from STATE.md
|
|
186
|
+
- `phase.status` → "complete" if phase done, "in_progress" if more plans remain
|
|
187
|
+
- `loop.plan` → null (loop just closed)
|
|
188
|
+
- `loop.position` → "IDLE"
|
|
189
|
+
- `timestamps.updated_at` → current ISO timestamp
|
|
190
|
+
4. Write updated drive.json back
|
|
191
|
+
</step>
|
|
192
|
+
|
|
193
|
+
<step name="check_phase_completion">
|
|
194
|
+
**Determine if this is the last plan in the phase:**
|
|
195
|
+
|
|
196
|
+
1. Count PLAN.md files in current phase directory
|
|
197
|
+
2. Count SUMMARY.md files (including the one just created)
|
|
198
|
+
3. Compare counts:
|
|
199
|
+
- If PLAN count = SUMMARY count → Last plan, trigger transition
|
|
200
|
+
- If PLAN count > SUMMARY count → More plans remain in phase
|
|
201
|
+
</step>
|
|
202
|
+
|
|
203
|
+
<step name="route_based_on_completion">
|
|
204
|
+
**If more plans remain in phase:**
|
|
205
|
+
|
|
206
|
+
Report with quick continuation:
|
|
207
|
+
```
|
|
208
|
+
════════════════════════════════════════
|
|
209
|
+
LOOP COMPLETE
|
|
210
|
+
════════════════════════════════════════
|
|
211
|
+
|
|
212
|
+
Plan: {NN}-{plan} — [description]
|
|
213
|
+
[summary of what was built]
|
|
214
|
+
[deviations if any]
|
|
215
|
+
|
|
216
|
+
Phase {N} progress: {X}/{Y} plans complete
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
Continue to next plan?
|
|
220
|
+
|
|
221
|
+
[1] Yes, plan {NN+1} | [2] Pause here
|
|
222
|
+
════════════════════════════════════════
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
**Accept:** "1", "yes", "continue" → run `/drive:plan` for next plan in same phase
|
|
226
|
+
</step>
|
|
227
|
+
|
|
228
|
+
<step name="execute_transition" priority="required" gate="blocking">
|
|
229
|
+
**If last plan in phase — TRANSITION IS MANDATORY:**
|
|
230
|
+
|
|
231
|
+
⚠️ **NEVER skip this step. This is what makes Drive a system, not random loops.**
|
|
232
|
+
|
|
233
|
+
1. Announce clearly:
|
|
234
|
+
```
|
|
235
|
+
════════════════════════════════════════
|
|
236
|
+
PHASE {N} COMPLETE — TRANSITION REQUIRED
|
|
237
|
+
════════════════════════════════════════
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
2. **MUST read and execute:** @~/.claude/drive-framework/workflows/transition-phase.md
|
|
241
|
+
|
|
242
|
+
3. Transition handles (do not skip any):
|
|
243
|
+
- Evolve PROJECT.md (requirements validated → shipped)
|
|
244
|
+
- Update ROADMAP.md (phase status → complete)
|
|
245
|
+
- Git commit for phase: `feat({phase}): {description}`
|
|
246
|
+
- Clean stale handoffs
|
|
247
|
+
- Route to next phase or milestone completion
|
|
248
|
+
|
|
249
|
+
4. **Only after transition completes** → offer next phase routing
|
|
250
|
+
|
|
251
|
+
**Anti-pattern:** Closing UNIFY and immediately offering `/drive:plan` for next phase WITHOUT running transition. This breaks system cohesion and skips git commits.
|
|
252
|
+
</step>
|
|
253
|
+
|
|
254
|
+
</process>
|
|
255
|
+
|
|
256
|
+
<output>
|
|
257
|
+
- SUMMARY.md at `.drive/phases/{phase}/{plan}-SUMMARY.md`
|
|
258
|
+
- Updated STATE.md
|
|
259
|
+
- Updated ROADMAP.md (if phase complete)
|
|
260
|
+
</output>
|
|
261
|
+
|
|
262
|
+
<error_handling>
|
|
263
|
+
**APPLY not complete:**
|
|
264
|
+
- Check STATE.md for actual position
|
|
265
|
+
- If APPLY incomplete, cannot UNIFY
|
|
266
|
+
- Return to APPLY to complete or document blockers
|
|
267
|
+
|
|
268
|
+
**Missing execution context:**
|
|
269
|
+
- If no memory of execution results, read any logs
|
|
270
|
+
- Ask user to confirm what was completed
|
|
271
|
+
- Document uncertainty in SUMMARY.md
|
|
272
|
+
|
|
273
|
+
**PLAN.md missing:**
|
|
274
|
+
- Cannot reconcile without original plan
|
|
275
|
+
- Ask user to locate or reconstruct
|
|
276
|
+
</error_handling>
|
|
277
|
+
|
|
278
|
+
<anti_patterns>
|
|
279
|
+
**Skipping SUMMARY:**
|
|
280
|
+
Every completed plan MUST have a SUMMARY.md. No exceptions.
|
|
281
|
+
|
|
282
|
+
**Partial state updates:**
|
|
283
|
+
Update ALL of: SUMMARY, STATE, ROADMAP (if phase done). Don't leave partial.
|
|
284
|
+
|
|
285
|
+
**Vague summaries:**
|
|
286
|
+
"It worked" is not a summary. Document files, AC results, deviations specifically.
|
|
287
|
+
|
|
288
|
+
**Forgetting loop position:**
|
|
289
|
+
Always show the visual loop position in STATE.md.
|
|
290
|
+
</anti_patterns>
|