@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,219 @@
|
|
|
1
|
+
<context_management>
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Strategies for working effectively within context window limits. Context is a finite resource - use it deliberately to maximize productive work per session.
|
|
6
|
+
|
|
7
|
+
## Context Brackets
|
|
8
|
+
|
|
9
|
+
Drive uses context brackets to adapt behavior based on remaining capacity:
|
|
10
|
+
|
|
11
|
+
| Bracket | Remaining | Mode | Behavior |
|
|
12
|
+
|---------|-----------|------|----------|
|
|
13
|
+
| FRESH | >70% | LEAN | Minimal injection, trust recent context |
|
|
14
|
+
| MODERATE | 40-70% | STANDARD | Reinforce key context, consider plan splits |
|
|
15
|
+
| DEEP | 20-40% | CONSERVATIVE | Summarize before new reads, plan handoffs |
|
|
16
|
+
| CRITICAL | <20% | PRESERVATION | Finish current task, prepare handoff |
|
|
17
|
+
|
|
18
|
+
## Strategies by Bracket
|
|
19
|
+
|
|
20
|
+
### FRESH (>70%)
|
|
21
|
+
- Work directly in session
|
|
22
|
+
- Load full files when needed
|
|
23
|
+
- Multiple parallel operations OK
|
|
24
|
+
- Good time for complex multi-step work
|
|
25
|
+
|
|
26
|
+
### MODERATE (40-70%)
|
|
27
|
+
- Re-read key files (PROJECT.md, STATE.md) before decisions
|
|
28
|
+
- Consider splitting large remaining work
|
|
29
|
+
- Prefer summaries over full prior plan content
|
|
30
|
+
- Single-concern plans
|
|
31
|
+
|
|
32
|
+
### DEEP (20-40%)
|
|
33
|
+
- Read SUMMARY.md instead of full PLAN.md
|
|
34
|
+
- Defer new complex work to fresh session
|
|
35
|
+
- Focus on completing current plan
|
|
36
|
+
- Prepare handoff documentation
|
|
37
|
+
|
|
38
|
+
### CRITICAL (<20%)
|
|
39
|
+
- Complete current task only
|
|
40
|
+
- Write comprehensive handoff
|
|
41
|
+
- No new file reads unless essential
|
|
42
|
+
- Update STATE.md with resume context
|
|
43
|
+
|
|
44
|
+
## Lean Injection Principles
|
|
45
|
+
|
|
46
|
+
### Load What You Need
|
|
47
|
+
```markdown
|
|
48
|
+
<!-- GOOD: Targeted loading -->
|
|
49
|
+
<context>
|
|
50
|
+
@.drive/STATE.md
|
|
51
|
+
@src/models/user.ts (the specific file being modified)
|
|
52
|
+
</context>
|
|
53
|
+
|
|
54
|
+
<!-- BAD: Kitchen sink -->
|
|
55
|
+
<context>
|
|
56
|
+
@.drive/PROJECT.md
|
|
57
|
+
@.drive/ROADMAP.md
|
|
58
|
+
@.drive/STATE.md
|
|
59
|
+
@.drive/phases/01-foundation/01-01-SUMMARY.md
|
|
60
|
+
@.drive/phases/01-foundation/01-02-SUMMARY.md
|
|
61
|
+
@src/models/user.ts
|
|
62
|
+
@src/models/product.ts
|
|
63
|
+
@src/api/routes.ts
|
|
64
|
+
</context>
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Summary Before Full
|
|
68
|
+
When referencing prior work:
|
|
69
|
+
|
|
70
|
+
```markdown
|
|
71
|
+
<!-- GOOD: Reference summary -->
|
|
72
|
+
@.drive/phases/01-foundation/01-01-SUMMARY.md
|
|
73
|
+
|
|
74
|
+
<!-- AVOID: Full plan + summary -->
|
|
75
|
+
@.drive/phases/01-foundation/01-01-PLAN.md
|
|
76
|
+
@.drive/phases/01-foundation/01-01-SUMMARY.md
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Summaries capture what was built. Plans capture what was intended. After completion, the summary is more useful.
|
|
80
|
+
|
|
81
|
+
### Progressive Detail
|
|
82
|
+
Start with high-level, drill down only when needed:
|
|
83
|
+
|
|
84
|
+
1. Read STATE.md (current position)
|
|
85
|
+
2. Read relevant SUMMARY.md (what was built)
|
|
86
|
+
3. Read specific source files (implementation details)
|
|
87
|
+
|
|
88
|
+
Don't load implementation details until you need them.
|
|
89
|
+
|
|
90
|
+
## Plan Sizing for Context
|
|
91
|
+
|
|
92
|
+
### Target: ~50% Context Usage Per Plan
|
|
93
|
+
A plan should use roughly half the available context:
|
|
94
|
+
- Leaves room for execution output
|
|
95
|
+
- Allows error recovery
|
|
96
|
+
- Supports verification steps
|
|
97
|
+
|
|
98
|
+
### Single Concern Per Plan
|
|
99
|
+
```
|
|
100
|
+
GOOD: "Create User model and API endpoints"
|
|
101
|
+
BAD: "Create User model, Product model, Order model, and all API endpoints"
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### 2-3 Tasks Maximum
|
|
105
|
+
More tasks = more context per plan. Split large phases into multiple plans.
|
|
106
|
+
|
|
107
|
+
## Avoiding Reflexive Chaining
|
|
108
|
+
|
|
109
|
+
**Anti-pattern: Reflexive chain**
|
|
110
|
+
```yaml
|
|
111
|
+
# Plan 01-01
|
|
112
|
+
depends_on: []
|
|
113
|
+
|
|
114
|
+
# Plan 01-02
|
|
115
|
+
depends_on: ["01-01"] # Does 02 actually need 01's output?
|
|
116
|
+
|
|
117
|
+
# Plan 01-03
|
|
118
|
+
depends_on: ["01-02"] # Does 03 actually need 02's output?
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
This creates false sequential execution and unnecessary context loading.
|
|
122
|
+
|
|
123
|
+
**Pattern: Genuine dependencies only**
|
|
124
|
+
```yaml
|
|
125
|
+
# Plan 01-01: Create User model
|
|
126
|
+
depends_on: []
|
|
127
|
+
|
|
128
|
+
# Plan 01-02: Create Product model
|
|
129
|
+
depends_on: [] # Independent! Can parallelize.
|
|
130
|
+
|
|
131
|
+
# Plan 01-03: Create Order model (references User and Product)
|
|
132
|
+
depends_on: ["01-01", "01-02"] # Genuine: imports types from both
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
## Session Handoffs
|
|
136
|
+
|
|
137
|
+
When context is exhausted or work spans sessions, Drive provides explicit handoff support.
|
|
138
|
+
|
|
139
|
+
### Two Levels of Continuity
|
|
140
|
+
|
|
141
|
+
| Level | File | When to Use |
|
|
142
|
+
|-------|------|-------------|
|
|
143
|
+
| Light | STATE.md Session Continuity | Quick breaks, same-day resume |
|
|
144
|
+
| Full | HANDOFF-{date}.md | Context limits, next-day resume, zero-context sessions |
|
|
145
|
+
|
|
146
|
+
### STATE.md Session Continuity Section
|
|
147
|
+
Always updated. Minimal but sufficient for quick resume:
|
|
148
|
+
|
|
149
|
+
```markdown
|
|
150
|
+
## Session Continuity
|
|
151
|
+
|
|
152
|
+
Last session: 2026-01-28 11:15
|
|
153
|
+
Stopped at: Phase 3, Plan 01, Task 2 complete
|
|
154
|
+
Next action: Create context-management.md reference
|
|
155
|
+
Resume file: .drive/phases/03-references-layer/03-01-PLAN.md
|
|
156
|
+
Resume context:
|
|
157
|
+
- Task 1 complete (checkpoints.md, plan-format.md created)
|
|
158
|
+
- Task 2 in progress
|
|
159
|
+
- 55% context remaining
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
### HANDOFF.md Document
|
|
163
|
+
For zero-context sessions or complex multi-session work. Created by `/drive:pause`:
|
|
164
|
+
|
|
165
|
+
- Self-contained entry point (assumes no prior context)
|
|
166
|
+
- What was accomplished this session
|
|
167
|
+
- What's in progress
|
|
168
|
+
- Key decisions made
|
|
169
|
+
- Current blockers
|
|
170
|
+
- Exact next action
|
|
171
|
+
- Loop position (PLAN/APPLY/UNIFY markers)
|
|
172
|
+
|
|
173
|
+
**When to use HANDOFF vs STATE.md alone:**
|
|
174
|
+
- **STATE.md only:** Quick break, returning soon, context might persist
|
|
175
|
+
- **HANDOFF + STATE.md:** End of day, context limits, sharing with fresh session
|
|
176
|
+
|
|
177
|
+
### Session Commands
|
|
178
|
+
|
|
179
|
+
| Command | Purpose |
|
|
180
|
+
|---------|---------|
|
|
181
|
+
| `/drive:pause` | Create HANDOFF, update STATE, prepare for break |
|
|
182
|
+
| `/drive:resume` | Restore context from HANDOFF/STATE, suggest next action |
|
|
183
|
+
| `/drive:progress` | Mid-session check, suggests ONE next action |
|
|
184
|
+
|
|
185
|
+
## Anti-Patterns
|
|
186
|
+
|
|
187
|
+
**Loading everything "just in case":**
|
|
188
|
+
```markdown
|
|
189
|
+
<context>
|
|
190
|
+
@everything/that/might/be/relevant.md
|
|
191
|
+
</context>
|
|
192
|
+
```
|
|
193
|
+
Why bad: Wastes context on unused content.
|
|
194
|
+
|
|
195
|
+
**Ignoring bracket transitions:**
|
|
196
|
+
```
|
|
197
|
+
At 35% context: "Let me start this new complex task"
|
|
198
|
+
```
|
|
199
|
+
Why bad: May not have room to complete. Start fresh.
|
|
200
|
+
|
|
201
|
+
**No handoff preparation:**
|
|
202
|
+
```
|
|
203
|
+
At 15% context: Continue working without noting state
|
|
204
|
+
```
|
|
205
|
+
Why bad: Next session loses context. Always prepare resume.
|
|
206
|
+
|
|
207
|
+
## Context Budget Heuristics
|
|
208
|
+
|
|
209
|
+
| Activity | Typical Cost |
|
|
210
|
+
|----------|--------------|
|
|
211
|
+
| PLAN.md template | ~3-5k tokens |
|
|
212
|
+
| Read source file | ~1-3k tokens |
|
|
213
|
+
| Task execution | ~5-15k tokens |
|
|
214
|
+
| Verification output | ~2-5k tokens |
|
|
215
|
+
| SUMMARY.md write | ~2-3k tokens |
|
|
216
|
+
|
|
217
|
+
Plan your work with these estimates in mind.
|
|
218
|
+
|
|
219
|
+
</context_management>
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
<overview>
|
|
2
|
+
Git integration for Drive workflow.
|
|
3
|
+
</overview>
|
|
4
|
+
|
|
5
|
+
<core_principle>
|
|
6
|
+
|
|
7
|
+
**Commit outcomes, not process.**
|
|
8
|
+
|
|
9
|
+
The git log should read like a changelog of what shipped, not a diary of planning activity.
|
|
10
|
+
|
|
11
|
+
</core_principle>
|
|
12
|
+
|
|
13
|
+
<commit_points>
|
|
14
|
+
|
|
15
|
+
| Event | Commit? | Why |
|
|
16
|
+
| ----------------------- | ------- | ------------------------------------------------ |
|
|
17
|
+
| PROJECT + ROADMAP init | YES | Project initialization |
|
|
18
|
+
| PLAN.md created | NO | Intermediate - commit with plan completion |
|
|
19
|
+
| Research notes | NO | Intermediate |
|
|
20
|
+
| **Task completed** | YES | Atomic unit of work (1 commit per task) |
|
|
21
|
+
| **Plan completed** | YES | Metadata commit (SUMMARY + STATE + ROADMAP) |
|
|
22
|
+
| HANDOFF created | YES | WIP state preserved |
|
|
23
|
+
|
|
24
|
+
</commit_points>
|
|
25
|
+
|
|
26
|
+
<commit_formats>
|
|
27
|
+
|
|
28
|
+
## Project Initialization
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
docs: initialize [project-name] ([N] phases)
|
|
32
|
+
|
|
33
|
+
[One-liner from PROJECT.md]
|
|
34
|
+
|
|
35
|
+
Phases:
|
|
36
|
+
1. [phase-name]: [goal]
|
|
37
|
+
2. [phase-name]: [goal]
|
|
38
|
+
3. [phase-name]: [goal]
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
What to commit:
|
|
42
|
+
```bash
|
|
43
|
+
git add .drive/
|
|
44
|
+
git commit
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Task Completion (During APPLY)
|
|
48
|
+
|
|
49
|
+
Each task gets its own commit immediately after completion.
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
{type}({phase}-{plan}): {task-name}
|
|
53
|
+
|
|
54
|
+
- [Key change 1]
|
|
55
|
+
- [Key change 2]
|
|
56
|
+
- [Key change 3]
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**Commit types:**
|
|
60
|
+
- `feat` - New feature/functionality
|
|
61
|
+
- `fix` - Bug fix
|
|
62
|
+
- `test` - Test-only (TDD RED phase)
|
|
63
|
+
- `refactor` - Code cleanup (TDD REFACTOR phase)
|
|
64
|
+
- `perf` - Performance improvement
|
|
65
|
+
- `chore` - Dependencies, config, tooling
|
|
66
|
+
- `docs` - Documentation changes
|
|
67
|
+
|
|
68
|
+
**Examples:**
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
# Standard task
|
|
72
|
+
git add src/api/auth.ts src/types/user.ts
|
|
73
|
+
git commit -m "feat(08-02): create user registration endpoint
|
|
74
|
+
|
|
75
|
+
- POST /auth/register validates email and password
|
|
76
|
+
- Checks for duplicate users
|
|
77
|
+
- Returns JWT token on success
|
|
78
|
+
"
|
|
79
|
+
|
|
80
|
+
# TDD task - RED phase
|
|
81
|
+
git add src/__tests__/jwt.test.ts
|
|
82
|
+
git commit -m "test(07-02): add failing test for JWT generation
|
|
83
|
+
|
|
84
|
+
- Tests token contains user ID claim
|
|
85
|
+
- Tests token expires in 1 hour
|
|
86
|
+
- Tests signature verification
|
|
87
|
+
"
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Plan Completion (After UNIFY)
|
|
91
|
+
|
|
92
|
+
After all tasks committed, one final metadata commit captures plan completion.
|
|
93
|
+
|
|
94
|
+
```
|
|
95
|
+
docs({phase}-{plan}): complete [plan-name]
|
|
96
|
+
|
|
97
|
+
AC Results:
|
|
98
|
+
- AC-1: [PASS/FAIL]
|
|
99
|
+
- AC-2: [PASS/FAIL]
|
|
100
|
+
|
|
101
|
+
SUMMARY: .drive/phases/XX-name/{phase}-{plan}-SUMMARY.md
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
What to commit:
|
|
105
|
+
```bash
|
|
106
|
+
git add .drive/phases/XX-name/
|
|
107
|
+
git add .drive/STATE.md
|
|
108
|
+
git add .drive/ROADMAP.md
|
|
109
|
+
git commit
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
**Note:** Code files NOT included - already committed per-task.
|
|
113
|
+
|
|
114
|
+
## Handoff (WIP)
|
|
115
|
+
|
|
116
|
+
```
|
|
117
|
+
wip({phase}): paused at plan [NN] task [X]/[Y]
|
|
118
|
+
|
|
119
|
+
Current: [task name]
|
|
120
|
+
[If blocked:] Blocked: [reason]
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
What to commit:
|
|
124
|
+
```bash
|
|
125
|
+
git add .drive/
|
|
126
|
+
git commit
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
</commit_formats>
|
|
130
|
+
|
|
131
|
+
<example_log>
|
|
132
|
+
|
|
133
|
+
**Per-task commits (Drive approach):**
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
# Phase 08.5 - Quality Patterns
|
|
137
|
+
d4e5f6 docs(08.5-01): complete quality references
|
|
138
|
+
a1b2c3 feat(08.5-01): create git-strategy.md
|
|
139
|
+
7g8h9i feat(08.5-01): create tdd.md
|
|
140
|
+
4d5e6f feat(08.5-01): create quality-principles.md
|
|
141
|
+
|
|
142
|
+
# Phase 08 - Documentation
|
|
143
|
+
3m4n5o docs(08-02): complete workflow docs
|
|
144
|
+
6p7q8r feat(08-02): create unify-phase.md
|
|
145
|
+
9s0t1u feat(08-02): create apply-phase.md
|
|
146
|
+
2v3w4x docs(08-01): complete command docs
|
|
147
|
+
5y6z7a feat(08-01): create resume.md command
|
|
148
|
+
8b9c0d feat(08-01): create pause.md command
|
|
149
|
+
|
|
150
|
+
# Phase 07 - Session Continuity
|
|
151
|
+
1e2f3g docs(07-01): complete handoff workflow
|
|
152
|
+
4h5i6j feat(07-01): create pause-work.md
|
|
153
|
+
7k8l9m feat(07-01): add session continuity to STATE.md
|
|
154
|
+
|
|
155
|
+
# Initialization
|
|
156
|
+
0n1o2p docs: initialize drive-framework (8 phases)
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
Each plan produces 2-4 commits (tasks + metadata). Clear, granular, bisectable.
|
|
160
|
+
|
|
161
|
+
</example_log>
|
|
162
|
+
|
|
163
|
+
<anti_patterns>
|
|
164
|
+
|
|
165
|
+
**Still don't commit (intermediate artifacts):**
|
|
166
|
+
- PLAN.md creation (commit with plan completion)
|
|
167
|
+
- Research notes
|
|
168
|
+
- Minor planning tweaks
|
|
169
|
+
- "Fixed typo in roadmap"
|
|
170
|
+
|
|
171
|
+
**Do commit (outcomes):**
|
|
172
|
+
- Each task completion (feat/fix/test/refactor)
|
|
173
|
+
- Plan completion metadata (docs)
|
|
174
|
+
- Project initialization (docs)
|
|
175
|
+
- Handoffs (wip)
|
|
176
|
+
|
|
177
|
+
**Key principle:** Commit working code and shipped outcomes, not planning process.
|
|
178
|
+
|
|
179
|
+
</anti_patterns>
|
|
180
|
+
|
|
181
|
+
<commit_strategy_rationale>
|
|
182
|
+
|
|
183
|
+
## Why Per-Task Commits?
|
|
184
|
+
|
|
185
|
+
**Context engineering for AI:**
|
|
186
|
+
- Git history becomes primary context source for future Claude sessions
|
|
187
|
+
- `git log --grep="{phase}-{plan}"` shows all work for a plan
|
|
188
|
+
- `git diff <hash>^..<hash>` shows exact changes per task
|
|
189
|
+
- Less reliance on parsing SUMMARY.md = more context for actual work
|
|
190
|
+
|
|
191
|
+
**Failure recovery:**
|
|
192
|
+
- Task 1 committed ✅, Task 2 failed ❌
|
|
193
|
+
- Claude in next session: sees task 1 complete, can retry task 2
|
|
194
|
+
- Can `git reset --hard` to last successful task
|
|
195
|
+
|
|
196
|
+
**Debugging:**
|
|
197
|
+
- `git bisect` finds exact failing task, not just failing plan
|
|
198
|
+
- `git blame` traces line to specific task context
|
|
199
|
+
- Each commit is independently revertable
|
|
200
|
+
|
|
201
|
+
**Observability:**
|
|
202
|
+
- Solo developer + Claude workflow benefits from granular attribution
|
|
203
|
+
- Atomic commits are git best practice
|
|
204
|
+
- "Commit noise" irrelevant when consumer is Claude, not humans
|
|
205
|
+
|
|
206
|
+
</commit_strategy_rationale>
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
<loop_phases>
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Explain the semantics of Drive's three loop phases: PLAN, APPLY, UNIFY. Every unit of work follows this loop. Skipping phases breaks traceability and increases risk.
|
|
6
|
+
|
|
7
|
+
## The Loop
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
┌─────────────────────────────────────────┐
|
|
11
|
+
│ │
|
|
12
|
+
▼ │
|
|
13
|
+
PLAN ────────► APPLY ────────► UNIFY ───────┘
|
|
14
|
+
│ │ │
|
|
15
|
+
│ │ │
|
|
16
|
+
Define work Execute work Reconcile
|
|
17
|
+
Get approval Verify tasks Update state
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## PLAN Phase
|
|
21
|
+
|
|
22
|
+
**Purpose:** Define what will be built, how it will be verified, and what's out of scope.
|
|
23
|
+
|
|
24
|
+
**Artifacts Created:**
|
|
25
|
+
- `{phase}-{plan}-PLAN.md` in `.drive/phases/{phase-name}/`
|
|
26
|
+
|
|
27
|
+
**Activities:**
|
|
28
|
+
1. Analyze requirements and context
|
|
29
|
+
2. Define objective (Goal, Purpose, Output)
|
|
30
|
+
3. Write acceptance criteria (Given/When/Then)
|
|
31
|
+
4. Break down into tasks with Files, Action, Verify, Done
|
|
32
|
+
5. Set boundaries (DO NOT CHANGE, SCOPE LIMITS)
|
|
33
|
+
6. Define verification checklist
|
|
34
|
+
7. **Wait for approval before proceeding**
|
|
35
|
+
|
|
36
|
+
**Entry Condition:**
|
|
37
|
+
- Prior plan completed (UNIFY done) OR first plan
|
|
38
|
+
- ROADMAP indicates this phase is next
|
|
39
|
+
|
|
40
|
+
**Exit Condition:**
|
|
41
|
+
- PLAN.md created with all required sections
|
|
42
|
+
- User has approved the plan
|
|
43
|
+
- STATE.md updated to show "ready for APPLY"
|
|
44
|
+
|
|
45
|
+
**Loop Position:**
|
|
46
|
+
```
|
|
47
|
+
PLAN ──▶ APPLY ──▶ UNIFY
|
|
48
|
+
✓ ○ ○ [PLAN complete, awaiting APPLY]
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## APPLY Phase
|
|
52
|
+
|
|
53
|
+
**Purpose:** Execute the approved plan by completing tasks in order, verifying each.
|
|
54
|
+
|
|
55
|
+
**Artifacts Created:**
|
|
56
|
+
- Code/files specified in PLAN.md
|
|
57
|
+
- APPLY-LOG (optional, for complex plans)
|
|
58
|
+
|
|
59
|
+
**Activities:**
|
|
60
|
+
1. Read PLAN.md to load task definitions
|
|
61
|
+
2. For each auto task, follow the Execute/Qualify (E/Q) loop:
|
|
62
|
+
- **Execute** the action
|
|
63
|
+
- **Report status** (DONE / DONE_WITH_CONCERNS / NEEDS_CONTEXT / BLOCKED)
|
|
64
|
+
- **Qualify** against spec and linked AC (re-read output, run verify fresh, compare)
|
|
65
|
+
- Score: PASS / GAP / DRIFT — loop on gaps until resolved
|
|
66
|
+
3. Stop at checkpoints, wait for human
|
|
67
|
+
4. On checkpoint failure: classify root cause (intent/spec/code) before fixing
|
|
68
|
+
5. Track deviations from plan
|
|
69
|
+
|
|
70
|
+
### Task Execution Statuses
|
|
71
|
+
|
|
72
|
+
After executing each task, report one of four statuses before qualification:
|
|
73
|
+
|
|
74
|
+
| Status | Meaning | What Happens Next |
|
|
75
|
+
|---|---|---|
|
|
76
|
+
| **DONE** | Task completed, no concerns | Standard qualify check against spec + AC |
|
|
77
|
+
| **DONE_WITH_CONCERNS** | Completed but have doubts | Qualify focuses on flagged concerns first, then full check |
|
|
78
|
+
| **NEEDS_CONTEXT** | Can't complete — missing information | Pause execution. Surface what's missing. Wait for user input |
|
|
79
|
+
| **BLOCKED** | Can't complete — structural impediment | Stop. Report what was attempted, what's blocking, what help is needed |
|
|
80
|
+
|
|
81
|
+
**Rules:**
|
|
82
|
+
- NEVER silently produce work you're unsure about — instead report DONE_WITH_CONCERNS, because pretending confidence when you have doubts produces work that fails during verification or in production
|
|
83
|
+
- NEEDS_CONTEXT is not failure — it's honest communication that prevents wasted work on wrong assumptions
|
|
84
|
+
- BLOCKED must include specifics — instead of a vague "I'm stuck", because specificity enables the user to unblock you efficiently
|
|
85
|
+
|
|
86
|
+
### Execute/Qualify (E/Q) Loop
|
|
87
|
+
|
|
88
|
+
Every auto task follows the E/Q loop:
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
EXECUTE → REPORT STATUS → QUALIFY → (fix gaps) → NEXT TASK
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
The Qualify step independently verifies output against the spec — instead of trusting execution memory, because the implementer's report of their own work is inherently optimistic. Qualify re-reads the actual files, runs verify commands fresh, and compares line-by-line against the task spec and linked AC.
|
|
95
|
+
|
|
96
|
+
Qualify scores each task: **PASS** (matches spec), **GAP** (missing something), or **DRIFT** (built something different). GAP and DRIFT trigger a fix-and-requalify loop (max 3 attempts before escalating to user).
|
|
97
|
+
|
|
98
|
+
### Diagnostic Failure Routing
|
|
99
|
+
|
|
100
|
+
When a checkpoint:human-verify fails, classify before fixing:
|
|
101
|
+
- **Intent issue** → re-plan the phase with updated intent
|
|
102
|
+
- **Spec issue** → fix the plan (ACs/tasks) before patching code
|
|
103
|
+
- **Code issue** → standard fix-in-place
|
|
104
|
+
|
|
105
|
+
This prevents the anti-pattern of patching code when the plan itself was wrong.
|
|
106
|
+
|
|
107
|
+
**Entry Condition:**
|
|
108
|
+
- PLAN.md exists and is approved
|
|
109
|
+
- STATE.md shows loop position at PLAN complete
|
|
110
|
+
|
|
111
|
+
**Exit Condition:**
|
|
112
|
+
- All tasks completed with PASS qualify status (or blocked with documentation)
|
|
113
|
+
- All checkpoint verifications resolved
|
|
114
|
+
- Ready for reconciliation
|
|
115
|
+
|
|
116
|
+
**Loop Position:**
|
|
117
|
+
```
|
|
118
|
+
PLAN ──▶ APPLY ──▶ UNIFY
|
|
119
|
+
✓ ✓ ○ [APPLY complete, ready for UNIFY]
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## UNIFY Phase
|
|
123
|
+
|
|
124
|
+
**Purpose:** Reconcile what was planned vs. what was built. Close the loop.
|
|
125
|
+
|
|
126
|
+
**Artifacts Created:**
|
|
127
|
+
- `{phase}-{plan}-SUMMARY.md` in `.drive/phases/{phase-name}/`
|
|
128
|
+
- Updated `STATE.md`
|
|
129
|
+
- Updated `ROADMAP.md` (if phase complete)
|
|
130
|
+
|
|
131
|
+
**Activities:**
|
|
132
|
+
1. Compare PLAN.md tasks to actual execution
|
|
133
|
+
2. Document what was built (files, lines)
|
|
134
|
+
3. Record acceptance criteria results (PASS/FAIL)
|
|
135
|
+
4. Note any deviations and why
|
|
136
|
+
5. Update STATE.md:
|
|
137
|
+
- Loop position
|
|
138
|
+
- Progress percentages
|
|
139
|
+
- Session continuity
|
|
140
|
+
6. Update ROADMAP.md if phase is complete
|
|
141
|
+
|
|
142
|
+
**Entry Condition:**
|
|
143
|
+
- APPLY phase complete (all tasks done or documented blockers)
|
|
144
|
+
|
|
145
|
+
**Exit Condition:**
|
|
146
|
+
- SUMMARY.md created with results
|
|
147
|
+
- STATE.md updated with new position
|
|
148
|
+
- Loop closed, ready for next PLAN
|
|
149
|
+
|
|
150
|
+
**Loop Position:**
|
|
151
|
+
```
|
|
152
|
+
PLAN ──▶ APPLY ──▶ UNIFY
|
|
153
|
+
✓ ✓ ✓ [Loop complete, ready for next PLAN]
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
## Loop Invariants
|
|
157
|
+
|
|
158
|
+
**Never Skip PLAN:**
|
|
159
|
+
```
|
|
160
|
+
# BAD
|
|
161
|
+
"Let me just quickly implement this without a plan"
|
|
162
|
+
|
|
163
|
+
# GOOD
|
|
164
|
+
"Let me create a PLAN.md first, even for small work"
|
|
165
|
+
```
|
|
166
|
+
Why: No plan = no acceptance criteria = no way to verify completion.
|
|
167
|
+
|
|
168
|
+
**Never Execute Without Approval:**
|
|
169
|
+
```
|
|
170
|
+
# BAD
|
|
171
|
+
"I've written the plan, now executing..."
|
|
172
|
+
|
|
173
|
+
# GOOD
|
|
174
|
+
"Plan created. Ready to execute when you approve."
|
|
175
|
+
```
|
|
176
|
+
Why: Plans may have incorrect assumptions. Approval catches issues early.
|
|
177
|
+
|
|
178
|
+
**Always Close With UNIFY:**
|
|
179
|
+
```
|
|
180
|
+
# BAD
|
|
181
|
+
"Tasks done. Moving to next phase."
|
|
182
|
+
|
|
183
|
+
# GOOD
|
|
184
|
+
"Tasks done. Creating SUMMARY.md and updating STATE.md."
|
|
185
|
+
```
|
|
186
|
+
Why: No UNIFY = no record of what was built = lost traceability.
|
|
187
|
+
|
|
188
|
+
## Phase Transitions
|
|
189
|
+
|
|
190
|
+
### PLAN → APPLY
|
|
191
|
+
Trigger: User approves plan (explicit signal)
|
|
192
|
+
|
|
193
|
+
Validation:
|
|
194
|
+
- [ ] PLAN.md has all required sections
|
|
195
|
+
- [ ] Acceptance criteria are testable
|
|
196
|
+
- [ ] Tasks have Files, Action, Verify, Done
|
|
197
|
+
- [ ] Boundaries are clear
|
|
198
|
+
|
|
199
|
+
### APPLY → UNIFY
|
|
200
|
+
Trigger: All tasks complete OR blockers documented
|
|
201
|
+
|
|
202
|
+
Validation:
|
|
203
|
+
- [ ] Each task verification passed (or blocker recorded)
|
|
204
|
+
- [ ] No skipped tasks
|
|
205
|
+
- [ ] Deviations noted
|
|
206
|
+
|
|
207
|
+
### UNIFY → PLAN (next)
|
|
208
|
+
Trigger: SUMMARY.md created, STATE.md updated
|
|
209
|
+
|
|
210
|
+
Validation:
|
|
211
|
+
- [ ] SUMMARY.md has AC results
|
|
212
|
+
- [ ] STATE.md reflects new position
|
|
213
|
+
- [ ] ROADMAP.md updated if phase complete
|
|
214
|
+
|
|
215
|
+
## Visual Loop Position Format
|
|
216
|
+
|
|
217
|
+
STATE.md displays loop position visually:
|
|
218
|
+
|
|
219
|
+
```markdown
|
|
220
|
+
## Loop Position
|
|
221
|
+
|
|
222
|
+
Current loop state:
|
|
223
|
+
```
|
|
224
|
+
PLAN ──▶ APPLY ──▶ UNIFY
|
|
225
|
+
✓ ○ ○ [Description of current state]
|
|
226
|
+
```
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
Symbols:
|
|
230
|
+
- `✓` = Phase complete
|
|
231
|
+
- `○` = Phase pending
|
|
232
|
+
- `►` = Currently in this phase (optional)
|
|
233
|
+
|
|
234
|
+
## Anti-Patterns
|
|
235
|
+
|
|
236
|
+
**Partial loops:**
|
|
237
|
+
```
|
|
238
|
+
PLAN → APPLY → (skip UNIFY) → PLAN
|
|
239
|
+
```
|
|
240
|
+
Why bad: No record of what was built. Can't track progress.
|
|
241
|
+
|
|
242
|
+
**Implicit approval:**
|
|
243
|
+
```
|
|
244
|
+
"I assume the plan is approved and will proceed"
|
|
245
|
+
```
|
|
246
|
+
Why bad: May execute on flawed assumptions. Always wait for explicit approval.
|
|
247
|
+
|
|
248
|
+
**UNIFY debt:**
|
|
249
|
+
```
|
|
250
|
+
"I'll write the SUMMARY later"
|
|
251
|
+
```
|
|
252
|
+
Why bad: Context degrades. Write SUMMARY immediately after APPLY.
|
|
253
|
+
|
|
254
|
+
</loop_phases>
|